mhz-ui 1.4.20 → 1.4.22

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 (2) hide show
  1. package/dist/UiEditor/UiEditor.js +625 -603
  2. package/package.json +14 -14
@@ -5869,7 +5869,7 @@ var Yo = class {
5869
5869
  let o = r ? null : n.target, s = o ? e.docView.nearestDesc(o, !0) : null;
5870
5870
  this.target = s && s.nodeDOM.nodeType == 1 ? s.nodeDOM : null;
5871
5871
  let { selection: c } = e.state;
5872
- (n.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || c instanceof A && c.from <= a && c.to > a) && (this.mightDrag = {
5872
+ n.button == 0 && (i.type.spec.draggable && i.type.spec.selectable !== !1 || c instanceof A && c.from <= a && c.to > a) && (this.mightDrag = {
5873
5873
  node: i,
5874
5874
  pos: a,
5875
5875
  addAttr: !!(this.target && !this.target.draggable),
@@ -6019,7 +6019,10 @@ var ds = class {
6019
6019
  }
6020
6020
  }, fs = vi ? "altKey" : "ctrlKey";
6021
6021
  function ps(e, t) {
6022
- return e.someProp("dragCopies", (e) => !e(t)) ?? !t[fs];
6022
+ let n;
6023
+ return e.someProp("dragCopies", (e) => {
6024
+ n ||= e(t);
6025
+ }), n == null ? !t[fs] : !n;
6023
6026
  }
6024
6027
  L.dragstart = (e, t) => {
6025
6028
  let n = t, r = e.input.mouseDown;
@@ -7379,17 +7382,17 @@ Sc(Tc, {
7379
7382
  sinkListItem: () => Fu,
7380
7383
  splitBlock: () => Lu,
7381
7384
  splitListItem: () => Ru,
7382
- toggleList: () => Vu,
7383
- toggleMark: () => Hu,
7384
- toggleNode: () => Uu,
7385
- toggleWrap: () => Wu,
7386
- undoInputRule: () => Gu,
7387
- unsetAllMarks: () => Ku,
7388
- unsetMark: () => qu,
7389
- unsetTextDirection: () => Ju,
7390
- updateAttributes: () => Yu,
7391
- wrapIn: () => Xu,
7392
- wrapInList: () => Zu
7385
+ toggleList: () => Hu,
7386
+ toggleMark: () => Uu,
7387
+ toggleNode: () => Wu,
7388
+ toggleWrap: () => Gu,
7389
+ undoInputRule: () => Ku,
7390
+ unsetAllMarks: () => qu,
7391
+ unsetMark: () => Ju,
7392
+ unsetTextDirection: () => Yu,
7393
+ updateAttributes: () => Xu,
7394
+ wrapIn: () => Zu,
7395
+ wrapInList: () => Qu
7393
7396
  });
7394
7397
  var Ec = () => ({ editor: e, view: t }) => (requestAnimationFrame(() => {
7395
7398
  var n;
@@ -7464,7 +7467,12 @@ function Vc(e, t, n = {}) {
7464
7467
  function Hc(e, t, n) {
7465
7468
  if (!e || !t) return;
7466
7469
  let r = e.parent.childAfter(e.parentOffset);
7467
- if ((!r.node || !r.node.marks.some((e) => e.type === t)) && (r = e.parent.childBefore(e.parentOffset)), !r.node || !r.node.marks.some((e) => e.type === t) || (n ||= r.node.marks[0]?.attrs, !Bc([...r.node.marks], t, n))) return;
7470
+ if ((!r.node || !r.node.marks.some((e) => e.type === t)) && (r = e.parent.childBefore(e.parentOffset)), !r.node || !r.node.marks.some((e) => e.type === t)) return;
7471
+ if (!n) {
7472
+ let e = r.node.marks.find((e) => e.type === t);
7473
+ e && (n = e.attrs);
7474
+ }
7475
+ if (!Bc([...r.node.marks], t, n)) return;
7468
7476
  let i = r.index, a = e.start() + r.offset, o = i + 1, s = a + r.node.nodeSize;
7469
7477
  for (; i > 0 && Vc([...e.parent.child(i - 1).marks], t, n);) --i, a -= e.parent.child(i).nodeSize;
7470
7478
  for (; o < e.parent.childCount && Vc([...e.parent.child(o).marks], t, n);) s += e.parent.child(o).nodeSize, o += 1;
@@ -7480,7 +7488,7 @@ function Uc(e, t) {
7480
7488
  }
7481
7489
  return e;
7482
7490
  }
7483
- var Wc = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
7491
+ var Wc = (e, t) => ({ tr: n, state: r, dispatch: i }) => {
7484
7492
  let a = Uc(e, r.schema), { doc: o, selection: s } = n, { $from: c, from: l, to: u } = s;
7485
7493
  if (i) {
7486
7494
  let e = Hc(c, a, t);
@@ -8496,31 +8504,45 @@ var Lu = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
8496
8504
  if (r === void 0) return !0;
8497
8505
  let i = e.doc.nodeAt(r);
8498
8506
  return n.node.type === i?.type && sn(e.doc, r) && e.join(r), !0;
8499
- }, Vu = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: c, commands: l, can: u }) => {
8507
+ };
8508
+ function Vu(e) {
8509
+ let t = e.doc, n = t.firstChild;
8510
+ if (!n) return null;
8511
+ let r = n.nodeSize - 1;
8512
+ return k.create(t, 1, r);
8513
+ }
8514
+ var Hu = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: c, commands: l, can: u }) => {
8500
8515
  let { extensions: d, splittableMarks: f } = i.extensionManager, p = H(e, o.schema), m = H(t, o.schema), { selection: h, storedMarks: g } = o, { $from: _, $to: ee } = h, v = _.blockRange(ee), y = g || h.$to.parentOffset && h.$from.marks();
8501
8516
  if (!v) return !1;
8502
- let b = Bl((e) => Su(e.type.name, d))(h);
8503
- if (v.depth >= 1 && b && v.depth - b.depth <= 1) {
8504
- if (b.node.type === p) return l.liftListItem(m);
8505
- if (Su(b.node.type.name, d) && p.validContent(b.node.content) && s) return c().command(() => (a.setNodeMarkup(b.pos, p), !0)).command(() => zu(a, p)).command(() => Bu(a, p)).run();
8517
+ let b = Bl((e) => Su(e.type.name, d))(h), te = h.from === 0 && h.to === o.doc.content.size, x = o.doc.content.content, ne = x.length === 1 ? x[0] : null, re = te && ne && Su(ne.type.name, d) ? {
8518
+ node: ne,
8519
+ pos: 0,
8520
+ depth: 0
8521
+ } : null, S = b ?? re, ie = !!b && v.depth >= 1 && v.depth - b.depth <= 1, ae = !!re;
8522
+ if ((ie || ae) && S) {
8523
+ if (S.node.type === p) return te && ae ? c().command(({ tr: e, dispatch: t }) => {
8524
+ let n = Vu(e);
8525
+ return n ? (e.setSelection(n), t && t(e), !0) : !1;
8526
+ }).liftListItem(m).run() : l.liftListItem(m);
8527
+ if (Su(S.node.type.name, d) && p.validContent(S.node.content)) return c().command(() => (a.setNodeMarkup(S.pos, p), !0)).command(() => zu(a, p)).command(() => Bu(a, p)).run();
8506
8528
  }
8507
8529
  return !n || !y || !s ? c().command(() => u().wrapInList(p, r) ? !0 : l.clearNodes()).wrapInList(p, r).command(() => zu(a, p)).command(() => Bu(a, p)).run() : c().command(() => {
8508
8530
  let e = u().wrapInList(p, r), t = y.filter((e) => f.includes(e.type.name));
8509
8531
  return a.ensureMarks(t), e ? !0 : l.clearNodes();
8510
8532
  }).wrapInList(p, r).command(() => zu(a, p)).command(() => Bu(a, p)).run();
8511
- }, Hu = (e, t = {}, n = {}) => ({ state: r, commands: i }) => {
8533
+ }, Uu = (e, t = {}, n = {}) => ({ state: r, commands: i }) => {
8512
8534
  let { extendEmptyMarkRange: a = !1 } = n, o = Uc(e, r.schema);
8513
8535
  return _u(r, o, t) ? i.unsetMark(o, { extendEmptyMarkRange: a }) : i.setMark(o, t);
8514
- }, Uu = (e, t, n = {}) => ({ state: r, commands: i }) => {
8536
+ }, Wu = (e, t, n = {}) => ({ state: r, commands: i }) => {
8515
8537
  let a = H(e, r.schema), o = H(t, r.schema), s = vl(r, a, n), c;
8516
8538
  return r.selection.$anchor.sameParent(r.selection.$head) && (c = r.selection.$anchor.parent.attrs), s ? i.setNode(o, c) : i.setNode(a, {
8517
8539
  ...c,
8518
8540
  ...n
8519
8541
  });
8520
- }, Wu = (e, t = {}) => ({ state: n, commands: r }) => {
8542
+ }, Gu = (e, t = {}) => ({ state: n, commands: r }) => {
8521
8543
  let i = H(e, n.schema);
8522
8544
  return vl(n, i, t) ? r.lift(i) : r.wrapIn(i, t);
8523
- }, Gu = () => ({ state: e, dispatch: t }) => {
8545
+ }, Ku = () => ({ state: e, dispatch: t }) => {
8524
8546
  let n = e.plugins;
8525
8547
  for (let r = 0; r < n.length; r += 1) {
8526
8548
  let i = n[r], a;
@@ -8537,12 +8559,12 @@ var Lu = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
8537
8559
  }
8538
8560
  }
8539
8561
  return !1;
8540
- }, Ku = () => ({ tr: e, dispatch: t }) => {
8562
+ }, qu = () => ({ tr: e, dispatch: t }) => {
8541
8563
  let { selection: n } = e, { empty: r, ranges: i } = n;
8542
8564
  return r || t && i.forEach((t) => {
8543
8565
  e.removeMark(t.$from.pos, t.$to.pos);
8544
8566
  }), !0;
8545
- }, qu = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8567
+ }, Ju = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8546
8568
  let { extendEmptyMarkRange: a = !1 } = t, { selection: o } = n, s = Uc(e, r.schema), { $from: c, empty: l, ranges: u } = o;
8547
8569
  if (!i) return !0;
8548
8570
  if (l && a) {
@@ -8552,14 +8574,14 @@ var Lu = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
8552
8574
  n.removeMark(e.$from.pos, e.$to.pos, s);
8553
8575
  });
8554
8576
  return n.removeStoredMark(s), !0;
8555
- }, Ju = (e) => ({ tr: t, state: n, dispatch: r }) => {
8577
+ }, Yu = (e) => ({ tr: t, state: n, dispatch: r }) => {
8556
8578
  let { selection: i } = n, a, o;
8557
8579
  return typeof e == "number" ? (a = e, o = e) : e && "from" in e && "to" in e ? (a = e.from, o = e.to) : (a = i.from, o = i.to), r && t.doc.nodesBetween(a, o, (e, n) => {
8558
8580
  if (e.isText) return;
8559
8581
  let r = { ...e.attrs };
8560
8582
  delete r.dir, t.setNodeMarkup(n, void 0, r);
8561
8583
  }), !0;
8562
- }, Yu = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8584
+ }, Xu = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
8563
8585
  let a = null, o = null, s = Cl(typeof e == "string" ? e : e.name, r.schema);
8564
8586
  if (!s) return !1;
8565
8587
  s === "node" && (a = H(e, r.schema)), s === "mark" && (o = Uc(e, r.schema));
@@ -8591,7 +8613,7 @@ var Lu = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
8591
8613
  }));
8592
8614
  }));
8593
8615
  }), c;
8594
- }, Xu = (e, t = {}) => ({ state: n, dispatch: r }) => jr(H(e, n.schema), t)(n, r), Zu = (e, t = {}) => ({ state: n, dispatch: r }) => Rr(H(e, n.schema), t)(n, r), Qu = class {
8616
+ }, Zu = (e, t = {}) => ({ state: n, dispatch: r }) => jr(H(e, n.schema), t)(n, r), Qu = (e, t = {}) => ({ state: n, dispatch: r }) => Rr(H(e, n.schema), t)(n, r), $u = class {
8595
8617
  constructor() {
8596
8618
  this.callbacks = {};
8597
8619
  }
@@ -8615,18 +8637,18 @@ var Lu = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor
8615
8637
  removeAllListeners() {
8616
8638
  this.callbacks = {};
8617
8639
  }
8618
- }, $u = class {
8640
+ }, ed = class {
8619
8641
  constructor(e) {
8620
8642
  this.find = e.find, this.handler = e.handler, this.undoable = e.undoable ?? !0;
8621
8643
  }
8622
- }, ed = (e, t) => {
8644
+ }, td = (e, t) => {
8623
8645
  if (Rc(t)) return t.exec(e);
8624
8646
  let n = t(e);
8625
8647
  if (!n) return null;
8626
8648
  let r = [n.text];
8627
8649
  return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn("[tiptap warn]: \"inputRuleMatch.replaceWith\" must be part of \"inputRuleMatch.text\"."), r.push(n.replaceWith)), r;
8628
8650
  };
8629
- function td(e) {
8651
+ function nd(e) {
8630
8652
  let { editor: t, from: n, to: r, text: i, rules: a, plugin: o } = e, { view: s } = t;
8631
8653
  if (s.composing) return !1;
8632
8654
  let c = s.state.doc.resolve(n);
@@ -8634,7 +8656,7 @@ function td(e) {
8634
8656
  let l = !1, u = gu(c) + i;
8635
8657
  return a.forEach((e) => {
8636
8658
  if (l) return;
8637
- let a = ed(u, e.find);
8659
+ let a = td(u, e.find);
8638
8660
  if (!a) return;
8639
8661
  let c = s.state.tr, d = Cc({
8640
8662
  state: s.state,
@@ -8661,7 +8683,7 @@ function td(e) {
8661
8683
  }), s.dispatch(c), l = !0);
8662
8684
  }), l;
8663
8685
  }
8664
- function nd(e) {
8686
+ function rd(e) {
8665
8687
  let { editor: t, rules: n } = e, r = new j({
8666
8688
  state: {
8667
8689
  init() {
@@ -8675,7 +8697,7 @@ function nd(e) {
8675
8697
  let { text: e } = s;
8676
8698
  e = typeof e == "string" ? e : Hl(S.from(e), a.schema);
8677
8699
  let { from: i } = s;
8678
- td({
8700
+ nd({
8679
8701
  editor: t,
8680
8702
  from: i,
8681
8703
  to: i + e.length,
@@ -8688,7 +8710,7 @@ function nd(e) {
8688
8710
  },
8689
8711
  props: {
8690
8712
  handleTextInput(e, i, a, o) {
8691
- return td({
8713
+ return nd({
8692
8714
  editor: t,
8693
8715
  from: i,
8694
8716
  to: a,
@@ -8699,7 +8721,7 @@ function nd(e) {
8699
8721
  },
8700
8722
  handleDOMEvents: { compositionend: (e) => (setTimeout(() => {
8701
8723
  let { $cursor: i } = e.state.selection;
8702
- i && td({
8724
+ i && nd({
8703
8725
  editor: t,
8704
8726
  from: i.pos,
8705
8727
  to: i.pos,
@@ -8711,7 +8733,7 @@ function nd(e) {
8711
8733
  handleKeyDown(e, i) {
8712
8734
  if (i.key !== "Enter") return !1;
8713
8735
  let { $cursor: a } = e.state.selection;
8714
- return a ? td({
8736
+ return a ? nd({
8715
8737
  editor: t,
8716
8738
  from: a.pos,
8717
8739
  to: a.pos,
@@ -8725,19 +8747,19 @@ function nd(e) {
8725
8747
  });
8726
8748
  return r;
8727
8749
  }
8728
- function rd(e) {
8750
+ function id(e) {
8729
8751
  return Object.prototype.toString.call(e).slice(8, -1);
8730
8752
  }
8731
- function id(e) {
8732
- return rd(e) === "Object" ? e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype : !1;
8753
+ function ad(e) {
8754
+ return id(e) === "Object" ? e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype : !1;
8733
8755
  }
8734
- function ad(e, t) {
8756
+ function od(e, t) {
8735
8757
  let n = { ...e };
8736
- return id(e) && id(t) && Object.keys(t).forEach((r) => {
8737
- id(t[r]) && id(e[r]) ? n[r] = ad(e[r], t[r]) : n[r] = t[r];
8758
+ return ad(e) && ad(t) && Object.keys(t).forEach((r) => {
8759
+ ad(t[r]) && ad(e[r]) ? n[r] = od(e[r], t[r]) : n[r] = t[r];
8738
8760
  }), n;
8739
8761
  }
8740
- var od = class {
8762
+ var sd = class {
8741
8763
  constructor(e = {}) {
8742
8764
  this.type = "extendable", this.parent = null, this.child = null, this.name = "", this.config = { name: this.name }, this.config = {
8743
8765
  ...this.config,
@@ -8756,7 +8778,7 @@ var od = class {
8756
8778
  configure(e = {}) {
8757
8779
  let t = this.extend({
8758
8780
  ...this.config,
8759
- addOptions: () => ad(this.options, e)
8781
+ addOptions: () => od(this.options, e)
8760
8782
  });
8761
8783
  return t.name = this.name, t.parent = this.parent, t;
8762
8784
  }
@@ -8767,7 +8789,7 @@ var od = class {
8767
8789
  });
8768
8790
  return t.parent = this, this.child = t, t.name = "name" in e ? e.name : t.parent.name, t;
8769
8791
  }
8770
- }, sd = class e extends od {
8792
+ }, cd = class e extends sd {
8771
8793
  constructor() {
8772
8794
  super(...arguments), this.type = "mark";
8773
8795
  }
@@ -8792,14 +8814,14 @@ var od = class {
8792
8814
  return super.extend(t);
8793
8815
  }
8794
8816
  };
8795
- function cd(e) {
8817
+ function ld(e) {
8796
8818
  return typeof e == "number";
8797
8819
  }
8798
- var ld = class {
8820
+ var ud = class {
8799
8821
  constructor(e) {
8800
8822
  this.find = e.find, this.handler = e.handler;
8801
8823
  }
8802
- }, ud = (e, t, n) => {
8824
+ }, dd = (e, t, n) => {
8803
8825
  if (Rc(t)) return [...e.matchAll(t)];
8804
8826
  let r = t(e, n);
8805
8827
  return r ? r.map((t) => {
@@ -8807,7 +8829,7 @@ var ld = class {
8807
8829
  return n.index = t.index, n.input = e, n.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn("[tiptap warn]: \"pasteRuleMatch.replaceWith\" must be part of \"pasteRuleMatch.text\"."), n.push(t.replaceWith)), n;
8808
8830
  }) : [];
8809
8831
  };
8810
- function dd(e) {
8832
+ function fd(e) {
8811
8833
  let { editor: t, state: n, from: r, to: i, rule: a, pasteEvent: o, dropEvent: s } = e, { commands: c, chain: l, can: u } = new wc({
8812
8834
  editor: t,
8813
8835
  state: n
@@ -8815,7 +8837,7 @@ function dd(e) {
8815
8837
  return n.doc.nodesBetween(r, i, (e, t) => {
8816
8838
  if (e.type?.spec?.code || !(e.isText || e.isTextblock || e.isInline)) return;
8817
8839
  let f = e.content?.size ?? e.nodeSize ?? 0, p = Math.max(r, t), m = Math.min(i, t + f);
8818
- p >= m || ud(e.isText ? e.text || "" : e.textBetween(p - t, m - t, void 0, ""), a.find, o).forEach((e) => {
8840
+ p >= m || dd(e.isText ? e.text || "" : e.textBetween(p - t, m - t, void 0, ""), a.find, o).forEach((e) => {
8819
8841
  if (e.index === void 0) return;
8820
8842
  let t = p + e.index + 1, r = t + e[0].length, i = {
8821
8843
  from: n.tr.mapping.map(t),
@@ -8834,12 +8856,12 @@ function dd(e) {
8834
8856
  });
8835
8857
  }), d.every((e) => e !== null);
8836
8858
  }
8837
- var fd = null, pd = (e) => {
8859
+ var pd = null, md = (e) => {
8838
8860
  var t;
8839
8861
  let n = new ClipboardEvent("paste", { clipboardData: new DataTransfer() });
8840
8862
  return (t = n.clipboardData) == null || t.setData("text/html", e), n;
8841
8863
  };
8842
- function md(e) {
8864
+ function hd(e) {
8843
8865
  let { editor: t, rules: n } = e, r = null, i = !1, a = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, s;
8844
8866
  try {
8845
8867
  s = typeof DragEvent < "u" ? new DragEvent("drop") : null;
@@ -8848,7 +8870,7 @@ function md(e) {
8848
8870
  }
8849
8871
  let c = ({ state: e, from: n, to: r, rule: i, pasteEvt: a }) => {
8850
8872
  let c = e.tr;
8851
- if (!(!dd({
8873
+ if (!(!fd({
8852
8874
  editor: t,
8853
8875
  state: Cc({
8854
8876
  state: e,
@@ -8871,9 +8893,9 @@ function md(e) {
8871
8893
  return n.map((e) => new j({
8872
8894
  view(e) {
8873
8895
  let n = (n) => {
8874
- r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (fd = t);
8896
+ r = e.dom.parentElement?.contains(n.target) ? e.dom.parentElement : null, r && (pd = t);
8875
8897
  }, i = () => {
8876
- fd &&= null;
8898
+ pd &&= null;
8877
8899
  };
8878
8900
  return window.addEventListener("dragstart", n), window.addEventListener("dragend", i), { destroy() {
8879
8901
  window.removeEventListener("dragstart", n), window.removeEventListener("dragend", i);
@@ -8882,7 +8904,7 @@ function md(e) {
8882
8904
  props: { handleDOMEvents: {
8883
8905
  drop: (e, t) => {
8884
8906
  if (a = r === e.dom.parentElement, s = t, !a) {
8885
- let e = fd;
8907
+ let e = pd;
8886
8908
  e?.isEditable && setTimeout(() => {
8887
8909
  let t = e.state.selection;
8888
8910
  t && e.commands.deleteRange({
@@ -8904,7 +8926,7 @@ function md(e) {
8904
8926
  if (f) {
8905
8927
  let { text: t } = d;
8906
8928
  t = typeof t == "string" ? t : Hl(S.from(t), r.schema);
8907
- let { from: n } = d, i = n + t.length, a = pd(t);
8929
+ let { from: n } = d, i = n + t.length, a = md(t);
8908
8930
  return c({
8909
8931
  rule: e,
8910
8932
  state: r,
@@ -8914,7 +8936,7 @@ function md(e) {
8914
8936
  });
8915
8937
  }
8916
8938
  let p = n.doc.content.findDiffStart(r.doc.content), m = n.doc.content.findDiffEnd(r.doc.content);
8917
- if (!(!cd(p) || !m || p === m.b)) return c({
8939
+ if (!(!ld(p) || !m || p === m.b)) return c({
8918
8940
  rule: e,
8919
8941
  state: r,
8920
8942
  from: p,
@@ -8924,7 +8946,7 @@ function md(e) {
8924
8946
  }
8925
8947
  }));
8926
8948
  }
8927
- var hd = class {
8949
+ var gd = class {
8928
8950
  constructor(e, t) {
8929
8951
  this.splittableMarks = [], this.editor = t, this.baseExtensions = e, this.extensions = ru(e), this.schema = eu(this.extensions, t), this.setupExtensions();
8930
8952
  }
@@ -8953,7 +8975,7 @@ var hd = class {
8953
8975
  editor: e,
8954
8976
  type: mu(t.name, this.schema)
8955
8977
  }, r = [], i = U(t, "addKeyboardShortcuts", n), a = {};
8956
- if (t.type === "mark" && U(t, "exitable", n) && (a.ArrowRight = () => sd.handleExit({
8978
+ if (t.type === "mark" && U(t, "exitable", n) && (a.ArrowRight = () => cd.handleExit({
8957
8979
  editor: e,
8958
8980
  mark: t
8959
8981
  })), i) {
@@ -8969,7 +8991,7 @@ var hd = class {
8969
8991
  if (xu(t, e.options.enableInputRules) && s) {
8970
8992
  let t = s();
8971
8993
  if (t && t.length) {
8972
- let n = nd({
8994
+ let n = rd({
8973
8995
  editor: e,
8974
8996
  rules: t
8975
8997
  }), i = Array.isArray(n) ? n : [n];
@@ -8980,7 +9002,7 @@ var hd = class {
8980
9002
  if (xu(t, e.options.enablePasteRules) && c) {
8981
9003
  let t = c();
8982
9004
  if (t && t.length) {
8983
- let n = md({
9005
+ let n = hd({
8984
9006
  editor: e,
8985
9007
  rules: t
8986
9008
  });
@@ -9076,7 +9098,7 @@ var hd = class {
9076
9098
  extension: t,
9077
9099
  HTMLAttributes: s,
9078
9100
  updateAttributes: (t) => {
9079
- Gd(i, e, t);
9101
+ Kd(i, e, t);
9080
9102
  }
9081
9103
  });
9082
9104
  }] : [];
@@ -9098,20 +9120,20 @@ var hd = class {
9098
9120
  });
9099
9121
  }
9100
9122
  };
9101
- hd.resolve = ru, hd.sort = nu, hd.flatten = Vl, Sc({}, {
9102
- ClipboardTextSerializer: () => gd,
9103
- Commands: () => _d,
9104
- Delete: () => vd,
9105
- Drop: () => yd,
9106
- Editable: () => bd,
9107
- FocusEvents: () => Sd,
9108
- Keymap: () => Cd,
9109
- Paste: () => wd,
9110
- Tabindex: () => Td,
9111
- TextDirection: () => Ed,
9112
- focusEventsPluginKey: () => xd
9123
+ gd.resolve = ru, gd.sort = nu, gd.flatten = Vl, Sc({}, {
9124
+ ClipboardTextSerializer: () => _d,
9125
+ Commands: () => vd,
9126
+ Delete: () => yd,
9127
+ Drop: () => bd,
9128
+ Editable: () => xd,
9129
+ FocusEvents: () => Cd,
9130
+ Keymap: () => wd,
9131
+ Paste: () => Td,
9132
+ Tabindex: () => Ed,
9133
+ TextDirection: () => Dd,
9134
+ focusEventsPluginKey: () => Sd
9113
9135
  });
9114
- var K = class e extends od {
9136
+ var K = class e extends sd {
9115
9137
  constructor() {
9116
9138
  super(...arguments), this.type = "extension";
9117
9139
  }
@@ -9125,7 +9147,7 @@ var K = class e extends od {
9125
9147
  let t = typeof e == "function" ? e() : e;
9126
9148
  return super.extend(t);
9127
9149
  }
9128
- }, gd = K.create({
9150
+ }, _d = K.create({
9129
9151
  name: "clipboardTextSerializer",
9130
9152
  addOptions() {
9131
9153
  return { blockSeparator: void 0 };
@@ -9145,12 +9167,12 @@ var K = class e extends od {
9145
9167
  } }
9146
9168
  })];
9147
9169
  }
9148
- }), _d = K.create({
9170
+ }), vd = K.create({
9149
9171
  name: "commands",
9150
9172
  addCommands() {
9151
9173
  return { ...Tc };
9152
9174
  }
9153
- }), vd = K.create({
9175
+ }), yd = K.create({
9154
9176
  name: "delete",
9155
9177
  onUpdate({ transaction: e, appendedTransactions: t }) {
9156
9178
  let n = () => {
@@ -9179,7 +9201,7 @@ var K = class e extends od {
9179
9201
  let i = r.mapping;
9180
9202
  r.steps.forEach((t, n) => {
9181
9203
  if (t instanceof Lt) {
9182
- let a = i.slice(n).map(t.from, -1), o = i.slice(n).map(t.to), s = i.invert().map(a, -1), c = i.invert().map(o), l = r.doc.nodeAt(a - 1)?.marks.some((e) => e.eq(t.mark)), u = r.doc.nodeAt(o)?.marks.some((e) => e.eq(t.mark));
9204
+ let a = i.slice(n).map(t.from, -1), o = i.slice(n).map(t.to), s = i.invert().map(a, -1), c = i.invert().map(o), l = a > 0 ? r.doc.nodeAt(a - 1)?.marks.some((e) => e.eq(t.mark)) : !1, u = r.doc.nodeAt(o)?.marks.some((e) => e.eq(t.mark));
9183
9205
  this.editor.emit("delete", {
9184
9206
  type: "mark",
9185
9207
  mark: t.mark,
@@ -9203,7 +9225,7 @@ var K = class e extends od {
9203
9225
  };
9204
9226
  this.editor.options.coreExtensionOptions?.delete?.async ?? !0 ? setTimeout(n, 0) : n();
9205
9227
  }
9206
- }), yd = K.create({
9228
+ }), bd = K.create({
9207
9229
  name: "drop",
9208
9230
  addProseMirrorPlugins() {
9209
9231
  return [new j({
@@ -9218,7 +9240,7 @@ var K = class e extends od {
9218
9240
  } }
9219
9241
  })];
9220
9242
  }
9221
- }), bd = K.create({
9243
+ }), xd = K.create({
9222
9244
  name: "editable",
9223
9245
  addProseMirrorPlugins() {
9224
9246
  return [new j({
@@ -9226,12 +9248,12 @@ var K = class e extends od {
9226
9248
  props: { editable: () => this.editor.options.editable }
9227
9249
  })];
9228
9250
  }
9229
- }), xd = new M("focusEvents"), Sd = K.create({
9251
+ }), Sd = new M("focusEvents"), Cd = K.create({
9230
9252
  name: "focusEvents",
9231
9253
  addProseMirrorPlugins() {
9232
9254
  let { editor: e } = this;
9233
9255
  return [new j({
9234
- key: xd,
9256
+ key: Sd,
9235
9257
  props: { handleDOMEvents: {
9236
9258
  focus: (t, n) => {
9237
9259
  e.isFocused = !0;
@@ -9246,7 +9268,7 @@ var K = class e extends od {
9246
9268
  } }
9247
9269
  })];
9248
9270
  }
9249
- }), Cd = K.create({
9271
+ }), wd = K.create({
9250
9272
  name: "keymap",
9251
9273
  addKeyboardShortcuts() {
9252
9274
  let e = () => this.editor.commands.first(({ commands: e }) => [
@@ -9310,7 +9332,7 @@ var K = class e extends od {
9310
9332
  }
9311
9333
  })];
9312
9334
  }
9313
- }), wd = K.create({
9335
+ }), Td = K.create({
9314
9336
  name: "paste",
9315
9337
  addProseMirrorPlugins() {
9316
9338
  return [new j({
@@ -9324,7 +9346,7 @@ var K = class e extends od {
9324
9346
  } }
9325
9347
  })];
9326
9348
  }
9327
- }), Td = K.create({
9349
+ }), Ed = K.create({
9328
9350
  name: "tabindex",
9329
9351
  addProseMirrorPlugins() {
9330
9352
  return [new j({
@@ -9332,7 +9354,7 @@ var K = class e extends od {
9332
9354
  props: { attributes: () => this.editor.isEditable ? { tabindex: "0" } : {} }
9333
9355
  })];
9334
9356
  }
9335
- }), Ed = K.create({
9357
+ }), Dd = K.create({
9336
9358
  name: "textDirection",
9337
9359
  addOptions() {
9338
9360
  return { direction: void 0 };
@@ -9361,7 +9383,7 @@ var K = class e extends od {
9361
9383
  } }
9362
9384
  })];
9363
9385
  }
9364
- }), Dd = class e {
9386
+ }), Od = class e {
9365
9387
  constructor(e, t, n = !1, r = null) {
9366
9388
  this.currentNode = null, this.actualDepth = null, this.isBlock = n, this.resolvedPos = e, this.editor = t, this.currentNode = r;
9367
9389
  }
@@ -9481,14 +9503,14 @@ var K = class e extends od {
9481
9503
  ...e
9482
9504
  }), this.editor.view.dispatch(t);
9483
9505
  }
9484
- }, Od = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}";
9485
- function kd(e, t, n) {
9506
+ }, kd = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}";
9507
+ function Ad(e, t, n) {
9486
9508
  let r = document.querySelector(`style[data-tiptap-style${n ? `-${n}` : ""}]`);
9487
9509
  if (r !== null) return r;
9488
9510
  let i = document.createElement("style");
9489
9511
  return t && i.setAttribute("nonce", t), i.setAttribute(`data-tiptap-style${n ? `-${n}` : ""}`, ""), i.innerHTML = e, document.getElementsByTagName("head")[0].appendChild(i), i;
9490
9512
  }
9491
- var Ad = class extends Qu {
9513
+ var jd = class extends $u {
9492
9514
  constructor(e = {}) {
9493
9515
  super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.options = {
9494
9516
  element: typeof document < "u" ? document.createElement("div") : null,
@@ -9566,7 +9588,7 @@ var Ad = class extends Qu {
9566
9588
  return this.commandManager.can();
9567
9589
  }
9568
9590
  injectCSS() {
9569
- this.options.injectCSS && typeof document < "u" && (this.css = kd(Od, this.options.injectNonce));
9591
+ this.options.injectCSS && typeof document < "u" && (this.css = Ad(kd, this.options.injectNonce));
9570
9592
  }
9571
9593
  setOptions(e = {}) {
9572
9594
  this.options = {
@@ -9622,17 +9644,17 @@ var Ad = class extends Qu {
9622
9644
  return this.view.updateState(r), r;
9623
9645
  }
9624
9646
  createExtensionManager() {
9625
- this.extensionManager = new hd([...this.options.enableCoreExtensions ? [
9626
- bd,
9627
- gd.configure({ blockSeparator: this.options.coreExtensionOptions?.clipboardTextSerializer?.blockSeparator }),
9628
- _d,
9629
- Sd,
9647
+ this.extensionManager = new gd([...this.options.enableCoreExtensions ? [
9648
+ xd,
9649
+ _d.configure({ blockSeparator: this.options.coreExtensionOptions?.clipboardTextSerializer?.blockSeparator }),
9650
+ vd,
9630
9651
  Cd,
9652
+ wd,
9653
+ Ed,
9654
+ bd,
9631
9655
  Td,
9632
9656
  yd,
9633
- wd,
9634
- vd,
9635
- Ed.configure({ direction: this.options.textDirection })
9657
+ Dd.configure({ direction: this.options.textDirection })
9636
9658
  ].filter((e) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[e.name] !== !1 : !0) : [], ...this.options.extensions].filter((e) => [
9637
9659
  "extension",
9638
9660
  "node",
@@ -9772,14 +9794,14 @@ var Ad = class extends Qu {
9772
9794
  return this.$doc?.querySelectorAll(e, t) || null;
9773
9795
  }
9774
9796
  $pos(e) {
9775
- return new Dd(this.state.doc.resolve(e), this);
9797
+ return new Od(this.state.doc.resolve(e), this);
9776
9798
  }
9777
9799
  get $doc() {
9778
9800
  return this.$pos(0);
9779
9801
  }
9780
9802
  };
9781
- function jd(e) {
9782
- return new $u({
9803
+ function Md(e) {
9804
+ return new ed({
9783
9805
  find: e.find,
9784
9806
  handler: ({ state: t, range: n, match: r }) => {
9785
9807
  let i = W(e.getAttributes, void 0, r);
@@ -9796,8 +9818,8 @@ function jd(e) {
9796
9818
  undoable: e.undoable
9797
9819
  });
9798
9820
  }
9799
- function Md(e) {
9800
- return new $u({
9821
+ function Nd(e) {
9822
+ return new ed({
9801
9823
  find: e.find,
9802
9824
  handler: ({ state: t, range: n, match: r }) => {
9803
9825
  let i = W(e.getAttributes, void 0, r) || {}, { tr: a } = t, o = n.from, s = n.to, c = e.type.create(i);
@@ -9815,8 +9837,8 @@ function Md(e) {
9815
9837
  undoable: e.undoable
9816
9838
  });
9817
9839
  }
9818
- function Nd(e) {
9819
- return new $u({
9840
+ function Pd(e) {
9841
+ return new ed({
9820
9842
  find: e.find,
9821
9843
  handler: ({ state: t, range: n, match: r }) => {
9822
9844
  let i = t.doc.resolve(n.from), a = W(e.getAttributes, void 0, r) || {};
@@ -9826,8 +9848,8 @@ function Nd(e) {
9826
9848
  undoable: e.undoable
9827
9849
  });
9828
9850
  }
9829
- function Pd(e) {
9830
- return new $u({
9851
+ function Fd(e) {
9852
+ return new ed({
9831
9853
  find: e.find,
9832
9854
  handler: ({ state: t, range: n, match: r, chain: i }) => {
9833
9855
  let a = W(e.getAttributes, void 0, r) || {}, o = t.tr.delete(n.from, n.to), s = o.doc.resolve(n.from).blockRange(), c = s && Jt(s, e.type, a);
@@ -9849,7 +9871,7 @@ function Pd(e) {
9849
9871
  undoable: e.undoable
9850
9872
  });
9851
9873
  }
9852
- function Fd(e, t) {
9874
+ function Id(e, t) {
9853
9875
  let { selection: n } = e, { $from: r } = n;
9854
9876
  if (n instanceof A) {
9855
9877
  let e = r.index();
@@ -9864,15 +9886,15 @@ function Fd(e, t) {
9864
9886
  return !1;
9865
9887
  }
9866
9888
  Sc({}, {
9867
- createAtomBlockMarkdownSpec: () => Rd,
9868
- createBlockMarkdownSpec: () => zd,
9869
- createInlineMarkdownSpec: () => Hd,
9870
- parseAttributes: () => Id,
9871
- parseIndentedBlocks: () => Ud,
9872
- renderNestedMarkdownContent: () => Wd,
9873
- serializeAttributes: () => Ld
9889
+ createAtomBlockMarkdownSpec: () => zd,
9890
+ createBlockMarkdownSpec: () => Bd,
9891
+ createInlineMarkdownSpec: () => Ud,
9892
+ parseAttributes: () => Ld,
9893
+ parseIndentedBlocks: () => Wd,
9894
+ renderNestedMarkdownContent: () => Gd,
9895
+ serializeAttributes: () => Rd
9874
9896
  });
9875
- function Id(e) {
9897
+ function Ld(e) {
9876
9898
  if (!e?.trim()) return {};
9877
9899
  let t = {}, n = [], r = e.replace(/["']([^"']*)["']/g, (e) => (n.push(e), `__QUOTED_${n.length - 1}__`)), i = r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);
9878
9900
  i && (t.class = i.map((e) => e.trim().slice(1)).join(" "));
@@ -9886,15 +9908,15 @@ function Id(e) {
9886
9908
  e.match(/^[a-zA-Z][\w-]*$/) && (t[e] = !0);
9887
9909
  }), t;
9888
9910
  }
9889
- function Ld(e) {
9911
+ function Rd(e) {
9890
9912
  if (!e || Object.keys(e).length === 0) return "";
9891
9913
  let t = [];
9892
9914
  return e.class && String(e.class).split(/\s+/).filter(Boolean).forEach((e) => t.push(`.${e}`)), e.id && t.push(`#${e.id}`), Object.entries(e).forEach(([e, n]) => {
9893
9915
  e === "class" || e === "id" || (n === !0 ? t.push(e) : n !== !1 && n != null && t.push(`${e}="${String(n)}"`));
9894
9916
  }), t.join(" ");
9895
9917
  }
9896
- function Rd(e) {
9897
- let { nodeName: t, name: n, parseAttributes: r = Id, serializeAttributes: i = Ld, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
9918
+ function zd(e) {
9919
+ let { nodeName: t, name: n, parseAttributes: r = Ld, serializeAttributes: i = Rd, defaultAttributes: a = {}, requiredAttributes: o = [], allowedAttributes: s } = e, c = n || t, l = (e) => {
9898
9920
  if (!s) return e;
9899
9921
  let t = {};
9900
9922
  return s.forEach((n) => {
@@ -9933,8 +9955,8 @@ function Rd(e) {
9933
9955
  }
9934
9956
  };
9935
9957
  }
9936
- function zd(e) {
9937
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Id, serializeAttributes: a = Ld, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
9958
+ function Bd(e) {
9959
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = Ld, serializeAttributes: a = Rd, defaultAttributes: o = {}, content: s = "block", allowedAttributes: c } = e, l = n || t, u = (e) => {
9938
9960
  if (!c) return e;
9939
9961
  let t = {};
9940
9962
  return c.forEach((n) => {
@@ -10008,7 +10030,7 @@ ${t.renderChildren(e.content || [], "\n\n")}
10008
10030
  }
10009
10031
  };
10010
10032
  }
10011
- function Bd(e) {
10033
+ function Vd(e) {
10012
10034
  if (!e.trim()) return {};
10013
10035
  let t = {}, n = /(\w+)=(?:"([^"]*)"|'([^']*)')/g, r = n.exec(e);
10014
10036
  for (; r !== null;) {
@@ -10017,11 +10039,11 @@ function Bd(e) {
10017
10039
  }
10018
10040
  return t;
10019
10041
  }
10020
- function Vd(e) {
10042
+ function Hd(e) {
10021
10043
  return Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => `${e}="${t}"`).join(" ");
10022
10044
  }
10023
- function Hd(e) {
10024
- let { nodeName: t, name: n, getContent: r, parseAttributes: i = Bd, serializeAttributes: a = Vd, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
10045
+ function Ud(e) {
10046
+ let { nodeName: t, name: n, getContent: r, parseAttributes: i = Vd, serializeAttributes: a = Hd, defaultAttributes: o = {}, selfClosing: s = !1, allowedAttributes: c } = e, l = n || t, u = (e) => {
10025
10047
  if (!c) return e;
10026
10048
  let t = {};
10027
10049
  return c.forEach((n) => {
@@ -10078,7 +10100,7 @@ function Hd(e) {
10078
10100
  }
10079
10101
  };
10080
10102
  }
10081
- function Ud(e, t, n) {
10103
+ function Wd(e, t, n) {
10082
10104
  let r = e.split("\n"), i = [], a = "", o = 0, s = t.baseIndentSize || 2;
10083
10105
  for (; o < r.length;) {
10084
10106
  let e = r[o], c = e.match(t.itemPattern);
@@ -10122,7 +10144,7 @@ function Ud(e, t, n) {
10122
10144
  raw: a
10123
10145
  };
10124
10146
  }
10125
- function Wd(e, t, n, r) {
10147
+ function Gd(e, t, n, r) {
10126
10148
  if (!e || !Array.isArray(e.content)) return "";
10127
10149
  let i = typeof n == "function" ? n(r) : n, [a, ...o] = e.content, s = `${i}${t.renderChildren([a])}`;
10128
10150
  return o && o.length > 0 && o.forEach((e, n) => {
@@ -10136,7 +10158,7 @@ ${n}`;
10136
10158
  }
10137
10159
  }), s;
10138
10160
  }
10139
- function Gd(e, t, n = {}) {
10161
+ function Kd(e, t, n = {}) {
10140
10162
  let { state: r } = t, { doc: i, tr: a } = r, o = e;
10141
10163
  i.descendants((t, r) => {
10142
10164
  let i = a.mapping.map(r), s = a.mapping.map(r) + t.nodeSize, c = null;
@@ -10156,7 +10178,7 @@ function Gd(e, t, n = {}) {
10156
10178
  }
10157
10179
  }), a.docChanged && t.view.dispatch(a);
10158
10180
  }
10159
- var Kd = class e extends od {
10181
+ var qd = class e extends sd {
10160
10182
  constructor() {
10161
10183
  super(...arguments), this.type = "node";
10162
10184
  }
@@ -10171,24 +10193,24 @@ var Kd = class e extends od {
10171
10193
  return super.extend(t);
10172
10194
  }
10173
10195
  };
10174
- function qd(e) {
10175
- return new ld({
10196
+ function Jd(e) {
10197
+ return new ud({
10176
10198
  find: e.find,
10177
10199
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
10178
10200
  let a = W(e.getAttributes, void 0, r, i);
10179
10201
  if (a === !1 || a === null) return null;
10180
10202
  let { tr: o } = t, s = r[r.length - 1], c = r[0], l = n.to;
10181
10203
  if (s) {
10182
- let r = c.search(/\S/), i = n.from + c.indexOf(s), u = i + s.length;
10183
- if (fu(n.from, n.to, t.doc).filter((t) => t.mark.type.excluded.find((n) => n === e.type && n !== t.mark.type)).filter((e) => e.to > i).length) return null;
10184
- u < n.to && o.delete(u, n.to), i > n.from && o.delete(n.from + r, i), l = n.from + r + s.length, o.addMark(n.from + r, l, e.type.create(a || {})), o.removeStoredMark(e.type);
10204
+ let i = c.search(/\S/), u = n.from + c.indexOf(s), d = u + s.length;
10205
+ if (fu(n.from, n.to, t.doc).filter((t) => t.mark.type.excluded.find((n) => n === e.type && n !== t.mark.type)).filter((e) => e.to > u).length) return null;
10206
+ d < n.to && o.delete(d, n.to), u > n.from && o.delete(n.from + i, u), l = n.from + i + s.length, o.addMark(n.from + i, l, e.type.create(a || {})), r.index !== void 0 && r.input !== void 0 && r.index + r[0].length >= r.input.length || o.removeStoredMark(e.type);
10185
10207
  }
10186
10208
  }
10187
10209
  });
10188
10210
  }
10189
10211
  //#endregion
10190
10212
  //#region ../../node_modules/@tiptap/vue-3/dist/index.js
10191
- function Jd(e) {
10213
+ function Yd(e) {
10192
10214
  return o((t, n) => ({
10193
10215
  get() {
10194
10216
  return t(), e;
@@ -10202,9 +10224,9 @@ function Jd(e) {
10202
10224
  }
10203
10225
  }));
10204
10226
  }
10205
- var Yd = class extends Ad {
10227
+ var Xd = class extends jd {
10206
10228
  constructor(e = {}) {
10207
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Jd(this.view.state), this.reactiveExtensionStorage = Jd(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
10229
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Yd(this.view.state), this.reactiveExtensionStorage = Yd(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
10208
10230
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
10209
10231
  }), u(this);
10210
10232
  }
@@ -10222,7 +10244,7 @@ var Yd = class extends Ad {
10222
10244
  let t = super.unregisterPlugin(e);
10223
10245
  return this.reactiveState && t && (this.reactiveState.value = t), t;
10224
10246
  }
10225
- }, Xd = s({
10247
+ }, Zd = s({
10226
10248
  name: "EditorContent",
10227
10249
  props: { editor: {
10228
10250
  default: null,
@@ -10280,10 +10302,10 @@ s({
10280
10302
  }, (e = this.$slots).default?.call(e));
10281
10303
  }
10282
10304
  });
10283
- var Zd = (e = {}) => {
10305
+ var Qd = (e = {}) => {
10284
10306
  let t = ee();
10285
10307
  return m(() => {
10286
- t.value = new Yd(e);
10308
+ t.value = new Xd(e);
10287
10309
  }), p(() => {
10288
10310
  var e, n;
10289
10311
  let r = t.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
@@ -10305,7 +10327,7 @@ s({
10305
10327
  });
10306
10328
  //#endregion
10307
10329
  //#region ../../node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
10308
- var Qd = (e, t) => {
10330
+ var $d = (e, t) => {
10309
10331
  if (e === "slot") return 0;
10310
10332
  if (e instanceof Function) return e(t);
10311
10333
  let { children: n, ...r } = t ?? {};
@@ -10315,7 +10337,7 @@ var Qd = (e, t) => {
10315
10337
  r,
10316
10338
  n
10317
10339
  ];
10318
- }, $d = /^\s*>\s$/, ef = Kd.create({
10340
+ }, ef = /^\s*>\s$/, tf = qd.create({
10319
10341
  name: "blockquote",
10320
10342
  addOptions() {
10321
10343
  return { HTMLAttributes: {} };
@@ -10327,9 +10349,9 @@ var Qd = (e, t) => {
10327
10349
  return [{ tag: "blockquote" }];
10328
10350
  },
10329
10351
  renderHTML({ HTMLAttributes: e }) {
10330
- return /* @__PURE__ */ Qd("blockquote", {
10352
+ return /* @__PURE__ */ $d("blockquote", {
10331
10353
  ...G(this.options.HTMLAttributes, e),
10332
- children: /* @__PURE__ */ Qd("slot", {})
10354
+ children: /* @__PURE__ */ $d("slot", {})
10333
10355
  });
10334
10356
  },
10335
10357
  parseMarkdown: (e, t) => {
@@ -10355,12 +10377,12 @@ var Qd = (e, t) => {
10355
10377
  return { "Mod-Shift-b": () => this.editor.commands.toggleBlockquote() };
10356
10378
  },
10357
10379
  addInputRules() {
10358
- return [Pd({
10359
- find: $d,
10380
+ return [Fd({
10381
+ find: ef,
10360
10382
  type: this.type
10361
10383
  })];
10362
10384
  }
10363
- }), tf = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, nf = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, rf = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, af = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, of = sd.create({
10385
+ }), nf = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, rf = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, af = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, of = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, sf = cd.create({
10364
10386
  name: "bold",
10365
10387
  addOptions() {
10366
10388
  return { HTMLAttributes: {} };
@@ -10383,9 +10405,9 @@ var Qd = (e, t) => {
10383
10405
  ];
10384
10406
  },
10385
10407
  renderHTML({ HTMLAttributes: e }) {
10386
- return /* @__PURE__ */ Qd("strong", {
10408
+ return /* @__PURE__ */ $d("strong", {
10387
10409
  ...G(this.options.HTMLAttributes, e),
10388
- children: /* @__PURE__ */ Qd("slot", {})
10410
+ children: /* @__PURE__ */ $d("slot", {})
10389
10411
  });
10390
10412
  },
10391
10413
  markdownTokenName: "strong",
@@ -10409,24 +10431,24 @@ var Qd = (e, t) => {
10409
10431
  };
10410
10432
  },
10411
10433
  addInputRules() {
10412
- return [jd({
10413
- find: tf,
10434
+ return [Md({
10435
+ find: nf,
10414
10436
  type: this.type
10415
- }), jd({
10416
- find: rf,
10437
+ }), Md({
10438
+ find: af,
10417
10439
  type: this.type
10418
10440
  })];
10419
10441
  },
10420
10442
  addPasteRules() {
10421
- return [qd({
10422
- find: nf,
10443
+ return [Jd({
10444
+ find: rf,
10423
10445
  type: this.type
10424
- }), qd({
10425
- find: af,
10446
+ }), Jd({
10447
+ find: of,
10426
10448
  type: this.type
10427
10449
  })];
10428
10450
  }
10429
- }), sf = /(^|[^`])`([^`]+)`(?!`)$/, cf = /(^|[^`])`([^`]+)`(?!`)/g, lf = sd.create({
10451
+ }), cf = /(^|[^`])`([^`]+)`(?!`)$/, lf = /(^|[^`])`([^`]+)`(?!`)/g, uf = cd.create({
10430
10452
  name: "code",
10431
10453
  addOptions() {
10432
10454
  return { HTMLAttributes: {} };
@@ -10461,18 +10483,18 @@ var Qd = (e, t) => {
10461
10483
  return { "Mod-e": () => this.editor.commands.toggleCode() };
10462
10484
  },
10463
10485
  addInputRules() {
10464
- return [jd({
10465
- find: sf,
10486
+ return [Md({
10487
+ find: cf,
10466
10488
  type: this.type
10467
10489
  })];
10468
10490
  },
10469
10491
  addPasteRules() {
10470
- return [qd({
10471
- find: cf,
10492
+ return [Jd({
10493
+ find: lf,
10472
10494
  type: this.type
10473
10495
  })];
10474
10496
  }
10475
- }), uf = 4, df = /^```([a-z]+)?[\s\n]$/, ff = /^~~~([a-z]+)?[\s\n]$/, pf = Kd.create({
10497
+ }), df = 4, ff = /^```([a-z]+)?[\s\n]$/, pf = /^~~~([a-z]+)?[\s\n]$/, mf = qd.create({
10476
10498
  name: "codeBlock",
10477
10499
  addOptions() {
10478
10500
  return {
@@ -10481,7 +10503,7 @@ var Qd = (e, t) => {
10481
10503
  exitOnArrowDown: !0,
10482
10504
  defaultLanguage: null,
10483
10505
  enableTabIndentation: !1,
10484
- tabSize: uf,
10506
+ tabSize: df,
10485
10507
  HTMLAttributes: {}
10486
10508
  };
10487
10509
  },
@@ -10544,7 +10566,7 @@ var Qd = (e, t) => {
10544
10566
  },
10545
10567
  Tab: ({ editor: e }) => {
10546
10568
  if (!this.options.enableTabIndentation) return !1;
10547
- let t = this.options.tabSize ?? uf, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
10569
+ let t = this.options.tabSize ?? df, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
10548
10570
  if (i.parent.type !== this.type) return !1;
10549
10571
  let o = " ".repeat(t);
10550
10572
  return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
@@ -10554,7 +10576,7 @@ var Qd = (e, t) => {
10554
10576
  },
10555
10577
  "Shift-Tab": ({ editor: e }) => {
10556
10578
  if (!this.options.enableTabIndentation) return !1;
10557
- let t = this.options.tabSize ?? uf, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
10579
+ let t = this.options.tabSize ?? df, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
10558
10580
  return i.parent.type === this.type ? a ? e.commands.command(({ tr: e }) => {
10559
10581
  let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
10560
10582
  for (let e = 0; e < s.length; e += 1) {
@@ -10594,12 +10616,12 @@ var Qd = (e, t) => {
10594
10616
  };
10595
10617
  },
10596
10618
  addInputRules() {
10597
- return [Nd({
10598
- find: df,
10619
+ return [Pd({
10620
+ find: ff,
10599
10621
  type: this.type,
10600
10622
  getAttributes: (e) => ({ language: e[1] })
10601
- }), Nd({
10602
- find: ff,
10623
+ }), Pd({
10624
+ find: pf,
10603
10625
  type: this.type,
10604
10626
  getAttributes: (e) => ({ language: e[1] })
10605
10627
  })];
@@ -10616,12 +10638,12 @@ var Qd = (e, t) => {
10616
10638
  } }
10617
10639
  })];
10618
10640
  }
10619
- }), mf = Kd.create({
10641
+ }), hf = qd.create({
10620
10642
  name: "doc",
10621
10643
  topNode: !0,
10622
10644
  content: "block+",
10623
10645
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
10624
- }), hf = Kd.create({
10646
+ }), gf = qd.create({
10625
10647
  name: "hardBreak",
10626
10648
  markdownTokenName: "br",
10627
10649
  addOptions() {
@@ -10665,7 +10687,7 @@ var Qd = (e, t) => {
10665
10687
  "Shift-Enter": () => this.editor.commands.setHardBreak()
10666
10688
  };
10667
10689
  }
10668
- }), gf = Kd.create({
10690
+ }), _f = qd.create({
10669
10691
  name: "heading",
10670
10692
  addOptions() {
10671
10693
  return {
@@ -10720,13 +10742,13 @@ var Qd = (e, t) => {
10720
10742
  }), {});
10721
10743
  },
10722
10744
  addInputRules() {
10723
- return this.options.levels.map((e) => Nd({
10745
+ return this.options.levels.map((e) => Pd({
10724
10746
  find: RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
10725
10747
  type: this.type,
10726
10748
  getAttributes: { level: e }
10727
10749
  }));
10728
10750
  }
10729
- }), _f = Kd.create({
10751
+ }), vf = qd.create({
10730
10752
  name: "horizontalRule",
10731
10753
  addOptions() {
10732
10754
  return {
@@ -10746,7 +10768,7 @@ var Qd = (e, t) => {
10746
10768
  renderMarkdown: () => "---",
10747
10769
  addCommands() {
10748
10770
  return { setHorizontalRule: () => ({ chain: e, state: t }) => {
10749
- if (!Fd(t, t.schema.nodes[this.name])) return !1;
10771
+ if (!Id(t, t.schema.nodes[this.name])) return !1;
10750
10772
  let { selection: n } = t, { $to: r } = n, i = e();
10751
10773
  return wu(n) ? i.insertContentAt(r.pos, { type: this.name }) : i.insertContent({ type: this.name }), i.command(({ state: e, tr: t, dispatch: n }) => {
10752
10774
  if (n) {
@@ -10763,12 +10785,12 @@ var Qd = (e, t) => {
10763
10785
  } };
10764
10786
  },
10765
10787
  addInputRules() {
10766
- return [Md({
10788
+ return [Nd({
10767
10789
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
10768
10790
  type: this.type
10769
10791
  })];
10770
10792
  }
10771
- }), vf = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, yf = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, bf = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, xf = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Sf = sd.create({
10793
+ }), yf = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, bf = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, xf = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Sf = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Cf = cd.create({
10772
10794
  name: "italic",
10773
10795
  addOptions() {
10774
10796
  return { HTMLAttributes: {} };
@@ -10815,35 +10837,35 @@ var Qd = (e, t) => {
10815
10837
  };
10816
10838
  },
10817
10839
  addInputRules() {
10818
- return [jd({
10819
- find: vf,
10840
+ return [Md({
10841
+ find: yf,
10820
10842
  type: this.type
10821
- }), jd({
10822
- find: bf,
10843
+ }), Md({
10844
+ find: xf,
10823
10845
  type: this.type
10824
10846
  })];
10825
10847
  },
10826
10848
  addPasteRules() {
10827
- return [qd({
10828
- find: yf,
10849
+ return [Jd({
10850
+ find: bf,
10829
10851
  type: this.type
10830
- }), qd({
10831
- find: xf,
10852
+ }), Jd({
10853
+ find: Sf,
10832
10854
  type: this.type
10833
10855
  })];
10834
10856
  }
10835
- }), Cf = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", wf = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Tf = "numeric", Ef = "ascii", Df = "alpha", Of = "asciinumeric", kf = "alphanumeric", Af = "domain", jf = "emoji", Mf = "scheme", Nf = "slashscheme", Pf = "whitespace";
10836
- function Ff(e, t) {
10857
+ }), wf = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Tf = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ef = "numeric", Df = "ascii", Of = "alpha", kf = "asciinumeric", Af = "alphanumeric", jf = "domain", Mf = "emoji", Nf = "scheme", Pf = "slashscheme", Ff = "whitespace";
10858
+ function If(e, t) {
10837
10859
  return e in t || (t[e] = []), t[e];
10838
10860
  }
10839
- function If(e, t, n) {
10840
- t[Tf] && (t[Of] = !0, t[kf] = !0), t[Ef] && (t[Of] = !0, t[Df] = !0), t[Of] && (t[kf] = !0), t[Df] && (t[kf] = !0), t[kf] && (t[Af] = !0), t[jf] && (t[Af] = !0);
10861
+ function Lf(e, t, n) {
10862
+ t[Ef] && (t[kf] = !0, t[Af] = !0), t[Df] && (t[kf] = !0, t[Of] = !0), t[kf] && (t[Af] = !0), t[Of] && (t[Af] = !0), t[Af] && (t[jf] = !0), t[Mf] && (t[jf] = !0);
10841
10863
  for (let r in t) {
10842
- let t = Ff(r, n);
10864
+ let t = If(r, n);
10843
10865
  t.indexOf(e) < 0 && t.push(e);
10844
10866
  }
10845
10867
  }
10846
- function Lf(e, t) {
10868
+ function Rf(e, t) {
10847
10869
  let n = {};
10848
10870
  for (let r in t) t[r].indexOf(e) >= 0 && (n[r] = !0);
10849
10871
  return n;
@@ -10873,7 +10895,7 @@ q.groups = {}, q.prototype = {
10873
10895
  tr(e, t, n, r) {
10874
10896
  r ||= q.groups;
10875
10897
  let i;
10876
- return t && t.j ? i = t : (i = new q(t), n && r && If(t, n, r)), this.jr.push([e, i]), i;
10898
+ return t && t.j ? i = t : (i = new q(t), n && r && Lf(t, n, r)), this.jr.push([e, i]), i;
10877
10899
  },
10878
10900
  ts(e, t, n, r) {
10879
10901
  let i = this, a = e.length;
@@ -10886,115 +10908,115 @@ q.groups = {}, q.prototype = {
10886
10908
  let i = this;
10887
10909
  if (t && t.j) return i.j[e] = t, t;
10888
10910
  let a = t, o, s = i.go(e);
10889
- return s ? (o = new q(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new q(), a && (r && (o.t && typeof o.t == "string" ? If(a, Object.assign(Lf(o.t, r), n), r) : n && If(a, n, r)), o.t = a), i.j[e] = o, o;
10911
+ return s ? (o = new q(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new q(), a && (r && (o.t && typeof o.t == "string" ? Lf(a, Object.assign(Rf(o.t, r), n), r) : n && Lf(a, n, r)), o.t = a), i.j[e] = o, o;
10890
10912
  }
10891
10913
  };
10892
- var J = (e, t, n, r, i) => e.ta(t, n, r, i), Y = (e, t, n, r, i) => e.tr(t, n, r, i), Rf = (e, t, n, r, i) => e.ts(t, n, r, i), X = (e, t, n, r, i) => e.tt(t, n, r, i), zf = "WORD", Bf = "UWORD", Vf = "ASCIINUMERICAL", Hf = "ALPHANUMERICAL", Uf = "LOCALHOST", Wf = "TLD", Gf = "UTLD", Kf = "SCHEME", qf = "SLASH_SCHEME", Jf = "NUM", Yf = "WS", Xf = "NL", Zf = "OPENBRACE", Qf = "CLOSEBRACE", $f = "OPENBRACKET", ep = "CLOSEBRACKET", tp = "OPENPAREN", np = "CLOSEPAREN", rp = "OPENANGLEBRACKET", ip = "CLOSEANGLEBRACKET", ap = "FULLWIDTHLEFTPAREN", op = "FULLWIDTHRIGHTPAREN", sp = "LEFTCORNERBRACKET", cp = "RIGHTCORNERBRACKET", lp = "LEFTWHITECORNERBRACKET", up = "RIGHTWHITECORNERBRACKET", dp = "FULLWIDTHLESSTHAN", fp = "FULLWIDTHGREATERTHAN", pp = "AMPERSAND", mp = "APOSTROPHE", hp = "ASTERISK", gp = "AT", _p = "BACKSLASH", vp = "BACKTICK", yp = "CARET", bp = "COLON", xp = "COMMA", Sp = "DOLLAR", Cp = "DOT", wp = "EQUALS", Tp = "EXCLAMATION", Ep = "HYPHEN", Dp = "PERCENT", Op = "PIPE", kp = "PLUS", Ap = "POUND", jp = "QUERY", Mp = "QUOTE", Np = "FULLWIDTHMIDDLEDOT", Pp = "SEMI", Fp = "SLASH", Ip = "TILDE", Lp = "UNDERSCORE", Rp = "EMOJI", zp = "SYM", Bp = /* @__PURE__ */ Object.freeze({
10914
+ var J = (e, t, n, r, i) => e.ta(t, n, r, i), Y = (e, t, n, r, i) => e.tr(t, n, r, i), zf = (e, t, n, r, i) => e.ts(t, n, r, i), X = (e, t, n, r, i) => e.tt(t, n, r, i), Bf = "WORD", Vf = "UWORD", Hf = "ASCIINUMERICAL", Uf = "ALPHANUMERICAL", Wf = "LOCALHOST", Gf = "TLD", Kf = "UTLD", qf = "SCHEME", Jf = "SLASH_SCHEME", Yf = "NUM", Xf = "WS", Zf = "NL", Qf = "OPENBRACE", $f = "CLOSEBRACE", ep = "OPENBRACKET", tp = "CLOSEBRACKET", np = "OPENPAREN", rp = "CLOSEPAREN", ip = "OPENANGLEBRACKET", ap = "CLOSEANGLEBRACKET", op = "FULLWIDTHLEFTPAREN", sp = "FULLWIDTHRIGHTPAREN", cp = "LEFTCORNERBRACKET", lp = "RIGHTCORNERBRACKET", up = "LEFTWHITECORNERBRACKET", dp = "RIGHTWHITECORNERBRACKET", fp = "FULLWIDTHLESSTHAN", pp = "FULLWIDTHGREATERTHAN", mp = "AMPERSAND", hp = "APOSTROPHE", gp = "ASTERISK", _p = "AT", vp = "BACKSLASH", yp = "BACKTICK", bp = "CARET", xp = "COLON", Sp = "COMMA", Cp = "DOLLAR", wp = "DOT", Tp = "EQUALS", Ep = "EXCLAMATION", Dp = "HYPHEN", Op = "PERCENT", kp = "PIPE", Ap = "PLUS", jp = "POUND", Mp = "QUERY", Np = "QUOTE", Pp = "FULLWIDTHMIDDLEDOT", Fp = "SEMI", Ip = "SLASH", Lp = "TILDE", Rp = "UNDERSCORE", zp = "EMOJI", Bp = "SYM", Vp = /* @__PURE__ */ Object.freeze({
10893
10915
  __proto__: null,
10894
- ALPHANUMERICAL: Hf,
10895
- AMPERSAND: pp,
10896
- APOSTROPHE: mp,
10897
- ASCIINUMERICAL: Vf,
10898
- ASTERISK: hp,
10899
- AT: gp,
10900
- BACKSLASH: _p,
10901
- BACKTICK: vp,
10902
- CARET: yp,
10903
- CLOSEANGLEBRACKET: ip,
10904
- CLOSEBRACE: Qf,
10905
- CLOSEBRACKET: ep,
10906
- CLOSEPAREN: np,
10907
- COLON: bp,
10908
- COMMA: xp,
10909
- DOLLAR: Sp,
10910
- DOT: Cp,
10911
- EMOJI: Rp,
10912
- EQUALS: wp,
10913
- EXCLAMATION: Tp,
10914
- FULLWIDTHGREATERTHAN: fp,
10915
- FULLWIDTHLEFTPAREN: ap,
10916
- FULLWIDTHLESSTHAN: dp,
10917
- FULLWIDTHMIDDLEDOT: Np,
10918
- FULLWIDTHRIGHTPAREN: op,
10919
- HYPHEN: Ep,
10920
- LEFTCORNERBRACKET: sp,
10921
- LEFTWHITECORNERBRACKET: lp,
10922
- LOCALHOST: Uf,
10923
- NL: Xf,
10924
- NUM: Jf,
10925
- OPENANGLEBRACKET: rp,
10926
- OPENBRACE: Zf,
10927
- OPENBRACKET: $f,
10928
- OPENPAREN: tp,
10929
- PERCENT: Dp,
10930
- PIPE: Op,
10931
- PLUS: kp,
10932
- POUND: Ap,
10933
- QUERY: jp,
10934
- QUOTE: Mp,
10935
- RIGHTCORNERBRACKET: cp,
10936
- RIGHTWHITECORNERBRACKET: up,
10937
- SCHEME: Kf,
10938
- SEMI: Pp,
10939
- SLASH: Fp,
10940
- SLASH_SCHEME: qf,
10941
- SYM: zp,
10942
- TILDE: Ip,
10943
- TLD: Wf,
10944
- UNDERSCORE: Lp,
10945
- UTLD: Gf,
10946
- UWORD: Bf,
10947
- WORD: zf,
10948
- WS: Yf
10949
- }), Vp = /[a-z]/, Hp = /\p{L}/u, Up = /\p{Emoji}/u, Wp = /\d/, Gp = /\s/, Kp = "\r", qp = "\n", Jp = "️", Yp = "‍", Xp = "", Zp = null, Qp = null;
10950
- function $p(e = []) {
10916
+ ALPHANUMERICAL: Uf,
10917
+ AMPERSAND: mp,
10918
+ APOSTROPHE: hp,
10919
+ ASCIINUMERICAL: Hf,
10920
+ ASTERISK: gp,
10921
+ AT: _p,
10922
+ BACKSLASH: vp,
10923
+ BACKTICK: yp,
10924
+ CARET: bp,
10925
+ CLOSEANGLEBRACKET: ap,
10926
+ CLOSEBRACE: $f,
10927
+ CLOSEBRACKET: tp,
10928
+ CLOSEPAREN: rp,
10929
+ COLON: xp,
10930
+ COMMA: Sp,
10931
+ DOLLAR: Cp,
10932
+ DOT: wp,
10933
+ EMOJI: zp,
10934
+ EQUALS: Tp,
10935
+ EXCLAMATION: Ep,
10936
+ FULLWIDTHGREATERTHAN: pp,
10937
+ FULLWIDTHLEFTPAREN: op,
10938
+ FULLWIDTHLESSTHAN: fp,
10939
+ FULLWIDTHMIDDLEDOT: Pp,
10940
+ FULLWIDTHRIGHTPAREN: sp,
10941
+ HYPHEN: Dp,
10942
+ LEFTCORNERBRACKET: cp,
10943
+ LEFTWHITECORNERBRACKET: up,
10944
+ LOCALHOST: Wf,
10945
+ NL: Zf,
10946
+ NUM: Yf,
10947
+ OPENANGLEBRACKET: ip,
10948
+ OPENBRACE: Qf,
10949
+ OPENBRACKET: ep,
10950
+ OPENPAREN: np,
10951
+ PERCENT: Op,
10952
+ PIPE: kp,
10953
+ PLUS: Ap,
10954
+ POUND: jp,
10955
+ QUERY: Mp,
10956
+ QUOTE: Np,
10957
+ RIGHTCORNERBRACKET: lp,
10958
+ RIGHTWHITECORNERBRACKET: dp,
10959
+ SCHEME: qf,
10960
+ SEMI: Fp,
10961
+ SLASH: Ip,
10962
+ SLASH_SCHEME: Jf,
10963
+ SYM: Bp,
10964
+ TILDE: Lp,
10965
+ TLD: Gf,
10966
+ UNDERSCORE: Rp,
10967
+ UTLD: Kf,
10968
+ UWORD: Vf,
10969
+ WORD: Bf,
10970
+ WS: Xf
10971
+ }), Hp = /[a-z]/, Up = /\p{L}/u, Wp = /\p{Emoji}/u, Gp = /\d/, Kp = /\s/, qp = "\r", Jp = "\n", Yp = "️", Xp = "‍", Zp = "", Qp = null, $p = null;
10972
+ function em(e = []) {
10951
10973
  let t = {};
10952
10974
  q.groups = t;
10953
10975
  let n = new q();
10954
- Zp ??= rm(Cf), Qp ??= rm(wf), X(n, "'", mp), X(n, "{", Zf), X(n, "}", Qf), X(n, "[", $f), X(n, "]", ep), X(n, "(", tp), X(n, ")", np), X(n, "<", rp), X(n, ">", ip), X(n, "(", ap), X(n, ")", op), X(n, "「", sp), X(n, "」", cp), X(n, "『", lp), X(n, "』", up), X(n, "<", dp), X(n, ">", fp), X(n, "&", pp), X(n, "*", hp), X(n, "@", gp), X(n, "`", vp), X(n, "^", yp), X(n, ":", bp), X(n, ",", xp), X(n, "$", Sp), X(n, ".", Cp), X(n, "=", wp), X(n, "!", Tp), X(n, "-", Ep), X(n, "%", Dp), X(n, "|", Op), X(n, "+", kp), X(n, "#", Ap), X(n, "?", jp), X(n, "\"", Mp), X(n, "/", Fp), X(n, ";", Pp), X(n, "~", Ip), X(n, "_", Lp), X(n, "\\", _p), X(n, "・", Np);
10955
- let r = Y(n, Wp, Jf, { [Tf]: !0 });
10956
- Y(r, Wp, r);
10957
- let i = Y(r, Vp, Vf, { [Of]: !0 }), a = Y(r, Hp, Hf, { [kf]: !0 }), o = Y(n, Vp, zf, { [Ef]: !0 });
10958
- Y(o, Wp, i), Y(o, Vp, o), Y(i, Wp, i), Y(i, Vp, i);
10959
- let s = Y(n, Hp, Bf, { [Df]: !0 });
10960
- Y(s, Vp), Y(s, Wp, a), Y(s, Hp, s), Y(a, Wp, a), Y(a, Vp), Y(a, Hp, a);
10961
- let c = X(n, qp, Xf, { [Pf]: !0 }), l = X(n, Kp, Yf, { [Pf]: !0 }), u = Y(n, Gp, Yf, { [Pf]: !0 });
10962
- X(n, Xp, u), X(l, qp, c), X(l, Xp, u), Y(l, Gp, u), X(u, Kp), X(u, qp), Y(u, Gp, u), X(u, Xp, u);
10963
- let d = Y(n, Up, Rp, { [jf]: !0 });
10964
- X(d, "#"), Y(d, Up, d), X(d, Jp, d);
10965
- let f = X(d, Yp);
10966
- X(f, "#"), Y(f, Up, d);
10967
- let p = [[Vp, o], [Wp, i]], m = [
10968
- [Vp, null],
10969
- [Hp, s],
10970
- [Wp, a]
10976
+ Qp ??= im(wf), $p ??= im(Tf), X(n, "'", hp), X(n, "{", Qf), X(n, "}", $f), X(n, "[", ep), X(n, "]", tp), X(n, "(", np), X(n, ")", rp), X(n, "<", ip), X(n, ">", ap), X(n, "(", op), X(n, ")", sp), X(n, "「", cp), X(n, "」", lp), X(n, "『", up), X(n, "』", dp), X(n, "<", fp), X(n, ">", pp), X(n, "&", mp), X(n, "*", gp), X(n, "@", _p), X(n, "`", yp), X(n, "^", bp), X(n, ":", xp), X(n, ",", Sp), X(n, "$", Cp), X(n, ".", wp), X(n, "=", Tp), X(n, "!", Ep), X(n, "-", Dp), X(n, "%", Op), X(n, "|", kp), X(n, "+", Ap), X(n, "#", jp), X(n, "?", Mp), X(n, "\"", Np), X(n, "/", Ip), X(n, ";", Fp), X(n, "~", Lp), X(n, "_", Rp), X(n, "\\", vp), X(n, "・", Pp);
10977
+ let r = Y(n, Gp, Yf, { [Ef]: !0 });
10978
+ Y(r, Gp, r);
10979
+ let i = Y(r, Hp, Hf, { [kf]: !0 }), a = Y(r, Up, Uf, { [Af]: !0 }), o = Y(n, Hp, Bf, { [Df]: !0 });
10980
+ Y(o, Gp, i), Y(o, Hp, o), Y(i, Gp, i), Y(i, Hp, i);
10981
+ let s = Y(n, Up, Vf, { [Of]: !0 });
10982
+ Y(s, Hp), Y(s, Gp, a), Y(s, Up, s), Y(a, Gp, a), Y(a, Hp), Y(a, Up, a);
10983
+ let c = X(n, Jp, Zf, { [Ff]: !0 }), l = X(n, qp, Xf, { [Ff]: !0 }), u = Y(n, Kp, Xf, { [Ff]: !0 });
10984
+ X(n, Zp, u), X(l, Jp, c), X(l, Zp, u), Y(l, Kp, u), X(u, qp), X(u, Jp), Y(u, Kp, u), X(u, Zp, u);
10985
+ let d = Y(n, Wp, zp, { [Mf]: !0 });
10986
+ X(d, "#"), Y(d, Wp, d), X(d, Yp, d);
10987
+ let f = X(d, Xp);
10988
+ X(f, "#"), Y(f, Wp, d);
10989
+ let p = [[Hp, o], [Gp, i]], m = [
10990
+ [Hp, null],
10991
+ [Up, s],
10992
+ [Gp, a]
10971
10993
  ];
10972
- for (let e = 0; e < Zp.length; e++) nm(n, Zp[e], Wf, zf, p);
10973
- for (let e = 0; e < Qp.length; e++) nm(n, Qp[e], Gf, Bf, m);
10974
- If(Wf, {
10994
+ for (let e = 0; e < Qp.length; e++) rm(n, Qp[e], Gf, Bf, p);
10995
+ for (let e = 0; e < $p.length; e++) rm(n, $p[e], Kf, Vf, m);
10996
+ Lf(Gf, {
10975
10997
  tld: !0,
10976
10998
  ascii: !0
10977
- }, t), If(Gf, {
10999
+ }, t), Lf(Kf, {
10978
11000
  utld: !0,
10979
11001
  alpha: !0
10980
- }, t), nm(n, "file", Kf, zf, p), nm(n, "mailto", Kf, zf, p), nm(n, "http", qf, zf, p), nm(n, "https", qf, zf, p), nm(n, "ftp", qf, zf, p), nm(n, "ftps", qf, zf, p), If(Kf, {
11002
+ }, t), rm(n, "file", qf, Bf, p), rm(n, "mailto", qf, Bf, p), rm(n, "http", Jf, Bf, p), rm(n, "https", Jf, Bf, p), rm(n, "ftp", Jf, Bf, p), rm(n, "ftps", Jf, Bf, p), Lf(qf, {
10981
11003
  scheme: !0,
10982
11004
  ascii: !0
10983
- }, t), If(qf, {
11005
+ }, t), Lf(Jf, {
10984
11006
  slashscheme: !0,
10985
11007
  ascii: !0
10986
11008
  }, t), e = e.sort((e, t) => e[0] > t[0] ? 1 : -1);
10987
11009
  for (let t = 0; t < e.length; t++) {
10988
- let r = e[t][0], i = e[t][1] ? { [Mf]: !0 } : { [Nf]: !0 };
10989
- r.indexOf("-") >= 0 ? i[Af] = !0 : Vp.test(r) ? Wp.test(r) ? i[Of] = !0 : i[Ef] = !0 : i[Tf] = !0, Rf(n, r, r, i);
11010
+ let r = e[t][0], i = e[t][1] ? { [Nf]: !0 } : { [Pf]: !0 };
11011
+ r.indexOf("-") >= 0 ? i[jf] = !0 : Hp.test(r) ? Gp.test(r) ? i[kf] = !0 : i[Df] = !0 : i[Ef] = !0, zf(n, r, r, i);
10990
11012
  }
10991
- return Rf(n, "localhost", Uf, { ascii: !0 }), n.jd = new q(zp), {
11013
+ return zf(n, "localhost", Wf, { ascii: !0 }), n.jd = new q(Bp), {
10992
11014
  start: n,
10993
- tokens: Object.assign({ groups: t }, Bp)
11015
+ tokens: Object.assign({ groups: t }, Vp)
10994
11016
  };
10995
11017
  }
10996
- function em(e, t) {
10997
- let n = tm(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
11018
+ function tm(e, t) {
11019
+ let n = nm(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
10998
11020
  for (; o < r;) {
10999
11021
  let s = e, c = null, l = 0, u = null, d = -1, f = -1;
11000
11022
  for (; o < r && (c = s.go(n[o]));) s = c, s.accepts() ? (d = 0, f = 0, u = s) : d >= 0 && (d += n[o].length, f++), l += n[o].length, a += n[o].length, o++;
@@ -11007,7 +11029,7 @@ function em(e, t) {
11007
11029
  }
11008
11030
  return i;
11009
11031
  }
11010
- function tm(e) {
11032
+ function nm(e) {
11011
11033
  let t = [], n = e.length, r = 0;
11012
11034
  for (; r < n;) {
11013
11035
  let i = e.charCodeAt(r), a, o = i < 55296 || i > 56319 || r + 1 === n || (a = e.charCodeAt(r + 1)) < 56320 || a > 57343 ? e[r] : e.slice(r, r + 2);
@@ -11015,7 +11037,7 @@ function tm(e) {
11015
11037
  }
11016
11038
  return t;
11017
11039
  }
11018
- function nm(e, t, n, r, i) {
11040
+ function rm(e, t, n, r, i) {
11019
11041
  let a, o = t.length;
11020
11042
  for (let n = 0; n < o - 1; n++) {
11021
11043
  let o = t[n];
@@ -11023,7 +11045,7 @@ function nm(e, t, n, r, i) {
11023
11045
  }
11024
11046
  return a = new q(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
11025
11047
  }
11026
- function rm(e) {
11048
+ function im(e) {
11027
11049
  let t = [], n = [], r = 0;
11028
11050
  for (; r < e.length;) {
11029
11051
  let i = 0;
@@ -11036,11 +11058,11 @@ function rm(e) {
11036
11058
  }
11037
11059
  return t;
11038
11060
  }
11039
- var im = {
11061
+ var am = {
11040
11062
  defaultProtocol: "http",
11041
11063
  events: null,
11042
- format: om,
11043
- formatHref: om,
11064
+ format: sm,
11065
+ formatHref: sm,
11044
11066
  nl2br: !1,
11045
11067
  tagName: "a",
11046
11068
  target: null,
@@ -11052,15 +11074,15 @@ var im = {
11052
11074
  ignoreTags: [],
11053
11075
  render: null
11054
11076
  };
11055
- function am(e, t = null) {
11056
- let n = Object.assign({}, im);
11057
- e && (n = Object.assign(n, e instanceof am ? e.o : e));
11077
+ function om(e, t = null) {
11078
+ let n = Object.assign({}, am);
11079
+ e && (n = Object.assign(n, e instanceof om ? e.o : e));
11058
11080
  let r = n.ignoreTags, i = [];
11059
11081
  for (let e = 0; e < r.length; e++) i.push(r[e].toUpperCase());
11060
11082
  this.o = n, t && (this.defaultRender = t), this.ignoreTags = i;
11061
11083
  }
11062
- am.prototype = {
11063
- o: im,
11084
+ om.prototype = {
11085
+ o: am,
11064
11086
  ignoreTags: [],
11065
11087
  defaultRender(e) {
11066
11088
  return e;
@@ -11070,7 +11092,7 @@ am.prototype = {
11070
11092
  },
11071
11093
  get(e, t, n) {
11072
11094
  let r = t != null, i = this.o[e];
11073
- return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : im[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
11095
+ return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : am[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
11074
11096
  },
11075
11097
  getObj(e, t, n) {
11076
11098
  let r = this.o[e];
@@ -11081,13 +11103,13 @@ am.prototype = {
11081
11103
  return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
11082
11104
  }
11083
11105
  };
11084
- function om(e) {
11106
+ function sm(e) {
11085
11107
  return e;
11086
11108
  }
11087
- function sm(e, t) {
11109
+ function cm(e, t) {
11088
11110
  this.t = "token", this.v = e, this.tk = t;
11089
11111
  }
11090
- sm.prototype = {
11112
+ cm.prototype = {
11091
11113
  isLink: !1,
11092
11114
  toString() {
11093
11115
  return this.v;
@@ -11108,7 +11130,7 @@ sm.prototype = {
11108
11130
  endIndex() {
11109
11131
  return this.tk[this.tk.length - 1].e;
11110
11132
  },
11111
- toObject(e = im.defaultProtocol) {
11133
+ toObject(e = am.defaultProtocol) {
11112
11134
  return {
11113
11135
  type: this.t,
11114
11136
  value: this.toString(),
@@ -11141,8 +11163,8 @@ sm.prototype = {
11141
11163
  };
11142
11164
  }
11143
11165
  };
11144
- function cm(e, t) {
11145
- class n extends sm {
11166
+ function lm(e, t) {
11167
+ class n extends cm {
11146
11168
  constructor(t, n) {
11147
11169
  super(t, n), this.t = e;
11148
11170
  }
@@ -11150,138 +11172,138 @@ function cm(e, t) {
11150
11172
  for (let e in t) n.prototype[e] = t[e];
11151
11173
  return n.t = e, n;
11152
11174
  }
11153
- var lm = cm("email", {
11175
+ var um = lm("email", {
11154
11176
  isLink: !0,
11155
11177
  toHref() {
11156
11178
  return "mailto:" + this.toString();
11157
11179
  }
11158
- }), um = cm("text"), dm = cm("nl"), fm = cm("url", {
11180
+ }), dm = lm("text"), fm = lm("nl"), pm = lm("url", {
11159
11181
  isLink: !0,
11160
- toHref(e = im.defaultProtocol) {
11182
+ toHref(e = am.defaultProtocol) {
11161
11183
  return this.hasProtocol() ? this.v : `${e}://${this.v}`;
11162
11184
  },
11163
11185
  hasProtocol() {
11164
11186
  let e = this.tk;
11165
- return e.length >= 2 && e[0].t !== Uf && e[1].t === bp;
11187
+ return e.length >= 2 && e[0].t !== Wf && e[1].t === xp;
11166
11188
  }
11167
- }), pm = (e) => new q(e);
11168
- function mm({ groups: e }) {
11189
+ }), mm = (e) => new q(e);
11190
+ function hm({ groups: e }) {
11169
11191
  let t = e.domain.concat([
11170
- pp,
11171
- hp,
11192
+ mp,
11172
11193
  gp,
11173
11194
  _p,
11174
11195
  vp,
11175
11196
  yp,
11176
- Sp,
11177
- wp,
11178
- Ep,
11179
- Jf,
11197
+ bp,
11198
+ Cp,
11199
+ Tp,
11180
11200
  Dp,
11201
+ Yf,
11181
11202
  Op,
11182
11203
  kp,
11183
11204
  Ap,
11184
- Fp,
11185
- zp,
11205
+ jp,
11186
11206
  Ip,
11187
- Lp
11207
+ Bp,
11208
+ Lp,
11209
+ Rp
11188
11210
  ]), n = [
11189
- mp,
11190
- bp,
11211
+ hp,
11191
11212
  xp,
11192
- Cp,
11193
- Tp,
11194
- Dp,
11195
- jp,
11213
+ Sp,
11214
+ wp,
11215
+ Ep,
11216
+ Op,
11196
11217
  Mp,
11197
- Pp,
11198
- rp,
11218
+ Np,
11219
+ Fp,
11199
11220
  ip,
11200
- Zf,
11221
+ ap,
11201
11222
  Qf,
11202
- ep,
11203
11223
  $f,
11204
11224
  tp,
11225
+ ep,
11205
11226
  np,
11206
- ap,
11227
+ rp,
11207
11228
  op,
11208
11229
  sp,
11209
11230
  cp,
11210
11231
  lp,
11211
11232
  up,
11212
11233
  dp,
11213
- fp
11234
+ fp,
11235
+ pp
11214
11236
  ], r = [
11215
- pp,
11216
11237
  mp,
11217
11238
  hp,
11218
- _p,
11239
+ gp,
11219
11240
  vp,
11220
11241
  yp,
11221
- Sp,
11222
- wp,
11223
- Ep,
11224
- Zf,
11225
- Qf,
11242
+ bp,
11243
+ Cp,
11244
+ Tp,
11226
11245
  Dp,
11246
+ Qf,
11247
+ $f,
11227
11248
  Op,
11228
11249
  kp,
11229
11250
  Ap,
11230
11251
  jp,
11231
- Fp,
11232
- zp,
11252
+ Mp,
11233
11253
  Ip,
11234
- Lp
11235
- ], i = pm(), a = X(i, Ip);
11254
+ Bp,
11255
+ Lp,
11256
+ Rp
11257
+ ], i = mm(), a = X(i, Lp);
11236
11258
  J(a, r, a), J(a, e.domain, a);
11237
- let o = pm(), s = pm(), c = pm();
11259
+ let o = mm(), s = mm(), c = mm();
11238
11260
  J(i, e.domain, o), J(i, e.scheme, s), J(i, e.slashscheme, c), J(o, r, a), J(o, e.domain, o);
11239
- let l = X(o, gp);
11240
- X(a, gp, l), X(s, gp, l), X(c, gp, l);
11241
- let u = X(a, Cp);
11261
+ let l = X(o, _p);
11262
+ X(a, _p, l), X(s, _p, l), X(c, _p, l);
11263
+ let u = X(a, wp);
11242
11264
  J(u, r, a), J(u, e.domain, a);
11243
- let d = pm();
11265
+ let d = mm();
11244
11266
  J(l, e.domain, d), J(d, e.domain, d);
11245
- let f = X(d, Cp);
11267
+ let f = X(d, wp);
11246
11268
  J(f, e.domain, d);
11247
- let p = pm(lm);
11248
- J(f, e.tld, p), J(f, e.utld, p), X(l, Uf, p);
11249
- let m = X(d, Ep);
11250
- X(m, Ep, m), J(m, e.domain, d), J(p, e.domain, d), X(p, Cp, f), X(p, Ep, m), J(X(p, bp), e.numeric, lm);
11251
- let h = X(o, Ep), g = X(o, Cp);
11252
- X(h, Ep, h), J(h, e.domain, o), J(g, r, a), J(g, e.domain, o);
11253
- let _ = pm(fm);
11254
- J(g, e.tld, _), J(g, e.utld, _), J(_, e.domain, o), J(_, r, a), X(_, Cp, g), X(_, Ep, h), X(_, gp, l);
11255
- let ee = X(_, bp), v = pm(fm);
11269
+ let p = mm(um);
11270
+ J(f, e.tld, p), J(f, e.utld, p), X(l, Wf, p);
11271
+ let m = X(d, Dp);
11272
+ X(m, Dp, m), J(m, e.domain, d), J(p, e.domain, d), X(p, wp, f), X(p, Dp, m), J(X(p, xp), e.numeric, um);
11273
+ let h = X(o, Dp), g = X(o, wp);
11274
+ X(h, Dp, h), J(h, e.domain, o), J(g, r, a), J(g, e.domain, o);
11275
+ let _ = mm(pm);
11276
+ J(g, e.tld, _), J(g, e.utld, _), J(_, e.domain, o), J(_, r, a), X(_, wp, g), X(_, Dp, h), X(_, _p, l);
11277
+ let ee = X(_, xp), v = mm(pm);
11256
11278
  J(ee, e.numeric, v);
11257
- let y = pm(fm), b = pm();
11258
- J(y, t, y), J(y, n, b), J(b, t, y), J(b, n, b), X(_, Fp, y), X(v, Fp, y);
11259
- let te = X(s, bp), x = X(X(X(c, bp), Fp), Fp);
11260
- J(s, e.domain, o), X(s, Cp, g), X(s, Ep, h), J(c, e.domain, o), X(c, Cp, g), X(c, Ep, h), J(te, e.domain, y), X(te, Fp, y), X(te, jp, y), J(x, e.domain, y), J(x, t, y), X(x, Fp, y);
11279
+ let y = mm(pm), b = mm();
11280
+ J(y, t, y), J(y, n, b), J(b, t, y), J(b, n, b), X(_, Ip, y), X(v, Ip, y);
11281
+ let te = X(s, xp), x = X(X(X(c, xp), Ip), Ip);
11282
+ J(s, e.domain, o), X(s, wp, g), X(s, Dp, h), J(c, e.domain, o), X(c, wp, g), X(c, Dp, h), J(te, e.domain, y), X(te, Ip, y), X(te, Mp, y), J(x, e.domain, y), J(x, t, y), X(x, Ip, y);
11261
11283
  let ne = [
11262
- [Zf, Qf],
11263
- [$f, ep],
11264
- [tp, np],
11265
- [rp, ip],
11266
- [ap, op],
11267
- [sp, cp],
11268
- [lp, up],
11269
- [dp, fp]
11284
+ [Qf, $f],
11285
+ [ep, tp],
11286
+ [np, rp],
11287
+ [ip, ap],
11288
+ [op, sp],
11289
+ [cp, lp],
11290
+ [up, dp],
11291
+ [fp, pp]
11270
11292
  ];
11271
11293
  for (let e = 0; e < ne.length; e++) {
11272
11294
  let [r, i] = ne[e], a = X(y, r);
11273
11295
  X(b, r, a), X(a, i, y);
11274
- let o = pm(fm);
11296
+ let o = mm(pm);
11275
11297
  J(a, t, o);
11276
- let s = pm();
11298
+ let s = mm();
11277
11299
  J(a, n), J(o, t, o), J(o, n, s), J(s, t, o), J(s, n, s), X(o, i, y), X(s, i, y);
11278
11300
  }
11279
- return X(i, Uf, _), X(i, Xf, dm), {
11301
+ return X(i, Wf, _), X(i, Zf, fm), {
11280
11302
  start: i,
11281
- tokens: Bp
11303
+ tokens: Vp
11282
11304
  };
11283
11305
  }
11284
- function hm(e, t, n) {
11306
+ function gm(e, t, n) {
11285
11307
  let r = n.length, i = 0, a = [], o = [];
11286
11308
  for (; i < r;) {
11287
11309
  let s = e, c = null, l = null, u = 0, d = null, f = -1;
@@ -11289,18 +11311,18 @@ function hm(e, t, n) {
11289
11311
  for (; i < r && (l = c || s.go(n[i].t));) c = null, s = l, s.accepts() ? (f = 0, d = s) : f >= 0 && f++, i++, u++;
11290
11312
  if (f < 0) i -= u, i < r && (o.push(n[i]), i++);
11291
11313
  else {
11292
- o.length > 0 && (a.push(gm(um, t, o)), o = []), i -= f, u -= f;
11314
+ o.length > 0 && (a.push(_m(dm, t, o)), o = []), i -= f, u -= f;
11293
11315
  let e = d.t, r = n.slice(i - u, i);
11294
- a.push(gm(e, t, r));
11316
+ a.push(_m(e, t, r));
11295
11317
  }
11296
11318
  }
11297
- return o.length > 0 && a.push(gm(um, t, o)), a;
11319
+ return o.length > 0 && a.push(_m(dm, t, o)), a;
11298
11320
  }
11299
- function gm(e, t, n) {
11321
+ function _m(e, t, n) {
11300
11322
  let r = n[0].s, i = n[n.length - 1].e;
11301
11323
  return new e(t.slice(r, i), n);
11302
11324
  }
11303
- var _m = typeof console < "u" && console && console.warn || (() => {}), vm = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Z = {
11325
+ var vm = typeof console < "u" && console && console.warn || (() => {}), ym = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Z = {
11304
11326
  scanner: null,
11305
11327
  parser: null,
11306
11328
  tokenQueue: [],
@@ -11308,33 +11330,33 @@ var _m = typeof console < "u" && console && console.warn || (() => {}), vm = "un
11308
11330
  customSchemes: [],
11309
11331
  initialized: !1
11310
11332
  };
11311
- function ym() {
11333
+ function bm() {
11312
11334
  return q.groups = {}, Z.scanner = null, Z.parser = null, Z.tokenQueue = [], Z.pluginQueue = [], Z.customSchemes = [], Z.initialized = !1, Z;
11313
11335
  }
11314
- function bm(e, t = !1) {
11315
- if (Z.initialized && _m(`linkifyjs: already initialized - will not register custom scheme "${e}" ${vm}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
11336
+ function xm(e, t = !1) {
11337
+ if (Z.initialized && vm(`linkifyjs: already initialized - will not register custom scheme "${e}" ${ym}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
11316
11338
  Z.customSchemes.push([e, t]);
11317
11339
  }
11318
- function xm() {
11319
- Z.scanner = $p(Z.customSchemes);
11340
+ function Sm() {
11341
+ Z.scanner = em(Z.customSchemes);
11320
11342
  for (let e = 0; e < Z.tokenQueue.length; e++) Z.tokenQueue[e][1]({ scanner: Z.scanner });
11321
- Z.parser = mm(Z.scanner.tokens);
11343
+ Z.parser = hm(Z.scanner.tokens);
11322
11344
  for (let e = 0; e < Z.pluginQueue.length; e++) Z.pluginQueue[e][1]({
11323
11345
  scanner: Z.scanner,
11324
11346
  parser: Z.parser
11325
11347
  });
11326
11348
  return Z.initialized = !0, Z;
11327
11349
  }
11328
- function Sm(e) {
11329
- return Z.initialized || xm(), hm(Z.parser.start, e, em(Z.scanner.start, e));
11350
+ function Cm(e) {
11351
+ return Z.initialized || Sm(), gm(Z.parser.start, e, tm(Z.scanner.start, e));
11330
11352
  }
11331
- Sm.scan = em;
11332
- function Cm(e, t = null, n = null) {
11353
+ Cm.scan = tm;
11354
+ function wm(e, t = null, n = null) {
11333
11355
  if (t && typeof t == "object") {
11334
11356
  if (n) throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);
11335
11357
  n = t, t = null;
11336
11358
  }
11337
- let r = new am(n), i = Sm(e), a = [];
11359
+ let r = new om(n), i = Cm(e), a = [];
11338
11360
  for (let e = 0; e < i.length; e++) {
11339
11361
  let n = i[e];
11340
11362
  n.isLink && (!t || n.t === t) && r.check(n) && a.push(n.toFormattedObject(r));
@@ -11343,11 +11365,11 @@ function Cm(e, t = null, n = null) {
11343
11365
  }
11344
11366
  //#endregion
11345
11367
  //#region ../../node_modules/@tiptap/extension-link/dist/index.js
11346
- var wm = "[\0- \xA0 ᠎ -\u2029  ]", Tm = new RegExp(wm), Em = RegExp(`${wm}$`), Dm = new RegExp(wm, "g");
11347
- function Om(e) {
11368
+ var Tm = "[\0- \xA0 ᠎ -\u2029  ]", Em = new RegExp(Tm), Dm = RegExp(`${Tm}$`), Om = new RegExp(Tm, "g");
11369
+ function km(e) {
11348
11370
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
11349
11371
  }
11350
- function km(e) {
11372
+ function Am(e) {
11351
11373
  return new j({
11352
11374
  key: new M("autolink"),
11353
11375
  appendTransaction: (t, n, r) => {
@@ -11359,16 +11381,16 @@ function km(e) {
11359
11381
  if (n.length > 1) i = n[0], a = r.doc.textBetween(i.pos, i.pos + i.node.nodeSize, void 0, " ");
11360
11382
  else if (n.length) {
11361
11383
  let e = r.doc.textBetween(t.from, t.to, " ", " ");
11362
- if (!Em.test(e)) return;
11384
+ if (!Dm.test(e)) return;
11363
11385
  i = n[0], a = r.doc.textBetween(i.pos, t.to, void 0, " ");
11364
11386
  }
11365
11387
  if (i && a) {
11366
- let t = a.split(Tm).filter(Boolean);
11388
+ let t = a.split(Em).filter(Boolean);
11367
11389
  if (t.length <= 0) return !1;
11368
11390
  let n = t[t.length - 1], s = i.pos + a.lastIndexOf(n);
11369
11391
  if (!n) return !1;
11370
- let c = Sm(n).map((t) => t.toObject(e.defaultProtocol));
11371
- if (!Om(c)) return !1;
11392
+ let c = Cm(n).map((t) => t.toObject(e.defaultProtocol));
11393
+ if (!km(c)) return !1;
11372
11394
  c.filter((e) => e.isLink).map((e) => ({
11373
11395
  ...e,
11374
11396
  from: s + e.start + 1,
@@ -11381,7 +11403,7 @@ function km(e) {
11381
11403
  }
11382
11404
  });
11383
11405
  }
11384
- function Am(e) {
11406
+ function jm(e) {
11385
11407
  return new j({
11386
11408
  key: new M("handleClickLink"),
11387
11409
  props: { handleClick: (t, n, r) => {
@@ -11404,7 +11426,7 @@ function Am(e) {
11404
11426
  } }
11405
11427
  });
11406
11428
  }
11407
- function jm(e) {
11429
+ function Mm(e) {
11408
11430
  return new j({
11409
11431
  key: new M("handlePasteLink"),
11410
11432
  props: { handlePaste: (t, n, r) => {
@@ -11414,12 +11436,12 @@ function jm(e) {
11414
11436
  r.content.forEach((e) => {
11415
11437
  c += e.textContent;
11416
11438
  });
11417
- let l = Cm(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
11439
+ let l = wm(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
11418
11440
  return !c || !l || i !== void 0 && !i(l.value) ? !1 : e.editor.commands.setMark(e.type, { href: l.href });
11419
11441
  } }
11420
11442
  });
11421
11443
  }
11422
- function Mm(e, t) {
11444
+ function Nm(e, t) {
11423
11445
  let n = [
11424
11446
  "http",
11425
11447
  "https",
@@ -11435,9 +11457,9 @@ function Mm(e, t) {
11435
11457
  return t && t.forEach((e) => {
11436
11458
  let t = typeof e == "string" ? e : e.scheme;
11437
11459
  t && n.push(t);
11438
- }), !e || e.replace(Dm, "").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`, "i"));
11460
+ }), !e || e.replace(Om, "").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`, "i"));
11439
11461
  }
11440
- var Nm = sd.create({
11462
+ var Pm = cd.create({
11441
11463
  name: "link",
11442
11464
  priority: 1e3,
11443
11465
  keepOnSplit: !1,
@@ -11445,14 +11467,14 @@ var Nm = sd.create({
11445
11467
  onCreate() {
11446
11468
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((e) => {
11447
11469
  if (typeof e == "string") {
11448
- bm(e);
11470
+ xm(e);
11449
11471
  return;
11450
11472
  }
11451
- bm(e.scheme, e.optionalSlashes);
11473
+ xm(e.scheme, e.optionalSlashes);
11452
11474
  });
11453
11475
  },
11454
11476
  onDestroy() {
11455
- ym();
11477
+ bm();
11456
11478
  },
11457
11479
  inclusive() {
11458
11480
  return this.options.autolink;
@@ -11470,7 +11492,7 @@ var Nm = sd.create({
11470
11492
  rel: "noopener noreferrer nofollow",
11471
11493
  class: null
11472
11494
  },
11473
- isAllowedUri: (e, t) => !!Mm(e, t.protocols),
11495
+ isAllowedUri: (e, t) => !!Nm(e, t.protocols),
11474
11496
  validate: (e) => !!e,
11475
11497
  shouldAutoLink: (e) => {
11476
11498
  let t = /^[a-z][a-z0-9+.-]*:\/\//i.test(e), n = /^[a-z][a-z0-9+.-]*:/i.test(e);
@@ -11500,7 +11522,7 @@ var Nm = sd.create({
11500
11522
  getAttrs: (e) => {
11501
11523
  let t = e.getAttribute("href");
11502
11524
  return !t || !this.options.isAllowedUri(t, {
11503
- defaultValidate: (e) => !!Mm(e, this.options.protocols),
11525
+ defaultValidate: (e) => !!Nm(e, this.options.protocols),
11504
11526
  protocols: this.options.protocols,
11505
11527
  defaultProtocol: this.options.defaultProtocol
11506
11528
  }) ? !1 : null;
@@ -11509,7 +11531,7 @@ var Nm = sd.create({
11509
11531
  },
11510
11532
  renderHTML({ HTMLAttributes: e }) {
11511
11533
  return this.options.isAllowedUri(e.href, {
11512
- defaultValidate: (e) => !!Mm(e, this.options.protocols),
11534
+ defaultValidate: (e) => !!Nm(e, this.options.protocols),
11513
11535
  protocols: this.options.protocols,
11514
11536
  defaultProtocol: this.options.defaultProtocol
11515
11537
  }) ? [
@@ -11539,7 +11561,7 @@ var Nm = sd.create({
11539
11561
  setLink: (e) => ({ chain: t }) => {
11540
11562
  let { href: n } = e;
11541
11563
  return this.options.isAllowedUri(n, {
11542
- defaultValidate: (e) => !!Mm(e, this.options.protocols),
11564
+ defaultValidate: (e) => !!Nm(e, this.options.protocols),
11543
11565
  protocols: this.options.protocols,
11544
11566
  defaultProtocol: this.options.defaultProtocol
11545
11567
  }) ? t().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -11547,7 +11569,7 @@ var Nm = sd.create({
11547
11569
  toggleLink: (e) => ({ chain: t }) => {
11548
11570
  let { href: n } = e || {};
11549
11571
  return n && !this.options.isAllowedUri(n, {
11550
- defaultValidate: (e) => !!Mm(e, this.options.protocols),
11572
+ defaultValidate: (e) => !!Nm(e, this.options.protocols),
11551
11573
  protocols: this.options.protocols,
11552
11574
  defaultProtocol: this.options.defaultProtocol
11553
11575
  }) ? !1 : t().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run();
@@ -11556,12 +11578,12 @@ var Nm = sd.create({
11556
11578
  };
11557
11579
  },
11558
11580
  addPasteRules() {
11559
- return [qd({
11581
+ return [Jd({
11560
11582
  find: (e) => {
11561
11583
  let t = [];
11562
11584
  if (e) {
11563
- let { protocols: n, defaultProtocol: r } = this.options, i = Cm(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
11564
- defaultValidate: (e) => !!Mm(e, n),
11585
+ let { protocols: n, defaultProtocol: r } = this.options, i = wm(e).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
11586
+ defaultValidate: (e) => !!Nm(e, n),
11565
11587
  protocols: n,
11566
11588
  defaultProtocol: r
11567
11589
  }));
@@ -11581,33 +11603,33 @@ var Nm = sd.create({
11581
11603
  },
11582
11604
  addProseMirrorPlugins() {
11583
11605
  let e = [], { protocols: t, defaultProtocol: n } = this.options;
11584
- return this.options.autolink && e.push(km({
11606
+ return this.options.autolink && e.push(Am({
11585
11607
  type: this.type,
11586
11608
  defaultProtocol: this.options.defaultProtocol,
11587
11609
  validate: (e) => this.options.isAllowedUri(e, {
11588
- defaultValidate: (e) => !!Mm(e, t),
11610
+ defaultValidate: (e) => !!Nm(e, t),
11589
11611
  protocols: t,
11590
11612
  defaultProtocol: n
11591
11613
  }),
11592
11614
  shouldAutoLink: this.options.shouldAutoLink
11593
- })), e.push(Am({
11615
+ })), e.push(jm({
11594
11616
  type: this.type,
11595
11617
  editor: this.editor,
11596
11618
  openOnClick: this.options.openOnClick === "whenNotEditable" ? !0 : this.options.openOnClick,
11597
11619
  enableClickSelection: this.options.enableClickSelection
11598
- })), this.options.linkOnPaste && e.push(jm({
11620
+ })), this.options.linkOnPaste && e.push(Mm({
11599
11621
  editor: this.editor,
11600
11622
  defaultProtocol: this.options.defaultProtocol,
11601
11623
  type: this.type,
11602
11624
  shouldAutoLink: this.options.shouldAutoLink
11603
11625
  })), e;
11604
11626
  }
11605
- }), Pm = Object.defineProperty, Fm = (e, t) => {
11606
- for (var n in t) Pm(e, n, {
11627
+ }), Fm = Object.defineProperty, Im = (e, t) => {
11628
+ for (var n in t) Fm(e, n, {
11607
11629
  get: t[n],
11608
11630
  enumerable: !0
11609
11631
  });
11610
- }, Im = "listItem", Lm = "textStyle", Rm = /^\s*([-+*])\s$/, zm = Kd.create({
11632
+ }, Lm = "listItem", Rm = "textStyle", zm = /^\s*([-+*])\s$/, Bm = qd.create({
11611
11633
  name: "bulletList",
11612
11634
  addOptions() {
11613
11635
  return {
@@ -11639,26 +11661,26 @@ var Nm = sd.create({
11639
11661
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
11640
11662
  markdownOptions: { indentsContent: !0 },
11641
11663
  addCommands() {
11642
- return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Im, this.editor.getAttributes(Lm)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
11664
+ return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Lm, this.editor.getAttributes(Rm)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
11643
11665
  },
11644
11666
  addKeyboardShortcuts() {
11645
11667
  return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
11646
11668
  },
11647
11669
  addInputRules() {
11648
- let e = Pd({
11649
- find: Rm,
11670
+ let e = Fd({
11671
+ find: zm,
11650
11672
  type: this.type
11651
11673
  });
11652
- return (this.options.keepMarks || this.options.keepAttributes) && (e = Pd({
11653
- find: Rm,
11674
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = Fd({
11675
+ find: zm,
11654
11676
  type: this.type,
11655
11677
  keepMarks: this.options.keepMarks,
11656
11678
  keepAttributes: this.options.keepAttributes,
11657
- getAttributes: () => this.editor.getAttributes(Lm),
11679
+ getAttributes: () => this.editor.getAttributes(Rm),
11658
11680
  editor: this.editor
11659
11681
  })), [e];
11660
11682
  }
11661
- }), Bm = Kd.create({
11683
+ }), Vm = qd.create({
11662
11684
  name: "listItem",
11663
11685
  addOptions() {
11664
11686
  return {
@@ -11704,7 +11726,7 @@ var Nm = sd.create({
11704
11726
  content: r
11705
11727
  };
11706
11728
  },
11707
- renderMarkdown: (e, t, n) => Wd(e, t, (e) => e.parentType === "bulletList" ? "- " : e.parentType === "orderedList" ? `${(e.meta?.parentAttrs?.start || 1) + e.index}. ` : "- ", n),
11729
+ renderMarkdown: (e, t, n) => Gd(e, t, (e) => e.parentType === "bulletList" ? "- " : e.parentType === "orderedList" ? `${(e.meta?.parentAttrs?.start || 1) + e.index}. ` : "- ", n),
11708
11730
  addKeyboardShortcuts() {
11709
11731
  return {
11710
11732
  Enter: () => this.editor.commands.splitListItem(this.name),
@@ -11713,46 +11735,46 @@ var Nm = sd.create({
11713
11735
  };
11714
11736
  }
11715
11737
  });
11716
- Fm({}, {
11717
- findListItemPos: () => Vm,
11718
- getNextListDepth: () => Hm,
11719
- handleBackspace: () => Km,
11720
- handleDelete: () => Ym,
11721
- hasListBefore: () => Um,
11722
- hasListItemAfter: () => Xm,
11723
- hasListItemBefore: () => Wm,
11724
- listItemHasSubList: () => Gm,
11725
- nextListIsDeeper: () => qm,
11726
- nextListIsHigher: () => Jm
11738
+ Im({}, {
11739
+ findListItemPos: () => Hm,
11740
+ getNextListDepth: () => Um,
11741
+ handleBackspace: () => qm,
11742
+ handleDelete: () => Xm,
11743
+ hasListBefore: () => Wm,
11744
+ hasListItemAfter: () => Zm,
11745
+ hasListItemBefore: () => Gm,
11746
+ listItemHasSubList: () => Km,
11747
+ nextListIsDeeper: () => Jm,
11748
+ nextListIsHigher: () => Ym
11727
11749
  });
11728
- var Vm = (e, t) => {
11750
+ var Hm = (e, t) => {
11729
11751
  let { $from: n } = t.selection, r = H(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
11730
11752
  for (; a > 0 && s === null;) i = n.node(a), i.type === r ? s = a : (--a, --o);
11731
11753
  return s === null ? null : {
11732
11754
  $pos: t.doc.resolve(o),
11733
11755
  depth: s
11734
11756
  };
11735
- }, Hm = (e, t) => {
11736
- let n = Vm(e, t);
11757
+ }, Um = (e, t) => {
11758
+ let n = Hm(e, t);
11737
11759
  if (!n) return !1;
11738
11760
  let [, r] = pu(t, e, n.$pos.pos + 4);
11739
11761
  return r;
11740
- }, Um = (e, t, n) => {
11762
+ }, Wm = (e, t, n) => {
11741
11763
  let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
11742
11764
  return !(!a || !n.includes(a.type.name));
11743
- }, Wm = (e, t) => {
11765
+ }, Gm = (e, t) => {
11744
11766
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - 2);
11745
11767
  return !(r.index() === 0 || r.nodeBefore?.type.name !== e);
11746
- }, Gm = (e, t, n) => {
11768
+ }, Km = (e, t, n) => {
11747
11769
  if (!n) return !1;
11748
11770
  let r = H(e, t.schema), i = !1;
11749
11771
  return n.descendants((e) => {
11750
11772
  e.type === r && (i = !0);
11751
11773
  }), i;
11752
- }, Km = (e, t, n) => {
11774
+ }, qm = (e, t, n) => {
11753
11775
  if (e.commands.undoInputRule()) return !0;
11754
11776
  if (e.state.selection.from !== e.state.selection.to) return !1;
11755
- if (!vl(e.state, t) && Um(e.state, t, n)) {
11777
+ if (!vl(e.state, t) && Wm(e.state, t, n)) {
11756
11778
  let { $anchor: n } = e.state.selection, r = e.state.doc.resolve(n.before() - 1), i = [];
11757
11779
  r.node().descendants((e, n) => {
11758
11780
  e.type.name === t && i.push({
@@ -11769,24 +11791,24 @@ var Vm = (e, t) => {
11769
11791
  }, o.end()).joinForward().run();
11770
11792
  }
11771
11793
  if (!vl(e.state, t) || !bu(e.state)) return !1;
11772
- let r = Vm(t, e.state);
11794
+ let r = Hm(t, e.state);
11773
11795
  if (!r) return !1;
11774
- let i = e.state.doc.resolve(r.$pos.pos - 2).node(r.depth), a = Gm(t, e.state, i);
11775
- return Wm(t, e.state) && !a ? e.commands.joinItemBackward() : e.chain().liftListItem(t).run();
11776
- }, qm = (e, t) => {
11777
- let n = Hm(e, t), r = Vm(e, t);
11778
- return !r || !n ? !1 : n > r.depth;
11796
+ let i = e.state.doc.resolve(r.$pos.pos - 2).node(r.depth), a = Km(t, e.state, i);
11797
+ return Gm(t, e.state) && !a ? e.commands.joinItemBackward() : e.chain().liftListItem(t).run();
11779
11798
  }, Jm = (e, t) => {
11780
- let n = Hm(e, t), r = Vm(e, t);
11781
- return !r || !n ? !1 : n < r.depth;
11799
+ let n = Um(e, t), r = Hm(e, t);
11800
+ return !r || !n ? !1 : n > r.depth;
11782
11801
  }, Ym = (e, t) => {
11802
+ let n = Um(e, t), r = Hm(e, t);
11803
+ return !r || !n ? !1 : n < r.depth;
11804
+ }, Xm = (e, t) => {
11783
11805
  if (!vl(e.state, t) || !yu(e.state, t)) return !1;
11784
11806
  let { selection: n } = e.state, { $from: r, $to: i } = n;
11785
- return !n.empty && r.sameParent(i) ? !1 : qm(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Jm(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
11786
- }, Xm = (e, t) => {
11807
+ return !n.empty && r.sameParent(i) ? !1 : Jm(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : Ym(t, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
11808
+ }, Zm = (e, t) => {
11787
11809
  let { $anchor: n } = t.selection, r = t.doc.resolve(n.pos - n.parentOffset - 2);
11788
11810
  return !(r.index() === r.parent.childCount - 1 || r.nodeAfter?.type.name !== e);
11789
- }, Zm = K.create({
11811
+ }, Qm = K.create({
11790
11812
  name: "listKeymap",
11791
11813
  addOptions() {
11792
11814
  return { listTypes: [{
@@ -11802,41 +11824,41 @@ var Vm = (e, t) => {
11802
11824
  Delete: ({ editor: e }) => {
11803
11825
  let t = !1;
11804
11826
  return this.options.listTypes.forEach(({ itemName: n }) => {
11805
- e.state.schema.nodes[n] !== void 0 && Ym(e, n) && (t = !0);
11827
+ e.state.schema.nodes[n] !== void 0 && Xm(e, n) && (t = !0);
11806
11828
  }), t;
11807
11829
  },
11808
11830
  "Mod-Delete": ({ editor: e }) => {
11809
11831
  let t = !1;
11810
11832
  return this.options.listTypes.forEach(({ itemName: n }) => {
11811
- e.state.schema.nodes[n] !== void 0 && Ym(e, n) && (t = !0);
11833
+ e.state.schema.nodes[n] !== void 0 && Xm(e, n) && (t = !0);
11812
11834
  }), t;
11813
11835
  },
11814
11836
  Backspace: ({ editor: e }) => {
11815
11837
  let t = !1;
11816
11838
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
11817
- e.state.schema.nodes[n] !== void 0 && Km(e, n, r) && (t = !0);
11839
+ e.state.schema.nodes[n] !== void 0 && qm(e, n, r) && (t = !0);
11818
11840
  }), t;
11819
11841
  },
11820
11842
  "Mod-Backspace": ({ editor: e }) => {
11821
11843
  let t = !1;
11822
11844
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
11823
- e.state.schema.nodes[n] !== void 0 && Km(e, n, r) && (t = !0);
11845
+ e.state.schema.nodes[n] !== void 0 && qm(e, n, r) && (t = !0);
11824
11846
  }), t;
11825
11847
  }
11826
11848
  };
11827
11849
  }
11828
- }), Qm = /^(\s*)(\d+)\.\s+(.*)$/, $m = /^\s/;
11829
- function eh(e) {
11850
+ }), $m = /^(\s*)(\d+)\.\s+(.*)$/, eh = /^\s/;
11851
+ function th(e) {
11830
11852
  let t = [], n = 0, r = 0;
11831
11853
  for (; n < e.length;) {
11832
- let i = e[n], a = i.match(Qm);
11854
+ let i = e[n], a = i.match($m);
11833
11855
  if (!a) break;
11834
11856
  let [, o, s, c] = a, l = o.length, u = c, d = n + 1, f = [i];
11835
11857
  for (; d < e.length;) {
11836
11858
  let t = e[d];
11837
- if (t.match(Qm)) break;
11859
+ if (t.match($m)) break;
11838
11860
  if (t.trim() === "") f.push(t), u += "\n", d += 1;
11839
- else if (t.match($m)) f.push(t), u += `
11861
+ else if (t.match(eh)) f.push(t), u += `
11840
11862
  ${t.slice(l + 2)}`, d += 1;
11841
11863
  else break;
11842
11864
  }
@@ -11849,7 +11871,7 @@ ${t.slice(l + 2)}`, d += 1;
11849
11871
  }
11850
11872
  return [t, r];
11851
11873
  }
11852
- function th(e, t, n) {
11874
+ function nh(e, t, n) {
11853
11875
  let r = [], i = 0;
11854
11876
  for (; i < e.length;) {
11855
11877
  let a = e[i];
@@ -11868,7 +11890,7 @@ function th(e, t, n) {
11868
11890
  let u = i + 1, d = [];
11869
11891
  for (; u < e.length && e[u].indent > t;) d.push(e[u]), u += 1;
11870
11892
  if (d.length > 0) {
11871
- let e = th(d, Math.min(...d.map((e) => e.indent)), n);
11893
+ let e = nh(d, Math.min(...d.map((e) => e.indent)), n);
11872
11894
  c.push({
11873
11895
  type: "list",
11874
11896
  ordered: !0,
@@ -11886,7 +11908,7 @@ function th(e, t, n) {
11886
11908
  }
11887
11909
  return r;
11888
11910
  }
11889
- function nh(e, t) {
11911
+ function rh(e, t) {
11890
11912
  return e.map((e) => {
11891
11913
  if (e.type !== "list_item") return t.parseChildren([e])[0];
11892
11914
  let n = [];
@@ -11908,7 +11930,7 @@ function nh(e, t) {
11908
11930
  };
11909
11931
  });
11910
11932
  }
11911
- var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
11933
+ var ih = "listItem", ah = "textStyle", oh = /^(\d+)\.\s$/, sh = qd.create({
11912
11934
  name: "orderedList",
11913
11935
  addOptions() {
11914
11936
  return {
@@ -11952,7 +11974,7 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
11952
11974
  markdownTokenName: "list",
11953
11975
  parseMarkdown: (e, t) => {
11954
11976
  if (e.type !== "list" || !e.ordered) return [];
11955
- let n = e.start || 1, r = e.items ? nh(e.items, t) : [];
11977
+ let n = e.start || 1, r = e.items ? rh(e.items, t) : [];
11956
11978
  return n === 1 ? {
11957
11979
  type: "orderedList",
11958
11980
  content: r
@@ -11971,9 +11993,9 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
11971
11993
  return t === void 0 ? -1 : t;
11972
11994
  },
11973
11995
  tokenize: (e, t, n) => {
11974
- let r = e.split("\n"), [i, a] = eh(r);
11996
+ let r = e.split("\n"), [i, a] = th(r);
11975
11997
  if (i.length === 0) return;
11976
- let o = th(i, 0, n);
11998
+ let o = nh(i, 0, n);
11977
11999
  if (o.length !== 0) return {
11978
12000
  type: "list",
11979
12001
  ordered: !0,
@@ -11985,32 +12007,32 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
11985
12007
  },
11986
12008
  markdownOptions: { indentsContent: !0 },
11987
12009
  addCommands() {
11988
- return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(rh, this.editor.getAttributes(ih)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
12010
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ih, this.editor.getAttributes(ah)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
11989
12011
  },
11990
12012
  addKeyboardShortcuts() {
11991
12013
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
11992
12014
  },
11993
12015
  addInputRules() {
11994
- let e = Pd({
11995
- find: ah,
12016
+ let e = Fd({
12017
+ find: oh,
11996
12018
  type: this.type,
11997
12019
  getAttributes: (e) => ({ start: +e[1] }),
11998
12020
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
11999
12021
  });
12000
- return (this.options.keepMarks || this.options.keepAttributes) && (e = Pd({
12001
- find: ah,
12022
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = Fd({
12023
+ find: oh,
12002
12024
  type: this.type,
12003
12025
  keepMarks: this.options.keepMarks,
12004
12026
  keepAttributes: this.options.keepAttributes,
12005
12027
  getAttributes: (e) => ({
12006
12028
  start: +e[1],
12007
- ...this.editor.getAttributes(ih)
12029
+ ...this.editor.getAttributes(ah)
12008
12030
  }),
12009
12031
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
12010
12032
  editor: this.editor
12011
12033
  })), [e];
12012
12034
  }
12013
- }), sh = /^\s*(\[([( |x])?\])\s$/, ch = Kd.create({
12035
+ }), ch = /^\s*(\[([( |x])?\])\s$/, lh = qd.create({
12014
12036
  name: "taskItem",
12015
12037
  addOptions() {
12016
12038
  return {
@@ -12064,7 +12086,7 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
12064
12086
  }
12065
12087
  return t.createNode("taskItem", { checked: e.checked || !1 }, n);
12066
12088
  },
12067
- renderMarkdown: (e, t) => Wd(e, t, `- [${e.attrs?.checked ? "x" : " "}] `),
12089
+ renderMarkdown: (e, t) => Gd(e, t, `- [${e.attrs?.checked ? "x" : " "}] `),
12068
12090
  addKeyboardShortcuts() {
12069
12091
  let e = {
12070
12092
  Enter: () => this.editor.commands.splitListItem(this.name),
@@ -12119,13 +12141,13 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
12119
12141
  };
12120
12142
  },
12121
12143
  addInputRules() {
12122
- return [Pd({
12123
- find: sh,
12144
+ return [Fd({
12145
+ find: ch,
12124
12146
  type: this.type,
12125
12147
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
12126
12148
  })];
12127
12149
  }
12128
- }), lh = Kd.create({
12150
+ }), uh = qd.create({
12129
12151
  name: "taskList",
12130
12152
  addOptions() {
12131
12153
  return {
@@ -12161,7 +12183,7 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
12161
12183
  },
12162
12184
  tokenize(e, t, n) {
12163
12185
  let r = (e) => {
12164
- let t = Ud(e, {
12186
+ let t = Wd(e, {
12165
12187
  itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
12166
12188
  extractItemData: (e) => ({
12167
12189
  indentLevel: e[1].length,
@@ -12185,7 +12207,7 @@ var rh = "listItem", ih = "textStyle", ah = /^(\d+)\.\s$/, oh = Kd.create({
12185
12207
  raw: t.raw,
12186
12208
  items: t.items
12187
12209
  }] : n.blockTokens(e);
12188
- }, i = Ud(e, {
12210
+ }, i = Wd(e, {
12189
12211
  itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
12190
12212
  extractItemData: (e) => ({
12191
12213
  indentLevel: e[1].length,
@@ -12223,12 +12245,12 @@ K.create({
12223
12245
  name: "listKit",
12224
12246
  addExtensions() {
12225
12247
  let e = [];
12226
- return this.options.bulletList !== !1 && e.push(zm.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(Bm.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Zm.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(oh.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(ch.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(lh.configure(this.options.taskList)), e;
12248
+ return this.options.bulletList !== !1 && e.push(Bm.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(Vm.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Qm.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(sh.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(lh.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(uh.configure(this.options.taskList)), e;
12227
12249
  }
12228
12250
  });
12229
12251
  //#endregion
12230
12252
  //#region ../../node_modules/@tiptap/extension-paragraph/dist/index.js
12231
- var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12253
+ var dh = "&nbsp;", fh = "\xA0", ph = qd.create({
12232
12254
  name: "paragraph",
12233
12255
  priority: 1e3,
12234
12256
  addOptions() {
@@ -12250,14 +12272,14 @@ var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12250
12272
  let n = e.tokens || [];
12251
12273
  if (n.length === 1 && n[0].type === "image") return t.parseChildren([n[0]]);
12252
12274
  let r = t.parseInline(n);
12253
- return r.length === 1 && r[0].type === "text" && (r[0].text === uh || r[0].text === dh) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
12275
+ return n.length === 1 && n[0].type === "text" && (n[0].raw === dh || n[0].text === dh || n[0].raw === fh || n[0].text === fh) && r.length === 1 && r[0].type === "text" && (r[0].text === dh || r[0].text === fh) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
12254
12276
  },
12255
12277
  renderMarkdown: (e, t, n) => {
12256
12278
  if (!e) return "";
12257
12279
  let r = Array.isArray(e.content) ? e.content : [];
12258
12280
  if (r.length === 0) {
12259
12281
  let e = Array.isArray(n?.previousNode?.content) ? n.previousNode.content : [];
12260
- return n?.previousNode?.type === "paragraph" && e.length === 0 ? uh : "";
12282
+ return n?.previousNode?.type === "paragraph" && e.length === 0 ? dh : "";
12261
12283
  }
12262
12284
  return t.renderChildren(r);
12263
12285
  },
@@ -12267,7 +12289,7 @@ var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12267
12289
  addKeyboardShortcuts() {
12268
12290
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
12269
12291
  }
12270
- }), ph = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, mh = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, hh = sd.create({
12292
+ }), mh = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, hh = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, gh = cd.create({
12271
12293
  name: "strike",
12272
12294
  addOptions() {
12273
12295
  return { HTMLAttributes: {} };
@@ -12305,18 +12327,18 @@ var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12305
12327
  return { "Mod-Shift-s": () => this.editor.commands.toggleStrike() };
12306
12328
  },
12307
12329
  addInputRules() {
12308
- return [jd({
12309
- find: ph,
12330
+ return [Md({
12331
+ find: mh,
12310
12332
  type: this.type
12311
12333
  })];
12312
12334
  },
12313
12335
  addPasteRules() {
12314
- return [qd({
12315
- find: mh,
12336
+ return [Jd({
12337
+ find: hh,
12316
12338
  type: this.type
12317
12339
  })];
12318
12340
  }
12319
- }), gh = Kd.create({
12341
+ }), _h = qd.create({
12320
12342
  name: "text",
12321
12343
  group: "inline",
12322
12344
  parseMarkdown: (e) => ({
@@ -12324,7 +12346,7 @@ var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12324
12346
  text: e.text || ""
12325
12347
  }),
12326
12348
  renderMarkdown: (e) => e.text || ""
12327
- }), _h = sd.create({
12349
+ }), vh = cd.create({
12328
12350
  name: "underline",
12329
12351
  addOptions() {
12330
12352
  return { HTMLAttributes: {} };
@@ -12383,12 +12405,12 @@ var uh = "&nbsp;", dh = "\xA0", fh = Kd.create({
12383
12405
  });
12384
12406
  //#endregion
12385
12407
  //#region ../../node_modules/prosemirror-dropcursor/dist/index.js
12386
- function vh(e = {}) {
12408
+ function yh(e = {}) {
12387
12409
  return new j({ view(t) {
12388
- return new yh(t, e);
12410
+ return new bh(t, e);
12389
12411
  } });
12390
12412
  }
12391
- var yh = class {
12413
+ var bh = class {
12392
12414
  constructor(e, t) {
12393
12415
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
12394
12416
  "dragover",
@@ -12504,11 +12526,11 @@ var yh = class {
12504
12526
  return new e(t.resolve(n.pos));
12505
12527
  }
12506
12528
  getBookmark() {
12507
- return new bh(this.anchor);
12529
+ return new xh(this.anchor);
12508
12530
  }
12509
12531
  static valid(e) {
12510
12532
  let t = e.parent;
12511
- if (t.inlineContent || !Sh(e) || !Ch(e)) return !1;
12533
+ if (t.inlineContent || !Ch(e) || !wh(e)) return !1;
12512
12534
  let n = t.type.spec.allowGapCursor;
12513
12535
  if (n != null) return n;
12514
12536
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -12546,7 +12568,7 @@ var yh = class {
12546
12568
  }
12547
12569
  };
12548
12570
  Q.prototype.visible = !1, Q.findFrom = Q.findGapCursorFrom, O.jsonID("gapcursor", Q);
12549
- var bh = class e {
12571
+ var xh = class e {
12550
12572
  constructor(e) {
12551
12573
  this.pos = e;
12552
12574
  }
@@ -12558,10 +12580,10 @@ var bh = class e {
12558
12580
  return Q.valid(t) ? new Q(t) : O.near(t);
12559
12581
  }
12560
12582
  };
12561
- function xh(e) {
12583
+ function Sh(e) {
12562
12584
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
12563
12585
  }
12564
- function Sh(e) {
12586
+ function Ch(e) {
12565
12587
  for (let t = e.depth; t >= 0; t--) {
12566
12588
  let n = e.index(t), r = e.node(t);
12567
12589
  if (n == 0) {
@@ -12569,13 +12591,13 @@ function Sh(e) {
12569
12591
  continue;
12570
12592
  }
12571
12593
  for (let e = r.child(n - 1);; e = e.lastChild) {
12572
- if (e.childCount == 0 && !e.inlineContent || xh(e.type)) return !0;
12594
+ if (e.childCount == 0 && !e.inlineContent || Sh(e.type)) return !0;
12573
12595
  if (e.inlineContent) return !1;
12574
12596
  }
12575
12597
  }
12576
12598
  return !0;
12577
12599
  }
12578
- function Ch(e) {
12600
+ function wh(e) {
12579
12601
  for (let t = e.depth; t >= 0; t--) {
12580
12602
  let n = e.indexAfter(t), r = e.node(t);
12581
12603
  if (n == r.childCount) {
@@ -12583,30 +12605,30 @@ function Ch(e) {
12583
12605
  continue;
12584
12606
  }
12585
12607
  for (let e = r.child(n);; e = e.firstChild) {
12586
- if (e.childCount == 0 && !e.inlineContent || xh(e.type)) return !0;
12608
+ if (e.childCount == 0 && !e.inlineContent || Sh(e.type)) return !0;
12587
12609
  if (e.inlineContent) return !1;
12588
12610
  }
12589
12611
  }
12590
12612
  return !0;
12591
12613
  }
12592
- function wh() {
12614
+ function Th() {
12593
12615
  return new j({ props: {
12594
- decorations: kh,
12616
+ decorations: Ah,
12595
12617
  createSelectionBetween(e, t, n) {
12596
12618
  return t.pos == n.pos && Q.valid(n) ? new Q(n) : null;
12597
12619
  },
12598
- handleClick: Dh,
12599
- handleKeyDown: Th,
12600
- handleDOMEvents: { beforeinput: Oh }
12620
+ handleClick: Oh,
12621
+ handleKeyDown: Eh,
12622
+ handleDOMEvents: { beforeinput: kh }
12601
12623
  } });
12602
12624
  }
12603
- var Th = bc({
12604
- ArrowLeft: Eh("horiz", -1),
12605
- ArrowRight: Eh("horiz", 1),
12606
- ArrowUp: Eh("vert", -1),
12607
- ArrowDown: Eh("vert", 1)
12625
+ var Eh = bc({
12626
+ ArrowLeft: Dh("horiz", -1),
12627
+ ArrowRight: Dh("horiz", 1),
12628
+ ArrowUp: Dh("vert", -1),
12629
+ ArrowDown: Dh("vert", 1)
12608
12630
  });
12609
- function Eh(e, t) {
12631
+ function Dh(e, t) {
12610
12632
  let n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
12611
12633
  return function(e, r, i) {
12612
12634
  let a = e.selection, o = t > 0 ? a.$to : a.$from, s = a.empty;
@@ -12618,7 +12640,7 @@ function Eh(e, t) {
12618
12640
  return c ? (r && r(e.tr.setSelection(new Q(c))), !0) : !1;
12619
12641
  };
12620
12642
  }
12621
- function Dh(e, t, n) {
12643
+ function Oh(e, t, n) {
12622
12644
  if (!e || !e.editable) return !1;
12623
12645
  let r = e.state.doc.resolve(t);
12624
12646
  if (!Q.valid(r)) return !1;
@@ -12628,7 +12650,7 @@ function Dh(e, t, n) {
12628
12650
  });
12629
12651
  return i && i.inside > -1 && A.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new Q(r))), !0);
12630
12652
  }
12631
- function Oh(e, t) {
12653
+ function kh(e, t) {
12632
12654
  if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof Q)) return !1;
12633
12655
  let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
12634
12656
  if (!r) return !1;
@@ -12637,20 +12659,20 @@ function Oh(e, t) {
12637
12659
  let a = e.state.tr.replace(n.pos, n.pos, new w(i, 0, 0));
12638
12660
  return a.setSelection(k.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
12639
12661
  }
12640
- function kh(e) {
12662
+ function Ah(e) {
12641
12663
  if (!(e.selection instanceof Q)) return null;
12642
12664
  let t = document.createElement("div");
12643
12665
  return t.className = "ProseMirror-gapcursor", z.create(e.doc, [ys.widget(e.selection.head, t, { key: "gapcursor" })]);
12644
12666
  }
12645
12667
  //#endregion
12646
12668
  //#region ../../node_modules/rope-sequence/dist/index.js
12647
- var Ah = 200, $ = function() {};
12669
+ var jh = 200, $ = function() {};
12648
12670
  $.prototype.append = function(e) {
12649
- return e.length ? (e = $.from(e), !this.length && e || e.length < Ah && this.leafAppend(e) || this.length < Ah && e.leafPrepend(this) || this.appendInner(e)) : this;
12671
+ return e.length ? (e = $.from(e), !this.length && e || e.length < jh && this.leafAppend(e) || this.length < jh && e.leafPrepend(this) || this.appendInner(e)) : this;
12650
12672
  }, $.prototype.prepend = function(e) {
12651
12673
  return e.length ? $.from(e).append(this) : this;
12652
12674
  }, $.prototype.appendInner = function(e) {
12653
- return new Mh(this, e);
12675
+ return new Nh(this, e);
12654
12676
  }, $.prototype.slice = function(e, t) {
12655
12677
  return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? $.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
12656
12678
  }, $.prototype.get = function(e) {
@@ -12664,9 +12686,9 @@ $.prototype.append = function(e) {
12664
12686
  return r.push(e(t, n));
12665
12687
  }, t, n), r;
12666
12688
  }, $.from = function(e) {
12667
- return e instanceof $ ? e : e && e.length ? new jh(e) : $.empty;
12689
+ return e instanceof $ ? e : e && e.length ? new Mh(e) : $.empty;
12668
12690
  };
12669
- var jh = /* @__PURE__ */ function(e) {
12691
+ var Mh = /* @__PURE__ */ function(e) {
12670
12692
  function t(t) {
12671
12693
  e.call(this), this.values = t;
12672
12694
  }
@@ -12686,17 +12708,17 @@ var jh = /* @__PURE__ */ function(e) {
12686
12708
  }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
12687
12709
  for (var i = t - 1; i >= n; i--) if (e(this.values[i], r + i) === !1) return !1;
12688
12710
  }, t.prototype.leafAppend = function(e) {
12689
- if (this.length + e.length <= Ah) return new t(this.values.concat(e.flatten()));
12711
+ if (this.length + e.length <= jh) return new t(this.values.concat(e.flatten()));
12690
12712
  }, t.prototype.leafPrepend = function(e) {
12691
- if (this.length + e.length <= Ah) return new t(e.flatten().concat(this.values));
12713
+ if (this.length + e.length <= jh) return new t(e.flatten().concat(this.values));
12692
12714
  }, n.length.get = function() {
12693
12715
  return this.values.length;
12694
12716
  }, n.depth.get = function() {
12695
12717
  return 0;
12696
12718
  }, Object.defineProperties(t.prototype, n), t;
12697
12719
  }($);
12698
- $.empty = new jh([]);
12699
- var Mh = /* @__PURE__ */ function(e) {
12720
+ $.empty = new Mh([]);
12721
+ var Nh = /* @__PURE__ */ function(e) {
12700
12722
  function t(t, n) {
12701
12723
  e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
12702
12724
  }
@@ -12723,7 +12745,7 @@ var Mh = /* @__PURE__ */ function(e) {
12723
12745
  }, t.prototype.appendInner = function(e) {
12724
12746
  return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
12725
12747
  }, t;
12726
- }($), Nh = 500, Ph = class e {
12748
+ }($), Ph = 500, Fh = class e {
12727
12749
  constructor(e, t) {
12728
12750
  this.items = e, this.eventCount = t;
12729
12751
  }
@@ -12743,9 +12765,9 @@ var Mh = /* @__PURE__ */ function(e) {
12743
12765
  return;
12744
12766
  }
12745
12767
  if (i) {
12746
- u.push(new Ih(t.map));
12768
+ u.push(new Lh(t.map));
12747
12769
  let e = t.step.map(i.slice(a)), n;
12748
- e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new Ih(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
12770
+ e && o.maybeStep(e).doc && (n = o.mapping.maps[o.mapping.maps.length - 1], l.push(new Lh(n, void 0, void 0, l.length + u.length))), a--, n && i.appendMap(n, a);
12749
12771
  } else o.maybeStep(t.step);
12750
12772
  if (t.selection) return s = i ? t.selection.map(i.slice(a)) : t.selection, c = new e(this.items.slice(0, r).append(u.reverse().concat(l)), this.eventCount - 1), !1;
12751
12773
  }, this.items.length, 0), {
@@ -12757,11 +12779,11 @@ var Mh = /* @__PURE__ */ function(e) {
12757
12779
  addTransform(t, n, r, i) {
12758
12780
  let a = [], o = this.eventCount, s = this.items, c = !i && s.length ? s.get(s.length - 1) : null;
12759
12781
  for (let e = 0; e < t.steps.length; e++) {
12760
- let r = t.steps[e].invert(t.docs[e]), l = new Ih(t.mapping.maps[e], r, n), u;
12782
+ let r = t.steps[e].invert(t.docs[e]), l = new Lh(t.mapping.maps[e], r, n), u;
12761
12783
  (u = c && c.merge(l)) && (l = u, e ? a.pop() : s = s.slice(0, s.length - 1)), a.push(l), n &&= (o++, void 0), i || (c = l);
12762
12784
  }
12763
12785
  let l = o - r.depth;
12764
- return l > Rh && (s = Fh(s, l), o -= l), new e(s.append(a), o);
12786
+ return l > zh && (s = Ih(s, l), o -= l), new e(s.append(a), o);
12765
12787
  }
12766
12788
  remapping(e, t) {
12767
12789
  let n = new Nt();
@@ -12771,7 +12793,7 @@ var Mh = /* @__PURE__ */ function(e) {
12771
12793
  }, e, t), n;
12772
12794
  }
12773
12795
  addMaps(t) {
12774
- return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new Ih(e))), this.eventCount);
12796
+ return this.eventCount == 0 ? this : new e(this.items.append(t.map((e) => new Lh(e))), this.eventCount);
12775
12797
  }
12776
12798
  rebased(t, n) {
12777
12799
  if (!this.eventCount) return this;
@@ -12787,13 +12809,13 @@ var Mh = /* @__PURE__ */ function(e) {
12787
12809
  let i = a.maps[n];
12788
12810
  if (e.step) {
12789
12811
  let o = t.steps[n].invert(t.docs[n]), l = e.selection && e.selection.map(a.slice(c + 1, n));
12790
- l && s++, r.push(new Ih(i, o, l));
12791
- } else r.push(new Ih(i));
12812
+ l && s++, r.push(new Lh(i, o, l));
12813
+ } else r.push(new Lh(i));
12792
12814
  }, i);
12793
12815
  let l = [];
12794
- for (let e = n; e < o; e++) l.push(new Ih(a.maps[e]));
12816
+ for (let e = n; e < o; e++) l.push(new Lh(a.maps[e]));
12795
12817
  let u = new e(this.items.slice(0, i).append(l).append(r), s);
12796
- return u.emptyItemCount() > Nh && (u = u.compress(this.items.length - r.length)), u;
12818
+ return u.emptyItemCount() > Ph && (u = u.compress(this.items.length - r.length)), u;
12797
12819
  }
12798
12820
  emptyItemCount() {
12799
12821
  let e = 0;
@@ -12810,21 +12832,21 @@ var Mh = /* @__PURE__ */ function(e) {
12810
12832
  if (r--, o && n.appendMap(o, r), t) {
12811
12833
  let s = e.selection && e.selection.map(n.slice(r));
12812
12834
  s && a++;
12813
- let c = new Ih(o.invert(), t, s), l, u = i.length - 1;
12835
+ let c = new Lh(o.invert(), t, s), l, u = i.length - 1;
12814
12836
  (l = i.length && i[u].merge(c)) ? i[u] = l : i.push(c);
12815
12837
  }
12816
12838
  } else e.map && r--;
12817
12839
  }, this.items.length, 0), new e($.from(i.reverse()), a);
12818
12840
  }
12819
12841
  };
12820
- Ph.empty = new Ph($.empty, 0);
12821
- function Fh(e, t) {
12842
+ Fh.empty = new Fh($.empty, 0);
12843
+ function Ih(e, t) {
12822
12844
  let n;
12823
12845
  return e.forEach((e, r) => {
12824
12846
  if (e.selection && t-- == 0) return n = r, !1;
12825
12847
  }), e.slice(n);
12826
12848
  }
12827
- var Ih = class e {
12849
+ var Lh = class e {
12828
12850
  constructor(e, t, n, r) {
12829
12851
  this.map = e, this.step = t, this.selection = n, this.mirrorOffset = r;
12830
12852
  }
@@ -12834,25 +12856,25 @@ var Ih = class e {
12834
12856
  if (n) return new e(n.getMap().invert(), n, this.selection);
12835
12857
  }
12836
12858
  }
12837
- }, Lh = class {
12859
+ }, Rh = class {
12838
12860
  constructor(e, t, n, r, i) {
12839
12861
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = i;
12840
12862
  }
12841
- }, Rh = 20;
12842
- function zh(e, t, n, r) {
12843
- let i = n.getMeta(qh), a;
12863
+ }, zh = 20;
12864
+ function Bh(e, t, n, r) {
12865
+ let i = n.getMeta(Jh), a;
12844
12866
  if (i) return i.historyState;
12845
- n.getMeta(Jh) && (e = new Lh(e.done, e.undone, null, 0, -1));
12867
+ n.getMeta(Yh) && (e = new Rh(e.done, e.undone, null, 0, -1));
12846
12868
  let o = n.getMeta("appendedTransaction");
12847
12869
  if (n.steps.length == 0) return e;
12848
- if (o && o.getMeta(qh)) return o.getMeta(qh).redo ? new Lh(e.done.addTransform(n, void 0, r, Kh(t)), e.undone, Vh(n.mapping.maps), e.prevTime, e.prevComposition) : new Lh(e.done, e.undone.addTransform(n, void 0, r, Kh(t)), null, e.prevTime, e.prevComposition);
12870
+ if (o && o.getMeta(Jh)) return o.getMeta(Jh).redo ? new Rh(e.done.addTransform(n, void 0, r, qh(t)), e.undone, Hh(n.mapping.maps), e.prevTime, e.prevComposition) : new Rh(e.done, e.undone.addTransform(n, void 0, r, qh(t)), null, e.prevTime, e.prevComposition);
12849
12871
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
12850
- let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Bh(n, e.prevRanges)), s = o ? Hh(e.prevRanges, n.mapping) : Vh(n.mapping.maps);
12851
- return new Lh(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, Kh(t)), Ph.empty, s, n.time, i ?? e.prevComposition);
12852
- } else if (a = n.getMeta("rebased")) return new Lh(e.done.rebased(n, a), e.undone.rebased(n, a), Hh(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
12853
- else return new Lh(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Hh(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
12872
+ let i = n.getMeta("composition"), a = e.prevTime == 0 || !o && e.prevComposition != i && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Vh(n, e.prevRanges)), s = o ? Uh(e.prevRanges, n.mapping) : Hh(n.mapping.maps);
12873
+ return new Rh(e.done.addTransform(n, a ? t.selection.getBookmark() : void 0, r, qh(t)), Fh.empty, s, n.time, i ?? e.prevComposition);
12874
+ } else if (a = n.getMeta("rebased")) return new Rh(e.done.rebased(n, a), e.undone.rebased(n, a), Uh(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
12875
+ else return new Rh(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Uh(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
12854
12876
  }
12855
- function Bh(e, t) {
12877
+ function Vh(e, t) {
12856
12878
  if (!t) return !1;
12857
12879
  if (!e.docChanged) return !0;
12858
12880
  let n = !1;
@@ -12860,12 +12882,12 @@ function Bh(e, t) {
12860
12882
  for (let i = 0; i < t.length; i += 2) e <= t[i + 1] && r >= t[i] && (n = !0);
12861
12883
  }), n;
12862
12884
  }
12863
- function Vh(e) {
12885
+ function Hh(e) {
12864
12886
  let t = [];
12865
12887
  for (let n = e.length - 1; n >= 0 && t.length == 0; n--) e[n].forEach((e, n, r, i) => t.push(r, i));
12866
12888
  return t;
12867
12889
  }
12868
- function Hh(e, t) {
12890
+ function Uh(e, t) {
12869
12891
  if (!e) return null;
12870
12892
  let n = [];
12871
12893
  for (let r = 0; r < e.length; r += 2) {
@@ -12874,61 +12896,61 @@ function Hh(e, t) {
12874
12896
  }
12875
12897
  return n;
12876
12898
  }
12877
- function Uh(e, t, n) {
12878
- let r = Kh(t), i = qh.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
12899
+ function Wh(e, t, n) {
12900
+ let r = qh(t), i = Jh.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
12879
12901
  if (!a) return null;
12880
- let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new Lh(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
12881
- return a.transform.setSelection(o).setMeta(qh, {
12902
+ let o = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), i, r), c = new Rh(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
12903
+ return a.transform.setSelection(o).setMeta(Jh, {
12882
12904
  redo: n,
12883
12905
  historyState: c
12884
12906
  });
12885
12907
  }
12886
- var Wh = !1, Gh = null;
12887
- function Kh(e) {
12908
+ var Gh = !1, Kh = null;
12909
+ function qh(e) {
12888
12910
  let t = e.plugins;
12889
- if (Gh != t) {
12890
- Wh = !1, Gh = t;
12911
+ if (Kh != t) {
12912
+ Gh = !1, Kh = t;
12891
12913
  for (let e = 0; e < t.length; e++) if (t[e].spec.historyPreserveItems) {
12892
- Wh = !0;
12914
+ Gh = !0;
12893
12915
  break;
12894
12916
  }
12895
12917
  }
12896
- return Wh;
12918
+ return Gh;
12897
12919
  }
12898
- var qh = new M("history"), Jh = new M("closeHistory");
12899
- function Yh(e = {}) {
12920
+ var Jh = new M("history"), Yh = new M("closeHistory");
12921
+ function Xh(e = {}) {
12900
12922
  return e = {
12901
12923
  depth: e.depth || 100,
12902
12924
  newGroupDelay: e.newGroupDelay || 500
12903
12925
  }, new j({
12904
- key: qh,
12926
+ key: Jh,
12905
12927
  state: {
12906
12928
  init() {
12907
- return new Lh(Ph.empty, Ph.empty, null, 0, -1);
12929
+ return new Rh(Fh.empty, Fh.empty, null, 0, -1);
12908
12930
  },
12909
12931
  apply(t, n, r) {
12910
- return zh(n, r, t, e);
12932
+ return Bh(n, r, t, e);
12911
12933
  }
12912
12934
  },
12913
12935
  config: e,
12914
12936
  props: { handleDOMEvents: { beforeinput(e, t) {
12915
- let n = t.inputType, r = n == "historyUndo" ? Zh : n == "historyRedo" ? Qh : null;
12937
+ let n = t.inputType, r = n == "historyUndo" ? Qh : n == "historyRedo" ? $h : null;
12916
12938
  return !r || !e.editable ? !1 : (t.preventDefault(), r(e.state, e.dispatch));
12917
12939
  } } }
12918
12940
  });
12919
12941
  }
12920
- function Xh(e, t) {
12942
+ function Zh(e, t) {
12921
12943
  return (n, r) => {
12922
- let i = qh.getState(n);
12944
+ let i = Jh.getState(n);
12923
12945
  if (!i || (e ? i.undone : i.done).eventCount == 0) return !1;
12924
12946
  if (r) {
12925
- let a = Uh(i, n, e);
12947
+ let a = Wh(i, n, e);
12926
12948
  a && r(t ? a.scrollIntoView() : a);
12927
12949
  }
12928
12950
  return !0;
12929
12951
  };
12930
12952
  }
12931
- var Zh = Xh(!1, !0), Qh = Xh(!0, !0);
12953
+ var Qh = Zh(!1, !0), $h = Zh(!0, !0);
12932
12954
  K.create({
12933
12955
  name: "characterCount",
12934
12956
  addOptions() {
@@ -12990,7 +13012,7 @@ K.create({
12990
13012
  })];
12991
13013
  }
12992
13014
  });
12993
- var $h = K.create({
13015
+ var eg = K.create({
12994
13016
  name: "dropCursor",
12995
13017
  addOptions() {
12996
13018
  return {
@@ -13000,7 +13022,7 @@ var $h = K.create({
13000
13022
  };
13001
13023
  },
13002
13024
  addProseMirrorPlugins() {
13003
- return [vh(this.options)];
13025
+ return [yh(this.options)];
13004
13026
  }
13005
13027
  });
13006
13028
  K.create({
@@ -13034,10 +13056,10 @@ K.create({
13034
13056
  })];
13035
13057
  }
13036
13058
  });
13037
- var eg = K.create({
13059
+ var tg = K.create({
13038
13060
  name: "gapCursor",
13039
13061
  addProseMirrorPlugins() {
13040
- return [wh()];
13062
+ return [Th()];
13041
13063
  },
13042
13064
  extendNodeSchema(e) {
13043
13065
  return { allowGapCursor: W(U(e, "allowGapCursor", {
@@ -13046,8 +13068,8 @@ var eg = K.create({
13046
13068
  storage: e.storage
13047
13069
  })) ?? null };
13048
13070
  }
13049
- }), tg = "placeholder";
13050
- function ng(e) {
13071
+ }), ng = "placeholder";
13072
+ function rg(e) {
13051
13073
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
13052
13074
  }
13053
13075
  K.create({
@@ -13056,7 +13078,7 @@ K.create({
13056
13078
  return {
13057
13079
  emptyEditorClass: "is-editor-empty",
13058
13080
  emptyNodeClass: "is-empty",
13059
- dataAttribute: tg,
13081
+ dataAttribute: ng,
13060
13082
  placeholder: "Write something …",
13061
13083
  showOnlyWhenEditable: !0,
13062
13084
  showOnlyCurrent: !0,
@@ -13064,7 +13086,7 @@ K.create({
13064
13086
  };
13065
13087
  },
13066
13088
  addProseMirrorPlugins() {
13067
- let e = this.options.dataAttribute ? `data-${ng(this.options.dataAttribute)}` : `data-${tg}`;
13089
+ let e = this.options.dataAttribute ? `data-${rg(this.options.dataAttribute)}` : `data-${ng}`;
13068
13090
  return [new j({
13069
13091
  key: new M("placeholder"),
13070
13092
  props: { decorations: ({ doc: t, selection: n }) => {
@@ -13108,10 +13130,10 @@ K.create({
13108
13130
  })];
13109
13131
  }
13110
13132
  });
13111
- function rg({ types: e, node: t }) {
13133
+ function ig({ types: e, node: t }) {
13112
13134
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
13113
13135
  }
13114
- var ig = K.create({
13136
+ var ag = K.create({
13115
13137
  name: "trailingNode",
13116
13138
  addOptions() {
13117
13139
  return {
@@ -13130,7 +13152,7 @@ var ig = K.create({
13130
13152
  state: {
13131
13153
  init: (e, t) => {
13132
13154
  let r = t.tr.doc.lastChild;
13133
- return !rg({
13155
+ return !ig({
13134
13156
  node: r,
13135
13157
  types: n
13136
13158
  });
@@ -13138,7 +13160,7 @@ var ig = K.create({
13138
13160
  apply: (e, t) => {
13139
13161
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
13140
13162
  let r = e.doc.lastChild;
13141
- return !rg({
13163
+ return !ig({
13142
13164
  node: r,
13143
13165
  types: n
13144
13166
  });
@@ -13146,7 +13168,7 @@ var ig = K.create({
13146
13168
  }
13147
13169
  })];
13148
13170
  }
13149
- }), ag = K.create({
13171
+ }), og = K.create({
13150
13172
  name: "undoRedo",
13151
13173
  addOptions() {
13152
13174
  return {
@@ -13156,12 +13178,12 @@ var ig = K.create({
13156
13178
  },
13157
13179
  addCommands() {
13158
13180
  return {
13159
- undo: () => ({ state: e, dispatch: t }) => Zh(e, t),
13160
- redo: () => ({ state: e, dispatch: t }) => Qh(e, t)
13181
+ undo: () => ({ state: e, dispatch: t }) => Qh(e, t),
13182
+ redo: () => ({ state: e, dispatch: t }) => $h(e, t)
13161
13183
  };
13162
13184
  },
13163
13185
  addProseMirrorPlugins() {
13164
- return [Yh(this.options)];
13186
+ return [Xh(this.options)];
13165
13187
  },
13166
13188
  addKeyboardShortcuts() {
13167
13189
  return {
@@ -13172,20 +13194,20 @@ var ig = K.create({
13172
13194
  "Shift-Mod-я": () => this.editor.commands.redo()
13173
13195
  };
13174
13196
  }
13175
- }), og = K.create({
13197
+ }), sg = K.create({
13176
13198
  name: "starterKit",
13177
13199
  addExtensions() {
13178
13200
  let e = [];
13179
- return this.options.bold !== !1 && e.push(of.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(ef.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(zm.configure(this.options.bulletList)), this.options.code !== !1 && e.push(lf.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(pf.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(mf.configure(this.options.document)), this.options.dropcursor !== !1 && e.push($h.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(eg.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(hf.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(gf.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(ag.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(_f.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Sf.configure(this.options.italic)), this.options.listItem !== !1 && e.push(Bm.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Zm.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(Nm.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(oh.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(fh.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(hh.configure(this.options.strike)), this.options.text !== !1 && e.push(gh.configure(this.options.text)), this.options.underline !== !1 && e.push(_h.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(ig.configure(this.options?.trailingNode)), e;
13201
+ return this.options.bold !== !1 && e.push(sf.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(tf.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Bm.configure(this.options.bulletList)), this.options.code !== !1 && e.push(uf.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(mf.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(hf.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(eg.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(tg.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(gf.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(_f.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(og.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(vf.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Cf.configure(this.options.italic)), this.options.listItem !== !1 && e.push(Vm.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Qm.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(Pm.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(sh.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(ph.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(gh.configure(this.options.strike)), this.options.text !== !1 && e.push(_h.configure(this.options.text)), this.options.underline !== !1 && e.push(vh.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(ag.configure(this.options?.trailingNode)), e;
13180
13202
  }
13181
- }), sg = ["onClick"], cg = /* @__PURE__ */ e(/* @__PURE__ */ s({
13203
+ }), cg = ["onClick"], lg = /* @__PURE__ */ e(/* @__PURE__ */ s({
13182
13204
  __name: "UiEditor",
13183
13205
  props: { modelValue: {} },
13184
13206
  emits: ["update:modelValue"],
13185
13207
  setup(e, { emit: o }) {
13186
- let s = e, c = o, l = Zd({
13208
+ let s = e, c = o, l = Qd({
13187
13209
  content: n(() => s.modelValue).value,
13188
- extensions: [og],
13210
+ extensions: [sg],
13189
13211
  onUpdate: () => {
13190
13212
  c("update:modelValue", l.value?.getHTML());
13191
13213
  }
@@ -13220,7 +13242,7 @@ var ig = K.create({
13220
13242
  onClick: (e) => t.method(),
13221
13243
  class: f(e.$style.action),
13222
13244
  type: "button"
13223
- }, v(t.name), 11, sg)), 64))], 2), a(y(Xd), {
13245
+ }, v(t.name), 11, cg)), 64))], 2), a(y(Zd), {
13224
13246
  editor: y(l),
13225
13247
  class: f(e.$style.editor)
13226
13248
  }, null, 8, ["editor", "class"])], 2));
@@ -13232,4 +13254,4 @@ var ig = K.create({
13232
13254
  editor: "_editor_85du8_41"
13233
13255
  } }]]);
13234
13256
  //#endregion
13235
- export { cg as default };
13257
+ export { lg as default };