eeed-editor 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +2 -0
  2. package/dist/{_basePickBy-BauhmMSw.mjs → _basePickBy-CGVRqgOm.mjs} +2 -2
  3. package/dist/{_baseUniq-C78702zO.mjs → _baseUniq-IS9Cj2rn.mjs} +1 -1
  4. package/dist/{arc-De-hRU45.mjs → arc-DankigTh.mjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-BdKF_NW6.mjs → architecture-U656AL7Q-5biwZGDE.mjs} +1 -1
  6. package/dist/{architectureDiagram-VXUJARFQ-8rHItemK.mjs → architectureDiagram-VXUJARFQ-Br-8uK8I.mjs} +4 -4
  7. package/dist/{blockDiagram-VD42YOAC-DDNngXsc.mjs → blockDiagram-VD42YOAC-B4MyEiq8.mjs} +5 -5
  8. package/dist/{c4Diagram-YG6GDRKO-BA0qP3sm.mjs → c4Diagram-YG6GDRKO-tJzb05kk.mjs} +2 -2
  9. package/dist/{channel-BBKs03X1.mjs → channel-2ySntnG9.mjs} +1 -1
  10. package/dist/{chunk-4BX2VUAB-C5s4nTiZ.mjs → chunk-4BX2VUAB-Coig6jad.mjs} +1 -1
  11. package/dist/{chunk-55IACEB6-DLuzlPSW.mjs → chunk-55IACEB6-Cmeb-FNn.mjs} +1 -1
  12. package/dist/{chunk-B4BG7PRW-CoWS9hNA.mjs → chunk-B4BG7PRW-Bk-M3nXY.mjs} +4 -4
  13. package/dist/{chunk-DI55MBZ5-C5sdfkAX.mjs → chunk-DI55MBZ5-Cia8V-nx.mjs} +3 -3
  14. package/dist/{chunk-FMBD7UC4-DC8SSRiv.mjs → chunk-FMBD7UC4-C8lKgdkr.mjs} +1 -1
  15. package/dist/{chunk-QN33PNHL-CGHtUdC-.mjs → chunk-QN33PNHL-ChUV-qir.mjs} +1 -1
  16. package/dist/{chunk-QZHKN3VN-CYsoy5nb.mjs → chunk-QZHKN3VN-DDR1kUfj.mjs} +1 -1
  17. package/dist/{chunk-TZMSLE5B-Dwc0cUJp.mjs → chunk-TZMSLE5B-DFBScrrV.mjs} +1 -1
  18. package/dist/{classDiagram-v2-WZHVMYZB-DgLoScnV.mjs → classDiagram-2ON5EDUG-VaJrNMnU.mjs} +2 -2
  19. package/dist/{classDiagram-2ON5EDUG-DgLoScnV.mjs → classDiagram-v2-WZHVMYZB-VaJrNMnU.mjs} +2 -2
  20. package/dist/{clone-D2qgsAqB.mjs → clone-IHZgOw9x.mjs} +1 -1
  21. package/dist/{cose-bilkent-S5V4N54A-DokBWk4w.mjs → cose-bilkent-S5V4N54A-Df512XhW.mjs} +2 -2
  22. package/dist/{dagre-6UL2VRFP-Ck_JJN9r.mjs → dagre-6UL2VRFP-Da0At9pp.mjs} +6 -6
  23. package/dist/{diagram-PSM6KHXK-BgCzNpd4.mjs → diagram-PSM6KHXK-oCORGCC1.mjs} +4 -4
  24. package/dist/{diagram-QEK2KX5R-BH4an5dX.mjs → diagram-QEK2KX5R-C-srJHCR.mjs} +3 -3
  25. package/dist/{diagram-S2PKOQOG--TVxNx6w.mjs → diagram-S2PKOQOG-CgudNnJ5.mjs} +3 -3
  26. package/dist/eeed-editor.es.js +2 -2
  27. package/dist/eeed-editor.umd.js +120 -120
  28. package/dist/{erDiagram-Q2GNP2WA-DW5S6C_w.mjs → erDiagram-Q2GNP2WA-B6zergzU.mjs} +4 -4
  29. package/dist/{flowDiagram-NV44I4VS-rnzdFNNM.mjs → flowDiagram-NV44I4VS-SVPNUbqp.mjs} +5 -5
  30. package/dist/{ganttDiagram-LVOFAZNH-D-ye3iGK.mjs → ganttDiagram-LVOFAZNH-D9l0XSTJ.mjs} +3 -3
  31. package/dist/{gitGraph-F6HP7TQM-DNznQ3AG.mjs → gitGraph-F6HP7TQM-D7EEftyo.mjs} +1 -1
  32. package/dist/{gitGraphDiagram-NY62KEGX-C1NfF0di.mjs → gitGraphDiagram-NY62KEGX-56DzA3gG.mjs} +4 -4
  33. package/dist/{graph-BFbl45LR.mjs → graph-C4J8bGQQ.mjs} +2 -2
  34. package/dist/{index-zJud9SQi.mjs → index-CuA9Cc8N.mjs} +595 -593
  35. package/dist/index.css +1 -1
  36. package/dist/info-NVLQJR56-DfPFeOtw.mjs +5 -0
  37. package/dist/{infoDiagram-ER5ION4S-BLR23V5s.mjs → infoDiagram-ER5ION4S-DouR0rQD.mjs} +2 -2
  38. package/dist/{journeyDiagram-XKPGCS4Q-ClYbP-t7.mjs → journeyDiagram-XKPGCS4Q-BST96yRm.mjs} +4 -4
  39. package/dist/{kanban-definition-3W4ZIXB7-QmJ2_kJS.mjs → kanban-definition-3W4ZIXB7-Db2nK2RK.mjs} +2 -2
  40. package/dist/{layout-DLf7xN8i.mjs → layout-B9lF_J_F.mjs} +4 -4
  41. package/dist/{linear-D5p8D5IT.mjs → linear-Ct2cJHDp.mjs} +1 -1
  42. package/dist/{mermaid-parser.core-DIiAjqh-.mjs → mermaid-parser.core-DQgr4omO.mjs} +11 -11
  43. package/dist/{mermaid.core-DTB5ADBi.mjs → mermaid.core-C6Rusbv5.mjs} +30 -30
  44. package/dist/{mindmap-definition-VGOIOE7T-D5_9dVmo.mjs → mindmap-definition-VGOIOE7T-B7aIJHLd.mjs} +3 -3
  45. package/dist/{packet-BFZMPI3H-DuBaSAZ3.mjs → packet-BFZMPI3H-BRzK2gnh.mjs} +1 -1
  46. package/dist/pie-7BOR55EZ-DqRg7nlP.mjs +5 -0
  47. package/dist/{pieDiagram-ADFJNKIX-cily-oHi.mjs → pieDiagram-ADFJNKIX--j3lM5h4.mjs} +4 -4
  48. package/dist/{quadrantDiagram-AYHSOK5B-BhH6cKgk.mjs → quadrantDiagram-AYHSOK5B-B1FM-uym.mjs} +2 -2
  49. package/dist/{radar-NHE76QYJ-L4NQJA18.mjs → radar-NHE76QYJ-CnB1UoTk.mjs} +1 -1
  50. package/dist/{requirementDiagram-UZGBJVZJ-Cyv8pMO0.mjs → requirementDiagram-UZGBJVZJ-BJyy5400.mjs} +3 -3
  51. package/dist/{sankeyDiagram-TZEHDZUN-BdWrPNQr.mjs → sankeyDiagram-TZEHDZUN-CD2ioO22.mjs} +1 -1
  52. package/dist/{sequenceDiagram-WL72ISMW-Kd0xWrcz.mjs → sequenceDiagram-WL72ISMW-0q1aZ3GC.mjs} +3 -3
  53. package/dist/src/index.vue.d.ts +1 -0
  54. package/dist/{stateDiagram-FKZM4ZOC-CawxRfLn.mjs → stateDiagram-FKZM4ZOC-BAZYHxCH.mjs} +4 -4
  55. package/dist/{stateDiagram-v2-4FDKWEC3-DIbT_ehp.mjs → stateDiagram-v2-4FDKWEC3-DSkSe7Zh.mjs} +2 -2
  56. package/dist/{timeline-definition-IT6M3QCI-vEvts_jB.mjs → timeline-definition-IT6M3QCI-CWraGyQn.mjs} +2 -2
  57. package/dist/{treemap-KMMF4GRG-CA11U8yQ.mjs → treemap-KMMF4GRG-C9GufmaY.mjs} +1 -1
  58. package/dist/{xychartDiagram-PRI3JC2R-BOhlz1mC.mjs → xychartDiagram-PRI3JC2R-B93pW2Bh.mjs} +2 -2
  59. package/package.json +1 -1
  60. package/dist/info-NVLQJR56-C4a00L6C.mjs +0 -5
  61. package/dist/pie-7BOR55EZ-CsNWzXqs.mjs +0 -5
@@ -1,4 +1,4 @@
1
- import { inject as q1, watch as wr, getCurrentScope as G1, onScopeDispose as j1, computed as pt, toValue as Br, unref as it, ref as S, defineComponent as de, provide as cf, markRaw as Bp, reactive as Y1, h as Jr, render as pc, getCurrentInstance as X1, watchEffect as J1, nextTick as qn, onBeforeUnmount as iu, customRef as Z1, createElementBlock as U, openBlock as z, createElementVNode as y, onMounted as xi, createBlock as zt, withCtx as Ct, createCommentVNode as Te, normalizeStyle as wt, createVNode as B, withModifiers as $e, defineAsyncComponent as Pp, Fragment as Jt, Teleport as pa, normalizeClass as we, renderSlot as co, toDisplayString as Vt, withDirectives as He, vModelText as mc, createTextVNode as ps, Transition as Q1, createApp as ev, onUnmounted as tv, withKeys as nv, vShow as Je, renderList as wn } from "vue";
1
+ import { inject as q1, watch as wr, getCurrentScope as G1, onScopeDispose as j1, computed as pt, toValue as Br, unref as it, ref as S, defineComponent as he, provide as cf, markRaw as Bp, reactive as Y1, h as Jr, render as pc, getCurrentInstance as X1, watchEffect as J1, nextTick as qn, onBeforeUnmount as iu, customRef as Z1, createElementBlock as U, openBlock as z, createElementVNode as y, onMounted as xi, createBlock as zt, withCtx as Ct, createCommentVNode as Te, normalizeStyle as wt, createVNode as B, withModifiers as $e, defineAsyncComponent as Pp, Fragment as Jt, Teleport as pa, normalizeClass as Ee, renderSlot as co, toDisplayString as Vt, withDirectives as He, vModelText as mc, createTextVNode as ps, Transition as Q1, createApp as ev, onUnmounted as tv, withKeys as nv, vShow as Je, renderList as wn } from "vue";
2
2
  const Ue = () => {
3
3
  };
4
4
  /*!
@@ -4463,7 +4463,7 @@ class cu {
4463
4463
  }
4464
4464
  }
4465
4465
  const Dl = /* @__PURE__ */ Object.create(null);
4466
- class ye {
4466
+ class we {
4467
4467
  /**
4468
4468
  Initialize a selection with the head and anchor and ranges. If no
4469
4469
  ranges are given, constructs a single range across `$anchor` and
@@ -4627,7 +4627,7 @@ class ye {
4627
4627
  return oe.between(this.$anchor, this.$head).getBookmark();
4628
4628
  }
4629
4629
  }
4630
- ye.prototype.visible = !0;
4630
+ we.prototype.visible = !0;
4631
4631
  class vm {
4632
4632
  /**
4633
4633
  Create a range.
@@ -4640,7 +4640,7 @@ let Sf = !1;
4640
4640
  function Mf(t) {
4641
4641
  !Sf && !t.parent.inlineContent && (Sf = !0);
4642
4642
  }
4643
- class oe extends ye {
4643
+ class oe extends we {
4644
4644
  /**
4645
4645
  Construct a text selection between the given points.
4646
4646
  */
@@ -4657,7 +4657,7 @@ class oe extends ye {
4657
4657
  map(e, n) {
4658
4658
  let r = e.resolve(n.map(this.head));
4659
4659
  if (!r.parent.inlineContent)
4660
- return ye.near(r);
4660
+ return we.near(r);
4661
4661
  let s = e.resolve(n.map(this.anchor));
4662
4662
  return new oe(s.parent.inlineContent ? s : r, r);
4663
4663
  }
@@ -4702,16 +4702,16 @@ class oe extends ye {
4702
4702
  static between(e, n, r) {
4703
4703
  let s = e.pos - n.pos;
4704
4704
  if ((!r || s) && (r = s >= 0 ? 1 : -1), !n.parent.inlineContent) {
4705
- let i = ye.findFrom(n, r, !0) || ye.findFrom(n, -r, !0);
4705
+ let i = we.findFrom(n, r, !0) || we.findFrom(n, -r, !0);
4706
4706
  if (i)
4707
4707
  n = i.$head;
4708
4708
  else
4709
- return ye.near(n, r);
4709
+ return we.near(n, r);
4710
4710
  }
4711
- return e.parent.inlineContent || (s == 0 ? e = n : (e = (ye.findFrom(e, -r, !0) || ye.findFrom(e, r, !0)).$anchor, e.pos < n.pos != s < 0 && (e = n))), new oe(e, n);
4711
+ return e.parent.inlineContent || (s == 0 ? e = n : (e = (we.findFrom(e, -r, !0) || we.findFrom(e, r, !0)).$anchor, e.pos < n.pos != s < 0 && (e = n))), new oe(e, n);
4712
4712
  }
4713
4713
  }
4714
- ye.jsonID("text", oe);
4714
+ we.jsonID("text", oe);
4715
4715
  class va {
4716
4716
  constructor(e, n) {
4717
4717
  this.anchor = e, this.head = n;
@@ -4723,7 +4723,7 @@ class va {
4723
4723
  return oe.between(e.resolve(this.anchor), e.resolve(this.head));
4724
4724
  }
4725
4725
  }
4726
- class ae extends ye {
4726
+ class ae extends we {
4727
4727
  /**
4728
4728
  Create a node selection. Does not verify the validity of its
4729
4729
  argument.
@@ -4734,7 +4734,7 @@ class ae extends ye {
4734
4734
  }
4735
4735
  map(e, n) {
4736
4736
  let { deleted: r, pos: s } = n.mapResult(this.anchor), i = e.resolve(s);
4737
- return r ? ye.near(i) : new ae(i);
4737
+ return r ? we.near(i) : new ae(i);
4738
4738
  }
4739
4739
  content() {
4740
4740
  return new j($.from(this.node), 0, 0);
@@ -4771,7 +4771,7 @@ class ae extends ye {
4771
4771
  }
4772
4772
  }
4773
4773
  ae.prototype.visible = !1;
4774
- ye.jsonID("node", ae);
4774
+ we.jsonID("node", ae);
4775
4775
  class uu {
4776
4776
  constructor(e) {
4777
4777
  this.anchor = e;
@@ -4782,10 +4782,10 @@ class uu {
4782
4782
  }
4783
4783
  resolve(e) {
4784
4784
  let n = e.resolve(this.anchor), r = n.nodeAfter;
4785
- return r && ae.isSelectable(r) ? new ae(n) : ye.near(n);
4785
+ return r && ae.isSelectable(r) ? new ae(n) : we.near(n);
4786
4786
  }
4787
4787
  }
4788
- class Gt extends ye {
4788
+ class Gt extends we {
4789
4789
  /**
4790
4790
  Create an all-selection over the given document.
4791
4791
  */
@@ -4795,7 +4795,7 @@ class Gt extends ye {
4795
4795
  replace(e, n = j.empty) {
4796
4796
  if (n == j.empty) {
4797
4797
  e.delete(0, e.doc.content.size);
4798
- let r = ye.atStart(e.doc);
4798
+ let r = we.atStart(e.doc);
4799
4799
  r.eq(e.selection) || e.setSelection(r);
4800
4800
  } else
4801
4801
  super.replace(e, n);
@@ -4819,7 +4819,7 @@ class Gt extends ye {
4819
4819
  return ny;
4820
4820
  }
4821
4821
  }
4822
- ye.jsonID("all", Gt);
4822
+ we.jsonID("all", Gt);
4823
4823
  const ny = {
4824
4824
  map() {
4825
4825
  return this;
@@ -4855,7 +4855,7 @@ function Cf(t, e, n) {
4855
4855
  let i = t.mapping.maps[r], o;
4856
4856
  i.forEach((a, l, c, u) => {
4857
4857
  o == null && (o = u);
4858
- }), t.setSelection(ye.near(t.doc.resolve(o), n));
4858
+ }), t.setSelection(we.near(t.doc.resolve(o), n));
4859
4859
  }
4860
4860
  const _f = 1, Fi = 2, Tf = 4;
4861
4861
  class ry extends cu {
@@ -4970,7 +4970,7 @@ class ry extends cu {
4970
4970
  let o = this.doc.resolve(n);
4971
4971
  i = r == n ? o.marks() : o.marksAcross(this.doc.resolve(r));
4972
4972
  }
4973
- return this.replaceRangeWith(n, r, s.text(e, i)), !this.selection.empty && this.selection.to == n + e.length && this.setSelection(ye.near(this.selection.$to)), this;
4973
+ return this.replaceRangeWith(n, r, s.text(e, i)), !this.selection.empty && this.selection.to == n + e.length && this.setSelection(we.near(this.selection.$to)), this;
4974
4974
  }
4975
4975
  }
4976
4976
  /**
@@ -5028,7 +5028,7 @@ const sy = [
5028
5028
  }),
5029
5029
  new qs("selection", {
5030
5030
  init(t, e) {
5031
- return t.selection || ye.atStart(e.doc);
5031
+ return t.selection || we.atStart(e.doc);
5032
5032
  },
5033
5033
  apply(t) {
5034
5034
  return t.selection;
@@ -5208,7 +5208,7 @@ class Es {
5208
5208
  if (o.name == "doc")
5209
5209
  i.doc = mr.fromJSON(e.schema, n.doc);
5210
5210
  else if (o.name == "selection")
5211
- i.selection = ye.fromJSON(i.doc, n.selection);
5211
+ i.selection = we.fromJSON(i.doc, n.selection);
5212
5212
  else if (o.name == "storedMarks")
5213
5213
  n.storedMarks && (i.storedMarks = n.storedMarks.map(e.schema.markFromJSON));
5214
5214
  else {
@@ -5294,7 +5294,7 @@ const km = (t, e, n) => {
5294
5294
  if (a && a.slice.size < a.to - a.from) {
5295
5295
  if (e) {
5296
5296
  let l = t.tr.step(a);
5297
- l.setSelection(Cs(i, "end") ? ye.findFrom(l.doc.resolve(l.mapping.map(s.pos, -1)), -1) : ae.create(l.doc, s.pos - i.nodeSize)), e(l.scrollIntoView());
5297
+ l.setSelection(Cs(i, "end") ? we.findFrom(l.doc.resolve(l.mapping.map(s.pos, -1)), -1) : ae.create(l.doc, s.pos - i.nodeSize)), e(l.scrollIntoView());
5298
5298
  }
5299
5299
  return !0;
5300
5300
  }
@@ -5393,7 +5393,7 @@ const Cm = (t, e, n) => {
5393
5393
  if (o && o.slice.size < o.to - o.from) {
5394
5394
  if (e) {
5395
5395
  let a = t.tr.step(o);
5396
- a.setSelection(Cs(i, "start") ? ye.findFrom(a.doc.resolve(a.mapping.map(s.pos)), 1) : ae.create(a.doc, a.mapping.map(s.pos))), e(a.scrollIntoView());
5396
+ a.setSelection(Cs(i, "start") ? we.findFrom(a.doc.resolve(a.mapping.map(s.pos)), 1) : ae.create(a.doc, a.mapping.map(s.pos))), e(a.scrollIntoView());
5397
5397
  }
5398
5398
  return !0;
5399
5399
  }
@@ -5469,7 +5469,7 @@ const uy = (t, e) => {
5469
5469
  return !1;
5470
5470
  if (e) {
5471
5471
  let a = n.after(), l = t.tr.replaceWith(a, a, o.createAndFill());
5472
- l.setSelection(ye.near(l.doc.resolve(a), 1)), e(l.scrollIntoView());
5472
+ l.setSelection(we.near(l.doc.resolve(a), 1)), e(l.scrollIntoView());
5473
5473
  }
5474
5474
  return !0;
5475
5475
  }, Nm = (t, e) => {
@@ -5549,7 +5549,7 @@ function Om(t, e, n, r) {
5549
5549
  }
5550
5550
  return !0;
5551
5551
  }
5552
- let u = i.type.spec.isolating || r > 0 && l ? null : ye.findFrom(e, 1), d = u && u.$from.blockRange(u.$to), f = d && Ds(d);
5552
+ let u = i.type.spec.isolating || r > 0 && l ? null : we.findFrom(e, 1), d = u && u.$from.blockRange(u.$to), f = d && Ds(d);
5553
5553
  if (f != null && f >= e.depth)
5554
5554
  return n && n(t.tr.lift(d, f).scrollIntoView()), !0;
5555
5555
  if (c && Cs(i, "start", !0) && Cs(s, "end")) {
@@ -7308,7 +7308,7 @@ function ow(t) {
7308
7308
  }
7309
7309
  function Tc(t, e) {
7310
7310
  let { $anchor: n, $head: r } = t.selection, s = e > 0 ? n.max(r) : n.min(r), i = s.parent.inlineContent ? s.depth ? t.doc.resolve(e > 0 ? s.after() : s.before()) : null : s;
7311
- return i && ye.findFrom(i, e);
7311
+ return i && we.findFrom(i, e);
7312
7312
  }
7313
7313
  function sr(t, e) {
7314
7314
  return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
@@ -7495,7 +7495,7 @@ function jf(t, e, n) {
7495
7495
  return sr(t, o);
7496
7496
  }
7497
7497
  if (!s.parent.inlineContent) {
7498
- let o = e < 0 ? s : i, a = r instanceof Gt ? ye.near(o, e) : ye.findFrom(o, e);
7498
+ let o = e < 0 ? s : i, a = r instanceof Gt ? we.near(o, e) : we.findFrom(o, e);
7499
7499
  return a ? sr(t, a) : !1;
7500
7500
  }
7501
7501
  return !1;
@@ -7943,7 +7943,7 @@ class Iw {
7943
7943
  // (hidden) cursor is doesn't change the selection, and
7944
7944
  // thus doesn't get a reaction from ProseMirror. This
7945
7945
  // works around that.
7946
- Tt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (xs(this.view, ye.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : fr(this.view, "pointer");
7946
+ Tt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (xs(this.view, we.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : fr(this.view, "pointer");
7947
7947
  }
7948
7948
  move(e) {
7949
7949
  this.updateAllowDefault(e), fr(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -8814,7 +8814,7 @@ class qw {
8814
8814
  }
8815
8815
  }
8816
8816
  let c = null;
8817
- i < 0 && s && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && ya(r) && (c = bu(e)) && c.eq(ye.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, jn(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || s) && (i > -1 && (e.docView.markDirty(i, o), Gw(e)), this.handleDOMChange(i, o, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || jn(e), this.currentSelection.set(r));
8817
+ i < 0 && s && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && ya(r) && (c = bu(e)) && c.eq(we.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, jn(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || s) && (i > -1 && (e.docView.markDirty(i, o), Gw(e)), this.handleDOMChange(i, o, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || jn(e), this.currentSelection.set(r));
8818
8818
  }
8819
8819
  registerMutation(e, n) {
8820
8820
  if (n.indexOf(e.target) > -1)
@@ -9887,7 +9887,7 @@ function Kn(t = 0, e = 0, n = 0) {
9887
9887
  function mg(t, e = null) {
9888
9888
  if (!e)
9889
9889
  return null;
9890
- const n = ye.atStart(t), r = ye.atEnd(t);
9890
+ const n = we.atStart(t), r = we.atEnd(t);
9891
9891
  if (e === "start" || e === !0)
9892
9892
  return n;
9893
9893
  if (e === "end")
@@ -9994,7 +9994,7 @@ function OE(t, e, n) {
9994
9994
  let o = 0;
9995
9995
  i.forEach((a, l, c, u) => {
9996
9996
  o === 0 && (o = u);
9997
- }), t.setSelection(ye.near(t.doc.resolve(o), n));
9997
+ }), t.setSelection(we.near(t.doc.resolve(o), n));
9998
9998
  }
9999
9999
  var RE = (t) => !("type" in t), IE = (t, e, n) => ({ tr: r, dispatch: s, editor: i }) => {
10000
10000
  var o;
@@ -11307,12 +11307,12 @@ function Kk(t) {
11307
11307
  Vk(T, i.find, o).forEach((K) => {
11308
11308
  if (K.index === void 0)
11309
11309
  return;
11310
- const X = O + K.index + 1, ve = X + K[0].length, Ee = {
11310
+ const X = O + K.index + 1, ye = X + K[0].length, ke = {
11311
11311
  from: n.tr.mapping.map(X),
11312
- to: n.tr.mapping.map(ve)
11313
- }, he = i.handler({
11312
+ to: n.tr.mapping.map(ye)
11313
+ }, pe = i.handler({
11314
11314
  state: n,
11315
- range: Ee,
11315
+ range: ke,
11316
11316
  match: K,
11317
11317
  commands: l,
11318
11318
  chain: c,
@@ -11320,7 +11320,7 @@ function Kk(t) {
11320
11320
  pasteEvent: o,
11321
11321
  dropEvent: a
11322
11322
  });
11323
- d.push(he);
11323
+ d.push(pe);
11324
11324
  });
11325
11325
  }), d.every((h) => h !== null);
11326
11326
  }
@@ -11799,7 +11799,7 @@ var Ie = class Rg extends Lu {
11799
11799
  () => o.undoInputRule(),
11800
11800
  // maybe convert first text block node to default node
11801
11801
  () => o.command(({ tr: a }) => {
11802
- const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, v = g && p.parent.childCount === 1 ? m === d.pos : ye.atStart(c).from === f;
11802
+ const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, v = g && p.parent.childCount === 1 ? m === d.pos : we.atStart(c).from === f;
11803
11803
  return !u || !h.type.isTextblock || h.textContent.length || !v || v && d.parent.type.name === "paragraph" ? !1 : o.clearNodes();
11804
11804
  }),
11805
11805
  () => o.deleteSelection(),
@@ -11854,7 +11854,7 @@ var Ie = class Rg extends Lu {
11854
11854
  const r = t.some((g) => g.docChanged) && !e.doc.eq(n.doc), s = t.some((g) => g.getMeta("preventClearDocument"));
11855
11855
  if (!r || s)
11856
11856
  return;
11857
- const { empty: i, from: o, to: a } = e.selection, l = ye.atStart(e.doc).from, c = ye.atEnd(e.doc).to;
11857
+ const { empty: i, from: o, to: a } = e.selection, l = we.atStart(e.doc).from, c = we.atEnd(e.doc).to;
11858
11858
  if (i || !(o === l && a === c) || !_a(n.doc))
11859
11859
  return;
11860
11860
  const f = n.tr, h = ka({
@@ -13007,22 +13007,22 @@ function sx(t) {
13007
13007
  const K = T.exec(P);
13008
13008
  if (K === null)
13009
13009
  break;
13010
- const X = K.index, ve = K[1];
13010
+ const X = K.index, ye = K[1];
13011
13011
  if (!((p = K[2]) != null && p.endsWith(":::"))) {
13012
- if (ve)
13012
+ if (ye)
13013
13013
  _ += 1;
13014
13014
  else if (_ -= 1, _ === 0) {
13015
- const Ee = P.slice(0, X);
13016
- R = Ee.trim();
13017
- const he = d.slice(0, O + X + K[0].length);
13015
+ const ke = P.slice(0, X);
13016
+ R = ke.trim();
13017
+ const pe = d.slice(0, O + X + K[0].length);
13018
13018
  let ee = [];
13019
13019
  if (R)
13020
13020
  if (a === "block")
13021
- for (ee = h.blockTokens(Ee), ee.forEach((ue) => {
13022
- ue.text && (!ue.tokens || ue.tokens.length === 0) && (ue.tokens = h.inlineTokens(ue.text));
13021
+ for (ee = h.blockTokens(ke), ee.forEach((de) => {
13022
+ de.text && (!de.tokens || de.tokens.length === 0) && (de.tokens = h.inlineTokens(de.text));
13023
13023
  }); ee.length > 0; ) {
13024
- const ue = ee[ee.length - 1];
13025
- if (ue.type === "paragraph" && (!ue.text || ue.text.trim() === ""))
13024
+ const de = ee[ee.length - 1];
13025
+ if (de.type === "paragraph" && (!de.text || de.text.trim() === ""))
13026
13026
  ee.pop();
13027
13027
  else
13028
13028
  break;
@@ -13031,7 +13031,7 @@ function sx(t) {
13031
13031
  ee = h.inlineTokens(R);
13032
13032
  return {
13033
13033
  type: e,
13034
- raw: he,
13034
+ raw: pe,
13035
13035
  attributes: C,
13036
13036
  content: R,
13037
13037
  tokens: ee
@@ -13419,7 +13419,7 @@ var ux = class extends Zk {
13419
13419
  const e = super.unregisterPlugin(t);
13420
13420
  return this.reactiveState && e && (this.reactiveState.value = e), e;
13421
13421
  }
13422
- }, dx = de({
13422
+ }, dx = he({
13423
13423
  name: "EditorContent",
13424
13424
  props: {
13425
13425
  editor: {
@@ -13459,7 +13459,7 @@ var ux = class extends Zk {
13459
13459
  });
13460
13460
  }
13461
13461
  });
13462
- de({
13462
+ he({
13463
13463
  name: "NodeViewContent",
13464
13464
  props: {
13465
13465
  as: {
@@ -13476,7 +13476,7 @@ de({
13476
13476
  });
13477
13477
  }
13478
13478
  });
13479
- var Kg = de({
13479
+ var Kg = he({
13480
13480
  name: "NodeViewWrapper",
13481
13481
  props: {
13482
13482
  as: {
@@ -13528,7 +13528,7 @@ var Kg = de({
13528
13528
  this.renderedComponent.destroy();
13529
13529
  }
13530
13530
  };
13531
- de({
13531
+ he({
13532
13532
  name: "MarkViewContent",
13533
13533
  props: {
13534
13534
  as: {
@@ -13606,7 +13606,7 @@ var hx = {
13606
13606
  deleteNode: () => this.deleteNode()
13607
13607
  }, e = this.onDragStart.bind(this);
13608
13608
  this.decorationClasses = S(this.getDecorationClasses());
13609
- const n = de({
13609
+ const n = he({
13610
13610
  extends: { ...this.component },
13611
13611
  props: Object.keys(t),
13612
13612
  template: this.component.template,
@@ -14067,7 +14067,7 @@ ${n}
14067
14067
  if (!i || s.parent.type !== this.type || !(s.parentOffset === s.parent.nodeSize - 2))
14068
14068
  return !1;
14069
14069
  const a = s.after();
14070
- return a === void 0 ? !1 : r.nodeAt(a) ? t.commands.command(({ tr: c }) => (c.setSelection(ye.near(r.resolve(a))), !0)) : t.commands.exitCode();
14070
+ return a === void 0 ? !1 : r.nodeAt(a) ? t.commands.command(({ tr: c }) => (c.setSelection(we.near(r.resolve(a))), !0)) : t.commands.exitCode();
14071
14071
  }
14072
14072
  };
14073
14073
  },
@@ -14489,7 +14489,7 @@ Ht.prototype = {
14489
14489
  return s.j[t] = o, o;
14490
14490
  }
14491
14491
  };
14492
- const Me = (t, e, n, r, s) => t.ta(e, n, r, s), st = (t, e, n, r, s) => t.tr(e, n, r, s), yh = (t, e, n, r, s) => t.ts(e, n, r, s), H = (t, e, n, r, s) => t.tt(e, n, r, s), Hn = "WORD", Fc = "UWORD", Qg = "ASCIINUMERICAL", eb = "ALPHANUMERICAL", mi = "LOCALHOST", Uc = "TLD", Wc = "UTLD", po = "SCHEME", vs = "SLASH_SCHEME", Pu = "NUM", Vc = "WS", zu = "NL", ei = "OPENBRACE", ti = "CLOSEBRACE", Io = "OPENBRACKET", Lo = "CLOSEBRACKET", Do = "OPENPAREN", $o = "CLOSEPAREN", Bo = "OPENANGLEBRACKET", Po = "CLOSEANGLEBRACKET", zo = "FULLWIDTHLEFTPAREN", Ho = "FULLWIDTHRIGHTPAREN", Fo = "LEFTCORNERBRACKET", Uo = "RIGHTCORNERBRACKET", Wo = "LEFTWHITECORNERBRACKET", Vo = "RIGHTWHITECORNERBRACKET", Ko = "FULLWIDTHLESSTHAN", qo = "FULLWIDTHGREATERTHAN", Go = "AMPERSAND", jo = "APOSTROPHE", Yo = "ASTERISK", ir = "AT", Xo = "BACKSLASH", Jo = "BACKTICK", Zo = "CARET", lr = "COLON", Hu = "COMMA", Qo = "DOLLAR", Sn = "DOT", ea = "EQUALS", Fu = "EXCLAMATION", Zt = "HYPHEN", ni = "PERCENT", ta = "PIPE", na = "PLUS", ra = "POUND", ri = "QUERY", Uu = "QUOTE", tb = "FULLWIDTHMIDDLEDOT", Wu = "SEMI", Mn = "SLASH", si = "TILDE", sa = "UNDERSCORE", nb = "EMOJI", ia = "SYM";
14492
+ const Ce = (t, e, n, r, s) => t.ta(e, n, r, s), st = (t, e, n, r, s) => t.tr(e, n, r, s), yh = (t, e, n, r, s) => t.ts(e, n, r, s), H = (t, e, n, r, s) => t.tt(e, n, r, s), Hn = "WORD", Fc = "UWORD", Qg = "ASCIINUMERICAL", eb = "ALPHANUMERICAL", mi = "LOCALHOST", Uc = "TLD", Wc = "UTLD", po = "SCHEME", vs = "SLASH_SCHEME", Pu = "NUM", Vc = "WS", zu = "NL", ei = "OPENBRACE", ti = "CLOSEBRACE", Io = "OPENBRACKET", Lo = "CLOSEBRACKET", Do = "OPENPAREN", $o = "CLOSEPAREN", Bo = "OPENANGLEBRACKET", Po = "CLOSEANGLEBRACKET", zo = "FULLWIDTHLEFTPAREN", Ho = "FULLWIDTHRIGHTPAREN", Fo = "LEFTCORNERBRACKET", Uo = "RIGHTCORNERBRACKET", Wo = "LEFTWHITECORNERBRACKET", Vo = "RIGHTWHITECORNERBRACKET", Ko = "FULLWIDTHLESSTHAN", qo = "FULLWIDTHGREATERTHAN", Go = "AMPERSAND", jo = "APOSTROPHE", Yo = "ASTERISK", ir = "AT", Xo = "BACKSLASH", Jo = "BACKTICK", Zo = "CARET", lr = "COLON", Hu = "COMMA", Qo = "DOLLAR", Sn = "DOT", ea = "EQUALS", Fu = "EXCLAMATION", Zt = "HYPHEN", ni = "PERCENT", ta = "PIPE", na = "PLUS", ra = "POUND", ri = "QUERY", Uu = "QUOTE", tb = "FULLWIDTHMIDDLEDOT", Wu = "SEMI", Mn = "SLASH", si = "TILDE", sa = "UNDERSCORE", nb = "EMOJI", ia = "SYM";
14493
14493
  var rb = /* @__PURE__ */ Object.freeze({
14494
14494
  __proto__: null,
14495
14495
  ALPHANUMERICAL: eb,
@@ -14912,34 +14912,34 @@ function Kx({
14912
14912
  groups: t
14913
14913
  }) {
14914
14914
  const e = t.domain.concat([Go, Yo, ir, Xo, Jo, Zo, Qo, ea, Zt, Pu, ni, ta, na, ra, Mn, ia, si, sa]), n = [jo, lr, Hu, Sn, Fu, ni, ri, Uu, Wu, Bo, Po, ei, ti, Lo, Io, Do, $o, zo, Ho, Fo, Uo, Wo, Vo, Ko, qo], r = [Go, jo, Yo, Xo, Jo, Zo, Qo, ea, Zt, ei, ti, ni, ta, na, ra, ri, Mn, ia, si, sa], s = Xt(), i = H(s, si);
14915
- Me(i, r, i), Me(i, t.domain, i);
14915
+ Ce(i, r, i), Ce(i, t.domain, i);
14916
14916
  const o = Xt(), a = Xt(), l = Xt();
14917
- Me(s, t.domain, o), Me(s, t.scheme, a), Me(s, t.slashscheme, l), Me(o, r, i), Me(o, t.domain, o);
14917
+ Ce(s, t.domain, o), Ce(s, t.scheme, a), Ce(s, t.slashscheme, l), Ce(o, r, i), Ce(o, t.domain, o);
14918
14918
  const c = H(o, ir);
14919
14919
  H(i, ir, c), H(a, ir, c), H(l, ir, c);
14920
14920
  const u = H(i, Sn);
14921
- Me(u, r, i), Me(u, t.domain, i);
14921
+ Ce(u, r, i), Ce(u, t.domain, i);
14922
14922
  const d = Xt();
14923
- Me(c, t.domain, d), Me(d, t.domain, d);
14923
+ Ce(c, t.domain, d), Ce(d, t.domain, d);
14924
14924
  const f = H(d, Sn);
14925
- Me(f, t.domain, d);
14925
+ Ce(f, t.domain, d);
14926
14926
  const h = Xt(xh);
14927
- Me(f, t.tld, h), Me(f, t.utld, h), H(c, mi, h);
14927
+ Ce(f, t.tld, h), Ce(f, t.utld, h), H(c, mi, h);
14928
14928
  const p = H(d, Zt);
14929
- H(p, Zt, p), Me(p, t.domain, d), Me(h, t.domain, d), H(h, Sn, f), H(h, Zt, p);
14929
+ H(p, Zt, p), Ce(p, t.domain, d), Ce(h, t.domain, d), H(h, Sn, f), H(h, Zt, p);
14930
14930
  const g = H(h, lr);
14931
- Me(g, t.numeric, xh);
14931
+ Ce(g, t.numeric, xh);
14932
14932
  const m = H(o, Zt), v = H(o, Sn);
14933
- H(m, Zt, m), Me(m, t.domain, o), Me(v, r, i), Me(v, t.domain, o);
14933
+ H(m, Zt, m), Ce(m, t.domain, o), Ce(v, r, i), Ce(v, t.domain, o);
14934
14934
  const k = Xt(ji);
14935
- Me(v, t.tld, k), Me(v, t.utld, k), Me(k, t.domain, o), Me(k, r, i), H(k, Sn, v), H(k, Zt, m), H(k, ir, c);
14935
+ Ce(v, t.tld, k), Ce(v, t.utld, k), Ce(k, t.domain, o), Ce(k, r, i), H(k, Sn, v), H(k, Zt, m), H(k, ir, c);
14936
14936
  const C = H(k, lr), _ = Xt(ji);
14937
- Me(C, t.numeric, _);
14937
+ Ce(C, t.numeric, _);
14938
14938
  const O = Xt(ji), R = Xt();
14939
- Me(O, e, O), Me(O, n, R), Me(R, e, O), Me(R, n, R), H(k, Mn, O), H(_, Mn, O);
14939
+ Ce(O, e, O), Ce(O, n, R), Ce(R, e, O), Ce(R, n, R), H(k, Mn, O), H(_, Mn, O);
14940
14940
  const T = H(a, lr), P = H(l, lr), K = H(P, Mn), X = H(K, Mn);
14941
- Me(a, t.domain, o), H(a, Sn, v), H(a, Zt, m), Me(l, t.domain, o), H(l, Sn, v), H(l, Zt, m), Me(T, t.domain, O), H(T, Mn, O), H(T, ri, O), Me(X, t.domain, O), Me(X, e, O), H(X, Mn, O);
14942
- const ve = [
14941
+ Ce(a, t.domain, o), H(a, Sn, v), H(a, Zt, m), Ce(l, t.domain, o), H(l, Sn, v), H(l, Zt, m), Ce(T, t.domain, O), H(T, Mn, O), H(T, ri, O), Ce(X, t.domain, O), Ce(X, e, O), H(X, Mn, O);
14942
+ const ye = [
14943
14943
  [ei, ti],
14944
14944
  // {}
14945
14945
  [Io, Lo],
@@ -14957,13 +14957,13 @@ function Kx({
14957
14957
  [Ko, qo]
14958
14958
  // <>
14959
14959
  ];
14960
- for (let Ee = 0; Ee < ve.length; Ee++) {
14961
- const [he, ee] = ve[Ee], ue = H(O, he);
14962
- H(R, he, ue), H(ue, ee, O);
14960
+ for (let ke = 0; ke < ye.length; ke++) {
14961
+ const [pe, ee] = ye[ke], de = H(O, pe);
14962
+ H(R, pe, de), H(de, ee, O);
14963
14963
  const I = Xt(ji);
14964
- Me(ue, e, I);
14964
+ Ce(de, e, I);
14965
14965
  const x = Xt();
14966
- Me(ue, n), Me(I, e, I), Me(I, n, x), Me(x, e, I), Me(x, n, x), H(I, ee, O), H(x, ee, O);
14966
+ Ce(de, n), Ce(I, e, I), Ce(I, n, x), Ce(x, e, I), Ce(x, n, x), H(I, ee, O), H(x, ee, O);
14967
14967
  }
14968
14968
  return H(s, mi, k), H(s, zu, Vx), {
14969
14969
  start: s,
@@ -16279,7 +16279,7 @@ class SS {
16279
16279
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
16280
16280
  }
16281
16281
  }
16282
- class ot extends ye {
16282
+ class ot extends we {
16283
16283
  /**
16284
16284
  Create a gap cursor.
16285
16285
  */
@@ -16288,7 +16288,7 @@ class ot extends ye {
16288
16288
  }
16289
16289
  map(e, n) {
16290
16290
  let r = e.resolve(n.map(this.head));
16291
- return ot.valid(r) ? new ot(r) : ye.near(r);
16291
+ return ot.valid(r) ? new ot(r) : we.near(r);
16292
16292
  }
16293
16293
  content() {
16294
16294
  return j.empty;
@@ -16366,7 +16366,7 @@ class ot extends ye {
16366
16366
  }
16367
16367
  ot.prototype.visible = !1;
16368
16368
  ot.findFrom = ot.findGapCursorFrom;
16369
- ye.jsonID("gapcursor", ot);
16369
+ we.jsonID("gapcursor", ot);
16370
16370
  class ju {
16371
16371
  constructor(e) {
16372
16372
  this.pos = e;
@@ -16376,7 +16376,7 @@ class ju {
16376
16376
  }
16377
16377
  resolve(e) {
16378
16378
  let n = e.resolve(this.pos);
16379
- return ot.valid(n) ? new ot(n) : ye.near(n);
16379
+ return ot.valid(n) ? new ot(n) : we.near(n);
16380
16380
  }
16381
16381
  }
16382
16382
  function vb(t) {
@@ -17421,12 +17421,12 @@ const aM = (t) => ({
17421
17421
  }, h = Xu(s), p = Yu(h), g = await o.getDimensions(c), m = h === "y", v = m ? "top" : "left", k = m ? "bottom" : "right", C = m ? "clientHeight" : "clientWidth", _ = i.reference[p] + i.reference[h] - f[h] - i.floating[p], O = f[h] - i.reference[h], R = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
17422
17422
  let T = R ? R[C] : 0;
17423
17423
  (!T || !await (o.isElement == null ? void 0 : o.isElement(R))) && (T = a.floating[C] || i.floating[p]);
17424
- const P = _ / 2 - O / 2, K = T / 2 - g[p] / 2 - 1, X = On(d[v], K), ve = On(d[k], K), Ee = X, he = T - g[p] - ve, ee = T / 2 - g[p] / 2 + P, ue = Gc(Ee, ee, he), I = !l.arrow && fn(s) != null && ee !== ue && i.reference[p] / 2 - (ee < Ee ? X : ve) - g[p] / 2 < 0, x = I ? ee < Ee ? ee - Ee : ee - he : 0;
17424
+ const P = _ / 2 - O / 2, K = T / 2 - g[p] / 2 - 1, X = On(d[v], K), ye = On(d[k], K), ke = X, pe = T - g[p] - ye, ee = T / 2 - g[p] / 2 + P, de = Gc(ke, ee, pe), I = !l.arrow && fn(s) != null && ee !== de && i.reference[p] / 2 - (ee < ke ? X : ye) - g[p] / 2 < 0, x = I ? ee < ke ? ee - ke : ee - pe : 0;
17425
17425
  return {
17426
17426
  [h]: f[h] + x,
17427
17427
  data: {
17428
- [h]: ue,
17429
- centerOffset: ee - ue - x,
17428
+ [h]: de,
17429
+ centerOffset: ee - de - x,
17430
17430
  ...I && {
17431
17431
  alignmentOffset: x
17432
17432
  }
@@ -17481,20 +17481,20 @@ const cM = function(t) {
17481
17481
  }
17482
17482
  };
17483
17483
  const T = O.map((X) => {
17484
- const ve = fn(X.placement);
17485
- return [X.placement, ve && u ? (
17484
+ const ye = fn(X.placement);
17485
+ return [X.placement, ye && u ? (
17486
17486
  // Check along the mainAxis and main crossAxis side.
17487
- X.overflows.slice(0, 2).reduce((Ee, he) => Ee + he, 0)
17487
+ X.overflows.slice(0, 2).reduce((ke, pe) => ke + pe, 0)
17488
17488
  ) : (
17489
17489
  // Check only the mainAxis.
17490
17490
  X.overflows[0]
17491
17491
  ), X.overflows];
17492
- }).sort((X, ve) => X[1] - ve[1]), K = ((s = T.filter((X) => X[2].slice(
17492
+ }).sort((X, ye) => X[1] - ye[1]), K = ((s = T.filter((X) => X[2].slice(
17493
17493
  0,
17494
17494
  // Aligned placements should not check their opposite crossAxis
17495
17495
  // side.
17496
17496
  fn(X[0]) ? 2 : 3
17497
- ).every((ve) => ve <= 0))[0]) == null ? void 0 : s[0]) || T[0][0];
17497
+ ).every((ye) => ye <= 0))[0]) == null ? void 0 : s[0]) || T[0][0];
17498
17498
  return K !== a ? {
17499
17499
  data: {
17500
17500
  index: v + 1,
@@ -17542,9 +17542,9 @@ const cM = function(t) {
17542
17542
  placement: s,
17543
17543
  overflows: K
17544
17544
  }], !K.every((ee) => ee <= 0)) {
17545
- var ve, Ee;
17546
- const ee = (((ve = i.flip) == null ? void 0 : ve.index) || 0) + 1, ue = T[ee];
17547
- if (ue && (!(d === "alignment" ? k !== _n(ue) : !1) || // We leave the current main axis only if every placement on that axis
17545
+ var ye, ke;
17546
+ const ee = (((ye = i.flip) == null ? void 0 : ye.index) || 0) + 1, de = T[ee];
17547
+ if (de && (!(d === "alignment" ? k !== _n(de) : !1) || // We leave the current main axis only if every placement on that axis
17548
17548
  // overflows the main axis.
17549
17549
  X.every((A) => _n(A.placement) === k ? A.overflows[0] > 0 : !0)))
17550
17550
  return {
@@ -17553,15 +17553,15 @@ const cM = function(t) {
17553
17553
  overflows: X
17554
17554
  },
17555
17555
  reset: {
17556
- placement: ue
17556
+ placement: de
17557
17557
  }
17558
17558
  };
17559
- let I = (Ee = X.filter((x) => x.overflows[0] <= 0).sort((x, A) => x.overflows[1] - A.overflows[1])[0]) == null ? void 0 : Ee.placement;
17559
+ let I = (ke = X.filter((x) => x.overflows[0] <= 0).sort((x, A) => x.overflows[1] - A.overflows[1])[0]) == null ? void 0 : ke.placement;
17560
17560
  if (!I)
17561
17561
  switch (h) {
17562
17562
  case "bestFit": {
17563
- var he;
17564
- const x = (he = X.filter((A) => {
17563
+ var pe;
17564
+ const x = (pe = X.filter((A) => {
17565
17565
  if (R) {
17566
17566
  const F = _n(A.placement);
17567
17567
  return F === k || // Create a bias to the `y` side axis due to horizontal
@@ -17569,7 +17569,7 @@ const cM = function(t) {
17569
17569
  F === "y";
17570
17570
  }
17571
17571
  return !0;
17572
- }).map((A) => [A.placement, A.overflows.filter((F) => F > 0).reduce((F, Y) => F + Y, 0)]).sort((A, F) => A[1] - F[1])[0]) == null ? void 0 : he[0];
17572
+ }).map((A) => [A.placement, A.overflows.filter((F) => F > 0).reduce((F, Y) => F + Y, 0)]).sort((A, F) => A[1] - F[1])[0]) == null ? void 0 : pe[0];
17573
17573
  x && (I = x);
17574
17574
  break;
17575
17575
  }
@@ -17680,16 +17680,16 @@ const hM = function(t) {
17680
17680
  return d.find((m) => l > m.left - h.left && l < m.right + h.right && c > m.top - h.top && c < m.bottom + h.bottom) || f;
17681
17681
  if (d.length >= 2) {
17682
17682
  if (_n(n) === "y") {
17683
- const X = d[0], ve = d[d.length - 1], Ee = rn(n) === "top", he = X.top, ee = ve.bottom, ue = Ee ? X.left : ve.left, I = Ee ? X.right : ve.right, x = I - ue, A = ee - he;
17683
+ const X = d[0], ye = d[d.length - 1], ke = rn(n) === "top", pe = X.top, ee = ye.bottom, de = ke ? X.left : ye.left, I = ke ? X.right : ye.right, x = I - de, A = ee - pe;
17684
17684
  return {
17685
- top: he,
17685
+ top: pe,
17686
17686
  bottom: ee,
17687
- left: ue,
17687
+ left: de,
17688
17688
  right: I,
17689
17689
  width: x,
17690
17690
  height: A,
17691
- x: ue,
17692
- y: he
17691
+ x: de,
17692
+ y: pe
17693
17693
  };
17694
17694
  }
17695
17695
  const m = rn(n) === "left", v = It(...d.map((X) => X.right)), k = On(...d.map((X) => X.left)), C = d.filter((X) => m ? X.left === k : X.right === v), _ = C[0].top, O = C[C.length - 1].bottom, R = k, T = v, P = T - R, K = O - _;
@@ -17850,8 +17850,8 @@ const gM = function(t) {
17850
17850
  const k = g - u.top - u.bottom, C = p - u.left - u.right, _ = On(g - u[m], k), O = On(p - u[v], C), R = !e.middlewareData.shift;
17851
17851
  let T = _, P = O;
17852
17852
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (P = C), (r = e.middlewareData.shift) != null && r.enabled.y && (T = k), R && !f) {
17853
- const X = It(u.left, 0), ve = It(u.right, 0), Ee = It(u.top, 0), he = It(u.bottom, 0);
17854
- h ? P = p - 2 * (X !== 0 || ve !== 0 ? X + ve : It(u.left, u.right)) : T = g - 2 * (Ee !== 0 || he !== 0 ? Ee + he : It(u.top, u.bottom));
17853
+ const X = It(u.left, 0), ye = It(u.right, 0), ke = It(u.top, 0), pe = It(u.bottom, 0);
17854
+ h ? P = p - 2 * (X !== 0 || ye !== 0 ? X + ye : It(u.left, u.right)) : T = g - 2 * (ke !== 0 || pe !== 0 ? ke + pe : It(u.top, u.bottom));
17855
17855
  }
17856
17856
  await l({
17857
17857
  ...e,
@@ -18558,7 +18558,7 @@ function iC(t, e, n) {
18558
18558
  return !1;
18559
18559
  return !0;
18560
18560
  }
18561
- var Ve = class Fn extends ye {
18561
+ var Ve = class Fn extends we {
18562
18562
  // A table selection is identified by its anchor and head cells. The
18563
18563
  // positions given to this constructor should point _before_ two
18564
18564
  // cells in the same table. They may be the same, to select a single
@@ -18645,7 +18645,7 @@ var Ve = class Fn extends ye {
18645
18645
  o ? j.empty : n
18646
18646
  );
18647
18647
  }
18648
- const i = ye.findFrom(
18648
+ const i = we.findFrom(
18649
18649
  e.doc.resolve(e.mapping.slice(r).map(this.to)),
18650
18650
  -1
18651
18651
  );
@@ -18723,7 +18723,7 @@ var Ve = class Fn extends ye {
18723
18723
  }
18724
18724
  };
18725
18725
  Ve.prototype.visible = !1;
18726
- ye.jsonID("cell", Ve);
18726
+ we.jsonID("cell", Ve);
18727
18727
  var oC = class Pb {
18728
18728
  constructor(e, n) {
18729
18729
  this.anchor = e, this.head = n;
@@ -18733,7 +18733,7 @@ var oC = class Pb {
18733
18733
  }
18734
18734
  resolve(e) {
18735
18735
  const n = e.resolve(this.anchor), r = e.resolve(this.head);
18736
- return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && ed(n, r) ? new Ve(n, r) : ye.near(r, 1);
18736
+ return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && ed(n, r) ? new Ve(n, r) : we.near(r, 1);
18737
18737
  }
18738
18738
  };
18739
18739
  function aC(t) {
@@ -19523,7 +19523,7 @@ function Ji(t, e) {
19523
19523
  return go(
19524
19524
  n,
19525
19525
  r,
19526
- ye.near(i.$headCell, e)
19526
+ we.near(i.$headCell, e)
19527
19527
  );
19528
19528
  if (t != "horiz" && !i.empty) return !1;
19529
19529
  const o = Wb(s, t, e);
@@ -19532,12 +19532,12 @@ function Ji(t, e) {
19532
19532
  return go(
19533
19533
  n,
19534
19534
  r,
19535
- ye.near(n.doc.resolve(i.head + e), e)
19535
+ we.near(n.doc.resolve(i.head + e), e)
19536
19536
  );
19537
19537
  {
19538
19538
  const a = n.doc.resolve(o), l = $b(a, t, e);
19539
19539
  let c;
19540
- return l ? c = ye.near(l, 1) : e < 0 ? c = ye.near(n.doc.resolve(a.before(-1)), -1) : c = ye.near(n.doc.resolve(a.after(-1)), 1), go(n, r, c);
19540
+ return l ? c = we.near(l, 1) : e < 0 ? c = we.near(n.doc.resolve(a.before(-1)), -1) : c = we.near(n.doc.resolve(a.after(-1)), 1), go(n, r, c);
19541
19541
  }
19542
19542
  };
19543
19543
  }
@@ -20959,7 +20959,7 @@ var b2 = Jb, v2 = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, y2 = /(?:^|\s)
20959
20959
  ];
20960
20960
  }
20961
20961
  }), S2 = x2;
20962
- const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"], N2 = /* @__PURE__ */ de({
20962
+ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"], N2 = /* @__PURE__ */ he({
20963
20963
  __name: "IconCut",
20964
20964
  props: {
20965
20965
  size: {},
@@ -20999,7 +20999,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
20999
20999
  }), A2 = ["src", "alt", "title"], O2 = {
21000
21000
  key: 0,
21001
21001
  class: "image-toolbar"
21002
- }, R2 = { class: "crop-toolbar" }, I2 = ["src"], L2 = /* @__PURE__ */ de({
21002
+ }, R2 = { class: "crop-toolbar" }, I2 = ["src"], L2 = /* @__PURE__ */ he({
21003
21003
  __name: "CustomImageComponent",
21004
21004
  props: {
21005
21005
  decorations: {},
@@ -21043,41 +21043,41 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21043
21043
  le = Math.min(le, f.value);
21044
21044
  const te = le / g.value;
21045
21045
  m.value = Math.max(5, le), v.value = Math.max(5, te);
21046
- }, ke = () => {
21047
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), _(m.value, v.value);
21046
+ }, xe = () => {
21047
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), _(m.value, v.value);
21048
21048
  };
21049
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21049
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21050
21050
  }, P = (J) => {
21051
21051
  const Z = J.clientY, Q = v.value, ie = (w) => {
21052
21052
  let q = Q + (w.clientY - Z);
21053
21053
  q = Math.max(50, Math.min(q, 900)), v.value = q;
21054
- }, ke = () => {
21055
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), _(m.value, v.value);
21054
+ }, xe = () => {
21055
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), _(m.value, v.value);
21056
21056
  };
21057
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21057
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21058
21058
  }, K = (J) => {
21059
21059
  const Z = J.clientX, Q = m.value, ie = (w) => {
21060
21060
  let q = Q + (w.clientX - Z);
21061
21061
  q = Math.max(50, Math.min(q, f.value)), m.value = q;
21062
- }, ke = () => {
21063
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), _(m.value, v.value);
21062
+ }, xe = () => {
21063
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), _(m.value, v.value);
21064
21064
  };
21065
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21065
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21066
21066
  }, X = (J) => {
21067
21067
  var ne, nt;
21068
21068
  J.preventDefault();
21069
21069
  const Z = J.clientX, Q = J.clientY, ie = m.value;
21070
21070
  v.value;
21071
- const ke = g.value, w = ((ne = i.value) == null ? void 0 : ne.offsetLeft) || 0, q = ((nt = i.value) == null ? void 0 : nt.offsetTop) || 0, le = (ze) => {
21072
- let St = Z - ze.clientX, G = Q - ze.clientY, N = Math.max(St, G), D = ie + N, V = D / ke;
21071
+ const xe = g.value, w = ((ne = i.value) == null ? void 0 : ne.offsetLeft) || 0, q = ((nt = i.value) == null ? void 0 : nt.offsetTop) || 0, le = (ze) => {
21072
+ let St = Z - ze.clientX, G = Q - ze.clientY, N = Math.max(St, G), D = ie + N, V = D / xe;
21073
21073
  D = Math.min(Math.max(D, 50), f.value), V = Math.max(V, 50), m.value = D, v.value = V;
21074
21074
  }, te = () => {
21075
21075
  window.removeEventListener("mousemove", le), window.removeEventListener("mouseup", te), _(m.value, v.value), i.value && (i.value.style.left = `${w}px`, i.value.style.top = `${q}px`);
21076
21076
  };
21077
21077
  window.addEventListener("mousemove", le), window.addEventListener("mouseup", te);
21078
- }, ve = (J) => {
21079
- const Z = J.clientX, Q = J.clientY, ie = m.value, ke = v.value, w = (le) => {
21080
- let te = le.clientX - Z, ne = Q - le.clientY, nt = 1 + Math.min(te / ie, ne / ke), ze = Math.max(50, ie * nt);
21078
+ }, ye = (J) => {
21079
+ const Z = J.clientX, Q = J.clientY, ie = m.value, xe = v.value, w = (le) => {
21080
+ let te = le.clientX - Z, ne = Q - le.clientY, nt = 1 + Math.min(te / ie, ne / xe), ze = Math.max(50, ie * nt);
21081
21081
  ze = Math.min(ze, f.value);
21082
21082
  let St = ze / g.value;
21083
21083
  m.value = ze, v.value = St;
@@ -21085,9 +21085,9 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21085
21085
  window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", q), _(m.value, v.value);
21086
21086
  };
21087
21087
  window.addEventListener("mousemove", w), window.addEventListener("mouseup", q);
21088
- }, Ee = (J) => {
21089
- const Z = J.clientX, Q = J.clientY, ie = m.value, ke = v.value, w = (le) => {
21090
- let te = Z - le.clientX, ne = le.clientY - Q, nt = 1 + Math.min(te / ie, ne / ke), ze = Math.max(50, ie * nt);
21088
+ }, ke = (J) => {
21089
+ const Z = J.clientX, Q = J.clientY, ie = m.value, xe = v.value, w = (le) => {
21090
+ let te = Z - le.clientX, ne = le.clientY - Q, nt = 1 + Math.min(te / ie, ne / xe), ze = Math.max(50, ie * nt);
21091
21091
  ze = Math.min(ze, f.value);
21092
21092
  let St = ze / g.value;
21093
21093
  m.value = ze, v.value = St;
@@ -21095,23 +21095,23 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21095
21095
  window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", q), _(m.value, v.value);
21096
21096
  };
21097
21097
  window.addEventListener("mousemove", w), window.addEventListener("mouseup", q);
21098
- }, he = (J) => {
21098
+ }, pe = (J) => {
21099
21099
  const Z = J.clientX, Q = m.value, ie = (w) => {
21100
21100
  let q = Z - w.clientX, le = Q + q;
21101
21101
  le = Math.max(50, le), le = Math.min(le, f.value), m.value = le;
21102
- }, ke = () => {
21103
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), _(m.value, v.value);
21102
+ }, xe = () => {
21103
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), _(m.value, v.value);
21104
21104
  };
21105
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21105
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21106
21106
  }, ee = (J) => {
21107
21107
  const Z = J.clientY, Q = v.value, ie = (w) => {
21108
21108
  let q = Z - w.clientY, le = Q + q;
21109
21109
  le = Math.max(50, le), v.value = le;
21110
- }, ke = () => {
21111
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), _(m.value, v.value);
21110
+ }, xe = () => {
21111
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), _(m.value, v.value);
21112
21112
  };
21113
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21114
- }, ue = (J) => {
21113
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21114
+ }, de = (J) => {
21115
21115
  J.stopPropagation(), a.value = !0, l.value = !0, window.dispatchEvent(new CustomEvent("image-activate", { detail: k }));
21116
21116
  }, I = (J) => {
21117
21117
  J !== k && (a.value = !1, l.value = !1);
@@ -21123,7 +21123,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21123
21123
  d.value = 1, u.value = !0;
21124
21124
  }, Y = () => {
21125
21125
  u.value = !1, a.value = !1, l.value = !1;
21126
- }, pe = (J) => {
21126
+ }, me = (J) => {
21127
21127
  d.value = Math.min(Math.max(0.01, d.value + (J.deltaY > 0 ? -0.1 : 0.1)), 5);
21128
21128
  }, Ne = (J) => {
21129
21129
  if (J.preventDefault(), !o.value || !i.value) return;
@@ -21135,13 +21135,13 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21135
21135
  width: 0,
21136
21136
  height: 0
21137
21137
  };
21138
- const ke = (q) => {
21138
+ const xe = (q) => {
21139
21139
  const le = q.clientX - Z.left, te = q.clientY - Z.top;
21140
21140
  se.value.width = Math.max(1, le - Q), se.value.height = Math.max(1, te - ie);
21141
21141
  }, w = () => {
21142
- window.removeEventListener("mousemove", ke), window.removeEventListener("mouseup", w), se.value.width = Math.min(se.value.width, m.value - se.value.left), se.value.height = Math.min(se.value.height, v.value - se.value.top);
21142
+ window.removeEventListener("mousemove", xe), window.removeEventListener("mouseup", w), se.value.width = Math.min(se.value.width, m.value - se.value.left), se.value.height = Math.min(se.value.height, v.value - se.value.top);
21143
21143
  };
21144
- window.addEventListener("mousemove", ke), window.addEventListener("mouseup", w);
21144
+ window.addEventListener("mousemove", xe), window.addEventListener("mouseup", w);
21145
21145
  }, Be = S(!1), se = S({ left: 50, top: 50, width: 200, height: 200 }), Le = S(null), Ge = S({ x: 0, y: 0 }), xt = S({ left: 0, top: 0, width: 0, height: 0 }), Bt = () => {
21146
21146
  l.value = !1, a.value = !1, Be.value = !0, se.value = {
21147
21147
  left: m.value / 4,
@@ -21155,9 +21155,9 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21155
21155
  if (!o.value || !n || !s) return;
21156
21156
  const J = o.value, Z = J.naturalWidth / J.width, Q = J.naturalHeight / J.height, ie = document.createElement("canvas");
21157
21157
  ie.width = se.value.width * Z, ie.height = se.value.height * Q;
21158
- const ke = ie.getContext("2d");
21159
- if (!ke) return;
21160
- ke.drawImage(
21158
+ const xe = ie.getContext("2d");
21159
+ if (!xe) return;
21160
+ xe.drawImage(
21161
21161
  J,
21162
21162
  se.value.left * Z,
21163
21163
  se.value.top * Q,
@@ -21180,8 +21180,8 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21180
21180
  }, sn = (J) => {
21181
21181
  J.stopPropagation(), Ge.value = { x: J.clientX, y: J.clientY }, xt.value = { ...se.value };
21182
21182
  const Z = (ie) => {
21183
- const ke = ie.clientX - Ge.value.x, w = ie.clientY - Ge.value.y;
21184
- se.value.left = Math.max(0, xt.value.left + ke), se.value.top = Math.max(0, xt.value.top + w), se.value.left = Math.min(se.value.left, m.value - se.value.width), se.value.top = Math.min(se.value.top, v.value - se.value.height);
21183
+ const xe = ie.clientX - Ge.value.x, w = ie.clientY - Ge.value.y;
21184
+ se.value.left = Math.max(0, xt.value.left + xe), se.value.top = Math.max(0, xt.value.top + w), se.value.left = Math.min(se.value.left, m.value - se.value.width), se.value.top = Math.min(se.value.top, v.value - se.value.height);
21185
21185
  }, Q = () => {
21186
21186
  window.removeEventListener("mousemove", Z), window.removeEventListener("mouseup", Q);
21187
21187
  };
@@ -21207,10 +21207,10 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21207
21207
  break;
21208
21208
  }
21209
21209
  ne.width = Math.max(20, ne.width), ne.height = Math.max(20, ne.height), Q && (ne.left = Math.max(0, Math.min(ne.left, Q.width - ne.width)), ne.top = Math.max(0, Math.min(ne.top, Q.height - ne.height))), se.value = ne;
21210
- }, ke = () => {
21211
- window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", ke), Le.value = null;
21210
+ }, xe = () => {
21211
+ window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", xe), Le.value = null;
21212
21212
  };
21213
- window.addEventListener("mousemove", ie), window.addEventListener("mouseup", ke);
21213
+ window.addEventListener("mousemove", ie), window.addEventListener("mouseup", xe);
21214
21214
  };
21215
21215
  return xi(() => {
21216
21216
  qn(() => {
@@ -21244,7 +21244,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21244
21244
  }),
21245
21245
  draggable: "true",
21246
21246
  onDblclick: F,
21247
- onClick: ue
21247
+ onClick: de
21248
21248
  }, null, 44, A2),
21249
21249
  a.value && c.value ? (z(), U("div", O2, [
21250
21250
  y("div", null, [
@@ -21258,7 +21258,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21258
21258
  l.value && c.value ? (z(), U("div", {
21259
21259
  key: 1,
21260
21260
  class: "resize-top-right",
21261
- onMousedown: $e(ve, ["prevent"])
21261
+ onMousedown: $e(ye, ["prevent"])
21262
21262
  }, null, 32)) : Te("", !0),
21263
21263
  l.value && c.value ? (z(), U("div", {
21264
21264
  key: 2,
@@ -21268,7 +21268,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21268
21268
  l.value && c.value ? (z(), U("div", {
21269
21269
  key: 3,
21270
21270
  class: "resize-bottom-left",
21271
- onMousedown: $e(Ee, ["prevent"])
21271
+ onMousedown: $e(ke, ["prevent"])
21272
21272
  }, null, 32)) : Te("", !0),
21273
21273
  l.value && c.value ? (z(), U("div", {
21274
21274
  key: 4,
@@ -21288,7 +21288,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21288
21288
  l.value && c.value ? (z(), U("div", {
21289
21289
  key: 7,
21290
21290
  class: "resize-left",
21291
- onMousedown: $e(he, ["prevent"])
21291
+ onMousedown: $e(pe, ["prevent"])
21292
21292
  }, null, 32)) : Te("", !0),
21293
21293
  l.value && c.value ? (z(), U("div", {
21294
21294
  key: 8,
@@ -21347,7 +21347,7 @@ const M2 = ["width", "height"], C2 = ["stroke"], _2 = ["stroke"], T2 = ["stroke"
21347
21347
  key: 0,
21348
21348
  class: "shulan-image-model",
21349
21349
  onClick: Y,
21350
- onWheel: $e(pe, ["prevent"])
21350
+ onWheel: $e(me, ["prevent"])
21351
21351
  }, [
21352
21352
  y("img", {
21353
21353
  ref: "previewImg",
@@ -21692,7 +21692,7 @@ const U2 = () => typeof document > "u" ? Promise.resolve() : (ic || (ic = import
21692
21692
  if (document.getElementById("eeed-editor-katex-style")) return;
21693
21693
  const e = document.createElement("style");
21694
21694
  e.id = "eeed-editor-katex-style", e.textContent = t, document.head.appendChild(e);
21695
- })), ic), W2 = /* @__PURE__ */ de({
21695
+ })), ic), W2 = /* @__PURE__ */ he({
21696
21696
  __name: "KaTeXRender",
21697
21697
  props: {
21698
21698
  formula: {},
@@ -22521,17 +22521,17 @@ const oc = Qb, up = hr, dp = Symbol("nomatch"), B_ = 7, u0 = function(t) {
22521
22521
  let F = "", Y = "";
22522
22522
  typeof x == "object" ? (F = I, A = x.ignoreIllegals, Y = x.language) : (ds("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ds("10.7.0", `Please use highlight(code, options) instead.
22523
22523
  https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A === void 0 && (A = !0);
22524
- const pe = {
22524
+ const me = {
22525
22525
  code: F,
22526
22526
  language: Y
22527
22527
  };
22528
- ee("before:highlight", pe);
22529
- const Ne = pe.result ? pe.result : d(pe.language, pe.code, A);
22530
- return Ne.code = pe.code, ee("after:highlight", Ne), Ne;
22528
+ ee("before:highlight", me);
22529
+ const Ne = me.result ? me.result : d(me.language, me.code, A);
22530
+ return Ne.code = me.code, ee("after:highlight", Ne), Ne;
22531
22531
  }
22532
22532
  function d(I, x, A, F) {
22533
22533
  const Y = /* @__PURE__ */ Object.create(null);
22534
- function pe(G, N) {
22534
+ function me(G, N) {
22535
22535
  return G.keywords[N];
22536
22536
  }
22537
22537
  function Ne() {
@@ -22544,13 +22544,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22544
22544
  let N = w.keywordPatternRe.exec(te), D = "";
22545
22545
  for (; N; ) {
22546
22546
  D += te.substring(G, N.index);
22547
- const V = Q.case_insensitive ? N[0].toLowerCase() : N[0], me = pe(w, V);
22548
- if (me) {
22549
- const [xe, Ot] = me;
22550
- if (le.addText(D), D = "", Y[V] = (Y[V] || 0) + 1, Y[V] <= B_ && (ne += Ot), xe.startsWith("_"))
22547
+ const V = Q.case_insensitive ? N[0].toLowerCase() : N[0], ge = me(w, V);
22548
+ if (ge) {
22549
+ const [Se, Ot] = ge;
22550
+ if (le.addText(D), D = "", Y[V] = (Y[V] || 0) + 1, Y[V] <= B_ && (ne += Ot), Se.startsWith("_"))
22551
22551
  D += N[0];
22552
22552
  else {
22553
- const _r = Q.classNameAliases[xe] || xe;
22553
+ const _r = Q.classNameAliases[Se] || Se;
22554
22554
  Le(N[0], _r);
22555
22555
  }
22556
22556
  } else
@@ -22587,8 +22587,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22587
22587
  D++;
22588
22588
  continue;
22589
22589
  }
22590
- const me = Q.classNameAliases[G[D]] || G[D], xe = N[D];
22591
- me ? Le(xe, me) : (te = xe, Ne(), te = ""), D++;
22590
+ const ge = Q.classNameAliases[G[D]] || G[D], Se = N[D];
22591
+ ge ? Le(Se, ge) : (te = Se, Ne(), te = ""), D++;
22592
22592
  }
22593
22593
  }
22594
22594
  function xt(G, N) {
@@ -22598,8 +22598,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22598
22598
  let V = Q2(G.endRe, D);
22599
22599
  if (V) {
22600
22600
  if (G["on:end"]) {
22601
- const me = new ip(G);
22602
- G["on:end"](N, me), me.isMatchIgnored && (V = !1);
22601
+ const ge = new ip(G);
22602
+ G["on:end"](N, ge), ge.isMatchIgnored && (V = !1);
22603
22603
  }
22604
22604
  if (V) {
22605
22605
  for (; G.endsParent && G.parent; )
@@ -22614,9 +22614,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22614
22614
  return w.matcher.regexIndex === 0 ? (te += G[0], 1) : (St = !0, 0);
22615
22615
  }
22616
22616
  function bn(G) {
22617
- const N = G[0], D = G.rule, V = new ip(D), me = [D.__beforeBegin, D["on:begin"]];
22618
- for (const xe of me)
22619
- if (xe && (xe(G, V), V.isMatchIgnored))
22617
+ const N = G[0], D = G.rule, V = new ip(D), ge = [D.__beforeBegin, D["on:begin"]];
22618
+ for (const Se of ge)
22619
+ if (Se && (Se(G, V), V.isMatchIgnored))
22620
22620
  return Re(N);
22621
22621
  return D.skip ? te += N : (D.excludeBegin && (te += N), se(), !D.returnBegin && !D.excludeBegin && (te = N)), xt(D, G), D.returnBegin ? 0 : N.length;
22622
22622
  }
@@ -22624,12 +22624,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22624
22624
  const N = G[0], D = x.substring(G.index), V = Bt(w, G, D);
22625
22625
  if (!V)
22626
22626
  return dp;
22627
- const me = w;
22628
- w.endScope && w.endScope._wrap ? (se(), Le(N, w.endScope._wrap)) : w.endScope && w.endScope._multi ? (se(), Ge(w.endScope, G)) : me.skip ? te += N : (me.returnEnd || me.excludeEnd || (te += N), se(), me.excludeEnd && (te = N));
22627
+ const ge = w;
22628
+ w.endScope && w.endScope._wrap ? (se(), Le(N, w.endScope._wrap)) : w.endScope && w.endScope._multi ? (se(), Ge(w.endScope, G)) : ge.skip ? te += N : (ge.returnEnd || ge.excludeEnd || (te += N), se(), ge.excludeEnd && (te = N));
22629
22629
  do
22630
22630
  w.scope && le.closeNode(), !w.skip && !w.subLanguage && (ne += w.relevance), w = w.parent;
22631
22631
  while (w !== V.parent);
22632
- return V.starts && xt(V.starts, G), me.returnEnd ? 0 : N.length;
22632
+ return V.starts && xt(V.starts, G), ge.returnEnd ? 0 : N.length;
22633
22633
  }
22634
22634
  function lt() {
22635
22635
  const G = [];
@@ -22670,7 +22670,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22670
22670
  if (!Q)
22671
22671
  throw Wr(i.replace("{}", I)), new Error('Unknown language: "' + I + '"');
22672
22672
  const ie = I_(Q);
22673
- let ke = "", w = F || ie;
22673
+ let xe = "", w = F || ie;
22674
22674
  const q = {}, le = new a.__emitter(a);
22675
22675
  lt();
22676
22676
  let te = "", ne = 0, nt = 0, ze = 0, St = !1;
@@ -22687,9 +22687,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22687
22687
  }
22688
22688
  Z(x.substring(nt));
22689
22689
  }
22690
- return le.finalize(), ke = le.toHTML(), {
22690
+ return le.finalize(), xe = le.toHTML(), {
22691
22691
  language: I,
22692
- value: ke,
22692
+ value: xe,
22693
22693
  relevance: ne,
22694
22694
  illegal: !1,
22695
22695
  _emitter: le,
@@ -22707,7 +22707,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22707
22707
  index: nt,
22708
22708
  context: x.slice(nt - 100, nt + 100),
22709
22709
  mode: G.mode,
22710
- resultSoFar: ke
22710
+ resultSoFar: xe
22711
22711
  },
22712
22712
  _emitter: le
22713
22713
  };
@@ -22749,7 +22749,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22749
22749
  return -1;
22750
22750
  }
22751
22751
  return 0;
22752
- }), [pe, Ne] = Y, Be = pe;
22752
+ }), [me, Ne] = Y, Be = me;
22753
22753
  return Be.secondBest = Ne, Be;
22754
22754
  }
22755
22755
  function p(I, x, A) {
@@ -22837,7 +22837,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22837
22837
  const x = P(I);
22838
22838
  return x && !x.disableAutodetect;
22839
22839
  }
22840
- function ve(I) {
22840
+ function ye(I) {
22841
22841
  I["before:highlightBlock"] && !I["before:highlightElement"] && (I["before:highlightElement"] = (x) => {
22842
22842
  I["before:highlightBlock"](
22843
22843
  Object.assign({ block: x.el }, x)
@@ -22848,10 +22848,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22848
22848
  );
22849
22849
  });
22850
22850
  }
22851
- function Ee(I) {
22852
- ve(I), r.push(I);
22851
+ function ke(I) {
22852
+ ye(I), r.push(I);
22853
22853
  }
22854
- function he(I) {
22854
+ function pe(I) {
22855
22855
  const x = r.indexOf(I);
22856
22856
  x !== -1 && r.splice(x, 1);
22857
22857
  }
@@ -22861,7 +22861,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22861
22861
  F[A] && F[A](x);
22862
22862
  });
22863
22863
  }
22864
- function ue(I) {
22864
+ function de(I) {
22865
22865
  return ds("10.7.0", "highlightBlock will be removed entirely in v12.0"), ds("10.7.0", "Please use highlightElement now."), g(I);
22866
22866
  }
22867
22867
  Object.assign(t, {
@@ -22870,7 +22870,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22870
22870
  highlightAll: _,
22871
22871
  highlightElement: g,
22872
22872
  // TODO: Remove with v12 API
22873
- highlightBlock: ue,
22873
+ highlightBlock: de,
22874
22874
  configure: m,
22875
22875
  initHighlighting: v,
22876
22876
  initHighlightingOnLoad: k,
@@ -22881,8 +22881,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
22881
22881
  registerAliases: K,
22882
22882
  autoDetection: X,
22883
22883
  inherit: up,
22884
- addPlugin: Ee,
22885
- removePlugin: he
22884
+ addPlugin: ke,
22885
+ removePlugin: pe
22886
22886
  }), t.debugMode = function() {
22887
22887
  s = !1;
22888
22888
  }, t.safeMode = function() {
@@ -23106,7 +23106,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23106
23106
  };
23107
23107
  };
23108
23108
  }
23109
- }), K_ = ["width", "height"], q_ = ["fill", "stroke"], tu = /* @__PURE__ */ de({
23109
+ }), K_ = ["width", "height"], q_ = ["fill", "stroke"], tu = /* @__PURE__ */ he({
23110
23110
  __name: "IconJuzuo",
23111
23111
  props: {
23112
23112
  size: {},
@@ -23130,7 +23130,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23130
23130
  }, null, 8, q_)
23131
23131
  ], 8, K_));
23132
23132
  }
23133
- }), G_ = ["width", "height"], j_ = ["fill", "stroke"], nu = /* @__PURE__ */ de({
23133
+ }), G_ = ["width", "height"], j_ = ["fill", "stroke"], nu = /* @__PURE__ */ he({
23134
23134
  __name: "IconJuzhong",
23135
23135
  props: {
23136
23136
  size: {},
@@ -23154,7 +23154,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23154
23154
  }, null, 8, j_)
23155
23155
  ], 8, G_));
23156
23156
  }
23157
- }), Y_ = ["width", "height"], X_ = ["fill", "stroke"], ru = /* @__PURE__ */ de({
23157
+ }), Y_ = ["width", "height"], X_ = ["fill", "stroke"], ru = /* @__PURE__ */ he({
23158
23158
  __name: "IconJuyou",
23159
23159
  props: {
23160
23160
  size: {},
@@ -23178,7 +23178,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23178
23178
  }, null, 8, X_)
23179
23179
  ], 8, Y_));
23180
23180
  }
23181
- }), J_ = ["width", "height"], Z_ = ["stroke"], Q_ = ["stroke"], eT = /* @__PURE__ */ de({
23181
+ }), J_ = ["width", "height"], Z_ = ["stroke"], Q_ = ["stroke"], eT = /* @__PURE__ */ he({
23182
23182
  __name: "IconEditPen",
23183
23183
  props: {
23184
23184
  size: {},
@@ -23211,7 +23211,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23211
23211
  }), tT = { class: "dialog-header" }, nT = { class: "dialog-body" }, rT = {
23212
23212
  key: 0,
23213
23213
  class: "dialog-footer"
23214
- }, su = /* @__PURE__ */ de({
23214
+ }, su = /* @__PURE__ */ he({
23215
23215
  __name: "Dialog",
23216
23216
  props: {
23217
23217
  title: {},
@@ -23235,7 +23235,7 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23235
23235
  onClick: a
23236
23236
  }, [
23237
23237
  y("div", {
23238
- class: we(["dialog", { "dialog-enter": t.visible, "dialog-leave": !t.visible }]),
23238
+ class: Ee(["dialog", { "dialog-enter": t.visible, "dialog-leave": !t.visible }]),
23239
23239
  onClick: u[0] || (u[0] = $e(() => {
23240
23240
  }, ["stop"])),
23241
23241
  style: wt({ width: `${r.value}px`, top: `${s.value}` })
@@ -23267,13 +23267,13 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23267
23267
  ], 6)
23268
23268
  ])) : Te("", !0);
23269
23269
  }
23270
- }), sT = { class: "mermaid-edit-box" }, iT = /* @__PURE__ */ de({
23270
+ }), sT = { class: "mermaid-edit-box" }, iT = /* @__PURE__ */ he({
23271
23271
  __name: "MermaidNodeView",
23272
23272
  props: hx,
23273
23273
  setup(t) {
23274
23274
  const e = t, n = S(null), r = S(null), s = S(null), i = S(!1), o = S(!1), a = S("");
23275
23275
  let l = null;
23276
- const c = async () => (l || (l = import("./mermaid.core-DTB5ADBi.mjs").then((R) => R.bC).then((R) => R.default)), l);
23276
+ const c = async () => (l || (l = import("./mermaid.core-C6Rusbv5.mjs").then((R) => R.bC).then((R) => R.default)), l);
23277
23277
  Mt(r, () => {
23278
23278
  i.value = !1, f.value = !1;
23279
23279
  });
@@ -23289,13 +23289,13 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23289
23289
  try {
23290
23290
  const P = await c(), K = "mermaid-" + Date.now(), { svg: X } = await P.render(K, R);
23291
23291
  r.value.innerHTML = X;
23292
- const ve = r.value.querySelector("svg");
23293
- if (ve) {
23294
- const Ee = (T = n.value) == null ? void 0 : T.getBoundingClientRect();
23295
- if (!Ee) return;
23296
- const he = ve.getBBox(), ee = Ee.width, ue = he.width, I = he.height;
23297
- let x = ue, A = I;
23298
- ue > ee && (x = ee, A = ee / ue * I), ve.setAttribute("width", `${x}`), ve.setAttribute("height", `${A}`), r.value.style.width = `${x}px`, r.value.style.height = `${A}px`;
23292
+ const ye = r.value.querySelector("svg");
23293
+ if (ye) {
23294
+ const ke = (T = n.value) == null ? void 0 : T.getBoundingClientRect();
23295
+ if (!ke) return;
23296
+ const pe = ye.getBBox(), ee = ke.width, de = pe.width, I = pe.height;
23297
+ let x = de, A = I;
23298
+ de > ee && (x = ee, A = ee / de * I), ye.setAttribute("width", `${x}`), ye.setAttribute("height", `${A}`), r.value.style.width = `${x}px`, r.value.style.height = `${A}px`;
23299
23299
  }
23300
23300
  } catch (P) {
23301
23301
  r.value.innerHTML = `<pre style="color:red;">渲染失败: ${String(P)}</pre>`;
@@ -23348,12 +23348,12 @@ const ii = (t) => (t || "plaintext").trim() || "plaintext", pp = (t) => {
23348
23348
  y("div", {
23349
23349
  ref_key: "mermaidNodeViewWrapperRef",
23350
23350
  ref: n,
23351
- class: we({ "mermaid-left": k.value === "left", "mermaid-center": k.value === "center", "mermaid-right": k.value === "right" })
23351
+ class: Ee({ "mermaid-left": k.value === "left", "mermaid-center": k.value === "center", "mermaid-right": k.value === "right" })
23352
23352
  }, [
23353
23353
  y("div", {
23354
23354
  ref_key: "mermaidRef",
23355
23355
  ref: r,
23356
- class: we(["mermaid-render", { selected: i.value }]),
23356
+ class: Ee(["mermaid-render", { selected: i.value }]),
23357
23357
  onClick: $e(g, ["stop"])
23358
23358
  }, null, 2),
23359
23359
  B(su, {
@@ -27875,19 +27875,19 @@ function DT(t) {
27875
27875
  * @param {CallbackResponse} response
27876
27876
  */
27877
27877
  isTrulyOpeningTag: (A, F) => {
27878
- const Y = A[0].length + A.index, pe = A.input[Y];
27878
+ const Y = A[0].length + A.index, me = A.input[Y];
27879
27879
  if (
27880
27880
  // HTML should not include another raw `<` inside a tag
27881
27881
  // nested type?
27882
27882
  // `<Array<Array<number>>`, etc.
27883
- pe === "<" || // the , gives away that this is not HTML
27883
+ me === "<" || // the , gives away that this is not HTML
27884
27884
  // `<T, A extends keyof T, V>`
27885
- pe === ","
27885
+ me === ","
27886
27886
  ) {
27887
27887
  F.ignoreMatch();
27888
27888
  return;
27889
27889
  }
27890
- pe === ">" && (n(A, { after: Y }) || F.ignoreMatch());
27890
+ me === ">" && (n(A, { after: Y }) || F.ignoreMatch());
27891
27891
  let Ne;
27892
27892
  const Be = A.input.substring(Y);
27893
27893
  if (Ne = Be.match(/^\s*=/)) {
@@ -28145,18 +28145,18 @@ function DT(t) {
28145
28145
  label: "func.def",
28146
28146
  contains: [R],
28147
28147
  illegal: /%/
28148
- }, ve = {
28148
+ }, ye = {
28149
28149
  relevance: 0,
28150
28150
  match: /\b[A-Z][A-Z_0-9]+\b/,
28151
28151
  className: "variable.constant"
28152
28152
  };
28153
- function Ee(A) {
28153
+ function ke(A) {
28154
28154
  return e.concat("(?!", A.join("|"), ")");
28155
28155
  }
28156
- const he = {
28156
+ const pe = {
28157
28157
  match: e.concat(
28158
28158
  /\b/,
28159
- Ee([
28159
+ ke([
28160
28160
  ...m0,
28161
28161
  "super",
28162
28162
  "import"
@@ -28175,7 +28175,7 @@ function DT(t) {
28175
28175
  keywords: "prototype",
28176
28176
  className: "property",
28177
28177
  relevance: 0
28178
- }, ue = {
28178
+ }, de = {
28179
28179
  match: [
28180
28180
  /get|set/,
28181
28181
  /\s+/,
@@ -28356,10 +28356,10 @@ function DT(t) {
28356
28356
  className: { 1: "title.function" },
28357
28357
  contains: [R]
28358
28358
  },
28359
- he,
28360
- ve,
28359
+ pe,
28360
+ ye,
28361
28361
  T,
28362
- ue,
28362
+ de,
28363
28363
  {
28364
28364
  match: /\$[(.]/
28365
28365
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -30453,11 +30453,11 @@ function XT(t) {
30453
30453
  begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
30454
30454
  end: /[ \t]*(\w+)\b/,
30455
30455
  contains: t.QUOTE_STRING_MODE.contains.concat(a),
30456
- "on:begin": (he, ee) => {
30457
- ee.data._beginMatch = he[1] || he[2];
30456
+ "on:begin": (pe, ee) => {
30457
+ ee.data._beginMatch = pe[1] || pe[2];
30458
30458
  },
30459
- "on:end": (he, ee) => {
30460
- ee.data._beginMatch !== he[1] && ee.ignoreMatch();
30459
+ "on:end": (pe, ee) => {
30460
+ ee.data._beginMatch !== pe[1] && ee.ignoreMatch();
30461
30461
  }
30462
30462
  }, d = t.END_SAME_AS_BEGIN({
30463
30463
  begin: /<<<[ \t]*'(\w+)'\n/,
@@ -30685,14 +30685,14 @@ function XT(t) {
30685
30685
  "stdClass"
30686
30686
  ], C = {
30687
30687
  keyword: m,
30688
- literal: ((he) => {
30688
+ literal: ((pe) => {
30689
30689
  const ee = [];
30690
- return he.forEach((ue) => {
30691
- ee.push(ue), ue.toLowerCase() === ue ? ee.push(ue.toUpperCase()) : ee.push(ue.toLowerCase());
30690
+ return pe.forEach((de) => {
30691
+ ee.push(de), de.toLowerCase() === de ? ee.push(de.toUpperCase()) : ee.push(de.toLowerCase());
30692
30692
  }), ee;
30693
30693
  })(g),
30694
30694
  built_in: v
30695
- }, _ = (he) => he.map((ee) => ee.replace(/\|\d+$/, "")), O = { variants: [
30695
+ }, _ = (pe) => pe.map((ee) => ee.replace(/\|\d+$/, "")), O = { variants: [
30696
30696
  {
30697
30697
  match: [
30698
30698
  /new/,
@@ -30790,14 +30790,14 @@ function XT(t) {
30790
30790
  contains: [K]
30791
30791
  };
30792
30792
  K.contains.push(X);
30793
- const ve = [
30793
+ const ye = [
30794
30794
  P,
30795
30795
  T,
30796
30796
  t.C_BLOCK_COMMENT_MODE,
30797
30797
  h,
30798
30798
  p,
30799
30799
  O
30800
- ], Ee = {
30800
+ ], ke = {
30801
30801
  begin: e.concat(/#\[\s*/, s),
30802
30802
  beginScope: "meta",
30803
30803
  end: /]/,
@@ -30822,10 +30822,10 @@ function XT(t) {
30822
30822
  },
30823
30823
  contains: [
30824
30824
  "self",
30825
- ...ve
30825
+ ...ye
30826
30826
  ]
30827
30827
  },
30828
- ...ve,
30828
+ ...ye,
30829
30829
  {
30830
30830
  scope: "meta",
30831
30831
  match: s
@@ -30836,7 +30836,7 @@ function XT(t) {
30836
30836
  case_insensitive: !1,
30837
30837
  keywords: C,
30838
30838
  contains: [
30839
- Ee,
30839
+ ke,
30840
30840
  t.HASH_COMMENT_MODE,
30841
30841
  t.COMMENT("//", "$"),
30842
30842
  t.COMMENT(
@@ -34084,16 +34084,16 @@ function wN(t) {
34084
34084
  P("##"),
34085
34085
  P("###")
34086
34086
  ]
34087
- }, X = { match: Ke(/`/, Un, /`/) }, ve = {
34087
+ }, X = { match: Ke(/`/, Un, /`/) }, ye = {
34088
34088
  className: "variable",
34089
34089
  match: /\$\d+/
34090
- }, Ee = {
34090
+ }, ke = {
34091
34091
  className: "variable",
34092
34092
  match: `\\$${da}+`
34093
- }, he = [
34093
+ }, pe = [
34094
34094
  X,
34095
- ve,
34096
- Ee
34095
+ ye,
34096
+ ke
34097
34097
  ], ee = {
34098
34098
  match: /(@|#(un)?)available/,
34099
34099
  className: "keyword",
@@ -34109,7 +34109,7 @@ function wN(t) {
34109
34109
  ]
34110
34110
  }
34111
34111
  ] }
34112
- }, ue = {
34112
+ }, de = {
34113
34113
  className: "keyword",
34114
34114
  match: Ke(/@/, Pt(...vN))
34115
34115
  }, I = {
@@ -34117,7 +34117,7 @@ function wN(t) {
34117
34117
  match: Ke(/@/, Un)
34118
34118
  }, x = [
34119
34119
  ee,
34120
- ue,
34120
+ de,
34121
34121
  I
34122
34122
  ], A = {
34123
34123
  match: ao(/\b[A-Z]/),
@@ -34167,7 +34167,7 @@ function wN(t) {
34167
34167
  match: Ke(Un, /\s*:/),
34168
34168
  keywords: "_|0",
34169
34169
  relevance: 0
34170
- }, pe = {
34170
+ }, me = {
34171
34171
  begin: /\(/,
34172
34172
  end: /\)/,
34173
34173
  relevance: 0,
@@ -34181,7 +34181,7 @@ function wN(t) {
34181
34181
  ...m,
34182
34182
  C,
34183
34183
  K,
34184
- ...he,
34184
+ ...pe,
34185
34185
  ...x,
34186
34186
  A
34187
34187
  ]
@@ -34222,7 +34222,7 @@ function wN(t) {
34222
34222
  K,
34223
34223
  ...x,
34224
34224
  A,
34225
- pe
34225
+ me
34226
34226
  ],
34227
34227
  endsParent: !0,
34228
34228
  illegal: /["']/
@@ -34293,7 +34293,7 @@ function wN(t) {
34293
34293
  ...m,
34294
34294
  C,
34295
34295
  K,
34296
- ...he
34296
+ ...pe
34297
34297
  ];
34298
34298
  bn.contains = [
34299
34299
  ...sn,
@@ -34340,10 +34340,10 @@ function wN(t) {
34340
34340
  ...m,
34341
34341
  C,
34342
34342
  K,
34343
- ...he,
34343
+ ...pe,
34344
34344
  ...x,
34345
34345
  A,
34346
- pe
34346
+ me
34347
34347
  ]
34348
34348
  };
34349
34349
  }
@@ -34506,19 +34506,19 @@ function EN(t) {
34506
34506
  * @param {CallbackResponse} response
34507
34507
  */
34508
34508
  isTrulyOpeningTag: (A, F) => {
34509
- const Y = A[0].length + A.index, pe = A.input[Y];
34509
+ const Y = A[0].length + A.index, me = A.input[Y];
34510
34510
  if (
34511
34511
  // HTML should not include another raw `<` inside a tag
34512
34512
  // nested type?
34513
34513
  // `<Array<Array<number>>`, etc.
34514
- pe === "<" || // the , gives away that this is not HTML
34514
+ me === "<" || // the , gives away that this is not HTML
34515
34515
  // `<T, A extends keyof T, V>`
34516
- pe === ","
34516
+ me === ","
34517
34517
  ) {
34518
34518
  F.ignoreMatch();
34519
34519
  return;
34520
34520
  }
34521
- pe === ">" && (n(A, { after: Y }) || F.ignoreMatch());
34521
+ me === ">" && (n(A, { after: Y }) || F.ignoreMatch());
34522
34522
  let Ne;
34523
34523
  const Be = A.input.substring(Y);
34524
34524
  if (Ne = Be.match(/^\s*=/)) {
@@ -34776,18 +34776,18 @@ function EN(t) {
34776
34776
  label: "func.def",
34777
34777
  contains: [R],
34778
34778
  illegal: /%/
34779
- }, ve = {
34779
+ }, ye = {
34780
34780
  relevance: 0,
34781
34781
  match: /\b[A-Z][A-Z_0-9]+\b/,
34782
34782
  className: "variable.constant"
34783
34783
  };
34784
- function Ee(A) {
34784
+ function ke(A) {
34785
34785
  return e.concat("(?!", A.join("|"), ")");
34786
34786
  }
34787
- const he = {
34787
+ const pe = {
34788
34788
  match: e.concat(
34789
34789
  /\b/,
34790
- Ee([
34790
+ ke([
34791
34791
  ...C0,
34792
34792
  "super",
34793
34793
  "import"
@@ -34806,7 +34806,7 @@ function EN(t) {
34806
34806
  keywords: "prototype",
34807
34807
  className: "property",
34808
34808
  relevance: 0
34809
- }, ue = {
34809
+ }, de = {
34810
34810
  match: [
34811
34811
  /get|set/,
34812
34812
  /\s+/,
@@ -34987,10 +34987,10 @@ function EN(t) {
34987
34987
  className: { 1: "title.function" },
34988
34988
  contains: [R]
34989
34989
  },
34990
- he,
34991
- ve,
34990
+ pe,
34991
+ ye,
34992
34992
  T,
34993
- ue,
34993
+ de,
34994
34994
  {
34995
34995
  match: /\$[(.]/
34996
34996
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -36366,19 +36366,19 @@ const fc = A0, Mp = pr, Cp = Symbol("nomatch"), vA = 7, H0 = function(t) {
36366
36366
  return A.split(/\s+/).find((Y) => l(Y) || K(Y));
36367
36367
  }
36368
36368
  function u(x, A, F) {
36369
- let Y = "", pe = "";
36370
- typeof A == "object" ? (Y = x, F = A.ignoreIllegals, pe = A.language) : (fs("10.7.0", "highlight(lang, code, ...args) has been deprecated."), fs("10.7.0", `Please use highlight(code, options) instead.
36371
- https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F === void 0 && (F = !0);
36369
+ let Y = "", me = "";
36370
+ typeof A == "object" ? (Y = x, F = A.ignoreIllegals, me = A.language) : (fs("10.7.0", "highlight(lang, code, ...args) has been deprecated."), fs("10.7.0", `Please use highlight(code, options) instead.
36371
+ https://github.com/highlightjs/highlight.js/issues/2277`), me = x, Y = A), F === void 0 && (F = !0);
36372
36372
  const Ne = {
36373
36373
  code: Y,
36374
- language: pe
36374
+ language: me
36375
36375
  };
36376
- ue("before:highlight", Ne);
36376
+ de("before:highlight", Ne);
36377
36377
  const Be = Ne.result ? Ne.result : d(Ne.language, Ne.code, F);
36378
- return Be.code = Ne.code, ue("after:highlight", Be), Be;
36378
+ return Be.code = Ne.code, de("after:highlight", Be), Be;
36379
36379
  }
36380
36380
  function d(x, A, F, Y) {
36381
- const pe = /* @__PURE__ */ Object.create(null);
36381
+ const me = /* @__PURE__ */ Object.create(null);
36382
36382
  function Ne(N, D) {
36383
36383
  return N.keywords[D];
36384
36384
  }
@@ -36392,10 +36392,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36392
36392
  let D = q.keywordPatternRe.exec(ne), V = "";
36393
36393
  for (; D; ) {
36394
36394
  V += ne.substring(N, D.index);
36395
- const me = ie.case_insensitive ? D[0].toLowerCase() : D[0], xe = Ne(q, me);
36396
- if (xe) {
36397
- const [Ot, _r] = xe;
36398
- if (te.addText(V), V = "", pe[me] = (pe[me] || 0) + 1, pe[me] <= vA && (nt += _r), Ot.startsWith("_"))
36395
+ const ge = ie.case_insensitive ? D[0].toLowerCase() : D[0], Se = Ne(q, ge);
36396
+ if (Se) {
36397
+ const [Ot, _r] = Se;
36398
+ if (te.addText(V), V = "", me[ge] = (me[ge] || 0) + 1, me[ge] <= vA && (nt += _r), Ot.startsWith("_"))
36399
36399
  V += D[0];
36400
36400
  else {
36401
36401
  const Ps = ie.classNameAliases[Ot] || Ot;
@@ -36429,27 +36429,27 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36429
36429
  }
36430
36430
  function xt(N, D) {
36431
36431
  let V = 1;
36432
- const me = D.length - 1;
36433
- for (; V <= me; ) {
36432
+ const ge = D.length - 1;
36433
+ for (; V <= ge; ) {
36434
36434
  if (!N._emit[V]) {
36435
36435
  V++;
36436
36436
  continue;
36437
36437
  }
36438
- const xe = ie.classNameAliases[N[V]] || N[V], Ot = D[V];
36439
- xe ? Ge(Ot, xe) : (ne = Ot, Be(), ne = ""), V++;
36438
+ const Se = ie.classNameAliases[N[V]] || N[V], Ot = D[V];
36439
+ Se ? Ge(Ot, Se) : (ne = Ot, Be(), ne = ""), V++;
36440
36440
  }
36441
36441
  }
36442
36442
  function Bt(N, D) {
36443
36443
  return N.scope && typeof N.scope == "string" && te.openNode(ie.classNameAliases[N.scope] || N.scope), N.beginScope && (N.beginScope._wrap ? (Ge(ne, ie.classNameAliases[N.beginScope._wrap] || N.beginScope._wrap), ne = "") : N.beginScope._multi && (xt(N.beginScope, D), ne = "")), q = Object.create(N, { parent: { value: q } }), q;
36444
36444
  }
36445
36445
  function Re(N, D, V) {
36446
- let me = LN(N.endRe, V);
36447
- if (me) {
36446
+ let ge = LN(N.endRe, V);
36447
+ if (ge) {
36448
36448
  if (N["on:end"]) {
36449
- const xe = new wp(N);
36450
- N["on:end"](D, xe), xe.isMatchIgnored && (me = !1);
36449
+ const Se = new wp(N);
36450
+ N["on:end"](D, Se), Se.isMatchIgnored && (ge = !1);
36451
36451
  }
36452
- if (me) {
36452
+ if (ge) {
36453
36453
  for (; N.endsParent && N.parent; )
36454
36454
  N = N.parent;
36455
36455
  return N;
@@ -36462,22 +36462,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36462
36462
  return q.matcher.regexIndex === 0 ? (ne += N[0], 1) : (G = !0, 0);
36463
36463
  }
36464
36464
  function sn(N) {
36465
- const D = N[0], V = N.rule, me = new wp(V), xe = [V.__beforeBegin, V["on:begin"]];
36466
- for (const Ot of xe)
36467
- if (Ot && (Ot(N, me), me.isMatchIgnored))
36465
+ const D = N[0], V = N.rule, ge = new wp(V), Se = [V.__beforeBegin, V["on:begin"]];
36466
+ for (const Ot of Se)
36467
+ if (Ot && (Ot(N, ge), ge.isMatchIgnored))
36468
36468
  return bn(D);
36469
36469
  return V.skip ? ne += D : (V.excludeBegin && (ne += D), Le(), !V.returnBegin && !V.excludeBegin && (ne = D)), Bt(V, N), V.returnBegin ? 0 : D.length;
36470
36470
  }
36471
36471
  function lt(N) {
36472
- const D = N[0], V = A.substring(N.index), me = Re(q, N, V);
36473
- if (!me)
36472
+ const D = N[0], V = A.substring(N.index), ge = Re(q, N, V);
36473
+ if (!ge)
36474
36474
  return Cp;
36475
- const xe = q;
36476
- q.endScope && q.endScope._wrap ? (Le(), Ge(D, q.endScope._wrap)) : q.endScope && q.endScope._multi ? (Le(), xt(q.endScope, N)) : xe.skip ? ne += D : (xe.returnEnd || xe.excludeEnd || (ne += D), Le(), xe.excludeEnd && (ne = D));
36475
+ const Se = q;
36476
+ q.endScope && q.endScope._wrap ? (Le(), Ge(D, q.endScope._wrap)) : q.endScope && q.endScope._multi ? (Le(), xt(q.endScope, N)) : Se.skip ? ne += D : (Se.returnEnd || Se.excludeEnd || (ne += D), Le(), Se.excludeEnd && (ne = D));
36477
36477
  do
36478
36478
  q.scope && te.closeNode(), !q.skip && !q.subLanguage && (nt += q.relevance), q = q.parent;
36479
- while (q !== me.parent);
36480
- return me.starts && Bt(me.starts, N), xe.returnEnd ? 0 : D.length;
36479
+ while (q !== ge.parent);
36480
+ return ge.starts && Bt(ge.starts, N), Se.returnEnd ? 0 : D.length;
36481
36481
  }
36482
36482
  function J() {
36483
36483
  const N = [];
@@ -36492,20 +36492,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36492
36492
  return Le(), 0;
36493
36493
  if (Z.type === "begin" && D.type === "end" && Z.index === D.index && V === "") {
36494
36494
  if (ne += A.slice(D.index, D.index + 1), !s) {
36495
- const me = new Error(`0 width match regex (${x})`);
36496
- throw me.languageName = x, me.badRule = Z.rule, me;
36495
+ const ge = new Error(`0 width match regex (${x})`);
36496
+ throw ge.languageName = x, ge.badRule = Z.rule, ge;
36497
36497
  }
36498
36498
  return 1;
36499
36499
  }
36500
36500
  if (Z = D, D.type === "begin")
36501
36501
  return sn(D);
36502
36502
  if (D.type === "illegal" && !F) {
36503
- const me = new Error('Illegal lexeme "' + V + '" for mode "' + (q.scope || "<unnamed>") + '"');
36504
- throw me.mode = q, me;
36503
+ const ge = new Error('Illegal lexeme "' + V + '" for mode "' + (q.scope || "<unnamed>") + '"');
36504
+ throw ge.mode = q, ge;
36505
36505
  } else if (D.type === "end") {
36506
- const me = lt(D);
36507
- if (me !== Cp)
36508
- return me;
36506
+ const ge = lt(D);
36507
+ if (ge !== Cp)
36508
+ return ge;
36509
36509
  }
36510
36510
  if (D.type === "illegal" && V === "")
36511
36511
  return 1;
@@ -36516,8 +36516,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36516
36516
  const ie = K(x);
36517
36517
  if (!ie)
36518
36518
  throw Vr(i.replace("{}", x)), new Error('Unknown language: "' + x + '"');
36519
- const ke = pA(ie);
36520
- let w = "", q = Y || ke;
36519
+ const xe = pA(ie);
36520
+ let w = "", q = Y || xe;
36521
36521
  const le = {}, te = new a.__emitter(a);
36522
36522
  J();
36523
36523
  let ne = "", nt = 0, ze = 0, St = 0, G = !1;
@@ -36583,11 +36583,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36583
36583
  }
36584
36584
  function h(x, A) {
36585
36585
  A = A || a.languages || Object.keys(e);
36586
- const F = f(x), Y = A.filter(K).filter(ve).map(
36586
+ const F = f(x), Y = A.filter(K).filter(ye).map(
36587
36587
  (Le) => d(Le, x, !1)
36588
36588
  );
36589
36589
  Y.unshift(F);
36590
- const pe = Y.sort((Le, Ge) => {
36590
+ const me = Y.sort((Le, Ge) => {
36591
36591
  if (Le.relevance !== Ge.relevance) return Ge.relevance - Le.relevance;
36592
36592
  if (Le.language && Ge.language) {
36593
36593
  if (K(Le.language).supersetOf === Ge.language)
@@ -36596,7 +36596,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36596
36596
  return -1;
36597
36597
  }
36598
36598
  return 0;
36599
- }), [Ne, Be] = pe, se = Ne;
36599
+ }), [Ne, Be] = me, se = Ne;
36600
36600
  return se.secondBest = Be, se;
36601
36601
  }
36602
36602
  function p(x, A, F) {
@@ -36607,7 +36607,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36607
36607
  let A = null;
36608
36608
  const F = c(x);
36609
36609
  if (l(F)) return;
36610
- if (ue(
36610
+ if (de(
36611
36611
  "before:highlightElement",
36612
36612
  { el: x, language: F }
36613
36613
  ), x.children.length > 0 && (a.ignoreUnescapedHTML || (Ue("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), Ue("https://github.com/highlightjs/highlight.js/wiki/security"), Ue("The element with unescaped HTML:"), Ue(x)), a.throwUnescapedHTML))
@@ -36616,16 +36616,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36616
36616
  x.innerHTML
36617
36617
  );
36618
36618
  A = x;
36619
- const Y = A.textContent, pe = F ? u(Y, { language: F, ignoreIllegals: !0 }) : h(Y);
36620
- x.innerHTML = pe.value, p(x, F, pe.language), x.result = {
36621
- language: pe.language,
36619
+ const Y = A.textContent, me = F ? u(Y, { language: F, ignoreIllegals: !0 }) : h(Y);
36620
+ x.innerHTML = me.value, p(x, F, me.language), x.result = {
36621
+ language: me.language,
36622
36622
  // TODO: remove with version 11.0
36623
- re: pe.relevance,
36624
- relevance: pe.relevance
36625
- }, pe.secondBest && (x.secondBest = {
36626
- language: pe.secondBest.language,
36627
- relevance: pe.secondBest.relevance
36628
- }), ue("after:highlightElement", { el: x, result: pe, text: Y });
36623
+ re: me.relevance,
36624
+ relevance: me.relevance
36625
+ }, me.secondBest && (x.secondBest = {
36626
+ language: me.secondBest.language,
36627
+ relevance: me.secondBest.relevance
36628
+ }), de("after:highlightElement", { el: x, result: me, text: Y });
36629
36629
  }
36630
36630
  function m(x) {
36631
36631
  a = Mp(a, x);
@@ -36677,11 +36677,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36677
36677
  n[F.toLowerCase()] = A;
36678
36678
  });
36679
36679
  }
36680
- function ve(x) {
36680
+ function ye(x) {
36681
36681
  const A = K(x);
36682
36682
  return A && !A.disableAutodetect;
36683
36683
  }
36684
- function Ee(x) {
36684
+ function ke(x) {
36685
36685
  x["before:highlightBlock"] && !x["before:highlightElement"] && (x["before:highlightElement"] = (A) => {
36686
36686
  x["before:highlightBlock"](
36687
36687
  Object.assign({ block: A.el }, A)
@@ -36692,14 +36692,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36692
36692
  );
36693
36693
  });
36694
36694
  }
36695
- function he(x) {
36696
- Ee(x), r.push(x);
36695
+ function pe(x) {
36696
+ ke(x), r.push(x);
36697
36697
  }
36698
36698
  function ee(x) {
36699
36699
  const A = r.indexOf(x);
36700
36700
  A !== -1 && r.splice(A, 1);
36701
36701
  }
36702
- function ue(x, A) {
36702
+ function de(x, A) {
36703
36703
  const F = x;
36704
36704
  r.forEach(function(Y) {
36705
36705
  Y[F] && Y[F](A);
@@ -36723,9 +36723,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = x, Y = A), F ===
36723
36723
  listLanguages: P,
36724
36724
  getLanguage: K,
36725
36725
  registerAliases: X,
36726
- autoDetection: ve,
36726
+ autoDetection: ye,
36727
36727
  inherit: Mp,
36728
- addPlugin: he,
36728
+ addPlugin: pe,
36729
36729
  removePlugin: ee
36730
36730
  }), t.debugMode = function() {
36731
36731
  s = !1;
@@ -37081,7 +37081,7 @@ const AA = [
37081
37081
  ], $A = {
37082
37082
  key: 0,
37083
37083
  class: "eeed-editor-loading-overlay"
37084
- }, BA = { class: "loading-content" }, PA = { class: "loading-text" }, zA = /* @__PURE__ */ de({
37084
+ }, BA = { class: "loading-content" }, PA = { class: "loading-text" }, zA = /* @__PURE__ */ he({
37085
37085
  __name: "Lodding",
37086
37086
  props: {
37087
37087
  visible: {
@@ -37118,7 +37118,7 @@ const AA = [
37118
37118
  ])
37119
37119
  ])) : Te("", !0);
37120
37120
  }
37121
- }), Ze = /* @__PURE__ */ de({
37121
+ }), Ze = /* @__PURE__ */ he({
37122
37122
  __name: "Tooltip",
37123
37123
  props: {
37124
37124
  target: {},
@@ -37153,7 +37153,7 @@ const AA = [
37153
37153
  ], 4)) : Te("", !0)
37154
37154
  ]));
37155
37155
  }
37156
- }), En = /* @__PURE__ */ de({
37156
+ }), En = /* @__PURE__ */ he({
37157
37157
  __name: "Dropdown",
37158
37158
  props: {
37159
37159
  target: {},
@@ -37192,7 +37192,7 @@ const AA = [
37192
37192
  ], 4)) : Te("", !0)
37193
37193
  ]));
37194
37194
  }
37195
- }), HA = { class: "eeed-editor-message-text" }, FA = /* @__PURE__ */ de({
37195
+ }), HA = { class: "eeed-editor-message-text" }, FA = /* @__PURE__ */ he({
37196
37196
  __name: "Message",
37197
37197
  props: {
37198
37198
  message: {},
@@ -37213,7 +37213,7 @@ const AA = [
37213
37213
  default: Ct(() => [
37214
37214
  s.value ? (z(), U("div", {
37215
37215
  key: 0,
37216
- class: we(["eeed-editor-message-box", t.messageType]),
37216
+ class: Ee(["eeed-editor-message-box", t.messageType]),
37217
37217
  role: "status",
37218
37218
  "aria-live": "polite"
37219
37219
  }, [
@@ -37259,7 +37259,7 @@ const AA = [
37259
37259
  });
37260
37260
  s.mount(r);
37261
37261
  }
37262
- }, UA = ["width", "height"], WA = ["stroke"], VA = ["stroke"], KA = ["stroke"], qA = /* @__PURE__ */ de({
37262
+ }, UA = ["width", "height"], WA = ["stroke"], VA = ["stroke"], KA = ["stroke"], qA = /* @__PURE__ */ he({
37263
37263
  __name: "IconHome",
37264
37264
  props: {
37265
37265
  size: {},
@@ -37296,7 +37296,7 @@ const AA = [
37296
37296
  }, null, 8, KA)
37297
37297
  ], 8, UA));
37298
37298
  }
37299
- }), GA = ["width", "height"], jA = ["stroke"], YA = /* @__PURE__ */ de({
37299
+ }), GA = ["width", "height"], jA = ["stroke"], YA = /* @__PURE__ */ he({
37300
37300
  __name: "IconBack",
37301
37301
  props: {
37302
37302
  size: {},
@@ -37320,7 +37320,7 @@ const AA = [
37320
37320
  }, null, 8, jA)
37321
37321
  ], 8, GA));
37322
37322
  }
37323
- }), XA = ["width", "height"], JA = ["stroke"], ZA = ["stroke"], QA = ["stroke"], e3 = ["stroke"], t3 = /* @__PURE__ */ de({
37323
+ }), XA = ["width", "height"], JA = ["stroke"], ZA = ["stroke"], QA = ["stroke"], e3 = ["stroke"], t3 = /* @__PURE__ */ he({
37324
37324
  __name: "IconCode",
37325
37325
  props: {
37326
37326
  size: {},
@@ -37364,7 +37364,7 @@ const AA = [
37364
37364
  }, null, 8, e3)
37365
37365
  ], 8, XA));
37366
37366
  }
37367
- }), n3 = ["width", "height"], r3 = ["fill"], s3 = /* @__PURE__ */ de({
37367
+ }), n3 = ["width", "height"], r3 = ["fill"], s3 = /* @__PURE__ */ he({
37368
37368
  __name: "IconDaochu",
37369
37369
  props: {
37370
37370
  size: {},
@@ -37384,7 +37384,7 @@ const AA = [
37384
37384
  }, null, 8, r3)
37385
37385
  ], 8, n3));
37386
37386
  }
37387
- }), i3 = ["width", "height"], o3 = ["stroke"], a3 = ["stroke"], l3 = /* @__PURE__ */ de({
37387
+ }), i3 = ["width", "height"], o3 = ["stroke"], a3 = ["stroke"], l3 = /* @__PURE__ */ he({
37388
37388
  __name: "IconDocx",
37389
37389
  props: {
37390
37390
  size: {},
@@ -37415,7 +37415,7 @@ const AA = [
37415
37415
  }, null, 8, a3)
37416
37416
  ], 8, i3));
37417
37417
  }
37418
- }), c3 = ["width", "height"], u3 = ["stroke"], d3 = /* @__PURE__ */ de({
37418
+ }), c3 = ["width", "height"], u3 = ["stroke"], d3 = /* @__PURE__ */ he({
37419
37419
  __name: "IconFormula",
37420
37420
  props: {
37421
37421
  size: {},
@@ -37438,7 +37438,7 @@ const AA = [
37438
37438
  }, null, 8, u3)
37439
37439
  ], 8, c3));
37440
37440
  }
37441
- }), f3 = ["width", "height"], h3 = ["stroke"], p3 = ["stroke"], m3 = ["stroke"], g3 = ["stroke"], b3 = ["stroke"], v3 = ["stroke"], y3 = /* @__PURE__ */ de({
37441
+ }), f3 = ["width", "height"], h3 = ["stroke"], p3 = ["stroke"], m3 = ["stroke"], g3 = ["stroke"], b3 = ["stroke"], v3 = ["stroke"], y3 = /* @__PURE__ */ he({
37442
37442
  __name: "IconTable",
37443
37443
  props: {
37444
37444
  size: {},
@@ -37496,7 +37496,7 @@ const AA = [
37496
37496
  }, null, 8, v3)
37497
37497
  ], 8, f3));
37498
37498
  }
37499
- }), w3 = ["width", "height"], E3 = ["stroke"], k3 = ["stroke"], x3 = ["stroke"], S3 = /* @__PURE__ */ de({
37499
+ }), w3 = ["width", "height"], E3 = ["stroke"], k3 = ["stroke"], x3 = ["stroke"], S3 = /* @__PURE__ */ he({
37500
37500
  __name: "IconImage",
37501
37501
  props: {
37502
37502
  size: {},
@@ -37537,7 +37537,7 @@ const AA = [
37537
37537
  }, null, 8, x3)
37538
37538
  ], 8, w3));
37539
37539
  }
37540
- }), M3 = ["width", "height"], C3 = ["fill", "stroke"], _3 = /* @__PURE__ */ de({
37540
+ }), M3 = ["width", "height"], C3 = ["fill", "stroke"], _3 = /* @__PURE__ */ he({
37541
37541
  __name: "IconMermaid",
37542
37542
  props: {
37543
37543
  size: {},
@@ -37563,7 +37563,7 @@ const AA = [
37563
37563
  }, null, 8, C3)
37564
37564
  ], 8, M3));
37565
37565
  }
37566
- }), T3 = ["width", "height"], N3 = ["fill", "stroke"], Tp = /* @__PURE__ */ de({
37566
+ }), T3 = ["width", "height"], N3 = ["fill", "stroke"], Tp = /* @__PURE__ */ he({
37567
37567
  __name: "IconJiacu",
37568
37568
  props: {
37569
37569
  size: {},
@@ -37589,7 +37589,7 @@ const AA = [
37589
37589
  }, null, 8, N3)
37590
37590
  ], 8, T3));
37591
37591
  }
37592
- }), A3 = ["width", "height"], O3 = ["fill", "stroke"], Np = /* @__PURE__ */ de({
37592
+ }), A3 = ["width", "height"], O3 = ["fill", "stroke"], Np = /* @__PURE__ */ he({
37593
37593
  __name: "IconXieti",
37594
37594
  props: {
37595
37595
  size: {},
@@ -37615,7 +37615,7 @@ const AA = [
37615
37615
  }, null, 8, O3)
37616
37616
  ], 8, A3));
37617
37617
  }
37618
- }), R3 = ["width", "height"], I3 = ["fill", "stroke"], Ap = /* @__PURE__ */ de({
37618
+ }), R3 = ["width", "height"], I3 = ["fill", "stroke"], Ap = /* @__PURE__ */ he({
37619
37619
  __name: "IconXiahuaxian",
37620
37620
  props: {
37621
37621
  size: {},
@@ -37641,7 +37641,7 @@ const AA = [
37641
37641
  }, null, 8, I3)
37642
37642
  ], 8, R3));
37643
37643
  }
37644
- }), L3 = ["width", "height"], D3 = ["fill", "stroke"], Op = /* @__PURE__ */ de({
37644
+ }), L3 = ["width", "height"], D3 = ["fill", "stroke"], Op = /* @__PURE__ */ he({
37645
37645
  __name: "IconShanchuxian",
37646
37646
  props: {
37647
37647
  size: {},
@@ -37667,7 +37667,7 @@ const AA = [
37667
37667
  }, null, 8, D3)
37668
37668
  ], 8, L3));
37669
37669
  }
37670
- }), $3 = ["width", "height"], B3 = ["fill", "stroke"], P3 = ["fill", "stroke"], Rp = /* @__PURE__ */ de({
37670
+ }), $3 = ["width", "height"], B3 = ["fill", "stroke"], P3 = ["fill", "stroke"], Rp = /* @__PURE__ */ he({
37671
37671
  __name: "IconYingyong",
37672
37672
  props: {
37673
37673
  size: {},
@@ -37700,7 +37700,7 @@ const AA = [
37700
37700
  }, null, 8, P3)
37701
37701
  ], 8, $3));
37702
37702
  }
37703
- }), z3 = ["width", "height"], H3 = ["stroke"], F3 = ["stroke"], U3 = ["stroke"], W3 = ["stroke"], V3 = ["stroke"], K3 = ["stroke"], q3 = ["stroke"], G3 = /* @__PURE__ */ de({
37703
+ }), z3 = ["width", "height"], H3 = ["stroke"], F3 = ["stroke"], U3 = ["stroke"], W3 = ["stroke"], V3 = ["stroke"], K3 = ["stroke"], q3 = ["stroke"], G3 = /* @__PURE__ */ he({
37704
37704
  __name: "IconFengexian",
37705
37705
  props: {
37706
37706
  size: {},
@@ -37765,7 +37765,7 @@ const AA = [
37765
37765
  }, null, 8, q3)
37766
37766
  ], 8, z3));
37767
37767
  }
37768
- }), j3 = ["width", "height"], Y3 = ["stroke"], X3 = ["stroke"], J3 = ["stroke"], Z3 = ["stroke"], Q3 = ["stroke"], eO = ["stroke"], tO = ["stroke"], nO = ["stroke"], rO = ["stroke"], sO = ["stroke"], iO = /* @__PURE__ */ de({
37768
+ }), j3 = ["width", "height"], Y3 = ["stroke"], X3 = ["stroke"], J3 = ["stroke"], Z3 = ["stroke"], Q3 = ["stroke"], eO = ["stroke"], tO = ["stroke"], nO = ["stroke"], rO = ["stroke"], sO = ["stroke"], iO = /* @__PURE__ */ he({
37769
37769
  __name: "IconYouxuliebiao",
37770
37770
  props: {
37771
37771
  size: {},
@@ -37851,7 +37851,7 @@ const AA = [
37851
37851
  }, null, 8, sO)
37852
37852
  ], 8, j3));
37853
37853
  }
37854
- }), oO = ["width", "height"], aO = ["stroke"], lO = ["stroke"], cO = ["stroke"], uO = ["stroke"], dO = ["stroke"], fO = ["stroke"], hO = /* @__PURE__ */ de({
37854
+ }), oO = ["width", "height"], aO = ["stroke"], lO = ["stroke"], cO = ["stroke"], uO = ["stroke"], dO = ["stroke"], fO = ["stroke"], hO = /* @__PURE__ */ he({
37855
37855
  __name: "IconWuxuliebiao",
37856
37856
  props: {
37857
37857
  size: {},
@@ -37907,7 +37907,7 @@ const AA = [
37907
37907
  }, null, 8, fO)
37908
37908
  ], 8, oO));
37909
37909
  }
37910
- }), pO = ["width", "height"], mO = ["fill", "stroke"], gO = ["fill", "stroke"], bO = /* @__PURE__ */ de({
37910
+ }), pO = ["width", "height"], mO = ["fill", "stroke"], gO = ["fill", "stroke"], bO = /* @__PURE__ */ he({
37911
37911
  __name: "IconRengwuliebiao",
37912
37912
  props: {
37913
37913
  size: {},
@@ -37937,7 +37937,7 @@ const AA = [
37937
37937
  }, null, 8, gO)
37938
37938
  ], 8, pO));
37939
37939
  }
37940
- }), vO = ["width", "height"], yO = ["fill", "stroke"], kn = /* @__PURE__ */ de({
37940
+ }), vO = ["width", "height"], yO = ["fill", "stroke"], kn = /* @__PURE__ */ he({
37941
37941
  __name: "IconZhankaiJiantou",
37942
37942
  props: {
37943
37943
  size: {},
@@ -37962,7 +37962,7 @@ const AA = [
37962
37962
  }, null, 8, yO)
37963
37963
  ], 8, vO));
37964
37964
  }
37965
- }), wO = ["width", "height"], EO = ["fill", "stroke"], xn = /* @__PURE__ */ de({
37965
+ }), wO = ["width", "height"], EO = ["fill", "stroke"], xn = /* @__PURE__ */ he({
37966
37966
  __name: "IconShouqiJiantou",
37967
37967
  props: {
37968
37968
  size: {},
@@ -37986,7 +37986,7 @@ const AA = [
37986
37986
  }, null, 8, EO)
37987
37987
  ], 8, wO));
37988
37988
  }
37989
- }), kO = ["width", "height"], xO = ["fill", "stroke"], SO = /* @__PURE__ */ de({
37989
+ }), kO = ["width", "height"], xO = ["fill", "stroke"], SO = /* @__PURE__ */ he({
37990
37990
  __name: "IconZengjiaSuojin",
37991
37991
  props: {
37992
37992
  size: {},
@@ -38013,7 +38013,7 @@ const AA = [
38013
38013
  }, null, 8, xO)
38014
38014
  ], 8, kO));
38015
38015
  }
38016
- }), MO = ["width", "height"], CO = ["fill", "stroke"], _O = /* @__PURE__ */ de({
38016
+ }), MO = ["width", "height"], CO = ["fill", "stroke"], _O = /* @__PURE__ */ he({
38017
38017
  __name: "IconJianshaoSuojin",
38018
38018
  props: {
38019
38019
  size: {},
@@ -38041,7 +38041,7 @@ const AA = [
38041
38041
  }, null, 8, CO)
38042
38042
  ], 8, MO));
38043
38043
  }
38044
- }), TO = ["width", "height"], NO = ["fill", "stroke"], AO = /* @__PURE__ */ de({
38044
+ }), TO = ["width", "height"], NO = ["fill", "stroke"], AO = /* @__PURE__ */ he({
38045
38045
  __name: "IconHangjianju",
38046
38046
  props: {
38047
38047
  size: {},
@@ -38070,7 +38070,7 @@ const AA = [
38070
38070
  }, null, 8, NO)
38071
38071
  ], 8, TO));
38072
38072
  }
38073
- }), OO = ["width", "height"], RO = ["fill", "stroke"], hc = /* @__PURE__ */ de({
38073
+ }), OO = ["width", "height"], RO = ["fill", "stroke"], hc = /* @__PURE__ */ he({
38074
38074
  __name: "IconZitiYanse",
38075
38075
  props: {
38076
38076
  size: {},
@@ -38096,7 +38096,7 @@ const AA = [
38096
38096
  }, null, 8, RO)
38097
38097
  ], 8, OO));
38098
38098
  }
38099
- }), IO = ["width", "height"], LO = ["fill"], Ip = /* @__PURE__ */ de({
38099
+ }), IO = ["width", "height"], LO = ["fill"], Ip = /* @__PURE__ */ he({
38100
38100
  __name: "IconBeijingse",
38101
38101
  props: {
38102
38102
  size: {},
@@ -38120,7 +38120,7 @@ const AA = [
38120
38120
  }, null, 8, LO)
38121
38121
  ], 8, IO));
38122
38122
  }
38123
- }), DO = ["width", "height"], $O = /* @__PURE__ */ de({
38123
+ }), DO = ["width", "height"], $O = /* @__PURE__ */ he({
38124
38124
  __name: "IconQingchu",
38125
38125
  props: {
38126
38126
  size: {},
@@ -38144,7 +38144,7 @@ const AA = [
38144
38144
  }, null, -1)
38145
38145
  ])], 8, DO));
38146
38146
  }
38147
- }), BO = ["width", "height"], PO = /* @__PURE__ */ de({
38147
+ }), BO = ["width", "height"], PO = /* @__PURE__ */ he({
38148
38148
  __name: "IconGeshishua",
38149
38149
  props: {
38150
38150
  size: {},
@@ -38168,7 +38168,7 @@ const AA = [
38168
38168
  }, null, -1)
38169
38169
  ])], 8, BO));
38170
38170
  }
38171
- }), zO = ["width", "height"], HO = ["fill"], FO = /* @__PURE__ */ de({
38171
+ }), zO = ["width", "height"], HO = ["fill"], FO = /* @__PURE__ */ he({
38172
38172
  __name: "IconHuifu",
38173
38173
  props: {
38174
38174
  size: {},
@@ -38192,7 +38192,7 @@ const AA = [
38192
38192
  }, null, 8, HO)
38193
38193
  ], 8, zO));
38194
38194
  }
38195
- }), UO = ["width", "height"], WO = ["fill"], VO = /* @__PURE__ */ de({
38195
+ }), UO = ["width", "height"], WO = ["fill"], VO = /* @__PURE__ */ he({
38196
38196
  __name: "IconChexiao",
38197
38197
  props: {
38198
38198
  size: {},
@@ -38216,7 +38216,7 @@ const AA = [
38216
38216
  }, null, 8, WO)
38217
38217
  ], 8, UO));
38218
38218
  }
38219
- }), KO = ["width", "height"], qO = ["fill"], GO = /* @__PURE__ */ de({
38219
+ }), KO = ["width", "height"], qO = ["fill"], GO = /* @__PURE__ */ he({
38220
38220
  __name: "IconJiahao",
38221
38221
  props: {
38222
38222
  size: {},
@@ -38240,7 +38240,7 @@ const AA = [
38240
38240
  }, null, 8, qO)
38241
38241
  ], 8, KO));
38242
38242
  }
38243
- }), jO = ["width", "height"], YO = ["fill"], Lp = /* @__PURE__ */ de({
38243
+ }), jO = ["width", "height"], YO = ["fill"], Lp = /* @__PURE__ */ he({
38244
38244
  __name: "IconCodeInLine",
38245
38245
  props: {
38246
38246
  size: {},
@@ -38265,7 +38265,7 @@ const AA = [
38265
38265
  }, null, 8, YO)
38266
38266
  ], 8, jO));
38267
38267
  }
38268
- }), XO = ["width", "height"], JO = ["stroke"], ZO = ["stroke"], QO = ["stroke"], eR = /* @__PURE__ */ de({
38268
+ }), XO = ["width", "height"], JO = ["stroke"], ZO = ["stroke"], QO = ["stroke"], eR = /* @__PURE__ */ he({
38269
38269
  __name: "IconXiazai",
38270
38270
  props: {
38271
38271
  size: {},
@@ -38302,7 +38302,7 @@ const AA = [
38302
38302
  }, null, 8, QO)
38303
38303
  ], 8, XO));
38304
38304
  }
38305
- }), tR = ["width", "height"], nR = ["fill", "stroke"], rR = /* @__PURE__ */ de({
38305
+ }), tR = ["width", "height"], nR = ["fill", "stroke"], rR = /* @__PURE__ */ he({
38306
38306
  __name: "ImageUpload",
38307
38307
  props: {
38308
38308
  size: {},
@@ -38326,7 +38326,7 @@ const AA = [
38326
38326
  }, null, 8, nR)
38327
38327
  ], 8, tR));
38328
38328
  }
38329
- }), sR = ["width", "height"], iR = ["stroke"], oR = /* @__PURE__ */ de({
38329
+ }), sR = ["width", "height"], iR = ["stroke"], oR = /* @__PURE__ */ he({
38330
38330
  __name: "IconLeftArrow",
38331
38331
  props: {
38332
38332
  size: {},
@@ -38349,7 +38349,7 @@ const AA = [
38349
38349
  }, null, 8, iR)
38350
38350
  ], 8, sR));
38351
38351
  }
38352
- }), aR = ["width", "height"], lR = ["fill"], cR = ["fill"], uR = ["fill"], dR = /* @__PURE__ */ de({
38352
+ }), aR = ["width", "height"], lR = ["fill"], cR = ["fill"], uR = ["fill"], dR = /* @__PURE__ */ he({
38353
38353
  __name: "IconMoreShu",
38354
38354
  props: {
38355
38355
  size: {},
@@ -38589,7 +38589,7 @@ ${W0(s)}
38589
38589
  }, e4 = { key: 1 }, t4 = ["title", "onClick"], n4 = { key: 0 }, r4 = {
38590
38590
  class: "hover-button",
38591
38591
  style: { width: "20px", display: "inline-flex", border: "solid 1px #e0e0e0" }
38592
- }, s4 = { class: "toolbar-select-inlie-list" }, i4 = ["onClick", "data-label"], o4 = { class: "toolbar-select-inlie-list" }, a4 = ["onClick", "data-label"], l4 = { class: "mermaid-edit-box" }, c4 = 8, u4 = 10, y4 = /* @__PURE__ */ de({
38592
+ }, s4 = { class: "toolbar-select-inlie-list" }, i4 = ["onClick", "data-label"], o4 = { class: "toolbar-select-inlie-list" }, a4 = ["onClick", "data-label"], l4 = { class: "mermaid-edit-box" }, c4 = 8, u4 = 10, y4 = /* @__PURE__ */ he({
38593
38593
  __name: "index",
38594
38594
  props: {
38595
38595
  title: {},
@@ -38660,7 +38660,7 @@ ${W0(s)}
38660
38660
  breaks: !0,
38661
38661
  linkify: !0,
38662
38662
  typographer: !1
38663
- }))), k), _ = async (E) => (await C()).render(E), O = S(null), R = S(null), T = S(null), P = S(null), K = S(null), X = S(null), ve = S(null), Ee = S(null), he = S(null), ee = S(null), ue = S(null), I = S(null), x = S(null), A = S(null), F = S(null);
38663
+ }))), k), _ = async (E) => (await C()).render(E), O = S(null), R = S(null), T = S(null), P = S(null), K = S(null), X = S(null), ye = S(null), ke = S(null), pe = S(null), ee = S(null), de = S(null), I = S(null), x = S(null), A = S(null), F = S(null);
38664
38664
  Mt(O, () => {
38665
38665
  Zn.value = !1;
38666
38666
  }), Mt(R, () => {
@@ -38673,15 +38673,15 @@ ${W0(s)}
38673
38673
  on.value = !1;
38674
38674
  }), Mt(X, () => {
38675
38675
  er.value = !1;
38676
- }), Mt(he, () => {
38676
+ }), Mt(pe, () => {
38677
38677
  Ut.value = !1;
38678
- }), Mt(ve, () => {
38678
+ }), Mt(ye, () => {
38679
38679
  q.value = !1;
38680
38680
  }), Mt(ee, () => {
38681
38681
  Ln.value = !1;
38682
- }), Mt(Ee, () => {
38682
+ }), Mt(ke, () => {
38683
38683
  yn.value = !1;
38684
- }), Mt(ue, () => {
38684
+ }), Mt(de, () => {
38685
38685
  an.value = !1;
38686
38686
  }), Mt(I, () => {
38687
38687
  Rt.value = !1;
@@ -38692,7 +38692,7 @@ ${W0(s)}
38692
38692
  }), Mt(F, () => {
38693
38693
  Y0.value = !1;
38694
38694
  });
38695
- const Y = S(""), pe = S(), Ne = S(!1), Be = S(!1), se = S(""), Le = S(0), Ge = () => {
38695
+ const Y = S(""), me = S(), Ne = S(!1), Be = S(!1), se = S(""), Le = S(0), Ge = () => {
38696
38696
  !w.value || !s.value || requestAnimationFrame(() => {
38697
38697
  if (!w.value || !s.value) return;
38698
38698
  const { state: E, view: b } = w.value, L = oe.atStart(E.doc);
@@ -38706,8 +38706,8 @@ ${W0(s)}
38706
38706
  return b.innerHTML = E, b.querySelectorAll("pre").forEach((L) => {
38707
38707
  const W = Array.from(L.children).find((rt) => rt.tagName.toLowerCase() === "code");
38708
38708
  if (!W) return;
38709
- const M = (W.getAttribute("class") || "").match(/(?:^|\s)language-([^\s]+)/), fe = L.getAttribute("data-language") || (M == null ? void 0 : M[1]) || "", Ae = W.textContent || "";
38710
- L.innerHTML = "", fe && L.setAttribute("data-language", fe), L.textContent = Ae;
38709
+ const M = (W.getAttribute("class") || "").match(/(?:^|\s)language-([^\s]+)/), ue = L.getAttribute("data-language") || (M == null ? void 0 : M[1]) || "", Ae = W.textContent || "";
38710
+ L.innerHTML = "", ue && L.setAttribute("data-language", ue), L.textContent = Ae;
38711
38711
  }), b.innerHTML;
38712
38712
  }, Re = (E) => {
38713
38713
  if (!E || !/(\${1,2}|\\\(|\\\[)/.test(E)) return E;
@@ -38715,19 +38715,19 @@ ${W0(s)}
38715
38715
  b.innerHTML = E;
38716
38716
  const L = document.createTreeWalker(b, NodeFilter.SHOW_TEXT), W = [];
38717
38717
  for (; L.nextNode(); ) {
38718
- const M = L.currentNode, fe = M.parentElement;
38719
- !fe || fe.closest("pre, code, katex-formula, script, style") || /(\${1,2}|\\\(|\\\[)/.test(M.nodeValue || "") && W.push(M);
38718
+ const M = L.currentNode, ue = M.parentElement;
38719
+ !ue || ue.closest("pre, code, katex-formula, script, style") || /(\${1,2}|\\\(|\\\[)/.test(M.nodeValue || "") && W.push(M);
38720
38720
  }
38721
- const Ce = /\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\]|\$([^$\n]+?)\$|\\\(([\s\S]+?)\\\)/g;
38721
+ const fe = /\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\]|\$([^$\n]+?)\$|\\\(([\s\S]+?)\\\)/g;
38722
38722
  return W.forEach((M) => {
38723
- const fe = M.nodeValue || "", Ae = document.createDocumentFragment();
38723
+ const ue = M.nodeValue || "", Ae = document.createDocumentFragment();
38724
38724
  let rt = 0, vt = !1;
38725
- fe.replace(Ce, (Dn, Bi, Pi, Qe, _l, ss) => {
38726
- const is = Bi || Pi || Qe || _l, ge = !!(Bi || Pi);
38727
- ss > rt && Ae.appendChild(document.createTextNode(fe.slice(rt, ss)));
38728
- const Se = document.createElement("katex-formula");
38729
- return Se.setAttribute("formula", is.trim()), Se.setAttribute("display", String(ge)), Se.setAttribute("editable", "true"), Ae.appendChild(Se), rt = ss + Dn.length, vt = !0, Dn;
38730
- }), vt && (rt < fe.length && Ae.appendChild(document.createTextNode(fe.slice(rt))), M.replaceWith(Ae));
38725
+ ue.replace(fe, (Dn, Bi, Pi, Qe, _l, ss) => {
38726
+ const is = Bi || Pi || Qe || _l, be = !!(Bi || Pi);
38727
+ ss > rt && Ae.appendChild(document.createTextNode(ue.slice(rt, ss)));
38728
+ const Me = document.createElement("katex-formula");
38729
+ return Me.setAttribute("formula", is.trim()), Me.setAttribute("display", String(be)), Me.setAttribute("editable", "true"), Ae.appendChild(Me), rt = ss + Dn.length, vt = !0, Dn;
38730
+ }), vt && (rt < ue.length && Ae.appendChild(document.createTextNode(ue.slice(rt))), M.replaceWith(Ae));
38731
38731
  }), b.innerHTML;
38732
38732
  }, bn = async (E) => {
38733
38733
  if (!E) return "";
@@ -38743,15 +38743,15 @@ ${W0(s)}
38743
38743
  emitUpdate: !1,
38744
38744
  parseOptions: xt
38745
38745
  }), Ge(), tf();
38746
- const Ce = ((W = w.value) == null ? void 0 : W.getText()) || "";
38747
- Le.value = Ce.replace(/\s/g, "").length;
38746
+ const fe = ((W = w.value) == null ? void 0 : W.getText()) || "";
38747
+ Le.value = fe.replace(/\s/g, "").length;
38748
38748
  }
38749
38749
  });
38750
38750
  }, lt = S([]), J = S("");
38751
38751
  S([]), S([]);
38752
38752
  const Z = S(!0), Q = S(null), ie = S(!1);
38753
- let ke = null;
38754
- const w = S(), q = S(!1), le = S({ top: "0px", left: "0px" }), te = S(!1), ne = S(!1), nt = S(!1), ze = S(!1), St = S(!1), G = S(!1), N = S(!1), D = S(!1), V = S(!1), me = S(!1), xe = S(!1), Ot = S(!1), _r = S(!1), Ps = S(!1), Pa = S(!1), za = S(!1), Ha = S(!1), Fa = S(!1), Zn = S(!1), vn = S(!1), Ai = S("三号"), ud = AA, Tr = S(!1), Oi = S("默认"), dd = OA, Yt = S(!1), Qn = S("left"), on = S(!1), er = S(!1), Ri = S("#000000"), fd = LA, K0 = RA, Ut = S(!1), Ln = S(!1), hd = S("#fff59d"), pd = DA, q0 = IA, md = S(null), gd = S(null), bd = S(null), vd = S(null), yd = S(null), wd = S(null), Ed = S(null), kd = S(null), xd = S(null), Sd = S(null), Md = S(null), Ua = S(null), Cd = S(null), _d = S(null), Td = S(null), Wa = S(null), Nd = S(null), Ad = S(null), Va = S(null), Od = S(null), G0 = S(null), Ka = S(null), qa = S(null), Ga = S(null), ja = S(null);
38753
+ let xe = null;
38754
+ const w = S(), q = S(!1), le = S({ top: "0px", left: "0px" }), te = S(!1), ne = S(!1), nt = S(!1), ze = S(!1), St = S(!1), G = S(!1), N = S(!1), D = S(!1), V = S(!1), ge = S(!1), Se = S(!1), Ot = S(!1), _r = S(!1), Ps = S(!1), Pa = S(!1), za = S(!1), Ha = S(!1), Fa = S(!1), Zn = S(!1), vn = S(!1), Ai = S("三号"), ud = AA, Tr = S(!1), Oi = S("默认"), dd = OA, Yt = S(!1), Qn = S("left"), on = S(!1), er = S(!1), Ri = S("#000000"), fd = LA, K0 = RA, Ut = S(!1), Ln = S(!1), hd = S("#fff59d"), pd = DA, q0 = IA, md = S(null), gd = S(null), bd = S(null), vd = S(null), yd = S(null), wd = S(null), Ed = S(null), kd = S(null), xd = S(null), Sd = S(null), Md = S(null), Ua = S(null), Cd = S(null), _d = S(null), Td = S(null), Wa = S(null), Nd = S(null), Ad = S(null), Va = S(null), Od = S(null), G0 = S(null), Ka = S(null), qa = S(null), Ga = S(null), ja = S(null);
38755
38755
  S(null);
38756
38756
  const Ya = S(null), Xa = S(!1), Ja = S(!1), Za = S(!1), Qa = S(!1), el = S(!1), tl = S(!1), nl = S(!1), rl = S(!1), sl = S(!1), il = S(!1), ol = S(!1), al = S(!1), ll = S(!1), cl = S(!1), ul = S(!1), dl = S(!1), fl = S(!1), hl = S(!1), pl = S(!1);
38757
38757
  S(!1);
@@ -38775,13 +38775,13 @@ ${W0(s)}
38775
38775
  function Dd(E) {
38776
38776
  if (!w.value || !w.value.view.dom.contains(document.activeElement))
38777
38777
  return;
38778
- const W = (E.ctrlKey || E.metaKey) && E.shiftKey && E.key === ">", Ce = (E.ctrlKey || E.metaKey) && E.key.toLowerCase() === "s", M = E.key === "Enter", fe = E.key === "ArrowRight";
38779
- if (W && (E.preventDefault(), El()), Ce && (E.preventDefault(), Ld("ctrls")), (E.ctrlKey || E.metaKey) && (E.key === "+" || E.key === "-" || E.key === "=") && (E.preventDefault(), X0(E.key)), M) {
38778
+ const W = (E.ctrlKey || E.metaKey) && E.shiftKey && E.key === ">", fe = (E.ctrlKey || E.metaKey) && E.key.toLowerCase() === "s", M = E.key === "Enter", ue = E.key === "ArrowRight";
38779
+ if (W && (E.preventDefault(), El()), fe && (E.preventDefault(), Ld("ctrls")), (E.ctrlKey || E.metaKey) && (E.key === "+" || E.key === "-" || E.key === "=") && (E.preventDefault(), X0(E.key)), M) {
38780
38780
  if (!w.value.isActive("code") && !w.value.isActive("knowledgeGraphMark"))
38781
38781
  return;
38782
38782
  E.preventDefault(), w.value.isActive("code") && w.value.chain().focus().toggleMark("code").run(), w.value.isActive("knowledgeGraphMark") && w.value.chain().focus().unsetMark("knowledgeGraphMark").run();
38783
38783
  }
38784
- fe && w.value.isActive("knowledgeGraphMark") && w.value.chain().focus().unsetMark("knowledgeGraphMark").run();
38784
+ ue && w.value.isActive("knowledgeGraphMark") && w.value.chain().focus().unsetMark("knowledgeGraphMark").run();
38785
38785
  }
38786
38786
  function J0() {
38787
38787
  if (!Q.value) return;
@@ -38802,12 +38802,12 @@ ${W0(s)}
38802
38802
  }
38803
38803
  return "left";
38804
38804
  }, Q0 = js(() => {
38805
- var Ce;
38805
+ var fe;
38806
38806
  if (!w.value) return;
38807
- const E = (Ce = w.value.getAttributes("headingWithId")) == null ? void 0 : Ce.level;
38807
+ const E = (fe = w.value.getAttributes("headingWithId")) == null ? void 0 : fe.level;
38808
38808
  if (E) {
38809
- const M = `h${E}`, fe = K0.find((Ae) => Ae.level === M);
38810
- return fe ? fe.size : "16pt";
38809
+ const M = `h${E}`, ue = K0.find((Ae) => Ae.level === M);
38810
+ return ue ? ue.size : "16pt";
38811
38811
  }
38812
38812
  const L = w.value.getAttributes("textStyle").fontSize || "16px", W = ud.find((M) => M.value === L);
38813
38813
  return W ? W.label : L;
@@ -38820,14 +38820,14 @@ ${W0(s)}
38820
38820
  return w.value ? w.value.getAttributes("paragraph").lineHeight || "默认" : void 0;
38821
38821
  }
38822
38822
  const wl = js(() => {
38823
- var fe;
38823
+ var ue;
38824
38824
  if (!w.value) return;
38825
38825
  const E = w.value.state, b = E.selection.$from.marks(), { selection: L } = E;
38826
38826
  let W = null;
38827
- L.empty, W = L.$from.nodeAfter || L.$from.node(), te.value = b.some((Ae) => Ae.type.name === "bold"), ne.value = b.some((Ae) => Ae.type.name === "italic"), nt.value = b.some((Ae) => Ae.type.name === "underline"), St.value = w.value.isActive("blockquote"), ze.value = b.some((Ae) => Ae.type.name === "strike"), D.value = w.value.commands.isActiveBulletItem(), V.value = w.value.commands.isActiveTaskItem(), G.value = b.some((Ae) => Ae.type.name === "code"), Ot.value = w.value.isActive("headingWithId", { level: 1 }), _r.value = w.value.isActive("headingWithId", { level: 2 }), Ps.value = w.value.isActive("headingWithId", { level: 3 }), Pa.value = w.value.isActive("headingWithId", { level: 4 }), za.value = w.value.isActive("headingWithId", { level: 5 }), Ha.value = w.value.isActive("headingWithId", { level: 6 }), xe.value = Dp(w.value), Fa.value = w.value.isActive("paragraph"), Ai.value = Q0(), Oi.value = e1(), Qn.value = Z0(), kl.value = t1();
38828
- const Ce = (W == null ? void 0 : W.type.name) === "image" || (W == null ? void 0 : W.type.name) === "customImage";
38829
- me.value = !!Ce;
38830
- const M = (fe = w.value.getAttributes("textStyle")) == null ? void 0 : fe.color;
38827
+ L.empty, W = L.$from.nodeAfter || L.$from.node(), te.value = b.some((Ae) => Ae.type.name === "bold"), ne.value = b.some((Ae) => Ae.type.name === "italic"), nt.value = b.some((Ae) => Ae.type.name === "underline"), St.value = w.value.isActive("blockquote"), ze.value = b.some((Ae) => Ae.type.name === "strike"), D.value = w.value.commands.isActiveBulletItem(), V.value = w.value.commands.isActiveTaskItem(), G.value = b.some((Ae) => Ae.type.name === "code"), Ot.value = w.value.isActive("headingWithId", { level: 1 }), _r.value = w.value.isActive("headingWithId", { level: 2 }), Ps.value = w.value.isActive("headingWithId", { level: 3 }), Pa.value = w.value.isActive("headingWithId", { level: 4 }), za.value = w.value.isActive("headingWithId", { level: 5 }), Ha.value = w.value.isActive("headingWithId", { level: 6 }), Se.value = Dp(w.value), Fa.value = w.value.isActive("paragraph"), Ai.value = Q0(), Oi.value = e1(), Qn.value = Z0(), kl.value = t1();
38828
+ const fe = (W == null ? void 0 : W.type.name) === "image" || (W == null ? void 0 : W.type.name) === "customImage";
38829
+ ge.value = !!fe;
38830
+ const M = (ue = w.value.getAttributes("textStyle")) == null ? void 0 : ue.color;
38831
38831
  Ri.value = M || "#000000", k1();
38832
38832
  }, 100), $d = () => {
38833
38833
  w.value && w.value.chain().focus().toggleMark("bold").run();
@@ -38911,15 +38911,15 @@ ${W0(s)}
38911
38911
  }
38912
38912
  const b = (M = w.value) == null ? void 0 : M.state;
38913
38913
  if (!b) return;
38914
- const { from: L, to: W } = b.selection, Ce = [];
38915
- b.doc.nodesBetween(L, W, (fe) => {
38916
- fe.isText && fe.marks.forEach((Ae) => {
38917
- Ce.push({
38914
+ const { from: L, to: W } = b.selection, fe = [];
38915
+ b.doc.nodesBetween(L, W, (ue) => {
38916
+ ue.isText && ue.marks.forEach((Ae) => {
38917
+ fe.push({
38918
38918
  type: Ae.type.name,
38919
38919
  attrs: Ae.attrs
38920
38920
  });
38921
38921
  });
38922
- }), L !== W && (Xd.value = L, Jd.value = W, Sl.value = Ce, rs.value = !0, zs.value = !1, Yd.value = !0);
38922
+ }), L !== W && (Xd.value = L, Jd.value = W, Sl.value = fe, rs.value = !0, zs.value = !1, Yd.value = !0);
38923
38923
  }, w1 = () => {
38924
38924
  Zd("double"), zs.value = !0;
38925
38925
  };
@@ -38928,8 +38928,8 @@ ${W0(s)}
38928
38928
  const { state: E } = w.value, { from: b, to: L } = E.selection;
38929
38929
  if (b === L || b === Xd.value && L === Jd.value) return;
38930
38930
  const W = w.value.chain().focus();
38931
- Sl.value.forEach((Ce) => {
38932
- W.setMark(Ce.type, Ce.attrs || {});
38931
+ Sl.value.forEach((fe) => {
38932
+ W.setMark(fe.type, fe.attrs || {});
38933
38933
  }), W.run(), zs.value || (rs.value = !1, Sl.value = []);
38934
38934
  }
38935
38935
  }
@@ -38953,7 +38953,7 @@ ${W0(s)}
38953
38953
  var L, W;
38954
38954
  if (!w.value) return;
38955
38955
  const E = w.value.getHTML();
38956
- (n.onSave ? await n.onSave(Y.value, E) : void 0) && (document.title = Y.value, (L = pe.value) == null || L.blur(), _p.success("名称修改成功")), (W = pe.value) == null || W.blur();
38956
+ (n.onSave ? await n.onSave(Y.value, E) : void 0) && (document.title = Y.value, (L = me.value) == null || L.blur(), _p.success("名称修改成功")), (W = me.value) == null || W.blur();
38957
38957
  }, yn = S(!1), Ml = S(0), Cl = S(0), _1 = () => {
38958
38958
  yn.value = !yn.value;
38959
38959
  }, T1 = (E, b) => {
@@ -38964,17 +38964,17 @@ ${W0(s)}
38964
38964
  if (!w.value) return [];
38965
38965
  const E = [];
38966
38966
  let b = w.value.state.tr, L = !1;
38967
- return w.value.state.doc.descendants((W, Ce) => {
38967
+ return w.value.state.doc.descendants((W, fe) => {
38968
38968
  if (W.type.name === "headingWithId") {
38969
- const M = W.textContent.trim(), fe = W.attrs.id || fR();
38970
- W.attrs.id || (b = b.setNodeMarkup(Ce, void 0, {
38969
+ const M = W.textContent.trim(), ue = W.attrs.id || fR();
38970
+ W.attrs.id || (b = b.setNodeMarkup(fe, void 0, {
38971
38971
  ...W.attrs,
38972
- id: fe
38972
+ id: ue
38973
38973
  }), L = !0), E.push({
38974
38974
  text: M || "未命名标题",
38975
38975
  level: W.attrs.level,
38976
- pos: Ce,
38977
- id: fe
38976
+ pos: fe,
38977
+ id: ue
38978
38978
  });
38979
38979
  }
38980
38980
  }), L && w.value.view.dispatch(b), E;
@@ -38988,9 +38988,9 @@ ${W0(s)}
38988
38988
  const L = document.getElementById("editorBody"), W = document.getElementById(E);
38989
38989
  if (L && W) {
38990
38990
  J.value = E;
38991
- const Ce = L.getBoundingClientRect(), fe = W.getBoundingClientRect().top - Ce.top + L.scrollTop - b;
38991
+ const fe = L.getBoundingClientRect(), ue = W.getBoundingClientRect().top - fe.top + L.scrollTop - b;
38992
38992
  L.scrollTo({
38993
- top: fe,
38993
+ top: ue,
38994
38994
  behavior: "smooth"
38995
38995
  });
38996
38996
  }
@@ -39004,11 +39004,11 @@ ${W0(s)}
39004
39004
  if (!E) return;
39005
39005
  const L = E.getBoundingClientRect().top + 120;
39006
39006
  let W = lt.value[0].id;
39007
- for (const Ce of lt.value) {
39008
- const M = document.getElementById(Ce.id);
39007
+ for (const fe of lt.value) {
39008
+ const M = document.getElementById(fe.id);
39009
39009
  if (M)
39010
39010
  if (M.getBoundingClientRect().top <= L)
39011
- W = Ce.id;
39011
+ W = fe.id;
39012
39012
  else
39013
39013
  break;
39014
39014
  }
@@ -39030,8 +39030,8 @@ ${W0(s)}
39030
39030
  const E = (L = w.value) == null ? void 0 : L.getJSON(), { generateDocx: b } = await import("./parseJSONToHtml-CiHRbsL1.mjs");
39031
39031
  b(E, Y.value);
39032
39032
  }, D1 = (E, b, L = "text/plain;charset=utf-8") => {
39033
- const W = new Blob([E], { type: L }), Ce = window.URL.createObjectURL(W), M = document.createElement("a");
39034
- M.href = Ce, M.download = b, M.click(), window.URL.revokeObjectURL(Ce);
39033
+ const W = new Blob([E], { type: L }), fe = window.URL.createObjectURL(W), M = document.createElement("a");
39034
+ M.href = fe, M.download = b, M.click(), window.URL.revokeObjectURL(fe);
39035
39035
  }, $1 = () => {
39036
39036
  if (!w.value) return;
39037
39037
  const E = $p(w.value.getHTML());
@@ -39059,21 +39059,21 @@ ${W0(s)}
39059
39059
  const W = L[0];
39060
39060
  if (!W)
39061
39061
  return;
39062
- const Ce = (fe) => new Promise((Ae, rt) => {
39063
- if (fe instanceof File) {
39062
+ const fe = (ue) => new Promise((Ae, rt) => {
39063
+ if (ue instanceof File) {
39064
39064
  const vt = new FileReader();
39065
- vt.onload = () => Ae(vt.result), vt.onerror = (Dn) => rt(Dn), vt.readAsDataURL(fe);
39066
- } else if (fe instanceof HTMLImageElement) {
39065
+ vt.onload = () => Ae(vt.result), vt.onerror = (Dn) => rt(Dn), vt.readAsDataURL(ue);
39066
+ } else if (ue instanceof HTMLImageElement) {
39067
39067
  const vt = document.createElement("canvas");
39068
- vt.width = fe.naturalWidth, vt.height = fe.naturalHeight;
39068
+ vt.width = ue.naturalWidth, vt.height = ue.naturalHeight;
39069
39069
  const Dn = vt.getContext("2d");
39070
39070
  if (!Dn) return rt("无法获取 canvas context");
39071
- Dn.drawImage(fe, 0, 0), Ae(vt.toDataURL("image/png"));
39071
+ Dn.drawImage(ue, 0, 0), Ae(vt.toDataURL("image/png"));
39072
39072
  }
39073
39073
  });
39074
39074
  let M = "";
39075
39075
  try {
39076
- n.onUploadFile ? M = await n.onUploadFile(W) : W.type.startsWith("image/") && (M = await Ce(W));
39076
+ n.onUploadFile ? M = await n.onUploadFile(W) : W.type.startsWith("image/") && (M = await fe(W));
39077
39077
  } catch {
39078
39078
  return;
39079
39079
  }
@@ -39084,7 +39084,7 @@ ${W0(s)}
39084
39084
  Hs.value = !1, $i.value = "";
39085
39085
  };
39086
39086
  function V1(E) {
39087
- var fe, Ae;
39087
+ var ue, Ae;
39088
39088
  if (!E) return "";
39089
39089
  const b = document.createElement("div");
39090
39090
  b.innerHTML = E;
@@ -39092,10 +39092,10 @@ ${W0(s)}
39092
39092
  L && (b.innerHTML = L.innerHTML);
39093
39093
  const W = b.querySelector("body");
39094
39094
  W && (b.innerHTML = W.innerHTML);
39095
- const Ce = document.createTreeWalker(b, NodeFilter.SHOW_COMMENT, null), M = [];
39096
- for (; Ce.nextNode(); ) {
39097
- const rt = Ce.currentNode;
39098
- ((fe = rt.nodeValue) != null && fe.includes("StartFragment") || (Ae = rt.nodeValue) != null && Ae.includes("EndFragment")) && M.push(rt);
39095
+ const fe = document.createTreeWalker(b, NodeFilter.SHOW_COMMENT, null), M = [];
39096
+ for (; fe.nextNode(); ) {
39097
+ const rt = fe.currentNode;
39098
+ ((ue = rt.nodeValue) != null && ue.includes("StartFragment") || (Ae = rt.nodeValue) != null && Ae.includes("EndFragment")) && M.push(rt);
39099
39099
  }
39100
39100
  return M.forEach((rt) => {
39101
39101
  var vt;
@@ -39106,127 +39106,127 @@ ${W0(s)}
39106
39106
  if (!w.value) return;
39107
39107
  const b = E.clipboardData;
39108
39108
  if (!b) return;
39109
- const L = (ge) => {
39110
- const Se = document.createElement("div");
39111
- return Se.innerHTML = ge, Se.querySelectorAll("style").forEach((De) => {
39109
+ const L = (be) => {
39110
+ const Me = document.createElement("div");
39111
+ return Me.innerHTML = be, Me.querySelectorAll("style").forEach((De) => {
39112
39112
  De.innerHTML = De.innerHTML.replace(/mso-[^:]+:[^;]+;?/g, "");
39113
- }), Se.querySelectorAll("*").forEach((De) => {
39113
+ }), Me.querySelectorAll("*").forEach((De) => {
39114
39114
  typeof De.className == "string" && (De.className.startsWith("Mso") || De.className.includes("mso")) && De.removeAttribute("class");
39115
39115
  const re = De.getAttribute("style");
39116
39116
  re && re.includes("mso-") && De.setAttribute("style", re.replace(/mso-[^:]+:[^;]+;?/g, ""));
39117
- }), Se.innerHTML;
39118
- }, W = (ge) => new Promise((Se, De) => {
39119
- if (ge instanceof HTMLImageElement) {
39117
+ }), Me.innerHTML;
39118
+ }, W = (be) => new Promise((Me, De) => {
39119
+ if (be instanceof HTMLImageElement) {
39120
39120
  const re = document.createElement("canvas");
39121
- re.width = ge.naturalWidth, re.height = ge.naturalHeight;
39121
+ re.width = be.naturalWidth, re.height = be.naturalHeight;
39122
39122
  const je = re.getContext("2d");
39123
39123
  if (!je) return De("无法获取 canvas context");
39124
- je.drawImage(ge, 0, 0), Se(re.toDataURL("image/png"));
39125
- } else if (ge instanceof File) {
39124
+ je.drawImage(be, 0, 0), Me(re.toDataURL("image/png"));
39125
+ } else if (be instanceof File) {
39126
39126
  const re = new FileReader();
39127
- re.onload = () => Se(re.result), re.onerror = (je) => De(je), re.readAsDataURL(ge);
39127
+ re.onload = () => Me(re.result), re.onerror = (je) => De(je), re.readAsDataURL(be);
39128
39128
  }
39129
- }), Ce = async (ge) => {
39129
+ }), fe = async (be) => {
39130
39130
  try {
39131
39131
  if (n.onUploadFile)
39132
- if (ge instanceof HTMLImageElement) {
39133
- const Se = document.createElement("canvas");
39134
- Se.width = ge.naturalWidth, Se.height = ge.naturalHeight;
39135
- const De = Se.getContext("2d");
39136
- if (!De) return await W(ge);
39137
- De.drawImage(ge, 0, 0);
39138
- const re = await new Promise((je) => Se.toBlob(je, "image/png"));
39139
- return re ? await n.onUploadFile(new File([re], "image.png", { type: "image/png" })) : await W(ge);
39132
+ if (be instanceof HTMLImageElement) {
39133
+ const Me = document.createElement("canvas");
39134
+ Me.width = be.naturalWidth, Me.height = be.naturalHeight;
39135
+ const De = Me.getContext("2d");
39136
+ if (!De) return await W(be);
39137
+ De.drawImage(be, 0, 0);
39138
+ const re = await new Promise((je) => Me.toBlob(je, "image/png"));
39139
+ return re ? await n.onUploadFile(new File([re], "image.png", { type: "image/png" })) : await W(be);
39140
39140
  } else
39141
- return await n.onUploadFile(ge);
39141
+ return await n.onUploadFile(be);
39142
39142
  else
39143
- return await W(ge);
39143
+ return await W(be);
39144
39144
  } catch {
39145
39145
  return "";
39146
39146
  }
39147
- }, M = (ge) => {
39147
+ }, M = (be) => {
39148
39148
  var De, re;
39149
- const Se = document.createElement("div");
39150
- if (Se.innerHTML = ge.trim(), Se.childNodes.length === 1 && ((De = Se.firstChild) == null ? void 0 : De.nodeName) === "P") {
39151
- const je = Se.firstChild;
39149
+ const Me = document.createElement("div");
39150
+ if (Me.innerHTML = be.trim(), Me.childNodes.length === 1 && ((De = Me.firstChild) == null ? void 0 : De.nodeName) === "P") {
39151
+ const je = Me.firstChild;
39152
39152
  if (je.childNodes.length === 1 && ((re = je.firstChild) == null ? void 0 : re.nodeType) === Node.TEXT_NODE)
39153
39153
  return je.textContent || "";
39154
39154
  }
39155
- return ge;
39156
- }, fe = [];
39155
+ return be;
39156
+ }, ue = [];
39157
39157
  if (b.items) {
39158
- for (const ge of b.items)
39159
- if (ge.kind === "file" && ge.type.startsWith("image")) {
39160
- const Se = ge.getAsFile();
39161
- Se && fe.push(Se);
39158
+ for (const be of b.items)
39159
+ if (be.kind === "file" && be.type.startsWith("image")) {
39160
+ const Me = be.getAsFile();
39161
+ Me && ue.push(Me);
39162
39162
  }
39163
39163
  }
39164
- if (fe.length > 0) {
39164
+ if (ue.length > 0) {
39165
39165
  E.preventDefault(), E.stopImmediatePropagation();
39166
- const ge = await Promise.all(fe.map(Ce));
39167
- for (const Se of ge)
39168
- await w.value.chain().focus().setImage({ src: Se }).run();
39166
+ const be = await Promise.all(ue.map(fe));
39167
+ for (const Me of be)
39168
+ await w.value.chain().focus().setImage({ src: Me }).run();
39169
39169
  return;
39170
39170
  }
39171
39171
  b.getData("text/html");
39172
39172
  const Ae = b.getData("text/plain") || "", rt = b.getData("text/html") || "", vt = rt.includes('class="katex"') || rt.includes("class='katex'"), Dn = /<[hH][1-6][>\s]/.test(rt) || /<[oOuU]l[>\s]/.test(rt), Bi = /^#{1,6}\s/m.test(Ae), Pi = Dn && !Bi;
39173
39173
  if (ac(Ae) && !vt && !Pi) {
39174
39174
  E.preventDefault(), E.stopImmediatePropagation();
39175
- const ge = lc(Ae), Se = Bt(await _(ge));
39176
- w.value.chain().focus().insertContent(Se).run();
39175
+ const be = lc(Ae), Me = Bt(await _(be));
39176
+ w.value.chain().focus().insertContent(Me).run();
39177
39177
  return;
39178
39178
  }
39179
- const Qe = (ge) => {
39179
+ const Qe = (be) => {
39180
39180
  var je, ht, Wt, dt, ln;
39181
- const Se = ge.tagName.toLowerCase(), De = () => Array.from(ge.children).map(Qe).join(""), re = Array.from(ge.children);
39182
- switch (Se) {
39181
+ const Me = be.tagName.toLowerCase(), De = () => Array.from(be.children).map(Qe).join(""), re = Array.from(be.children);
39182
+ switch (Me) {
39183
39183
  case "math":
39184
39184
  case "semantics":
39185
39185
  case "mrow":
39186
39186
  return De();
39187
39187
  case "mi": {
39188
- const be = ((je = ge.textContent) == null ? void 0 : je.trim()) || "";
39189
- return be === "" ? "\\neq " : be === "±" ? "\\pm " : be === "≤" ? "\\leq " : be === "≥" ? "\\geq " : be === "∞" ? "\\infty " : be === "Δ" ? "\\Delta " : be.length === 1 && /[a-zA-Z]/.test(be) ? be : `\\text{${be}}`;
39188
+ const ve = ((je = be.textContent) == null ? void 0 : je.trim()) || "";
39189
+ return ve === "" ? "\\neq " : ve === "±" ? "\\pm " : ve === "≤" ? "\\leq " : ve === "≥" ? "\\geq " : ve === "∞" ? "\\infty " : ve === "Δ" ? "\\Delta " : ve.length === 1 && /[a-zA-Z]/.test(ve) ? ve : `\\text{${ve}}`;
39190
39190
  }
39191
39191
  case "mn":
39192
- return ((ht = ge.textContent) == null ? void 0 : ht.trim()) || "";
39192
+ return ((ht = be.textContent) == null ? void 0 : ht.trim()) || "";
39193
39193
  case "mo": {
39194
- const be = ((Wt = ge.textContent) == null ? void 0 : Wt.trim()) || "";
39195
- return be === "" ? "\\neq " : be === "±" ? "\\pm " : be === "≤" ? "\\leq " : be === "≥" ? "\\geq " : be === "−" || be === "–" ? "-" : be === "×" ? "\\times " : be === "÷" ? "\\div " : be === "→" ? "\\rightarrow " : be === "⇒" ? "\\Rightarrow " : be === "⋅" ? "\\cdot " : be;
39194
+ const ve = ((Wt = be.textContent) == null ? void 0 : Wt.trim()) || "";
39195
+ return ve === "" ? "\\neq " : ve === "±" ? "\\pm " : ve === "≤" ? "\\leq " : ve === "≥" ? "\\geq " : ve === "−" || ve === "–" ? "-" : ve === "×" ? "\\times " : ve === "÷" ? "\\div " : ve === "→" ? "\\rightarrow " : ve === "⇒" ? "\\Rightarrow " : ve === "⋅" ? "\\cdot " : ve;
39196
39196
  }
39197
39197
  case "msup": {
39198
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39199
- return `{${be}}^{${Xe}}`;
39198
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39199
+ return `{${ve}}^{${Xe}}`;
39200
39200
  }
39201
39201
  case "msub": {
39202
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39203
- return `{${be}}_{${Xe}}`;
39202
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39203
+ return `{${ve}}_{${Xe}}`;
39204
39204
  }
39205
39205
  case "msubsup": {
39206
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "", as = re[2] ? Qe(re[2]) : "";
39207
- return `{${be}}_{${Xe}}^{${as}}`;
39206
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "", as = re[2] ? Qe(re[2]) : "";
39207
+ return `{${ve}}_{${Xe}}^{${as}}`;
39208
39208
  }
39209
39209
  case "mfrac": {
39210
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39211
- return `\\frac{${be}}{${Xe}}`;
39210
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39211
+ return `\\frac{${ve}}{${Xe}}`;
39212
39212
  }
39213
39213
  case "msqrt":
39214
39214
  return `\\sqrt{${De()}}`;
39215
39215
  case "mroot": {
39216
- const be = re[0] ? Qe(re[0]) : "";
39217
- return `\\sqrt[${re[1] ? Qe(re[1]) : ""}]{${be}}`;
39216
+ const ve = re[0] ? Qe(re[0]) : "";
39217
+ return `\\sqrt[${re[1] ? Qe(re[1]) : ""}]{${ve}}`;
39218
39218
  }
39219
39219
  case "mover": {
39220
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39221
- return Xe === "¯" || Xe === "‾" ? `\\overline{${be}}` : `{${be}}^{${Xe}}`;
39220
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39221
+ return Xe === "¯" || Xe === "‾" ? `\\overline{${ve}}` : `{${ve}}^{${Xe}}`;
39222
39222
  }
39223
39223
  case "munder": {
39224
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39225
- return `{${be}}_{${Xe}}`;
39224
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "";
39225
+ return `{${ve}}_{${Xe}}`;
39226
39226
  }
39227
39227
  case "munderover": {
39228
- const be = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "", as = re[2] ? Qe(re[2]) : "";
39229
- return `{${be}}_{${Xe}}^{${as}}`;
39228
+ const ve = re[0] ? Qe(re[0]) : "", Xe = re[1] ? Qe(re[1]) : "", as = re[2] ? Qe(re[2]) : "";
39229
+ return `{${ve}}_{${Xe}}^{${as}}`;
39230
39230
  }
39231
39231
  case "mtable":
39232
39232
  return `\\begin{matrix}${De()}\\end{matrix}`;
@@ -39235,25 +39235,25 @@ ${W0(s)}
39235
39235
  case "mtd":
39236
39236
  return De() + " & ";
39237
39237
  case "mfenced": {
39238
- const be = ge.getAttribute("open") || "(", Xe = ge.getAttribute("close") || ")", as = ge.getAttribute("separators") || ",", lf = re.map(Qe);
39239
- return be === "{" && Xe === "}" ? `\\{${lf.join(as)}\\}` : `${be}${lf.join(as)}${Xe}`;
39238
+ const ve = be.getAttribute("open") || "(", Xe = be.getAttribute("close") || ")", as = be.getAttribute("separators") || ",", lf = re.map(Qe);
39239
+ return ve === "{" && Xe === "}" ? `\\{${lf.join(as)}\\}` : `${ve}${lf.join(as)}${Xe}`;
39240
39240
  }
39241
39241
  case "menclose":
39242
39242
  return De();
39243
39243
  case "mspace":
39244
39244
  return " ";
39245
39245
  case "mtext":
39246
- return `\\text{${((dt = ge.textContent) == null ? void 0 : dt.trim()) || ""}}`;
39246
+ return `\\text{${((dt = be.textContent) == null ? void 0 : dt.trim()) || ""}}`;
39247
39247
  case "mpadded":
39248
39248
  case "mstyle":
39249
39249
  return De();
39250
39250
  default:
39251
- return De() || ((ln = ge.textContent) == null ? void 0 : ln.trim()) || "";
39251
+ return De() || ((ln = be.textContent) == null ? void 0 : ln.trim()) || "";
39252
39252
  }
39253
39253
  };
39254
- function _l(ge) {
39255
- const Se = document.createElement("div");
39256
- return Se.innerHTML = ge, Array.from(Se.querySelectorAll(".katex")).forEach((je) => {
39254
+ function _l(be) {
39255
+ const Me = document.createElement("div");
39256
+ return Me.innerHTML = be, Array.from(Me.querySelectorAll(".katex")).forEach((je) => {
39257
39257
  let ht = "";
39258
39258
  const Wt = je.querySelector("annotation[encoding='application/x-tex']");
39259
39259
  if (Wt)
@@ -39261,21 +39261,21 @@ ${W0(s)}
39261
39261
  else {
39262
39262
  const ln = je.querySelector(".katex-mathml math");
39263
39263
  if (ln && (ht = Qe(ln)), !ht.trim()) {
39264
- const be = je.querySelector(".katex-html");
39265
- ht = be ? be.textContent || "" : je.textContent || "";
39264
+ const ve = je.querySelector(".katex-html");
39265
+ ht = ve ? ve.textContent || "" : je.textContent || "";
39266
39266
  }
39267
39267
  }
39268
39268
  if (!ht.trim()) return;
39269
39269
  const dt = document.createElement("katex-formula");
39270
39270
  dt.setAttribute("formula", ht.trim()), dt.setAttribute("editable", "true"), je.closest(".katex-display") ? dt.setAttribute("display", "true") : dt.setAttribute("display", "false"), je.replaceWith(dt);
39271
- }), Array.from(Se.querySelectorAll("span[copy-text]")).forEach((je) => {
39271
+ }), Array.from(Me.querySelectorAll("span[copy-text]")).forEach((je) => {
39272
39272
  const ht = je.getAttribute("copy-text") || "";
39273
39273
  let Wt = "", dt = !1;
39274
- const ln = ht.match(/^\\\(([\s\S]+)\\\)$/), be = ht.match(/^\\\[([\s\S]+)\\\]$/);
39274
+ const ln = ht.match(/^\\\(([\s\S]+)\\\)$/), ve = ht.match(/^\\\[([\s\S]+)\\\]$/);
39275
39275
  if (ln)
39276
39276
  Wt = ln[1], dt = !1;
39277
- else if (be)
39278
- Wt = be[1], dt = !0;
39277
+ else if (ve)
39278
+ Wt = ve[1], dt = !0;
39279
39279
  else if (ht.startsWith("\\(") || ht.startsWith("\\["))
39280
39280
  Wt = ht.replace(/^\\[(\[]/, "").replace(/\\[\])]$/, ""), dt = ht.startsWith("\\[");
39281
39281
  else
@@ -39283,30 +39283,30 @@ ${W0(s)}
39283
39283
  if (!Wt.trim()) return;
39284
39284
  const Xe = document.createElement("katex-formula");
39285
39285
  Xe.setAttribute("formula", Wt.trim()), Xe.setAttribute("editable", "true"), Xe.setAttribute("display", dt ? "true" : "false"), je.replaceWith(Xe);
39286
- }), Se.innerHTML;
39286
+ }), Me.innerHTML;
39287
39287
  }
39288
39288
  const ss = b.getData("text/html") || "";
39289
39289
  if (ss) {
39290
39290
  E.preventDefault(), E.stopImmediatePropagation();
39291
- const ge = document.createElement("div");
39292
- ge.innerHTML = V1(ss);
39293
- const Se = Array.from(ge.querySelectorAll("img")), De = [];
39294
- Se.forEach((dt) => {
39291
+ const be = document.createElement("div");
39292
+ be.innerHTML = V1(ss);
39293
+ const Me = Array.from(be.querySelectorAll("img")), De = [];
39294
+ Me.forEach((dt) => {
39295
39295
  (dt.getAttribute("src") || "").startsWith("file:") && De.push(dt);
39296
39296
  });
39297
- const re = await Promise.all(De.map(Ce));
39298
- Se.forEach((dt, ln) => {
39297
+ const re = await Promise.all(De.map(fe));
39298
+ Me.forEach((dt, ln) => {
39299
39299
  (dt.getAttribute("src") || "").startsWith("file:") && dt.setAttribute("src", re[ln]);
39300
39300
  });
39301
- const je = L(ge.innerHTML), ht = M(je), Wt = Bt(_l(ht));
39301
+ const je = L(be.innerHTML), ht = M(je), Wt = Bt(_l(ht));
39302
39302
  w.value.chain().focus().insertContent(Wt.trim()).run();
39303
39303
  return;
39304
39304
  }
39305
39305
  const is = b.getData("text/plain") || "";
39306
39306
  if (is.trim())
39307
39307
  if (E.preventDefault(), E.stopImmediatePropagation(), ac(is)) {
39308
- const ge = lc(is), Se = Bt(await _(ge));
39309
- w.value.chain().focus().insertContent(Se).run();
39308
+ const be = lc(is), Me = Bt(await _(be));
39309
+ w.value.chain().focus().insertContent(Me).run();
39310
39310
  } else
39311
39311
  w.value.chain().focus().insertContent(is.trim()).run();
39312
39312
  b.getData("text/rtf");
@@ -39317,11 +39317,13 @@ ${W0(s)}
39317
39317
  }
39318
39318
  };
39319
39319
  return xi(async () => {
39320
- var E;
39320
+ var E, b, L;
39321
39321
  try {
39322
- await qn(), ke = new ResizeObserver(() => {
39322
+ await qn(), xe = new ResizeObserver(() => {
39323
39323
  J0();
39324
- }), Q.value && ke.observe(Q.value), document.addEventListener("keydown", Dd), document.addEventListener("mouseup", Qd), document.addEventListener("mousedown", ef), (E = document.getElementById("editorBody")) == null || E.addEventListener("scroll", sf), w.value = new ux({
39324
+ }), Q.value && xe.observe(Q.value), document.addEventListener("keydown", Dd), document.addEventListener("mouseup", Qd), document.addEventListener("mousedown", ef), (E = document.getElementById("editorBody")) == null || E.addEventListener("scroll", sf);
39325
+ const W = ((L = (b = n.config) == null ? void 0 : b.doc) == null ? void 0 : L.placeholder) ?? "输入正文内容";
39326
+ w.value = new ux({
39325
39327
  editable: s.value,
39326
39328
  content: "",
39327
39329
  parseOptions: xt,
@@ -39360,9 +39362,9 @@ ${W0(s)}
39360
39362
  return {
39361
39363
  textAlign: {
39362
39364
  default: "left",
39363
- parseHTML: (b) => b.style.textAlign || "left",
39364
- renderHTML: (b) => ({
39365
- style: `text-align: ${b.textAlign}`
39365
+ parseHTML: (fe) => fe.style.textAlign || "left",
39366
+ renderHTML: (fe) => ({
39367
+ style: `text-align: ${fe.textAlign}`
39366
39368
  })
39367
39369
  }
39368
39370
  };
@@ -39388,7 +39390,7 @@ ${W0(s)}
39388
39390
  allowBase64: !0
39389
39391
  }),
39390
39392
  jS.configure({
39391
- placeholder: ({ node: b }) => b.type.name === "paragraph" && b.content.size === 0 ? "输入正文内容" : "",
39393
+ placeholder: ({ node: fe }) => fe.type.name === "paragraph" && fe.content.size === 0 ? W : "",
39392
39394
  showOnlyWhenEditable: !0,
39393
39395
  showOnlyCurrent: !0
39394
39396
  }),
@@ -39446,7 +39448,7 @@ ${W0(s)}
39446
39448
  ZC.configure({
39447
39449
  element: document.querySelector(".bubble-menu"),
39448
39450
  // 确保气泡菜单只有在选中文本时才显示
39449
- shouldShow: ({ state: b }) => b.selection.empty === !1
39451
+ shouldShow: ({ state: fe }) => fe.selection.empty === !1
39450
39452
  })
39451
39453
  // KnowledgeGraphMark,
39452
39454
  // KnowledgeGraphNode,
@@ -39467,8 +39469,8 @@ ${W0(s)}
39467
39469
  onUpdate: () => {
39468
39470
  if (wl(), !!w.value) {
39469
39471
  if (n.onChange) {
39470
- const b = w.value.getHTML(), L = w.value.getText(), W = $p(b);
39471
- n.onChange(b, L, W);
39472
+ const fe = w.value.getHTML(), M = w.value.getText(), ue = $p(fe);
39473
+ n.onChange(fe, M, ue);
39472
39474
  }
39473
39475
  tf();
39474
39476
  }
@@ -39476,10 +39478,10 @@ ${W0(s)}
39476
39478
  onSelectionUpdate: () => {
39477
39479
  if (!w.value) return;
39478
39480
  wl();
39479
- const { empty: b } = w.value.state.selection;
39480
- Ne.value = !b, Ne.value && P1();
39481
+ const { empty: fe } = w.value.state.selection;
39482
+ Ne.value = !fe, Ne.value && P1();
39481
39483
  },
39482
- onPaste: async (b) => {
39484
+ onPaste: async (fe) => {
39483
39485
  }
39484
39486
  }), w.value.view.dom.addEventListener("paste", af, !0), await sn(n.content, !0), await qn(), wl(), Ge();
39485
39487
  } catch {
@@ -39497,12 +39499,12 @@ ${W0(s)}
39497
39499
  { flush: "post" }
39498
39500
  ), tv(() => {
39499
39501
  var E;
39500
- K1(), document.documentElement.style.overflow = "", document.body.style.overflow = "", ke && Q.value && ke.unobserve(Q.value), document.removeEventListener("keydown", Dd), document.removeEventListener("mouseup", Qd), document.removeEventListener("mousedown", ef), (E = document.getElementById("editorBody")) == null || E.removeEventListener("scroll", sf), w.value && w.value.destroy(), ts && clearTimeout(ts);
39502
+ K1(), document.documentElement.style.overflow = "", document.body.style.overflow = "", xe && Q.value && xe.unobserve(Q.value), document.removeEventListener("keydown", Dd), document.removeEventListener("mouseup", Qd), document.removeEventListener("mousedown", ef), (E = document.getElementById("editorBody")) == null || E.removeEventListener("scroll", sf), w.value && w.value.destroy(), ts && clearTimeout(ts);
39501
39503
  }), (E, b) => {
39502
- var L, W, Ce;
39504
+ var L, W, fe;
39503
39505
  return z(), U(Jt, null, [
39504
39506
  y("div", {
39505
- class: we(`eeed-editor-${o.value}-container`),
39507
+ class: Ee(`eeed-editor-${o.value}-container`),
39506
39508
  style: wt({ background: a.value })
39507
39509
  }, [
39508
39510
  B(zA, {
@@ -39539,7 +39541,7 @@ ${W0(s)}
39539
39541
  y("div", {
39540
39542
  ref_key: "fileButton",
39541
39543
  ref: Ya,
39542
- class: we(["toolbar-select-header", { "hover-button": Ar.value }]),
39544
+ class: Ee(["toolbar-select-header", { "hover-button": Ar.value }]),
39543
39545
  onClick: M1,
39544
39546
  onMouseenter: b[1] || (b[1] = (M) => yl.value = !0),
39545
39547
  onMouseleave: b[2] || (b[2] = (M) => yl.value = !1)
@@ -39599,7 +39601,7 @@ ${W0(s)}
39599
39601
  h.value ? (z(), U("div", _R, [
39600
39602
  He(y("input", {
39601
39603
  ref_key: "fileNameInputRef",
39602
- ref: pe,
39604
+ ref: me,
39603
39605
  "onUpdate:modelValue": b[4] || (b[4] = (M) => Y.value = M),
39604
39606
  onKeyup: nv(C1, ["enter"]),
39605
39607
  placeholder: "请输入文件名"
@@ -39610,13 +39612,13 @@ ${W0(s)}
39610
39612
  ])) : Te("", !0),
39611
39613
  p.value ? (z(), U("div", {
39612
39614
  key: 1,
39613
- class: we(g.value === "center" ? "eeed-editor-toolbar" : "eeed-editor-toolbar-start"),
39615
+ class: Ee(g.value === "center" ? "eeed-editor-toolbar" : "eeed-editor-toolbar-start"),
39614
39616
  ref_key: "toolbarRef",
39615
39617
  ref: Q,
39616
39618
  style: wt({ justifyContent: g.value })
39617
39619
  }, [
39618
39620
  y("div", {
39619
- class: we(["toolbar-center", { "toolbar-center-limited": (L = m.value) == null ? void 0 : L.length }])
39621
+ class: Ee(["toolbar-center", { "toolbar-center-limited": (L = m.value) == null ? void 0 : L.length }])
39620
39622
  }, [
39621
39623
  y("div", null, [
39622
39624
  y("span", {
@@ -39649,7 +39651,7 @@ ${W0(s)}
39649
39651
  }, [
39650
39652
  B(FO, {
39651
39653
  size: "16",
39652
- color: (Ce = w.value) != null && Ce.can().undo() ? "#999" : "#191919"
39654
+ color: (fe = w.value) != null && fe.can().undo() ? "#999" : "#191919"
39653
39655
  }, null, 8, ["color"])
39654
39656
  ], 544),
39655
39657
  B(Ze, {
@@ -39662,7 +39664,7 @@ ${W0(s)}
39662
39664
  y("span", {
39663
39665
  ref_key: "brushBtn",
39664
39666
  ref: bd,
39665
- class: we(["hover-button tooltip-container", { active: rs.value }]),
39667
+ class: Ee(["hover-button tooltip-container", { active: rs.value }]),
39666
39668
  onClick: b[9] || (b[9] = (M) => Zd("click")),
39667
39669
  onDblclick: w1,
39668
39670
  onMouseenter: b[10] || (b[10] = (M) => Za.value = !0),
@@ -39710,7 +39712,7 @@ ${W0(s)}
39710
39712
  y("div", {
39711
39713
  ref_key: "fontFamilyBtn",
39712
39714
  ref: G0,
39713
- class: we(["toolbar-select-header", { "hover-button": Tr.value }]),
39715
+ class: Ee(["toolbar-select-header", { "hover-button": Tr.value }]),
39714
39716
  onClick: d1
39715
39717
  }, [
39716
39718
  y("span", TR, Vt(Oi.value), 1),
@@ -39736,8 +39738,8 @@ ${W0(s)}
39736
39738
  y("div", NR, [
39737
39739
  (z(!0), U(Jt, null, wn(it(dd), (M) => (z(), U("div", {
39738
39740
  key: M.value,
39739
- onClick: (fe) => u1(M),
39740
- class: we({ selected: M.label == Oi.value })
39741
+ onClick: (ue) => u1(M),
39742
+ class: Ee({ selected: M.label == Oi.value })
39741
39743
  }, Vt(M.label), 11, AR))), 128))
39742
39744
  ])
39743
39745
  ]),
@@ -39752,7 +39754,7 @@ ${W0(s)}
39752
39754
  y("div", {
39753
39755
  ref_key: "headingBtn",
39754
39756
  ref: Ka,
39755
- class: we(["toolbar-select-header", { "hover-button": Zn.value }]),
39757
+ class: Ee(["toolbar-select-header", { "hover-button": Zn.value }]),
39756
39758
  onClick: a1,
39757
39759
  onMouseenter: b[14] || (b[14] = (M) => ml.value = !0),
39758
39760
  onMouseleave: b[15] || (b[15] = (M) => ml.value = !1)
@@ -39787,43 +39789,43 @@ ${W0(s)}
39787
39789
  y("div", RR, [
39788
39790
  y("div", {
39789
39791
  onClick: o1,
39790
- class: we({ selected: Fa.value })
39792
+ class: Ee({ selected: Fa.value })
39791
39793
  }, [...b[82] || (b[82] = [
39792
39794
  y("span", null, "正文", -1)
39793
39795
  ])], 2),
39794
39796
  y("div", {
39795
39797
  onClick: b[16] || (b[16] = (M) => ns(1)),
39796
- class: we(["select-h1", { selected: Ot.value }])
39798
+ class: Ee(["select-h1", { selected: Ot.value }])
39797
39799
  }, [...b[83] || (b[83] = [
39798
39800
  y("span", null, "标题一", -1)
39799
39801
  ])], 2),
39800
39802
  y("div", {
39801
39803
  onClick: b[17] || (b[17] = (M) => ns(2)),
39802
- class: we(["select-h2", { selected: _r.value }])
39804
+ class: Ee(["select-h2", { selected: _r.value }])
39803
39805
  }, [...b[84] || (b[84] = [
39804
39806
  y("span", null, "标题二", -1)
39805
39807
  ])], 2),
39806
39808
  y("div", {
39807
39809
  onClick: b[18] || (b[18] = (M) => ns(3)),
39808
- class: we(["select-h3", { selected: Ps.value }])
39810
+ class: Ee(["select-h3", { selected: Ps.value }])
39809
39811
  }, [...b[85] || (b[85] = [
39810
39812
  y("span", null, "标题三", -1)
39811
39813
  ])], 2),
39812
39814
  y("div", {
39813
39815
  onClick: b[19] || (b[19] = (M) => ns(4)),
39814
- class: we(["select-h4", { selected: Pa.value }])
39816
+ class: Ee(["select-h4", { selected: Pa.value }])
39815
39817
  }, [...b[86] || (b[86] = [
39816
39818
  y("span", null, "标题四", -1)
39817
39819
  ])], 2),
39818
39820
  y("div", {
39819
39821
  onClick: b[20] || (b[20] = (M) => ns(5)),
39820
- class: we(["select-h5", { selected: za.value }])
39822
+ class: Ee(["select-h5", { selected: za.value }])
39821
39823
  }, [...b[87] || (b[87] = [
39822
39824
  y("span", null, "标题五", -1)
39823
39825
  ])], 2),
39824
39826
  y("div", {
39825
39827
  onClick: b[21] || (b[21] = (M) => ns(6)),
39826
- class: we(["select-h6", { selected: Ha.value }])
39828
+ class: Ee(["select-h6", { selected: Ha.value }])
39827
39829
  }, [...b[88] || (b[88] = [
39828
39830
  y("span", null, "标题六", -1)
39829
39831
  ])], 2)
@@ -39840,7 +39842,7 @@ ${W0(s)}
39840
39842
  y("div", {
39841
39843
  ref_key: "fontSizeBtn",
39842
39844
  ref: qa,
39843
- class: we(["toolbar-select-header", { "hover-button": vn.value }]),
39845
+ class: Ee(["toolbar-select-header", { "hover-button": vn.value }]),
39844
39846
  onClick: Fd,
39845
39847
  onMouseenter: b[22] || (b[22] = (M) => gl.value = !0),
39846
39848
  onMouseleave: b[23] || (b[23] = (M) => gl.value = !1)
@@ -39876,8 +39878,8 @@ ${W0(s)}
39876
39878
  y("div", LR, [
39877
39879
  (z(!0), U(Jt, null, wn(it(ud), (M) => (z(), U("div", {
39878
39880
  key: M.value,
39879
- class: we({ selected: M.label === Ai.value }),
39880
- onClick: (fe) => {
39881
+ class: Ee({ selected: M.label === Ai.value }),
39882
+ onClick: (ue) => {
39881
39883
  c1(M), vn.value = !1;
39882
39884
  }
39883
39885
  }, Vt(M.label), 11, DR))), 128))
@@ -39894,7 +39896,7 @@ ${W0(s)}
39894
39896
  y("div", {
39895
39897
  ref_key: "fontColorBtn",
39896
39898
  ref: Ga,
39897
- class: we(["toolbar-select-header", { "hover-button": on.value }]),
39899
+ class: Ee(["toolbar-select-header", { "hover-button": on.value }]),
39898
39900
  onClick: Wd,
39899
39901
  onMouseenter: b[25] || (b[25] = (M) => bl.value = !0),
39900
39902
  onMouseleave: b[26] || (b[26] = (M) => bl.value = !1)
@@ -39936,7 +39938,7 @@ ${W0(s)}
39936
39938
  y("div", BR, [
39937
39939
  (z(!0), U(Jt, null, wn(it(fd), (M) => (z(), U("div", {
39938
39940
  key: M.color,
39939
- onClick: (fe) => {
39941
+ onClick: (ue) => {
39940
39942
  Ud(M), on.value = !1;
39941
39943
  },
39942
39944
  class: "tooltip-container",
@@ -39957,12 +39959,12 @@ ${W0(s)}
39957
39959
  y("div", {
39958
39960
  class: "toolbar-select",
39959
39961
  ref_key: "dropdownHighlightColorRef",
39960
- ref: he
39962
+ ref: pe
39961
39963
  }, [
39962
39964
  y("div", {
39963
39965
  ref_key: "highlightColorBtn",
39964
39966
  ref: ja,
39965
- class: we(["toolbar-select-header", { "hover-button": Ut.value }]),
39967
+ class: Ee(["toolbar-select-header", { "hover-button": Ut.value }]),
39966
39968
  onClick: f1,
39967
39969
  onMouseenter: b[28] || (b[28] = (M) => vl.value = !0),
39968
39970
  onMouseleave: b[29] || (b[29] = (M) => vl.value = !1)
@@ -40011,7 +40013,7 @@ ${W0(s)}
40011
40013
  ])]),
40012
40014
  (z(!0), U(Jt, null, wn(it(pd), (M) => (z(), U("div", {
40013
40015
  key: M.color,
40014
- onClick: (fe) => {
40016
+ onClick: (ue) => {
40015
40017
  Kd(M), Ut.value = !1;
40016
40018
  },
40017
40019
  class: "tooltip-container",
@@ -40028,7 +40030,7 @@ ${W0(s)}
40028
40030
  y("span", {
40029
40031
  ref_key: "boldButton",
40030
40032
  ref: yd,
40031
- class: we(["hover-button tooltip-container", { active: te.value }]),
40033
+ class: Ee(["hover-button tooltip-container", { active: te.value }]),
40032
40034
  onClick: $d,
40033
40035
  onMouseenter: b[32] || (b[32] = (M) => el.value = !0),
40034
40036
  onMouseleave: b[33] || (b[33] = (M) => el.value = !1)
@@ -40049,7 +40051,7 @@ ${W0(s)}
40049
40051
  y("span", {
40050
40052
  ref_key: "italicButton",
40051
40053
  ref: wd,
40052
- class: we(["hover-button tooltip-container", { active: ne.value }]),
40054
+ class: Ee(["hover-button tooltip-container", { active: ne.value }]),
40053
40055
  onClick: Bd,
40054
40056
  onMouseenter: b[34] || (b[34] = (M) => tl.value = !0),
40055
40057
  onMouseleave: b[35] || (b[35] = (M) => tl.value = !1)
@@ -40070,7 +40072,7 @@ ${W0(s)}
40070
40072
  y("span", {
40071
40073
  ref_key: "underlineButton",
40072
40074
  ref: Ed,
40073
- class: we(["hover-button tooltip-container", { active: nt.value }]),
40075
+ class: Ee(["hover-button tooltip-container", { active: nt.value }]),
40074
40076
  onClick: zd,
40075
40077
  onMouseenter: b[36] || (b[36] = (M) => nl.value = !0),
40076
40078
  onMouseleave: b[37] || (b[37] = (M) => nl.value = !1)
@@ -40091,7 +40093,7 @@ ${W0(s)}
40091
40093
  y("span", {
40092
40094
  ref_key: "strikeButton",
40093
40095
  ref: kd,
40094
- class: we(["hover-button tooltip-container", { active: ze.value }]),
40096
+ class: Ee(["hover-button tooltip-container", { active: ze.value }]),
40095
40097
  onClick: Hd,
40096
40098
  onMouseenter: b[38] || (b[38] = (M) => rl.value = !0),
40097
40099
  onMouseleave: b[39] || (b[39] = (M) => rl.value = !1)
@@ -40112,7 +40114,7 @@ ${W0(s)}
40112
40114
  y("span", {
40113
40115
  ref_key: "blockquoteButton",
40114
40116
  ref: xd,
40115
- class: we(["hover-button tooltip-container", { active: St.value }]),
40117
+ class: Ee(["hover-button tooltip-container", { active: St.value }]),
40116
40118
  onClick: El,
40117
40119
  onMouseenter: b[40] || (b[40] = (M) => sl.value = !0),
40118
40120
  onMouseleave: b[41] || (b[41] = (M) => sl.value = !1)
@@ -40140,7 +40142,7 @@ ${W0(s)}
40140
40142
  }, [
40141
40143
  B(G3, {
40142
40144
  size: "16",
40143
- color: xe.value ? "#999" : "#191919",
40145
+ color: Se.value ? "#999" : "#191919",
40144
40146
  class: "eeed-editor-svg"
40145
40147
  }, null, 8, ["color"]),
40146
40148
  B(Ze, {
@@ -40154,14 +40156,14 @@ ${W0(s)}
40154
40156
  y("span", {
40155
40157
  ref_key: "inlineCodeButton",
40156
40158
  ref: Md,
40157
- class: we(["hover-button tooltip-container", { active: G.value }]),
40159
+ class: Ee(["hover-button tooltip-container", { active: G.value }]),
40158
40160
  onClick: Pd,
40159
40161
  onMouseenter: b[44] || (b[44] = (M) => ol.value = !0),
40160
40162
  onMouseleave: b[45] || (b[45] = (M) => ol.value = !1)
40161
40163
  }, [
40162
40164
  B(Lp, {
40163
40165
  size: "16",
40164
- color: xe.value ? "#999" : "#191919",
40166
+ color: Se.value ? "#999" : "#191919",
40165
40167
  class: "eeed-editor-svg"
40166
40168
  }, null, 8, ["color"]),
40167
40169
  B(Ze, {
@@ -40174,7 +40176,7 @@ ${W0(s)}
40174
40176
  y("div", {
40175
40177
  class: "toolbar-select",
40176
40178
  ref_key: "dropdownTableRef",
40177
- ref: Ee
40179
+ ref: ke
40178
40180
  }, [
40179
40181
  y("div", {
40180
40182
  ref_key: "tableButton",
@@ -40186,7 +40188,7 @@ ${W0(s)}
40186
40188
  }, [
40187
40189
  B(y3, {
40188
40190
  size: "16",
40189
- color: xe.value ? "#999" : "#191919",
40191
+ color: Se.value ? "#999" : "#191919",
40190
40192
  class: "eeed-editor-svg"
40191
40193
  }, null, 8, ["color"]),
40192
40194
  He(y("span", FR, null, 512), [
@@ -40213,12 +40215,12 @@ ${W0(s)}
40213
40215
  key: M,
40214
40216
  class: "picker-row"
40215
40217
  }, [
40216
- (z(), U(Jt, null, wn(u4, (fe) => y("div", {
40217
- key: fe,
40218
- class: we(["picker-cell", { active: M <= Ml.value && fe <= Cl.value }]),
40219
- onMouseenter: (Ae) => T1(M, fe),
40218
+ (z(), U(Jt, null, wn(u4, (ue) => y("div", {
40219
+ key: ue,
40220
+ class: Ee(["picker-cell", { active: M <= Ml.value && ue <= Cl.value }]),
40221
+ onMouseenter: (Ae) => T1(M, ue),
40220
40222
  onClick: (Ae) => {
40221
- N1(M, fe), yn.value = !1;
40223
+ N1(M, ue), yn.value = !1;
40222
40224
  }
40223
40225
  }, null, 42, VR)), 64))
40224
40226
  ])), 64)),
@@ -40233,14 +40235,14 @@ ${W0(s)}
40233
40235
  y("span", {
40234
40236
  ref_key: "orderedListButton",
40235
40237
  ref: Cd,
40236
- class: we(["hover-button tooltip-container", { active: N.value }]),
40238
+ class: Ee(["hover-button tooltip-container", { active: N.value }]),
40237
40239
  onClick: r1,
40238
40240
  onMouseenter: b[49] || (b[49] = (M) => ll.value = !0),
40239
40241
  onMouseleave: b[50] || (b[50] = (M) => ll.value = !1)
40240
40242
  }, [
40241
40243
  B(iO, {
40242
40244
  size: "16",
40243
- color: xe.value ? "#999" : "#191919",
40245
+ color: Se.value ? "#999" : "#191919",
40244
40246
  class: "eeed-editor-svg"
40245
40247
  }, null, 8, ["color"]),
40246
40248
  B(Ze, {
@@ -40254,14 +40256,14 @@ ${W0(s)}
40254
40256
  y("span", {
40255
40257
  ref_key: "bulletListButton",
40256
40258
  ref: _d,
40257
- class: we(["hover-button tooltip-container", { active: D.value }]),
40259
+ class: Ee(["hover-button tooltip-container", { active: D.value }]),
40258
40260
  onClick: s1,
40259
40261
  onMouseenter: b[51] || (b[51] = (M) => cl.value = !0),
40260
40262
  onMouseleave: b[52] || (b[52] = (M) => cl.value = !1)
40261
40263
  }, [
40262
40264
  B(hO, {
40263
40265
  size: "16",
40264
- color: xe.value ? "#999" : "#191919",
40266
+ color: Se.value ? "#999" : "#191919",
40265
40267
  class: "eeed-editor-svg"
40266
40268
  }, null, 8, ["color"]),
40267
40269
  B(Ze, {
@@ -40275,14 +40277,14 @@ ${W0(s)}
40275
40277
  y("span", {
40276
40278
  ref_key: "taskListButton",
40277
40279
  ref: Td,
40278
- class: we(["hover-button tooltip-container", { active: V.value }]),
40280
+ class: Ee(["hover-button tooltip-container", { active: V.value }]),
40279
40281
  onClick: i1,
40280
40282
  onMouseenter: b[53] || (b[53] = (M) => ul.value = !0),
40281
40283
  onMouseleave: b[54] || (b[54] = (M) => ul.value = !1)
40282
40284
  }, [
40283
40285
  B(bO, {
40284
40286
  size: "16",
40285
- color: xe.value ? "#999" : "#191919",
40287
+ color: Se.value ? "#999" : "#191919",
40286
40288
  class: "eeed-editor-svg"
40287
40289
  }, null, 8, ["color"]),
40288
40290
  B(Ze, {
@@ -40301,7 +40303,7 @@ ${W0(s)}
40301
40303
  y("div", {
40302
40304
  ref_key: "textAlignButton",
40303
40305
  ref: Wa,
40304
- class: we(["toolbar-select-header", {
40306
+ class: Ee(["toolbar-select-header", {
40305
40307
  "hover-button": Yt.value,
40306
40308
  "gray-style": D.value || N.value || V.value
40307
40309
  }]),
@@ -40359,7 +40361,7 @@ ${W0(s)}
40359
40361
  onClick: b[57] || (b[57] = (M) => {
40360
40362
  xl("left"), Yt.value = !1;
40361
40363
  }),
40362
- class: we([{ selected: Qn.value == "left" }, "charu-duiqi"])
40364
+ class: Ee([{ selected: Qn.value == "left" }, "charu-duiqi"])
40363
40365
  }, [
40364
40366
  B(tu, {
40365
40367
  size: "16",
@@ -40372,7 +40374,7 @@ ${W0(s)}
40372
40374
  onClick: b[58] || (b[58] = (M) => {
40373
40375
  xl("center"), Yt.value = !1;
40374
40376
  }),
40375
- class: we([{ selected: Qn.value == "center" }, "charu-duiqi"])
40377
+ class: Ee([{ selected: Qn.value == "center" }, "charu-duiqi"])
40376
40378
  }, [
40377
40379
  B(nu, {
40378
40380
  size: "16",
@@ -40385,7 +40387,7 @@ ${W0(s)}
40385
40387
  onClick: b[59] || (b[59] = (M) => {
40386
40388
  xl("right"), Yt.value = !1;
40387
40389
  }),
40388
- class: we([{ selected: Qn.value == "right" }, "charu-duiqi"])
40390
+ class: Ee([{ selected: Qn.value == "right" }, "charu-duiqi"])
40389
40391
  }, [
40390
40392
  B(ru, {
40391
40393
  size: "16",
@@ -40403,8 +40405,8 @@ ${W0(s)}
40403
40405
  y("span", {
40404
40406
  ref_key: "increaseTextIndentButton",
40405
40407
  ref: Nd,
40406
- class: we(["hover-button tooltip-container", {
40407
- "gray-style": D.value || N.value || V.value || xe.value
40408
+ class: Ee(["hover-button tooltip-container", {
40409
+ "gray-style": D.value || N.value || V.value || Se.value
40408
40410
  }]),
40409
40411
  onClick: x1,
40410
40412
  onMouseenter: b[61] || (b[61] = (M) => fl.value = !0),
@@ -40412,7 +40414,7 @@ ${W0(s)}
40412
40414
  }, [
40413
40415
  B(SO, {
40414
40416
  size: "16",
40415
- color: D.value || N.value || V.value || xe.value ? "#999" : "#191919",
40417
+ color: D.value || N.value || V.value || Se.value ? "#999" : "#191919",
40416
40418
  class: "eeed-editor-svg"
40417
40419
  }, null, 8, ["color"]),
40418
40420
  B(Ze, {
@@ -40432,7 +40434,7 @@ ${W0(s)}
40432
40434
  }, [
40433
40435
  B(_O, {
40434
40436
  size: "16",
40435
- color: D.value || N.value || V.value || xe.value ? "#999" : "#191919",
40437
+ color: D.value || N.value || V.value || Se.value ? "#999" : "#191919",
40436
40438
  class: "eeed-editor-svg",
40437
40439
  onMouseenter: b[63] || (b[63] = (M) => hl.value = !0),
40438
40440
  onMouseleave: b[64] || (b[64] = (M) => hl.value = !1)
@@ -40447,14 +40449,14 @@ ${W0(s)}
40447
40449
  y("div", {
40448
40450
  class: "toolbar-select",
40449
40451
  ref_key: "dropdownLineHeightRef",
40450
- ref: ue
40452
+ ref: de
40451
40453
  }, [
40452
40454
  y("div", {
40453
40455
  ref_key: "lineHeightButtonRef",
40454
40456
  ref: Va,
40455
- class: we(["toolbar-select-header", {
40457
+ class: Ee(["toolbar-select-header", {
40456
40458
  "hover-button": an.value,
40457
- "gray-style": D.value || N.value || V.value || xe.value
40459
+ "gray-style": D.value || N.value || V.value || Se.value
40458
40460
  }]),
40459
40461
  onClick: p1,
40460
40462
  onMouseenter: b[65] || (b[65] = (M) => pl.value = !0),
@@ -40462,12 +40464,12 @@ ${W0(s)}
40462
40464
  }, [
40463
40465
  B(AO, {
40464
40466
  size: "16",
40465
- color: D.value || N.value || V.value || xe.value ? "#999" : "#191919",
40467
+ color: D.value || N.value || V.value || Se.value ? "#999" : "#191919",
40466
40468
  class: "eeed-editor-svg"
40467
40469
  }, null, 8, ["color"]),
40468
40470
  He(B(kn, {
40469
40471
  size: "16",
40470
- color: D.value || N.value || V.value || xe.value ? "#999" : "#191919",
40472
+ color: D.value || N.value || V.value || Se.value ? "#999" : "#191919",
40471
40473
  class: "eeed-editor-svg"
40472
40474
  }, null, 8, ["color"]), [
40473
40475
  [Je, !an.value]
@@ -40495,10 +40497,10 @@ ${W0(s)}
40495
40497
  y("div", GR, [
40496
40498
  (z(!0), U(Jt, null, wn(it(q0), (M) => (z(), U("div", {
40497
40499
  key: M.value,
40498
- onClick: (fe) => {
40500
+ onClick: (ue) => {
40499
40501
  m1(M), an.value = !1;
40500
40502
  },
40501
- class: we({ selected: M.label === kl.value })
40503
+ class: Ee({ selected: M.label === kl.value })
40502
40504
  }, Vt(M.label), 11, jR))), 128))
40503
40505
  ])
40504
40506
  ]),
@@ -40614,12 +40616,12 @@ ${W0(s)}
40614
40616
  style: wt({
40615
40617
  height: s.value ? l.value && p.value ? "calc(100% - 90px)" : !l.value && !p.value ? "100%" : "calc(100% - 45px)" : "100%"
40616
40618
  }),
40617
- class: we([s.value ? `eeed-editor-content eeed-editor-content-${i.value}` : "eeed-editor-content-read"]),
40619
+ class: Ee([s.value ? `eeed-editor-content eeed-editor-content-${i.value}` : "eeed-editor-content-read"]),
40618
40620
  id: "editorBody"
40619
40621
  }, [
40620
40622
  r.value == "doc" && s.value && (i.value == "A4" || i.value == "defaultA4") ? (z(), U("div", {
40621
40623
  key: 0,
40622
- class: we(["eeed-editor-toc", { "is-collapsed": !Z.value }])
40624
+ class: Ee(["eeed-editor-toc", { "is-collapsed": !Z.value }])
40623
40625
  }, [
40624
40626
  y("div", JR, [
40625
40627
  Z.value ? (z(), zt(oR, {
@@ -40642,19 +40644,19 @@ ${W0(s)}
40642
40644
  Z.value && lt.value.length > 0 ? (z(), U("ul", e4, [
40643
40645
  (z(!0), U(Jt, null, wn(lt.value, (M) => (z(), U("li", {
40644
40646
  key: M.id,
40645
- class: we({ active: J.value === M.id }),
40647
+ class: Ee({ active: J.value === M.id }),
40646
40648
  style: wt({ paddingLeft: `${(M.level - 1) * 12}px` })
40647
40649
  }, [
40648
40650
  y("a", {
40649
40651
  href: "javascript:void(0)",
40650
40652
  title: M.text,
40651
- onClick: (fe) => O1(M.id)
40653
+ onClick: (ue) => O1(M.id)
40652
40654
  }, Vt(M.text), 9, t4)
40653
40655
  ], 6))), 128))
40654
40656
  ])) : Te("", !0)
40655
40657
  ], 2)) : Te("", !0),
40656
40658
  y("div", {
40657
- class: we([s.value ? `eeed-editor-body-${i.value}-style` : "eeed-editor-body-read"])
40659
+ class: Ee([s.value ? `eeed-editor-body-${i.value}-style` : "eeed-editor-body-read"])
40658
40660
  }, [
40659
40661
  B(it(e), {
40660
40662
  visible: Ii.value,
@@ -40663,21 +40665,21 @@ ${W0(s)}
40663
40665
  onCancel: b[73] || (b[73] = (M) => Ii.value = !1)
40664
40666
  }, null, 8, ["visible", "latex"]),
40665
40667
  B(it(dx), { editor: w.value }, null, 8, ["editor"]),
40666
- q.value && r.value == "doc" && s.value && !me.value ? (z(), U("div", {
40668
+ q.value && r.value == "doc" && s.value && !ge.value ? (z(), U("div", {
40667
40669
  key: 0,
40668
40670
  class: "bubble-menu bubble-menu-doc",
40669
40671
  style: wt(le.value),
40670
40672
  ref_key: "dropdownBubbleDocMebuRef",
40671
- ref: ve
40673
+ ref: ye
40672
40674
  }, [
40673
- me.value ? Te("", !0) : (z(), U("div", n4, [
40675
+ ge.value ? Te("", !0) : (z(), U("div", n4, [
40674
40676
  y("div", {
40675
40677
  class: "toolbar-select",
40676
40678
  ref_key: "dropdownFontColorBubbleRef",
40677
40679
  ref: X
40678
40680
  }, [
40679
40681
  y("div", {
40680
- class: we(["toolbar-select-header", { "hover-button": er.value }]),
40682
+ class: Ee(["toolbar-select-header", { "hover-button": er.value }]),
40681
40683
  onClick: Vd
40682
40684
  }, [
40683
40685
  y("span", r4, [
@@ -40705,7 +40707,7 @@ ${W0(s)}
40705
40707
  He(y("div", s4, [
40706
40708
  (z(!0), U(Jt, null, wn(it(fd), (M) => (z(), U("div", {
40707
40709
  key: M.color,
40708
- onClick: (fe) => Ud(M),
40710
+ onClick: (ue) => Ud(M),
40709
40711
  "data-label": M.label,
40710
40712
  class: "tooltip-container"
40711
40713
  }, [
@@ -40724,7 +40726,7 @@ ${W0(s)}
40724
40726
  ref: ee
40725
40727
  }, [
40726
40728
  y("div", {
40727
- class: we(["toolbar-select-header", { "hover-button": Ln.value }]),
40729
+ class: Ee(["toolbar-select-header", { "hover-button": Ln.value }]),
40728
40730
  onClick: h1
40729
40731
  }, [
40730
40732
  B(Ip, {
@@ -40753,7 +40755,7 @@ ${W0(s)}
40753
40755
  ])]),
40754
40756
  (z(!0), U(Jt, null, wn(it(pd), (M) => (z(), U("div", {
40755
40757
  key: M.color,
40756
- onClick: (fe) => Kd(M),
40758
+ onClick: (ue) => Kd(M),
40757
40759
  "data-label": M.label,
40758
40760
  class: "tooltip-container",
40759
40761
  style: wt({ backgroundColor: M.color, border: "0px" })
@@ -40818,7 +40820,7 @@ ${W0(s)}
40818
40820
  }, [
40819
40821
  B(Lp, {
40820
40822
  size: "16",
40821
- color: xe.value ? "#999" : "#191919",
40823
+ color: Se.value ? "#999" : "#191919",
40822
40824
  class: "eeed-editor-svg"
40823
40825
  }, null, 8, ["color"])
40824
40826
  ])