mhz-ui 1.4.3 → 1.4.4

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.
@@ -1,5 +1,5 @@
1
1
  import "./UiEditor.css";
2
- import { shallowRef as $c, onMounted as Fc, onBeforeUnmount as Ks, defineComponent as pn, h as vr, ref as Vc, getCurrentInstance as Hc, watchEffect as _c, nextTick as jc, unref as ms, markRaw as Wc, customRef as Kc, computed as Uc, watch as qc, openBlock as Ii, createElementBlock as Di, normalizeClass as bn, createElementVNode as Ri, Fragment as Jc, renderList as Gc, toDisplayString as Yc, createVNode as Xc } from "vue";
2
+ import { shallowRef as $c, onMounted as Fc, onBeforeUnmount as Ks, defineComponent as gn, h as vr, ref as Vc, getCurrentInstance as Hc, watchEffect as _c, nextTick as jc, unref as ms, markRaw as Wc, customRef as Kc, computed as Uc, watch as qc, openBlock as Ii, createElementBlock as Di, normalizeClass as Sn, createElementVNode as Ri, Fragment as Jc, renderList as Gc, toDisplayString as Yc, createVNode as Xc } from "vue";
3
3
  import { _ as Qc } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  function G(n) {
5
5
  this.content = n;
@@ -330,15 +330,15 @@ class k {
330
330
  */
331
331
  findIndex(e) {
332
332
  if (e == 0)
333
- return xn(0, e);
333
+ return wn(0, e);
334
334
  if (e == this.size)
335
- return xn(this.content.length, e);
335
+ return wn(this.content.length, e);
336
336
  if (e > this.size || e < 0)
337
337
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
338
338
  for (let t = 0, r = 0; ; t++) {
339
339
  let s = this.child(t), i = r + s.nodeSize;
340
340
  if (i >= e)
341
- return i == e ? xn(t + 1, i) : xn(t, r);
341
+ return i == e ? wn(t + 1, i) : wn(t, r);
342
342
  r = i;
343
343
  }
344
344
  }
@@ -404,10 +404,10 @@ class k {
404
404
  }
405
405
  k.empty = new k([], 0);
406
406
  const _r = { index: 0, offset: 0 };
407
- function xn(n, e) {
407
+ function wn(n, e) {
408
408
  return _r.index = n, _r.offset = e, _r;
409
409
  }
410
- function zn(n, e) {
410
+ function $n(n, e) {
411
411
  if (n === e)
412
412
  return !0;
413
413
  if (!(n && typeof n == "object") || !(e && typeof e == "object"))
@@ -419,11 +419,11 @@ function zn(n, e) {
419
419
  if (n.length != e.length)
420
420
  return !1;
421
421
  for (let r = 0; r < n.length; r++)
422
- if (!zn(n[r], e[r]))
422
+ if (!$n(n[r], e[r]))
423
423
  return !1;
424
424
  } else {
425
425
  for (let r in n)
426
- if (!(r in e) || !zn(n[r], e[r]))
426
+ if (!(r in e) || !$n(n[r], e[r]))
427
427
  return !1;
428
428
  for (let r in e)
429
429
  if (!(r in n))
@@ -485,7 +485,7 @@ let L = class gs {
485
485
  another mark.
486
486
  */
487
487
  eq(e) {
488
- return this == e || this.type == e.type && zn(this.attrs, e.attrs);
488
+ return this == e || this.type == e.type && $n(this.attrs, e.attrs);
489
489
  }
490
490
  /**
491
491
  Convert this mark to a JSON-serializeable representation.
@@ -537,7 +537,7 @@ let L = class gs {
537
537
  }
538
538
  };
539
539
  L.none = [];
540
- class $n extends Error {
540
+ class Fn extends Error {
541
541
  }
542
542
  class S {
543
543
  /**
@@ -640,9 +640,9 @@ function ul(n, e, t, r) {
640
640
  }
641
641
  function Zc(n, e, t) {
642
642
  if (t.openStart > n.depth)
643
- throw new $n("Inserted content deeper than insertion position");
643
+ throw new Fn("Inserted content deeper than insertion position");
644
644
  if (n.depth - t.openStart != e.depth - t.openEnd)
645
- throw new $n("Inconsistent open depths");
645
+ throw new Fn("Inconsistent open depths");
646
646
  return dl(n, e, t, 0);
647
647
  }
648
648
  function dl(n, e, t, r) {
@@ -658,11 +658,11 @@ function dl(n, e, t, r) {
658
658
  let { start: o, end: l } = eu(t, n);
659
659
  return at(i, hl(n, o, l, e, r));
660
660
  }
661
- else return at(i, Fn(n, e, r));
661
+ else return at(i, Vn(n, e, r));
662
662
  }
663
663
  function fl(n, e) {
664
664
  if (!e.type.compatibleContent(n.type))
665
- throw new $n("Cannot join " + e.type.name + " onto " + n.type.name);
665
+ throw new Fn("Cannot join " + e.type.name + " onto " + n.type.name);
666
666
  }
667
667
  function ys(n, e, t) {
668
668
  let r = n.node(t);
@@ -672,7 +672,7 @@ function lt(n, e) {
672
672
  let t = e.length - 1;
673
673
  t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
674
674
  }
675
- function Ut(n, e, t, r) {
675
+ function qt(n, e, t, r) {
676
676
  let s = (e || n).node(t), i = 0, o = e ? e.index(t) : s.childCount;
677
677
  n && (i = n.index(t), n.depth > t ? i++ : n.textOffset && (lt(n.nodeAfter, r), i++));
678
678
  for (let l = i; l < o; l++)
@@ -684,15 +684,15 @@ function at(n, e) {
684
684
  }
685
685
  function hl(n, e, t, r, s) {
686
686
  let i = n.depth > s && ys(n, e, s + 1), o = r.depth > s && ys(t, r, s + 1), l = [];
687
- return Ut(null, n, s, l), i && o && e.index(s) == t.index(s) ? (fl(i, o), lt(at(i, hl(n, e, t, r, s + 1)), l)) : (i && lt(at(i, Fn(n, e, s + 1)), l), Ut(e, t, s, l), o && lt(at(o, Fn(t, r, s + 1)), l)), Ut(r, null, s, l), new k(l);
687
+ return qt(null, n, s, l), i && o && e.index(s) == t.index(s) ? (fl(i, o), lt(at(i, hl(n, e, t, r, s + 1)), l)) : (i && lt(at(i, Vn(n, e, s + 1)), l), qt(e, t, s, l), o && lt(at(o, Vn(t, r, s + 1)), l)), qt(r, null, s, l), new k(l);
688
688
  }
689
- function Fn(n, e, t) {
689
+ function Vn(n, e, t) {
690
690
  let r = [];
691
- if (Ut(null, n, t, r), n.depth > t) {
691
+ if (qt(null, n, t, r), n.depth > t) {
692
692
  let s = ys(n, e, t + 1);
693
- lt(at(s, Fn(n, e, t + 1)), r);
693
+ lt(at(s, Vn(n, e, t + 1)), r);
694
694
  }
695
- return Ut(e, null, t, r), new k(r);
695
+ return qt(e, null, t, r), new k(r);
696
696
  }
697
697
  function eu(n, e) {
698
698
  let t = e.depth - n.openStart, s = e.node(t).copy(n.content);
@@ -703,7 +703,7 @@ function eu(n, e) {
703
703
  end: s.resolveNoCache(s.content.size - n.openEnd - t)
704
704
  };
705
705
  }
706
- class nn {
706
+ class sn {
707
707
  /**
708
708
  @internal
709
709
  */
@@ -888,7 +888,7 @@ class nn {
888
888
  return e.blockRange(this);
889
889
  for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
890
890
  if (e.pos <= this.end(r) && (!t || t(this.node(r))))
891
- return new Vn(this, e, r);
891
+ return new Hn(this, e, r);
892
892
  return null;
893
893
  }
894
894
  /**
@@ -931,7 +931,7 @@ class nn {
931
931
  break;
932
932
  i = c - 1, s += a + 1;
933
933
  }
934
- return new nn(t, r, i);
934
+ return new sn(t, r, i);
935
935
  }
936
936
  /**
937
937
  @internal
@@ -946,7 +946,7 @@ class nn {
946
946
  }
947
947
  else
948
948
  Pi.set(e, r = new tu());
949
- let s = r.elts[r.i] = nn.resolve(e, t);
949
+ let s = r.elts[r.i] = sn.resolve(e, t);
950
950
  return r.i = (r.i + 1) % nu, s;
951
951
  }
952
952
  }
@@ -956,7 +956,7 @@ class tu {
956
956
  }
957
957
  }
958
958
  const nu = 12, Pi = /* @__PURE__ */ new WeakMap();
959
- class Vn {
959
+ class Hn {
960
960
  /**
961
961
  Construct a node range. `$from` and `$to` should point into the
962
962
  same node until at least the given `depth`, since a node range
@@ -1115,7 +1115,7 @@ class Se {
1115
1115
  attributes, and marks.
1116
1116
  */
1117
1117
  hasMarkup(e, t, r) {
1118
- return this.type == e && zn(this.attrs, t || e.defaultAttrs || ru) && L.sameSet(this.marks, r || L.none);
1118
+ return this.type == e && $n(this.attrs, t || e.defaultAttrs || ru) && L.sameSet(this.marks, r || L.none);
1119
1119
  }
1120
1120
  /**
1121
1121
  Create a new node with the same markup as this node, containing
@@ -1201,13 +1201,13 @@ class Se {
1201
1201
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1202
1202
  */
1203
1203
  resolve(e) {
1204
- return nn.resolveCached(this, e);
1204
+ return sn.resolveCached(this, e);
1205
1205
  }
1206
1206
  /**
1207
1207
  @internal
1208
1208
  */
1209
1209
  resolveNoCache(e) {
1210
- return nn.resolve(this, e);
1210
+ return sn.resolve(this, e);
1211
1211
  }
1212
1212
  /**
1213
1213
  Test whether a given mark or mark type occurs in this document
@@ -1367,7 +1367,7 @@ class Se {
1367
1367
  }
1368
1368
  }
1369
1369
  Se.prototype.text = void 0;
1370
- class Hn extends Se {
1370
+ class _n extends Se {
1371
1371
  /**
1372
1372
  @internal
1373
1373
  */
@@ -1389,10 +1389,10 @@ class Hn extends Se {
1389
1389
  return this.text.length;
1390
1390
  }
1391
1391
  mark(e) {
1392
- return e == this.marks ? this : new Hn(this.type, this.attrs, this.text, e);
1392
+ return e == this.marks ? this : new _n(this.type, this.attrs, this.text, e);
1393
1393
  }
1394
1394
  withText(e) {
1395
- return e == this.text ? this : new Hn(this.type, this.attrs, e, this.marks);
1395
+ return e == this.text ? this : new _n(this.type, this.attrs, e, this.marks);
1396
1396
  }
1397
1397
  cut(e = 0, t = this.text.length) {
1398
1398
  return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
@@ -2095,7 +2095,7 @@ class wl {
2095
2095
  */
2096
2096
  text(e, t) {
2097
2097
  let r = this.nodes.text;
2098
- return new Hn(r, r.defaultAttrs, e, L.setFrom(t));
2098
+ return new _n(r, r.defaultAttrs, e, L.setFrom(t));
2099
2099
  }
2100
2100
  /**
2101
2101
  Create a mark with the given type and attributes.
@@ -2290,13 +2290,13 @@ const Cl = {
2290
2290
  script: !0,
2291
2291
  style: !0,
2292
2292
  title: !0
2293
- }, Ml = { ol: !0, ul: !0 }, rn = 1, ks = 2, qt = 4;
2293
+ }, Ml = { ol: !0, ul: !0 }, on = 1, ks = 2, Jt = 4;
2294
2294
  function Fi(n, e, t) {
2295
- return e != null ? (e ? rn : 0) | (e === "full" ? ks : 0) : n && n.whitespace == "pre" ? rn | ks : t & ~qt;
2295
+ return e != null ? (e ? on : 0) | (e === "full" ? ks : 0) : n && n.whitespace == "pre" ? on | ks : t & ~Jt;
2296
2296
  }
2297
- class Sn {
2297
+ class Cn {
2298
2298
  constructor(e, t, r, s, i, o) {
2299
- this.type = e, this.attrs = t, this.marks = r, this.solid = s, this.options = o, this.content = [], this.activeMarks = L.none, this.match = i || (o & qt ? null : e.contentMatch);
2299
+ this.type = e, this.attrs = t, this.marks = r, this.solid = s, this.options = o, this.content = [], this.activeMarks = L.none, this.match = i || (o & Jt ? null : e.contentMatch);
2300
2300
  }
2301
2301
  findWrapping(e) {
2302
2302
  if (!this.match) {
@@ -2313,7 +2313,7 @@ class Sn {
2313
2313
  return this.match.findWrapping(e.type);
2314
2314
  }
2315
2315
  finish(e) {
2316
- if (!(this.options & rn)) {
2316
+ if (!(this.options & on)) {
2317
2317
  let r = this.content[this.content.length - 1], s;
2318
2318
  if (r && r.isText && (s = /[ \t\r\n\u000c]+$/.exec(r.text))) {
2319
2319
  let i = r;
@@ -2330,8 +2330,8 @@ class Sn {
2330
2330
  class Vi {
2331
2331
  constructor(e, t, r) {
2332
2332
  this.parser = e, this.options = t, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
2333
- let s = t.topNode, i, o = Fi(null, t.preserveWhitespace, 0) | (r ? qt : 0);
2334
- s ? i = new Sn(s.type, s.attrs, L.none, !0, t.topMatch || s.type.contentMatch, o) : r ? i = new Sn(null, null, L.none, !0, null, o) : i = new Sn(e.schema.topNodeType, null, L.none, !0, null, o), this.nodes = [i], this.find = t.findPositions, this.needsBlock = !1;
2333
+ let s = t.topNode, i, o = Fi(null, t.preserveWhitespace, 0) | (r ? Jt : 0);
2334
+ s ? i = new Cn(s.type, s.attrs, L.none, !0, t.topMatch || s.type.contentMatch, o) : r ? i = new Cn(null, null, L.none, !0, null, o) : i = new Cn(e.schema.topNodeType, null, L.none, !0, null, o), this.nodes = [i], this.find = t.findPositions, this.needsBlock = !1;
2335
2335
  }
2336
2336
  get top() {
2337
2337
  return this.nodes[this.open];
@@ -2343,7 +2343,7 @@ class Vi {
2343
2343
  e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
2344
2344
  }
2345
2345
  addTextNode(e, t) {
2346
- let r = e.nodeValue, s = this.top, i = s.options & ks ? "full" : this.localPreserveWS || (s.options & rn) > 0, { schema: o } = this.parser;
2346
+ let r = e.nodeValue, s = this.top, i = s.options & ks ? "full" : this.localPreserveWS || (s.options & on) > 0, { schema: o } = this.parser;
2347
2347
  if (i === "full" || s.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
2348
2348
  if (i)
2349
2349
  if (i === "full")
@@ -2513,9 +2513,9 @@ class Vi {
2513
2513
  let o = this.top;
2514
2514
  o.match = o.match && o.match.matchType(e);
2515
2515
  let l = Fi(e, i, o.options);
2516
- o.options & qt && o.content.length == 0 && (l |= qt);
2516
+ o.options & Jt && o.content.length == 0 && (l |= Jt);
2517
2517
  let a = L.none;
2518
- return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : _i(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new Sn(e, t, a, s, null, l)), this.open++, r;
2518
+ return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : _i(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new Cn(e, t, a, s, null, l)), this.open++, r;
2519
2519
  }
2520
2520
  // Make sure all nodes above this.open are finished and added to
2521
2521
  // their parents
@@ -2534,7 +2534,7 @@ class Vi {
2534
2534
  for (let t = this.open; t >= 0; t--) {
2535
2535
  if (this.nodes[t] == e)
2536
2536
  return this.open = t, !0;
2537
- this.localPreserveWS && (this.nodes[t].options |= rn);
2537
+ this.localPreserveWS && (this.nodes[t].options |= on);
2538
2538
  }
2539
2539
  return !1;
2540
2540
  }
@@ -2691,7 +2691,7 @@ class yt {
2691
2691
  @internal
2692
2692
  */
2693
2693
  serializeNodeInner(e, t) {
2694
- let { dom: r, contentDOM: s } = Dn(jr(t), this.nodes[e.type.name](e), null, e.attrs);
2694
+ let { dom: r, contentDOM: s } = Rn(jr(t), this.nodes[e.type.name](e), null, e.attrs);
2695
2695
  if (s) {
2696
2696
  if (e.isLeaf)
2697
2697
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -2719,10 +2719,10 @@ class yt {
2719
2719
  */
2720
2720
  serializeMark(e, t, r = {}) {
2721
2721
  let s = this.marks[e.type.name];
2722
- return s && Dn(jr(r), s(e, t), null, e.attrs);
2722
+ return s && Rn(jr(r), s(e, t), null, e.attrs);
2723
2723
  }
2724
2724
  static renderSpec(e, t, r = null, s) {
2725
- return Dn(e, t, r, s);
2725
+ return Rn(e, t, r, s);
2726
2726
  }
2727
2727
  /**
2728
2728
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -2778,7 +2778,7 @@ function Su(n) {
2778
2778
  }
2779
2779
  return t(n), e;
2780
2780
  }
2781
- function Dn(n, e, t, r) {
2781
+ function Rn(n, e, t, r) {
2782
2782
  if (typeof e == "string")
2783
2783
  return { dom: n.createTextNode(e) };
2784
2784
  if (e.nodeType != null)
@@ -2808,7 +2808,7 @@ function Dn(n, e, t, r) {
2808
2808
  throw new RangeError("Content hole must be the only child of its parent node");
2809
2809
  return { dom: a, contentDOM: a };
2810
2810
  } else {
2811
- let { dom: h, contentDOM: p } = Dn(n, f, t, r);
2811
+ let { dom: h, contentDOM: p } = Rn(n, f, t, r);
2812
2812
  if (a.appendChild(h), p) {
2813
2813
  if (l)
2814
2814
  throw new RangeError("Multiple content holes");
@@ -2828,7 +2828,7 @@ function Ki(n) {
2828
2828
  function Cu(n) {
2829
2829
  return (n - (n & Tl)) / vl;
2830
2830
  }
2831
- const El = 1, Al = 2, Rn = 4, Nl = 8;
2831
+ const El = 1, Al = 2, Pn = 4, Nl = 8;
2832
2832
  class bs {
2833
2833
  /**
2834
2834
  @internal
@@ -2848,13 +2848,13 @@ class bs {
2848
2848
  Tells you whether the token before the mapped position was deleted.
2849
2849
  */
2850
2850
  get deletedBefore() {
2851
- return (this.delInfo & (El | Rn)) > 0;
2851
+ return (this.delInfo & (El | Pn)) > 0;
2852
2852
  }
2853
2853
  /**
2854
2854
  True when the token after the mapped position was deleted.
2855
2855
  */
2856
2856
  get deletedAfter() {
2857
- return (this.delInfo & (Al | Rn)) > 0;
2857
+ return (this.delInfo & (Al | Pn)) > 0;
2858
2858
  }
2859
2859
  /**
2860
2860
  Tells whether any of the steps mapped through deletes across the
@@ -2862,7 +2862,7 @@ class bs {
2862
2862
  position).
2863
2863
  */
2864
2864
  get deletedAcross() {
2865
- return (this.delInfo & Rn) > 0;
2865
+ return (this.delInfo & Pn) > 0;
2866
2866
  }
2867
2867
  }
2868
2868
  class ce {
@@ -2905,7 +2905,7 @@ class ce {
2905
2905
  let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + s + (f < 0 ? 0 : u);
2906
2906
  if (r)
2907
2907
  return h;
2908
- let p = e == (t < 0 ? a : d) ? null : wu(l / 3, e - a), m = e == a ? Al : e == d ? El : Rn;
2908
+ let p = e == (t < 0 ? a : d) ? null : wu(l / 3, e - a), m = e == a ? Al : e == d ? El : Pn;
2909
2909
  return (t < 0 ? e != a : e != d) && (m |= Nl), new bs(h, m, p);
2910
2910
  }
2911
2911
  s += u - c;
@@ -2962,7 +2962,7 @@ class ce {
2962
2962
  }
2963
2963
  }
2964
2964
  ce.empty = new ce([]);
2965
- class sn {
2965
+ class ln {
2966
2966
  /**
2967
2967
  Create a new mapping with the given position maps.
2968
2968
  */
@@ -2979,7 +2979,7 @@ class sn {
2979
2979
  Create a mapping that maps only through a part of this one.
2980
2980
  */
2981
2981
  slice(e = 0, t = this.maps.length) {
2982
- return new sn(this._maps, this.mirror, e, t);
2982
+ return new ln(this._maps, this.mirror, e, t);
2983
2983
  }
2984
2984
  /**
2985
2985
  Add a step map to the end of this mapping. If `mirrors` is
@@ -3030,7 +3030,7 @@ class sn {
3030
3030
  Create an inverted version of this mapping.
3031
3031
  */
3032
3032
  invert() {
3033
- let e = new sn();
3033
+ let e = new ln();
3034
3034
  return e.appendMappingInverted(this), e;
3035
3035
  }
3036
3036
  /**
@@ -3139,7 +3139,7 @@ class _ {
3139
3139
  try {
3140
3140
  return _.ok(e.replace(t, r, s));
3141
3141
  } catch (i) {
3142
- if (i instanceof $n)
3142
+ if (i instanceof Fn)
3143
3143
  return _.fail(i.message);
3144
3144
  throw i;
3145
3145
  }
@@ -3804,9 +3804,9 @@ class $u {
3804
3804
  let { content: e, openStart: t, openEnd: r } = this.unplaced, s = Kr(e, t);
3805
3805
  if (s.childCount <= 1 && t > 0) {
3806
3806
  let i = e.size - t <= t + s.size;
3807
- this.unplaced = new S(Ht(e, t - 1, 1), t - 1, i ? t - 1 : r);
3807
+ this.unplaced = new S(_t(e, t - 1, 1), t - 1, i ? t - 1 : r);
3808
3808
  } else
3809
- this.unplaced = new S(Ht(e, t, 1), t, r);
3809
+ this.unplaced = new S(_t(e, t, 1), t, r);
3810
3810
  }
3811
3811
  // Move content from the unplaced slice at `sliceDepth` to the
3812
3812
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -3831,12 +3831,12 @@ class $u {
3831
3831
  c++, (c > 1 || a == 0 || m.content.size) && (d = g, u.push(Ll(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
3832
3832
  }
3833
3833
  let p = c == l.childCount;
3834
- p || (h = -1), this.placed = _t(this.placed, t, k.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3834
+ p || (h = -1), this.placed = jt(this.placed, t, k.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3835
3835
  for (let m = 0, g = l; m < h; m++) {
3836
3836
  let y = g.lastChild;
3837
3837
  this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
3838
3838
  }
3839
- this.unplaced = p ? e == 0 ? S.empty : new S(Ht(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new S(Ht(o.content, e, c), o.openStart, o.openEnd);
3839
+ this.unplaced = p ? e == 0 ? S.empty : new S(_t(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new S(_t(o.content, e, c), o.openStart, o.openEnd);
3840
3840
  }
3841
3841
  mustMoveInline() {
3842
3842
  if (!this.$to.parent.isTextblock)
@@ -3868,7 +3868,7 @@ class $u {
3868
3868
  return null;
3869
3869
  for (; this.depth > t.depth; )
3870
3870
  this.closeFrontierNode();
3871
- t.fit.childCount && (this.placed = _t(this.placed, t.depth, t.fit)), e = t.move;
3871
+ t.fit.childCount && (this.placed = jt(this.placed, t.depth, t.fit)), e = t.move;
3872
3872
  for (let r = t.depth + 1; r <= e.depth; r++) {
3873
3873
  let s = e.node(r), i = s.type.contentMatch.fillBefore(s.content, !0, e.index(r));
3874
3874
  this.openFrontierNode(s.type, s.attrs, i);
@@ -3877,18 +3877,18 @@ class $u {
3877
3877
  }
3878
3878
  openFrontierNode(e, t = null, r) {
3879
3879
  let s = this.frontier[this.depth];
3880
- s.match = s.match.matchType(e), this.placed = _t(this.placed, this.depth, k.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3880
+ s.match = s.match.matchType(e), this.placed = jt(this.placed, this.depth, k.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3881
3881
  }
3882
3882
  closeFrontierNode() {
3883
3883
  let t = this.frontier.pop().match.fillBefore(k.empty, !0);
3884
- t.childCount && (this.placed = _t(this.placed, this.frontier.length, t));
3884
+ t.childCount && (this.placed = jt(this.placed, this.frontier.length, t));
3885
3885
  }
3886
3886
  }
3887
- function Ht(n, e, t) {
3888
- return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(Ht(n.firstChild.content, e - 1, t)));
3889
- }
3890
3887
  function _t(n, e, t) {
3891
- return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(_t(n.lastChild.content, e - 1, t)));
3888
+ return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(_t(n.firstChild.content, e - 1, t)));
3889
+ }
3890
+ function jt(n, e, t) {
3891
+ return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(jt(n.lastChild.content, e - 1, t)));
3892
3892
  }
3893
3893
  function Kr(n, e) {
3894
3894
  for (let t = 0; t < e; t++)
@@ -4044,7 +4044,7 @@ class At extends te {
4044
4044
  }
4045
4045
  }
4046
4046
  te.jsonID("attr", At);
4047
- class on extends te {
4047
+ class an extends te {
4048
4048
  /**
4049
4049
  Construct an attribute step.
4050
4050
  */
@@ -4063,7 +4063,7 @@ class on extends te {
4063
4063
  return ce.empty;
4064
4064
  }
4065
4065
  invert(e) {
4066
- return new on(this.attr, e.attrs[this.attr]);
4066
+ return new an(this.attr, e.attrs[this.attr]);
4067
4067
  }
4068
4068
  map(e) {
4069
4069
  return this;
@@ -4074,10 +4074,10 @@ class on extends te {
4074
4074
  static fromJSON(e, t) {
4075
4075
  if (typeof t.attr != "string")
4076
4076
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
4077
- return new on(t.attr, t.value);
4077
+ return new an(t.attr, t.value);
4078
4078
  }
4079
4079
  }
4080
- te.jsonID("docAttr", on);
4080
+ te.jsonID("docAttr", an);
4081
4081
  let Ot = class extends Error {
4082
4082
  };
4083
4083
  Ot = function n(e) {
@@ -4092,7 +4092,7 @@ class $l {
4092
4092
  Create a transform that starts with the given document.
4093
4093
  */
4094
4094
  constructor(e) {
4095
- this.doc = e, this.steps = [], this.docs = [], this.mapping = new sn();
4095
+ this.doc = e, this.steps = [], this.docs = [], this.mapping = new ln();
4096
4096
  }
4097
4097
  /**
4098
4098
  The starting document.
@@ -4266,7 +4266,7 @@ class $l {
4266
4266
  Set a single attribute on the document to a new value.
4267
4267
  */
4268
4268
  setDocAttribute(e, t) {
4269
- return this.step(new on(e, t)), this;
4269
+ return this.step(new an(e, t)), this;
4270
4270
  }
4271
4271
  /**
4272
4272
  Add a mark to the node at position `pos`.
@@ -4723,7 +4723,7 @@ function Gi(n, e, t) {
4723
4723
  o == null && (o = u);
4724
4724
  }), n.setSelection(I.near(n.doc.resolve(o), t));
4725
4725
  }
4726
- const Yi = 1, wn = 2, Xi = 4;
4726
+ const Yi = 1, Mn = 2, Xi = 4;
4727
4727
  class Uu extends $l {
4728
4728
  /**
4729
4729
  @internal
@@ -4747,7 +4747,7 @@ class Uu extends $l {
4747
4747
  setSelection(e) {
4748
4748
  if (e.$from.doc != this.doc)
4749
4749
  throw new RangeError("Selection passed to setSelection must point at the current document");
4750
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Yi) & ~wn, this.storedMarks = null, this;
4750
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Yi) & ~Mn, this.storedMarks = null, this;
4751
4751
  }
4752
4752
  /**
4753
4753
  Whether the selection was explicitly updated by this transaction.
@@ -4759,7 +4759,7 @@ class Uu extends $l {
4759
4759
  Set the current stored marks.
4760
4760
  */
4761
4761
  setStoredMarks(e) {
4762
- return this.storedMarks = e, this.updated |= wn, this;
4762
+ return this.storedMarks = e, this.updated |= Mn, this;
4763
4763
  }
4764
4764
  /**
4765
4765
  Make sure the current stored marks or, if that is null, the marks
@@ -4785,13 +4785,13 @@ class Uu extends $l {
4785
4785
  Whether the stored marks were explicitly set for this transaction.
4786
4786
  */
4787
4787
  get storedMarksSet() {
4788
- return (this.updated & wn) > 0;
4788
+ return (this.updated & Mn) > 0;
4789
4789
  }
4790
4790
  /**
4791
4791
  @internal
4792
4792
  */
4793
4793
  addStep(e, t) {
4794
- super.addStep(e, t), this.updated = this.updated & ~wn, this.storedMarks = null;
4794
+ super.addStep(e, t), this.updated = this.updated & ~Mn, this.storedMarks = null;
4795
4795
  }
4796
4796
  /**
4797
4797
  Update the timestamp for the transaction.
@@ -4878,13 +4878,13 @@ class Uu extends $l {
4878
4878
  function Qi(n, e) {
4879
4879
  return !e || !n ? n : n.bind(e);
4880
4880
  }
4881
- class jt {
4881
+ class Wt {
4882
4882
  constructor(e, t, r) {
4883
4883
  this.name = e, this.init = Qi(t.init, r), this.apply = Qi(t.apply, r);
4884
4884
  }
4885
4885
  }
4886
4886
  const qu = [
4887
- new jt("doc", {
4887
+ new Wt("doc", {
4888
4888
  init(n) {
4889
4889
  return n.doc || n.schema.topNodeType.createAndFill();
4890
4890
  },
@@ -4892,7 +4892,7 @@ const qu = [
4892
4892
  return n.doc;
4893
4893
  }
4894
4894
  }),
4895
- new jt("selection", {
4895
+ new Wt("selection", {
4896
4896
  init(n, e) {
4897
4897
  return n.selection || I.atStart(e.doc);
4898
4898
  },
@@ -4900,7 +4900,7 @@ const qu = [
4900
4900
  return n.selection;
4901
4901
  }
4902
4902
  }),
4903
- new jt("storedMarks", {
4903
+ new Wt("storedMarks", {
4904
4904
  init(n) {
4905
4905
  return n.storedMarks || null;
4906
4906
  },
@@ -4908,7 +4908,7 @@ const qu = [
4908
4908
  return r.selection.$cursor ? n.storedMarks : null;
4909
4909
  }
4910
4910
  }),
4911
- new jt("scrollToSelection", {
4911
+ new Wt("scrollToSelection", {
4912
4912
  init() {
4913
4913
  return 0;
4914
4914
  },
@@ -4922,7 +4922,7 @@ class Jr {
4922
4922
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = qu.slice(), t && t.forEach((r) => {
4923
4923
  if (this.pluginsByKey[r.key])
4924
4924
  throw new RangeError("Adding different instances of a keyed plugin (" + r.key + ")");
4925
- this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new jt(r.key, r.spec.state, r));
4925
+ this.plugins.push(r), this.pluginsByKey[r.key] = r, r.spec.state && this.fields.push(new Wt(r.key, r.spec.state, r));
4926
4926
  });
4927
4927
  }
4928
4928
  }
@@ -5513,7 +5513,7 @@ function ad(n, e, t, r = null) {
5513
5513
  if (e.$from.index(e.depth - 1) == 0)
5514
5514
  return !1;
5515
5515
  let a = o.resolve(e.start - 2);
5516
- i = new Vn(a, a, e.depth), e.endIndex < e.parent.childCount && (e = new Vn(e.$from, o.resolve(e.$to.end(e.depth)), e.depth)), s = !0;
5516
+ i = new Hn(a, a, e.depth), e.endIndex < e.parent.childCount && (e = new Hn(e.$from, o.resolve(e.$to.end(e.depth)), e.depth)), s = !0;
5517
5517
  }
5518
5518
  let l = Js(i, t, r, e);
5519
5519
  return l ? (n && cd(n, e, l, s, t), !0) : !1;
@@ -5539,7 +5539,7 @@ function ud(n) {
5539
5539
  }
5540
5540
  function dd(n, e, t, r) {
5541
5541
  let s = n.tr, i = r.end, o = r.$to.end(r.depth);
5542
- i < o && (s.step(new q(i - 1, o, i, o, new S(k.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Vn(s.doc.resolve(r.$from.pos), s.doc.resolve(o), r.depth));
5542
+ i < o && (s.step(new q(i - 1, o, i, o, new S(k.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Hn(s.doc.resolve(r.$from.pos), s.doc.resolve(o), r.depth));
5543
5543
  const l = zt(r);
5544
5544
  if (l == null)
5545
5545
  return !1;
@@ -5601,7 +5601,7 @@ function eo(n, e, t, r, s) {
5601
5601
  return !0;
5602
5602
  if (e == (s < 0 ? 0 : ge(n))) {
5603
5603
  let o = n.parentNode;
5604
- if (!o || o.nodeType != 1 || mn(n) || md.test(n.nodeName) || n.contentEditable == "false")
5604
+ if (!o || o.nodeType != 1 || yn(n) || md.test(n.nodeName) || n.contentEditable == "false")
5605
5605
  return !1;
5606
5606
  e = Y(n) + (s < 0 ? 0 : 1), n = o;
5607
5607
  } else if (n.nodeType == 1) {
@@ -5628,7 +5628,7 @@ function gd(n, e) {
5628
5628
  if (n.contentEditable == "false")
5629
5629
  return null;
5630
5630
  n = n.childNodes[e - 1], e = ge(n);
5631
- } else if (n.parentNode && !mn(n))
5631
+ } else if (n.parentNode && !yn(n))
5632
5632
  e = Y(n), n = n.parentNode;
5633
5633
  else
5634
5634
  return null;
@@ -5642,7 +5642,7 @@ function yd(n, e) {
5642
5642
  if (n.contentEditable == "false")
5643
5643
  return null;
5644
5644
  n = n.childNodes[e], e = 0;
5645
- } else if (n.parentNode && !mn(n))
5645
+ } else if (n.parentNode && !yn(n))
5646
5646
  e = Y(n) + 1, n = n.parentNode;
5647
5647
  else
5648
5648
  return null;
@@ -5658,7 +5658,7 @@ function kd(n, e, t) {
5658
5658
  r = r && i == 0, s = s && i == ge(n);
5659
5659
  }
5660
5660
  }
5661
- function mn(n) {
5661
+ function yn(n) {
5662
5662
  let e;
5663
5663
  for (let t = n; t && !(e = t.pmViewDesc); t = t.parentNode)
5664
5664
  ;
@@ -5693,7 +5693,7 @@ function xd(n, e, t) {
5693
5693
  }
5694
5694
  const Te = typeof navigator < "u" ? navigator : null, to = typeof document < "u" ? document : null, et = Te && Te.userAgent || "", ws = /Edge\/(\d+)/.exec(et), Zl = /MSIE \d/.exec(et), Cs = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(et), le = !!(Zl || Cs || ws), Je = Zl ? document.documentMode : Cs ? +Cs[1] : ws ? +ws[1] : 0, ye = !le && /gecko\/(\d+)/i.test(et);
5695
5695
  ye && +(/Firefox\/(\d+)/.exec(et) || [0, 0])[1];
5696
- const Ms = !le && /Chrome\/(\d+)/.exec(et), Q = !!Ms, ea = Ms ? +Ms[1] : 0, ee = !le && !!Te && /Apple Computer/.test(Te.vendor), Rt = ee && (/Mobile\/\w+/.test(et) || !!Te && Te.maxTouchPoints > 2), me = Rt || (Te ? /Mac/.test(Te.platform) : !1), ta = Te ? /Win/.test(Te.platform) : !1, De = /Android \d/.test(et), gn = !!to && "webkitFontSmoothing" in to.documentElement.style, Sd = gn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5696
+ const Ms = !le && /Chrome\/(\d+)/.exec(et), Q = !!Ms, ea = Ms ? +Ms[1] : 0, ee = !le && !!Te && /Apple Computer/.test(Te.vendor), Rt = ee && (/Mobile\/\w+/.test(et) || !!Te && Te.maxTouchPoints > 2), me = Rt || (Te ? /Mac/.test(Te.platform) : !1), ta = Te ? /Win/.test(Te.platform) : !1, De = /Android \d/.test(et), kn = !!to && "webkitFontSmoothing" in to.documentElement.style, Sd = kn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5697
5697
  function wd(n) {
5698
5698
  let e = n.defaultView && n.defaultView.visualViewport;
5699
5699
  return e ? {
@@ -5890,7 +5890,7 @@ function Id(n, e) {
5890
5890
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && s++;
5891
5891
  }
5892
5892
  let c;
5893
- gn && s && r.nodeType == 1 && (c = r.childNodes[s - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && s--, r == n.dom && s == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (s == 0 || r.nodeType != 1 || r.childNodes[s - 1].nodeName != "BR") && (l = Od(n, r, s, e));
5893
+ kn && s && r.nodeType == 1 && (c = r.childNodes[s - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && s--, r == n.dom && s == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (s == 0 || r.nodeType != 1 || r.childNodes[s - 1].nodeName != "BR") && (l = Od(n, r, s, e));
5894
5894
  }
5895
5895
  l == null && (l = Nd(n, o, e));
5896
5896
  let a = n.docView.nearestDesc(o, !0);
@@ -5910,7 +5910,7 @@ function $e(n, e) {
5910
5910
  }
5911
5911
  const Dd = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
5912
5912
  function oa(n, e, t) {
5913
- let { node: r, offset: s, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = gn || ye;
5913
+ let { node: r, offset: s, atom: i } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = kn || ye;
5914
5914
  if (r.nodeType == 3)
5915
5915
  if (o && (Dd.test(r.nodeValue) || (t < 0 ? !s : s == r.nodeValue.length))) {
5916
5916
  let a = $e(Ie(r, s, s), t);
@@ -6030,7 +6030,7 @@ function Bd(n, e, t) {
6030
6030
  return so == e && io == t ? oo : (so = e, io = t, oo = t == "up" || t == "down" ? Rd(n, e, t) : Ld(n, e, t));
6031
6031
  }
6032
6032
  const ke = 0, lo = 1, rt = 2, ve = 3;
6033
- class yn {
6033
+ class bn {
6034
6034
  constructor(e, t, r, s) {
6035
6035
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = s, this.dirty = ke, r.pmViewDesc = this;
6036
6036
  }
@@ -6374,7 +6374,7 @@ class yn {
6374
6374
  return !1;
6375
6375
  }
6376
6376
  }
6377
- class aa extends yn {
6377
+ class aa extends bn {
6378
6378
  constructor(e, t, r, s) {
6379
6379
  let i, o = t.type.toDOM;
6380
6380
  if (typeof o == "function" && (o = o(r, () => {
@@ -6417,7 +6417,7 @@ class aa extends yn {
6417
6417
  return this.widget.type.side;
6418
6418
  }
6419
6419
  }
6420
- class zd extends yn {
6420
+ class zd extends bn {
6421
6421
  constructor(e, t, r, s) {
6422
6422
  super(e, [], t, null), this.textDOM = r, this.text = s;
6423
6423
  }
@@ -6434,7 +6434,7 @@ class zd extends yn {
6434
6434
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
6435
6435
  }
6436
6436
  }
6437
- class mt extends yn {
6437
+ class mt extends bn {
6438
6438
  constructor(e, t, r, s, i) {
6439
6439
  super(e, [], r, s), this.mark = t, this.spec = i;
6440
6440
  }
@@ -6470,7 +6470,7 @@ class mt extends yn {
6470
6470
  this.spec.destroy && this.spec.destroy(), super.destroy();
6471
6471
  }
6472
6472
  }
6473
- class Ge extends yn {
6473
+ class Ge extends bn {
6474
6474
  constructor(e, t, r, s, i, o, l, a, c) {
6475
6475
  super(e, [], i, o), this.node = t, this.outerDeco = r, this.innerDeco = s, this.nodeDOM = l;
6476
6476
  }
@@ -6521,7 +6521,7 @@ class Ge extends yn {
6521
6521
  return e;
6522
6522
  }
6523
6523
  matchesNode(e, t, r) {
6524
- return this.dirty == ke && e.eq(this.node) && _n(t, this.outerDeco) && r.eq(this.innerDeco);
6524
+ return this.dirty == ke && e.eq(this.node) && jn(t, this.outerDeco) && r.eq(this.innerDeco);
6525
6525
  }
6526
6526
  get size() {
6527
6527
  return this.node.nodeSize;
@@ -6579,7 +6579,7 @@ class Ge extends yn {
6579
6579
  this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(s, this.posAtStart), this.dirty = ke;
6580
6580
  }
6581
6581
  updateOuterDeco(e) {
6582
- if (_n(e, this.outerDeco))
6582
+ if (jn(e, this.outerDeco))
6583
6583
  return;
6584
6584
  let t = this.nodeDOM.nodeType != 1, r = this.dom;
6585
6585
  this.dom = da(this.dom, this.nodeDOM, Ts(this.outerDeco, this.node, t), Ts(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
@@ -6644,7 +6644,7 @@ class Dr extends Ge {
6644
6644
  return this.node.text == e;
6645
6645
  }
6646
6646
  }
6647
- class ca extends yn {
6647
+ class ca extends bn {
6648
6648
  parseRule() {
6649
6649
  return { ignore: !0 };
6650
6650
  }
@@ -6711,22 +6711,22 @@ function ua(n, e, t) {
6711
6711
  r = co(r), s = !0;
6712
6712
  s && t.trackWrites == n && (t.trackWrites = null);
6713
6713
  }
6714
- const Jt = function(n) {
6714
+ const Gt = function(n) {
6715
6715
  n && (this.nodeName = n);
6716
6716
  };
6717
- Jt.prototype = /* @__PURE__ */ Object.create(null);
6718
- const st = [new Jt()];
6717
+ Gt.prototype = /* @__PURE__ */ Object.create(null);
6718
+ const st = [new Gt()];
6719
6719
  function Ts(n, e, t) {
6720
6720
  if (n.length == 0)
6721
6721
  return st;
6722
- let r = t ? st[0] : new Jt(), s = [r];
6722
+ let r = t ? st[0] : new Gt(), s = [r];
6723
6723
  for (let i = 0; i < n.length; i++) {
6724
6724
  let o = n[i].type.attrs;
6725
6725
  if (o) {
6726
- o.nodeName && s.push(r = new Jt(o.nodeName));
6726
+ o.nodeName && s.push(r = new Gt(o.nodeName));
6727
6727
  for (let l in o) {
6728
6728
  let a = o[l];
6729
- a != null && (t && s.length == 1 && s.push(r = new Jt(e.isInline ? "span" : "div")), l == "class" ? r.class = (r.class ? r.class + " " : "") + a : l == "style" ? r.style = (r.style ? r.style + ";" : "") + a : l != "nodeName" && (r[l] = a));
6729
+ a != null && (t && s.length == 1 && s.push(r = new Gt(e.isInline ? "span" : "div")), l == "class" ? r.class = (r.class ? r.class + " " : "") + a : l == "style" ? r.style = (r.style ? r.style + ";" : "") + a : l != "nodeName" && (r[l] = a));
6730
6730
  }
6731
6731
  }
6732
6732
  }
@@ -6771,7 +6771,7 @@ function Fd(n, e, t) {
6771
6771
  function fa(n, e, t) {
6772
6772
  return da(n, n, st, Ts(e, t, n.nodeType != 1));
6773
6773
  }
6774
- function _n(n, e) {
6774
+ function jn(n, e) {
6775
6775
  if (n.length != e.length)
6776
6776
  return !1;
6777
6777
  for (let t = 0; t < n.length; t++)
@@ -6874,7 +6874,7 @@ class Vd {
6874
6874
  let c = this.preMatch.matched.get(a);
6875
6875
  if (c != null && c != i)
6876
6876
  return !1;
6877
- let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != ve && _n(t, a.outerDeco));
6877
+ let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != ve && jn(t, a.outerDeco));
6878
6878
  if (!f && a.update(e, t, r, s))
6879
6879
  return this.destroyBetween(this.index, l), a.dom != u && (this.changed = !0), this.index++, !0;
6880
6880
  if (!f && (d = this.recreateWrapper(a, e, t, r, s, o)))
@@ -6887,7 +6887,7 @@ class Vd {
6887
6887
  // When a node with content is replaced by a different node with
6888
6888
  // identical content, move over its children.
6889
6889
  recreateWrapper(e, t, r, s, i, o) {
6890
- if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !_n(r, e.outerDeco) || !s.eq(e.innerDeco))
6890
+ if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !jn(r, e.outerDeco) || !s.eq(e.innerDeco))
6891
6891
  return null;
6892
6892
  let l = Ge.create(this.top, t, r, s, i, o);
6893
6893
  if (l.contentDOM) {
@@ -7200,7 +7200,7 @@ function go(n, e, t) {
7200
7200
  if (!i || i.isText)
7201
7201
  return !1;
7202
7202
  let l = e < 0 ? s.pos - i.nodeSize : s.pos;
7203
- return i.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? v.isSelectable(i) ? Fe(n, new v(e < 0 ? n.state.doc.resolve(s.pos - i.nodeSize) : s)) : gn ? Fe(n, new N(n.state.doc.resolve(e < 0 ? l : l + i.nodeSize))) : !1 : !1;
7203
+ return i.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? v.isSelectable(i) ? Fe(n, new v(e < 0 ? n.state.doc.resolve(s.pos - i.nodeSize) : s)) : kn ? Fe(n, new N(n.state.doc.resolve(e < 0 ? l : l + i.nodeSize))) : !1 : !1;
7204
7204
  }
7205
7205
  } else return !1;
7206
7206
  else {
@@ -7212,10 +7212,10 @@ function go(n, e, t) {
7212
7212
  }
7213
7213
  }
7214
7214
  }
7215
- function jn(n) {
7215
+ function Wn(n) {
7216
7216
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
7217
7217
  }
7218
- function Gt(n, e) {
7218
+ function Yt(n, e) {
7219
7219
  let t = n.pmViewDesc;
7220
7220
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
7221
7221
  }
@@ -7227,13 +7227,13 @@ function Gd(n) {
7227
7227
  if (!t)
7228
7228
  return;
7229
7229
  let s, i, o = !1;
7230
- for (ye && t.nodeType == 1 && r < jn(t) && Gt(t.childNodes[r], -1) && (o = !0); ; )
7230
+ for (ye && t.nodeType == 1 && r < Wn(t) && Yt(t.childNodes[r], -1) && (o = !0); ; )
7231
7231
  if (r > 0) {
7232
7232
  if (t.nodeType != 1)
7233
7233
  break;
7234
7234
  {
7235
7235
  let l = t.childNodes[r - 1];
7236
- if (Gt(l, -1))
7236
+ if (Yt(l, -1))
7237
7237
  s = t, i = --r;
7238
7238
  else if (l.nodeType == 3)
7239
7239
  t = l, r = t.nodeValue.length;
@@ -7245,10 +7245,10 @@ function Gd(n) {
7245
7245
  break;
7246
7246
  {
7247
7247
  let l = t.previousSibling;
7248
- for (; l && Gt(l, -1); )
7248
+ for (; l && Yt(l, -1); )
7249
7249
  s = t.parentNode, i = Y(l), l = l.previousSibling;
7250
7250
  if (l)
7251
- t = l, r = jn(t);
7251
+ t = l, r = Wn(t);
7252
7252
  else {
7253
7253
  if (t = t.parentNode, t == n.dom)
7254
7254
  break;
@@ -7262,13 +7262,13 @@ function Yd(n) {
7262
7262
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
7263
7263
  if (!t)
7264
7264
  return;
7265
- let s = jn(t), i, o;
7265
+ let s = Wn(t), i, o;
7266
7266
  for (; ; )
7267
7267
  if (r < s) {
7268
7268
  if (t.nodeType != 1)
7269
7269
  break;
7270
7270
  let l = t.childNodes[r];
7271
- if (Gt(l, 1))
7271
+ if (Yt(l, 1))
7272
7272
  i = t, o = ++r;
7273
7273
  else
7274
7274
  break;
@@ -7277,10 +7277,10 @@ function Yd(n) {
7277
7277
  break;
7278
7278
  {
7279
7279
  let l = t.nextSibling;
7280
- for (; l && Gt(l, 1); )
7280
+ for (; l && Yt(l, 1); )
7281
7281
  i = l.parentNode, o = Y(l) + 1, l = l.nextSibling;
7282
7282
  if (l)
7283
- t = l, r = 0, s = jn(t);
7283
+ t = l, r = 0, s = Wn(t);
7284
7284
  else {
7285
7285
  if (t = t.parentNode, t == n.dom)
7286
7286
  break;
@@ -7295,7 +7295,7 @@ function ga(n) {
7295
7295
  return e && e.node && e.node.isBlock;
7296
7296
  }
7297
7297
  function Xd(n, e) {
7298
- for (; n && e == n.childNodes.length && !mn(n); )
7298
+ for (; n && e == n.childNodes.length && !yn(n); )
7299
7299
  e = Y(n) + 1, n = n.parentNode;
7300
7300
  for (; n && e < n.childNodes.length; ) {
7301
7301
  let t = n.childNodes[e];
@@ -7307,7 +7307,7 @@ function Xd(n, e) {
7307
7307
  }
7308
7308
  }
7309
7309
  function Qd(n, e) {
7310
- for (; n && !e && !mn(n); )
7310
+ for (; n && !e && !yn(n); )
7311
7311
  e = Y(n), n = n.parentNode;
7312
7312
  for (; n && e; ) {
7313
7313
  let t = n.childNodes[e - 1];
@@ -7481,7 +7481,7 @@ function ya(n, e, t, r, s) {
7481
7481
  } else
7482
7482
  n.someProp("transformPastedHTML", (d) => {
7483
7483
  t = d(t, n);
7484
- }), o = of(t), gn && lf(o);
7484
+ }), o = of(t), kn && lf(o);
7485
7485
  let c = o && o.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
7486
7486
  if (u && u[3])
7487
7487
  for (let d = +u[3]; d > 0; d--) {
@@ -7764,7 +7764,7 @@ function Sf(n, e, t) {
7764
7764
  }
7765
7765
  }
7766
7766
  function li(n) {
7767
- return Wn(n);
7767
+ return Kn(n);
7768
7768
  }
7769
7769
  const Ca = me ? "metaKey" : "ctrlKey";
7770
7770
  re.mousedown = (n, e) => {
@@ -7837,8 +7837,8 @@ se.compositionstart = se.compositionupdate = (n) => {
7837
7837
  n.domObserver.flush();
7838
7838
  let { state: e } = n, t = e.selection.$to;
7839
7839
  if (e.selection instanceof N && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Q && ta && Mf(n)))
7840
- n.markCursor = n.state.storedMarks || t.marks(), Wn(n, !0), n.markCursor = null;
7841
- else if (Wn(n, !e.selection.empty), ye && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
7840
+ n.markCursor = n.state.storedMarks || t.marks(), Kn(n, !0), n.markCursor = null;
7841
+ else if (Kn(n, !e.selection.empty), ye && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
7842
7842
  let r = n.domSelectionRange();
7843
7843
  for (let s = r.focusNode, i = r.focusOffset; s && s.nodeType == 1 && i != 0; ) {
7844
7844
  let o = i < 0 ? s.lastChild : s.childNodes[i - 1];
@@ -7867,7 +7867,7 @@ se.compositionend = (n, e) => {
7867
7867
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.badSafariComposition ? n.domObserver.forceFlush() : n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, Ta(n, 20));
7868
7868
  };
7869
7869
  function Ta(n, e) {
7870
- clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => Wn(n), e));
7870
+ clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => Kn(n), e));
7871
7871
  }
7872
7872
  function va(n) {
7873
7873
  for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = vf()); n.input.compositionNodes.length > 0; )
@@ -7896,7 +7896,7 @@ function vf() {
7896
7896
  let n = document.createEvent("Event");
7897
7897
  return n.initEvent("event", !0, !0), n.timeStamp;
7898
7898
  }
7899
- function Wn(n, e = !1) {
7899
+ function Kn(n, e = !1) {
7900
7900
  if (!(De && n.domObserver.flushingSoon >= 0)) {
7901
7901
  if (n.domObserver.forceFlush(), va(n), e || n.docView && n.docView.dirty) {
7902
7902
  let t = ni(n), r = n.state.selection;
@@ -7915,12 +7915,12 @@ function Ef(n, e) {
7915
7915
  t.parentNode && t.parentNode.removeChild(t), n.focus();
7916
7916
  }, 50);
7917
7917
  }
7918
- const ln = le && Je < 15 || Rt && Sd < 604;
7918
+ const cn = le && Je < 15 || Rt && Sd < 604;
7919
7919
  re.copy = se.cut = (n, e) => {
7920
7920
  let t = e, r = n.state.selection, s = t.type == "cut";
7921
7921
  if (r.empty)
7922
7922
  return;
7923
- let i = ln ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = si(n, o);
7923
+ let i = cn ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = si(n, o);
7924
7924
  i ? (t.preventDefault(), i.clearData(), i.setData("text/html", l.innerHTML), i.setData("text/plain", a)) : Ef(n, l), s && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
7925
7925
  };
7926
7926
  function Af(n) {
@@ -7933,10 +7933,10 @@ function Nf(n, e) {
7933
7933
  t || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
7934
7934
  let s = n.input.shiftKey && n.input.lastKeyCode != 45;
7935
7935
  setTimeout(() => {
7936
- n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? an(n, r.value, null, s, e) : an(n, r.textContent, r.innerHTML, s, e);
7936
+ n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? un(n, r.value, null, s, e) : un(n, r.textContent, r.innerHTML, s, e);
7937
7937
  }, 50);
7938
7938
  }
7939
- function an(n, e, t, r, s) {
7939
+ function un(n, e, t, r, s) {
7940
7940
  let i = ya(n, e, t, r, n.state.selection.$from);
7941
7941
  if (n.someProp("handlePaste", (a) => a(n, s, i || S.empty)))
7942
7942
  return !0;
@@ -7956,8 +7956,8 @@ se.paste = (n, e) => {
7956
7956
  let t = e;
7957
7957
  if (n.composing && !De)
7958
7958
  return;
7959
- let r = ln ? null : t.clipboardData, s = n.input.shiftKey && n.input.lastKeyCode != 45;
7960
- r && an(n, Ea(r), r.getData("text/html"), s, t) ? t.preventDefault() : Nf(n, t);
7959
+ let r = cn ? null : t.clipboardData, s = n.input.shiftKey && n.input.lastKeyCode != 45;
7960
+ r && un(n, Ea(r), r.getData("text/html"), s, t) ? t.preventDefault() : Nf(n, t);
7961
7961
  };
7962
7962
  class Aa {
7963
7963
  constructor(e, t, r) {
@@ -7983,7 +7983,7 @@ re.dragstart = (n, e) => {
7983
7983
  }
7984
7984
  }
7985
7985
  let l = (o || n.state.selection).content(), { dom: a, text: c, slice: u } = si(n, l);
7986
- (!t.dataTransfer.files.length || !Q || ea > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(ln ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", ln || t.dataTransfer.setData("text/plain", c), n.dragging = new Aa(u, Na(n, t), o);
7986
+ (!t.dataTransfer.files.length || !Q || ea > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(cn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", cn || t.dataTransfer.setData("text/plain", c), n.dragging = new Aa(u, Na(n, t), o);
7987
7987
  };
7988
7988
  re.dragend = (n) => {
7989
7989
  let e = n.dragging;
@@ -8008,7 +8008,7 @@ function If(n, e, t) {
8008
8008
  let s = n.state.doc.resolve(r.pos), i = t && t.slice;
8009
8009
  i ? n.someProp("transformPasted", (h) => {
8010
8010
  i = h(i, n, !1);
8011
- }) : i = ya(n, Ea(e.dataTransfer), ln ? null : e.dataTransfer.getData("text/html"), !1, s);
8011
+ }) : i = ya(n, Ea(e.dataTransfer), cn ? null : e.dataTransfer.getData("text/html"), !1, s);
8012
8012
  let o = !!(t && Na(n, e));
8013
8013
  if (n.someProp("handleDrop", (h) => h(n, e, i || S.empty, o))) {
8014
8014
  e.preventDefault();
@@ -8059,7 +8059,7 @@ re.beforeinput = (n, e) => {
8059
8059
  };
8060
8060
  for (let n in se)
8061
8061
  re[n] = se[n];
8062
- function cn(n, e) {
8062
+ function dn(n, e) {
8063
8063
  if (n == e)
8064
8064
  return !0;
8065
8065
  for (let t in n)
@@ -8070,7 +8070,7 @@ function cn(n, e) {
8070
8070
  return !1;
8071
8071
  return !0;
8072
8072
  }
8073
- class Kn {
8073
+ class Un {
8074
8074
  constructor(e, t) {
8075
8075
  this.toDOM = e, this.spec = t || ct, this.side = this.spec.side || 0;
8076
8076
  }
@@ -8082,7 +8082,7 @@ class Kn {
8082
8082
  return !0;
8083
8083
  }
8084
8084
  eq(e) {
8085
- return this == e || e instanceof Kn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && cn(this.spec, e.spec));
8085
+ return this == e || e instanceof Un && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && dn(this.spec, e.spec));
8086
8086
  }
8087
8087
  destroy(e) {
8088
8088
  this.spec.destroy && this.spec.destroy(e);
@@ -8100,7 +8100,7 @@ class Ye {
8100
8100
  return t.from < t.to;
8101
8101
  }
8102
8102
  eq(e) {
8103
- return this == e || e instanceof Ye && cn(this.attrs, e.attrs) && cn(this.spec, e.spec);
8103
+ return this == e || e instanceof Ye && dn(this.attrs, e.attrs) && dn(this.spec, e.spec);
8104
8104
  }
8105
8105
  static is(e) {
8106
8106
  return e.type instanceof Ye;
@@ -8124,7 +8124,7 @@ class ai {
8124
8124
  return s == t.from && !(i = e.child(r)).isText && s + i.nodeSize == t.to;
8125
8125
  }
8126
8126
  eq(e) {
8127
- return this == e || e instanceof ai && cn(this.attrs, e.attrs) && cn(this.spec, e.spec);
8127
+ return this == e || e instanceof ai && dn(this.attrs, e.attrs) && dn(this.spec, e.spec);
8128
8128
  }
8129
8129
  destroy() {
8130
8130
  }
@@ -8163,7 +8163,7 @@ class ne {
8163
8163
  widget's current document position.
8164
8164
  */
8165
8165
  static widget(e, t, r) {
8166
- return new ne(e, e, new Kn(t, r));
8166
+ return new ne(e, e, new Un(t, r));
8167
8167
  }
8168
8168
  /**
8169
8169
  Creates an inline decoration, which adds the given attributes to
@@ -8197,7 +8197,7 @@ class ne {
8197
8197
  @internal
8198
8198
  */
8199
8199
  get widget() {
8200
- return this.type instanceof Kn;
8200
+ return this.type instanceof Un;
8201
8201
  }
8202
8202
  }
8203
8203
  const Tt = [], ct = {};
@@ -8214,7 +8214,7 @@ class z {
8214
8214
  you must make a copy if you want need to preserve that.
8215
8215
  */
8216
8216
  static create(e, t) {
8217
- return t.length ? Un(t, e, 0, ct) : Z;
8217
+ return t.length ? qn(t, e, 0, ct) : Z;
8218
8218
  }
8219
8219
  /**
8220
8220
  Find all decorations in this set which touch the given range
@@ -8273,7 +8273,7 @@ class z {
8273
8273
  if (u = Ia(t, l, c)) {
8274
8274
  for (s || (s = this.children.slice()); i < s.length && s[i] < a; )
8275
8275
  i += 3;
8276
- s[i] == a ? s[i + 2] = s[i + 2].addInner(l, u, c + 1) : s.splice(i, 0, a, a + l.nodeSize, Un(u, l, c + 1, ct)), i += 3;
8276
+ s[i] == a ? s[i + 2] = s[i + 2].addInner(l, u, c + 1) : s.splice(i, 0, a, a + l.nodeSize, qn(u, l, c + 1, ct)), i += 3;
8277
8277
  }
8278
8278
  });
8279
8279
  let o = Oa(i ? Da(t) : t, -r);
@@ -8469,7 +8469,7 @@ function Df(n, e, t, r, s, i, o) {
8469
8469
  a = !0;
8470
8470
  }
8471
8471
  if (a) {
8472
- let c = Rf(l, n, e, t, s, i, o), u = Un(c, r, 0, o);
8472
+ let c = Rf(l, n, e, t, s, i, o), u = qn(c, r, 0, o);
8473
8473
  e = u.local;
8474
8474
  for (let d = 0; d < l.length; d += 3)
8475
8475
  l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
@@ -8519,13 +8519,13 @@ function Da(n) {
8519
8519
  n[t] != null && e.push(n[t]);
8520
8520
  return e;
8521
8521
  }
8522
- function Un(n, e, t, r) {
8522
+ function qn(n, e, t, r) {
8523
8523
  let s = [], i = !1;
8524
8524
  e.forEach((l, a) => {
8525
8525
  let c = Ia(n, l, a + t);
8526
8526
  if (c) {
8527
8527
  i = !0;
8528
- let u = Un(c, l, t + a + 1, r);
8528
+ let u = qn(c, l, t + a + 1, r);
8529
8529
  u != Z && s.push(a, a + l.nodeSize, u);
8530
8530
  }
8531
8531
  });
@@ -9261,13 +9261,13 @@ class Ra {
9261
9261
  [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
9262
9262
  */
9263
9263
  pasteHTML(e, t) {
9264
- return an(this, "", e, !1, t || new ClipboardEvent("paste"));
9264
+ return un(this, "", e, !1, t || new ClipboardEvent("paste"));
9265
9265
  }
9266
9266
  /**
9267
9267
  Run the editor's paste logic with the given plain-text input.
9268
9268
  */
9269
9269
  pasteText(e, t) {
9270
- return an(this, e, null, !0, t || new ClipboardEvent("paste"));
9270
+ return un(this, e, null, !0, t || new ClipboardEvent("paste"));
9271
9271
  }
9272
9272
  /**
9273
9273
  Serialize the given slice as it would be if it was copied from
@@ -9417,7 +9417,7 @@ var Xe = {
9417
9417
  220: "\\",
9418
9418
  221: "]",
9419
9419
  222: "'"
9420
- }, qn = {
9420
+ }, Jn = {
9421
9421
  48: ")",
9422
9422
  49: "!",
9423
9423
  50: "@",
@@ -9446,10 +9446,10 @@ var Xe = {
9446
9446
  for (var X = 0; X < 10; X++) Xe[48 + X] = Xe[96 + X] = String(X);
9447
9447
  for (var X = 1; X <= 24; X++) Xe[X + 111] = "F" + X;
9448
9448
  for (var X = 65; X <= 90; X++)
9449
- Xe[X] = String.fromCharCode(X + 32), qn[X] = String.fromCharCode(X);
9450
- for (var ts in Xe) qn.hasOwnProperty(ts) || (qn[ts] = Xe[ts]);
9449
+ Xe[X] = String.fromCharCode(X + 32), Jn[X] = String.fromCharCode(X);
9450
+ for (var ts in Xe) Jn.hasOwnProperty(ts) || (Jn[ts] = Xe[ts]);
9451
9451
  function Zf(n) {
9452
- var e = Xf && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Qf && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? qn : Xe)[n.keyCode] || n.key || "Unidentified";
9452
+ var e = Xf && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Qf && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Jn : Xe)[n.keyCode] || n.key || "Unidentified";
9453
9453
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
9454
9454
  }
9455
9455
  const eh = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), th = typeof navigator < "u" && /Win/.test(navigator.platform);
@@ -9733,12 +9733,12 @@ var hh = (n) => ({ tr: e, state: t, dispatch: r }) => {
9733
9733
  function di(n) {
9734
9734
  return Object.prototype.toString.call(n) === "[object RegExp]";
9735
9735
  }
9736
- function Jn(n, e, t = { strict: !0 }) {
9736
+ function Gn(n, e, t = { strict: !0 }) {
9737
9737
  const r = Object.keys(e);
9738
9738
  return r.length ? r.every((s) => t.strict ? e[s] === n[s] : di(e[s]) ? e[s].test(n[s]) : e[s] === n[s]) : !0;
9739
9739
  }
9740
9740
  function Ba(n, e, t = {}) {
9741
- return n.find((r) => r.type === e && Jn(
9741
+ return n.find((r) => r.type === e && Gn(
9742
9742
  // Only check equality for the attributes that are provided
9743
9743
  Object.fromEntries(Object.keys(t).map((s) => [s, r.attrs[s]])),
9744
9744
  t
@@ -9809,7 +9809,7 @@ function $a(n, e = null) {
9809
9809
  function Lo() {
9810
9810
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
9811
9811
  }
9812
- function Gn() {
9812
+ function Yn() {
9813
9813
  return ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || // iPad on iOS 13 detection
9814
9814
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
9815
9815
  }
@@ -9822,7 +9822,7 @@ var Sh = (n = null, e = {}) => ({ editor: t, view: r, tr: s, dispatch: i }) => {
9822
9822
  ...e
9823
9823
  };
9824
9824
  const o = () => {
9825
- (Gn() || Lo()) && r.dom.focus(), xh() && !Gn() && !Lo() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
9825
+ (Yn() || Lo()) && r.dom.focus(), xh() && !Yn() && !Lo() && r.dom.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
9826
9826
  t.isDestroyed || (r.focus(), e?.scrollIntoView && t.commands.scrollIntoView());
9827
9827
  });
9828
9828
  };
@@ -9844,13 +9844,13 @@ var Sh = (n = null, e = {}) => ({ editor: t, view: r, tr: s, dispatch: i }) => {
9844
9844
  }
9845
9845
  return n;
9846
9846
  };
9847
- function Cn(n) {
9847
+ function Tn(n) {
9848
9848
  if (typeof window > "u")
9849
9849
  throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");
9850
9850
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
9851
9851
  return Fa(t);
9852
9852
  }
9853
- function un(n, e, t) {
9853
+ function fn(n, e, t) {
9854
9854
  if (n instanceof Se || n instanceof k)
9855
9855
  return n;
9856
9856
  t = {
@@ -9868,7 +9868,7 @@ function un(n, e, t) {
9868
9868
  } catch (i) {
9869
9869
  if (t.errorOnInvalidContent)
9870
9870
  throw new Error("[tiptap error]: Invalid JSON content", { cause: i });
9871
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", i), un("", e, t);
9871
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", i), fn("", e, t);
9872
9872
  }
9873
9873
  if (s) {
9874
9874
  if (t.errorOnInvalidContent) {
@@ -9891,15 +9891,15 @@ function un(n, e, t) {
9891
9891
  }
9892
9892
  })
9893
9893
  });
9894
- if (t.slice ? qe.fromSchema(a).parseSlice(Cn(n), t.parseOptions) : qe.fromSchema(a).parse(Cn(n), t.parseOptions), t.errorOnInvalidContent && o)
9894
+ if (t.slice ? qe.fromSchema(a).parseSlice(Tn(n), t.parseOptions) : qe.fromSchema(a).parse(Tn(n), t.parseOptions), t.errorOnInvalidContent && o)
9895
9895
  throw new Error("[tiptap error]: Invalid HTML content", {
9896
9896
  cause: new Error(`Invalid element found: ${l}`)
9897
9897
  });
9898
9898
  }
9899
9899
  const i = qe.fromSchema(e);
9900
- return t.slice ? i.parseSlice(Cn(n), t.parseOptions).content : i.parse(Cn(n), t.parseOptions);
9900
+ return t.slice ? i.parseSlice(Tn(n), t.parseOptions).content : i.parse(Tn(n), t.parseOptions);
9901
9901
  }
9902
- return un("", e, t);
9902
+ return fn("", e, t);
9903
9903
  }
9904
9904
  function Mh(n, e, t) {
9905
9905
  const r = n.steps.length - 1;
@@ -9939,7 +9939,7 @@ var Th = (n) => !("type" in n), vh = (n, e, t) => ({ tr: r, dispatch: s, editor:
9939
9939
  };
9940
9940
  if (!t.errorOnInvalidContent && !i.options.enableContentCheck && i.options.emitContentError)
9941
9941
  try {
9942
- un(e, i.schema, {
9942
+ fn(e, i.schema, {
9943
9943
  parseOptions: c,
9944
9944
  errorOnInvalidContent: !0
9945
9945
  });
@@ -9947,7 +9947,7 @@ var Th = (n) => !("type" in n), vh = (n, e, t) => ({ tr: r, dispatch: s, editor:
9947
9947
  a(g);
9948
9948
  }
9949
9949
  try {
9950
- l = un(e, i.schema, {
9950
+ l = fn(e, i.schema, {
9951
9951
  parseOptions: c,
9952
9952
  errorOnInvalidContent: (o = t.errorOnInvalidContent) != null ? o : i.options.enableContentCheck
9953
9953
  });
@@ -10014,7 +10014,7 @@ function Lh(n) {
10014
10014
  else if (/^s(hift)?$/i.test(a))
10015
10015
  i = !0;
10016
10016
  else if (/^mod$/i.test(a))
10017
- Gn() || Va() ? o = !0 : s = !0;
10017
+ Yn() || Va() ? o = !0 : s = !0;
10018
10018
  else
10019
10019
  throw new Error(`Unrecognized modifier name: ${a}`);
10020
10020
  }
@@ -10049,7 +10049,7 @@ function Qe(n, e, t = {}) {
10049
10049
  to: p
10050
10050
  });
10051
10051
  });
10052
- const a = s - r, c = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) => Jn(d.node.attrs, t, { strict: !1 }));
10052
+ const a = s - r, c = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) => Gn(d.node.attrs, t, { strict: !1 }));
10053
10053
  return i ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= a;
10054
10054
  }
10055
10055
  var zh = (n, e = {}) => ({ state: t, dispatch: r }) => {
@@ -10091,7 +10091,7 @@ var Hh = (n, e) => ({ tr: t, state: r, dispatch: s }) => {
10091
10091
  return !0;
10092
10092
  }, Wh = () => ({ state: n, dispatch: e }) => Wl(n, e), Kh = () => ({ state: n, dispatch: e }) => ql(n, e), Uh = () => ({ state: n, dispatch: e }) => nd(n, e), qh = () => ({ state: n, dispatch: e }) => id(n, e), Jh = () => ({ state: n, dispatch: e }) => sd(n, e);
10093
10093
  function Is(n, e, t = {}, r = {}) {
10094
- return un(n, e, {
10094
+ return fn(n, e, {
10095
10095
  slice: !1,
10096
10096
  parseOptions: t,
10097
10097
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -10204,56 +10204,57 @@ function Wa(n) {
10204
10204
  parseHTML: null,
10205
10205
  keepOnSplit: !0,
10206
10206
  isRequired: !1
10207
- };
10208
- return n.forEach((o) => {
10209
- const l = {
10210
- name: o.name,
10211
- options: o.options,
10212
- storage: o.storage,
10207
+ }, o = t.filter((c) => c.name !== "text").map((c) => c.name), l = r.map((c) => c.name), a = [...o, ...l];
10208
+ return n.forEach((c) => {
10209
+ const u = {
10210
+ name: c.name,
10211
+ options: c.options,
10212
+ storage: c.storage,
10213
10213
  extensions: s
10214
- }, a = T(
10215
- o,
10214
+ }, d = T(
10215
+ c,
10216
10216
  "addGlobalAttributes",
10217
- l
10217
+ u
10218
10218
  );
10219
- if (!a)
10219
+ if (!d)
10220
10220
  return;
10221
- a().forEach((u) => {
10222
- u.types.forEach((d) => {
10223
- Object.entries(u.attributes).forEach(([f, h]) => {
10221
+ d().forEach((h) => {
10222
+ let p;
10223
+ Array.isArray(h.types) ? p = h.types : h.types === "*" ? p = a : h.types === "nodes" ? p = o : h.types === "marks" ? p = l : p = [], p.forEach((m) => {
10224
+ Object.entries(h.attributes).forEach(([g, y]) => {
10224
10225
  e.push({
10225
- type: d,
10226
- name: f,
10226
+ type: m,
10227
+ name: g,
10227
10228
  attribute: {
10228
10229
  ...i,
10229
- ...h
10230
+ ...y
10230
10231
  }
10231
10232
  });
10232
10233
  });
10233
10234
  });
10234
10235
  });
10235
- }), s.forEach((o) => {
10236
- const l = {
10237
- name: o.name,
10238
- options: o.options,
10239
- storage: o.storage
10240
- }, a = T(
10241
- o,
10236
+ }), s.forEach((c) => {
10237
+ const u = {
10238
+ name: c.name,
10239
+ options: c.options,
10240
+ storage: c.storage
10241
+ }, d = T(
10242
+ c,
10242
10243
  "addAttributes",
10243
- l
10244
+ u
10244
10245
  );
10245
- if (!a)
10246
+ if (!d)
10246
10247
  return;
10247
- const c = a();
10248
- Object.entries(c).forEach(([u, d]) => {
10249
- const f = {
10248
+ const f = d();
10249
+ Object.entries(f).forEach(([h, p]) => {
10250
+ const m = {
10250
10251
  ...i,
10251
- ...d
10252
+ ...p
10252
10253
  };
10253
- typeof f?.default == "function" && (f.default = f.default()), f?.isRequired && f?.default === void 0 && delete f.default, e.push({
10254
- type: o.name,
10255
- name: u,
10256
- attribute: f
10254
+ typeof m?.default == "function" && (m.default = m.default()), m?.isRequired && m?.default === void 0 && delete m.default, e.push({
10255
+ type: c.name,
10256
+ name: h,
10257
+ attribute: m
10257
10258
  });
10258
10259
  });
10259
10260
  }), e;
@@ -10283,7 +10284,7 @@ function W(...n) {
10283
10284
  }), r;
10284
10285
  }, {});
10285
10286
  }
10286
- function dn(n, e) {
10287
+ function hn(n, e) {
10287
10288
  return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
10288
10289
  [t.name]: n.attrs[t.name]
10289
10290
  }).reduce((t, r) => W(t, r), {});
@@ -10359,7 +10360,7 @@ function tp(n, e) {
10359
10360
  const m = T(c, "renderHTML", d);
10360
10361
  m && (h.toDOM = (y) => m({
10361
10362
  node: y,
10362
- HTMLAttributes: dn(y, u)
10363
+ HTMLAttributes: hn(y, u)
10363
10364
  }));
10364
10365
  const g = T(c, "renderText", d);
10365
10366
  return g && (h.toText = g), [c.name, h];
@@ -10392,7 +10393,7 @@ function tp(n, e) {
10392
10393
  const m = T(c, "renderHTML", d);
10393
10394
  return m && (h.toDOM = (g) => m({
10394
10395
  mark: g,
10395
- HTMLAttributes: dn(g, u)
10396
+ HTMLAttributes: hn(g, u)
10396
10397
  })), [c.name, h];
10397
10398
  })
10398
10399
  );
@@ -10406,14 +10407,14 @@ function np(n) {
10406
10407
  const e = n.filter((t, r) => n.indexOf(t) !== r);
10407
10408
  return Array.from(new Set(e));
10408
10409
  }
10409
- function Yn(n) {
10410
+ function Xt(n) {
10410
10411
  return n.sort((t, r) => {
10411
10412
  const s = T(t, "priority") || 100, i = T(r, "priority") || 100;
10412
10413
  return s > i ? -1 : s < i ? 1 : 0;
10413
10414
  });
10414
10415
  }
10415
10416
  function Ka(n) {
10416
- const e = Yn(hi(n)), t = np(e.map((r) => r.name));
10417
+ const e = Xt(hi(n)), t = np(e.map((r) => r.name));
10417
10418
  return t.length && console.warn(
10418
10419
  `[tiptap warn]: Duplicate extension names found: [${t.map((r) => `'${r}'`).join(", ")}]. This can lead to issues.`
10419
10420
  ), e;
@@ -10532,10 +10533,10 @@ var lp = (n, e, t, r = 20) => {
10532
10533
  }
10533
10534
  return [o, i];
10534
10535
  };
10535
- function Mn(n, e) {
10536
+ function Vt(n, e) {
10536
10537
  return e.nodes[n] || e.marks[n] || null;
10537
10538
  }
10538
- function Pn(n, e, t) {
10539
+ function Ln(n, e, t) {
10539
10540
  return Object.fromEntries(
10540
10541
  Object.entries(t).filter(([r]) => {
10541
10542
  const s = n.find((i) => i.type === e && i.name === r);
@@ -10560,12 +10561,14 @@ var ap = (n, e = 500) => {
10560
10561
  function Ds(n, e, t = {}) {
10561
10562
  const { empty: r, ranges: s } = n.selection, i = e ? Le(e, n.schema) : null;
10562
10563
  if (r)
10563
- return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => i ? i.name === d.type.name : !0).find((d) => Jn(d.attrs, t, { strict: !1 }));
10564
+ return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => i ? i.name === d.type.name : !0).find((d) => Gn(d.attrs, t, { strict: !1 }));
10564
10565
  let o = 0;
10565
10566
  const l = [];
10566
10567
  if (s.forEach(({ $from: d, $to: f }) => {
10567
10568
  const h = d.pos, p = f.pos;
10568
10569
  n.doc.nodesBetween(h, p, (m, g) => {
10570
+ if (i && m.inlineContent && !m.type.allowsMarkType(i))
10571
+ return !1;
10569
10572
  if (!m.isText && !m.marks.length)
10570
10573
  return;
10571
10574
  const y = Math.max(h, g), x = Math.min(p, g + m.nodeSize), C = x - y;
@@ -10579,7 +10582,7 @@ function Ds(n, e, t = {}) {
10579
10582
  });
10580
10583
  }), o === 0)
10581
10584
  return !1;
10582
- const a = l.filter((d) => i ? i.name === d.mark.type.name : !0).filter((d) => Jn(d.mark.attrs, t, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = l.filter((d) => i ? d.mark.type !== i && d.mark.type.excludes(i) : !0).reduce((d, f) => d + f.to - f.from, 0);
10585
+ const a = l.filter((d) => i ? i.name === d.mark.type.name : !0).filter((d) => Gn(d.mark.attrs, t, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = l.filter((d) => i ? d.mark.type !== i && d.mark.type.excludes(i) : !0).reduce((d, f) => d + f.to - f.from, 0);
10583
10586
  return (a > 0 ? a + c : a) >= o;
10584
10587
  }
10585
10588
  function cp(n, e, t = {}) {
@@ -10761,7 +10764,7 @@ function _o(n, e) {
10761
10764
  }
10762
10765
  }
10763
10766
  var wp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: s }) => {
10764
- const { selection: i, doc: o } = e, { $from: l, $to: a } = i, c = s.extensionManager.attributes, u = Pn(c, l.node().type.name, l.node().attrs);
10767
+ const { selection: i, doc: o } = e, { $from: l, $to: a } = i, c = s.extensionManager.attributes, u = Ln(c, l.node().type.name, l.node().attrs);
10765
10768
  if (i instanceof v && i.node.isBlock)
10766
10769
  return !l.parentOffset || !Re(o, l.pos) ? !1 : (r && (n && _o(t, s.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
10767
10770
  if (!l.parent.isBlock)
@@ -10807,7 +10810,7 @@ var wp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
10807
10810
  // eslint-disable-next-line no-nested-ternary
10808
10811
  a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3
10809
10812
  ), E = {
10810
- ...Pn(f, a.node().type.name, a.node().attrs),
10813
+ ...Ln(f, a.node().type.name, a.node().attrs),
10811
10814
  ...e
10812
10815
  }, w = ((o = l.contentMatch.defaultType) == null ? void 0 : o.createAndFill(E)) || void 0;
10813
10816
  y = y.append(k.from(l.createAndFill(null, w) || void 0));
@@ -10823,10 +10826,10 @@ var wp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
10823
10826
  return !0;
10824
10827
  }
10825
10828
  const h = c.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p = {
10826
- ...Pn(f, d.type.name, d.attrs),
10829
+ ...Ln(f, d.type.name, d.attrs),
10827
10830
  ...e
10828
10831
  }, m = {
10829
- ...Pn(f, a.node().type.name, a.node().attrs),
10832
+ ...Ln(f, a.node().type.name, a.node().attrs),
10830
10833
  ...e
10831
10834
  };
10832
10835
  t.delete(a.pos, c.pos);
@@ -11025,7 +11028,7 @@ var wp = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
11025
11028
  const r = [t.text];
11026
11029
  return r.index = t.index, r.input = n, r.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(t.replaceWith)), r;
11027
11030
  };
11028
- function Tn(n) {
11031
+ function vn(n) {
11029
11032
  var e;
11030
11033
  const { editor: t, from: r, to: s, text: i, rules: o, plugin: l } = n, { view: a } = t;
11031
11034
  if (a.composing)
@@ -11084,7 +11087,7 @@ function zp(n) {
11084
11087
  let { text: u } = a;
11085
11088
  typeof u == "string" ? u = u : u = pi(k.from(u), o.schema);
11086
11089
  const { from: d } = a, f = d + u.length;
11087
- Tn({
11090
+ vn({
11088
11091
  editor: e,
11089
11092
  from: d,
11090
11093
  to: f,
@@ -11097,7 +11100,7 @@ function zp(n) {
11097
11100
  },
11098
11101
  props: {
11099
11102
  handleTextInput(s, i, o, l) {
11100
- return Tn({
11103
+ return vn({
11101
11104
  editor: e,
11102
11105
  from: i,
11103
11106
  to: o,
@@ -11109,7 +11112,7 @@ function zp(n) {
11109
11112
  handleDOMEvents: {
11110
11113
  compositionend: (s) => (setTimeout(() => {
11111
11114
  const { $cursor: i } = s.state.selection;
11112
- i && Tn({
11115
+ i && vn({
11113
11116
  editor: e,
11114
11117
  from: i.pos,
11115
11118
  to: i.pos,
@@ -11125,7 +11128,7 @@ function zp(n) {
11125
11128
  if (i.key !== "Enter")
11126
11129
  return !1;
11127
11130
  const { $cursor: o } = s.state.selection;
11128
- return o ? Tn({
11131
+ return o ? vn({
11129
11132
  editor: e,
11130
11133
  from: o.pos,
11131
11134
  to: o.pos,
@@ -11144,13 +11147,13 @@ function zp(n) {
11144
11147
  function $p(n) {
11145
11148
  return Object.prototype.toString.call(n).slice(8, -1);
11146
11149
  }
11147
- function vn(n) {
11150
+ function En(n) {
11148
11151
  return $p(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
11149
11152
  }
11150
11153
  function Za(n, e) {
11151
11154
  const t = { ...n };
11152
- return vn(n) && vn(e) && Object.keys(e).forEach((r) => {
11153
- vn(e[r]) && vn(n[r]) ? t[r] = Za(n[r], e[r]) : t[r] = e[r];
11155
+ return En(n) && En(e) && Object.keys(e).forEach((r) => {
11156
+ En(e[r]) && En(n[r]) ? t[r] = Za(n[r], e[r]) : t[r] = e[r];
11154
11157
  }), t;
11155
11158
  }
11156
11159
  var gi = class {
@@ -11272,7 +11275,7 @@ function _p(n) {
11272
11275
  });
11273
11276
  }), d.every((h) => h !== null);
11274
11277
  }
11275
- var En = null, jp = (n) => {
11278
+ var An = null, jp = (n) => {
11276
11279
  var e;
11277
11280
  const t = new ClipboardEvent("paste", {
11278
11281
  clipboardData: new DataTransfer()
@@ -11320,9 +11323,9 @@ function Wp(n) {
11320
11323
  view(d) {
11321
11324
  const f = (p) => {
11322
11325
  var m;
11323
- r = (m = d.dom.parentElement) != null && m.contains(p.target) ? d.dom.parentElement : null, r && (En = e);
11326
+ r = (m = d.dom.parentElement) != null && m.contains(p.target) ? d.dom.parentElement : null, r && (An = e);
11324
11327
  }, h = () => {
11325
- En && (En = null);
11328
+ An && (An = null);
11326
11329
  };
11327
11330
  return window.addEventListener("dragstart", f), window.addEventListener("dragend", h), {
11328
11331
  destroy() {
@@ -11334,7 +11337,7 @@ function Wp(n) {
11334
11337
  handleDOMEvents: {
11335
11338
  drop: (d, f) => {
11336
11339
  if (i = r === d.dom.parentElement, l = f, !i) {
11337
- const h = En;
11340
+ const h = An;
11338
11341
  h?.isEditable && setTimeout(() => {
11339
11342
  const p = h.state.selection;
11340
11343
  p && h.commands.deleteRange({ from: p.from, to: p.to });
@@ -11392,7 +11395,7 @@ var Vr = class {
11392
11395
  options: e.options,
11393
11396
  storage: this.editor.extensionStorage[e.name],
11394
11397
  editor: this.editor,
11395
- type: Mn(e.name, this.schema)
11398
+ type: Vt(e.name, this.schema)
11396
11399
  }, r = T(e, "addCommands", t);
11397
11400
  return r ? {
11398
11401
  ...n,
@@ -11406,13 +11409,13 @@ var Vr = class {
11406
11409
  */
11407
11410
  get plugins() {
11408
11411
  const { editor: n } = this;
11409
- return Yn([...this.extensions].reverse()).flatMap((r) => {
11412
+ return Xt([...this.extensions].reverse()).flatMap((r) => {
11410
11413
  const s = {
11411
11414
  name: r.name,
11412
11415
  options: r.options,
11413
11416
  storage: this.editor.extensionStorage[r.name],
11414
11417
  editor: n,
11415
- type: Mn(r.name, this.schema)
11418
+ type: Vt(r.name, this.schema)
11416
11419
  }, i = [], o = T(
11417
11420
  r,
11418
11421
  "addKeyboardShortcuts",
@@ -11486,7 +11489,7 @@ var Vr = class {
11486
11489
  if (!o)
11487
11490
  return [];
11488
11491
  const l = (a, c, u, d, f) => {
11489
- const h = dn(a, r);
11492
+ const h = hn(a, r);
11490
11493
  return o({
11491
11494
  // pass-through
11492
11495
  node: a,
@@ -11511,13 +11514,13 @@ var Vr = class {
11511
11514
  */
11512
11515
  dispatchTransaction(n) {
11513
11516
  const { editor: e } = this;
11514
- return Yn([...this.extensions].reverse()).reduceRight((r, s) => {
11517
+ return Xt([...this.extensions].reverse()).reduceRight((r, s) => {
11515
11518
  const i = {
11516
11519
  name: s.name,
11517
11520
  options: s.options,
11518
11521
  storage: this.editor.extensionStorage[s.name],
11519
11522
  editor: e,
11520
- type: Mn(s.name, this.schema)
11523
+ type: Vt(s.name, this.schema)
11521
11524
  }, o = T(
11522
11525
  s,
11523
11526
  "dispatchTransaction",
@@ -11528,6 +11531,34 @@ var Vr = class {
11528
11531
  } : r;
11529
11532
  }, n);
11530
11533
  }
11534
+ /**
11535
+ * Get the composed transformPastedHTML function from all extensions.
11536
+ * @param baseTransform The base transform function (e.g. from the editor props)
11537
+ * @returns A composed transform function that chains all extension transforms
11538
+ */
11539
+ transformPastedHTML(n) {
11540
+ const { editor: e } = this;
11541
+ return Xt([...this.extensions]).reduce(
11542
+ (r, s) => {
11543
+ const i = {
11544
+ name: s.name,
11545
+ options: s.options,
11546
+ storage: this.editor.extensionStorage[s.name],
11547
+ editor: e,
11548
+ type: Vt(s.name, this.schema)
11549
+ }, o = T(
11550
+ s,
11551
+ "transformPastedHTML",
11552
+ i
11553
+ );
11554
+ return o ? (l, a) => {
11555
+ const c = r(l, a);
11556
+ return o.call(i, c);
11557
+ } : r;
11558
+ },
11559
+ n || ((r) => r)
11560
+ );
11561
+ }
11531
11562
  get markViews() {
11532
11563
  const { editor: n } = this, { markExtensions: e } = Pt(this.extensions);
11533
11564
  return Object.fromEntries(
@@ -11542,7 +11573,7 @@ var Vr = class {
11542
11573
  if (!i)
11543
11574
  return [];
11544
11575
  const o = (l, a, c) => {
11545
- const u = dn(l, r);
11576
+ const u = hn(l, r);
11546
11577
  return i()({
11547
11578
  // pass-through
11548
11579
  mark: l,
@@ -11576,7 +11607,7 @@ var Vr = class {
11576
11607
  options: e.options,
11577
11608
  storage: this.editor.extensionStorage[e.name],
11578
11609
  editor: this.editor,
11579
- type: Mn(e.name, this.schema)
11610
+ type: Vt(e.name, this.schema)
11580
11611
  };
11581
11612
  e.type === "mark" && ((t = P(T(e, "keepOnSplit", r))) == null || t) && this.splittableMarks.push(e.name);
11582
11613
  const s = T(e, "onBeforeCreate", r), i = T(e, "onCreate", r), o = T(e, "onUpdate", r), l = T(
@@ -11589,7 +11620,7 @@ var Vr = class {
11589
11620
  }
11590
11621
  };
11591
11622
  Vr.resolve = Ka;
11592
- Vr.sort = Yn;
11623
+ Vr.sort = Xt;
11593
11624
  Vr.flatten = hi;
11594
11625
  var Kp = {};
11595
11626
  ui(Kp, {
@@ -11810,7 +11841,7 @@ var H = class tc extends gi {
11810
11841
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
11811
11842
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
11812
11843
  };
11813
- return Gn() || Va() ? i : s;
11844
+ return Yn() || Va() ? i : s;
11814
11845
  },
11815
11846
  addProseMirrorPlugins() {
11816
11847
  return [
@@ -11917,7 +11948,7 @@ var H = class tc extends gi {
11917
11948
  })
11918
11949
  ];
11919
11950
  }
11920
- }), Up = class Wt {
11951
+ }), Up = class Kt {
11921
11952
  constructor(e, t, r = !1, s = null) {
11922
11953
  this.currentNode = null, this.actualDepth = null, this.isBlock = r, this.resolvedPos = e, this.editor = t, this.currentNode = s;
11923
11954
  }
@@ -11976,15 +12007,15 @@ var H = class tc extends gi {
11976
12007
  if (this.depth === 0)
11977
12008
  return null;
11978
12009
  const e = this.resolvedPos.start(this.resolvedPos.depth - 1), t = this.resolvedPos.doc.resolve(e);
11979
- return new Wt(t, this.editor);
12010
+ return new Kt(t, this.editor);
11980
12011
  }
11981
12012
  get before() {
11982
12013
  let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
11983
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new Wt(e, this.editor);
12014
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new Kt(e, this.editor);
11984
12015
  }
11985
12016
  get after() {
11986
12017
  let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
11987
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new Wt(e, this.editor);
12018
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new Kt(e, this.editor);
11988
12019
  }
11989
12020
  get children() {
11990
12021
  const e = [];
@@ -11995,7 +12026,7 @@ var H = class tc extends gi {
11995
12026
  const a = this.resolvedPos.doc.resolve(l);
11996
12027
  if (!s && !o && a.depth <= this.depth)
11997
12028
  return;
11998
- const c = new Wt(a, this.editor, s, s || o ? t : null);
12029
+ const c = new Kt(a, this.editor, s, s || o ? t : null);
11999
12030
  s && (c.actualDepth = this.depth + 1), e.push(c);
12000
12031
  }), e;
12001
12032
  }
@@ -12249,7 +12280,7 @@ var Gp = class extends Lp {
12249
12280
  return this.options.editable && this.view && this.view.editable;
12250
12281
  }
12251
12282
  /**
12252
- * Returns the editor state.
12283
+ * Returns the editor view.
12253
12284
  */
12254
12285
  get view() {
12255
12286
  return this.editorView ? this.editorView : new Proxy(
@@ -12385,7 +12416,7 @@ var Gp = class extends Lp {
12385
12416
  * Creates a ProseMirror view.
12386
12417
  */
12387
12418
  createView(e) {
12388
- const { editorProps: t, enableExtensionDispatchTransaction: r } = this.options, s = t.dispatchTransaction || this.dispatchTransaction.bind(this), i = r ? this.extensionManager.dispatchTransaction(s) : s;
12419
+ const { editorProps: t, enableExtensionDispatchTransaction: r } = this.options, s = t.dispatchTransaction || this.dispatchTransaction.bind(this), i = r ? this.extensionManager.dispatchTransaction(s) : s, o = t.transformPastedHTML, l = this.extensionManager.transformPastedHTML(o);
12389
12420
  this.editorView = new Ra(e, {
12390
12421
  ...t,
12391
12422
  attributes: {
@@ -12394,16 +12425,17 @@ var Gp = class extends Lp {
12394
12425
  ...t?.attributes
12395
12426
  },
12396
12427
  dispatchTransaction: i,
12428
+ transformPastedHTML: l,
12397
12429
  state: this.editorState,
12398
12430
  markViews: this.extensionManager.markViews,
12399
12431
  nodeViews: this.extensionManager.nodeViews
12400
12432
  });
12401
- const o = this.state.reconfigure({
12433
+ const a = this.state.reconfigure({
12402
12434
  plugins: this.extensionManager.plugins
12403
12435
  });
12404
- this.view.updateState(o), this.prependClass(), this.injectCSS();
12405
- const l = this.view.dom;
12406
- l.editor = this;
12436
+ this.view.updateState(a), this.prependClass(), this.injectCSS();
12437
+ const c = this.view.dom;
12438
+ c.editor = this;
12407
12439
  }
12408
12440
  /**
12409
12441
  * Creates all node and mark views.
@@ -13080,7 +13112,7 @@ var im = class extends Gp {
13080
13112
  const e = super.unregisterPlugin(n);
13081
13113
  return this.reactiveState && e && (this.reactiveState.value = e), e;
13082
13114
  }
13083
- }, om = pn({
13115
+ }, om = gn({
13084
13116
  name: "EditorContent",
13085
13117
  props: {
13086
13118
  editor: {
@@ -13120,7 +13152,7 @@ var im = class extends Gp {
13120
13152
  });
13121
13153
  }
13122
13154
  });
13123
- pn({
13155
+ gn({
13124
13156
  name: "NodeViewContent",
13125
13157
  props: {
13126
13158
  as: {
@@ -13137,7 +13169,7 @@ pn({
13137
13169
  });
13138
13170
  }
13139
13171
  });
13140
- pn({
13172
+ gn({
13141
13173
  name: "NodeViewWrapper",
13142
13174
  props: {
13143
13175
  as: {
@@ -13174,7 +13206,7 @@ var lm = (n = {}) => {
13174
13206
  (s = o?.parentNode) == null || s.replaceChild(l, o), (i = e.value) == null || i.destroy();
13175
13207
  }), e;
13176
13208
  };
13177
- pn({
13209
+ gn({
13178
13210
  name: "MarkViewContent",
13179
13211
  props: {
13180
13212
  as: {
@@ -13813,12 +13845,12 @@ ${t}
13813
13845
  ];
13814
13846
  }
13815
13847
  });
13816
- const Om = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Im = "ελ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", Ls = "numeric", Bs = "ascii", zs = "alpha", Yt = "asciinumeric", Kt = "alphanumeric", $s = "domain", pc = "emoji", Dm = "scheme", Rm = "slashscheme", ls = "whitespace";
13848
+ const Om = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Im = "ελ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", Ls = "numeric", Bs = "ascii", zs = "alpha", Qt = "asciinumeric", Ut = "alphanumeric", $s = "domain", pc = "emoji", Dm = "scheme", Rm = "slashscheme", ls = "whitespace";
13817
13849
  function Pm(n, e) {
13818
13850
  return n in e || (e[n] = []), e[n];
13819
13851
  }
13820
13852
  function ot(n, e, t) {
13821
- e[Ls] && (e[Yt] = !0, e[Kt] = !0), e[Bs] && (e[Yt] = !0, e[zs] = !0), e[Yt] && (e[Kt] = !0), e[zs] && (e[Kt] = !0), e[Kt] && (e[$s] = !0), e[pc] && (e[$s] = !0);
13853
+ e[Ls] && (e[Qt] = !0, e[Ut] = !0), e[Bs] && (e[Qt] = !0, e[zs] = !0), e[Qt] && (e[Ut] = !0), e[zs] && (e[Ut] = !0), e[Ut] && (e[$s] = !0), e[pc] && (e[$s] = !0);
13822
13854
  for (const r in e) {
13823
13855
  const s = Pm(r, t);
13824
13856
  s.indexOf(n) < 0 && s.push(n);
@@ -13954,7 +13986,7 @@ oe.prototype = {
13954
13986
  return s.j[n] = o, o;
13955
13987
  }
13956
13988
  };
13957
- const O = (n, e, t, r, s) => n.ta(e, t, r, s), F = (n, e, t, r, s) => n.tr(e, t, r, s), Wo = (n, e, t, r, s) => n.ts(e, t, r, s), b = (n, e, t, r, s) => n.tt(e, t, r, s), Oe = "WORD", Fs = "UWORD", mc = "ASCIINUMERICAL", gc = "ALPHANUMERICAL", fn = "LOCALHOST", Vs = "TLD", Hs = "UTLD", Ln = "SCHEME", vt = "SLASH_SCHEME", xi = "NUM", _s = "WS", Si = "NL", Xt = "OPENBRACE", Qt = "CLOSEBRACE", Qn = "OPENBRACKET", Zn = "CLOSEBRACKET", er = "OPENPAREN", tr = "CLOSEPAREN", nr = "OPENANGLEBRACKET", rr = "CLOSEANGLEBRACKET", sr = "FULLWIDTHLEFTPAREN", ir = "FULLWIDTHRIGHTPAREN", or = "LEFTCORNERBRACKET", lr = "RIGHTCORNERBRACKET", ar = "LEFTWHITECORNERBRACKET", cr = "RIGHTWHITECORNERBRACKET", ur = "FULLWIDTHLESSTHAN", dr = "FULLWIDTHGREATERTHAN", fr = "AMPERSAND", hr = "APOSTROPHE", pr = "ASTERISK", Ve = "AT", mr = "BACKSLASH", gr = "BACKTICK", yr = "CARET", je = "COLON", wi = "COMMA", kr = "DOLLAR", we = "DOT", br = "EQUALS", Ci = "EXCLAMATION", pe = "HYPHEN", Zt = "PERCENT", xr = "PIPE", Sr = "PLUS", wr = "POUND", en = "QUERY", Mi = "QUOTE", yc = "FULLWIDTHMIDDLEDOT", Ti = "SEMI", Ce = "SLASH", tn = "TILDE", Cr = "UNDERSCORE", kc = "EMOJI", Mr = "SYM";
13989
+ const O = (n, e, t, r, s) => n.ta(e, t, r, s), F = (n, e, t, r, s) => n.tr(e, t, r, s), Wo = (n, e, t, r, s) => n.ts(e, t, r, s), b = (n, e, t, r, s) => n.tt(e, t, r, s), Oe = "WORD", Fs = "UWORD", mc = "ASCIINUMERICAL", gc = "ALPHANUMERICAL", pn = "LOCALHOST", Vs = "TLD", Hs = "UTLD", Bn = "SCHEME", vt = "SLASH_SCHEME", xi = "NUM", _s = "WS", Si = "NL", Zt = "OPENBRACE", en = "CLOSEBRACE", Qn = "OPENBRACKET", Zn = "CLOSEBRACKET", er = "OPENPAREN", tr = "CLOSEPAREN", nr = "OPENANGLEBRACKET", rr = "CLOSEANGLEBRACKET", sr = "FULLWIDTHLEFTPAREN", ir = "FULLWIDTHRIGHTPAREN", or = "LEFTCORNERBRACKET", lr = "RIGHTCORNERBRACKET", ar = "LEFTWHITECORNERBRACKET", cr = "RIGHTWHITECORNERBRACKET", ur = "FULLWIDTHLESSTHAN", dr = "FULLWIDTHGREATERTHAN", fr = "AMPERSAND", hr = "APOSTROPHE", pr = "ASTERISK", Ve = "AT", mr = "BACKSLASH", gr = "BACKTICK", yr = "CARET", je = "COLON", wi = "COMMA", kr = "DOLLAR", we = "DOT", br = "EQUALS", Ci = "EXCLAMATION", pe = "HYPHEN", tn = "PERCENT", xr = "PIPE", Sr = "PLUS", wr = "POUND", nn = "QUERY", Mi = "QUOTE", yc = "FULLWIDTHMIDDLEDOT", Ti = "SEMI", Ce = "SLASH", rn = "TILDE", Cr = "UNDERSCORE", kc = "EMOJI", Mr = "SYM";
13958
13990
  var bc = /* @__PURE__ */ Object.freeze({
13959
13991
  __proto__: null,
13960
13992
  ALPHANUMERICAL: gc,
@@ -13967,7 +13999,7 @@ var bc = /* @__PURE__ */ Object.freeze({
13967
13999
  BACKTICK: gr,
13968
14000
  CARET: yr,
13969
14001
  CLOSEANGLEBRACKET: rr,
13970
- CLOSEBRACE: Qt,
14002
+ CLOSEBRACE: en,
13971
14003
  CLOSEBRACKET: Zn,
13972
14004
  CLOSEPAREN: tr,
13973
14005
  COLON: je,
@@ -13985,27 +14017,27 @@ var bc = /* @__PURE__ */ Object.freeze({
13985
14017
  HYPHEN: pe,
13986
14018
  LEFTCORNERBRACKET: or,
13987
14019
  LEFTWHITECORNERBRACKET: ar,
13988
- LOCALHOST: fn,
14020
+ LOCALHOST: pn,
13989
14021
  NL: Si,
13990
14022
  NUM: xi,
13991
14023
  OPENANGLEBRACKET: nr,
13992
- OPENBRACE: Xt,
14024
+ OPENBRACE: Zt,
13993
14025
  OPENBRACKET: Qn,
13994
14026
  OPENPAREN: er,
13995
- PERCENT: Zt,
14027
+ PERCENT: tn,
13996
14028
  PIPE: xr,
13997
14029
  PLUS: Sr,
13998
14030
  POUND: wr,
13999
- QUERY: en,
14031
+ QUERY: nn,
14000
14032
  QUOTE: Mi,
14001
14033
  RIGHTCORNERBRACKET: lr,
14002
14034
  RIGHTWHITECORNERBRACKET: cr,
14003
- SCHEME: Ln,
14035
+ SCHEME: Bn,
14004
14036
  SEMI: Ti,
14005
14037
  SLASH: Ce,
14006
14038
  SLASH_SCHEME: vt,
14007
14039
  SYM: Mr,
14008
- TILDE: tn,
14040
+ TILDE: rn,
14009
14041
  TLD: Vs,
14010
14042
  UNDERSCORE: Cr,
14011
14043
  UTLD: Hs,
@@ -14013,30 +14045,30 @@ var bc = /* @__PURE__ */ Object.freeze({
14013
14045
  WORD: Oe,
14014
14046
  WS: _s
14015
14047
  });
14016
- const Ae = /[a-z]/, Vt = /\p{L}/u, as = /\p{Emoji}/u, Ne = /\d/, cs = /\s/, Ko = "\r", us = `
14048
+ const Ae = /[a-z]/, Ht = /\p{L}/u, as = /\p{Emoji}/u, Ne = /\d/, cs = /\s/, Ko = "\r", us = `
14017
14049
  `, Bm = "️", zm = "‍", ds = "";
14018
- let An = null, Nn = null;
14050
+ let Nn = null, On = null;
14019
14051
  function $m(n = []) {
14020
14052
  const e = {};
14021
14053
  oe.groups = e;
14022
14054
  const t = new oe();
14023
- An == null && (An = Uo(Om)), Nn == null && (Nn = Uo(Im)), b(t, "'", hr), b(t, "{", Xt), b(t, "}", Qt), b(t, "[", Qn), b(t, "]", Zn), b(t, "(", er), b(t, ")", tr), b(t, "<", nr), b(t, ">", rr), b(t, "(", sr), b(t, ")", ir), b(t, "「", or), b(t, "」", lr), b(t, "『", ar), b(t, "』", cr), b(t, "<", ur), b(t, ">", dr), b(t, "&", fr), b(t, "*", pr), b(t, "@", Ve), b(t, "`", gr), b(t, "^", yr), b(t, ":", je), b(t, ",", wi), b(t, "$", kr), b(t, ".", we), b(t, "=", br), b(t, "!", Ci), b(t, "-", pe), b(t, "%", Zt), b(t, "|", xr), b(t, "+", Sr), b(t, "#", wr), b(t, "?", en), b(t, '"', Mi), b(t, "/", Ce), b(t, ";", Ti), b(t, "~", tn), b(t, "_", Cr), b(t, "\\", mr), b(t, "・", yc);
14055
+ Nn == null && (Nn = Uo(Om)), On == null && (On = Uo(Im)), b(t, "'", hr), b(t, "{", Zt), b(t, "}", en), b(t, "[", Qn), b(t, "]", Zn), b(t, "(", er), b(t, ")", tr), b(t, "<", nr), b(t, ">", rr), b(t, "(", sr), b(t, ")", ir), b(t, "「", or), b(t, "」", lr), b(t, "『", ar), b(t, "』", cr), b(t, "<", ur), b(t, ">", dr), b(t, "&", fr), b(t, "*", pr), b(t, "@", Ve), b(t, "`", gr), b(t, "^", yr), b(t, ":", je), b(t, ",", wi), b(t, "$", kr), b(t, ".", we), b(t, "=", br), b(t, "!", Ci), b(t, "-", pe), b(t, "%", tn), b(t, "|", xr), b(t, "+", Sr), b(t, "#", wr), b(t, "?", nn), b(t, '"', Mi), b(t, "/", Ce), b(t, ";", Ti), b(t, "~", rn), b(t, "_", Cr), b(t, "\\", mr), b(t, "・", yc);
14024
14056
  const r = F(t, Ne, xi, {
14025
14057
  [Ls]: !0
14026
14058
  });
14027
14059
  F(r, Ne, r);
14028
14060
  const s = F(r, Ae, mc, {
14029
- [Yt]: !0
14030
- }), i = F(r, Vt, gc, {
14031
- [Kt]: !0
14061
+ [Qt]: !0
14062
+ }), i = F(r, Ht, gc, {
14063
+ [Ut]: !0
14032
14064
  }), o = F(t, Ae, Oe, {
14033
14065
  [Bs]: !0
14034
14066
  });
14035
14067
  F(o, Ne, s), F(o, Ae, o), F(s, Ne, s), F(s, Ae, s);
14036
- const l = F(t, Vt, Fs, {
14068
+ const l = F(t, Ht, Fs, {
14037
14069
  [zs]: !0
14038
14070
  });
14039
- F(l, Ae), F(l, Ne, i), F(l, Vt, l), F(i, Ne, i), F(i, Ae), F(i, Vt, i);
14071
+ F(l, Ae), F(l, Ne, i), F(l, Ht, l), F(i, Ne, i), F(i, Ae), F(i, Ht, i);
14040
14072
  const a = b(t, us, Si, {
14041
14073
  [ls]: !0
14042
14074
  }), c = b(t, Ko, _s, {
@@ -14051,18 +14083,18 @@ function $m(n = []) {
14051
14083
  b(d, "#"), F(d, as, d), b(d, Bm, d);
14052
14084
  const f = b(d, zm);
14053
14085
  b(f, "#"), F(f, as, d);
14054
- const h = [[Ae, o], [Ne, s]], p = [[Ae, null], [Vt, l], [Ne, i]];
14055
- for (let m = 0; m < An.length; m++)
14056
- ze(t, An[m], Vs, Oe, h);
14086
+ const h = [[Ae, o], [Ne, s]], p = [[Ae, null], [Ht, l], [Ne, i]];
14057
14087
  for (let m = 0; m < Nn.length; m++)
14058
- ze(t, Nn[m], Hs, Fs, p);
14088
+ ze(t, Nn[m], Vs, Oe, h);
14089
+ for (let m = 0; m < On.length; m++)
14090
+ ze(t, On[m], Hs, Fs, p);
14059
14091
  ot(Vs, {
14060
14092
  tld: !0,
14061
14093
  ascii: !0
14062
14094
  }, e), ot(Hs, {
14063
14095
  utld: !0,
14064
14096
  alpha: !0
14065
- }, e), ze(t, "file", Ln, Oe, h), ze(t, "mailto", Ln, Oe, h), ze(t, "http", vt, Oe, h), ze(t, "https", vt, Oe, h), ze(t, "ftp", vt, Oe, h), ze(t, "ftps", vt, Oe, h), ot(Ln, {
14097
+ }, e), ze(t, "file", Bn, Oe, h), ze(t, "mailto", Bn, Oe, h), ze(t, "http", vt, Oe, h), ze(t, "https", vt, Oe, h), ze(t, "ftp", vt, Oe, h), ze(t, "ftps", vt, Oe, h), ot(Bn, {
14066
14098
  scheme: !0,
14067
14099
  ascii: !0
14068
14100
  }, e), ot(vt, {
@@ -14075,9 +14107,9 @@ function $m(n = []) {
14075
14107
  } : {
14076
14108
  [Rm]: !0
14077
14109
  };
14078
- g.indexOf("-") >= 0 ? x[$s] = !0 : Ae.test(g) ? Ne.test(g) ? x[Yt] = !0 : x[Bs] = !0 : x[Ls] = !0, Wo(t, g, g, x);
14110
+ g.indexOf("-") >= 0 ? x[$s] = !0 : Ae.test(g) ? Ne.test(g) ? x[Qt] = !0 : x[Bs] = !0 : x[Ls] = !0, Wo(t, g, g, x);
14079
14111
  }
14080
- return Wo(t, "localhost", fn, {
14112
+ return Wo(t, "localhost", pn, {
14081
14113
  ascii: !0
14082
14114
  }), t.jd = new oe(Mr), {
14083
14115
  start: t,
@@ -14141,7 +14173,7 @@ function Uo(n) {
14141
14173
  }
14142
14174
  return e;
14143
14175
  }
14144
- const hn = {
14176
+ const mn = {
14145
14177
  defaultProtocol: "http",
14146
14178
  events: null,
14147
14179
  format: qo,
@@ -14158,7 +14190,7 @@ const hn = {
14158
14190
  render: null
14159
14191
  };
14160
14192
  function vi(n, e = null) {
14161
- let t = Object.assign({}, hn);
14193
+ let t = Object.assign({}, mn);
14162
14194
  n && (t = Object.assign(t, n instanceof vi ? n.o : n));
14163
14195
  const r = t.ignoreTags, s = [];
14164
14196
  for (let i = 0; i < r.length; i++)
@@ -14166,7 +14198,7 @@ function vi(n, e = null) {
14166
14198
  this.o = t, e && (this.defaultRender = e), this.ignoreTags = s;
14167
14199
  }
14168
14200
  vi.prototype = {
14169
- o: hn,
14201
+ o: mn,
14170
14202
  /**
14171
14203
  * @type string[]
14172
14204
  */
@@ -14202,7 +14234,7 @@ vi.prototype = {
14202
14234
  get(n, e, t) {
14203
14235
  const r = e != null;
14204
14236
  let s = this.o[n];
14205
- return s && (typeof s == "object" ? (s = t.t in s ? s[t.t] : hn[n], typeof s == "function" && r && (s = s(e, t))) : typeof s == "function" && r && (s = s(e, t.t, t)), s);
14237
+ return s && (typeof s == "object" ? (s = t.t in s ? s[t.t] : mn[n], typeof s == "function" && r && (s = s(e, t))) : typeof s == "function" && r && (s = s(e, t.t, t)), s);
14206
14238
  },
14207
14239
  /**
14208
14240
  * @template {keyof Opts} L
@@ -14291,7 +14323,7 @@ Sc.prototype = {
14291
14323
  @method toObject
14292
14324
  @param {string} [protocol] `'http'` by default
14293
14325
  */
14294
- toObject(n = hn.defaultProtocol) {
14326
+ toObject(n = mn.defaultProtocol) {
14295
14327
  return {
14296
14328
  type: this.t,
14297
14329
  value: this.toString(),
@@ -14352,7 +14384,7 @@ const Jo = Hr("email", {
14352
14384
  toHref() {
14353
14385
  return "mailto:" + this.toString();
14354
14386
  }
14355
- }), Go = Hr("text"), Vm = Hr("nl"), On = Hr("url", {
14387
+ }), Go = Hr("text"), Vm = Hr("nl"), In = Hr("url", {
14356
14388
  isLink: !0,
14357
14389
  /**
14358
14390
  Lowercases relevant parts of the domain and adds the protocol if
@@ -14361,7 +14393,7 @@ const Jo = Hr("email", {
14361
14393
  @param {string} [scheme] default scheme (e.g., 'https')
14362
14394
  @return {string} the full href
14363
14395
  */
14364
- toHref(n = hn.defaultProtocol) {
14396
+ toHref(n = mn.defaultProtocol) {
14365
14397
  return this.hasProtocol() ? this.v : `${n}://${this.v}`;
14366
14398
  },
14367
14399
  /**
@@ -14370,13 +14402,13 @@ const Jo = Hr("email", {
14370
14402
  */
14371
14403
  hasProtocol() {
14372
14404
  const n = this.tk;
14373
- return n.length >= 2 && n[0].t !== fn && n[1].t === je;
14405
+ return n.length >= 2 && n[0].t !== pn && n[1].t === je;
14374
14406
  }
14375
14407
  }), he = (n) => new oe(n);
14376
14408
  function Hm({
14377
14409
  groups: n
14378
14410
  }) {
14379
- const e = n.domain.concat([fr, pr, Ve, mr, gr, yr, kr, br, pe, xi, Zt, xr, Sr, wr, Ce, Mr, tn, Cr]), t = [hr, je, wi, we, Ci, Zt, en, Mi, Ti, nr, rr, Xt, Qt, Zn, Qn, er, tr, sr, ir, or, lr, ar, cr, ur, dr], r = [fr, hr, pr, mr, gr, yr, kr, br, pe, Xt, Qt, Zt, xr, Sr, wr, en, Ce, Mr, tn, Cr], s = he(), i = b(s, tn);
14411
+ const e = n.domain.concat([fr, pr, Ve, mr, gr, yr, kr, br, pe, xi, tn, xr, Sr, wr, Ce, Mr, rn, Cr]), t = [hr, je, wi, we, Ci, tn, nn, Mi, Ti, nr, rr, Zt, en, Zn, Qn, er, tr, sr, ir, or, lr, ar, cr, ur, dr], r = [fr, hr, pr, mr, gr, yr, kr, br, pe, Zt, en, tn, xr, Sr, wr, nn, Ce, Mr, rn, Cr], s = he(), i = b(s, rn);
14380
14412
  O(i, r, i), O(i, n.domain, i);
14381
14413
  const o = he(), l = he(), a = he();
14382
14414
  O(s, n.domain, o), O(s, n.scheme, l), O(s, n.slashscheme, a), O(o, r, i), O(o, n.domain, o);
@@ -14389,23 +14421,23 @@ function Hm({
14389
14421
  const f = b(d, we);
14390
14422
  O(f, n.domain, d);
14391
14423
  const h = he(Jo);
14392
- O(f, n.tld, h), O(f, n.utld, h), b(c, fn, h);
14424
+ O(f, n.tld, h), O(f, n.utld, h), b(c, pn, h);
14393
14425
  const p = b(d, pe);
14394
14426
  b(p, pe, p), O(p, n.domain, d), O(h, n.domain, d), b(h, we, f), b(h, pe, p);
14395
14427
  const m = b(h, je);
14396
14428
  O(m, n.numeric, Jo);
14397
14429
  const g = b(o, pe), y = b(o, we);
14398
14430
  b(g, pe, g), O(g, n.domain, o), O(y, r, i), O(y, n.domain, o);
14399
- const x = he(On);
14431
+ const x = he(In);
14400
14432
  O(y, n.tld, x), O(y, n.utld, x), O(x, n.domain, o), O(x, r, i), b(x, we, y), b(x, pe, g), b(x, Ve, c);
14401
- const C = b(x, je), E = he(On);
14433
+ const C = b(x, je), E = he(In);
14402
14434
  O(C, n.numeric, E);
14403
- const w = he(On), A = he();
14435
+ const w = he(In), A = he();
14404
14436
  O(w, e, w), O(w, t, A), O(A, e, w), O(A, t, A), b(x, Ce, w), b(E, Ce, w);
14405
14437
  const M = b(l, je), D = b(a, je), R = b(D, Ce), ae = b(R, Ce);
14406
- O(l, n.domain, o), b(l, we, y), b(l, pe, g), O(a, n.domain, o), b(a, we, y), b(a, pe, g), O(M, n.domain, w), b(M, Ce, w), b(M, en, w), O(ae, n.domain, w), O(ae, e, w), b(ae, Ce, w);
14438
+ O(l, n.domain, o), b(l, we, y), b(l, pe, g), O(a, n.domain, o), b(a, we, y), b(a, pe, g), O(M, n.domain, w), b(M, Ce, w), b(M, nn, w), O(ae, n.domain, w), O(ae, e, w), b(ae, Ce, w);
14407
14439
  const bt = [
14408
- [Xt, Qt],
14440
+ [Zt, en],
14409
14441
  // {}
14410
14442
  [Qn, Zn],
14411
14443
  // []
@@ -14425,12 +14457,12 @@ function Hm({
14425
14457
  for (let Be = 0; Be < bt.length; Be++) {
14426
14458
  const [xt, fe] = bt[Be], ie = b(w, xt);
14427
14459
  b(A, xt, ie), b(ie, fe, w);
14428
- const St = he(On);
14460
+ const St = he(In);
14429
14461
  O(ie, e, St);
14430
14462
  const $t = he();
14431
14463
  O(ie, t), O(St, e, St), O(St, t, $t), O($t, e, St), O($t, t, $t), b(St, fe, w), b($t, fe, w);
14432
14464
  }
14433
- return b(s, fn, x), b(s, Si, Vm), {
14465
+ return b(s, pn, x), b(s, Si, Vm), {
14434
14466
  start: s,
14435
14467
  tokens: bc
14436
14468
  };
@@ -14942,7 +14974,7 @@ var eg = kt.create({
14942
14974
  }
14943
14975
  }), sg = {};
14944
14976
  ng(sg, {
14945
- findListItemPos: () => kn,
14977
+ findListItemPos: () => xn,
14946
14978
  getNextListDepth: () => Ni,
14947
14979
  handleBackspace: () => js,
14948
14980
  handleDelete: () => Ws,
@@ -14953,14 +14985,14 @@ ng(sg, {
14953
14985
  nextListIsDeeper: () => Ac,
14954
14986
  nextListIsHigher: () => Nc
14955
14987
  });
14956
- var kn = (n, e) => {
14988
+ var xn = (n, e) => {
14957
14989
  const { $from: t } = e.selection, r = j(n, e.schema);
14958
14990
  let s = null, i = t.depth, o = t.pos, l = null;
14959
14991
  for (; i > 0 && l === null; )
14960
14992
  s = t.node(i), s.type === r ? l = i : (i -= 1, o -= 1);
14961
14993
  return l === null ? null : { $pos: e.doc.resolve(o), depth: l };
14962
14994
  }, Ni = (n, e) => {
14963
- const t = kn(n, e);
14995
+ const t = xn(n, e);
14964
14996
  if (!t)
14965
14997
  return !1;
14966
14998
  const [, r] = lp(e, n, t.$pos.pos + 4);
@@ -14998,16 +15030,16 @@ var kn = (n, e) => {
14998
15030
  }
14999
15031
  if (!Qe(n.state, e) || !dp(n.state))
15000
15032
  return !1;
15001
- const r = kn(e, n.state);
15033
+ const r = xn(e, n.state);
15002
15034
  if (!r)
15003
15035
  return !1;
15004
15036
  const i = n.state.doc.resolve(r.$pos.pos - 2).node(r.depth), o = Ec(e, n.state, i);
15005
15037
  return vc(e, n.state) && !o ? n.commands.joinItemBackward() : n.chain().liftListItem(e).run();
15006
15038
  }, Ac = (n, e) => {
15007
- const t = Ni(n, e), r = kn(n, e);
15039
+ const t = Ni(n, e), r = xn(n, e);
15008
15040
  return !r || !t ? !1 : t > r.depth;
15009
15041
  }, Nc = (n, e) => {
15010
- const t = Ni(n, e), r = kn(n, e);
15042
+ const t = Ni(n, e), r = xn(n, e);
15011
15043
  return !r || !t ? !1 : t < r.depth;
15012
15044
  }, Ws = (n, e) => {
15013
15045
  if (!Qe(n.state, e) || !up(n.state, e))
@@ -15387,7 +15419,7 @@ var cg = "listItem", el = "textStyle", tl = /^(\d+)\.\s$/, Dc = de.create({
15387
15419
  if (d.type !== this.type)
15388
15420
  return !1;
15389
15421
  s.dataset.checked = d.attrs.checked, l.checked = d.attrs.checked, c(d);
15390
- const f = r.extensionManager.attributes, h = dn(d, f), p = new Set(Object.keys(h)), m = this.options.HTMLAttributes;
15422
+ const f = r.extensionManager.attributes, h = hn(d, f), p = new Set(Object.keys(h)), m = this.options.HTMLAttributes;
15391
15423
  return u.forEach((g) => {
15392
15424
  p.has(g) || (g in m ? s.setAttribute(g, m[g]) : s.removeAttribute(g));
15393
15425
  }), Object.entries(h).forEach(([g, y]) => {
@@ -15927,12 +15959,12 @@ function Mg() {
15927
15959
  });
15928
15960
  }
15929
15961
  const Tg = Pa({
15930
- ArrowLeft: In("horiz", -1),
15931
- ArrowRight: In("horiz", 1),
15932
- ArrowUp: In("vert", -1),
15933
- ArrowDown: In("vert", 1)
15962
+ ArrowLeft: Dn("horiz", -1),
15963
+ ArrowRight: Dn("horiz", 1),
15964
+ ArrowUp: Dn("vert", -1),
15965
+ ArrowDown: Dn("vert", 1)
15934
15966
  });
15935
- function In(n, e) {
15967
+ function Dn(n, e) {
15936
15968
  const t = n == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
15937
15969
  return function(r, s, i) {
15938
15970
  let o = r.selection, l = e > 0 ? o.$to : o.$from, a = o.empty;
@@ -16114,7 +16146,7 @@ class be {
16114
16146
  return c > Dg && (l = Ig(l, c), o -= c), new be(l.append(i), o);
16115
16147
  }
16116
16148
  remapping(e, t) {
16117
- let r = new sn();
16149
+ let r = new ln();
16118
16150
  return this.items.forEach((s, i) => {
16119
16151
  let o = s.mirrorOffset != null && i - s.mirrorOffset >= e ? r.maps.length - s.mirrorOffset : void 0;
16120
16152
  r.appendMap(s.map, o);
@@ -16217,10 +16249,10 @@ function Rg(n, e, t, r) {
16217
16249
  if (t.steps.length == 0)
16218
16250
  return n;
16219
16251
  if (o && o.getMeta(dt))
16220
- return o.getMeta(dt).redo ? new He(n.done.addTransform(t, void 0, r, Bn(e)), n.undone, rl(t.mapping.maps), n.prevTime, n.prevComposition) : new He(n.done, n.undone.addTransform(t, void 0, r, Bn(e)), null, n.prevTime, n.prevComposition);
16252
+ return o.getMeta(dt).redo ? new He(n.done.addTransform(t, void 0, r, zn(e)), n.undone, rl(t.mapping.maps), n.prevTime, n.prevComposition) : new He(n.done, n.undone.addTransform(t, void 0, r, zn(e)), null, n.prevTime, n.prevComposition);
16221
16253
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
16222
16254
  let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Pg(t, n.prevRanges)), c = o ? hs(n.prevRanges, t.mapping) : rl(t.mapping.maps);
16223
- return new He(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Bn(e)), be.empty, c, t.time, l ?? n.prevComposition);
16255
+ return new He(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, zn(e)), be.empty, c, t.time, l ?? n.prevComposition);
16224
16256
  } else return (i = t.getMeta("rebased")) ? new He(n.done.rebased(t, i), n.undone.rebased(t, i), hs(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new He(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), hs(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
16225
16257
  }
16226
16258
  function Pg(n, e) {
@@ -16251,14 +16283,14 @@ function hs(n, e) {
16251
16283
  return t;
16252
16284
  }
16253
16285
  function Lg(n, e, t) {
16254
- let r = Bn(e), s = dt.get(e).spec.config, i = (t ? n.undone : n.done).popEvent(e, r);
16286
+ let r = zn(e), s = dt.get(e).spec.config, i = (t ? n.undone : n.done).popEvent(e, r);
16255
16287
  if (!i)
16256
16288
  return null;
16257
16289
  let o = i.selection.resolve(i.transform.doc), l = (t ? n.done : n.undone).addTransform(i.transform, e.selection.getBookmark(), s, r), a = new He(t ? l : i.remaining, t ? i.remaining : l, null, 0, -1);
16258
16290
  return i.transform.setSelection(o).setMeta(dt, { redo: t, historyState: a });
16259
16291
  }
16260
16292
  let ps = !1, sl = null;
16261
- function Bn(n) {
16293
+ function zn(n) {
16262
16294
  let e = n.plugins;
16263
16295
  if (sl != e) {
16264
16296
  ps = !1, sl = e;
@@ -16599,7 +16631,7 @@ var Hg = H.create({
16599
16631
  return this.options.bold !== !1 && s.push(pm.configure(this.options.bold)), this.options.blockquote !== !1 && s.push(cm.configure(this.options.blockquote)), this.options.bulletList !== !1 && s.push(Cc.configure(this.options.bulletList)), this.options.code !== !1 && s.push(ym.configure(this.options.code)), this.options.codeBlock !== !1 && s.push(xm.configure(this.options.codeBlock)), this.options.document !== !1 && s.push(Sm.configure(this.options.document)), this.options.dropcursor !== !1 && s.push($g.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && s.push(Fg.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && s.push(wm.configure(this.options.hardBreak)), this.options.heading !== !1 && s.push(Cm.configure(this.options.heading)), this.options.undoRedo !== !1 && s.push(_g.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && s.push(Mm.configure(this.options.horizontalRule)), this.options.italic !== !1 && s.push(Nm.configure(this.options.italic)), this.options.listItem !== !1 && s.push(Mc.configure(this.options.listItem)), this.options.listKeymap !== !1 && s.push(Oc.configure((n = this.options) == null ? void 0 : n.listKeymap)), this.options.link !== !1 && s.push(eg.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && s.push(Dc.configure(this.options.orderedList)), this.options.paragraph !== !1 && s.push(pg.configure(this.options.paragraph)), this.options.strike !== !1 && s.push(yg.configure(this.options.strike)), this.options.text !== !1 && s.push(kg.configure(this.options.text)), this.options.underline !== !1 && s.push(bg.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && s.push(Hg.configure((r = this.options) == null ? void 0 : r.trailingNode)), s;
16600
16632
  }
16601
16633
  }), Wg = jg;
16602
- const Kg = ["onClick"], Ug = /* @__PURE__ */ pn({
16634
+ const Kg = ["onClick"], Ug = /* @__PURE__ */ gn({
16603
16635
  __name: "UiEditor",
16604
16636
  props: {
16605
16637
  modelValue: {}
@@ -16626,21 +16658,21 @@ const Kg = ["onClick"], Ug = /* @__PURE__ */ pn({
16626
16658
  ), Ks(() => {
16627
16659
  i.value?.destroy();
16628
16660
  }), (l, a) => (Ii(), Di("div", {
16629
- class: bn(l.$style.container)
16661
+ class: Sn(l.$style.container)
16630
16662
  }, [
16631
16663
  Ri("div", {
16632
- class: bn(l.$style.actions)
16664
+ class: Sn(l.$style.actions)
16633
16665
  }, [
16634
16666
  (Ii(), Di(Jc, null, Gc(o, (c) => Ri("button", {
16635
16667
  key: c._id,
16636
16668
  onClick: (u) => c.method(),
16637
- class: bn(l.$style.action),
16669
+ class: Sn(l.$style.action),
16638
16670
  type: "button"
16639
16671
  }, Yc(c.name), 11, Kg)), 64))
16640
16672
  ], 2),
16641
16673
  Xc(ms(om), {
16642
16674
  editor: ms(i),
16643
- class: bn(l.$style.editor)
16675
+ class: Sn(l.$style.editor)
16644
16676
  }, null, 8, ["editor", "class"])
16645
16677
  ], 2));
16646
16678
  }