@knime/jsonforms 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{AnyOfTwinlist-DQ5NAJAC.js → AnyOfTwinlist-CKNl_Xwk.js} +1 -1
  3. package/dist/{CheckboxControl-B697Nh6H.js → CheckboxControl-Doj5Pl3W.js} +1 -1
  4. package/dist/{CheckboxesControl-BPY2hV34.js → CheckboxesControl-of1RkErM.js} +2 -2
  5. package/dist/{ColorControl-BT8Y9v_R.js → ColorControl-CYp6665w.js} +1 -1
  6. package/dist/{ColorPreviewControl-Cc7g0byT.js → ColorPreviewControl-DASvbRv2.js} +1 -1
  7. package/dist/{ComboBoxControl-Db5c4vYz.js → ComboBoxControl-CDsmu2re.js} +2 -2
  8. package/dist/{DateControl-qd8SQlgh.js → DateControl-CQqgNnLT.js} +1 -1
  9. package/dist/{DateTimeControl-DZzgpurI.js → DateTimeControl-CREQEjeO.js} +1 -1
  10. package/dist/{DateTimeFormatPickerControl-Dl8Moc8r.js → DateTimeFormatPickerControl-C8vEg2z6.js} +1 -1
  11. package/dist/{DropdownControl-Dh6rUinV.js → DropdownControl-CtwmuEsb.js} +2 -2
  12. package/dist/{ExecutorCoresControl-B82QVs-J.js → ExecutorCoresControl-CoEYfg6t.js} +1 -1
  13. package/dist/{ExecutorMemoryControl-D-Vep0F6.js → ExecutorMemoryControl-BljLEdwM.js} +1 -1
  14. package/dist/{FileUploadControl-lsK182v6.js → FileUploadControl-BN1ZcIOy.js} +2 -2
  15. package/dist/{GridSelectionControl-CeDwjq64.js → GridSelectionControl-llAAbmgk.js} +1 -1
  16. package/dist/{HorizontalLayout-BhFSfTps.js → HorizontalLayout-jN2ocYG5.js} +1 -1
  17. package/dist/{IntegerControl-BId5Z5ve.js → IntegerControl-CaIxt1i8.js} +1 -1
  18. package/dist/{IntervalControl-Byk71q_G.js → IntervalControl-t714rU_V.js} +1 -1
  19. package/dist/{LinkControl-DR1fgxx2.js → LinkControl-DHge9xPr.js} +1 -1
  20. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CPTYBzJt.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cj3ak4Kd.js} +1 -1
  21. package/dist/{ManualTwinlistControl-CUsibWlr.js → ManualTwinlistControl-DDabLDpL.js} +3 -3
  22. package/dist/{MultiSelectListBoxControl-B1X8p_-e.js → MultiSelectListBoxControl-DdWI84_Z.js} +3 -3
  23. package/dist/{MultimodeTwinlistControl-Bgy1E-cm.js → MultimodeTwinlistControl-Da66Qd_9.js} +1 -1
  24. package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DP1f6Yo9.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-Cf0hUtLg.js} +3 -3
  25. package/dist/{NameFilter-CW6JocdO.js → NameFilter-CGftAGoS.js} +1 -1
  26. package/dist/{NumberControl-edz2z4gt.js → NumberControl-D6IUlr0F.js} +1 -1
  27. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-LVtEPU6U.js → NumberControlBase.vue_vue_type_script_setup_true_lang-E8FQgjrx.js} +2 -2
  28. package/dist/{OneOfDropdown-BrQ1NJTF.js → OneOfDropdown-C67MhziA.js} +1 -1
  29. package/dist/{ProgressButtonControl-Y4zUKcqB.js → ProgressButtonControl-CxH6Cipu.js} +1 -1
  30. package/dist/{RadioButtonsWithDescriptionControl-CTWjbCOC.js → RadioButtonsWithDescriptionControl-CbJxLwdI.js} +1 -1
  31. package/dist/{RadioControl-B3XZEbUd.js → RadioControl-DcUIHhJC.js} +1 -1
  32. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Cf9glDyf.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CWUPk9t_.js} +2 -2
  33. package/dist/{ResourceControlBase-2j_3xXUs.js → ResourceControlBase-BQY6errk.js} +1 -1
  34. package/dist/{RichTextControl-b2SZcRMO.js → RichTextControl-Mcxf362n.js} +223 -221
  35. package/dist/{SectionHeading-MRWfv3_y.js → SectionHeading-Cms90Ivs.js} +1 -1
  36. package/dist/{SectionLayout-kmJ9_YSC.js → SectionLayout-DyslAsrB.js} +3 -3
  37. package/dist/{SettingsSubPanel-BIG6WbbH.js → SettingsSubPanel-DybfY92V.js} +1 -1
  38. package/dist/{SettingsSubPanelLayout-BN-oFfiP.js → SettingsSubPanelLayout-Cay8i6NA.js} +4 -4
  39. package/dist/{SimpleButtonControl-BSws5971.js → SimpleButtonControl-CGuGiQd7.js} +1 -1
  40. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-C_cPLZAX.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-CYI3TitX.js} +9624 -9759
  41. package/dist/{SimpleTwinlistControl-74gVwmxY.js → SimpleTwinlistControl-D4BFF9jE.js} +2 -2
  42. package/dist/{SingleSelectControl-BVDWd50n.js → SingleSelectControl-D-yUZtl2.js} +2 -2
  43. package/dist/{SingleSelectListBoxControl-Buv7eL4z.js → SingleSelectListBoxControl-BpC-WEID.js} +3 -3
  44. package/dist/{SortListControl-CFvZn4Z8.js → SortListControl-7mmEkodd.js} +1 -1
  45. package/dist/{StyledListItem-B7ZkCGy7.js → StyledListItem-BmNDGGnr.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-YSk8oOLS.js → TeamAndSpacesControl-BI4anOSY.js} +1 -1
  47. package/dist/{TeamResourceControl-CNkQwBGP.js → TeamResourceControl-s9NfKZEk.js} +1 -1
  48. package/dist/{TextAreaControl-DpWSvjxM.js → TextAreaControl-DSBystkT.js} +1 -1
  49. package/dist/{TextControl-CTXjc4_c.js → TextControl-DBIt0sjP.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BZer_GIG.js → TextControl.vue_vue_type_script_setup_true_lang-CVE8DAd2.js} +2 -2
  51. package/dist/{TimeControl-D2s46aHK.js → TimeControl-COlrx8kC.js} +1 -1
  52. package/dist/{TimeframesControl-DmmbHvkm.js → TimeframesControl-Cg12Kpcx.js} +1 -1
  53. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-sbb6a5M1.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-_TYZPooB.js} +2 -2
  54. package/dist/{TypedStringFilter-yhhobolz.js → TypedStringFilter-CX3YoFa7.js} +1 -1
  55. package/dist/{ValueSwitchControl-DAwIxuHE.js → ValueSwitchControl-DpxEagdS.js} +1 -1
  56. package/dist/{VerticalLayout-Cg1kpAsr.js → VerticalLayout-X4PVwPsF.js} +2 -2
  57. package/dist/{VerticalLayoutBase-DXiq-ttd.js → VerticalLayoutBase-Ceb6Xgw7.js} +1 -1
  58. package/dist/{ZonedDateTimeControl-DCVlCG4r.js → ZonedDateTimeControl-CWeuMH0t.js} +1 -1
  59. package/dist/{_Uint8Array-B9VMTk2r.js → _Uint8Array-kSStR_aZ.js} +1 -1
  60. package/dist/knime-jsonforms.css +1 -1
  61. package/dist/knime-jsonforms.js +7 -7
  62. package/dist/testing.js +2 -2
  63. package/dist/{useBuiltinValidations-00cKvChy.js → useBuiltinValidations-Rbz0i-kT.js} +1 -1
  64. package/dist/{usePossibleValues-B4dYuNUk.js → usePossibleValues-BbkYA3Ri.js} +1 -1
  65. package/dist/{useUnknownValuesInTwinlist-DSvYHoTD.js → useUnknownValuesInTwinlist-uBQ8vniL.js} +1 -1
  66. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
- import { shallowRef as Fd, onMounted as Zs, onBeforeUnmount as Ea, defineComponent as ze, h as Si, ref as Oe, getCurrentInstance as Vd, watchEffect as Hd, nextTick as eo, unref as j, markRaw as jd, customRef as Wd, createPropsRestProxy as Jd, useModel as Aa, useId as Na, computed as ce, useTemplateRef as Kd, openBlock as ge, createElementBlock as _t, createBlock as ct, createCommentVNode as Ut, createVNode as We, mergeProps as Oa, mergeModels as Rr, useCssVars as Ud, useSlots as qd, watch as gs, createElementVNode as ys, normalizeClass as yr, Transition as _d, withCtx as En, toHandlers as Gd, renderSlot as ks, Fragment as Ra, onUnmounted as Yd, renderList as Xd, withModifiers as Ko, withKeys as Qd } from "vue";
2
- import { aa as Zd, ab as ef, ac as tf, E as zi, F as Uo, Z as nf, ad as rf, _ as sf } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-C_cPLZAX.js";
1
+ import { shallowRef as Fd, onMounted as Zs, onBeforeUnmount as Ea, defineComponent as ze, h as Si, ref as Oe, getCurrentInstance as Vd, watchEffect as Hd, nextTick as eo, unref as j, markRaw as jd, customRef as Wd, createPropsRestProxy as Jd, useModel as Aa, useId as Na, computed as ce, useTemplateRef as Kd, openBlock as ge, createElementBlock as _t, createBlock as ct, createCommentVNode as Ut, createVNode as We, mergeProps as Oa, mergeModels as Ir, useCssVars as Ud, useSlots as qd, watch as gs, createElementVNode as ys, normalizeClass as kr, Transition as _d, withCtx as En, toHandlers as Gd, renderSlot as ks, Fragment as Ra, onUnmounted as Yd, renderList as Xd, withModifiers as Ko, withKeys as Qd } from "vue";
2
+ import { aa as Zd, ab as ef, ac as tf, E as zi, F as Uo, Z as nf, ad as rf, _ as sf } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-CYI3TitX.js";
3
3
  function Z(n) {
4
4
  this.content = n;
5
5
  }
@@ -336,15 +336,15 @@ let x = class le {
336
336
  */
337
337
  findIndex(e) {
338
338
  if (e == 0)
339
- return nr(0, e);
339
+ return rr(0, e);
340
340
  if (e == this.size)
341
- return nr(this.content.length, e);
341
+ return rr(this.content.length, e);
342
342
  if (e > this.size || e < 0)
343
343
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
344
344
  for (let t = 0, r = 0; ; t++) {
345
345
  let i = this.child(t), s = r + i.nodeSize;
346
346
  if (s >= e)
347
- return s == e ? nr(t + 1, s) : nr(t, r);
347
+ return s == e ? rr(t + 1, s) : rr(t, r);
348
348
  r = s;
349
349
  }
350
350
  }
@@ -410,10 +410,10 @@ let x = class le {
410
410
  };
411
411
  x.empty = new x([], 0);
412
412
  const $i = { index: 0, offset: 0 };
413
- function nr(n, e) {
413
+ function rr(n, e) {
414
414
  return $i.index = n, $i.offset = e, $i;
415
415
  }
416
- function Ir(n, e) {
416
+ function Dr(n, e) {
417
417
  if (n === e)
418
418
  return !0;
419
419
  if (!(n && typeof n == "object") || !(e && typeof e == "object"))
@@ -425,11 +425,11 @@ function Ir(n, e) {
425
425
  if (n.length != e.length)
426
426
  return !1;
427
427
  for (let r = 0; r < n.length; r++)
428
- if (!Ir(n[r], e[r]))
428
+ if (!Dr(n[r], e[r]))
429
429
  return !1;
430
430
  } else {
431
431
  for (let r in n)
432
- if (!(r in e) || !Ir(n[r], e[r]))
432
+ if (!(r in e) || !Dr(n[r], e[r]))
433
433
  return !1;
434
434
  for (let r in e)
435
435
  if (!(r in n))
@@ -491,7 +491,7 @@ let B = class bs {
491
491
  another mark.
492
492
  */
493
493
  eq(e) {
494
- return this == e || this.type == e.type && Ir(this.attrs, e.attrs);
494
+ return this == e || this.type == e.type && Dr(this.attrs, e.attrs);
495
495
  }
496
496
  /**
497
497
  Convert this mark to a JSON-serializeable representation.
@@ -543,7 +543,7 @@ let B = class bs {
543
543
  }
544
544
  };
545
545
  B.none = [];
546
- let Dr = class extends Error {
546
+ let Vn = class extends Error {
547
547
  }, w = class zt {
548
548
  /**
549
549
  Create a slice. When specifying a non-zero open depth, you must
@@ -645,9 +645,9 @@ function za(n, e, t, r, i, s) {
645
645
  }
646
646
  function of(n, e, t) {
647
647
  if (t.openStart > n.depth)
648
- throw new Dr("Inserted content deeper than insertion position");
648
+ throw new Vn("Inserted content deeper than insertion position");
649
649
  if (n.depth - t.openStart != e.depth - t.openEnd)
650
- throw new Dr("Inconsistent open depths");
650
+ throw new Vn("Inconsistent open depths");
651
651
  return $a(n, e, t, 0);
652
652
  }
653
653
  function $a(n, e, t, r) {
@@ -667,7 +667,7 @@ function $a(n, e, t, r) {
667
667
  }
668
668
  function Fa(n, e) {
669
669
  if (!e.type.compatibleContent(n.type))
670
- throw new Dr("Cannot join " + e.type.name + " onto " + n.type.name);
670
+ throw new Vn("Cannot join " + e.type.name + " onto " + n.type.name);
671
671
  }
672
672
  function xs(n, e, t) {
673
673
  let r = n.node(t);
@@ -685,7 +685,9 @@ function An(n, e, t, r) {
685
685
  e && e.depth == t && e.textOffset && St(e.nodeBefore, r);
686
686
  }
687
687
  function vt(n, e) {
688
- return n.type.checkContent(e), n.copy(e);
688
+ if (!n.type.validContent(e))
689
+ throw new Vn("Invalid content for node " + n.type.name);
690
+ return n.copy(e);
689
691
  }
690
692
  function Va(n, e, t, r, i) {
691
693
  let s = n.depth > i && xs(n, e, i + 1), o = r.depth > i && xs(t, r, i + 1), l = [];
@@ -708,7 +710,7 @@ function lf(n, e) {
708
710
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
709
711
  };
710
712
  }
711
- class Vn {
713
+ class Hn {
712
714
  /**
713
715
  @internal
714
716
  */
@@ -936,7 +938,7 @@ class Vn {
936
938
  break;
937
939
  s = c - 1, i += a + 1;
938
940
  }
939
- return new Vn(t, r, s);
941
+ return new Hn(t, r, s);
940
942
  }
941
943
  /**
942
944
  @internal
@@ -951,7 +953,7 @@ class Vn {
951
953
  }
952
954
  else
953
955
  qo.set(e, r = new af());
954
- let i = r.elts[r.i] = Vn.resolve(e, t);
956
+ let i = r.elts[r.i] = Hn.resolve(e, t);
955
957
  return r.i = (r.i + 1) % cf, i;
956
958
  }
957
959
  }
@@ -1121,7 +1123,7 @@ class Re {
1121
1123
  attributes, and marks.
1122
1124
  */
1123
1125
  hasMarkup(e, t, r) {
1124
- return this.type == e && Ir(this.attrs, t || e.defaultAttrs || uf) && B.sameSet(this.marks, r || B.none);
1126
+ return this.type == e && Dr(this.attrs, t || e.defaultAttrs || uf) && B.sameSet(this.marks, r || B.none);
1125
1127
  }
1126
1128
  /**
1127
1129
  Create a new node with the same markup as this node, containing
@@ -1207,13 +1209,13 @@ class Re {
1207
1209
  [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1208
1210
  */
1209
1211
  resolve(e) {
1210
- return Vn.resolveCached(this, e);
1212
+ return Hn.resolveCached(this, e);
1211
1213
  }
1212
1214
  /**
1213
1215
  @internal
1214
1216
  */
1215
1217
  resolveNoCache(e) {
1216
- return Vn.resolve(this, e);
1218
+ return Hn.resolve(this, e);
1217
1219
  }
1218
1220
  /**
1219
1221
  Test whether a given mark or mark type occurs in this document
@@ -2294,11 +2296,11 @@ const Ya = {
2294
2296
  script: !0,
2295
2297
  style: !0,
2296
2298
  title: !0
2297
- }, Xa = { ol: !0, ul: !0 }, Hn = 1, Ss = 2, Nn = 4;
2299
+ }, Xa = { ol: !0, ul: !0 }, jn = 1, Ss = 2, Nn = 4;
2298
2300
  function Qo(n, e, t) {
2299
- return e != null ? (e ? Hn : 0) | (e === "full" ? Ss : 0) : n && n.whitespace == "pre" ? Hn | Ss : t & ~Nn;
2301
+ return e != null ? (e ? jn : 0) | (e === "full" ? Ss : 0) : n && n.whitespace == "pre" ? jn | Ss : t & ~Nn;
2300
2302
  }
2301
- class rr {
2303
+ class ir {
2302
2304
  constructor(e, t, r, i, s, o) {
2303
2305
  this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = o, this.content = [], this.activeMarks = B.none, this.match = s || (o & Nn ? null : e.contentMatch);
2304
2306
  }
@@ -2317,7 +2319,7 @@ class rr {
2317
2319
  return this.match.findWrapping(e.type);
2318
2320
  }
2319
2321
  finish(e) {
2320
- if (!(this.options & Hn)) {
2322
+ if (!(this.options & jn)) {
2321
2323
  let r = this.content[this.content.length - 1], i;
2322
2324
  if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) {
2323
2325
  let s = r;
@@ -2335,7 +2337,7 @@ class Zo {
2335
2337
  constructor(e, t, r) {
2336
2338
  this.parser = e, this.options = t, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
2337
2339
  let i = t.topNode, s, o = Qo(null, t.preserveWhitespace, 0) | (r ? Nn : 0);
2338
- i ? s = new rr(i.type, i.attrs, B.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new rr(null, null, B.none, !0, null, o) : s = new rr(e.schema.topNodeType, null, B.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
2340
+ i ? s = new ir(i.type, i.attrs, B.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new ir(null, null, B.none, !0, null, o) : s = new ir(e.schema.topNodeType, null, B.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
2339
2341
  }
2340
2342
  get top() {
2341
2343
  return this.nodes[this.open];
@@ -2347,7 +2349,7 @@ class Zo {
2347
2349
  e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
2348
2350
  }
2349
2351
  addTextNode(e, t) {
2350
- let r = e.nodeValue, i = this.top, s = i.options & Ss ? "full" : this.localPreserveWS || (i.options & Hn) > 0, { schema: o } = this.parser;
2352
+ let r = e.nodeValue, i = this.top, s = i.options & Ss ? "full" : this.localPreserveWS || (i.options & jn) > 0, { schema: o } = this.parser;
2351
2353
  if (s === "full" || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
2352
2354
  if (s)
2353
2355
  if (s === "full")
@@ -2519,7 +2521,7 @@ class Zo {
2519
2521
  let l = Qo(e, s, o.options);
2520
2522
  o.options & Nn && o.content.length == 0 && (l |= Nn);
2521
2523
  let a = B.none;
2522
- return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : tl(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new rr(e, t, a, i, null, l)), this.open++, r;
2524
+ return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : tl(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new ir(e, t, a, i, null, l)), this.open++, r;
2523
2525
  }
2524
2526
  // Make sure all nodes above this.open are finished and added to
2525
2527
  // their parents
@@ -2538,7 +2540,7 @@ class Zo {
2538
2540
  for (let t = this.open; t >= 0; t--) {
2539
2541
  if (this.nodes[t] == e)
2540
2542
  return this.open = t, !0;
2541
- this.localPreserveWS && (this.nodes[t].options |= Hn);
2543
+ this.localPreserveWS && (this.nodes[t].options |= jn);
2542
2544
  }
2543
2545
  return !1;
2544
2546
  }
@@ -2666,7 +2668,7 @@ class It {
2666
2668
  nodes.
2667
2669
  */
2668
2670
  serializeFragment(e, t = {}, r) {
2669
- r || (r = ir(t).createDocumentFragment());
2671
+ r || (r = sr(t).createDocumentFragment());
2670
2672
  let i = r, s = [];
2671
2673
  return e.forEach((o) => {
2672
2674
  if (s.length || o.marks.length) {
@@ -2696,8 +2698,8 @@ class It {
2696
2698
  */
2697
2699
  serializeNodeInner(e, t) {
2698
2700
  if (e.isText)
2699
- return ir(t).createTextNode(e.text);
2700
- let { dom: r, contentDOM: i } = kr(ir(t), this.nodes[e.type.name](e), null, e.attrs);
2701
+ return sr(t).createTextNode(e.text);
2702
+ let { dom: r, contentDOM: i } = br(sr(t), this.nodes[e.type.name](e), null, e.attrs);
2701
2703
  if (i) {
2702
2704
  if (e.isLeaf)
2703
2705
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -2725,10 +2727,10 @@ class It {
2725
2727
  */
2726
2728
  serializeMark(e, t, r = {}) {
2727
2729
  let i = this.marks[e.type.name];
2728
- return i && kr(ir(r), i(e, t), null, e.attrs);
2730
+ return i && br(sr(r), i(e, t), null, e.attrs);
2729
2731
  }
2730
2732
  static renderSpec(e, t, r = null, i) {
2731
- return typeof t == "string" ? { dom: e.createTextNode(t) } : kr(e, t, r, i);
2733
+ return typeof t == "string" ? { dom: e.createTextNode(t) } : br(e, t, r, i);
2732
2734
  }
2733
2735
  /**
2734
2736
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -2760,7 +2762,7 @@ function nl(n) {
2760
2762
  }
2761
2763
  return e;
2762
2764
  }
2763
- function ir(n) {
2765
+ function sr(n) {
2764
2766
  return n.document || window.document;
2765
2767
  }
2766
2768
  const rl = /* @__PURE__ */ new WeakMap();
@@ -2784,7 +2786,7 @@ function Af(n) {
2784
2786
  }
2785
2787
  return t(n), e;
2786
2788
  }
2787
- function kr(n, e, t, r) {
2789
+ function br(n, e, t, r) {
2788
2790
  if (e.nodeType == 1)
2789
2791
  return { dom: e };
2790
2792
  if (e.dom && e.dom.nodeType == 1)
@@ -2814,7 +2816,7 @@ function kr(n, e, t, r) {
2814
2816
  } else if (typeof f == "string")
2815
2817
  a.appendChild(n.createTextNode(f));
2816
2818
  else {
2817
- let { dom: h, contentDOM: p } = kr(n, f, t, r);
2819
+ let { dom: h, contentDOM: p } = br(n, f, t, r);
2818
2820
  if (a.appendChild(h), p) {
2819
2821
  if (l)
2820
2822
  throw new RangeError("Multiple content holes");
@@ -2834,7 +2836,7 @@ function il(n) {
2834
2836
  function Of(n) {
2835
2837
  return (n - (n & Qa)) / Za;
2836
2838
  }
2837
- const ec = 1, tc = 2, br = 4, nc = 8;
2839
+ const ec = 1, tc = 2, xr = 4, nc = 8;
2838
2840
  let vs = class {
2839
2841
  /**
2840
2842
  @internal
@@ -2854,13 +2856,13 @@ let vs = class {
2854
2856
  Tells you whether the token before the mapped position was deleted.
2855
2857
  */
2856
2858
  get deletedBefore() {
2857
- return (this.delInfo & (ec | br)) > 0;
2859
+ return (this.delInfo & (ec | xr)) > 0;
2858
2860
  }
2859
2861
  /**
2860
2862
  True when the token after the mapped position was deleted.
2861
2863
  */
2862
2864
  get deletedAfter() {
2863
- return (this.delInfo & (tc | br)) > 0;
2865
+ return (this.delInfo & (tc | xr)) > 0;
2864
2866
  }
2865
2867
  /**
2866
2868
  Tells whether any of the steps mapped through deletes across the
@@ -2868,7 +2870,7 @@ let vs = class {
2868
2870
  position).
2869
2871
  */
2870
2872
  get deletedAcross() {
2871
- return (this.delInfo & br) > 0;
2873
+ return (this.delInfo & xr) > 0;
2872
2874
  }
2873
2875
  }, Et = class $t {
2874
2876
  /**
@@ -2910,7 +2912,7 @@ let vs = class {
2910
2912
  let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + i + (f < 0 ? 0 : u);
2911
2913
  if (r)
2912
2914
  return h;
2913
- let p = e == (t < 0 ? a : d) ? null : Nf(l / 3, e - a), m = e == a ? tc : e == d ? ec : br;
2915
+ let p = e == (t < 0 ? a : d) ? null : Nf(l / 3, e - a), m = e == a ? tc : e == d ? ec : xr;
2914
2916
  return (t < 0 ? e != a : e != d) && (m |= nc), new vs(h, m, p);
2915
2917
  }
2916
2918
  i += u - c;
@@ -2967,7 +2969,7 @@ let vs = class {
2967
2969
  }
2968
2970
  };
2969
2971
  Et.empty = new Et([]);
2970
- class jn {
2972
+ class Wn {
2971
2973
  /**
2972
2974
  Create a new mapping with the given position maps.
2973
2975
  */
@@ -2984,7 +2986,7 @@ class jn {
2984
2986
  Create a mapping that maps only through a part of this one.
2985
2987
  */
2986
2988
  slice(e = 0, t = this.maps.length) {
2987
- return new jn(this._maps, this.mirror, e, t);
2989
+ return new Wn(this._maps, this.mirror, e, t);
2988
2990
  }
2989
2991
  /**
2990
2992
  Add a step map to the end of this mapping. If `mirrors` is
@@ -3035,7 +3037,7 @@ class jn {
3035
3037
  Create an inverted version of this mapping.
3036
3038
  */
3037
3039
  invert() {
3038
- let e = new jn();
3040
+ let e = new Wn();
3039
3041
  return e.appendMappingInverted(this), e;
3040
3042
  }
3041
3043
  /**
@@ -3143,7 +3145,7 @@ let se = class {
3143
3145
  try {
3144
3146
  return un.ok(e.replace(t, r, i));
3145
3147
  } catch (s) {
3146
- if (s instanceof Dr)
3148
+ if (s instanceof Vn)
3147
3149
  return un.fail(s.message);
3148
3150
  throw s;
3149
3151
  }
@@ -3367,7 +3369,7 @@ let Ee = class Xe extends se {
3367
3369
  };
3368
3370
  Ee.MAP_BIAS = 1;
3369
3371
  se.jsonID("replace", Ee);
3370
- let ke = class xr extends se {
3372
+ let ke = class Sr extends se {
3371
3373
  /**
3372
3374
  Create a replace-around step with the given range and gap.
3373
3375
  `insert` should be the point in the slice into which the content
@@ -3398,11 +3400,11 @@ let ke = class xr extends se {
3398
3400
  }
3399
3401
  invert(e) {
3400
3402
  let t = this.gapTo - this.gapFrom;
3401
- return new xr(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
3403
+ return new Sr(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
3402
3404
  }
3403
3405
  map(e) {
3404
3406
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), s = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
3405
- return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new xr(t.pos, r.pos, i, s, this.slice, this.insert, this.structure);
3407
+ return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new Sr(t.pos, r.pos, i, s, this.slice, this.insert, this.structure);
3406
3408
  }
3407
3409
  toJSON() {
3408
3410
  let e = {
@@ -3421,7 +3423,7 @@ let ke = class xr extends se {
3421
3423
  static fromJSON(e, t) {
3422
3424
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
3423
3425
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
3424
- return new xr(t.from, t.to, t.gapFrom, t.gapTo, w.fromJSON(e, t.slice), t.insert, !!t.structure);
3426
+ return new Sr(t.from, t.to, t.gapFrom, t.gapTo, w.fromJSON(e, t.slice), t.insert, !!t.structure);
3425
3427
  }
3426
3428
  };
3427
3429
  se.jsonID("replaceAround", ke);
@@ -4026,7 +4028,7 @@ function uc(n, e) {
4026
4028
  }
4027
4029
  return t;
4028
4030
  }
4029
- let dc = class Sr extends se {
4031
+ let dc = class vr extends se {
4030
4032
  /**
4031
4033
  Construct an attribute step.
4032
4034
  */
@@ -4048,11 +4050,11 @@ let dc = class Sr extends se {
4048
4050
  return Et.empty;
4049
4051
  }
4050
4052
  invert(e) {
4051
- return new Sr(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
4053
+ return new vr(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
4052
4054
  }
4053
4055
  map(e) {
4054
4056
  let t = e.mapResult(this.pos, 1);
4055
- return t.deletedAfter ? null : new Sr(t.pos, this.attr, this.value);
4057
+ return t.deletedAfter ? null : new vr(t.pos, this.attr, this.value);
4056
4058
  }
4057
4059
  toJSON() {
4058
4060
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -4060,7 +4062,7 @@ let dc = class Sr extends se {
4060
4062
  static fromJSON(e, t) {
4061
4063
  if (typeof t.pos != "number" || typeof t.attr != "string")
4062
4064
  throw new RangeError("Invalid input for AttrStep.fromJSON");
4063
- return new Sr(t.pos, t.attr, t.value);
4065
+ return new vr(t.pos, t.attr, t.value);
4064
4066
  }
4065
4067
  };
4066
4068
  se.jsonID("attr", dc);
@@ -4112,7 +4114,7 @@ class hc {
4112
4114
  Create a transform that starts with the given document.
4113
4115
  */
4114
4116
  constructor(e) {
4115
- this.doc = e, this.steps = [], this.docs = [], this.mapping = new jn();
4117
+ this.doc = e, this.steps = [], this.docs = [], this.mapping = new Wn();
4116
4118
  }
4117
4119
  /**
4118
4120
  The starting document.
@@ -4668,7 +4670,7 @@ let Qf = class gc {
4668
4670
  let t = e.resolve(this.anchor), r = t.nodeAfter;
4669
4671
  return r && A.isSelectable(r) ? new A(t) : R.near(t);
4670
4672
  }
4671
- }, Ue = class vr extends R {
4673
+ }, Ue = class wr extends R {
4672
4674
  /**
4673
4675
  Create an all-selection over the given document.
4674
4676
  */
@@ -4690,13 +4692,13 @@ let Qf = class gc {
4690
4692
  @internal
4691
4693
  */
4692
4694
  static fromJSON(e) {
4693
- return new vr(e);
4695
+ return new wr(e);
4694
4696
  }
4695
4697
  map(e) {
4696
- return new vr(e);
4698
+ return new wr(e);
4697
4699
  }
4698
4700
  eq(e) {
4699
- return e instanceof vr;
4701
+ return e instanceof wr;
4700
4702
  }
4701
4703
  getBookmark() {
4702
4704
  return Zf;
@@ -4740,7 +4742,7 @@ function al(n, e, t) {
4740
4742
  o == null && (o = u);
4741
4743
  }), n.setSelection(R.near(n.doc.resolve(o), t));
4742
4744
  }
4743
- const cl = 1, sr = 2, ul = 4;
4745
+ const cl = 1, or = 2, ul = 4;
4744
4746
  class eh extends hc {
4745
4747
  /**
4746
4748
  @internal
@@ -4764,7 +4766,7 @@ class eh extends hc {
4764
4766
  setSelection(e) {
4765
4767
  if (e.$from.doc != this.doc)
4766
4768
  throw new RangeError("Selection passed to setSelection must point at the current document");
4767
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | cl) & ~sr, this.storedMarks = null, this;
4769
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | cl) & ~or, this.storedMarks = null, this;
4768
4770
  }
4769
4771
  /**
4770
4772
  Whether the selection was explicitly updated by this transaction.
@@ -4776,7 +4778,7 @@ class eh extends hc {
4776
4778
  Set the current stored marks.
4777
4779
  */
4778
4780
  setStoredMarks(e) {
4779
- return this.storedMarks = e, this.updated |= sr, this;
4781
+ return this.storedMarks = e, this.updated |= or, this;
4780
4782
  }
4781
4783
  /**
4782
4784
  Make sure the current stored marks or, if that is null, the marks
@@ -4802,13 +4804,13 @@ class eh extends hc {
4802
4804
  Whether the stored marks were explicitly set for this transaction.
4803
4805
  */
4804
4806
  get storedMarksSet() {
4805
- return (this.updated & sr) > 0;
4807
+ return (this.updated & or) > 0;
4806
4808
  }
4807
4809
  /**
4808
4810
  @internal
4809
4811
  */
4810
4812
  addStep(e, t) {
4811
- super.addStep(e, t), this.updated = this.updated & ~sr, this.storedMarks = null;
4813
+ super.addStep(e, t), this.updated = this.updated & ~or, this.storedMarks = null;
4812
4814
  }
4813
4815
  /**
4814
4816
  Update the timestamp for the transaction.
@@ -5618,7 +5620,7 @@ function hl(n, e, t, r, i) {
5618
5620
  return !0;
5619
5621
  if (e == (i < 0 ? 0 : Ce(n))) {
5620
5622
  let o = n.parentNode;
5621
- if (!o || o.nodeType != 1 || Zn(n) || wh.test(n.nodeName) || n.contentEditable == "false")
5623
+ if (!o || o.nodeType != 1 || er(n) || wh.test(n.nodeName) || n.contentEditable == "false")
5622
5624
  return !1;
5623
5625
  e = ee(n) + (i < 0 ? 0 : 1), n = o;
5624
5626
  } else if (n.nodeType == 1) {
@@ -5645,7 +5647,7 @@ function Ch(n, e) {
5645
5647
  if (n.contentEditable == "false")
5646
5648
  return null;
5647
5649
  n = n.childNodes[e - 1], e = Ce(n);
5648
- } else if (n.parentNode && !Zn(n))
5650
+ } else if (n.parentNode && !er(n))
5649
5651
  e = ee(n), n = n.parentNode;
5650
5652
  else
5651
5653
  return null;
@@ -5659,7 +5661,7 @@ function Th(n, e) {
5659
5661
  if (n.contentEditable == "false")
5660
5662
  return null;
5661
5663
  n = n.childNodes[e], e = 0;
5662
- } else if (n.parentNode && !Zn(n))
5664
+ } else if (n.parentNode && !er(n))
5663
5665
  e = ee(n) + 1, n = n.parentNode;
5664
5666
  else
5665
5667
  return null;
@@ -5675,7 +5677,7 @@ function Mh(n, e, t) {
5675
5677
  r = r && s == 0, i = i && s == Ce(n);
5676
5678
  }
5677
5679
  }
5678
- function Zn(n) {
5680
+ function er(n) {
5679
5681
  let e;
5680
5682
  for (let t = n; t && !(e = t.pmViewDesc); t = t.parentNode)
5681
5683
  ;
@@ -5710,7 +5712,7 @@ function Ah(n, e, t) {
5710
5712
  }
5711
5713
  const Pe = typeof navigator < "u" ? navigator : null, pl = typeof document < "u" ? document : null, ht = Pe && Pe.userAgent || "", Es = /Edge\/(\d+)/.exec(ht), Ic = /MSIE \d/.exec(ht), As = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ht), ye = !!(Ic || As || Es), ot = Ic ? document.documentMode : As ? +As[1] : Es ? +Es[1] : 0, Te = !ye && /gecko\/(\d+)/i.test(ht);
5712
5714
  Te && +(/Firefox\/(\d+)/.exec(ht) || [0, 0])[1];
5713
- const Ns = !ye && /Chrome\/(\d+)/.exec(ht), ne = !!Ns, Dc = Ns ? +Ns[1] : 0, ie = !ye && !!Pe && /Apple Computer/.test(Pe.vendor), Qt = ie && (/Mobile\/\w+/.test(ht) || !!Pe && Pe.maxTouchPoints > 2), we = Qt || (Pe ? /Mac/.test(Pe.platform) : !1), Lc = Pe ? /Win/.test(Pe.platform) : !1, Je = /Android \d/.test(ht), er = !!pl && "webkitFontSmoothing" in pl.documentElement.style, Nh = er ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5715
+ const Ns = !ye && /Chrome\/(\d+)/.exec(ht), ne = !!Ns, Dc = Ns ? +Ns[1] : 0, ie = !ye && !!Pe && /Apple Computer/.test(Pe.vendor), Qt = ie && (/Mobile\/\w+/.test(ht) || !!Pe && Pe.maxTouchPoints > 2), we = Qt || (Pe ? /Mac/.test(Pe.platform) : !1), Lc = Pe ? /Win/.test(Pe.platform) : !1, Je = /Android \d/.test(ht), tr = !!pl && "webkitFontSmoothing" in pl.documentElement.style, Nh = tr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5714
5716
  function Oh(n) {
5715
5717
  let e = n.defaultView && n.defaultView.visualViewport;
5716
5718
  return e ? {
@@ -5907,7 +5909,7 @@ function Fh(n, e) {
5907
5909
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && i++;
5908
5910
  }
5909
5911
  let c;
5910
- er && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = $h(n, r, i, e));
5912
+ tr && i && r.nodeType == 1 && (c = r.childNodes[i - 1]).nodeType == 1 && c.contentEditable == "false" && c.getBoundingClientRect().top >= e.top && i--, r == n.dom && i == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? l = n.state.doc.content.size : (i == 0 || r.nodeType != 1 || r.childNodes[i - 1].nodeName != "BR") && (l = $h(n, r, i, e));
5911
5913
  }
5912
5914
  l == null && (l = zh(n, o, e));
5913
5915
  let a = n.docView.nearestDesc(o, !0);
@@ -5927,7 +5929,7 @@ function Qe(n, e) {
5927
5929
  }
5928
5930
  const Vh = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
5929
5931
  function Fc(n, e, t) {
5930
- let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = er || Te;
5932
+ let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = tr || Te;
5931
5933
  if (r.nodeType == 3)
5932
5934
  if (o && (Vh.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
5933
5935
  let a = Qe(je(r, i, i), t);
@@ -6047,7 +6049,7 @@ function Jh(n, e, t) {
6047
6049
  return yl == e && kl == t ? bl : (yl = e, kl = t, bl = t == "up" || t == "down" ? Hh(n, e, t) : Wh(n, e, t));
6048
6050
  }
6049
6051
  const Me = 0, xl = 1, gt = 2, Be = 3;
6050
- class tr {
6052
+ class nr {
6051
6053
  constructor(e, t, r, i) {
6052
6054
  this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Me, r.pmViewDesc = this;
6053
6055
  }
@@ -6391,7 +6393,7 @@ class tr {
6391
6393
  return !1;
6392
6394
  }
6393
6395
  }
6394
- class Hc extends tr {
6396
+ class Hc extends nr {
6395
6397
  constructor(e, t, r, i) {
6396
6398
  let s, o = t.type.toDOM;
6397
6399
  if (typeof o == "function" && (o = o(r, () => {
@@ -6434,7 +6436,7 @@ class Hc extends tr {
6434
6436
  return this.widget.type.side;
6435
6437
  }
6436
6438
  }
6437
- class Kh extends tr {
6439
+ class Kh extends nr {
6438
6440
  constructor(e, t, r, i) {
6439
6441
  super(e, [], t, null), this.textDOM = r, this.text = i;
6440
6442
  }
@@ -6451,7 +6453,7 @@ class Kh extends tr {
6451
6453
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
6452
6454
  }
6453
6455
  }
6454
- class Nt extends tr {
6456
+ class Nt extends nr {
6455
6457
  constructor(e, t, r, i, s) {
6456
6458
  super(e, [], r, i), this.mark = t, this.spec = s;
6457
6459
  }
@@ -6487,7 +6489,7 @@ class Nt extends tr {
6487
6489
  this.spec.destroy && this.spec.destroy(), super.destroy();
6488
6490
  }
6489
6491
  }
6490
- class lt extends tr {
6492
+ class lt extends nr {
6491
6493
  constructor(e, t, r, i, s, o, l, a, c) {
6492
6494
  super(e, [], s, o), this.node = t, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = l;
6493
6495
  }
@@ -6661,7 +6663,7 @@ class Mi extends lt {
6661
6663
  return this.node.text == e;
6662
6664
  }
6663
6665
  }
6664
- class jc extends tr {
6666
+ class jc extends nr {
6665
6667
  parseRule() {
6666
6668
  return { ignore: !0 };
6667
6669
  }
@@ -7217,7 +7219,7 @@ function Al(n, e, t) {
7217
7219
  if (!s || s.isText)
7218
7220
  return !1;
7219
7221
  let l = e < 0 ? i.pos - s.nodeSize : i.pos;
7220
- return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? A.isSelectable(s) ? et(n, new A(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) : er ? et(n, new O(n.state.doc.resolve(e < 0 ? l : l + s.nodeSize))) : !1 : !1;
7222
+ return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? A.isSelectable(s) ? et(n, new A(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) : tr ? et(n, new O(n.state.doc.resolve(e < 0 ? l : l + s.nodeSize))) : !1 : !1;
7221
7223
  }
7222
7224
  } else return !1;
7223
7225
  else {
@@ -7312,7 +7314,7 @@ function Gc(n) {
7312
7314
  return e && e.node && e.node.isBlock;
7313
7315
  }
7314
7316
  function sp(n, e) {
7315
- for (; n && e == n.childNodes.length && !Zn(n); )
7317
+ for (; n && e == n.childNodes.length && !er(n); )
7316
7318
  e = ee(n) + 1, n = n.parentNode;
7317
7319
  for (; n && e < n.childNodes.length; ) {
7318
7320
  let t = n.childNodes[e];
@@ -7324,7 +7326,7 @@ function sp(n, e) {
7324
7326
  }
7325
7327
  }
7326
7328
  function op(n, e) {
7327
- for (; n && !e && !Zn(n); )
7329
+ for (; n && !e && !er(n); )
7328
7330
  e = ee(n), n = n.parentNode;
7329
7331
  for (; n && e; ) {
7330
7332
  let t = n.childNodes[e - 1];
@@ -7498,7 +7500,7 @@ function Yc(n, e, t, r, i) {
7498
7500
  } else
7499
7501
  n.someProp("transformPastedHTML", (d) => {
7500
7502
  t = d(t, n);
7501
- }), o = hp(t), er && pp(o);
7503
+ }), o = hp(t), tr && pp(o);
7502
7504
  let c = o && o.querySelector("[data-pm-slice]"), u = c && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice") || "");
7503
7505
  if (u && u[3])
7504
7506
  for (let d = +u[3]; d > 0; d--) {
@@ -7932,12 +7934,12 @@ function Lp(n, e) {
7932
7934
  t.parentNode && t.parentNode.removeChild(t), n.focus();
7933
7935
  }, 50);
7934
7936
  }
7935
- const Wn = ye && ot < 15 || Qt && Nh < 604;
7937
+ const Jn = ye && ot < 15 || Qt && Nh < 604;
7936
7938
  he.copy = pe.cut = (n, e) => {
7937
7939
  let t = e, r = n.state.selection, i = t.type == "cut";
7938
7940
  if (r.empty)
7939
7941
  return;
7940
- let s = Wn ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = po(n, o);
7942
+ let s = Jn ? null : t.clipboardData, o = r.content(), { dom: l, text: a } = po(n, o);
7941
7943
  s ? (t.preventDefault(), s.clearData(), s.setData("text/html", l.innerHTML), s.setData("text/plain", a)) : Lp(n, l), i && n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
7942
7944
  };
7943
7945
  function Pp(n) {
@@ -7950,10 +7952,10 @@ function Bp(n, e) {
7950
7952
  t || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus();
7951
7953
  let i = n.input.shiftKey && n.input.lastKeyCode != 45;
7952
7954
  setTimeout(() => {
7953
- n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? Jn(n, r.value, null, i, e) : Jn(n, r.textContent, r.innerHTML, i, e);
7955
+ n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? Kn(n, r.value, null, i, e) : Kn(n, r.textContent, r.innerHTML, i, e);
7954
7956
  }, 50);
7955
7957
  }
7956
- function Jn(n, e, t, r, i) {
7958
+ function Kn(n, e, t, r, i) {
7957
7959
  let s = Yc(n, e, t, r, n.state.selection.$from);
7958
7960
  if (n.someProp("handlePaste", (a) => a(n, i, s || w.empty)))
7959
7961
  return !0;
@@ -7973,8 +7975,8 @@ pe.paste = (n, e) => {
7973
7975
  let t = e;
7974
7976
  if (n.composing && !Je)
7975
7977
  return;
7976
- let r = Wn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
7977
- r && Jn(n, ou(r), r.getData("text/html"), i, t) ? t.preventDefault() : Bp(n, t);
7978
+ let r = Jn ? null : t.clipboardData, i = n.input.shiftKey && n.input.lastKeyCode != 45;
7979
+ r && Kn(n, ou(r), r.getData("text/html"), i, t) ? t.preventDefault() : Bp(n, t);
7978
7980
  };
7979
7981
  class lu {
7980
7982
  constructor(e, t, r) {
@@ -8002,7 +8004,7 @@ he.dragstart = (n, e) => {
8002
8004
  }
8003
8005
  }
8004
8006
  let l = (o || n.state.selection).content(), { dom: a, text: c, slice: u } = po(n, l);
8005
- (!t.dataTransfer.files.length || !ne || Dc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Wn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Wn || t.dataTransfer.setData("text/plain", c), n.dragging = new lu(u, au(n, t), o);
8007
+ (!t.dataTransfer.files.length || !ne || Dc > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Jn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Jn || t.dataTransfer.setData("text/plain", c), n.dragging = new lu(u, au(n, t), o);
8006
8008
  };
8007
8009
  he.dragend = (n) => {
8008
8010
  let e = n.dragging;
@@ -8027,7 +8029,7 @@ function $p(n, e, t) {
8027
8029
  let i = n.state.doc.resolve(r.pos), s = t && t.slice;
8028
8030
  s ? n.someProp("transformPasted", (h) => {
8029
8031
  s = h(s, n, !1);
8030
- }) : s = Yc(n, ou(e.dataTransfer), Wn ? null : e.dataTransfer.getData("text/html"), !1, i);
8032
+ }) : s = Yc(n, ou(e.dataTransfer), Jn ? null : e.dataTransfer.getData("text/html"), !1, i);
8031
8033
  let o = !!(t && au(n, e));
8032
8034
  if (n.someProp("handleDrop", (h) => h(n, e, s || w.empty, o))) {
8033
8035
  e.preventDefault();
@@ -8078,7 +8080,7 @@ he.beforeinput = (n, e) => {
8078
8080
  };
8079
8081
  for (let n in pe)
8080
8082
  he[n] = pe[n];
8081
- function Kn(n, e) {
8083
+ function Un(n, e) {
8082
8084
  if (n == e)
8083
8085
  return !0;
8084
8086
  for (let t in n)
@@ -8101,7 +8103,7 @@ class Hr {
8101
8103
  return !0;
8102
8104
  }
8103
8105
  eq(e) {
8104
- return this == e || e instanceof Hr && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Kn(this.spec, e.spec));
8106
+ return this == e || e instanceof Hr && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Un(this.spec, e.spec));
8105
8107
  }
8106
8108
  destroy(e) {
8107
8109
  this.spec.destroy && this.spec.destroy(e);
@@ -8119,7 +8121,7 @@ class at {
8119
8121
  return t.from < t.to;
8120
8122
  }
8121
8123
  eq(e) {
8122
- return this == e || e instanceof at && Kn(this.attrs, e.attrs) && Kn(this.spec, e.spec);
8124
+ return this == e || e instanceof at && Un(this.attrs, e.attrs) && Un(this.spec, e.spec);
8123
8125
  }
8124
8126
  static is(e) {
8125
8127
  return e.type instanceof at;
@@ -8143,7 +8145,7 @@ class ko {
8143
8145
  return i == t.from && !(s = e.child(r)).isText && i + s.nodeSize == t.to;
8144
8146
  }
8145
8147
  eq(e) {
8146
- return this == e || e instanceof ko && Kn(this.attrs, e.attrs) && Kn(this.spec, e.spec);
8148
+ return this == e || e instanceof ko && Un(this.attrs, e.attrs) && Un(this.spec, e.spec);
8147
8149
  }
8148
8150
  destroy() {
8149
8151
  }
@@ -9286,13 +9288,13 @@ class fu {
9286
9288
  [`handlePaste`](https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste) hook.
9287
9289
  */
9288
9290
  pasteHTML(e, t) {
9289
- return Jn(this, "", e, !1, t || new ClipboardEvent("paste"));
9291
+ return Kn(this, "", e, !1, t || new ClipboardEvent("paste"));
9290
9292
  }
9291
9293
  /**
9292
9294
  Run the editor's paste logic with the given plain-text input.
9293
9295
  */
9294
9296
  pasteText(e, t) {
9295
- return Jn(this, e, null, !0, t || new ClipboardEvent("paste"));
9297
+ return Kn(this, e, null, !0, t || new ClipboardEvent("paste"));
9296
9298
  }
9297
9299
  /**
9298
9300
  Serialize the given slice as it would be if it was copied from
@@ -9906,7 +9908,7 @@ var Om = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) => {
9906
9908
  }
9907
9909
  return n;
9908
9910
  };
9909
- function or(n) {
9911
+ function lr(n) {
9910
9912
  if (typeof window > "u")
9911
9913
  throw new Error(
9912
9914
  "[tiptap error]: there is no window object available, so this function cannot be used"
@@ -9914,7 +9916,7 @@ function or(n) {
9914
9916
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
9915
9917
  return ku(t);
9916
9918
  }
9917
- function Un(n, e, t) {
9919
+ function qn(n, e, t) {
9918
9920
  if (n instanceof Re || n instanceof x)
9919
9921
  return n;
9920
9922
  t = {
@@ -9932,7 +9934,7 @@ function Un(n, e, t) {
9932
9934
  } catch (s) {
9933
9935
  if (t.errorOnInvalidContent)
9934
9936
  throw new Error("[tiptap error]: Invalid JSON content", { cause: s });
9935
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", s), Un("", e, t);
9937
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", s), qn("", e, t);
9936
9938
  }
9937
9939
  if (i) {
9938
9940
  if (t.errorOnInvalidContent) {
@@ -9956,10 +9958,10 @@ function Un(n, e, t) {
9956
9958
  })
9957
9959
  });
9958
9960
  if (t.slice ? st.fromSchema(a).parseSlice(
9959
- or(n),
9961
+ lr(n),
9960
9962
  t.parseOptions
9961
9963
  ) : st.fromSchema(a).parse(
9962
- or(n),
9964
+ lr(n),
9963
9965
  t.parseOptions
9964
9966
  ), t.errorOnInvalidContent && o)
9965
9967
  throw new Error("[tiptap error]: Invalid HTML content", {
@@ -9967,9 +9969,9 @@ function Un(n, e, t) {
9967
9969
  });
9968
9970
  }
9969
9971
  const s = st.fromSchema(e);
9970
- return t.slice ? s.parseSlice(or(n), t.parseOptions).content : s.parse(or(n), t.parseOptions);
9972
+ return t.slice ? s.parseSlice(lr(n), t.parseOptions).content : s.parse(lr(n), t.parseOptions);
9971
9973
  }
9972
- return Un("", e, t);
9974
+ return qn("", e, t);
9973
9975
  }
9974
9976
  function Dm(n, e, t) {
9975
9977
  const r = n.steps.length - 1;
@@ -10009,7 +10011,7 @@ var Lm = (n) => !("type" in n), Pm = (n, e, t) => ({ tr: r, dispatch: i, editor:
10009
10011
  };
10010
10012
  if (!t.errorOnInvalidContent && !s.options.enableContentCheck && s.options.emitContentError)
10011
10013
  try {
10012
- Un(e, s.schema, {
10014
+ qn(e, s.schema, {
10013
10015
  parseOptions: c,
10014
10016
  errorOnInvalidContent: !0
10015
10017
  });
@@ -10017,7 +10019,7 @@ var Lm = (n) => !("type" in n), Pm = (n, e, t) => ({ tr: r, dispatch: i, editor:
10017
10019
  a(g);
10018
10020
  }
10019
10021
  try {
10020
- l = Un(e, s.schema, {
10022
+ l = qn(e, s.schema, {
10021
10023
  parseOptions: c,
10022
10024
  errorOnInvalidContent: (o = t.errorOnInvalidContent) != null ? o : s.options.enableContentCheck
10023
10025
  });
@@ -10165,7 +10167,7 @@ var Ym = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
10165
10167
  return !0;
10166
10168
  }, Zm = () => ({ state: n, dispatch: e }) => wc(n, e), eg = () => ({ state: n, dispatch: e }) => Mc(n, e), tg = () => ({ state: n, dispatch: e }) => uh(n, e), ng = () => ({ state: n, dispatch: e }) => hh(n, e), rg = () => ({ state: n, dispatch: e }) => fh(n, e);
10167
10169
  function Bs(n, e, t = {}, r = {}) {
10168
- return Un(n, e, {
10170
+ return qn(n, e, {
10169
10171
  slice: !1,
10170
10172
  parseOptions: t,
10171
10173
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -10402,7 +10404,7 @@ function q(...n) {
10402
10404
  }), r;
10403
10405
  }, {});
10404
10406
  }
10405
- function qn(n, e) {
10407
+ function _n(n, e) {
10406
10408
  return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
10407
10409
  [t.name]: n.attrs[t.name]
10408
10410
  }).reduce((t, r) => q(t, r), {});
@@ -10506,7 +10508,7 @@ function dg(n, e) {
10506
10508
  );
10507
10509
  m && (h.toDOM = (y) => m({
10508
10510
  node: y,
10509
- HTMLAttributes: qn(y, u)
10511
+ HTMLAttributes: _n(y, u)
10510
10512
  }));
10511
10513
  const g = T(
10512
10514
  c,
@@ -10561,7 +10563,7 @@ function dg(n, e) {
10561
10563
  );
10562
10564
  return m && (h.toDOM = (g) => m({
10563
10565
  mark: g,
10564
- HTMLAttributes: qn(g, u)
10566
+ HTMLAttributes: _n(g, u)
10565
10567
  })), [c.name, h];
10566
10568
  })
10567
10569
  );
@@ -10704,7 +10706,7 @@ var yg = (n, e, t, r = 20) => {
10704
10706
  function an(n, e) {
10705
10707
  return e.nodes[n] || e.marks[n] || null;
10706
10708
  }
10707
- function wr(n, e, t) {
10709
+ function Cr(n, e, t) {
10708
10710
  return Object.fromEntries(
10709
10711
  Object.entries(t).filter(([r]) => {
10710
10712
  const i = n.find((s) => s.type === e && s.name === r);
@@ -10791,7 +10793,7 @@ function Qi(n, e) {
10791
10793
  }, s = L(T(r, "group", i));
10792
10794
  return typeof s != "string" ? !1 : s.split(" ").includes("list");
10793
10795
  }
10794
- function _n(n, {
10796
+ function Gn(n, {
10795
10797
  checkChildren: e = !0,
10796
10798
  ignoreWhitespace: t = !1
10797
10799
  } = {}) {
@@ -10811,7 +10813,7 @@ function _n(n, {
10811
10813
  if (e) {
10812
10814
  let i = !0;
10813
10815
  return n.content.forEach((s) => {
10814
- i !== !1 && (_n(s, { ignoreWhitespace: t, checkChildren: e }) || (i = !1));
10816
+ i !== !1 && (Gn(s, { ignoreWhitespace: t, checkChildren: e }) || (i = !1));
10815
10817
  }), i;
10816
10818
  }
10817
10819
  return !1;
@@ -10936,7 +10938,7 @@ function ta(n, e) {
10936
10938
  }
10937
10939
  }
10938
10940
  var Ig = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
10939
- const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, u = wr(
10941
+ const { selection: s, doc: o } = e, { $from: l, $to: a } = s, c = i.extensionManager.attributes, u = Cr(
10940
10942
  c,
10941
10943
  l.node().type.name,
10942
10944
  l.node().attrs
@@ -10986,7 +10988,7 @@ var Ig = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
10986
10988
  // oxlint-disable-next-line no-nested-ternary
10987
10989
  a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3
10988
10990
  ), S = {
10989
- ...wr(f, a.node().type.name, a.node().attrs),
10991
+ ...Cr(f, a.node().type.name, a.node().attrs),
10990
10992
  ...e
10991
10993
  }, M = ((o = l.contentMatch.defaultType) == null ? void 0 : o.createAndFill(S)) || void 0;
10992
10994
  y = y.append(x.from(l.createAndFill(null, M) || void 0));
@@ -11002,10 +11004,10 @@ var Ig = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
11002
11004
  return !0;
11003
11005
  }
11004
11006
  const h = c.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p = {
11005
- ...wr(f, d.type.name, d.attrs),
11007
+ ...Cr(f, d.type.name, d.attrs),
11006
11008
  ...e
11007
11009
  }, m = {
11008
- ...wr(f, a.node().type.name, a.node().attrs),
11010
+ ...Cr(f, a.node().type.name, a.node().attrs),
11009
11011
  ...e
11010
11012
  };
11011
11013
  t.delete(a.pos, c.pos);
@@ -11230,7 +11232,7 @@ var Pg = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain:
11230
11232
  '[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'
11231
11233
  ), r.push(t.replaceWith)), r;
11232
11234
  };
11233
- function lr(n) {
11235
+ function ar(n) {
11234
11236
  var e;
11235
11237
  const { editor: t, from: r, to: i, text: s, rules: o, plugin: l } = n, { view: a } = t;
11236
11238
  if (a.composing)
@@ -11289,7 +11291,7 @@ function _g(n) {
11289
11291
  let { text: u } = a;
11290
11292
  typeof u == "string" ? u = u : u = Co(x.from(u), o.schema);
11291
11293
  const { from: d } = a, f = d + u.length;
11292
- lr({
11294
+ ar({
11293
11295
  editor: e,
11294
11296
  from: d,
11295
11297
  to: f,
@@ -11302,7 +11304,7 @@ function _g(n) {
11302
11304
  },
11303
11305
  props: {
11304
11306
  handleTextInput(i, s, o, l) {
11305
- return lr({
11307
+ return ar({
11306
11308
  editor: e,
11307
11309
  from: s,
11308
11310
  to: o,
@@ -11314,7 +11316,7 @@ function _g(n) {
11314
11316
  handleDOMEvents: {
11315
11317
  compositionend: (i) => (setTimeout(() => {
11316
11318
  const { $cursor: s } = i.state.selection;
11317
- s && lr({
11319
+ s && ar({
11318
11320
  editor: e,
11319
11321
  from: s.pos,
11320
11322
  to: s.pos,
@@ -11330,7 +11332,7 @@ function _g(n) {
11330
11332
  if (s.key !== "Enter")
11331
11333
  return !1;
11332
11334
  const { $cursor: o } = i.state.selection;
11333
- return o ? lr({
11335
+ return o ? ar({
11334
11336
  editor: e,
11335
11337
  from: o.pos,
11336
11338
  to: o.pos,
@@ -11349,13 +11351,13 @@ function _g(n) {
11349
11351
  function Gg(n) {
11350
11352
  return Object.prototype.toString.call(n).slice(8, -1);
11351
11353
  }
11352
- function ar(n) {
11354
+ function cr(n) {
11353
11355
  return Gg(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
11354
11356
  }
11355
11357
  function Ru(n, e) {
11356
11358
  const t = { ...n };
11357
- return ar(n) && ar(e) && Object.keys(e).forEach((r) => {
11358
- ar(e[r]) && ar(n[r]) ? t[r] = Ru(n[r], e[r]) : t[r] = e[r];
11359
+ return cr(n) && cr(e) && Object.keys(e).forEach((r) => {
11360
+ cr(e[r]) && cr(n[r]) ? t[r] = Ru(n[r], e[r]) : t[r] = e[r];
11359
11361
  }), t;
11360
11362
  }
11361
11363
  var Eo = class {
@@ -11479,7 +11481,7 @@ function Zg(n) {
11479
11481
  });
11480
11482
  }), d.every((h) => h !== null);
11481
11483
  }
11482
- var cr = null, ey = (n) => {
11484
+ var ur = null, ey = (n) => {
11483
11485
  var e;
11484
11486
  const t = new ClipboardEvent("paste", {
11485
11487
  clipboardData: new DataTransfer()
@@ -11527,9 +11529,9 @@ function ty(n) {
11527
11529
  view(d) {
11528
11530
  const f = (p) => {
11529
11531
  var m;
11530
- r = (m = d.dom.parentElement) != null && m.contains(p.target) ? d.dom.parentElement : null, r && (cr = e);
11532
+ r = (m = d.dom.parentElement) != null && m.contains(p.target) ? d.dom.parentElement : null, r && (ur = e);
11531
11533
  }, h = () => {
11532
- cr && (cr = null);
11534
+ ur && (ur = null);
11533
11535
  };
11534
11536
  return window.addEventListener("dragstart", f), window.addEventListener("dragend", h), {
11535
11537
  destroy() {
@@ -11541,7 +11543,7 @@ function ty(n) {
11541
11543
  handleDOMEvents: {
11542
11544
  drop: (d, f) => {
11543
11545
  if (s = r === d.dom.parentElement, l = f, !s) {
11544
- const h = cr;
11546
+ const h = ur;
11545
11547
  h?.isEditable && setTimeout(() => {
11546
11548
  const p = h.state.selection;
11547
11549
  p && h.commands.deleteRange({
@@ -11714,7 +11716,7 @@ var Di = class {
11714
11716
  if (!o)
11715
11717
  return [];
11716
11718
  const l = (a, c, u, d, f) => {
11717
- const h = qn(a, r);
11719
+ const h = _n(a, r);
11718
11720
  return o({
11719
11721
  // pass-through
11720
11722
  node: a,
@@ -11804,7 +11806,7 @@ var Di = class {
11804
11806
  if (!s)
11805
11807
  return [];
11806
11808
  const o = (l, a, c) => {
11807
- const u = qn(l, r);
11809
+ const u = _n(l, r);
11808
11810
  return s()({
11809
11811
  // pass-through
11810
11812
  mark: l,
@@ -12136,7 +12138,7 @@ var F = class Du extends Eo {
12136
12138
  if (!r || i)
12137
12139
  return;
12138
12140
  const { empty: s, from: o, to: l } = e.selection, a = R.atStart(e.doc).from, c = R.atEnd(e.doc).to;
12139
- if (s || !(o === a && l === c) || !_n(t.doc))
12141
+ if (s || !(o === a && l === c) || !Gn(t.doc))
12140
12142
  return;
12141
12143
  const f = t.tr, h = Ai({
12142
12144
  state: t,
@@ -12849,7 +12851,7 @@ var sy = class extends Ug {
12849
12851
  * Check if there is no content.
12850
12852
  */
12851
12853
  get isEmpty() {
12852
- return _n(this.state.doc);
12854
+ return Gn(this.state.doc);
12853
12855
  }
12854
12856
  /**
12855
12857
  * Destroy the editor.
@@ -13613,12 +13615,12 @@ function by() {
13613
13615
  });
13614
13616
  }
13615
13617
  const xy = hu({
13616
- ArrowLeft: ur("horiz", -1),
13617
- ArrowRight: ur("horiz", 1),
13618
- ArrowUp: ur("vert", -1),
13619
- ArrowDown: ur("vert", 1)
13618
+ ArrowLeft: dr("horiz", -1),
13619
+ ArrowRight: dr("horiz", 1),
13620
+ ArrowUp: dr("vert", -1),
13621
+ ArrowDown: dr("vert", 1)
13620
13622
  });
13621
- function ur(n, e) {
13623
+ function dr(n, e) {
13622
13624
  const t = n == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
13623
13625
  return function(r, i, s) {
13624
13626
  let o = r.selection, l = e > 0 ? o.$to : o.$from, a = o.empty;
@@ -13800,7 +13802,7 @@ class Ne {
13800
13802
  return c > Ey && (l = My(l, c), o -= c), new Ne(l.append(s), o);
13801
13803
  }
13802
13804
  remapping(e, t) {
13803
- let r = new jn();
13805
+ let r = new Wn();
13804
13806
  return this.items.forEach((i, s) => {
13805
13807
  let o = i.mirrorOffset != null && s - i.mirrorOffset >= e ? r.maps.length - i.mirrorOffset : void 0;
13806
13808
  r.appendMap(i.map, o);
@@ -13903,10 +13905,10 @@ function Ay(n, e, t, r) {
13903
13905
  if (t.steps.length == 0)
13904
13906
  return n;
13905
13907
  if (o && o.getMeta(Tt))
13906
- return o.getMeta(Tt).redo ? new tt(n.done.addTransform(t, void 0, r, Cr(e)), n.undone, na(t.mapping.maps), n.prevTime, n.prevComposition) : new tt(n.done, n.undone.addTransform(t, void 0, r, Cr(e)), null, n.prevTime, n.prevComposition);
13908
+ return o.getMeta(Tt).redo ? new tt(n.done.addTransform(t, void 0, r, Tr(e)), n.undone, na(t.mapping.maps), n.prevTime, n.prevComposition) : new tt(n.done, n.undone.addTransform(t, void 0, r, Tr(e)), null, n.prevTime, n.prevComposition);
13907
13909
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
13908
13910
  let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Ny(t, n.prevRanges)), c = o ? ts(n.prevRanges, t.mapping) : na(t.mapping.maps);
13909
- return new tt(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Cr(e)), Ne.empty, c, t.time, l ?? n.prevComposition);
13911
+ return new tt(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Tr(e)), Ne.empty, c, t.time, l ?? n.prevComposition);
13910
13912
  } else return (s = t.getMeta("rebased")) ? new tt(n.done.rebased(t, s), n.undone.rebased(t, s), ts(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new tt(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), ts(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
13911
13913
  }
13912
13914
  function Ny(n, e) {
@@ -13937,14 +13939,14 @@ function ts(n, e) {
13937
13939
  return t;
13938
13940
  }
13939
13941
  function Oy(n, e, t) {
13940
- let r = Cr(e), i = Tt.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
13942
+ let r = Tr(e), i = Tt.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
13941
13943
  if (!s)
13942
13944
  return null;
13943
13945
  let o = s.selection.resolve(s.transform.doc), l = (t ? n.done : n.undone).addTransform(s.transform, e.selection.getBookmark(), i, r), a = new tt(t ? l : s.remaining, t ? s.remaining : l, null, 0, -1);
13944
13946
  return s.transform.setSelection(o).setMeta(Tt, { redo: t, historyState: a });
13945
13947
  }
13946
13948
  let ns = !1, ra = null;
13947
- function Cr(n) {
13949
+ function Tr(n) {
13948
13950
  let e = n.plugins;
13949
13951
  if (ra != e) {
13950
13952
  ns = !1, ra = e;
@@ -14136,7 +14138,7 @@ var Py = F.create({
14136
14138
  allowGapCursor: (e = L(T(n, "allowGapCursor", t))) != null ? e : null
14137
14139
  };
14138
14140
  }
14139
- }), Qu = "placeholder", Gn = new _("tiptap__placeholder"), ia = 200;
14141
+ }), Qu = "placeholder", Yn = new _("tiptap__placeholder"), ia = 200;
14140
14142
  function sa(n) {
14141
14143
  const {
14142
14144
  editor: e,
@@ -14174,7 +14176,7 @@ function By({
14174
14176
  const { anchor: a } = i, c = [], u = n.isEmpty;
14175
14177
  if (e.showOnlyCurrent && !e.includeChildren) {
14176
14178
  const f = r.resolve(a), h = f.depth > 0 ? f.node(1) : f.nodeAfter, p = f.depth > 0 ? f.before(1) : a;
14177
- if (h && h.type.isTextblock && _n(h)) {
14179
+ if (h && h.type.isTextblock && Gn(h)) {
14178
14180
  const m = a >= p && a <= p + h.nodeSize;
14179
14181
  c.push(
14180
14182
  sa({
@@ -14198,9 +14200,9 @@ function By({
14198
14200
  );
14199
14201
  }
14200
14202
  } else {
14201
- const f = Gn.getState(n.state), h = (s = f?.topPos) != null ? s : 0, p = (o = f?.bottomPos) != null ? o : r.content.size;
14203
+ const f = Yn.getState(n.state), h = (s = f?.topPos) != null ? s : 0, p = (o = f?.bottomPos) != null ? o : r.content.size;
14202
14204
  r.nodesBetween(h, p, (m, g) => {
14203
- const y = a >= g && a <= g + m.nodeSize, b = !m.isLeaf && _n(m);
14205
+ const y = a >= g && a <= g + m.nodeSize, b = !m.isLeaf && Gn(m);
14204
14206
  return m.type.isTextblock && (y || !e.showOnlyCurrent) && b && c.push(
14205
14207
  sa({
14206
14208
  editor: n,
@@ -14282,7 +14284,7 @@ var jy = {
14282
14284
  * @returns The next viewport state.
14283
14285
  */
14284
14286
  apply(n, e) {
14285
- const t = n.getMeta(Gn);
14287
+ const t = n.getMeta(Yn);
14286
14288
  return t?.positions ? { topPos: t.positions.top, bottomPos: t.positions.bottom } : n.docChanged ? {
14287
14289
  topPos: e.topPos !== null ? n.mapping.map(e.topPos) : null,
14288
14290
  bottomPos: e.bottomPos !== null ? n.mapping.map(e.bottomPos) : null
@@ -14295,10 +14297,10 @@ function Wy(n) {
14295
14297
  view: n,
14296
14298
  doc: n.state.doc,
14297
14299
  scrollContainer: e
14298
- }), a = Gn.getState(n.state);
14300
+ }), a = Yn.getState(n.state);
14299
14301
  if (a?.topPos === l.top && a?.bottomPos === l.bottom)
14300
14302
  return;
14301
- const c = n.state.tr.setMeta(Gn, { positions: l });
14303
+ const c = n.state.tr.setMeta(Yn, { positions: l });
14302
14304
  n.dispatch(c);
14303
14305
  };
14304
14306
  let r = null, i = 0;
@@ -14321,7 +14323,7 @@ function Wy(n) {
14321
14323
  function Jy({ editor: n, options: e }) {
14322
14324
  const t = e.dataAttribute ? `data-${zy(e.dataAttribute)}` : `data-${Qu}`;
14323
14325
  return new $({
14324
- key: Gn,
14326
+ key: Yn,
14325
14327
  state: jy,
14326
14328
  view: Wy,
14327
14329
  props: {
@@ -14687,15 +14689,15 @@ var _e = class ae {
14687
14689
  */
14688
14690
  findIndex(e) {
14689
14691
  if (e == 0)
14690
- return dr(0, e);
14692
+ return fr(0, e);
14691
14693
  if (e == this.size)
14692
- return dr(this.content.length, e);
14694
+ return fr(this.content.length, e);
14693
14695
  if (e > this.size || e < 0)
14694
14696
  throw new RangeError(`Position ${e} outside of fragment (${this})`);
14695
14697
  for (let t = 0, r = 0; ; t++) {
14696
14698
  let i = this.child(t), s = r + i.nodeSize;
14697
14699
  if (s >= e)
14698
- return s == e ? dr(t + 1, s) : dr(t, r);
14700
+ return s == e ? fr(t + 1, s) : fr(t, r);
14699
14701
  r = s;
14700
14702
  }
14701
14703
  }
@@ -14761,7 +14763,7 @@ var _e = class ae {
14761
14763
  };
14762
14764
  _e.empty = new _e([], 0);
14763
14765
  var rs = { index: 0, offset: 0 };
14764
- function dr(n, e) {
14766
+ function fr(n, e) {
14765
14767
  return rs.index = n, rs.offset = e, rs;
14766
14768
  }
14767
14769
  var Yy = class extends Error {
@@ -14874,7 +14876,7 @@ function aa(n) {
14874
14876
  function Qy(n) {
14875
14877
  return (n - (n & rd)) / id;
14876
14878
  }
14877
- var sd = 1, od = 2, Tr = 4, ld = 8, ca = class {
14879
+ var sd = 1, od = 2, Mr = 4, ld = 8, ca = class {
14878
14880
  /**
14879
14881
  @internal
14880
14882
  */
@@ -14893,13 +14895,13 @@ var sd = 1, od = 2, Tr = 4, ld = 8, ca = class {
14893
14895
  Tells you whether the token before the mapped position was deleted.
14894
14896
  */
14895
14897
  get deletedBefore() {
14896
- return (this.delInfo & (sd | Tr)) > 0;
14898
+ return (this.delInfo & (sd | Mr)) > 0;
14897
14899
  }
14898
14900
  /**
14899
14901
  True when the token after the mapped position was deleted.
14900
14902
  */
14901
14903
  get deletedAfter() {
14902
- return (this.delInfo & (od | Tr)) > 0;
14904
+ return (this.delInfo & (od | Mr)) > 0;
14903
14905
  }
14904
14906
  /**
14905
14907
  Tells whether any of the steps mapped through deletes across the
@@ -14907,7 +14909,7 @@ var sd = 1, od = 2, Tr = 4, ld = 8, ca = class {
14907
14909
  position).
14908
14910
  */
14909
14911
  get deletedAcross() {
14910
- return (this.delInfo & Tr) > 0;
14912
+ return (this.delInfo & Mr) > 0;
14911
14913
  }
14912
14914
  }, Rt = class jt {
14913
14915
  /**
@@ -14949,7 +14951,7 @@ var sd = 1, od = 2, Tr = 4, ld = 8, ca = class {
14949
14951
  let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + i + (f < 0 ? 0 : u);
14950
14952
  if (r)
14951
14953
  return h;
14952
- let p = e == (t < 0 ? a : d) ? null : Xy(l / 3, e - a), m = e == a ? od : e == d ? sd : Tr;
14954
+ let p = e == (t < 0 ? a : d) ? null : Xy(l / 3, e - a), m = e == a ? od : e == d ? sd : Mr;
14953
14955
  return (t < 0 ? e != a : e != d) && (m |= ld), new ca(h, m, p);
14954
14956
  }
14955
14957
  i += u - c;
@@ -15298,7 +15300,7 @@ var Do = class Ze extends oe {
15298
15300
  };
15299
15301
  Do.MAP_BIAS = 1;
15300
15302
  oe.jsonID("replace", Do);
15301
- var fd = class Mr extends oe {
15303
+ var fd = class Er extends oe {
15302
15304
  /**
15303
15305
  Create a replace-around step with the given range and gap.
15304
15306
  `insert` should be the point in the slice into which the content
@@ -15329,11 +15331,11 @@ var fd = class Mr extends oe {
15329
15331
  }
15330
15332
  invert(e) {
15331
15333
  let t = this.gapTo - this.gapFrom;
15332
- return new Mr(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
15334
+ return new Er(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
15333
15335
  }
15334
15336
  map(e) {
15335
15337
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), s = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
15336
- return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new Mr(t.pos, r.pos, i, s, this.slice, this.insert, this.structure);
15338
+ return t.deletedAcross && r.deletedAcross || i < t.pos || s > r.pos ? null : new Er(t.pos, r.pos, i, s, this.slice, this.insert, this.structure);
15337
15339
  }
15338
15340
  toJSON() {
15339
15341
  let e = {
@@ -15352,7 +15354,7 @@ var fd = class Mr extends oe {
15352
15354
  static fromJSON(e, t) {
15353
15355
  if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
15354
15356
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
15355
- return new Mr(t.from, t.to, t.gapFrom, t.gapTo, K.fromJSON(e, t.slice), t.insert, !!t.structure);
15357
+ return new Er(t.from, t.to, t.gapFrom, t.gapTo, K.fromJSON(e, t.slice), t.insert, !!t.structure);
15356
15358
  }
15357
15359
  };
15358
15360
  oe.jsonID("replaceAround", fd);
@@ -15370,7 +15372,7 @@ function Hs(n, e, t) {
15370
15372
  }
15371
15373
  return !1;
15372
15374
  }
15373
- var Zy = class Er extends oe {
15375
+ var Zy = class Ar extends oe {
15374
15376
  /**
15375
15377
  Construct an attribute step.
15376
15378
  */
@@ -15392,11 +15394,11 @@ var Zy = class Er extends oe {
15392
15394
  return Rt.empty;
15393
15395
  }
15394
15396
  invert(e) {
15395
- return new Er(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
15397
+ return new Ar(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
15396
15398
  }
15397
15399
  map(e) {
15398
15400
  let t = e.mapResult(this.pos, 1);
15399
- return t.deletedAfter ? null : new Er(t.pos, this.attr, this.value);
15401
+ return t.deletedAfter ? null : new Ar(t.pos, this.attr, this.value);
15400
15402
  }
15401
15403
  toJSON() {
15402
15404
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -15404,7 +15406,7 @@ var Zy = class Er extends oe {
15404
15406
  static fromJSON(e, t) {
15405
15407
  if (typeof t.pos != "number" || typeof t.attr != "string")
15406
15408
  throw new RangeError("Invalid input for AttrStep.fromJSON");
15407
- return new Er(t.pos, t.attr, t.value);
15409
+ return new Ar(t.pos, t.attr, t.value);
15408
15410
  }
15409
15411
  };
15410
15412
  oe.jsonID("attr", Zy);
@@ -15442,15 +15444,15 @@ var e0 = class js extends oe {
15442
15444
  }
15443
15445
  };
15444
15446
  oe.jsonID("docAttr", e0);
15445
- var Yn = class extends Error {
15447
+ var Xn = class extends Error {
15446
15448
  };
15447
- Yn = function n(e) {
15449
+ Xn = function n(e) {
15448
15450
  let t = Error.call(this, e);
15449
15451
  return t.__proto__ = n.prototype, t;
15450
15452
  };
15451
- Yn.prototype = Object.create(Error.prototype);
15452
- Yn.prototype.constructor = Yn;
15453
- Yn.prototype.name = "TransformError";
15453
+ Xn.prototype = Object.create(Error.prototype);
15454
+ Xn.prototype.constructor = Xn;
15455
+ Xn.prototype.name = "TransformError";
15454
15456
  var ss = /* @__PURE__ */ Object.create(null), X = class {
15455
15457
  /**
15456
15458
  Initialize a selection with the head and anchor and ranges. If no
@@ -15770,7 +15772,7 @@ var n0 = class md {
15770
15772
  let t = e.resolve(this.anchor), r = t.nodeAfter;
15771
15773
  return r && rn.isSelectable(r) ? new rn(t) : X.near(t);
15772
15774
  }
15773
- }, Dn = class Ar extends X {
15775
+ }, Dn = class Nr extends X {
15774
15776
  /**
15775
15777
  Create an all-selection over the given document.
15776
15778
  */
@@ -15792,13 +15794,13 @@ var n0 = class md {
15792
15794
  @internal
15793
15795
  */
15794
15796
  static fromJSON(e) {
15795
- return new Ar(e);
15797
+ return new Nr(e);
15796
15798
  }
15797
15799
  map(e) {
15798
- return new Ar(e);
15800
+ return new Nr(e);
15799
15801
  }
15800
15802
  eq(e) {
15801
- return e instanceof Ar;
15803
+ return e instanceof Nr;
15802
15804
  }
15803
15805
  getBookmark() {
15804
15806
  return r0;
@@ -15845,33 +15847,33 @@ function fa(n, e, t) {
15845
15847
  function ha(n, e) {
15846
15848
  return !e || !n ? n : n.bind(e);
15847
15849
  }
15848
- var fr = class {
15850
+ var hr = class {
15849
15851
  constructor(n, e, t) {
15850
15852
  this.name = n, this.init = ha(e.init, t), this.apply = ha(e.apply, t);
15851
15853
  }
15852
15854
  };
15853
- new fr("doc", {
15855
+ new hr("doc", {
15854
15856
  init(n) {
15855
15857
  return n.doc || n.schema.topNodeType.createAndFill();
15856
15858
  },
15857
15859
  apply(n) {
15858
15860
  return n.doc;
15859
15861
  }
15860
- }), new fr("selection", {
15862
+ }), new hr("selection", {
15861
15863
  init(n, e) {
15862
15864
  return n.selection || X.atStart(e.doc);
15863
15865
  },
15864
15866
  apply(n) {
15865
15867
  return n.selection;
15866
15868
  }
15867
- }), new fr("storedMarks", {
15869
+ }), new hr("storedMarks", {
15868
15870
  init(n) {
15869
15871
  return n.storedMarks || null;
15870
15872
  },
15871
15873
  apply(n, e, t, r) {
15872
15874
  return r.selection.$cursor ? n.storedMarks : null;
15873
15875
  }
15874
- }), new fr("scrollToSelection", {
15876
+ }), new hr("scrollToSelection", {
15875
15877
  init() {
15876
15878
  return 0;
15877
15879
  },
@@ -16691,7 +16693,7 @@ me.prototype = {
16691
16693
  return i.j[n] = o, o;
16692
16694
  }
16693
16695
  };
16694
- const I = (n, e, t, r, i) => n.ta(e, t, r, i), H = (n, e, t, r, i) => n.tr(e, t, r, i), pa = (n, e, t, r, i) => n.ts(e, t, r, i), k = (n, e, t, r, i) => n.tt(e, t, r, i), He = "WORD", qs = "UWORD", kd = "ASCIINUMERICAL", bd = "ALPHANUMERICAL", Xn = "LOCALHOST", _s = "TLD", Gs = "UTLD", Nr = "SCHEME", Jt = "SLASH_SCHEME", Lo = "NUM", Ys = "WS", Po = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", _r = "OPENBRACKET", Gr = "CLOSEBRACKET", Yr = "OPENPAREN", Xr = "CLOSEPAREN", Qr = "OPENANGLEBRACKET", Zr = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", ii = "LEFTWHITECORNERBRACKET", si = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", nt = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", xt = "COLON", Bo = "COMMA", pi = "DOLLAR", De = "DOT", mi = "EQUALS", zo = "EXCLAMATION", ve = "HYPHEN", zn = "PERCENT", gi = "PIPE", yi = "PLUS", ki = "POUND", $n = "QUERY", $o = "QUOTE", xd = "FULLWIDTHMIDDLEDOT", Fo = "SEMI", Le = "SLASH", Fn = "TILDE", bi = "UNDERSCORE", Sd = "EMOJI", xi = "SYM";
16696
+ const I = (n, e, t, r, i) => n.ta(e, t, r, i), H = (n, e, t, r, i) => n.tr(e, t, r, i), pa = (n, e, t, r, i) => n.ts(e, t, r, i), k = (n, e, t, r, i) => n.tt(e, t, r, i), He = "WORD", qs = "UWORD", kd = "ASCIINUMERICAL", bd = "ALPHANUMERICAL", Qn = "LOCALHOST", _s = "TLD", Gs = "UTLD", Or = "SCHEME", Jt = "SLASH_SCHEME", Lo = "NUM", Ys = "WS", Po = "NL", Pn = "OPENBRACE", Bn = "CLOSEBRACE", _r = "OPENBRACKET", Gr = "CLOSEBRACKET", Yr = "OPENPAREN", Xr = "CLOSEPAREN", Qr = "OPENANGLEBRACKET", Zr = "CLOSEANGLEBRACKET", ei = "FULLWIDTHLEFTPAREN", ti = "FULLWIDTHRIGHTPAREN", ni = "LEFTCORNERBRACKET", ri = "RIGHTCORNERBRACKET", ii = "LEFTWHITECORNERBRACKET", si = "RIGHTWHITECORNERBRACKET", oi = "FULLWIDTHLESSTHAN", li = "FULLWIDTHGREATERTHAN", ai = "AMPERSAND", ci = "APOSTROPHE", ui = "ASTERISK", nt = "AT", di = "BACKSLASH", fi = "BACKTICK", hi = "CARET", xt = "COLON", Bo = "COMMA", pi = "DOLLAR", De = "DOT", mi = "EQUALS", zo = "EXCLAMATION", ve = "HYPHEN", zn = "PERCENT", gi = "PIPE", yi = "PLUS", ki = "POUND", $n = "QUERY", $o = "QUOTE", xd = "FULLWIDTHMIDDLEDOT", Fo = "SEMI", Le = "SLASH", Fn = "TILDE", bi = "UNDERSCORE", Sd = "EMOJI", xi = "SYM";
16695
16697
  var vd = /* @__PURE__ */ Object.freeze({
16696
16698
  __proto__: null,
16697
16699
  ALPHANUMERICAL: bd,
@@ -16722,7 +16724,7 @@ var vd = /* @__PURE__ */ Object.freeze({
16722
16724
  HYPHEN: ve,
16723
16725
  LEFTCORNERBRACKET: ni,
16724
16726
  LEFTWHITECORNERBRACKET: ii,
16725
- LOCALHOST: Xn,
16727
+ LOCALHOST: Qn,
16726
16728
  NL: Po,
16727
16729
  NUM: Lo,
16728
16730
  OPENANGLEBRACKET: Qr,
@@ -16737,7 +16739,7 @@ var vd = /* @__PURE__ */ Object.freeze({
16737
16739
  QUOTE: $o,
16738
16740
  RIGHTCORNERBRACKET: ri,
16739
16741
  RIGHTWHITECORNERBRACKET: si,
16740
- SCHEME: Nr,
16742
+ SCHEME: Or,
16741
16743
  SEMI: Fo,
16742
16744
  SLASH: Le,
16743
16745
  SLASH_SCHEME: Jt,
@@ -16752,12 +16754,12 @@ var vd = /* @__PURE__ */ Object.freeze({
16752
16754
  });
16753
16755
  const Fe = /[a-z]/, cn = new RegExp("\\p{L}", "u"), cs = new RegExp("\\p{Emoji}", "u"), Ve = /\d/, us = /\s/, ma = "\r", ds = `
16754
16756
  `, D0 = "️", L0 = "‍", fs = "";
16755
- let hr = null, pr = null;
16757
+ let pr = null, mr = null;
16756
16758
  function P0(n = []) {
16757
16759
  const e = {};
16758
16760
  me.groups = e;
16759
16761
  const t = new me();
16760
- hr == null && (hr = ga(E0)), pr == null && (pr = ga(A0)), k(t, "'", ci), k(t, "{", Pn), k(t, "}", Bn), k(t, "[", _r), k(t, "]", Gr), k(t, "(", Yr), k(t, ")", Xr), k(t, "<", Qr), k(t, ">", Zr), k(t, "(", ei), k(t, ")", ti), k(t, "「", ni), k(t, "」", ri), k(t, "『", ii), k(t, "』", si), k(t, "<", oi), k(t, ">", li), k(t, "&", ai), k(t, "*", ui), k(t, "@", nt), k(t, "`", fi), k(t, "^", hi), k(t, ":", xt), k(t, ",", Bo), k(t, "$", pi), k(t, ".", De), k(t, "=", mi), k(t, "!", zo), k(t, "-", ve), k(t, "%", zn), k(t, "|", gi), k(t, "+", yi), k(t, "#", ki), k(t, "?", $n), k(t, '"', $o), k(t, "/", Le), k(t, ";", Fo), k(t, "~", Fn), k(t, "_", bi), k(t, "\\", di), k(t, "・", xd);
16762
+ pr == null && (pr = ga(E0)), mr == null && (mr = ga(A0)), k(t, "'", ci), k(t, "{", Pn), k(t, "}", Bn), k(t, "[", _r), k(t, "]", Gr), k(t, "(", Yr), k(t, ")", Xr), k(t, "<", Qr), k(t, ">", Zr), k(t, "(", ei), k(t, ")", ti), k(t, "「", ni), k(t, "」", ri), k(t, "『", ii), k(t, "』", si), k(t, "<", oi), k(t, ">", li), k(t, "&", ai), k(t, "*", ui), k(t, "@", nt), k(t, "`", fi), k(t, "^", hi), k(t, ":", xt), k(t, ",", Bo), k(t, "$", pi), k(t, ".", De), k(t, "=", mi), k(t, "!", zo), k(t, "-", ve), k(t, "%", zn), k(t, "|", gi), k(t, "+", yi), k(t, "#", ki), k(t, "?", $n), k(t, '"', $o), k(t, "/", Le), k(t, ";", Fo), k(t, "~", Fn), k(t, "_", bi), k(t, "\\", di), k(t, "・", xd);
16761
16763
  const r = H(t, Ve, Lo, {
16762
16764
  [Ws]: !0
16763
16765
  });
@@ -16789,17 +16791,17 @@ function P0(n = []) {
16789
16791
  const f = k(d, L0);
16790
16792
  k(f, "#"), H(f, cs, d);
16791
16793
  const h = [[Fe, o], [Ve, i]], p = [[Fe, null], [cn, l], [Ve, s]];
16792
- for (let m = 0; m < hr.length; m++)
16793
- Ye(t, hr[m], _s, He, h);
16794
16794
  for (let m = 0; m < pr.length; m++)
16795
- Ye(t, pr[m], Gs, qs, p);
16795
+ Ye(t, pr[m], _s, He, h);
16796
+ for (let m = 0; m < mr.length; m++)
16797
+ Ye(t, mr[m], Gs, qs, p);
16796
16798
  bt(_s, {
16797
16799
  tld: !0,
16798
16800
  ascii: !0
16799
16801
  }, e), bt(Gs, {
16800
16802
  utld: !0,
16801
16803
  alpha: !0
16802
- }, e), Ye(t, "file", Nr, He, h), Ye(t, "mailto", Nr, He, h), Ye(t, "http", Jt, He, h), Ye(t, "https", Jt, He, h), Ye(t, "ftp", Jt, He, h), Ye(t, "ftps", Jt, He, h), bt(Nr, {
16804
+ }, e), Ye(t, "file", Or, He, h), Ye(t, "mailto", Or, He, h), Ye(t, "http", Jt, He, h), Ye(t, "https", Jt, He, h), Ye(t, "ftp", Jt, He, h), Ye(t, "ftps", Jt, He, h), bt(Or, {
16803
16805
  scheme: !0,
16804
16806
  ascii: !0
16805
16807
  }, e), bt(Jt, {
@@ -16814,7 +16816,7 @@ function P0(n = []) {
16814
16816
  };
16815
16817
  g.indexOf("-") >= 0 ? b[Us] = !0 : Fe.test(g) ? Ve.test(g) ? b[Ln] = !0 : b[Js] = !0 : b[Ws] = !0, pa(t, g, g, b);
16816
16818
  }
16817
- return pa(t, "localhost", Xn, {
16819
+ return pa(t, "localhost", Qn, {
16818
16820
  ascii: !0
16819
16821
  }), t.jd = new me(xi), {
16820
16822
  start: t,
@@ -16878,7 +16880,7 @@ function ga(n) {
16878
16880
  }
16879
16881
  return e;
16880
16882
  }
16881
- const Qn = {
16883
+ const Zn = {
16882
16884
  defaultProtocol: "http",
16883
16885
  events: null,
16884
16886
  format: ya,
@@ -16895,7 +16897,7 @@ const Qn = {
16895
16897
  render: null
16896
16898
  };
16897
16899
  function Vo(n, e = null) {
16898
- let t = Object.assign({}, Qn);
16900
+ let t = Object.assign({}, Zn);
16899
16901
  n && (t = Object.assign(t, n instanceof Vo ? n.o : n));
16900
16902
  const r = t.ignoreTags, i = [];
16901
16903
  for (let s = 0; s < r.length; s++)
@@ -16903,7 +16905,7 @@ function Vo(n, e = null) {
16903
16905
  this.o = t, e && (this.defaultRender = e), this.ignoreTags = i;
16904
16906
  }
16905
16907
  Vo.prototype = {
16906
- o: Qn,
16908
+ o: Zn,
16907
16909
  /**
16908
16910
  * @type string[]
16909
16911
  */
@@ -16939,7 +16941,7 @@ Vo.prototype = {
16939
16941
  get(n, e, t) {
16940
16942
  const r = e != null;
16941
16943
  let i = this.o[n];
16942
- return i && (typeof i == "object" ? (i = t.t in i ? i[t.t] : Qn[n], typeof i == "function" && r && (i = i(e, t))) : typeof i == "function" && r && (i = i(e, t.t, t)), i);
16944
+ return i && (typeof i == "object" ? (i = t.t in i ? i[t.t] : Zn[n], typeof i == "function" && r && (i = i(e, t))) : typeof i == "function" && r && (i = i(e, t.t, t)), i);
16943
16945
  },
16944
16946
  /**
16945
16947
  * @template {keyof Opts} L
@@ -17028,7 +17030,7 @@ Cd.prototype = {
17028
17030
  @method toObject
17029
17031
  @param {string} [protocol] `'http'` by default
17030
17032
  */
17031
- toObject(n = Qn.defaultProtocol) {
17033
+ toObject(n = Zn.defaultProtocol) {
17032
17034
  return {
17033
17035
  type: this.t,
17034
17036
  value: this.toString(),
@@ -17089,7 +17091,7 @@ const z0 = Li("email", {
17089
17091
  toHref() {
17090
17092
  return "mailto:" + this.toString();
17091
17093
  }
17092
- }), ka = Li("text"), $0 = Li("nl"), mr = Li("url", {
17094
+ }), ka = Li("text"), $0 = Li("nl"), gr = Li("url", {
17093
17095
  isLink: !0,
17094
17096
  /**
17095
17097
  Lowercases relevant parts of the domain and adds the protocol if
@@ -17098,7 +17100,7 @@ const z0 = Li("email", {
17098
17100
  @param {string} [scheme] default scheme (e.g., 'https')
17099
17101
  @return {string} the full href
17100
17102
  */
17101
- toHref(n = Qn.defaultProtocol) {
17103
+ toHref(n = Zn.defaultProtocol) {
17102
17104
  return this.hasProtocol() ? this.v : `${n}://${this.v}`;
17103
17105
  },
17104
17106
  /**
@@ -17107,7 +17109,7 @@ const z0 = Li("email", {
17107
17109
  */
17108
17110
  hasProtocol() {
17109
17111
  const n = this.tk;
17110
- return n.length >= 2 && n[0].t !== Xn && n[1].t === xt;
17112
+ return n.length >= 2 && n[0].t !== Qn && n[1].t === xt;
17111
17113
  }
17112
17114
  }), Se = (n) => new me(n);
17113
17115
  function F0({
@@ -17126,16 +17128,16 @@ function F0({
17126
17128
  const f = k(d, De);
17127
17129
  I(f, n.domain, d);
17128
17130
  const h = Se(z0);
17129
- I(f, n.tld, h), I(f, n.utld, h), k(c, Xn, h);
17131
+ I(f, n.tld, h), I(f, n.utld, h), k(c, Qn, h);
17130
17132
  const p = k(d, ve);
17131
17133
  k(p, ve, p), I(p, n.domain, d), I(h, n.domain, d), k(h, De, f), k(h, ve, p);
17132
17134
  const m = k(o, ve), g = k(o, De);
17133
17135
  k(m, ve, m), I(m, n.domain, o), I(g, r, s), I(g, n.domain, o);
17134
- const y = Se(mr);
17136
+ const y = Se(gr);
17135
17137
  I(g, n.tld, y), I(g, n.utld, y), I(y, n.domain, o), I(y, r, s), k(y, De, g), k(y, ve, m), k(y, nt, c);
17136
- const b = k(y, xt), v = Se(mr);
17138
+ const b = k(y, xt), v = Se(gr);
17137
17139
  I(b, n.numeric, v);
17138
- const S = Se(mr), M = Se();
17140
+ const S = Se(gr), M = Se();
17139
17141
  I(S, e, S), I(S, t, M), I(M, e, S), I(M, t, M), k(y, Le, S), k(v, Le, S);
17140
17142
  const N = k(l, xt), C = k(a, xt), E = k(C, Le), D = k(E, Le);
17141
17143
  I(l, n.domain, o), k(l, De, g), k(l, ve, m), I(a, n.domain, o), k(a, De, g), k(a, ve, m), I(N, n.domain, S), k(N, Le, S), k(N, $n, S), I(D, n.domain, S), I(D, e, S), k(D, Le, S);
@@ -17160,12 +17162,12 @@ function F0({
17160
17162
  for (let Ae = 0; Ae < P.length; Ae++) {
17161
17163
  const [xe, G] = P[Ae], Y = k(S, xe);
17162
17164
  k(M, xe, Y);
17163
- const J = Se(mr);
17165
+ const J = Se(gr);
17164
17166
  I(Y, e, J);
17165
17167
  const Lt = Se();
17166
17168
  I(Y, t, Lt), k(Y, G, S), I(J, e, J), I(J, t, Lt), I(Lt, e, J), I(Lt, t, Lt), k(J, G, S), k(Lt, G, S);
17167
17169
  }
17168
- return k(i, Xn, y), k(i, Po, $0), {
17170
+ return k(i, Qn, y), k(i, Po, $0), {
17169
17171
  start: i,
17170
17172
  tokens: vd
17171
17173
  };
@@ -18277,7 +18279,7 @@ var gk = "listItem", wa = "textStyle", Ca = /^(\d+)\.\s$/, Pd = be.create({
18277
18279
  if (d.type !== this.type)
18278
18280
  return !1;
18279
18281
  i.dataset.checked = d.attrs.checked, l.checked = d.attrs.checked, c(d);
18280
- const f = r.extensionManager.attributes, h = qn(d, f), p = new Set(Object.keys(h)), m = this.options.HTMLAttributes;
18282
+ const f = r.extensionManager.attributes, h = _n(d, f), p = new Set(Object.keys(h)), m = this.options.HTMLAttributes;
18281
18283
  return u.forEach((g) => {
18282
18284
  p.has(g) || (g in m ? i.setAttribute(g, m[g]) : i.removeAttribute(g));
18283
18285
  }), Object.entries(h).forEach(([g, y]) => {
@@ -18422,7 +18424,7 @@ F.create({
18422
18424
  return this.options.bulletList !== !1 && n.push(Ed.configure(this.options.bulletList)), this.options.listItem !== !1 && n.push(Nd.configure(this.options.listItem)), this.options.listKeymap !== !1 && n.push(Dd.configure(this.options.listKeymap)), this.options.orderedList !== !1 && n.push(Pd.configure(this.options.orderedList)), this.options.taskItem !== !1 && n.push(kk.configure(this.options.taskItem)), this.options.taskList !== !1 && n.push(bk.configure(this.options.taskList)), n;
18423
18425
  }
18424
18426
  });
18425
- var gr = "&nbsp;", ps = " ", Bd = be.create({
18427
+ var yr = "&nbsp;", ps = " ", Bd = be.create({
18426
18428
  name: "paragraph",
18427
18429
  priority: 1e3,
18428
18430
  addOptions() {
@@ -18443,7 +18445,7 @@ var gr = "&nbsp;", ps = " ", Bd = be.create({
18443
18445
  if (t.length === 1 && t[0].type === "image")
18444
18446
  return e.parseChildren([t[0]]);
18445
18447
  const r = e.parseInline(t);
18446
- return t.length === 1 && t[0].type === "text" && (t[0].raw === gr || t[0].text === gr || t[0].raw === ps || t[0].text === ps) && r.length === 1 && r[0].type === "text" && (r[0].text === gr || r[0].text === ps) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, r);
18448
+ return t.length === 1 && t[0].type === "text" && (t[0].raw === yr || t[0].text === yr || t[0].raw === ps || t[0].text === ps) && r.length === 1 && r[0].type === "text" && (r[0].text === yr || r[0].text === ps) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, r);
18447
18449
  },
18448
18450
  renderMarkdown: (n, e, t) => {
18449
18451
  var r, i;
@@ -18452,7 +18454,7 @@ var gr = "&nbsp;", ps = " ", Bd = be.create({
18452
18454
  const s = Array.isArray(n.content) ? n.content : [];
18453
18455
  if (s.length === 0) {
18454
18456
  const o = Array.isArray((r = t?.previousNode) == null ? void 0 : r.content) ? t.previousNode.content : [];
18455
- return ((i = t?.previousNode) == null ? void 0 : i.type) === "paragraph" && o.length === 0 ? gr : "";
18457
+ return ((i = t?.previousNode) == null ? void 0 : i.type) === "paragraph" && o.length === 0 ? yr : "";
18456
18458
  }
18457
18459
  return e.renderChildren(s);
18458
18460
  },
@@ -18869,7 +18871,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
18869
18871
  ]),
18870
18872
  footer: En(() => [
18871
18873
  ys("div", {
18872
- class: yr(["modal-footer", { "spread-buttons": n.isEdit.value }])
18874
+ class: kr(["modal-footer", { "spread-buttons": n.isEdit.value }])
18873
18875
  }, [
18874
18876
  We(j(zi), {
18875
18877
  variant: n.isEdit.value ? "transparent" : "outlined",
@@ -19256,7 +19258,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19256
19258
  }), Uk = () => {
19257
19259
  const n = "(http://www\\.|https://www\\.|http://|https://)", e = "[a-z0-9]+([-.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?";
19258
19260
  return new RegExp(`^${n}?${e}$`);
19259
- }, qk = Uk(), $d = (n) => qk.test(n), Or = {
19261
+ }, qk = Uk(), $d = (n) => qk.test(n), Rr = {
19260
19262
  urlValidator: $d,
19261
19263
  sanitizeUrlText: (n) => ["http://", "https://"].some(
19262
19264
  (t) => n.includes(t)
@@ -19329,7 +19331,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19329
19331
  }
19330
19332
  }), Xk = 200, Qk = 100, Zk = /* @__PURE__ */ ze({
19331
19333
  __name: "KdsRichTextEditor",
19332
- props: /* @__PURE__ */ Rr({
19334
+ props: /* @__PURE__ */ Ir({
19333
19335
  editable: { type: Boolean, default: !0 },
19334
19336
  minHeight: { default: null },
19335
19337
  maxHeight: { default: null },
@@ -19346,7 +19348,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19346
19348
  autofocus: { type: Boolean, default: !1 },
19347
19349
  withBorder: { type: Boolean, default: !0 },
19348
19350
  disabled: { type: Boolean, default: !1 },
19349
- linkToolOptions: { default: () => Or },
19351
+ linkToolOptions: { default: () => Rr },
19350
19352
  characterLimit: { default: () => ({}) },
19351
19353
  subText: { default: () => {
19352
19354
  } },
@@ -19363,7 +19365,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19363
19365
  modelValue: {},
19364
19366
  modelModifiers: {}
19365
19367
  }),
19366
- emits: /* @__PURE__ */ Rr(["blur"], ["update:modelValue"]),
19368
+ emits: /* @__PURE__ */ Ir(["blur"], ["update:modelValue"]),
19367
19369
  setup(n, { expose: e, emit: t }) {
19368
19370
  Ud((E) => ({
19369
19371
  c8f7b19c: y.value,
@@ -19470,7 +19472,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19470
19472
  }), N = ce(() => !!n.subText), C = ce(() => N.value ? n.subText : M.value ? `${S.value} / ${r} characters` : void 0);
19471
19473
  return (E, D) => (ge(), _t("div", null, [
19472
19474
  ys("div", {
19473
- class: yr([
19475
+ class: kr([
19474
19476
  "editor-wrapper",
19475
19477
  {
19476
19478
  "with-border": n.withBorder,
@@ -19487,7 +19489,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19487
19489
  default: En(() => [
19488
19490
  j(p) && n.editable && !n.disabled ? (ge(), _t("div", {
19489
19491
  key: 0,
19490
- class: yr([
19492
+ class: kr([
19491
19493
  "toolbar-wrapper",
19492
19494
  { "embedded-toolbar": !j(b) }
19493
19495
  ])
@@ -19520,7 +19522,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19520
19522
  _: 3
19521
19523
  }, 8, ["css"])) : Ut("", !0),
19522
19524
  We(j(Nk), {
19523
- class: yr(["rich-text-editor", { editable: n.editable && !n.disabled }]),
19525
+ class: kr(["rich-text-editor", { editable: n.editable && !n.disabled }]),
19524
19526
  editor: j(p),
19525
19527
  "aria-disabled": n.disabled || void 0
19526
19528
  }, null, 8, ["editor", "class", "aria-disabled"])
@@ -19536,7 +19538,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19536
19538
  }
19537
19539
  }), eb = /* @__PURE__ */ Bi(Zk, [["__scopeId", "data-v-656edd08"]]), tb = /* @__PURE__ */ ze({
19538
19540
  __name: "KdsRichTextInput",
19539
- props: /* @__PURE__ */ Rr({
19541
+ props: /* @__PURE__ */ Ir({
19540
19542
  id: { default: () => {
19541
19543
  } },
19542
19544
  label: { default: () => {
@@ -19564,7 +19566,7 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19564
19566
  modelValue: {},
19565
19567
  modelModifiers: {}
19566
19568
  }),
19567
- emits: /* @__PURE__ */ Rr(["blur"], ["update:modelValue"]),
19569
+ emits: /* @__PURE__ */ Ir(["blur"], ["update:modelValue"]),
19568
19570
  setup(n, { expose: e, emit: t }) {
19569
19571
  const r = Jd(n, ["id", "label", "ariaLabel", "description"]), i = Aa(n, "modelValue"), s = t, o = Na(), l = ce(() => n.id?.trim() || o), a = ce(() => `${l.value}-label`), c = Oe(!1), u = Kd("editor");
19570
19572
  return e({
@@ -19607,9 +19609,9 @@ const Jo = () => navigator?.userAgent?.toLowerCase()?.includes("mac"), zd = () =
19607
19609
  setup(n) {
19608
19610
  const e = n, t = Oe(null), r = () => (t.value?.focus(), !0), i = (o) => o.startsWith('$$["') && o.endsWith('"]'), s = ce(
19609
19611
  () => e.control.uischema.options?.useFlowVarTemplates ? {
19610
- urlValidator: (o) => i(o) || Or.urlValidator(o),
19611
- sanitizeUrlText: (o) => i(o) ? o : Or.sanitizeUrlText(o)
19612
- } : Or
19612
+ urlValidator: (o) => i(o) || Rr.urlValidator(o),
19613
+ sanitizeUrlText: (o) => i(o) ? o : Rr.sanitizeUrlText(o)
19614
+ } : Rr
19613
19615
  );
19614
19616
  return (o, l) => (ge(), ct(j(nb), {
19615
19617
  id: n.labelForId,