@knime/jsonforms 1.0.0 → 1.1.0

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 (72) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{AnyOfTwinlist-BMuN8vdn.js → AnyOfTwinlist-DZZsdDbi.js} +1 -1
  3. package/dist/{BaseButton-Dftd_OhU.js → BaseButton-DrqwaFu5.js} +1 -1
  4. package/dist/{Button-1HEKkSat.js → Button-CFg6VAL2.js} +2 -2
  5. package/dist/{Checkbox-DkfZPtQB.js → Checkbox-BOrZsqeQ.js} +1 -1
  6. package/dist/{CheckboxControl-BxUCgPjB.js → CheckboxControl-CNKTK-YM.js} +3 -3
  7. package/dist/{Checkboxes-DX-SgFNN.js → Checkboxes-B4Ulx7pj.js} +2 -2
  8. package/dist/{CheckboxesControl-Dua89hdm.js → CheckboxesControl-OnmSzBXg.js} +2 -2
  9. package/dist/{ColumnFilter-BR5Ql52O.js → ColumnFilter-jEHzE7ve.js} +1 -1
  10. package/dist/{ColumnSelect-Bpl908s1.js → ColumnSelect-JyCZ-rAz.js} +3 -3
  11. package/dist/{ComboBoxControl-CaEKPEJF.js → ComboBoxControl-jhqK8iEu.js} +3 -3
  12. package/dist/{DateControl-CIfVm_5L.js → DateControl-B-IsBV0G.js} +1 -1
  13. package/dist/{DateTimeControl-SOXmMk7P.js → DateTimeControl-CDOxlTDm.js} +1 -1
  14. package/dist/{DateTimeInput-DnDwSbwg.js → DateTimeInput-B__pWumE.js} +7 -7
  15. package/dist/{Dropdown-BZFT-Oz-.js → Dropdown-C5rYAL4X.js} +4 -4
  16. package/dist/{DropdownControl-BYwK5UEa.js → DropdownControl-Cps-ye39.js} +1 -1
  17. package/dist/{DropdownControl.vue_vue_type_script_setup_true_lang-xfmezS5U.js → DropdownControl.vue_vue_type_script_setup_true_lang-VwOQiIqd.js} +10 -10
  18. package/dist/{ErrorMessage-AfMLLzrY.js → ErrorMessage-DQmu89vK.js} +1 -1
  19. package/dist/{FunctionButton-pDzgubGI.js → FunctionButton-CoEVwv2a.js} +2 -2
  20. package/dist/{HorizontalLayout-CLzNN1GJ.js → HorizontalLayout-C1jEsu7Z.js} +5 -5
  21. package/dist/{InputField-Bie2oIyC.js → InputField-AQncJ5mU.js} +1 -1
  22. package/dist/{IntegerControl-BSYEC28-.js → IntegerControl-DHgzOyZq.js} +1 -1
  23. package/dist/{IntervalControl-Do7ICfYR.js → IntervalControl-CP9EPAJP.js} +4 -4
  24. package/dist/{MultiselectListBox-Cb8iqDEL.js → MultiselectListBox-BDdUeMac.js} +1 -1
  25. package/dist/{NameFilter-D5sMeMQB.js → NameFilter-CWXVecGl.js} +1 -1
  26. package/dist/{NumberControl-CO4HNb1q.js → NumberControl-qTuSqpCp.js} +1 -1
  27. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DxX8kN-2.js → NumberControlBase.vue_vue_type_script_setup_true_lang-yoEPGthe.js} +2 -2
  28. package/dist/{NumberInput-D28PgBvM.js → NumberInput-CVCd8AxP.js} +1 -1
  29. package/dist/{OneOfDropdown-BKWzW97x.js → OneOfDropdown-CMHSVr8y.js} +1 -1
  30. package/dist/{RadioControl-CsSgLSx8.js → RadioControl-CDc-_LYd.js} +2 -2
  31. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-B_MpwAgw.js → RadioControlBase.vue_vue_type_script_setup_true_lang-ByNJaD_m.js} +2 -2
  32. package/dist/{RichTextControl-DhS9eJHA.js → RichTextControl-DGVuz5EN.js} +535 -534
  33. package/dist/{SectionLayout-D_M-MWKq.js → SectionLayout-Db29BQYV.js} +2 -2
  34. package/dist/{SimpleButtonControl-C38xjEST.js → SimpleButtonControl-CB4Y5yaX.js} +5 -5
  35. package/dist/{SimpleTwinlistControl-eJfhgw2q.js → SimpleTwinlistControl-D6pM3Frb.js} +2 -2
  36. package/dist/{SortListControl-BkW2I02-.js → SortListControl-CcM9XCOn.js} +19 -19
  37. package/dist/{TextAreaControl-YIRT3Car.js → TextAreaControl-BKQr3ZHo.js} +1 -1
  38. package/dist/{TextControl-C4SW9Don.js → TextControl-BldyUpw4.js} +1 -1
  39. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DnhMgBz7.js → TextControl.vue_vue_type_script_setup_true_lang-PQebag92.js} +3 -3
  40. package/dist/{TimeControl-Bzt_hnPr.js → TimeControl-CamvR05G.js} +1 -1
  41. package/dist/{TwinlistControl-CUzpIsxk.js → TwinlistControl-BCM5Rueb.js} +9 -9
  42. package/dist/{TwinlistLoadingInfo-9KjX_KRC.js → TwinlistLoadingInfo-H4-lMsJ_.js} +6 -6
  43. package/dist/{ValueSwitch-Bx5G-g-t.js → ValueSwitch-C2oXO3Ex.js} +1 -1
  44. package/dist/{ValueSwitchControl-CtJog05t.js → ValueSwitchControl-CxwKZ3_i.js} +1 -1
  45. package/dist/{VerticalLayout-BNlf2A4z.js → VerticalLayout-FeaTQ44Q.js} +5 -5
  46. package/dist/{VerticalLayoutBase-CYm6HA_S.js → VerticalLayoutBase-DqZzCLUD.js} +1 -1
  47. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-e-RY4MMW.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js} +3044 -3046
  48. package/dist/{_baseAssignValue-Dh1JECSL.js → _baseAssignValue-vwpxCmUr.js} +1 -1
  49. package/dist/{_baseEach-DQpeg46m.js → _baseEach-4Fnopd4x.js} +2 -2
  50. package/dist/{_baseIsEqual-B6ZY3_na.js → _baseIsEqual-Bi_edlXd.js} +3 -3
  51. package/dist/{_baseIteratee-u2MwzFkw.js → _baseIteratee-bVzVDPMQ.js} +3 -3
  52. package/dist/{_getTag-CVifAGJ5.js → _getTag-C-V1gX3V.js} +20 -20
  53. package/dist/isSymbol-DBYB6PEp.js +8 -0
  54. package/dist/knime-jsonforms.css +1 -1
  55. package/dist/knime-jsonforms.js +85 -78
  56. package/dist/{magic-string.es-GczNvKuE.js → magic-string.es-BxFAQdj-.js} +1 -1
  57. package/dist/src/JsonFormsDialog.vue.d.ts +1 -1
  58. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +1 -1
  59. package/dist/src/higherOrderComponents/control/index.d.ts +0 -1
  60. package/dist/src/higherOrderComponents/control/types.d.ts +1 -0
  61. package/dist/src/higherOrderComponents/index.d.ts +1 -0
  62. package/dist/src/higherOrderComponents/layout/index.d.ts +0 -1
  63. package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +1 -1
  64. package/dist/src/higherOrderComponents/layout/types.d.ts +1 -0
  65. package/dist/src/higherOrderComponents/utils.d.ts +2 -0
  66. package/dist/{svgWithTitle-BOHilJzL.js → svgWithTitle-CnaxBHlP.js} +1 -1
  67. package/dist/testing.js +4 -4
  68. package/dist/{toString-Blk-YXDj.js → toString-FiiQWhxG.js} +2 -2
  69. package/package.json +3 -3
  70. package/dist/isSymbol-Birk5ZVO.js +0 -8
  71. package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +0 -2
  72. package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +0 -2
@@ -2,15 +2,15 @@ import { defineComponent as xe, ref as ee, computed as Le, onMounted as On, watc
2
2
  import { a as Dd, c as Rd } from "./popper-1JCni0RT.js";
3
3
  import { i as Ka, g as Wa } from "./navigator-BYUFe-z3.js";
4
4
  import { C as Ld } from "./close-h7XT0ja0.js";
5
- import { F as co } from "./FunctionButton-pDzgubGI.js";
6
- import { _ as Xe, w as Zo } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-e-RY4MMW.js";
7
- import { B as Ji } from "./Button-1HEKkSat.js";
8
- import { I as el } from "./InputField-Bie2oIyC.js";
5
+ import { F as co } from "./FunctionButton-CoEVwv2a.js";
6
+ import { _ as Xe, q as Zo } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-3BaA3fxx.js";
7
+ import { B as Ji } from "./Button-CFg6VAL2.js";
8
+ import { I as el } from "./InputField-AQncJ5mU.js";
9
9
  import { u as Ua, f as qa, s as Ja, a as Ga } from "./floating-ui.vue.esm-CDpUY3-t.js";
10
10
  import { o as Pd } from "./index-Cp7Xre_V.js";
11
11
  import { A as Bd } from "./arrow-next-CvdR0-WC.js";
12
- import { C as Fd } from "./Checkbox-DkfZPtQB.js";
13
- import { t as $d } from "./toString-Blk-YXDj.js";
12
+ import { C as Fd } from "./Checkbox-BOrZsqeQ.js";
13
+ import { t as $d } from "./toString-FiiQWhxG.js";
14
14
  const zd = (n, e) => (n % e + e) % e;
15
15
  /*!
16
16
  * tabbable 6.2.0
@@ -51,10 +51,10 @@ var Ya = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
51
51
  var d = o.shadowRoot || // check for an undisclosed shadow
52
52
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), f = !Pr(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
53
53
  if (d && f) {
54
- var h = n(d === !0 ? o.children : d.children, !0, r);
55
- r.flatten ? i.push.apply(i, h) : i.push({
54
+ var p = n(d === !0 ? o.children : d.children, !0, r);
55
+ r.flatten ? i.push.apply(i, p) : i.push({
56
56
  scopeParent: o,
57
- candidates: h
57
+ candidates: p
58
58
  });
59
59
  } else
60
60
  s.unshift.apply(s, o.children);
@@ -432,12 +432,12 @@ var il = {
432
432
  return x.posTabIndexesFound;
433
433
  }) && o.containerGroups.length > 1)
434
434
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
435
- }, h = function V(x) {
435
+ }, p = function V(x) {
436
436
  var S = x.activeElement;
437
437
  if (S)
438
438
  return S.shadowRoot && S.shadowRoot.activeElement !== null ? V(S.shadowRoot) : S;
439
- }, p = function V(x) {
440
- if (x !== !1 && x !== h(document)) {
439
+ }, h = function V(x) {
440
+ if (x !== !1 && x !== p(document)) {
441
441
  if (!x || !x.focus) {
442
442
  V(d());
443
443
  return;
@@ -496,7 +496,7 @@ var il = {
496
496
  }
497
497
  Rn(s.allowOutsideClick, x) || x.preventDefault();
498
498
  }
499
- }, k = function(x) {
499
+ }, v = function(x) {
500
500
  var S = mr(x), N = c(S, x) >= 0;
501
501
  if (N || S instanceof Document)
502
502
  N && (o.mostRecentlyFocusedNode = S);
@@ -525,7 +525,7 @@ var il = {
525
525
  // outside the trap causing the focus escape we're trying to fix)
526
526
  target: o.mostRecentlyFocusedNode,
527
527
  isBackward: s.isKeyBackward(o.recentNavEvent)
528
- })), p(K || o.mostRecentlyFocusedNode || d());
528
+ })), h(K || o.mostRecentlyFocusedNode || d());
529
529
  }
530
530
  o.recentNavEvent = void 0;
531
531
  }, T = function(x) {
@@ -535,7 +535,7 @@ var il = {
535
535
  event: x,
536
536
  isBackward: S
537
537
  });
538
- N && ($n(x) && x.preventDefault(), p(N));
538
+ N && ($n(x) && x.preventDefault(), h(N));
539
539
  }, g = function(x) {
540
540
  if (af(x) && Rn(s.escapeDeactivates, x) !== !1) {
541
541
  x.preventDefault(), l.deactivate();
@@ -548,8 +548,8 @@ var il = {
548
548
  }, w = function() {
549
549
  if (o.active)
550
550
  return il.activateTrap(i, l), o.delayInitialFocusTimer = s.delayInitialFocus ? sl(function() {
551
- p(d());
552
- }) : p(d()), r.addEventListener("focusin", k, !0), r.addEventListener("mousedown", b, {
551
+ h(d());
552
+ }) : h(d()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", b, {
553
553
  capture: !0,
554
554
  passive: !1
555
555
  }), r.addEventListener("touchstart", b, {
@@ -564,7 +564,7 @@ var il = {
564
564
  }), l;
565
565
  }, L = function() {
566
566
  if (o.active)
567
- return r.removeEventListener("focusin", k, !0), r.removeEventListener("mousedown", b, !0), r.removeEventListener("touchstart", b, !0), r.removeEventListener("click", E, !0), r.removeEventListener("keydown", g, !0), l;
567
+ return r.removeEventListener("focusin", v, !0), r.removeEventListener("mousedown", b, !0), r.removeEventListener("touchstart", b, !0), r.removeEventListener("click", E, !0), r.removeEventListener("keydown", g, !0), l;
568
568
  }, Y = function(x) {
569
569
  var S = x.some(function(N) {
570
570
  var K = Array.from(N.removedNodes);
@@ -572,7 +572,7 @@ var il = {
572
572
  return W === o.mostRecentlyFocusedNode;
573
573
  });
574
574
  });
575
- S && p(d());
575
+ S && h(d());
576
576
  }, P = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Y) : void 0, Z = function() {
577
577
  P && (P.disconnect(), o.active && !o.paused && o.containers.map(function(x) {
578
578
  P.observe(x, {
@@ -611,7 +611,7 @@ var il = {
611
611
  N == null || N();
612
612
  var _ = function() {
613
613
  sl(function() {
614
- q && p(m(o.nodeFocusedBeforeActivation)), K == null || K();
614
+ q && h(m(o.nodeFocusedBeforeActivation)), K == null || K();
615
615
  });
616
616
  };
617
617
  return q && W ? (W(m(o.nodeFocusedBeforeActivation)).then(_, _), this) : (_(), this);
@@ -955,48 +955,49 @@ const Ef = /* @__PURE__ */ Xe(kf, [["render", Mf], ["__scopeId", "data-v-f7379e2
955
955
  getFirstElement: e,
956
956
  getLastElement: t,
957
957
  close: r,
958
- disableSpaceToClick: i
958
+ disableSpaceToClick: i,
959
+ keepOpenedOnTab: s
959
960
  }) => {
960
- const s = ee(null), o = () => {
961
+ const o = ee(null), l = () => {
961
962
  };
962
- let l = o;
963
- const a = () => {
964
- s.value = null, l = o;
965
- }, c = (h) => {
966
- s.value = h.index, l = h.onClick;
963
+ let a = l;
964
+ const c = () => {
965
+ o.value = null, a = l;
967
966
  }, u = (h) => {
968
- c(n(s.value, h));
969
- }, d = () => {
970
- a(), r();
967
+ o.value = h.index, a = h.onClick;
968
+ }, d = (h) => {
969
+ u(n(o.value, h));
970
+ }, f = () => {
971
+ c(), r();
971
972
  };
972
973
  return { onKeydown: (h) => {
973
974
  switch (h.code) {
974
975
  case "ArrowDown":
975
- gr(h), u(1);
976
+ gr(h), d(1);
976
977
  break;
977
978
  case "ArrowUp":
978
- gr(h), u(-1);
979
+ gr(h), d(-1);
979
980
  break;
980
981
  case "Enter":
981
982
  case "Space": {
982
- const p = h.code === "Enter", m = h.code === "Space";
983
- s.value !== null && (p || m && !i) && (gr(h), l());
983
+ const m = h.code === "Enter", y = h.code === "Space";
984
+ o.value !== null && (m || y && !i) && (gr(h), a());
984
985
  break;
985
986
  }
986
987
  case "Home":
987
- e && c(e());
988
+ e && u(e());
988
989
  break;
989
990
  case "End":
990
- t && c(t());
991
+ t && u(t());
991
992
  break;
992
993
  case "Escape":
993
- gr(h), d();
994
+ gr(h), f();
994
995
  break;
995
996
  case "Tab":
996
- d();
997
+ s || f();
997
998
  break;
998
999
  }
999
- }, currentIndex: s, resetNavigation: a };
1000
+ }, currentIndex: o, resetNavigation: c };
1000
1001
  }, Nf = {
1001
1002
  key: 0,
1002
1003
  class: "hotkey"
@@ -1287,7 +1288,7 @@ const jf = /* @__PURE__ */ Xe(zf, [["render", _f], ["__scopeId", "data-v-815f537
1287
1288
  },
1288
1289
  emits: ["close", "item-click", "item-focused", "item-hovered", "close-submenu"],
1289
1290
  setup(n, { expose: e, emit: t }) {
1290
- const r = n, i = t, s = ee(null), o = ee(-1), l = ee(null), a = (k, T) => {
1291
+ const r = n, i = t, s = ee(null), o = ee(-1), l = ee(null), a = (v, T) => {
1291
1292
  if (!s.value)
1292
1293
  return {
1293
1294
  onClick: () => {
@@ -1295,7 +1296,7 @@ const jf = /* @__PURE__ */ Xe(zf, [["render", _f], ["__scopeId", "data-v-815f537
1295
1296
  index: -1
1296
1297
  };
1297
1298
  const g = s.value.getEnabledListItems();
1298
- let E = g.map(({ index: Z }) => Z).indexOf(k);
1299
+ let E = g.map(({ index: Z }) => Z).indexOf(v);
1299
1300
  E === -1 && T === -1 && (E = 0);
1300
1301
  const w = zd(
1301
1302
  E + T,
@@ -1310,47 +1311,47 @@ const jf = /* @__PURE__ */ Xe(zf, [["render", _f], ["__scopeId", "data-v-815f537
1310
1311
  disableSpaceToClick: r.disableSpaceToClick,
1311
1312
  getNextElement: a,
1312
1313
  close: () => i("close")
1313
- }), f = (k = 0) => {
1314
- c.value = k;
1315
- }, h = (k) => {
1314
+ }), f = (v = 0) => {
1315
+ c.value = v;
1316
+ }, p = (v) => {
1316
1317
  var E;
1317
- const T = r.items[k], g = T && !T.disabled && ((E = T.children) == null ? void 0 : E.length);
1318
- o.value = g ? k : -1;
1319
- }, p = (k) => {
1320
- switch (k.code) {
1318
+ const T = r.items[v], g = T && !T.disabled && ((E = T.children) == null ? void 0 : E.length);
1319
+ o.value = g ? v : -1;
1320
+ }, h = (v) => {
1321
+ switch (v.code) {
1321
1322
  case "ArrowLeft":
1322
1323
  i("close-submenu");
1323
1324
  break;
1324
1325
  case "ArrowRight":
1325
- h(c.value ?? 0), Oi(() => {
1326
+ p(c.value ?? 0), Oi(() => {
1326
1327
  var T;
1327
1328
  (T = l.value) == null || T.focusIndex();
1328
1329
  });
1329
1330
  break;
1330
1331
  }
1331
- u(k);
1332
- }, m = (k, T, g) => {
1333
- k !== null && h(g), i("item-hovered", k, T, g);
1334
- }, y = (k) => {
1332
+ u(v);
1333
+ }, m = (v, T, g) => {
1334
+ v !== null && p(g), i("item-hovered", v, T, g);
1335
+ }, y = (v) => {
1335
1336
  var g;
1336
- o.value !== -1 ? (g = l.value) == null || g.onKeydown(k) : p(k);
1337
+ o.value !== -1 ? (g = l.value) == null || g.onKeydown(v) : h(v);
1337
1338
  };
1338
1339
  e({ onKeydown: y, resetNavigation: d, focusIndex: f });
1339
- const b = (k) => !k.children || k.children.length === 0 ? !1 : !!k.children.find(({ selected: T }) => T);
1340
- return (k, T) => {
1340
+ const b = (v) => !v.children || v.children.length === 0 ? !1 : !!v.children.find(({ selected: T }) => T);
1341
+ return (v, T) => {
1341
1342
  const g = Mt("MenuItems", !0);
1342
1343
  return D(), ce(jf, ar({
1343
1344
  ref_key: "baseMenuItems",
1344
1345
  ref: s
1345
- }, k.$attrs, {
1346
+ }, v.$attrs, {
1346
1347
  items: r.items,
1347
1348
  "menu-aria-label": r.menuAriaLabel,
1348
1349
  "focused-item-index": G(c),
1349
- "clipping-boundary": k.clippingBoundary,
1350
+ "clipping-boundary": v.clippingBoundary,
1350
1351
  onKeydown: T[5] || (T[5] = (E) => r.registerKeydown && y(E)),
1351
- onItemClick: T[6] || (T[6] = (...E) => k.$emit("item-click", ...E)),
1352
+ onItemClick: T[6] || (T[6] = (...E) => v.$emit("item-click", ...E)),
1352
1353
  onItemHovered: T[7] || (T[7] = (...E) => m(...E)),
1353
- onItemFocused: T[8] || (T[8] = (...E) => k.$emit("item-focused", ...E))
1354
+ onItemFocused: T[8] || (T[8] = (...E) => v.$emit("item-focused", ...E))
1354
1355
  }), {
1355
1356
  item: ne(({
1356
1357
  item: E,
@@ -1387,13 +1388,13 @@ const jf = /* @__PURE__ */ Xe(zf, [["render", _f], ["__scopeId", "data-v-815f537
1387
1388
  items: E.children,
1388
1389
  "max-menu-width": P,
1389
1390
  "position-relative-to-element": V,
1390
- "clipping-boundary": k.clippingBoundary,
1391
+ "clipping-boundary": v.clippingBoundary,
1391
1392
  "register-keydown": "",
1392
1393
  onClose: T[0] || (T[0] = (x) => o.value = -1),
1393
1394
  onCloseSubmenu: T[1] || (T[1] = (x) => o.value = -1),
1394
- onItemClick: T[2] || (T[2] = (...x) => k.$emit("item-click", ...x)),
1395
- onItemHovered: T[3] || (T[3] = (...x) => k.$emit("item-hovered", ...x)),
1396
- onItemFocused: T[4] || (T[4] = (...x) => k.$emit("item-focused", ...x))
1395
+ onItemClick: T[2] || (T[2] = (...x) => v.$emit("item-click", ...x)),
1396
+ onItemHovered: T[3] || (T[3] = (...x) => v.$emit("item-hovered", ...x)),
1397
+ onItemFocused: T[4] || (T[4] = (...x) => v.$emit("item-focused", ...x))
1397
1398
  }, null, 8, ["id", "menu-aria-label", "items", "max-menu-width", "position-relative-to-element", "clipping-boundary"])) : fe("", !0)
1398
1399
  ], 2)) : fe("", !0)
1399
1400
  ]),
@@ -1656,12 +1657,12 @@ const Yf = /* @__PURE__ */ Xe(qf, [["render", Gf], ["__scopeId", "data-v-d47de57
1656
1657
  const f = t.urlValidator(s.value);
1657
1658
  return !s.value || f;
1658
1659
  }, u = Le(() => {
1659
- const f = i.value !== t.text.value, h = s.value !== t.url.value, p = s.value !== "";
1660
- return (f || h) && c() && p;
1660
+ const f = i.value !== t.text.value, p = s.value !== t.url.value, h = s.value !== "";
1661
+ return (f || p) && c() && h;
1661
1662
  }), d = (f) => {
1662
1663
  f.key === "Enter" && u.value && a();
1663
1664
  };
1664
- return (f, h) => Va((D(), ce(G(Ef), {
1665
+ return (f, p) => Va((D(), ce(G(Ef), {
1665
1666
  active: f.isActive.value,
1666
1667
  title: f.isEdit.value ? "Edit link" : "Add a link",
1667
1668
  "style-type": "info",
@@ -1674,14 +1675,14 @@ const Yf = /* @__PURE__ */ Xe(qf, [["render", Gf], ["__scopeId", "data-v-d47de57
1674
1675
  compact: "",
1675
1676
  class: "text-input"
1676
1677
  }, {
1677
- default: ne(({ labelForId: p }) => [
1678
+ default: ne(({ labelForId: h }) => [
1678
1679
  j("div", null, [
1679
1680
  oe(G(el), {
1680
- id: p,
1681
+ id: h,
1681
1682
  ref_key: "inputRef",
1682
1683
  ref: r,
1683
1684
  modelValue: i.value,
1684
- "onUpdate:modelValue": h[0] || (h[0] = (m) => i.value = m),
1685
+ "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
1685
1686
  type: "text",
1686
1687
  title: "Text",
1687
1688
  onKeyup: d
@@ -1694,12 +1695,12 @@ const Yf = /* @__PURE__ */ Xe(qf, [["render", Gf], ["__scopeId", "data-v-d47de57
1694
1695
  text: "URL",
1695
1696
  compact: ""
1696
1697
  }, {
1697
- default: ne(({ labelForId: p }) => [
1698
+ default: ne(({ labelForId: h }) => [
1698
1699
  j("div", null, [
1699
1700
  oe(G(el), {
1700
- id: p,
1701
+ id: h,
1701
1702
  modelValue: s.value,
1702
- "onUpdate:modelValue": h[1] || (h[1] = (m) => s.value = m),
1703
+ "onUpdate:modelValue": p[1] || (p[1] = (m) => s.value = m),
1703
1704
  type: "text",
1704
1705
  title: "URL",
1705
1706
  onKeyup: d
@@ -1726,7 +1727,7 @@ const Yf = /* @__PURE__ */ Xe(qf, [["render", Gf], ["__scopeId", "data-v-d47de57
1726
1727
  key: 0,
1727
1728
  compact: "",
1728
1729
  "with-border": "",
1729
- onClick: h[2] || (h[2] = (p) => o("removeLink"))
1730
+ onClick: p[2] || (p[2] = (h) => o("removeLink"))
1730
1731
  }, {
1731
1732
  default: ne(() => [
1732
1733
  nh
@@ -4475,11 +4476,11 @@ class st {
4475
4476
  throw new RangeError("Content hole must be the only child of its parent node");
4476
4477
  return { dom: l, contentDOM: l };
4477
4478
  } else {
4478
- let { dom: f, contentDOM: h } = st.renderSpec(e, d, r);
4479
- if (l.appendChild(f), h) {
4479
+ let { dom: f, contentDOM: p } = st.renderSpec(e, d, r);
4480
+ if (l.appendChild(f), p) {
4480
4481
  if (o)
4481
4482
  throw new RangeError("Multiple content holes");
4482
- o = h;
4483
+ o = p;
4483
4484
  }
4484
4485
  }
4485
4486
  }
@@ -4602,11 +4603,11 @@ class De {
4602
4603
  break;
4603
4604
  let c = this.ranges[l + s], u = this.ranges[l + o], d = a + c;
4604
4605
  if (e <= d) {
4605
- let f = c ? e == a ? -1 : e == d ? 1 : t : t, h = a + i + (f < 0 ? 0 : u);
4606
+ let f = c ? e == a ? -1 : e == d ? 1 : t : t, p = a + i + (f < 0 ? 0 : u);
4606
4607
  if (r)
4607
- return h;
4608
- let p = e == (t < 0 ? a : d) ? null : Mh(l / 3, e - a), m = e == a ? Sc : e == d ? wc : Er;
4609
- return (t < 0 ? e != a : e != d) && (m |= Cc), new Ls(h, m, p);
4608
+ return p;
4609
+ let h = e == (t < 0 ? a : d) ? null : Mh(l / 3, e - a), m = e == a ? Sc : e == d ? wc : Er;
4610
+ return (t < 0 ? e != a : e != d) && (m |= Cc), new Ls(p, m, h);
4610
4611
  }
4611
4612
  i += u - c;
4612
4613
  }
@@ -5141,10 +5142,10 @@ function Oh(n, e, t, r) {
5141
5142
  return;
5142
5143
  let d = a.marks;
5143
5144
  if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
5144
- let f = Math.max(c, e), h = Math.min(c + a.nodeSize, t), p = r.addToSet(d);
5145
+ let f = Math.max(c, e), p = Math.min(c + a.nodeSize, t), h = r.addToSet(d);
5145
5146
  for (let m = 0; m < d.length; m++)
5146
- d[m].isInSet(p) || (o && o.to == f && o.mark.eq(d[m]) ? o.to = h : i.push(o = new ot(f, h, d[m])));
5147
- l && l.to == f ? l.to = h : s.push(l = new St(f, h, r));
5147
+ d[m].isInSet(h) || (o && o.to == f && o.mark.eq(d[m]) ? o.to = p : i.push(o = new ot(f, p, d[m])));
5148
+ l && l.to == f ? l.to = p : s.push(l = new St(f, p, r));
5148
5149
  }
5149
5150
  }), i.forEach((a) => n.step(a)), s.forEach((a) => n.step(a));
5150
5151
  }
@@ -5164,9 +5165,9 @@ function Ah(n, e, t, r) {
5164
5165
  let c = Math.min(l + o.nodeSize, t);
5165
5166
  for (let u = 0; u < a.length; u++) {
5166
5167
  let d = a[u], f;
5167
- for (let h = 0; h < i.length; h++) {
5168
- let p = i[h];
5169
- p.step == s - 1 && d.eq(i[h].style) && (f = p);
5168
+ for (let p = 0; p < i.length; p++) {
5169
+ let h = i[p];
5170
+ h.step == s - 1 && d.eq(i[p].style) && (f = h);
5170
5171
  }
5171
5172
  f ? (f.to = c, f.step = s) : i.push({ style: d, from: Math.max(l, e), to: c, step: s });
5172
5173
  }
@@ -5184,9 +5185,9 @@ function Tc(n, e, t, r = t.contentMatch, i = !0) {
5184
5185
  for (let f = 0; f < c.marks.length; f++)
5185
5186
  t.allowsMarkType(c.marks[f].type) || n.step(new ot(l, u, c.marks[f]));
5186
5187
  if (i && c.isText && t.whitespace != "pre") {
5187
- let f, h = /\r?\n|\r/g, p;
5188
- for (; f = h.exec(c.text); )
5189
- p || (p = new O(C.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), o.push(new de(l + f.index, l + f.index + f[0].length, p));
5188
+ let f, p = /\r?\n|\r/g, h;
5189
+ for (; f = p.exec(c.text); )
5190
+ h || (h = new O(C.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), o.push(new de(l + f.index, l + f.index + f[0].length, h));
5190
5191
  }
5191
5192
  }
5192
5193
  l = u;
@@ -5214,12 +5215,12 @@ function An(n) {
5214
5215
  }
5215
5216
  function Ih(n, e, t) {
5216
5217
  let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), l = i.after(s + 1), a = o, c = l, u = C.empty, d = 0;
5217
- for (let p = s, m = !1; p > t; p--)
5218
- m || r.index(p) > 0 ? (m = !0, u = C.from(r.node(p).copy(u)), d++) : a--;
5219
- let f = C.empty, h = 0;
5220
- for (let p = s, m = !1; p > t; p--)
5221
- m || i.after(p + 1) < i.end(p) ? (m = !0, f = C.from(i.node(p).copy(f)), h++) : c++;
5222
- n.step(new he(a, c, o, l, new O(u.append(f), d, h), u.size - d, !0));
5218
+ for (let h = s, m = !1; h > t; h--)
5219
+ m || r.index(h) > 0 ? (m = !0, u = C.from(r.node(h).copy(u)), d++) : a--;
5220
+ let f = C.empty, p = 0;
5221
+ for (let h = s, m = !1; h > t; h--)
5222
+ m || i.after(h + 1) < i.end(h) ? (m = !0, f = C.from(i.node(h).copy(f)), p++) : c++;
5223
+ n.step(new he(a, c, o, l, new O(u.append(f), d, p), u.size - d, !0));
5223
5224
  }
5224
5225
  function ho(n, e, t = null, r = n) {
5225
5226
  let i = Dh(n, e), s = i && Rh(r, e);
@@ -5265,8 +5266,8 @@ function Ph(n, e, t, r, i) {
5265
5266
  if (o.isTextblock && !o.hasMarkup(r, i) && $h(n.doc, n.mapping.slice(s).map(l), r)) {
5266
5267
  let a = null;
5267
5268
  if (r.schema.linebreakReplacement) {
5268
- let f = r.whitespace == "pre", h = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
5269
- f && !h ? a = !1 : !f && h && (a = !0);
5269
+ let f = r.whitespace == "pre", p = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
5270
+ f && !p ? a = !1 : !f && p && (a = !0);
5270
5271
  }
5271
5272
  a === !1 && Fh(n, o, l, s), Tc(n, n.mapping.slice(s).map(l, 1), r, void 0, a === null);
5272
5273
  let c = n.mapping.slice(s), u = c.map(l, 1), d = c.map(l + o.nodeSize, 1);
@@ -5318,10 +5319,10 @@ function yn(n, e, t = 1, r) {
5318
5319
  let d = i.node(c), f = i.index(c);
5319
5320
  if (d.type.spec.isolating)
5320
5321
  return !1;
5321
- let h = d.content.cutByIndex(f, d.childCount), p = r && r[u + 1];
5322
- p && (h = h.replaceChild(0, p.type.create(p.attrs)));
5322
+ let p = d.content.cutByIndex(f, d.childCount), h = r && r[u + 1];
5323
+ h && (p = p.replaceChild(0, h.type.create(h.attrs)));
5323
5324
  let m = r && r[u] || d;
5324
- if (!d.canReplace(f + 1, d.childCount) || !m.type.validContent(h))
5325
+ if (!d.canReplace(f + 1, d.childCount) || !m.type.validContent(p))
5325
5326
  return !1;
5326
5327
  }
5327
5328
  let l = i.indexAfter(s), a = r && r[0];
@@ -5496,20 +5497,20 @@ class jh {
5496
5497
  u.push(i.child(m));
5497
5498
  d = d.matchFragment(i);
5498
5499
  }
5499
- let h = l.size + e - (o.content.size - o.openEnd);
5500
+ let p = l.size + e - (o.content.size - o.openEnd);
5500
5501
  for (; c < l.childCount; ) {
5501
5502
  let m = l.child(c), y = d.matchType(m.type);
5502
5503
  if (!y)
5503
5504
  break;
5504
- c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Ac(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
5505
+ c++, (c > 1 || a == 0 || m.content.size) && (d = y, u.push(Ac(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? p : -1)));
5505
5506
  }
5506
- let p = c == l.childCount;
5507
- p || (h = -1), this.placed = Bn(this.placed, t, C.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
5508
- for (let m = 0, y = l; m < h; m++) {
5507
+ let h = c == l.childCount;
5508
+ h || (p = -1), this.placed = Bn(this.placed, t, C.from(u)), this.frontier[t].match = d, h && p < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
5509
+ for (let m = 0, y = l; m < p; m++) {
5509
5510
  let b = y.lastChild;
5510
5511
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), y = b.content;
5511
5512
  }
5512
- this.unplaced = p ? e == 0 ? O.empty : new O(Pn(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new O(Pn(o.content, e, c), o.openStart, o.openEnd);
5513
+ this.unplaced = h ? e == 0 ? O.empty : new O(Pn(o.content, e - 1, 1), e - 1, p < 0 ? o.openEnd : e - 1) : new O(Pn(o.content, e, c), o.openStart, o.openEnd);
5513
5514
  }
5514
5515
  mustMoveInline() {
5515
5516
  if (!this.$to.parent.isTextblock)
@@ -5600,41 +5601,41 @@ function Uh(n, e, t, r) {
5600
5601
  o[o.length - 1] == 0 && o.pop();
5601
5602
  let l = -(i.depth + 1);
5602
5603
  o.unshift(l);
5603
- for (let f = i.depth, h = i.pos - 1; f > 0; f--, h--) {
5604
- let p = i.node(f).type.spec;
5605
- if (p.defining || p.definingAsContext || p.isolating)
5604
+ for (let f = i.depth, p = i.pos - 1; f > 0; f--, p--) {
5605
+ let h = i.node(f).type.spec;
5606
+ if (h.defining || h.definingAsContext || h.isolating)
5606
5607
  break;
5607
- o.indexOf(f) > -1 ? l = f : i.before(f) == h && o.splice(1, 0, -f);
5608
+ o.indexOf(f) > -1 ? l = f : i.before(f) == p && o.splice(1, 0, -f);
5608
5609
  }
5609
5610
  let a = o.indexOf(l), c = [], u = r.openStart;
5610
- for (let f = r.content, h = 0; ; h++) {
5611
- let p = f.firstChild;
5612
- if (c.push(p), h == r.openStart)
5611
+ for (let f = r.content, p = 0; ; p++) {
5612
+ let h = f.firstChild;
5613
+ if (c.push(h), p == r.openStart)
5613
5614
  break;
5614
- f = p.content;
5615
+ f = h.content;
5615
5616
  }
5616
5617
  for (let f = u - 1; f >= 0; f--) {
5617
- let h = c[f], p = Wh(h.type);
5618
- if (p && !h.sameMarkup(i.node(Math.abs(l) - 1)))
5618
+ let p = c[f], h = Wh(p.type);
5619
+ if (h && !p.sameMarkup(i.node(Math.abs(l) - 1)))
5619
5620
  u = f;
5620
- else if (p || !h.type.isTextblock)
5621
+ else if (h || !p.type.isTextblock)
5621
5622
  break;
5622
5623
  }
5623
5624
  for (let f = r.openStart; f >= 0; f--) {
5624
- let h = (f + u + 1) % (r.openStart + 1), p = c[h];
5625
- if (p)
5625
+ let p = (f + u + 1) % (r.openStart + 1), h = c[p];
5626
+ if (h)
5626
5627
  for (let m = 0; m < o.length; m++) {
5627
5628
  let y = o[(m + a) % o.length], b = !0;
5628
5629
  y < 0 && (b = !1, y = -y);
5629
- let k = i.node(y - 1), T = i.index(y - 1);
5630
- if (k.canReplaceWith(T, T, p.type, p.marks))
5631
- return n.replace(i.before(y), b ? s.after(y) : t, new O(Nc(r.content, 0, r.openStart, h), h, r.openEnd));
5630
+ let v = i.node(y - 1), T = i.index(y - 1);
5631
+ if (v.canReplaceWith(T, T, h.type, h.marks))
5632
+ return n.replace(i.before(y), b ? s.after(y) : t, new O(Nc(r.content, 0, r.openStart, p), p, r.openEnd));
5632
5633
  }
5633
5634
  }
5634
5635
  let d = n.steps.length;
5635
5636
  for (let f = o.length - 1; f >= 0 && (n.replace(e, t, r), !(n.steps.length > d)); f--) {
5636
- let h = o[f];
5637
- h < 0 || (e = i.before(h), t = s.after(h));
5637
+ let p = o[f];
5638
+ p < 0 || (e = i.before(p), t = s.after(p));
5638
5639
  }
5639
5640
  }
5640
5641
  function Nc(n, e, t, r, i) {
@@ -6936,10 +6937,10 @@ function Ml(n, e, t) {
6936
6937
  if (a)
6937
6938
  s.defaultView.scrollBy(u, d);
6938
6939
  else {
6939
- let f = l.scrollLeft, h = l.scrollTop;
6940
+ let f = l.scrollLeft, p = l.scrollTop;
6940
6941
  d && (l.scrollTop += d), u && (l.scrollLeft += u);
6941
- let p = l.scrollLeft - f, m = l.scrollTop - h;
6942
- e = { left: e.left - p, top: e.top - m, right: e.right - p, bottom: e.bottom - m };
6942
+ let h = l.scrollLeft - f, m = l.scrollTop - p;
6943
+ e = { left: e.left - h, top: e.top - m, right: e.right - h, bottom: e.bottom - m };
6943
6944
  }
6944
6945
  if (a || /^(fixed|sticky)$/.test(getComputedStyle(o).position))
6945
6946
  break;
@@ -6998,20 +6999,20 @@ function $c(n, e) {
6998
6999
  f = dt(u).getClientRects();
6999
7000
  else
7000
7001
  continue;
7001
- for (let h = 0; h < f.length; h++) {
7002
- let p = f[h];
7003
- if (p.top <= o && p.bottom >= l) {
7004
- o = Math.max(p.bottom, o), l = Math.min(p.top, l);
7005
- let m = p.left > e.left ? p.left - e.left : p.right < e.left ? e.left - p.right : 0;
7002
+ for (let p = 0; p < f.length; p++) {
7003
+ let h = f[p];
7004
+ if (h.top <= o && h.bottom >= l) {
7005
+ o = Math.max(h.bottom, o), l = Math.min(h.top, l);
7006
+ let m = h.left > e.left ? h.left - e.left : h.right < e.left ? e.left - h.right : 0;
7006
7007
  if (m < r) {
7007
7008
  t = u, r = m, i = m && t.nodeType == 3 ? {
7008
- left: p.right < e.left ? p.right : p.left,
7009
+ left: h.right < e.left ? h.right : h.left,
7009
7010
  top: e.top
7010
- } : e, u.nodeType == 1 && m && (s = d + (e.left >= (p.left + p.right) / 2 ? 1 : 0));
7011
+ } : e, u.nodeType == 1 && m && (s = d + (e.left >= (h.left + h.right) / 2 ? 1 : 0));
7011
7012
  continue;
7012
7013
  }
7013
- } else p.top > e.top && !a && p.left <= e.left && p.right >= e.left && (a = u, c = { left: Math.max(p.left, Math.min(p.right, e.left)), top: p.top });
7014
- !t && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (s = d + 1);
7014
+ } else h.top > e.top && !a && h.left <= e.left && h.right >= e.left && (a = u, c = { left: Math.max(h.left, Math.min(h.right, e.left)), top: h.top });
7015
+ !t && (e.left >= h.right && e.top >= h.top || e.left >= h.left && e.top >= h.bottom) && (s = d + 1);
7015
7016
  }
7016
7017
  }
7017
7018
  return !t && a && (t = a, i = c, r = 0), t && t.nodeType == 3 ? pp(t, i) : !t || r && t.nodeType == 1 ? { node: n, offset: s } : $c(t, i);
@@ -7219,7 +7220,7 @@ function wp(n, e, t) {
7219
7220
  return !xp.test(r.parent.textContent) || !l.modify ? t == "left" || t == "backward" ? s : o : Vc(n, e, () => {
7220
7221
  let { focusNode: a, focusOffset: c, anchorNode: u, anchorOffset: d } = n.domSelectionRange(), f = l.caretBidiLevel;
7221
7222
  l.modify("move", t, "character");
7222
- let h = r.depth ? n.docView.domAfterPos(r.before()) : n.dom, { focusNode: p, focusOffset: m } = n.domSelectionRange(), y = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || a == p && c == m;
7223
+ let p = r.depth ? n.docView.domAfterPos(r.before()) : n.dom, { focusNode: h, focusOffset: m } = n.domSelectionRange(), y = h && !p.contains(h.nodeType == 1 ? h : h.parentNode) || a == h && c == m;
7223
7224
  try {
7224
7225
  l.collapse(u, d), a && (a != u || c != d) && l.extend && l.extend(a, c);
7225
7226
  } catch {
@@ -7478,30 +7479,30 @@ class dr {
7478
7479
  // case we just use whatever domFromPos produces as a best effort.
7479
7480
  setSelection(e, t, r, i = !1) {
7480
7481
  let s = Math.min(e, t), o = Math.max(e, t);
7481
- for (let f = 0, h = 0; f < this.children.length; f++) {
7482
- let p = this.children[f], m = h + p.size;
7483
- if (s > h && o < m)
7484
- return p.setSelection(e - h - p.border, t - h - p.border, r, i);
7485
- h = m;
7482
+ for (let f = 0, p = 0; f < this.children.length; f++) {
7483
+ let h = this.children[f], m = p + h.size;
7484
+ if (s > p && o < m)
7485
+ return h.setSelection(e - p - h.border, t - p - h.border, r, i);
7486
+ p = m;
7486
7487
  }
7487
7488
  let l = this.domFromPos(e, e ? -1 : 1), a = t == e ? l : this.domFromPos(t, t ? -1 : 1), c = r.getSelection(), u = !1;
7488
7489
  if ((Ye || Me) && e == t) {
7489
- let { node: f, offset: h } = l;
7490
+ let { node: f, offset: p } = l;
7490
7491
  if (f.nodeType == 3) {
7491
- if (u = !!(h && f.nodeValue[h - 1] == `
7492
- `), u && h == f.nodeValue.length)
7493
- for (let p = f, m; p; p = p.parentNode) {
7494
- if (m = p.nextSibling) {
7492
+ if (u = !!(p && f.nodeValue[p - 1] == `
7493
+ `), u && p == f.nodeValue.length)
7494
+ for (let h = f, m; h; h = h.parentNode) {
7495
+ if (m = h.nextSibling) {
7495
7496
  m.nodeName == "BR" && (l = a = { node: m.parentNode, offset: be(m) + 1 });
7496
7497
  break;
7497
7498
  }
7498
- let y = p.pmViewDesc;
7499
+ let y = h.pmViewDesc;
7499
7500
  if (y && y.node && y.node.isBlock)
7500
7501
  break;
7501
7502
  }
7502
7503
  } else {
7503
- let p = f.childNodes[h - 1];
7504
- u = p && (p.nodeName == "BR" || p.contentEditable == "false");
7504
+ let h = f.childNodes[p - 1];
7505
+ u = h && (h.nodeName == "BR" || h.contentEditable == "false");
7505
7506
  }
7506
7507
  }
7507
7508
  if (Ye && c.focusNode && c.focusNode != a.node && c.focusNode.nodeType == 1) {
@@ -7520,8 +7521,8 @@ class dr {
7520
7521
  }
7521
7522
  if (!d) {
7522
7523
  if (e > t) {
7523
- let h = l;
7524
- l = a, a = h;
7524
+ let p = l;
7525
+ l = a, a = p;
7525
7526
  }
7526
7527
  let f = document.createRange();
7527
7528
  f.setEnd(a.node, a.offset), f.setStart(l.node, l.offset), c.removeAllRanges(), c.addRange(f);
@@ -7723,8 +7724,8 @@ class Ot extends dr {
7723
7724
  c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !d && a.syncToMarks(u == this.node.childCount ? Q.none : this.node.child(u).marks, r, e), a.placeWidget(c, e, i);
7724
7725
  }, (c, u, d, f) => {
7725
7726
  a.syncToMarks(c.marks, r, e);
7726
- let h;
7727
- a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
7727
+ let p;
7728
+ a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (p = a.findIndexWithChild(s.node)) > -1 && a.updateNodeAt(c, u, d, p, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
7728
7729
  }), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Ht) && (o && this.protectLocalComposition(e, o), Kc(this.contentDOM, this.children, e), Cn && Ip(this.dom));
7729
7730
  }
7730
7731
  localCompositionInfo(e, t) {
@@ -8170,29 +8171,29 @@ function Np(n, e, t, r) {
8170
8171
  t(d[y], c, !!a);
8171
8172
  } else
8172
8173
  t(u, c, !!a);
8173
- let f, h;
8174
+ let f, p;
8174
8175
  if (a)
8175
- h = -1, f = a, a = null;
8176
+ p = -1, f = a, a = null;
8176
8177
  else if (c < n.childCount)
8177
- h = c, f = n.child(c++);
8178
+ p = c, f = n.child(c++);
8178
8179
  else
8179
8180
  break;
8180
8181
  for (let y = 0; y < l.length; y++)
8181
8182
  l[y].to <= s && l.splice(y--, 1);
8182
8183
  for (; o < i.length && i[o].from <= s && i[o].to > s; )
8183
8184
  l.push(i[o++]);
8184
- let p = s + f.nodeSize;
8185
+ let h = s + f.nodeSize;
8185
8186
  if (f.isText) {
8186
- let y = p;
8187
+ let y = h;
8187
8188
  o < i.length && i[o].from < y && (y = i[o].from);
8188
8189
  for (let b = 0; b < l.length; b++)
8189
8190
  l[b].to < y && (y = l[b].to);
8190
- y < p && (a = f.cut(y - s), f = f.cut(0, y - s), p = y, h = -1);
8191
+ y < h && (a = f.cut(y - s), f = f.cut(0, y - s), h = y, p = -1);
8191
8192
  } else
8192
- for (; o < i.length && i[o].to < p; )
8193
+ for (; o < i.length && i[o].to < h; )
8193
8194
  o++;
8194
8195
  let m = f.isInline && !f.isLeaf ? l.filter((y) => !y.inline) : l.slice();
8195
- r(f, m, e.forChild(s, f), h), s = p;
8196
+ r(f, m, e.forChild(s, f), p), s = h;
8196
8197
  }
8197
8198
  }
8198
8199
  function Ip(n) {
@@ -8596,29 +8597,29 @@ function _p(n, e) {
8596
8597
  return !1;
8597
8598
  }
8598
8599
  function Xc(n, e) {
8599
- n.someProp("transformCopied", (h) => {
8600
- e = h(e, n);
8600
+ n.someProp("transformCopied", (p) => {
8601
+ e = p(e, n);
8601
8602
  });
8602
8603
  let t = [], { content: r, openStart: i, openEnd: s } = e;
8603
8604
  for (; i > 1 && s > 1 && r.childCount == 1 && r.firstChild.childCount == 1; ) {
8604
8605
  i--, s--;
8605
- let h = r.firstChild;
8606
- t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
8606
+ let p = r.firstChild;
8607
+ t.push(p.type.name, p.attrs != p.type.defaultAttrs ? p.attrs : null), r = p.content;
8607
8608
  }
8608
8609
  let o = n.someProp("clipboardSerializer") || st.fromSchema(n.state.schema), l = ru(), a = l.createElement("div");
8609
8610
  a.appendChild(o.serializeFragment(r, { document: l }));
8610
8611
  let c = a.firstChild, u, d = 0;
8611
8612
  for (; c && c.nodeType == 1 && (u = nu[c.nodeName.toLowerCase()]); ) {
8612
- for (let h = u.length - 1; h >= 0; h--) {
8613
- let p = l.createElement(u[h]);
8613
+ for (let p = u.length - 1; p >= 0; p--) {
8614
+ let h = l.createElement(u[p]);
8614
8615
  for (; a.firstChild; )
8615
- p.appendChild(a.firstChild);
8616
- a.appendChild(p), d++;
8616
+ h.appendChild(a.firstChild);
8617
+ a.appendChild(h), d++;
8617
8618
  }
8618
8619
  c = a.firstChild;
8619
8620
  }
8620
8621
  c && c.nodeType == 1 && c.setAttribute("data-pm-slice", `${i} ${s}${d ? ` -${d}` : ""} ${JSON.stringify(t)}`);
8621
- let f = n.someProp("clipboardTextSerializer", (h) => h(e, n)) || e.content.textBetween(0, e.content.size, `
8622
+ let f = n.someProp("clipboardTextSerializer", (p) => p(e, n)) || e.content.textBetween(0, e.content.size, `
8622
8623
 
8623
8624
  `);
8624
8625
  return { dom: a, text: f, slice: e };
@@ -8638,10 +8639,10 @@ function Qc(n, e, t, r, i) {
8638
8639
  if (d)
8639
8640
  l = d;
8640
8641
  else {
8641
- let f = i.marks(), { schema: h } = n.state, p = st.fromSchema(h);
8642
+ let f = i.marks(), { schema: p } = n.state, h = st.fromSchema(p);
8642
8643
  o = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
8643
8644
  let y = o.appendChild(document.createElement("p"));
8644
- m && y.appendChild(p.serializeNode(h.text(m, f)));
8645
+ m && y.appendChild(h.serializeNode(p.text(m, f)));
8645
8646
  });
8646
8647
  }
8647
8648
  } else
@@ -8668,9 +8669,9 @@ function Qc(n, e, t, r, i) {
8668
8669
  l = qp(Kl(l, +u[1], +u[2]), u[4]);
8669
8670
  else if (l = O.maxOpen(Kp(l.content, i), !0), l.openStart || l.openEnd) {
8670
8671
  let d = 0, f = 0;
8671
- for (let h = l.content.firstChild; d < l.openStart && !h.type.spec.isolating; d++, h = h.firstChild)
8672
+ for (let p = l.content.firstChild; d < l.openStart && !p.type.spec.isolating; d++, p = p.firstChild)
8672
8673
  ;
8673
- for (let h = l.content.lastChild; f < l.openEnd && !h.type.spec.isolating; f++, h = h.lastChild)
8674
+ for (let p = l.content.lastChild; f < l.openEnd && !p.type.spec.isolating; f++, p = p.lastChild)
8674
8675
  ;
8675
8676
  l = Kl(l, d, f);
8676
8677
  }
@@ -9146,11 +9147,11 @@ Oe.drop = (n, e) => {
9146
9147
  if (!i)
9147
9148
  return;
9148
9149
  let s = n.state.doc.resolve(i.pos), o = r && r.slice;
9149
- o ? n.someProp("transformPasted", (p) => {
9150
- o = p(o, n);
9150
+ o ? n.someProp("transformPasted", (h) => {
9151
+ o = h(o, n);
9151
9152
  }) : o = Qc(n, au(t.dataTransfer), Qn ? null : t.dataTransfer.getData("text/html"), !1, s);
9152
9153
  let l = !!(r && !t[uu]);
9153
- if (n.someProp("handleDrop", (p) => p(n, t, o || O.empty, l))) {
9154
+ if (n.someProp("handleDrop", (h) => h(n, t, o || O.empty, l))) {
9154
9155
  t.preventDefault();
9155
9156
  return;
9156
9157
  }
@@ -9161,18 +9162,18 @@ Oe.drop = (n, e) => {
9161
9162
  a == null && (a = s.pos);
9162
9163
  let c = n.state.tr;
9163
9164
  if (l) {
9164
- let { node: p } = r;
9165
- p ? p.replace(c) : c.deleteSelection();
9165
+ let { node: h } = r;
9166
+ h ? h.replace(c) : c.deleteSelection();
9166
9167
  }
9167
9168
  let u = c.mapping.map(a), d = o.openStart == 0 && o.openEnd == 0 && o.content.childCount == 1, f = c.doc;
9168
9169
  if (d ? c.replaceRangeWith(u, u, o.content.firstChild) : c.replaceRange(u, u, o), c.doc.eq(f))
9169
9170
  return;
9170
- let h = c.doc.resolve(u);
9171
- if (d && R.isSelectable(o.content.firstChild) && h.nodeAfter && h.nodeAfter.sameMarkup(o.content.firstChild))
9172
- c.setSelection(new R(h));
9171
+ let p = c.doc.resolve(u);
9172
+ if (d && R.isSelectable(o.content.firstChild) && p.nodeAfter && p.nodeAfter.sameMarkup(o.content.firstChild))
9173
+ c.setSelection(new R(p));
9173
9174
  else {
9174
- let p = c.mapping.map(a);
9175
- c.mapping.maps[c.mapping.maps.length - 1].forEach((m, y, b, k) => p = k), c.setSelection(yo(n, h, c.doc.resolve(p)));
9175
+ let h = c.mapping.map(a);
9176
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, y, b, v) => h = v), c.setSelection(yo(n, p, c.doc.resolve(h)));
9176
9177
  }
9177
9178
  n.focus(), n.dispatch(c.setMeta("uiEvent", "drop"));
9178
9179
  };
@@ -9570,14 +9571,14 @@ function pm(n, e, t, r, i, s, o) {
9570
9571
  let l = n.slice();
9571
9572
  for (let c = 0, u = s; c < t.maps.length; c++) {
9572
9573
  let d = 0;
9573
- t.maps[c].forEach((f, h, p, m) => {
9574
- let y = m - p - (h - f);
9574
+ t.maps[c].forEach((f, p, h, m) => {
9575
+ let y = m - h - (p - f);
9575
9576
  for (let b = 0; b < l.length; b += 3) {
9576
- let k = l[b + 1];
9577
- if (k < 0 || f > k + u - d)
9577
+ let v = l[b + 1];
9578
+ if (v < 0 || f > v + u - d)
9578
9579
  continue;
9579
9580
  let T = l[b] + u - d;
9580
- h >= T ? l[b + 1] = f <= T ? -2 : -1 : f >= u && y && (l[b] += y, l[b + 1] += y);
9581
+ p >= T ? l[b + 1] = f <= T ? -2 : -1 : f >= u && y && (l[b] += y, l[b + 1] += y);
9581
9582
  }
9582
9583
  d += y;
9583
9584
  }), u = t.maps[c].map(u, -1);
@@ -9594,10 +9595,10 @@ function pm(n, e, t, r, i, s, o) {
9594
9595
  a = !0;
9595
9596
  continue;
9596
9597
  }
9597
- let f = t.map(n[c + 1] + s, -1), h = f - i, { index: p, offset: m } = r.content.findIndex(d), y = r.maybeChild(p);
9598
- if (y && m == d && m + y.nodeSize == h) {
9598
+ let f = t.map(n[c + 1] + s, -1), p = f - i, { index: h, offset: m } = r.content.findIndex(d), y = r.maybeChild(h);
9599
+ if (y && m == d && m + y.nodeSize == p) {
9599
9600
  let b = l[c + 2].mapInner(t, y, u + 1, n[c] + s + 1, o);
9600
- b != we ? (l[c] = d, l[c + 1] = h, l[c + 2] = b) : (l[c + 1] = -2, a = !0);
9601
+ b != we ? (l[c] = d, l[c + 1] = p, l[c + 2] = b) : (l[c + 1] = -2, a = !0);
9601
9602
  } else
9602
9603
  a = !0;
9603
9604
  }
@@ -9607,8 +9608,8 @@ function pm(n, e, t, r, i, s, o) {
9607
9608
  for (let d = 0; d < l.length; d += 3)
9608
9609
  l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
9609
9610
  for (let d = 0, f = 0; d < u.children.length; d += 3) {
9610
- let h = u.children[d];
9611
- for (; f < l.length && l[f] < h; )
9611
+ let p = u.children[d];
9612
+ for (; f < l.length && l[f] < p; )
9612
9613
  f += 3;
9613
9614
  l.splice(f, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
9614
9615
  }
@@ -9823,8 +9824,8 @@ class vm {
9823
9824
  } else {
9824
9825
  let { focusNode: d } = this.currentSelection;
9825
9826
  for (let f of u) {
9826
- let h = f.parentNode;
9827
- h && h.nodeName == "LI" && (!d || wm(e, d) != h) && f.remove();
9827
+ let p = f.parentNode;
9828
+ p && p.nodeName == "LI" && (!d || wm(e, d) != p) && f.remove();
9828
9829
  }
9829
9830
  }
9830
9831
  }
@@ -9898,30 +9899,30 @@ function Sm(n, e, t) {
9898
9899
  let { node: r, fromOffset: i, toOffset: s, from: o, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, u = a.anchorNode;
9899
9900
  if (u && n.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], Li(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Te && n.input.lastKeyCode === 8)
9900
9901
  for (let y = s; y > i; y--) {
9901
- let b = r.childNodes[y - 1], k = b.pmViewDesc;
9902
- if (b.nodeName == "BR" && !k) {
9902
+ let b = r.childNodes[y - 1], v = b.pmViewDesc;
9903
+ if (b.nodeName == "BR" && !v) {
9903
9904
  s = y;
9904
9905
  break;
9905
9906
  }
9906
- if (!k || k.size)
9907
+ if (!v || v.size)
9907
9908
  break;
9908
9909
  }
9909
- let d = n.state.doc, f = n.someProp("domParser") || xn.fromSchema(n.state.schema), h = d.resolve(o), p = null, m = f.parse(r, {
9910
- topNode: h.parent,
9911
- topMatch: h.parent.contentMatchAt(h.index()),
9910
+ let d = n.state.doc, f = n.someProp("domParser") || xn.fromSchema(n.state.schema), p = d.resolve(o), h = null, m = f.parse(r, {
9911
+ topNode: p.parent,
9912
+ topMatch: p.parent.contentMatchAt(p.index()),
9912
9913
  topOpen: !0,
9913
9914
  from: i,
9914
9915
  to: s,
9915
- preserveWhitespace: h.parent.type.whitespace == "pre" ? "full" : !0,
9916
+ preserveWhitespace: p.parent.type.whitespace == "pre" ? "full" : !0,
9916
9917
  findPositions: c,
9917
9918
  ruleFromNode: Cm,
9918
- context: h
9919
+ context: p
9919
9920
  });
9920
9921
  if (c && c[0].pos != null) {
9921
9922
  let y = c[0].pos, b = c[1] && c[1].pos;
9922
- b == null && (b = y), p = { anchor: y + o, head: b + o };
9923
+ b == null && (b = y), h = { anchor: y + o, head: b + o };
9923
9924
  }
9924
- return { doc: m, sel: p, from: o, to: l };
9925
+ return { doc: m, sel: h, from: o, to: l };
9925
9926
  }
9926
9927
  function Cm(n) {
9927
9928
  let e = n.pmViewDesc;
@@ -9952,16 +9953,16 @@ function Mm(n, e, t, r, i) {
9952
9953
  }
9953
9954
  let o = n.state.doc.resolve(e), l = o.sharedDepth(t);
9954
9955
  e = o.before(l + 1), t = n.state.doc.resolve(t).after(l + 1);
9955
- let a = n.state.selection, c = Sm(n, e, t), u = n.state.doc, d = u.slice(c.from, c.to), f, h;
9956
- n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (f = n.state.selection.to, h = "end") : (f = n.state.selection.from, h = "start"), n.input.lastKeyCode = null;
9957
- let p = Am(d.content, c.doc.content, c.from, f, h);
9958
- if ((Cn && n.input.lastIOSEnter > Date.now() - 225 || Ue) && i.some((P) => P.nodeType == 1 && !Tm.test(P.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (P) => P(n, $t(13, "Enter")))) {
9956
+ let a = n.state.selection, c = Sm(n, e, t), u = n.state.doc, d = u.slice(c.from, c.to), f, p;
9957
+ n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (f = n.state.selection.to, p = "end") : (f = n.state.selection.from, p = "start"), n.input.lastKeyCode = null;
9958
+ let h = Am(d.content, c.doc.content, c.from, f, p);
9959
+ if ((Cn && n.input.lastIOSEnter > Date.now() - 225 || Ue) && i.some((P) => P.nodeType == 1 && !Tm.test(P.nodeName)) && (!h || h.endA >= h.endB) && n.someProp("handleKeyDown", (P) => P(n, $t(13, "Enter")))) {
9959
9960
  n.input.lastIOSEnter = 0;
9960
9961
  return;
9961
9962
  }
9962
- if (!p)
9963
+ if (!h)
9963
9964
  if (r && a instanceof F && !a.empty && a.$head.sameParent(a.$anchor) && !n.composing && !(c.sel && c.sel.anchor != c.sel.head))
9964
- p = { start: a.from, endA: a.to, endB: a.to };
9965
+ h = { start: a.from, endA: a.to, endB: a.to };
9965
9966
  else {
9966
9967
  if (c.sel) {
9967
9968
  let P = Yl(n, n.state.doc, c.sel);
@@ -9972,28 +9973,28 @@ function Mm(n, e, t, r, i) {
9972
9973
  }
9973
9974
  return;
9974
9975
  }
9975
- n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof F && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), Ne && Et <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
9976
- let m = c.doc.resolveNoCache(p.start - c.from), y = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), k = m.sameParent(y) && m.parent.inlineContent && b.end() >= p.endA, T;
9977
- if ((Cn && n.input.lastIOSEnter > Date.now() - 225 && (!k || i.some((P) => P.nodeName == "DIV" || P.nodeName == "P")) || !k && m.pos < c.doc.content.size && !m.sameParent(y) && (T = H.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && T.head == y.pos) && n.someProp("handleKeyDown", (P) => P(n, $t(13, "Enter")))) {
9976
+ n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && h.start == h.endB && n.state.selection instanceof F && (h.start > n.state.selection.from && h.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? h.start = n.state.selection.from : h.endA < n.state.selection.to && h.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (h.endB += n.state.selection.to - h.endA, h.endA = n.state.selection.to)), Ne && Et <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
9977
+ let m = c.doc.resolveNoCache(h.start - c.from), y = c.doc.resolveNoCache(h.endB - c.from), b = u.resolve(h.start), v = m.sameParent(y) && m.parent.inlineContent && b.end() >= h.endA, T;
9978
+ if ((Cn && n.input.lastIOSEnter > Date.now() - 225 && (!v || i.some((P) => P.nodeName == "DIV" || P.nodeName == "P")) || !v && m.pos < c.doc.content.size && !m.sameParent(y) && (T = H.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && T.head == y.pos) && n.someProp("handleKeyDown", (P) => P(n, $t(13, "Enter")))) {
9978
9979
  n.input.lastIOSEnter = 0;
9979
9980
  return;
9980
9981
  }
9981
- if (n.state.selection.anchor > p.start && Om(u, p.start, p.endA, m, y) && n.someProp("handleKeyDown", (P) => P(n, $t(8, "Backspace")))) {
9982
+ if (n.state.selection.anchor > h.start && Om(u, h.start, h.endA, m, y) && n.someProp("handleKeyDown", (P) => P(n, $t(8, "Backspace")))) {
9982
9983
  Ue && Te && n.domObserver.suppressSelectionUpdates();
9983
9984
  return;
9984
9985
  }
9985
- Te && Ue && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ue && !k && m.start() != y.start() && y.parentOffset == 0 && m.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, y = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
9986
+ Te && Ue && h.endB == h.start && (n.input.lastAndroidDelete = Date.now()), Ue && !v && m.start() != y.start() && y.parentOffset == 0 && m.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, y = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
9986
9987
  n.someProp("handleKeyDown", function(P) {
9987
9988
  return P(n, $t(13, "Enter"));
9988
9989
  });
9989
9990
  }, 20));
9990
- let g = p.start, E = p.endA, w, L, Y;
9991
- if (k) {
9991
+ let g = h.start, E = h.endA, w, L, Y;
9992
+ if (v) {
9992
9993
  if (m.pos == y.pos)
9993
- Ne && Et <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => pt(n), 20)), w = n.state.tr.delete(g, E), L = u.resolve(p.start).marksAcross(u.resolve(p.endA));
9994
+ Ne && Et <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => pt(n), 20)), w = n.state.tr.delete(g, E), L = u.resolve(h.start).marksAcross(u.resolve(h.endA));
9994
9995
  else if (
9995
9996
  // Adding or removing a mark
9996
- p.endA == p.endB && (Y = Em(m.parent.content.cut(m.parentOffset, y.parentOffset), b.parent.content.cut(b.parentOffset, p.endA - b.start())))
9997
+ h.endA == h.endB && (Y = Em(m.parent.content.cut(m.parentOffset, y.parentOffset), b.parent.content.cut(b.parentOffset, h.endA - b.start())))
9997
9998
  )
9998
9999
  w = n.state.tr, Y.type == "add" ? w.addMark(g, E, Y.mark) : w.removeMark(g, E, Y.mark);
9999
10000
  else if (m.parent.child(m.index()).isText && m.index() == y.index() - (y.textOffset ? 0 : 1)) {
@@ -10003,9 +10004,9 @@ function Mm(n, e, t, r, i) {
10003
10004
  w = n.state.tr.insertText(P, g, E);
10004
10005
  }
10005
10006
  }
10006
- if (w || (w = n.state.tr.replace(g, E, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
10007
+ if (w || (w = n.state.tr.replace(g, E, c.doc.slice(h.start - c.from, h.endB - c.from))), c.sel) {
10007
10008
  let P = Yl(n, w.doc, c.sel);
10008
- P && !(Te && Ue && n.composing && P.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (P.head == g || P.head == w.mapping.map(E) - 1) || Ne && P.empty && P.head == g) && w.setSelection(P);
10009
+ P && !(Te && Ue && n.composing && P.empty && (h.start != h.endB || n.input.lastAndroidDelete < Date.now() - 100) && (P.head == g || P.head == w.mapping.map(E) - 1) || Ne && P.empty && P.head == g) && w.setSelection(P);
10009
10010
  }
10010
10011
  L && w.ensureMarks(L), s && w.setMeta("composition", s), n.dispatch(w.scrollIntoView());
10011
10012
  }
@@ -10150,8 +10151,8 @@ class Nm {
10150
10151
  e.storedMarks && this.composing && (lu(this), o = !0), this.state = e;
10151
10152
  let l = i.plugins != e.plugins || this._props.plugins != t.plugins;
10152
10153
  if (l || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
10153
- let h = ta(this);
10154
- Dm(h, this.nodeViews) && (this.nodeViews = h, s = !0);
10154
+ let p = ta(this);
10155
+ Dm(p, this.nodeViews) && (this.nodeViews = p, s = !0);
10155
10156
  }
10156
10157
  (l || t.handleDOMEvents != this._props.handleDOMEvents) && Us(this), this.editable = ea(this), Zl(this);
10157
10158
  let a = cs(this), c = Ql(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = s || !this.docView.matchesNode(e.doc, c, a);
@@ -10159,12 +10160,12 @@ class Nm {
10159
10160
  let f = u == "preserve" && o && this.dom.style.overflowAnchor == null && dp(this);
10160
10161
  if (o) {
10161
10162
  this.domObserver.stop();
10162
- let h = d && (Ne || Te) && !this.composing && !i.selection.empty && !e.selection.empty && Im(i.selection, e.selection);
10163
+ let p = d && (Ne || Te) && !this.composing && !i.selection.empty && !e.selection.empty && Im(i.selection, e.selection);
10163
10164
  if (d) {
10164
- let p = Te ? this.trackWrites = this.domSelectionRange().focusNode : null;
10165
- this.composing && (this.input.compositionNode = cm(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Dl(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
10165
+ let h = Te ? this.trackWrites = this.domSelectionRange().focusNode : null;
10166
+ this.composing && (this.input.compositionNode = cm(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Dl(e.doc, c, a, this.dom, this)), h && !this.trackWrites && (p = !0);
10166
10167
  }
10167
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Pp(this)) ? pt(this, h) : (Jc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
10168
+ p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Pp(this)) ? pt(this, p) : (Jc(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
10168
10169
  }
10169
10170
  this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : f && fp(f);
10170
10171
  }
@@ -10844,8 +10845,8 @@ function vu(n, e, t) {
10844
10845
  for (let m = s.length - 1; m >= 0; m--)
10845
10846
  f = C.from(s[m].create(null, f));
10846
10847
  f = C.from(r.copy(f));
10847
- let h = n.tr.step(new he(e.pos - 1, d, e.pos, d, new O(f, 1, 0), s.length, !0)), p = d + 2 * s.length;
10848
- It(h.doc, p) && h.join(p), t(h.scrollIntoView());
10848
+ let p = n.tr.step(new he(e.pos - 1, d, e.pos, d, new O(f, 1, 0), s.length, !0)), h = d + 2 * s.length;
10849
+ It(p.doc, h) && p.join(h), t(p.scrollIntoView());
10849
10850
  }
10850
10851
  return !0;
10851
10852
  }
@@ -10856,15 +10857,15 @@ function vu(n, e, t) {
10856
10857
  let d = r, f = [];
10857
10858
  for (; f.push(d), !d.isTextblock; )
10858
10859
  d = d.lastChild;
10859
- let h = i, p = 1;
10860
- for (; !h.isTextblock; h = h.firstChild)
10861
- p++;
10862
- if (d.canReplace(d.childCount, d.childCount, h.content)) {
10860
+ let p = i, h = 1;
10861
+ for (; !p.isTextblock; p = p.firstChild)
10862
+ h++;
10863
+ if (d.canReplace(d.childCount, d.childCount, p.content)) {
10863
10864
  if (t) {
10864
10865
  let m = C.empty;
10865
10866
  for (let b = f.length - 1; b >= 0; b--)
10866
10867
  m = C.from(f[b].copy(m));
10867
- let y = n.tr.step(new he(e.pos - f.length, e.pos + i.nodeSize, e.pos + p, e.pos + i.nodeSize - p, new O(m, f.length, 0), 0, !0));
10868
+ let y = n.tr.step(new he(e.pos - f.length, e.pos + i.nodeSize, e.pos + h, e.pos + i.nodeSize - h, new O(m, f.length, 0), 0, !0));
10868
10869
  t(y.scrollIntoView());
10869
10870
  }
10870
10871
  return !0;
@@ -10967,8 +10968,8 @@ function ag(n, e, t, r) {
10967
10968
  }
10968
10969
  function cg(n, e, t) {
10969
10970
  let r = n.tr, i = t.parent;
10970
- for (let h = t.end, p = t.endIndex - 1, m = t.startIndex; p > m; p--)
10971
- h -= i.child(p).nodeSize, r.delete(h - 1, h + 1);
10971
+ for (let p = t.end, h = t.endIndex - 1, m = t.startIndex; h > m; h--)
10972
+ p -= i.child(h).nodeSize, r.delete(p - 1, p + 1);
10972
10973
  let s = r.doc.resolve(t.start), o = s.nodeAfter;
10973
10974
  if (r.mapping.map(t.end) != t.start + s.nodeAfter.nodeSize)
10974
10975
  return !1;
@@ -10990,8 +10991,8 @@ function ug(n) {
10990
10991
  if (a.type != n)
10991
10992
  return !1;
10992
10993
  if (t) {
10993
- let c = a.lastChild && a.lastChild.type == l.type, u = C.from(c ? n.create() : null), d = new O(C.from(n.create(null, C.from(l.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, h = s.end;
10994
- t(e.tr.step(new he(f - (c ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
10994
+ let c = a.lastChild && a.lastChild.type == l.type, u = C.from(c ? n.create() : null), d = new O(C.from(n.create(null, C.from(l.type.create(null, u)))), c ? 3 : 1, 0), f = s.start, p = s.end;
10995
+ t(e.tr.step(new he(f - (c ? 3 : 1), p, f, p, d, 1, !0)).scrollIntoView());
10995
10996
  }
10996
10997
  return !0;
10997
10998
  };
@@ -11046,8 +11047,8 @@ class $i {
11046
11047
  }
11047
11048
  createChain(e, t = !0) {
11048
11049
  const { rawCommands: r, editor: i, state: s } = this, { view: o } = i, l = [], a = !!e, c = e || s.tr, u = () => (!a && t && !c.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(c), l.every((f) => f === !0)), d = {
11049
- ...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...m) => {
11050
- const y = this.buildProps(c, t), b = h(...m)(y);
11050
+ ...Object.fromEntries(Object.entries(r).map(([f, p]) => [f, (...m) => {
11051
+ const y = this.buildProps(c, t), b = p(...m)(y);
11051
11052
  return l.push(b), d;
11052
11053
  }])),
11053
11054
  run: u
@@ -11133,13 +11134,13 @@ function xu(n) {
11133
11134
  return;
11134
11135
  a().forEach((u) => {
11135
11136
  u.types.forEach((d) => {
11136
- Object.entries(u.attributes).forEach(([f, h]) => {
11137
+ Object.entries(u.attributes).forEach(([f, p]) => {
11137
11138
  e.push({
11138
11139
  type: d,
11139
11140
  name: f,
11140
11141
  attribute: {
11141
11142
  ...s,
11142
- ...h
11143
+ ...p
11143
11144
  }
11144
11145
  });
11145
11146
  });
@@ -11239,13 +11240,13 @@ function pg(n, e) {
11239
11240
  options: c.options,
11240
11241
  storage: c.storage,
11241
11242
  editor: e
11242
- }, f = n.reduce((b, k) => {
11243
- const T = A(k, "extendNodeSchema", d);
11243
+ }, f = n.reduce((b, v) => {
11244
+ const T = A(v, "extendNodeSchema", d);
11244
11245
  return {
11245
11246
  ...b,
11246
11247
  ...T ? T(c) : {}
11247
11248
  };
11248
- }, {}), h = sa({
11249
+ }, {}), p = sa({
11249
11250
  ...f,
11250
11251
  content: z(A(c, "content", d)),
11251
11252
  marks: z(A(c, "marks", d)),
@@ -11258,18 +11259,18 @@ function pg(n, e) {
11258
11259
  defining: z(A(c, "defining", d)),
11259
11260
  isolating: z(A(c, "isolating", d)),
11260
11261
  attrs: Object.fromEntries(u.map((b) => {
11261
- var k;
11262
- return [b.name, { default: (k = b == null ? void 0 : b.attribute) === null || k === void 0 ? void 0 : k.default }];
11262
+ var v;
11263
+ return [b.name, { default: (v = b == null ? void 0 : b.attribute) === null || v === void 0 ? void 0 : v.default }];
11263
11264
  }))
11264
- }), p = z(A(c, "parseHTML", d));
11265
- p && (h.parseDOM = p.map((b) => ia(b, u)));
11265
+ }), h = z(A(c, "parseHTML", d));
11266
+ h && (p.parseDOM = h.map((b) => ia(b, u)));
11266
11267
  const m = A(c, "renderHTML", d);
11267
- m && (h.toDOM = (b) => m({
11268
+ m && (p.toDOM = (b) => m({
11268
11269
  node: b,
11269
11270
  HTMLAttributes: qs(b, u)
11270
11271
  }));
11271
11272
  const y = A(c, "renderText", d);
11272
- return y && (h.toText = y), [c.name, h];
11273
+ return y && (p.toText = y), [c.name, p];
11273
11274
  })), a = Object.fromEntries(s.map((c) => {
11274
11275
  const u = r.filter((y) => y.type === c.name), d = {
11275
11276
  name: c.name,
@@ -11277,12 +11278,12 @@ function pg(n, e) {
11277
11278
  storage: c.storage,
11278
11279
  editor: e
11279
11280
  }, f = n.reduce((y, b) => {
11280
- const k = A(b, "extendMarkSchema", d);
11281
+ const v = A(b, "extendMarkSchema", d);
11281
11282
  return {
11282
11283
  ...y,
11283
- ...k ? k(c) : {}
11284
+ ...v ? v(c) : {}
11284
11285
  };
11285
- }, {}), h = sa({
11286
+ }, {}), p = sa({
11286
11287
  ...f,
11287
11288
  inclusive: z(A(c, "inclusive", d)),
11288
11289
  excludes: z(A(c, "excludes", d)),
@@ -11293,13 +11294,13 @@ function pg(n, e) {
11293
11294
  var b;
11294
11295
  return [y.name, { default: (b = y == null ? void 0 : y.attribute) === null || b === void 0 ? void 0 : b.default }];
11295
11296
  }))
11296
- }), p = z(A(c, "parseHTML", d));
11297
- p && (h.parseDOM = p.map((y) => ia(y, u)));
11297
+ }), h = z(A(c, "parseHTML", d));
11298
+ h && (p.parseDOM = h.map((y) => ia(y, u)));
11298
11299
  const m = A(c, "renderHTML", d);
11299
- return m && (h.toDOM = (y) => m({
11300
+ return m && (p.toDOM = (y) => m({
11300
11301
  mark: y,
11301
11302
  HTMLAttributes: qs(y, u)
11302
- })), [c.name, h];
11303
+ })), [c.name, p];
11303
11304
  }));
11304
11305
  return new bh({
11305
11306
  topNode: o,
@@ -11360,32 +11361,32 @@ function kr(n) {
11360
11361
  return o.forEach((f) => {
11361
11362
  if (u)
11362
11363
  return;
11363
- const h = gg(d, f.find);
11364
- if (!h)
11364
+ const p = gg(d, f.find);
11365
+ if (!p)
11365
11366
  return;
11366
- const p = a.state.tr, m = Fi({
11367
+ const h = a.state.tr, m = Fi({
11367
11368
  state: a.state,
11368
- transaction: p
11369
+ transaction: h
11369
11370
  }), y = {
11370
- from: r - (h[0].length - s.length),
11371
+ from: r - (p[0].length - s.length),
11371
11372
  to: i
11372
- }, { commands: b, chain: k, can: T } = new $i({
11373
+ }, { commands: b, chain: v, can: T } = new $i({
11373
11374
  editor: t,
11374
11375
  state: m
11375
11376
  });
11376
11377
  f.handler({
11377
11378
  state: m,
11378
11379
  range: y,
11379
- match: h,
11380
+ match: p,
11380
11381
  commands: b,
11381
- chain: k,
11382
+ chain: v,
11382
11383
  can: T
11383
- }) === null || !p.steps.length || (p.setMeta(l, {
11384
- transform: p,
11384
+ }) === null || !h.steps.length || (h.setMeta(l, {
11385
+ transform: h,
11385
11386
  from: r,
11386
11387
  to: i,
11387
11388
  text: s
11388
- }), a.dispatch(p), u = !0);
11389
+ }), a.dispatch(h), u = !0);
11389
11390
  }), u;
11390
11391
  }
11391
11392
  function yg(n) {
@@ -11480,10 +11481,10 @@ function xg(n) {
11480
11481
  editor: e,
11481
11482
  state: t
11482
11483
  }), d = [];
11483
- return t.doc.nodesBetween(r, i, (h, p) => {
11484
- if (!h.isTextblock || h.type.spec.code)
11484
+ return t.doc.nodesBetween(r, i, (p, h) => {
11485
+ if (!p.isTextblock || p.type.spec.code)
11485
11486
  return;
11486
- const m = Math.max(r, p), y = Math.min(i, p + h.content.size), b = h.textBetween(m - p, y - p, void 0, "");
11487
+ const m = Math.max(r, h), y = Math.min(i, h + p.content.size), b = p.textBetween(m - h, y - h, void 0, "");
11487
11488
  kg(b, s.find, o).forEach((T) => {
11488
11489
  if (T.index === void 0)
11489
11490
  return;
@@ -11502,7 +11503,7 @@ function xg(n) {
11502
11503
  });
11503
11504
  d.push(L);
11504
11505
  });
11505
- }), d.every((h) => h !== null);
11506
+ }), d.every((p) => p !== null);
11506
11507
  }
11507
11508
  const wg = (n) => {
11508
11509
  var e;
@@ -11514,7 +11515,7 @@ const wg = (n) => {
11514
11515
  function Sg(n) {
11515
11516
  const { editor: e, rules: t } = n;
11516
11517
  let r = null, i = !1, s = !1, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, l = typeof DragEvent < "u" ? new DragEvent("drop") : null;
11517
- const a = ({ state: u, from: d, to: f, rule: h, pasteEvt: p }) => {
11518
+ const a = ({ state: u, from: d, to: f, rule: p, pasteEvt: h }) => {
11518
11519
  const m = u.tr, y = Fi({
11519
11520
  state: u,
11520
11521
  transaction: m
@@ -11524,8 +11525,8 @@ function Sg(n) {
11524
11525
  state: y,
11525
11526
  from: Math.max(d - 1, 0),
11526
11527
  to: f.b - 1,
11527
- rule: h,
11528
- pasteEvent: p,
11528
+ rule: p,
11529
+ pasteEvent: h,
11529
11530
  dropEvent: l
11530
11531
  }) || !m.steps.length))
11531
11532
  return l = typeof DragEvent < "u" ? new DragEvent("drop") : null, o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
@@ -11533,9 +11534,9 @@ function Sg(n) {
11533
11534
  return t.map((u) => new ge({
11534
11535
  // we register a global drag handler to track the current drag source element
11535
11536
  view(d) {
11536
- const f = (h) => {
11537
- var p;
11538
- r = !((p = d.dom.parentElement) === null || p === void 0) && p.contains(h.target) ? d.dom.parentElement : null;
11537
+ const f = (p) => {
11538
+ var h;
11539
+ r = !((h = d.dom.parentElement) === null || h === void 0) && h.contains(p.target) ? d.dom.parentElement : null;
11539
11540
  };
11540
11541
  return window.addEventListener("dragstart", f), {
11541
11542
  destroy() {
@@ -11547,31 +11548,31 @@ function Sg(n) {
11547
11548
  handleDOMEvents: {
11548
11549
  drop: (d, f) => (s = r === d.dom.parentElement, l = f, !1),
11549
11550
  paste: (d, f) => {
11550
- var h;
11551
- const p = (h = f.clipboardData) === null || h === void 0 ? void 0 : h.getData("text/html");
11552
- return o = f, i = !!(p != null && p.includes("data-pm-slice")), !1;
11551
+ var p;
11552
+ const h = (p = f.clipboardData) === null || p === void 0 ? void 0 : p.getData("text/html");
11553
+ return o = f, i = !!(h != null && h.includes("data-pm-slice")), !1;
11553
11554
  }
11554
11555
  }
11555
11556
  },
11556
- appendTransaction: (d, f, h) => {
11557
- const p = d[0], m = p.getMeta("uiEvent") === "paste" && !i, y = p.getMeta("uiEvent") === "drop" && !s, b = p.getMeta("applyPasteRules"), k = !!b;
11558
- if (!m && !y && !k)
11557
+ appendTransaction: (d, f, p) => {
11558
+ const h = d[0], m = h.getMeta("uiEvent") === "paste" && !i, y = h.getMeta("uiEvent") === "drop" && !s, b = h.getMeta("applyPasteRules"), v = !!b;
11559
+ if (!m && !y && !v)
11559
11560
  return;
11560
- if (k) {
11561
+ if (v) {
11561
11562
  const { from: E, text: w } = b, L = E + w.length, Y = wg(w);
11562
11563
  return a({
11563
11564
  rule: u,
11564
- state: h,
11565
+ state: p,
11565
11566
  from: E,
11566
11567
  to: { b: L },
11567
11568
  pasteEvt: Y
11568
11569
  });
11569
11570
  }
11570
- const T = f.doc.content.findDiffStart(h.doc.content), g = f.doc.content.findDiffEnd(h.doc.content);
11571
+ const T = f.doc.content.findDiffStart(p.doc.content), g = f.doc.content.findDiffEnd(p.doc.content);
11571
11572
  if (!(!bg(T) || !g || T === g.b))
11572
11573
  return a({
11573
11574
  rule: u,
11574
- state: h,
11575
+ state: p,
11575
11576
  from: T,
11576
11577
  to: g,
11577
11578
  pasteEvt: o
@@ -11664,11 +11665,11 @@ class mn {
11664
11665
  a.push(d);
11665
11666
  const f = A(o, "addInputRules", l);
11666
11667
  oa(o, e.options.enableInputRules) && f && r.push(...f());
11667
- const h = A(o, "addPasteRules", l);
11668
- oa(o, e.options.enablePasteRules) && h && i.push(...h());
11669
- const p = A(o, "addProseMirrorPlugins", l);
11670
- if (p) {
11671
- const m = p();
11668
+ const p = A(o, "addPasteRules", l);
11669
+ oa(o, e.options.enablePasteRules) && p && i.push(...p());
11670
+ const h = A(o, "addProseMirrorPlugins", l);
11671
+ if (h) {
11672
+ const m = h();
11672
11673
  a.push(...m);
11673
11674
  }
11674
11675
  return a;
@@ -11798,9 +11799,9 @@ function Su(n, e, t) {
11798
11799
  return n.nodesBetween(r, i, (a, c, u, d) => {
11799
11800
  var f;
11800
11801
  a.isBlock && c > r && (l += s);
11801
- const h = o == null ? void 0 : o[a.type.name];
11802
- if (h)
11803
- return u && (l += h({
11802
+ const p = o == null ? void 0 : o[a.type.name];
11803
+ if (p)
11804
+ return u && (l += p({
11804
11805
  node: a,
11805
11806
  pos: c,
11806
11807
  parent: u,
@@ -11845,15 +11846,15 @@ const Mg = ke.create({
11845
11846
  n.doc.nodesBetween(s.pos, o.pos, (l, a) => {
11846
11847
  if (l.type.isText)
11847
11848
  return;
11848
- const { doc: c, mapping: u } = e, d = c.resolve(u.map(a)), f = c.resolve(u.map(a + l.nodeSize)), h = d.blockRange(f);
11849
- if (!h)
11849
+ const { doc: c, mapping: u } = e, d = c.resolve(u.map(a)), f = c.resolve(u.map(a + l.nodeSize)), p = d.blockRange(f);
11850
+ if (!p)
11850
11851
  return;
11851
- const p = An(h);
11852
+ const h = An(p);
11852
11853
  if (l.type.isTextblock) {
11853
11854
  const { defaultType: m } = d.parent.contentMatchAt(d.index());
11854
- e.setNodeMarkup(h.start, m);
11855
+ e.setNodeMarkup(p.start, m);
11855
11856
  }
11856
- (p || p === 0) && e.lift(h, p);
11857
+ (h || h === 0) && e.lift(p, h);
11857
11858
  });
11858
11859
  }), !0;
11859
11860
  }, Ng = (n) => (e) => n(e), Ig = () => ({ state: n, dispatch: e }) => Qm(n, e), Dg = (n, e) => ({ editor: t, tr: r }) => {
@@ -12049,14 +12050,14 @@ const Ug = (n) => n.toString().startsWith("<"), qg = (n, e, t) => ({ tr: r, disp
12049
12050
  if (o.toString() === "<>")
12050
12051
  return !0;
12051
12052
  let { from: l, to: a } = typeof n == "number" ? { from: n, to: n } : { from: n.from, to: n.to }, c = !0, u = !0;
12052
- if ((Ug(o) ? o : [o]).forEach((h) => {
12053
- h.check(), c = c ? h.isText && h.marks.length === 0 : !1, u = u ? h.isBlock : !1;
12053
+ if ((Ug(o) ? o : [o]).forEach((p) => {
12054
+ p.check(), c = c ? p.isText && p.marks.length === 0 : !1, u = u ? p.isBlock : !1;
12054
12055
  }), l === a && u) {
12055
- const { parent: h } = r.doc.resolve(l);
12056
- h.isTextblock && !h.type.spec.code && !h.childCount && (l -= 1, a += 1);
12056
+ const { parent: p } = r.doc.resolve(l);
12057
+ p.isTextblock && !p.type.spec.code && !p.childCount && (l -= 1, a += 1);
12057
12058
  }
12058
12059
  let f;
12059
- c ? (Array.isArray(e) ? f = e.map((h) => h.text || "").join("") : typeof e == "object" && e && e.text ? f = e.text : f = e, r.insertText(f, l, a)) : (f = o, r.replaceWith(l, a, f)), t.updateSelection && Wg(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: l, text: f }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: f });
12060
+ c ? (Array.isArray(e) ? f = e.map((p) => p.text || "").join("") : typeof e == "object" && e && e.text ? f = e.text : f = e, r.insertText(f, l, a)) : (f = o, r.replaceWith(l, a, f)), t.updateSelection && Wg(r, r.steps.length - 1, -1), t.applyInputRules && r.setMeta("applyInputRules", { from: l, text: f }), t.applyPasteRules && r.setMeta("applyPasteRules", { from: l, text: f });
12060
12061
  }
12061
12062
  return !0;
12062
12063
  }, Jg = () => ({ state: n, dispatch: e }) => qm(n, e), Gg = () => ({ state: n, dispatch: e }) => Jm(n, e), Yg = () => ({ state: n, dispatch: e }) => Vm(n, e), Xg = () => ({ state: n, dispatch: e }) => Wm(n, e), Qg = () => ({ tr: n, state: e, dispatch: t }) => {
@@ -12121,11 +12122,11 @@ function tr(n, e, t = {}) {
12121
12122
  n.doc.nodesBetween(r, i, (d, f) => {
12122
12123
  if (d.isText)
12123
12124
  return;
12124
- const h = Math.max(r, f), p = Math.min(i, f + d.nodeSize);
12125
+ const p = Math.max(r, f), h = Math.min(i, f + d.nodeSize);
12125
12126
  l.push({
12126
12127
  node: d,
12127
- from: h,
12128
- to: p
12128
+ from: p,
12129
+ to: h
12129
12130
  });
12130
12131
  });
12131
12132
  const a = i - r, c = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) => Gr(d.node.attrs, t, { strict: !1 }));
@@ -12306,15 +12307,15 @@ function Gs(n, e, t = {}) {
12306
12307
  let o = 0;
12307
12308
  const l = [];
12308
12309
  if (i.forEach(({ $from: d, $to: f }) => {
12309
- const h = d.pos, p = f.pos;
12310
- n.doc.nodesBetween(h, p, (m, y) => {
12310
+ const p = d.pos, h = f.pos;
12311
+ n.doc.nodesBetween(p, h, (m, y) => {
12311
12312
  if (!m.isText && !m.marks.length)
12312
12313
  return;
12313
- const b = Math.max(h, y), k = Math.min(p, y + m.nodeSize), T = k - b;
12314
+ const b = Math.max(p, y), v = Math.min(h, y + m.nodeSize), T = v - b;
12314
12315
  o += T, l.push(...m.marks.map((g) => ({
12315
12316
  mark: g,
12316
12317
  from: b,
12317
- to: k
12318
+ to: v
12318
12319
  })));
12319
12320
  });
12320
12321
  }), o === 0)
@@ -12348,13 +12349,13 @@ function Ay(n) {
12348
12349
  return n instanceof R;
12349
12350
  }
12350
12351
  function Au(n, e, t) {
12351
- const i = n.state.doc.content.size, s = ht(e, 0, i), o = ht(t, 0, i), l = n.coordsAtPos(s), a = n.coordsAtPos(o, -1), c = Math.min(l.top, a.top), u = Math.max(l.bottom, a.bottom), d = Math.min(l.left, a.left), f = Math.max(l.right, a.right), h = f - d, p = u - c, b = {
12352
+ const i = n.state.doc.content.size, s = ht(e, 0, i), o = ht(t, 0, i), l = n.coordsAtPos(s), a = n.coordsAtPos(o, -1), c = Math.min(l.top, a.top), u = Math.max(l.bottom, a.bottom), d = Math.min(l.left, a.left), f = Math.max(l.right, a.right), p = f - d, h = u - c, b = {
12352
12353
  top: c,
12353
12354
  bottom: u,
12354
12355
  left: d,
12355
12356
  right: f,
12356
- width: h,
12357
- height: p,
12357
+ width: p,
12358
+ height: h,
12358
12359
  x: d,
12359
12360
  y: c
12360
12361
  };
@@ -12378,8 +12379,8 @@ function Ny(n, e, t) {
12378
12379
  if (c)
12379
12380
  return !1;
12380
12381
  if (u.isInline) {
12381
- const h = !f || f.type.allowsMarkType(t), p = !!t.isInSet(u.marks) || !u.marks.some((m) => m.type.excludes(t));
12382
- c = h && p;
12382
+ const p = !f || f.type.allowsMarkType(t), h = !!t.isInSet(u.marks) || !u.marks.some((m) => m.type.excludes(t));
12383
+ c = p && h;
12383
12384
  }
12384
12385
  return !c;
12385
12386
  }), c;
@@ -12397,14 +12398,14 @@ const Iy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
12397
12398
  } else
12398
12399
  l.forEach((c) => {
12399
12400
  const u = c.$from.pos, d = c.$to.pos;
12400
- r.doc.nodesBetween(u, d, (f, h) => {
12401
- const p = Math.max(h, u), m = Math.min(h + f.nodeSize, d);
12401
+ r.doc.nodesBetween(u, d, (f, p) => {
12402
+ const h = Math.max(p, u), m = Math.min(p + f.nodeSize, d);
12402
12403
  f.marks.find((b) => b.type === a) ? f.marks.forEach((b) => {
12403
- a === b.type && t.addMark(p, m, a.create({
12404
+ a === b.type && t.addMark(h, m, a.create({
12404
12405
  ...b.attrs,
12405
12406
  ...e
12406
12407
  }));
12407
- }) : t.addMark(p, m, a.create(e));
12408
+ }) : t.addMark(h, m, a.create(e));
12408
12409
  });
12409
12410
  });
12410
12411
  return Ny(r, t, a);
@@ -12444,18 +12445,18 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12444
12445
  const d = a.parentOffset === a.parent.content.size;
12445
12446
  s instanceof F && e.deleteSelection();
12446
12447
  const f = l.depth === 0 ? void 0 : by(l.node(-1).contentMatchAt(l.indexAfter(-1)));
12447
- let h = d && f ? [
12448
+ let p = d && f ? [
12448
12449
  {
12449
12450
  type: f,
12450
12451
  attrs: u
12451
12452
  }
12452
- ] : void 0, p = yn(e.doc, e.mapping.map(l.pos), 1, h);
12453
- if (!h && !p && yn(e.doc, e.mapping.map(l.pos), 1, f ? [{ type: f }] : void 0) && (p = !0, h = f ? [
12453
+ ] : void 0, h = yn(e.doc, e.mapping.map(l.pos), 1, p);
12454
+ if (!p && !h && yn(e.doc, e.mapping.map(l.pos), 1, f ? [{ type: f }] : void 0) && (h = !0, p = f ? [
12454
12455
  {
12455
12456
  type: f,
12456
12457
  attrs: u
12457
12458
  }
12458
- ] : void 0), p && (e.split(e.mapping.map(l.pos), 1, h), f && !d && !l.parentOffset && l.parent.type !== f)) {
12459
+ ] : void 0), h && (e.split(e.mapping.map(l.pos), 1, p), f && !d && !l.parentOffset && l.parent.type !== f)) {
12459
12460
  const m = e.mapping.map(l.before()), y = e.doc.resolve(m);
12460
12461
  l.node(-1).canReplaceWith(y.index(), y.index() + 1, f) && e.setNodeMarkup(e.mapping.map(l.before()), f);
12461
12462
  }
@@ -12479,10 +12480,10 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12479
12480
  const b = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
12480
12481
  for (let L = l.depth - b; L >= l.depth - 3; L -= 1)
12481
12482
  y = C.from(l.node(L).copy(y));
12482
- const k = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, T = Or(d, l.node().type.name, l.node().attrs), g = ((s = o.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(T)) || void 0;
12483
+ const v = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, T = Or(d, l.node().type.name, l.node().attrs), g = ((s = o.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(T)) || void 0;
12483
12484
  y = y.append(C.from(o.createAndFill(null, g) || void 0));
12484
12485
  const E = l.before(l.depth - (b - 1));
12485
- e.replace(E, l.after(-k), new O(y, 4 - b, 0));
12486
+ e.replace(E, l.after(-v), new O(y, 4 - b, 0));
12486
12487
  let w = -1;
12487
12488
  e.doc.nodesBetween(E, e.doc.content.size, (L, Y) => {
12488
12489
  if (w > -1)
@@ -12492,19 +12493,19 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12492
12493
  }
12493
12494
  return !0;
12494
12495
  }
12495
- const f = a.pos === l.end() ? u.contentMatchAt(0).defaultType : null, h = Or(d, u.type.name, u.attrs), p = Or(d, l.node().type.name, l.node().attrs);
12496
+ const f = a.pos === l.end() ? u.contentMatchAt(0).defaultType : null, p = Or(d, u.type.name, u.attrs), h = Or(d, l.node().type.name, l.node().attrs);
12496
12497
  e.delete(l.pos, a.pos);
12497
12498
  const m = f ? [
12498
- { type: o, attrs: h },
12499
- { type: f, attrs: p }
12500
- ] : [{ type: o, attrs: h }];
12499
+ { type: o, attrs: p },
12500
+ { type: f, attrs: h }
12501
+ ] : [{ type: o, attrs: p }];
12501
12502
  if (!yn(e.doc, l.pos, 2))
12502
12503
  return !1;
12503
12504
  if (r) {
12504
- const { selection: y, storedMarks: b } = t, { splittableMarks: k } = i.extensionManager, T = b || y.$to.parentOffset && y.$from.marks();
12505
+ const { selection: y, storedMarks: b } = t, { splittableMarks: v } = i.extensionManager, T = b || y.$to.parentOffset && y.$from.marks();
12505
12506
  if (e.split(l.pos, 2, m).scrollIntoView(), !T || !r)
12506
12507
  return !0;
12507
- const g = T.filter((E) => k.includes(E.type.name));
12508
+ const g = T.filter((E) => v.includes(E.type.name));
12508
12509
  e.ensureMarks(g);
12509
12510
  }
12510
12511
  return !0;
@@ -12527,20 +12528,20 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12527
12528
  const i = n.doc.nodeAt(r);
12528
12529
  return t.node.type === (i == null ? void 0 : i.type) && It(n.doc, r) && n.join(r), !0;
12529
12530
  }, zy = (n, e, t, r = {}) => ({ editor: i, tr: s, state: o, dispatch: l, chain: a, commands: c, can: u }) => {
12530
- const { extensions: d, splittableMarks: f } = i.extensionManager, h = me(n, o.schema), p = me(e, o.schema), { selection: m, storedMarks: y } = o, { $from: b, $to: k } = m, T = b.blockRange(k), g = y || m.$to.parentOffset && m.$from.marks();
12531
+ const { extensions: d, splittableMarks: f } = i.extensionManager, p = me(n, o.schema), h = me(e, o.schema), { selection: m, storedMarks: y } = o, { $from: b, $to: v } = m, T = b.blockRange(v), g = y || m.$to.parentOffset && m.$from.marks();
12531
12532
  if (!T)
12532
12533
  return !1;
12533
12534
  const E = Ao((w) => ca(w.type.name, d))(m);
12534
12535
  if (T.depth >= 1 && E && T.depth - E.depth <= 1) {
12535
- if (E.node.type === h)
12536
- return c.liftListItem(p);
12537
- if (ca(E.node.type.name, d) && h.validContent(E.node.content) && l)
12538
- return a().command(() => (s.setNodeMarkup(E.pos, h), !0)).command(() => ms(s, h)).command(() => gs(s, h)).run();
12536
+ if (E.node.type === p)
12537
+ return c.liftListItem(h);
12538
+ if (ca(E.node.type.name, d) && p.validContent(E.node.content) && l)
12539
+ return a().command(() => (s.setNodeMarkup(E.pos, p), !0)).command(() => ms(s, p)).command(() => gs(s, p)).run();
12539
12540
  }
12540
- return !t || !g || !l ? a().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => ms(s, h)).command(() => gs(s, h)).run() : a().command(() => {
12541
- const w = u().wrapInList(h, r), L = g.filter((Y) => f.includes(Y.type.name));
12541
+ return !t || !g || !l ? a().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => ms(s, p)).command(() => gs(s, p)).run() : a().command(() => {
12542
+ const w = u().wrapInList(p, r), L = g.filter((Y) => f.includes(Y.type.name));
12542
12543
  return s.ensureMarks(L), w ? !0 : c.clearNodes();
12543
- }).wrapInList(h, r).command(() => ms(s, h)).command(() => gs(s, h)).run();
12544
+ }).wrapInList(p, r).command(() => ms(s, p)).command(() => gs(s, p)).run();
12544
12545
  }, Hy = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
12545
12546
  const { extendEmptyMarkRange: s = !1 } = t, o = Rt(n, r.schema);
12546
12547
  return Gs(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
@@ -12581,9 +12582,9 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12581
12582
  if (!i)
12582
12583
  return !0;
12583
12584
  if (u && o) {
12584
- let { from: f, to: h } = l;
12585
- const p = (s = c.marks().find((y) => y.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = Mo(c, a, p);
12586
- m && (f = m.from, h = m.to), t.removeMark(f, h, a);
12585
+ let { from: f, to: p } = l;
12586
+ const h = (s = c.marks().find((y) => y.type === a)) === null || s === void 0 ? void 0 : s.attrs, m = Mo(c, a, h);
12587
+ m && (f = m.from, p = m.to), t.removeMark(f, p, a);
12587
12588
  } else
12588
12589
  d.forEach((f) => {
12589
12590
  t.removeMark(f.$from.pos, f.$to.pos, a);
@@ -12598,11 +12599,11 @@ const Fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
12598
12599
  s && s === d.type && t.setNodeMarkup(f, void 0, {
12599
12600
  ...d.attrs,
12600
12601
  ...e
12601
- }), o && d.marks.length && d.marks.forEach((h) => {
12602
- if (o === h.type) {
12603
- const p = Math.max(f, c), m = Math.min(f + d.nodeSize, u);
12604
- t.addMark(p, m, o.create({
12605
- ...h.attrs,
12602
+ }), o && d.marks.length && d.marks.forEach((p) => {
12603
+ if (o === p.type) {
12604
+ const h = Math.max(f, c), m = Math.min(f + d.nodeSize, u);
12605
+ t.addMark(h, m, o.create({
12606
+ ...p.attrs,
12606
12607
  ...e
12607
12608
  }));
12608
12609
  }
@@ -12727,8 +12728,8 @@ const Yy = ke.create({
12727
12728
  () => o.undoInputRule(),
12728
12729
  // maybe convert first text block node to default node
12729
12730
  () => o.command(({ tr: l }) => {
12730
- const { selection: a, doc: c } = l, { empty: u, $anchor: d } = a, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? l.doc.resolve(f - 1) : d, m = p.parent.type.spec.isolating, y = d.pos - d.parentOffset, b = m && p.parent.childCount === 1 ? y === d.pos : H.atStart(c).from === f;
12731
- return !u || !h.type.isTextblock || h.textContent.length || !b || b && d.parent.type.name === "paragraph" ? !1 : o.clearNodes();
12731
+ const { selection: a, doc: c } = l, { empty: u, $anchor: d } = a, { pos: f, parent: p } = d, h = d.parent.isTextblock && f > 0 ? l.doc.resolve(f - 1) : d, m = h.parent.type.spec.isolating, y = d.pos - d.parentOffset, b = m && h.parent.childCount === 1 ? y === d.pos : H.atStart(c).from === f;
12732
+ return !u || !p.type.isTextblock || p.textContent.length || !b || b && d.parent.type.name === "paragraph" ? !1 : o.clearNodes();
12732
12733
  }),
12733
12734
  () => o.deleteSelection(),
12734
12735
  () => o.joinBackward(),
@@ -12777,7 +12778,7 @@ const Yy = ke.create({
12777
12778
  new ge({
12778
12779
  key: new Ie("clearDocument"),
12779
12780
  appendTransaction: (n, e, t) => {
12780
- if (!(n.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
12781
+ if (!(n.some((h) => h.docChanged) && !e.doc.eq(t.doc)))
12781
12782
  return;
12782
12783
  const { empty: i, from: s, to: o } = e.selection, l = H.atStart(e.doc).from, a = H.atEnd(e.doc).to;
12783
12784
  if (i || !(s === l && o === a) || !(t.doc.textBetween(0, t.doc.content.size, " ", " ").length === 0))
@@ -12785,11 +12786,11 @@ const Yy = ke.create({
12785
12786
  const d = t.tr, f = Fi({
12786
12787
  state: t,
12787
12788
  transaction: d
12788
- }), { commands: h } = new $i({
12789
+ }), { commands: p } = new $i({
12789
12790
  editor: this.editor,
12790
12791
  state: f
12791
12792
  });
12792
- if (h.clearNodes(), !!d.steps.length)
12793
+ if (p.clearNodes(), !!d.steps.length)
12793
12794
  return d;
12794
12795
  }
12795
12796
  })
@@ -13322,7 +13323,7 @@ function Mn(n) {
13322
13323
  const { tr: s } = e, o = r[r.length - 1], l = r[0];
13323
13324
  if (o) {
13324
13325
  const a = l.search(/\S/), c = t.from + l.indexOf(o), u = c + o.length;
13325
- if (Io(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((m) => m === n.type && m !== h.mark.type)).filter((h) => h.to > c).length)
13326
+ if (Io(t.from, t.to, e.doc).filter((p) => p.mark.type.excluded.find((m) => m === n.type && m !== p.mark.type)).filter((p) => p.to > c).length)
13326
13327
  return null;
13327
13328
  u < t.to && s.delete(u, t.to), c > t.from && s.delete(t.from + a, c);
13328
13329
  const f = t.from + a + o.length;
@@ -13368,9 +13369,9 @@ function nr(n) {
13368
13369
  if (!c)
13369
13370
  return null;
13370
13371
  if (o.wrap(a, c), n.keepMarks && n.editor) {
13371
- const { selection: d, storedMarks: f } = e, { splittableMarks: h } = n.editor.extensionManager, p = f || d.$to.parentOffset && d.$from.marks();
13372
- if (p) {
13373
- const m = p.filter((y) => h.includes(y.type.name));
13372
+ const { selection: d, storedMarks: f } = e, { splittableMarks: p } = n.editor.extensionManager, h = f || d.$to.parentOffset && d.$from.marks();
13373
+ if (h) {
13374
+ const m = h.filter((y) => p.includes(y.type.name));
13374
13375
  o.ensureMarks(m);
13375
13376
  }
13376
13377
  }
@@ -13475,7 +13476,7 @@ function en(n) {
13475
13476
  let c = t.to;
13476
13477
  if (l) {
13477
13478
  const u = a.search(/\S/), d = t.from + a.indexOf(l), f = d + l.length;
13478
- if (Io(t.from, t.to, e.doc).filter((p) => p.mark.type.excluded.find((y) => y === n.type && y !== p.mark.type)).filter((p) => p.to > d).length)
13479
+ if (Io(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((y) => y === n.type && y !== h.mark.type)).filter((h) => h.to > d).length)
13479
13480
  return null;
13480
13481
  f < t.to && o.delete(f, t.to), d > t.from && o.delete(t.from + u, d), c = t.from + u + l.length, o.addMark(t.from + u, c, n.type.create(s || {})), o.removeStoredMark(n.type);
13481
13482
  }
@@ -14423,8 +14424,8 @@ class qe {
14423
14424
  }
14424
14425
  if (i) {
14425
14426
  u.push(new Ze(d.map));
14426
- let h = d.step.map(i.slice(s)), p;
14427
- h && o.maybeStep(h).doc && (p = o.mapping.maps[o.mapping.maps.length - 1], c.push(new Ze(p, void 0, void 0, c.length + u.length))), s--, p && i.appendMap(p, s);
14427
+ let p = d.step.map(i.slice(s)), h;
14428
+ p && o.maybeStep(p).doc && (h = o.mapping.maps[o.mapping.maps.length - 1], c.push(new Ze(h, void 0, void 0, c.length + u.length))), s--, h && i.appendMap(h, s);
14428
14429
  } else
14429
14430
  o.maybeStep(d.step);
14430
14431
  if (d.selection)
@@ -14435,8 +14436,8 @@ class qe {
14435
14436
  addTransform(e, t, r, i) {
14436
14437
  let s = [], o = this.eventCount, l = this.items, a = !i && l.length ? l.get(l.length - 1) : null;
14437
14438
  for (let u = 0; u < e.steps.length; u++) {
14438
- let d = e.steps[u].invert(e.docs[u]), f = new Ze(e.mapping.maps[u], d, t), h;
14439
- (h = a && a.merge(f)) && (f = h, u ? s.pop() : l = l.slice(0, l.length - 1)), s.push(f), t && (o++, t = void 0), i || (a = f);
14439
+ let d = e.steps[u].invert(e.docs[u]), f = new Ze(e.mapping.maps[u], d, t), p;
14440
+ (p = a && a.merge(f)) && (f = p, u ? s.pop() : l = l.slice(0, l.length - 1)), s.push(f), t && (o++, t = void 0), i || (a = f);
14440
14441
  }
14441
14442
  let c = o - r.depth;
14442
14443
  return c > F0 && (l = B0(l, c), o -= c), new qe(l.append(s), o);
@@ -14464,16 +14465,16 @@ class qe {
14464
14465
  }, i);
14465
14466
  let a = t;
14466
14467
  this.items.forEach((f) => {
14467
- let h = s.getMirror(--a);
14468
- if (h == null)
14468
+ let p = s.getMirror(--a);
14469
+ if (p == null)
14469
14470
  return;
14470
- o = Math.min(o, h);
14471
- let p = s.maps[h];
14471
+ o = Math.min(o, p);
14472
+ let h = s.maps[p];
14472
14473
  if (f.step) {
14473
- let m = e.steps[h].invert(e.docs[h]), y = f.selection && f.selection.map(s.slice(a + 1, h));
14474
- y && l++, r.push(new Ze(p, m, y));
14474
+ let m = e.steps[p].invert(e.docs[p]), y = f.selection && f.selection.map(s.slice(a + 1, p));
14475
+ y && l++, r.push(new Ze(h, m, y));
14475
14476
  } else
14476
- r.push(new Ze(p));
14477
+ r.push(new Ze(h));
14477
14478
  }, i);
14478
14479
  let c = [];
14479
14480
  for (let f = t; f < o; f++)
@@ -14503,8 +14504,8 @@ class qe {
14503
14504
  if (r--, c && t.appendMap(c, r), a) {
14504
14505
  let u = o.selection && o.selection.map(t.slice(r));
14505
14506
  u && s++;
14506
- let d = new Ze(c.invert(), a, u), f, h = i.length - 1;
14507
- (f = i.length && i[h].merge(d)) ? i[h] = f : i.push(d);
14507
+ let d = new Ze(c.invert(), a, u), f, p = i.length - 1;
14508
+ (f = i.length && i[p].merge(d)) ? i[p] = f : i.push(d);
14508
14509
  }
14509
14510
  } else o.map && r--;
14510
14511
  }, this.items.length, 0), new qe(pe.from(i.reverse()), s);
@@ -15001,9 +15002,9 @@ const Ru = Du(!1, !0), Lu = Du(!0, !0), j0 = ke.create({
15001
15002
  }), rb = ke.create({
15002
15003
  name: "starterKit",
15003
15004
  addExtensions() {
15004
- var n, e, t, r, i, s, o, l, a, c, u, d, f, h, p, m, y, b;
15005
- const k = [];
15006
- return this.options.blockquote !== !1 && k.push(l0.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && k.push(f0.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && k.push(p0.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && k.push(y0.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && k.push(k0.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && k.push(x0.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && k.push(C0.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && k.push(D0.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && k.push(Nu.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && k.push(R0.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && k.push(j0.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && k.push(K0.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && k.push(G0.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && k.push(Y0.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && k.push(Q0.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && k.push(Pu.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && k.push(tb.configure((y = this.options) === null || y === void 0 ? void 0 : y.strike)), this.options.text !== !1 && k.push(nb.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), k;
15005
+ var n, e, t, r, i, s, o, l, a, c, u, d, f, p, h, m, y, b;
15006
+ const v = [];
15007
+ return this.options.blockquote !== !1 && v.push(l0.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && v.push(f0.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && v.push(p0.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && v.push(y0.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(k0.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(x0.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && v.push(C0.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && v.push(D0.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && v.push(Nu.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && v.push(R0.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && v.push(j0.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && v.push(K0.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && v.push(G0.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(Y0.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && v.push(Q0.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && v.push(Pu.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && v.push(tb.configure((y = this.options) === null || y === void 0 ? void 0 : y.strike)), this.options.text !== !1 && v.push(nb.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), v;
15007
15008
  }
15008
15009
  });
15009
15010
  var ib = "tippy-box", Bu = "tippy-content", sb = "tippy-backdrop", Fu = "tippy-arrow", $u = "tippy-svg-arrow", Bt = {
@@ -15110,8 +15111,8 @@ function gb(n, e) {
15110
15111
  var s = i.popperRect, o = i.popperState, l = i.props, a = l.interactiveBorder, c = ub(o.placement), u = o.modifiersData.offset;
15111
15112
  if (!u)
15112
15113
  return !0;
15113
- var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, p = c === "left" ? u.right.x : 0, m = s.top - r + d > a, y = r - s.bottom - f > a, b = s.left - t + h > a, k = t - s.right - p > a;
15114
- return m || y || b || k;
15114
+ var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, p = c === "right" ? u.left.x : 0, h = c === "left" ? u.right.x : 0, m = s.top - r + d > a, y = r - s.bottom - f > a, b = s.left - t + p > a, v = t - s.right - h > a;
15115
+ return m || y || b || v;
15115
15116
  });
15116
15117
  }
15117
15118
  function xs(n, e, t) {
@@ -15369,7 +15370,7 @@ function Uu(n) {
15369
15370
  Uu.$$tippy = !0;
15370
15371
  var Nb = 1, wr = [], ws = [];
15371
15372
  function Ib(n, e) {
15372
- var t = Ca(n, Object.assign({}, Re, Ku(va(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, h = [], p = ya(Wo, t.interactiveDebounce), m, y = Nb++, b = null, k = cb(t.plugins), T = {
15373
+ var t = Ca(n, Object.assign({}, Re, Ku(va(e)))), r, i, s, o = !1, l = !1, a = !1, c = !1, u, d, f, p = [], h = ya(Wo, t.interactiveDebounce), m, y = Nb++, b = null, v = cb(t.plugins), T = {
15373
15374
  // Is the instance currently enabled?
15374
15375
  isEnabled: !0,
15375
15376
  // Is the tippy currently showing and not transitioning out?
@@ -15388,7 +15389,7 @@ function Ib(n, e) {
15388
15389
  popperInstance: b,
15389
15390
  props: t,
15390
15391
  state: T,
15391
- plugins: k,
15392
+ plugins: v,
15392
15393
  // methods
15393
15394
  clearDelayTimeouts: ld,
15394
15395
  setProps: ad,
@@ -15405,53 +15406,53 @@ function Ib(n, e) {
15405
15406
  return process.env.NODE_ENV !== "production" && Qs(!0, "render() function has not been supplied."), g;
15406
15407
  var E = t.render(g), w = E.popper, L = E.onUpdate;
15407
15408
  w.setAttribute("data-tippy-root", ""), w.id = "tippy-" + g.id, g.popper = w, n._tippy = g, w._tippy = g;
15408
- var Y = k.map(function(v) {
15409
- return v.fn(g);
15409
+ var Y = v.map(function(k) {
15410
+ return k.fn(g);
15410
15411
  }), P = n.hasAttribute("aria-expanded");
15411
15412
  return _o(), re(), q(), _("onCreate", [g]), t.showOnCreate && Xo(), w.addEventListener("mouseenter", function() {
15412
15413
  g.props.interactive && g.state.isVisible && g.clearDelayTimeouts();
15413
15414
  }), w.addEventListener("mouseleave", function() {
15414
- g.props.interactive && g.props.trigger.indexOf("mouseenter") >= 0 && N().addEventListener("mousemove", p);
15415
+ g.props.interactive && g.props.trigger.indexOf("mouseenter") >= 0 && N().addEventListener("mousemove", h);
15415
15416
  }), g;
15416
15417
  function Z() {
15417
- var v = g.props.touch;
15418
- return Array.isArray(v) ? v : [v, 0];
15418
+ var k = g.props.touch;
15419
+ return Array.isArray(k) ? k : [k, 0];
15419
15420
  }
15420
15421
  function V() {
15421
15422
  return Z()[0] === "hold";
15422
15423
  }
15423
15424
  function x() {
15424
- var v;
15425
- return !!((v = g.props.render) != null && v.$$tippy);
15425
+ var k;
15426
+ return !!((k = g.props.render) != null && k.$$tippy);
15426
15427
  }
15427
15428
  function S() {
15428
15429
  return m || n;
15429
15430
  }
15430
15431
  function N() {
15431
- var v = S().parentNode;
15432
- return v ? mb(v) : document;
15432
+ var k = S().parentNode;
15433
+ return k ? mb(k) : document;
15433
15434
  }
15434
15435
  function K() {
15435
15436
  return eo(w);
15436
15437
  }
15437
- function W(v) {
15438
- return g.state.isMounted && !g.state.isVisible || rt.isTouch || u && u.type === "focus" ? 0 : vs(g.props.delay, v ? 0 : 1, Re.delay);
15438
+ function W(k) {
15439
+ return g.state.isMounted && !g.state.isVisible || rt.isTouch || u && u.type === "focus" ? 0 : vs(g.props.delay, k ? 0 : 1, Re.delay);
15439
15440
  }
15440
- function q(v) {
15441
- v === void 0 && (v = !1), w.style.pointerEvents = g.props.interactive && !v ? "" : "none", w.style.zIndex = "" + g.props.zIndex;
15441
+ function q(k) {
15442
+ k === void 0 && (k = !1), w.style.pointerEvents = g.props.interactive && !k ? "" : "none", w.style.zIndex = "" + g.props.zIndex;
15442
15443
  }
15443
- function _(v, I, B) {
15444
+ function _(k, I, B) {
15444
15445
  if (B === void 0 && (B = !0), Y.forEach(function(J) {
15445
- J[v] && J[v].apply(J, I);
15446
+ J[k] && J[k].apply(J, I);
15446
15447
  }), B) {
15447
15448
  var X;
15448
- (X = g.props)[v].apply(X, I);
15449
+ (X = g.props)[k].apply(X, I);
15449
15450
  }
15450
15451
  }
15451
15452
  function ue() {
15452
- var v = g.props.aria;
15453
- if (v.content) {
15454
- var I = "aria-" + v.content, B = w.id, X = fn(g.props.triggerTarget || n);
15453
+ var k = g.props.aria;
15454
+ if (k.content) {
15455
+ var I = "aria-" + k.content, B = w.id, X = fn(g.props.triggerTarget || n);
15455
15456
  X.forEach(function(J) {
15456
15457
  var Ce = J.getAttribute(I);
15457
15458
  if (g.state.isVisible)
@@ -15465,20 +15466,20 @@ function Ib(n, e) {
15465
15466
  }
15466
15467
  function re() {
15467
15468
  if (!(P || !g.props.aria.expanded)) {
15468
- var v = fn(g.props.triggerTarget || n);
15469
- v.forEach(function(I) {
15469
+ var k = fn(g.props.triggerTarget || n);
15470
+ k.forEach(function(I) {
15470
15471
  g.props.interactive ? I.setAttribute("aria-expanded", g.state.isVisible && I === S() ? "true" : "false") : I.removeAttribute("aria-expanded");
15471
15472
  });
15472
15473
  }
15473
15474
  }
15474
15475
  function Ke() {
15475
- N().removeEventListener("mousemove", p), wr = wr.filter(function(v) {
15476
- return v !== p;
15476
+ N().removeEventListener("mousemove", h), wr = wr.filter(function(k) {
15477
+ return k !== h;
15477
15478
  });
15478
15479
  }
15479
- function Qe(v) {
15480
- if (!(rt.isTouch && (a || v.type === "mousedown"))) {
15481
- var I = v.composedPath && v.composedPath()[0] || v.target;
15480
+ function Qe(k) {
15481
+ if (!(rt.isTouch && (a || k.type === "mousedown"))) {
15482
+ var I = k.composedPath && k.composedPath()[0] || k.target;
15482
15483
  if (!(g.props.interactive && xa(w, I))) {
15483
15484
  if (fn(g.props.triggerTarget || n).some(function(B) {
15484
15485
  return xa(B, I);
@@ -15486,7 +15487,7 @@ function Ib(n, e) {
15486
15487
  if (rt.isTouch || g.state.isVisible && g.props.trigger.indexOf("click") >= 0)
15487
15488
  return;
15488
15489
  } else
15489
- _("onClickOutside", [g, v]);
15490
+ _("onClickOutside", [g, k]);
15490
15491
  g.props.hideOnClick === !0 && (g.clearDelayTimeouts(), g.hide(), l = !0, setTimeout(function() {
15491
15492
  l = !1;
15492
15493
  }), g.state.isMounted || Lt());
@@ -15500,37 +15501,37 @@ function Ib(n, e) {
15500
15501
  a = !1;
15501
15502
  }
15502
15503
  function In() {
15503
- var v = N();
15504
- v.addEventListener("mousedown", Qe, !0), v.addEventListener("touchend", Qe, Bt), v.addEventListener("touchstart", mt, Bt), v.addEventListener("touchmove", We, Bt);
15504
+ var k = N();
15505
+ k.addEventListener("mousedown", Qe, !0), k.addEventListener("touchend", Qe, Bt), k.addEventListener("touchstart", mt, Bt), k.addEventListener("touchmove", We, Bt);
15505
15506
  }
15506
15507
  function Lt() {
15507
- var v = N();
15508
- v.removeEventListener("mousedown", Qe, !0), v.removeEventListener("touchend", Qe, Bt), v.removeEventListener("touchstart", mt, Bt), v.removeEventListener("touchmove", We, Bt);
15508
+ var k = N();
15509
+ k.removeEventListener("mousedown", Qe, !0), k.removeEventListener("touchend", Qe, Bt), k.removeEventListener("touchstart", mt, Bt), k.removeEventListener("touchmove", We, Bt);
15509
15510
  }
15510
- function Dn(v, I) {
15511
- Vo(v, function() {
15511
+ function Dn(k, I) {
15512
+ Vo(k, function() {
15512
15513
  !g.state.isVisible && w.parentNode && w.parentNode.contains(w) && I();
15513
15514
  });
15514
15515
  }
15515
- function rd(v, I) {
15516
- Vo(v, I);
15516
+ function rd(k, I) {
15517
+ Vo(k, I);
15517
15518
  }
15518
- function Vo(v, I) {
15519
+ function Vo(k, I) {
15519
15520
  var B = K().box;
15520
15521
  function X(J) {
15521
15522
  J.target === B && (xs(B, "remove", X), I());
15522
15523
  }
15523
- if (v === 0)
15524
+ if (k === 0)
15524
15525
  return I();
15525
15526
  xs(B, "remove", d), xs(B, "add", X), d = X;
15526
15527
  }
15527
- function tn(v, I, B) {
15528
+ function tn(k, I, B) {
15528
15529
  B === void 0 && (B = !1);
15529
15530
  var X = fn(g.props.triggerTarget || n);
15530
15531
  X.forEach(function(J) {
15531
- J.addEventListener(v, I, B), h.push({
15532
+ J.addEventListener(k, I, B), p.push({
15532
15533
  node: J,
15533
- eventType: v,
15534
+ eventType: k,
15534
15535
  handler: I,
15535
15536
  options: B
15536
15537
  });
@@ -15541,9 +15542,9 @@ function Ib(n, e) {
15541
15542
  passive: !0
15542
15543
  }), tn("touchend", Uo, {
15543
15544
  passive: !0
15544
- })), ab(g.props.trigger).forEach(function(v) {
15545
- if (v !== "manual")
15546
- switch (tn(v, Ko), v) {
15545
+ })), ab(g.props.trigger).forEach(function(k) {
15546
+ if (k !== "manual")
15547
+ switch (tn(k, Ko), k) {
15547
15548
  case "mouseenter":
15548
15549
  tn("mouseleave", Uo);
15549
15550
  break;
@@ -15557,23 +15558,23 @@ function Ib(n, e) {
15557
15558
  });
15558
15559
  }
15559
15560
  function jo() {
15560
- h.forEach(function(v) {
15561
- var I = v.node, B = v.eventType, X = v.handler, J = v.options;
15561
+ p.forEach(function(k) {
15562
+ var I = k.node, B = k.eventType, X = k.handler, J = k.options;
15562
15563
  I.removeEventListener(B, X, J);
15563
- }), h = [];
15564
+ }), p = [];
15564
15565
  }
15565
- function Ko(v) {
15566
+ function Ko(k) {
15566
15567
  var I, B = !1;
15567
- if (!(!g.state.isEnabled || Jo(v) || l)) {
15568
+ if (!(!g.state.isEnabled || Jo(k) || l)) {
15568
15569
  var X = ((I = u) == null ? void 0 : I.type) === "focus";
15569
- u = v, m = v.currentTarget, re(), !g.state.isVisible && fb(v) && wr.forEach(function(J) {
15570
- return J(v);
15571
- }), v.type === "click" && (g.props.trigger.indexOf("mouseenter") < 0 || o) && g.props.hideOnClick !== !1 && g.state.isVisible ? B = !0 : Xo(v), v.type === "click" && (o = !B), B && !X && fr(v);
15570
+ u = k, m = k.currentTarget, re(), !g.state.isVisible && fb(k) && wr.forEach(function(J) {
15571
+ return J(k);
15572
+ }), k.type === "click" && (g.props.trigger.indexOf("mouseenter") < 0 || o) && g.props.hideOnClick !== !1 && g.state.isVisible ? B = !0 : Xo(k), k.type === "click" && (o = !B), B && !X && fr(k);
15572
15573
  }
15573
15574
  }
15574
- function Wo(v) {
15575
- var I = v.target, B = S().contains(I) || w.contains(I);
15576
- if (!(v.type === "mousemove" && B)) {
15575
+ function Wo(k) {
15576
+ var I = k.target, B = S().contains(I) || w.contains(I);
15577
+ if (!(k.type === "mousemove" && B)) {
15577
15578
  var X = Wi().concat(w).map(function(J) {
15578
15579
  var Ce, Be = J._tippy, nn = (Ce = Be.popperInstance) == null ? void 0 : Ce.state;
15579
15580
  return nn ? {
@@ -15582,28 +15583,28 @@ function Ib(n, e) {
15582
15583
  props: t
15583
15584
  } : null;
15584
15585
  }).filter(Boolean);
15585
- gb(X, v) && (Ke(), fr(v));
15586
+ gb(X, k) && (Ke(), fr(k));
15586
15587
  }
15587
15588
  }
15588
- function Uo(v) {
15589
- var I = Jo(v) || g.props.trigger.indexOf("click") >= 0 && o;
15589
+ function Uo(k) {
15590
+ var I = Jo(k) || g.props.trigger.indexOf("click") >= 0 && o;
15590
15591
  if (!I) {
15591
15592
  if (g.props.interactive) {
15592
- g.hideWithInteractivity(v);
15593
+ g.hideWithInteractivity(k);
15593
15594
  return;
15594
15595
  }
15595
- fr(v);
15596
+ fr(k);
15596
15597
  }
15597
15598
  }
15598
- function qo(v) {
15599
- g.props.trigger.indexOf("focusin") < 0 && v.target !== S() || g.props.interactive && v.relatedTarget && w.contains(v.relatedTarget) || fr(v);
15599
+ function qo(k) {
15600
+ g.props.trigger.indexOf("focusin") < 0 && k.target !== S() || g.props.interactive && k.relatedTarget && w.contains(k.relatedTarget) || fr(k);
15600
15601
  }
15601
- function Jo(v) {
15602
- return rt.isTouch ? V() !== v.type.indexOf("touch") >= 0 : !1;
15602
+ function Jo(k) {
15603
+ return rt.isTouch ? V() !== k.type.indexOf("touch") >= 0 : !1;
15603
15604
  }
15604
15605
  function Go() {
15605
15606
  Yo();
15606
- var v = g.props, I = v.popperOptions, B = v.placement, X = v.offset, J = v.getReferenceClientRect, Ce = v.moveTransition, Be = x() ? eo(w).arrow : null, nn = J ? {
15607
+ var k = g.props, I = k.popperOptions, B = k.placement, X = k.offset, J = k.getReferenceClientRect, Ce = k.moveTransition, Be = x() ? eo(w).arrow : null, nn = J ? {
15607
15608
  getBoundingClientRect: J,
15608
15609
  contextElement: J.contextElement || S()
15609
15610
  } : n, Qo = {
@@ -15662,8 +15663,8 @@ function Ib(n, e) {
15662
15663
  g.popperInstance && (g.popperInstance.destroy(), g.popperInstance = null);
15663
15664
  }
15664
15665
  function id() {
15665
- var v = g.props.appendTo, I, B = S();
15666
- g.props.interactive && v === zu || v === "parent" ? I = B.parentNode : I = Hu(v, [B]), I.contains(w) || I.appendChild(w), g.state.isMounted = !0, Go(), process.env.NODE_ENV !== "production" && ft(g.props.interactive && v === Re.appendTo && B.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15666
+ var k = g.props.appendTo, I, B = S();
15667
+ g.props.interactive && k === zu || k === "parent" ? I = B.parentNode : I = Hu(k, [B]), I.contains(w) || I.appendChild(w), g.state.isMounted = !0, Go(), process.env.NODE_ENV !== "production" && ft(g.props.interactive && k === Re.appendTo && B.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
15667
15668
 
15668
15669
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
15669
15670
 
@@ -15674,19 +15675,19 @@ function Ib(n, e) {
15674
15675
  function Wi() {
15675
15676
  return Qr(w.querySelectorAll("[data-tippy-root]"));
15676
15677
  }
15677
- function Xo(v) {
15678
- g.clearDelayTimeouts(), v && _("onTrigger", [g, v]), In();
15678
+ function Xo(k) {
15679
+ g.clearDelayTimeouts(), k && _("onTrigger", [g, k]), In();
15679
15680
  var I = W(!0), B = Z(), X = B[0], J = B[1];
15680
15681
  rt.isTouch && X === "hold" && J && (I = J), I ? r = setTimeout(function() {
15681
15682
  g.show();
15682
15683
  }, I) : g.show();
15683
15684
  }
15684
- function fr(v) {
15685
- if (g.clearDelayTimeouts(), _("onUntrigger", [g, v]), !g.state.isVisible) {
15685
+ function fr(k) {
15686
+ if (g.clearDelayTimeouts(), _("onUntrigger", [g, k]), !g.state.isVisible) {
15686
15687
  Lt();
15687
15688
  return;
15688
15689
  }
15689
- if (!(g.props.trigger.indexOf("mouseenter") >= 0 && g.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(v.type) >= 0 && o)) {
15690
+ if (!(g.props.trigger.indexOf("mouseenter") >= 0 && g.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(k.type) >= 0 && o)) {
15690
15691
  var I = W(!1);
15691
15692
  I ? i = setTimeout(function() {
15692
15693
  g.state.isVisible && g.hide();
@@ -15704,28 +15705,28 @@ function Ib(n, e) {
15704
15705
  function ld() {
15705
15706
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
15706
15707
  }
15707
- function ad(v) {
15708
+ function ad(k) {
15708
15709
  if (process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("setProps")), !g.state.isDestroyed) {
15709
- _("onBeforeUpdate", [g, v]), jo();
15710
- var I = g.props, B = Ca(n, Object.assign({}, I, va(v), {
15710
+ _("onBeforeUpdate", [g, k]), jo();
15711
+ var I = g.props, B = Ca(n, Object.assign({}, I, va(k), {
15711
15712
  ignoreAttributes: !0
15712
15713
  }));
15713
- g.props = B, _o(), I.interactiveDebounce !== B.interactiveDebounce && (Ke(), p = ya(Wo, B.interactiveDebounce)), I.triggerTarget && !B.triggerTarget ? fn(I.triggerTarget).forEach(function(X) {
15714
+ g.props = B, _o(), I.interactiveDebounce !== B.interactiveDebounce && (Ke(), h = ya(Wo, B.interactiveDebounce)), I.triggerTarget && !B.triggerTarget ? fn(I.triggerTarget).forEach(function(X) {
15714
15715
  X.removeAttribute("aria-expanded");
15715
15716
  }) : B.triggerTarget && n.removeAttribute("aria-expanded"), re(), q(), L && L(I, B), g.popperInstance && (Go(), Wi().forEach(function(X) {
15716
15717
  requestAnimationFrame(X._tippy.popperInstance.forceUpdate);
15717
- })), _("onAfterUpdate", [g, v]);
15718
+ })), _("onAfterUpdate", [g, k]);
15718
15719
  }
15719
15720
  }
15720
- function cd(v) {
15721
+ function cd(k) {
15721
15722
  g.setProps({
15722
- content: v
15723
+ content: k
15723
15724
  });
15724
15725
  }
15725
15726
  function ud() {
15726
15727
  process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("show"));
15727
- var v = g.state.isVisible, I = g.state.isDestroyed, B = !g.state.isEnabled, X = rt.isTouch && !g.props.touch, J = vs(g.props.duration, 0, Re.duration);
15728
- if (!(v || I || B || X) && !S().hasAttribute("disabled") && (_("onShow", [g], !1), g.props.onShow(g) !== !1)) {
15728
+ var k = g.state.isVisible, I = g.state.isDestroyed, B = !g.state.isEnabled, X = rt.isTouch && !g.props.touch, J = vs(g.props.duration, 0, Re.duration);
15729
+ if (!(k || I || B || X) && !S().hasAttribute("disabled") && (_("onShow", [g], !1), g.props.onShow(g) !== !1)) {
15729
15730
  if (g.state.isVisible = !0, x() && (w.style.visibility = "visible"), q(), In(), g.state.isMounted || (w.style.transition = "none"), x()) {
15730
15731
  var Ce = K(), Be = Ce.box, nn = Ce.content;
15731
15732
  ks([Be, nn], 0);
@@ -15746,8 +15747,8 @@ function Ib(n, e) {
15746
15747
  }
15747
15748
  function dd() {
15748
15749
  process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("hide"));
15749
- var v = !g.state.isVisible, I = g.state.isDestroyed, B = !g.state.isEnabled, X = vs(g.props.duration, 1, Re.duration);
15750
- if (!(v || I || B) && (_("onHide", [g], !1), g.props.onHide(g) !== !1)) {
15750
+ var k = !g.state.isVisible, I = g.state.isDestroyed, B = !g.state.isEnabled, X = vs(g.props.duration, 1, Re.duration);
15751
+ if (!(k || I || B) && (_("onHide", [g], !1), g.props.onHide(g) !== !1)) {
15751
15752
  if (g.state.isVisible = !1, g.state.isShown = !1, c = !1, o = !1, x() && (w.style.visibility = "hidden"), Ke(), Lt(), q(!0), x()) {
15752
15753
  var J = K(), Ce = J.box, Be = J.content;
15753
15754
  g.props.animation && (ks([Ce, Be], X), ka([Ce, Be], "hidden"));
@@ -15755,14 +15756,14 @@ function Ib(n, e) {
15755
15756
  ue(), re(), g.props.animation ? x() && Dn(X, g.unmount) : g.unmount();
15756
15757
  }
15757
15758
  }
15758
- function fd(v) {
15759
- process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("hideWithInteractivity")), N().addEventListener("mousemove", p), ba(wr, p), p(v);
15759
+ function fd(k) {
15760
+ process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("hideWithInteractivity")), N().addEventListener("mousemove", h), ba(wr, h), h(k);
15760
15761
  }
15761
15762
  function hd() {
15762
- process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Yo(), Wi().forEach(function(v) {
15763
- v._tippy.unmount();
15764
- }), w.parentNode && w.parentNode.removeChild(w), ws = ws.filter(function(v) {
15765
- return v !== g;
15763
+ process.env.NODE_ENV !== "production" && ft(g.state.isDestroyed, an("unmount")), g.state.isVisible && g.hide(), g.state.isMounted && (Yo(), Wi().forEach(function(k) {
15764
+ k._tippy.unmount();
15765
+ }), w.parentNode && w.parentNode.removeChild(w), ws = ws.filter(function(k) {
15766
+ return k !== g;
15766
15767
  }), g.state.isMounted = !1, _("onHidden", [g]));
15767
15768
  }
15768
15769
  function pd() {
@@ -15817,8 +15818,8 @@ Nn.setDefaultProps({
15817
15818
  class Db {
15818
15819
  constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: s = 250, shouldShow: o }) {
15819
15820
  this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: u }) => {
15820
- const { doc: d, selection: f } = a, { empty: h } = f, p = !d.textBetween(c, u).length && Eo(a.selection), m = this.element.contains(document.activeElement);
15821
- return !(!(l.hasFocus() || m) || h || p || !this.editor.isEditable);
15821
+ const { doc: d, selection: f } = a, { empty: p } = f, h = !d.textBetween(c, u).length && Eo(a.selection), m = this.element.contains(document.activeElement);
15822
+ return !(!(l.hasFocus() || m) || p || h || !this.editor.isEditable);
15822
15823
  }, this.mousedownHandler = () => {
15823
15824
  this.preventHide = !0;
15824
15825
  }, this.dragstartHandler = () => {
@@ -15840,16 +15841,16 @@ class Db {
15840
15841
  this.updateHandler(l, c, u, a);
15841
15842
  }, this.updateDelay));
15842
15843
  }, this.updateHandler = (l, a, c, u) => {
15843
- var d, f, h;
15844
- const { state: p, composing: m } = l, { selection: y } = p;
15844
+ var d, f, p;
15845
+ const { state: h, composing: m } = l, { selection: y } = h;
15845
15846
  if (m || !a && !c)
15846
15847
  return;
15847
15848
  this.createTooltip();
15848
- const { ranges: k } = y, T = Math.min(...k.map((w) => w.$from.pos)), g = Math.max(...k.map((w) => w.$to.pos));
15849
+ const { ranges: v } = y, T = Math.min(...v.map((w) => w.$from.pos)), g = Math.max(...v.map((w) => w.$to.pos));
15849
15850
  if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
15850
15851
  editor: this.editor,
15851
15852
  view: l,
15852
- state: p,
15853
+ state: h,
15853
15854
  oldState: u,
15854
15855
  from: T,
15855
15856
  to: g
@@ -15858,8 +15859,8 @@ class Db {
15858
15859
  return;
15859
15860
  }
15860
15861
  (f = this.tippy) === null || f === void 0 || f.setProps({
15861
- getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
15862
- if (Ay(p.selection)) {
15862
+ getReferenceClientRect: ((p = this.tippyOptions) === null || p === void 0 ? void 0 : p.getReferenceClientRect) || (() => {
15863
+ if (Ay(h.selection)) {
15863
15864
  let w = l.nodeDOM(T);
15864
15865
  const L = w.dataset.nodeViewWrapper ? w : w.querySelector("[data-node-view-wrapper]");
15865
15866
  if (L && (w = L.firstChild), w)
@@ -16506,12 +16507,12 @@ function Ub(n) {
16506
16507
  ascii: !0
16507
16508
  }, e), n = n.sort((d, f) => d[0] > f[0] ? 1 : -1);
16508
16509
  for (let d = 0; d < n.length; d++) {
16509
- const f = n[d][0], p = n[d][1] ? {
16510
+ const f = n[d][0], h = n[d][1] ? {
16510
16511
  [Hb]: !0
16511
16512
  } : {
16512
16513
  [Vb]: !0
16513
16514
  };
16514
- f.indexOf("-") >= 0 ? p[io] = !0 : cn.test(f) ? Ts.test(f) ? p[Nr] = !0 : p[no] = !0 : p[to] = !0, Aa(t, f, f, p);
16515
+ f.indexOf("-") >= 0 ? h[io] = !0 : cn.test(f) ? Ts.test(f) ? h[Nr] = !0 : h[no] = !0 : h[to] = !0, Aa(t, f, f, h);
16515
16516
  }
16516
16517
  return Aa(t, "localhost", sr, {
16517
16518
  ascii: !0
@@ -16824,24 +16825,24 @@ function Yb(n) {
16824
16825
  $(d, i, o), $(d, e.domain, o);
16825
16826
  const f = $e();
16826
16827
  $(u, e.domain, f), $(f, e.domain, f);
16827
- const h = M(f, et);
16828
- $(h, e.domain, f);
16829
- const p = $e(La);
16830
- $(h, e.tld, p), $(h, e.utld, p), M(u, sr, p);
16828
+ const p = M(f, et);
16829
+ $(p, e.domain, f);
16830
+ const h = $e(La);
16831
+ $(p, e.tld, h), $(p, e.utld, h), M(u, sr, h);
16831
16832
  const m = M(f, tt);
16832
- $(m, e.domain, f), $(p, e.domain, f), M(p, et, h), M(p, tt, m);
16833
- const y = M(p, wt);
16833
+ $(m, e.domain, f), $(h, e.domain, f), M(h, et, p), M(h, tt, m);
16834
+ const y = M(h, wt);
16834
16835
  $(y, e.numeric, La);
16835
- const b = M(l, tt), k = M(l, et);
16836
- $(b, e.domain, l), $(k, i, o), $(k, e.domain, l);
16836
+ const b = M(l, tt), v = M(l, et);
16837
+ $(b, e.domain, l), $(v, i, o), $(v, e.domain, l);
16837
16838
  const T = $e(Mr);
16838
- $(k, e.tld, T), $(k, e.utld, T), $(T, e.domain, l), $(T, i, o), M(T, et, k), M(T, tt, b), M(T, kt, u);
16839
+ $(v, e.tld, T), $(v, e.utld, T), $(T, e.domain, l), $(T, i, o), M(T, et, v), M(T, tt, b), M(T, kt, u);
16839
16840
  const g = M(T, wt), E = $e(Mr);
16840
16841
  $(g, e.numeric, E);
16841
16842
  const w = $e(Mr), L = $e();
16842
16843
  $(w, t, w), $(w, r, L), $(L, t, w), $(L, r, L), M(T, nt, w), M(E, nt, w);
16843
16844
  const Y = M(a, wt), P = M(c, wt), Z = M(P, nt), V = M(Z, nt);
16844
- $(a, e.domain, l), M(a, et, k), M(a, tt, b), $(c, e.domain, l), M(c, et, k), M(c, tt, b), $(Y, e.domain, w), M(Y, nt, w), $(V, e.domain, w), $(V, t, w), M(V, nt, w);
16845
+ $(a, e.domain, l), M(a, et, v), M(a, tt, b), $(c, e.domain, l), M(c, et, v), M(c, tt, b), $(Y, e.domain, w), M(Y, nt, w), $(V, e.domain, w), $(V, t, w), M(V, nt, w);
16845
16846
  const x = [
16846
16847
  [Kn, Wn],
16847
16848
  // {}
@@ -16885,8 +16886,8 @@ function Xb(n, e, t) {
16885
16886
  i -= u, i < r && (o.push(t[i]), i++);
16886
16887
  else {
16887
16888
  o.length > 0 && (s.push(Ms(Pa, e, o)), o = []), i -= f, u -= f;
16888
- const h = d.t, p = t.slice(i - u, i);
16889
- s.push(Ms(h, e, p));
16889
+ const p = d.t, h = t.slice(i - u, i);
16890
+ s.push(Ms(p, e, h));
16890
16891
  }
16891
16892
  }
16892
16893
  return o.length > 0 && s.push(Ms(Pa, e, o)), s;
@@ -16957,16 +16958,16 @@ function rv(n) {
16957
16958
  return;
16958
16959
  const { tr: o } = r, l = yy(t.doc, [...e]);
16959
16960
  if (My(l).forEach(({ newRange: c }) => {
16960
- const u = vy(r.doc, c, (h) => h.isTextblock);
16961
+ const u = vy(r.doc, c, (p) => p.isTextblock);
16961
16962
  let d, f;
16962
16963
  if (u.length > 1 ? (d = u[0], f = r.doc.textBetween(d.pos, d.pos + d.node.nodeSize, void 0, " ")) : u.length && r.doc.textBetween(c.from, c.to, " ", " ").endsWith(" ") && (d = u[0], f = r.doc.textBetween(d.pos, c.to, void 0, " ")), d && f) {
16963
- const h = f.split(" ").filter((b) => b !== "");
16964
- if (h.length <= 0)
16964
+ const p = f.split(" ").filter((b) => b !== "");
16965
+ if (p.length <= 0)
16965
16966
  return !1;
16966
- const p = h[h.length - 1], m = d.pos + f.lastIndexOf(p);
16967
- if (!p)
16967
+ const h = p[p.length - 1], m = d.pos + f.lastIndexOf(h);
16968
+ if (!h)
16968
16969
  return !1;
16969
- const y = ed(p).map((b) => b.toObject());
16970
+ const y = ed(h).map((b) => b.toObject());
16970
16971
  if (!nv(y))
16971
16972
  return !1;
16972
16973
  y.filter((b) => b.isLink).map((b) => ({
@@ -16974,7 +16975,7 @@ function rv(n) {
16974
16975
  from: m + b.start + 1,
16975
16976
  to: m + b.end + 1
16976
16977
  })).filter((b) => r.schema.marks.code ? !r.doc.rangeHasMark(b.from, b.to, r.schema.marks.code) : !0).filter((b) => n.validate ? n.validate(b.value) : !0).forEach((b) => {
16977
- Io(b.from, b.to, r.doc).some((k) => k.mark.type === n.type) || o.addMark(b.from, b.to, n.type.create({
16978
+ Io(b.from, b.to, r.doc).some((v) => v.mark.type === n.type) || o.addMark(b.from, b.to, n.type.create({
16978
16979
  href: b.href
16979
16980
  }));
16980
16981
  });
@@ -17431,37 +17432,37 @@ const Dk = { render: Ik }, Rk = ({
17431
17432
  return null;
17432
17433
  const r = ee(!1), i = ee(""), s = ee(""), o = Le(() => s.value !== ""), l = ee(!1), a = () => {
17433
17434
  var T, g;
17434
- const { view: p, state: m } = n, { from: y, to: b } = p.state.selection, k = n.getAttributes("link").href;
17435
- if (s.value = k || "", k) {
17435
+ const { view: h, state: m } = n, { from: y, to: b } = h.state.selection, v = n.getAttributes("link").href;
17436
+ if (s.value = v || "", v) {
17436
17437
  if (y !== b) {
17437
17438
  const Y = y + Math.floor((b - y) / 2);
17438
17439
  n.chain().focus().setTextSelection(Y).run();
17439
17440
  }
17440
- const w = ((T = p.state.selection.$from.nodeBefore) == null ? void 0 : T.textContent) ?? "", L = ((g = p.state.selection.$to.nodeAfter) == null ? void 0 : g.textContent) ?? "";
17441
+ const w = ((T = h.state.selection.$from.nodeBefore) == null ? void 0 : T.textContent) ?? "", L = ((g = h.state.selection.$to.nodeAfter) == null ? void 0 : g.textContent) ?? "";
17441
17442
  i.value = w + L;
17442
17443
  } else
17443
17444
  i.value = m.doc.textBetween(y, b, "");
17444
- l.value = !!(k || i.value), r.value = !0;
17445
+ l.value = !!(v || i.value), r.value = !0;
17445
17446
  }, c = () => {
17446
17447
  n.chain().focus().extendMarkRange("link").unsetLink().run(), r.value = !1, l.value = !1;
17447
17448
  }, u = ({
17448
- isEditing: p,
17449
+ isEditing: h,
17449
17450
  url: m,
17450
17451
  urlText: y,
17451
17452
  text: b
17452
17453
  }) => {
17453
- if (p)
17454
- n.chain().focus().setLink({ href: m }).command(({ tr: k }) => (k.insertText(b || y), !0)).run();
17454
+ if (h)
17455
+ n.chain().focus().setLink({ href: m }).command(({ tr: v }) => (v.insertText(b || y), !0)).run();
17455
17456
  else {
17456
- const { view: k } = n, { from: T } = k.state.selection;
17457
+ const { view: v } = n, { from: T } = v.state.selection;
17457
17458
  n.chain().focus().insertContent([{ type: "text", text: " " }]).run(), n.chain().focus().insertContentAt(T, [{ type: "text", text: b || y }]).run();
17458
- const { from: g } = k.state.selection;
17459
+ const { from: g } = v.state.selection;
17459
17460
  n.commands.setTextSelection({
17460
17461
  from: T,
17461
17462
  to: g
17462
17463
  }), n.chain().focus().setLink({ href: m }).run();
17463
17464
  }
17464
- }, d = (p, m) => {
17465
+ }, d = (h, m) => {
17465
17466
  var y;
17466
17467
  if (n.chain().focus().extendMarkRange("link").unsetLink().run(), m) {
17467
17468
  const b = ((y = t.sanitizeUrlText) == null ? void 0 : y.call(t, m)) ?? m;
@@ -17469,21 +17470,21 @@ const Dk = { render: Ik }, Rk = ({
17469
17470
  isEditing: l.value,
17470
17471
  urlText: m,
17471
17472
  url: b,
17472
- text: p
17473
+ text: h
17473
17474
  });
17474
17475
  }
17475
17476
  r.value = !1, l.value = !1;
17476
17477
  }, f = () => {
17477
17478
  r.value = !1, l.value = !1;
17478
- }, h = (p) => {
17479
+ }, p = (h) => {
17479
17480
  if (!(n != null && n.isFocused))
17480
17481
  return;
17481
- p[Wa()] && p.key === "k" && a();
17482
+ h[Wa()] && h.key === "k" && a();
17482
17483
  };
17483
17484
  return On(() => {
17484
- window.addEventListener("keydown", h);
17485
+ window.addEventListener("keydown", p);
17485
17486
  }), ao(() => {
17486
- window.removeEventListener("keydown", h);
17487
+ window.removeEventListener("keydown", p);
17487
17488
  }), {
17488
17489
  onLinkToolClick: a,
17489
17490
  props: {
@@ -17718,17 +17719,17 @@ const jk = { render: _k }, Kk = { class: "tools" }, Wk = /* @__PURE__ */ xe({
17718
17719
  icon: o.icon,
17719
17720
  id: o.id,
17720
17721
  selected: (a = o.active) == null ? void 0 : a.call(o),
17721
- children: ((c = o.children) == null ? void 0 : c.map(({ item: u, id: d, active: f, hotkey: h }) => ({
17722
+ children: ((c = o.children) == null ? void 0 : c.map(({ item: u, id: d, active: f, hotkey: p }) => ({
17722
17723
  ...u,
17723
17724
  id: { toolId: o.id, childId: d },
17724
17725
  selected: f == null ? void 0 : f(),
17725
- hotkeyText: e.hotkeyFormatter(h ?? [])
17726
+ hotkeyText: e.hotkeyFormatter(p ?? [])
17726
17727
  }))) ?? []
17727
17728
  };
17728
17729
  })
17729
17730
  ), s = (o, { id: l }) => {
17730
17731
  var d, f;
17731
- const a = typeof l == "object", c = a ? l.toolId : l, u = r.value.find((h) => h.id === c);
17732
+ const a = typeof l == "object", c = a ? l.toolId : l, u = r.value.find((p) => p.id === c);
17732
17733
  a ? (d = u == null ? void 0 : u.onChildClick) == null || d.call(u, l.childId) : (f = u == null ? void 0 : u.onClick) == null || f.call(u);
17733
17734
  };
17734
17735
  return (o, l) => (D(), U("div", Kk, [
@@ -17789,7 +17790,7 @@ const jk = { render: _k }, Kk = { class: "tools" }, Wk = /* @__PURE__ */ xe({
17789
17790
  emits: ["update:modelValue", "blur"],
17790
17791
  setup(n, { expose: e, emit: t }) {
17791
17792
  Nd((E) => ({
17792
- "475834a8": k.value,
17793
+ "475834a8": v.value,
17793
17794
  "75634b16": y.value
17794
17795
  }));
17795
17796
  const r = n, i = Id(), {
@@ -17799,18 +17800,18 @@ const jk = { render: _k }, Kk = { class: "tools" }, Wk = /* @__PURE__ */ xe({
17799
17800
  baseExtensions: a,
17800
17801
  customExtensions: c,
17801
17802
  autofocus: u
17802
- } = za(r), d = t, f = (E) => "all" in a.value ? !0 : !!a.value[E], h = (E) => f(E) ? void 0 : !1, p = [
17803
+ } = za(r), d = t, f = (E) => "all" in a.value ? !0 : !!a.value[E], p = (E) => f(E) ? void 0 : !1, h = [
17803
17804
  rb.configure({
17804
- bold: h("bold"),
17805
- italic: h("italic"),
17806
- bulletList: h("bulletList"),
17807
- orderedList: h("orderedList"),
17808
- heading: h("heading"),
17809
- blockquote: h("blockquote"),
17810
- code: h("code"),
17811
- codeBlock: h("codeBlock"),
17812
- horizontalRule: h("horizontalRule"),
17813
- strike: h("strike"),
17805
+ bold: p("bold"),
17806
+ italic: p("italic"),
17807
+ bulletList: p("bulletList"),
17808
+ orderedList: p("orderedList"),
17809
+ heading: p("heading"),
17810
+ blockquote: p("blockquote"),
17811
+ code: p("code"),
17812
+ codeBlock: p("codeBlock"),
17813
+ horizontalRule: p("horizontalRule"),
17814
+ strike: p("strike"),
17814
17815
  ...f("paragraphTextStyle") && { paragraph: !1 },
17815
17816
  hardBreak: !1
17816
17817
  }),
@@ -17832,7 +17833,7 @@ const jk = { render: _k }, Kk = { class: "tools" }, Wk = /* @__PURE__ */ xe({
17832
17833
  content: s.value,
17833
17834
  editable: o.value && !l.value,
17834
17835
  autofocus: u.value,
17835
- extensions: p,
17836
+ extensions: h,
17836
17837
  onUpdate: () => {
17837
17838
  var E;
17838
17839
  return d("update:modelValue", ((E = m.value) == null ? void 0 : E.getHTML()) ?? "");
@@ -17845,7 +17846,7 @@ const jk = { render: _k }, Kk = { class: "tools" }, Wk = /* @__PURE__ */ xe({
17845
17846
  (L = (w = (E = m.value) == null ? void 0 : E.commands) == null ? void 0 : w.focus) == null || L.call(w);
17846
17847
  };
17847
17848
  e({ focus: b });
17848
- const k = Le(
17849
+ const v = Le(
17849
17850
  () => r.maxHeight ? `${r.maxHeight}px` : "initial"
17850
17851
  );
17851
17852
  kn(s, (E) => {