@uva-glass/component-library 1.62.7 → 1.62.8

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 (41) hide show
  1. package/dist/{Lexical.prod-eo-UKDld.js → Lexical.prod-B6kL_nwF.js} +159 -159
  2. package/dist/Lexical.prod-B6kL_nwF.js.map +1 -0
  3. package/dist/{LexicalUtils.prod-DzksRdFe.js → LexicalUtils.prod-BBoyOK4A.js} +22 -22
  4. package/dist/{LexicalUtils.prod-DzksRdFe.js.map → LexicalUtils.prod-BBoyOK4A.js.map} +1 -1
  5. package/dist/{ListPlugin-DsPphjdE.js → ListPlugin-CpLcVKRP.js} +17 -17
  6. package/dist/{ListPlugin-DsPphjdE.js.map → ListPlugin-CpLcVKRP.js.map} +1 -1
  7. package/dist/{TablePlugin-hmwPCCLn.js → TablePlugin-B-yAWpsC.js} +39 -39
  8. package/dist/{TablePlugin-hmwPCCLn.js.map → TablePlugin-B-yAWpsC.js.map} +1 -1
  9. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  10. package/dist/components/FormInput/FormInput.js +1 -1
  11. package/dist/components/InputField/InputField.stories.js +1 -1
  12. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  13. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  14. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  15. package/dist/components/MultiSelect/index.js +1 -1
  16. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  17. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  18. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  19. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  20. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  21. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +2 -2
  22. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +32 -32
  23. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  24. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +2 -2
  25. package/dist/components/RteEditor/Plugins/ListPlugin/index.js +1 -1
  26. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  27. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  28. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +1 -1
  29. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  30. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +14 -14
  31. package/dist/components/RteEditor/Plugins/index.js +2 -2
  32. package/dist/components/RteEditor/RteEditor.js +74 -74
  33. package/dist/components/index.js +1 -1
  34. package/dist/{helpers-BD3Y_bqE.js → helpers-C7Yo7VY3.js} +34 -34
  35. package/dist/{helpers-BD3Y_bqE.js.map → helpers-C7Yo7VY3.js.map} +1 -1
  36. package/dist/{helpers-DONVwywj.js → helpers-pUTvcL4e.js} +83 -83
  37. package/dist/helpers-pUTvcL4e.js.map +1 -0
  38. package/dist/index.js +1 -1
  39. package/package.json +5 -5
  40. package/dist/Lexical.prod-eo-UKDld.js.map +0 -1
  41. package/dist/helpers-DONVwywj.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  function qi(n) {
2
2
  return {};
3
3
  }
4
- const wn = {}, Qi = {}, Ls = {}, yt = {}, gt = {}, Yn = {}, He = {}, Wr = {}, Gn = {}, mt = {}, xt = {}, we = {}, Br = {}, Rr = {}, Os = {}, Is = {}, As = {}, Ms = {}, zs = {}, Ws = {}, Bs = {}, dn = {}, Rs = {}, Ks = {}, $s = {}, Js = {}, Us = {}, Xi = {}, Yi = {}, Gi = {}, Vs = {}, Zi = {}, js = {}, Hs = {}, qs = {}, Kr = {}, $r = {}, Zn = {}, eo = {}, to = {}, no = {}, ro = {}, Qs = {}, Xs = {}, Ys = {}, ne = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Gs = ne && "documentMode" in document ? document.documentMode : null, Z = ne && /Mac|iPod|iPhone|iPad/.test(navigator.platform), xe = ne && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), vt = !(!ne || !("InputEvent" in window) || Gs) && "getTargetRanges" in new window.InputEvent("input"), Nn = ne && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), It = ne && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Zs = ne && /Android/.test(navigator.userAgent), Jr = ne && /^(?=.*Chrome).*/i.test(navigator.userAgent), ei = ne && Zs && Jr, En = ne && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Jr, rt = 1, Te = 3, Ee = 0, Ur = 1, Me = 2, ti = 0, ni = 1, ri = 2, St = 4, Tt = 8, Pn = 128, si = 112 | (3 | St | Tt) | Pn, Fn = 1, Dn = 2, Ln = 3, On = 4, In = 5, An = 6, At = Nn || It || En ? " " : "​", ae = `
4
+ const wn = {}, Qi = {}, Ls = {}, yt = {}, gt = {}, Yn = {}, He = {}, Wr = {}, Zn = {}, mt = {}, xt = {}, we = {}, Br = {}, Rr = {}, Os = {}, Is = {}, As = {}, Ms = {}, zs = {}, Ws = {}, Bs = {}, dn = {}, Rs = {}, Ks = {}, Js = {}, $s = {}, Us = {}, Xi = {}, Yi = {}, Zi = {}, Vs = {}, Gi = {}, js = {}, Hs = {}, qs = {}, Kr = {}, Jr = {}, Gn = {}, eo = {}, to = {}, no = {}, ro = {}, Qs = {}, Xs = {}, Ys = {}, ne = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Zs = ne && "documentMode" in document ? document.documentMode : null, G = ne && /Mac|iPod|iPhone|iPad/.test(navigator.platform), xe = ne && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), vt = !(!ne || !("InputEvent" in window) || Zs) && "getTargetRanges" in new window.InputEvent("input"), Nn = ne && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), It = ne && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Gs = ne && /Android/.test(navigator.userAgent), $r = ne && /^(?=.*Chrome).*/i.test(navigator.userAgent), ei = ne && Gs && $r, En = ne && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !$r, rt = 1, Te = 3, Ee = 0, Ur = 1, Me = 2, ti = 0, ni = 1, ri = 2, St = 4, Tt = 8, Pn = 128, si = 112 | (3 | St | Tt) | Pn, Fn = 1, Dn = 2, Ln = 3, On = 4, In = 5, An = 6, At = Nn || It || En ? " " : "​", ae = `
5
5
 
6
6
  `, ii = xe ? " " : At, Vr = "֑-߿יִ-﷽ﹰ-ﻼ", jr = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", oi = new RegExp("^[^" + jr + "]*[" + Vr + "]"), li = new RegExp("^[^" + Vr + "]*[" + jr + "]"), ce = { bold: 1, code: 16, highlight: Pn, italic: 2, strikethrough: St, subscript: 32, superscript: 64, underline: Tt }, ci = { directionless: 1, unmergeable: 2 }, er = { center: Dn, end: An, justify: On, left: Fn, right: Ln, start: In }, ai = { [Dn]: "center", [An]: "end", [On]: "justify", [Fn]: "left", [Ln]: "right", [In]: "start" }, ui = { normal: 0, segmented: 2, token: 1 }, fi = { [ti]: "normal", [ri]: "segmented", [ni]: "token" };
7
7
  function di(n) {
@@ -61,7 +61,7 @@ function Hr(n, e, t) {
61
61
  a = !0;
62
62
  const m = d.addedNodes;
63
63
  for (let k = 0; k < m.length; k++) {
64
- const T = m[k], x = Zr(T), P = T.parentNode;
64
+ const T = m[k], x = Gr(T), P = T.parentNode;
65
65
  if (P != null && T !== c && x === null && (T.nodeName !== "BR" || !tn(T, P, n))) {
66
66
  if (xe) {
67
67
  const C = T.innerText || T.nodeValue;
@@ -222,7 +222,7 @@ function bt(n, e, t) {
222
222
  function so(n) {
223
223
  return N(n) || Ae(n) || A(n);
224
224
  }
225
- function Gr(n, e) {
225
+ function Zr(n, e) {
226
226
  if (e != null) return void (n.__key = e);
227
227
  q(), bs();
228
228
  const t = M(), r = fe(), s = "" + mi++;
@@ -274,7 +274,7 @@ function wt(n) {
274
274
  const l = e.__key;
275
275
  s._dirtyType = Ur, v(n) ? o.set(l, !0) : s._dirtyLeaves.add(l);
276
276
  }
277
- function J(n) {
277
+ function $(n) {
278
278
  q();
279
279
  const e = M(), t = e._compositionKey;
280
280
  if (n !== t) {
@@ -295,14 +295,14 @@ function V(n, e) {
295
295
  const t = (e || fe())._nodeMap.get(n);
296
296
  return t === void 0 ? null : t;
297
297
  }
298
- function Zr(n, e) {
298
+ function Gr(n, e) {
299
299
  const t = n[`__lexicalKey_${M()._key}`];
300
300
  return t !== void 0 ? V(t, e) : null;
301
301
  }
302
302
  function Wt(n, e) {
303
303
  let t = n;
304
304
  for (; t != null; ) {
305
- const r = Zr(t, e);
305
+ const r = Gr(t, e);
306
306
  if (r !== null) return r;
307
307
  t = Rt(t);
308
308
  }
@@ -313,9 +313,9 @@ function es(n) {
313
313
  return n._pendingDecorators = t, t;
314
314
  }
315
315
  function ir(n) {
316
- return n.read(() => G().getTextContent());
316
+ return n.read(() => Z().getTextContent());
317
317
  }
318
- function G() {
318
+ function Z() {
319
319
  return ts(fe());
320
320
  }
321
321
  function ts(n) {
@@ -382,7 +382,7 @@ function Rn(n, e, t, r, s) {
382
382
  const c = i.getTextContent();
383
383
  if (s || l !== c) {
384
384
  if (l === "") {
385
- if (J(null), Nn || It || En) i.remove();
385
+ if ($(null), Nn || It || En) i.remove();
386
386
  else {
387
387
  const p = M();
388
388
  setTimeout(() => {
@@ -398,7 +398,7 @@ function Rn(n, e, t, r, s) {
398
398
  const g = I();
399
399
  if (!F(g) || t === null || r === null) return void i.setTextContent(l);
400
400
  if (g.setTextNodeRange(i, t, i, r), i.isSegmented()) {
401
- const p = $(i.getTextContent());
401
+ const p = J(i.getTextContent());
402
402
  i.replace(p), i = p;
403
403
  }
404
404
  i.setTextContent(l);
@@ -421,7 +421,7 @@ function cr(n) {
421
421
  return n === "ArrowRight";
422
422
  }
423
423
  function Ve(n, e) {
424
- return Z ? n : e;
424
+ return G ? n : e;
425
425
  }
426
426
  function ar(n) {
427
427
  return n === "Enter";
@@ -429,14 +429,14 @@ function ar(n) {
429
429
  function Ke(n) {
430
430
  return n === "Backspace";
431
431
  }
432
- function $e(n) {
432
+ function Je(n) {
433
433
  return n === "Delete";
434
434
  }
435
435
  function ur(n, e, t) {
436
436
  return n.toLowerCase() === "a" && Ve(e, t);
437
437
  }
438
438
  function io() {
439
- const n = G();
439
+ const n = Z();
440
440
  ue(yi(n.select(0, n.getChildrenSize())));
441
441
  }
442
442
  function qe(n, e) {
@@ -521,9 +521,9 @@ function Pe(n) {
521
521
  }
522
522
  function Ci(n) {
523
523
  const e = n.constructor.clone(n);
524
- return Gr(e, null), e;
524
+ return Zr(e, null), e;
525
525
  }
526
- function $t(n) {
526
+ function Jt(n) {
527
527
  const e = M(), t = n.constructor.getType(), r = e._nodes.get(t);
528
528
  r === void 0 && b(200, n.constructor.name, t);
529
529
  const { replace: s, replaceWithKlass: i } = r;
@@ -539,7 +539,7 @@ function nn(n, e) {
539
539
  function rn(n) {
540
540
  return (A(n) || v(n) && !n.canBeEmpty()) && !n.isInline();
541
541
  }
542
- function $n(n, e, t) {
542
+ function Jn(n, e, t) {
543
543
  t.style.removeProperty("caret-color"), e._blockCursorElement = null;
544
544
  const r = n.parentElement;
545
545
  r !== null && r.removeChild(n);
@@ -575,7 +575,7 @@ function ki(n, e, t) {
575
575
  }(n._config)), e.style.caretColor = "transparent", void (c === null ? a.appendChild(r) : a.insertBefore(r, c));
576
576
  }
577
577
  }
578
- r !== null && $n(r, n, e);
578
+ r !== null && Jn(r, n, e);
579
579
  }
580
580
  function se(n) {
581
581
  return ne ? (n || window).getSelection() : null;
@@ -594,9 +594,9 @@ function oo(n, e) {
594
594
  return [s, i];
595
595
  }
596
596
  function lo(n) {
597
- return Jt(n) && n.tagName === "A";
597
+ return $t(n) && n.tagName === "A";
598
598
  }
599
- function Jt(n) {
599
+ function $t(n) {
600
600
  return n.nodeType === 1;
601
601
  }
602
602
  function co(n) {
@@ -616,7 +616,7 @@ function _e(n) {
616
616
  const e = n.getFirstChild(), t = e === null || Ae(e) || N(e) || e.isInline();
617
617
  return !n.isInline() && n.canBeEmpty() !== !1 && t;
618
618
  }
619
- function Je(n, e) {
619
+ function $e(n, e) {
620
620
  let t = n;
621
621
  for (; t !== null && t.getParent() !== null && !e(t); ) t = t.getParentOrThrow();
622
622
  return e(t) ? t : null;
@@ -654,7 +654,7 @@ function os(n, e, t, r, s, i) {
654
654
  o.__parent === e && (v(o) && os(o, l, t, r, s, i), t.has(l) || i.delete(l), s.push(l)), o = o.getNextSibling();
655
655
  }
656
656
  }
657
- let Se, H, Ze, Ut, gn, _n, Fe, te, pn, et, B = "", j = "", re = null, ee = "", le = "", ls = !1, tt = !1, _t = null;
657
+ let Se, H, Ge, Ut, gn, _n, Fe, te, pn, et, B = "", j = "", re = null, ee = "", le = "", ls = !1, tt = !1, _t = null;
658
658
  function Et(n, e) {
659
659
  const t = Fe.get(n);
660
660
  if (e !== null) {
@@ -665,7 +665,7 @@ function Et(n, e) {
665
665
  const r = Ft(t, Fe);
666
666
  yn(r, 0, r.length - 1, null);
667
667
  }
668
- t !== void 0 && Kn(et, Ze, Ut, t, "destroyed");
668
+ t !== void 0 && Kn(et, Ge, Ut, t, "destroyed");
669
669
  }
670
670
  function yn(n, e, t, r) {
671
671
  let s = e;
@@ -722,7 +722,7 @@ function Pt(n, e, t) {
722
722
  const i = e.__lexicalLineBreak;
723
723
  i != null ? e.insertBefore(s, i) : e.appendChild(s);
724
724
  }
725
- return Kn(et, Ze, Ut, r, "created"), s;
725
+ return Kn(et, Ge, Ut, r, "created"), s;
726
726
  }
727
727
  function mn(n, e, t, r, s, i) {
728
728
  const o = B;
@@ -878,7 +878,7 @@ function je(n, e) {
878
878
  }
879
879
  return i;
880
880
  }
881
- if (t !== r && s && Kn(et, Ze, Ut, r, "updated"), r.updateDOM(t, i, Se)) {
881
+ if (t !== r && s && Kn(et, Ge, Ut, r, "updated"), r.updateDOM(t, i, Se)) {
882
882
  const o = Pt(n, null, null);
883
883
  return e === null && b(62), e.replaceChild(o, i), Et(n, null), o;
884
884
  }
@@ -915,9 +915,9 @@ function sn(n) {
915
915
  return e !== null && e === H._blockCursorElement && (e = e.nextSibling), e;
916
916
  }
917
917
  function Li(n, e, t, r, s, i) {
918
- B = "", le = "", j = "", ls = r === Me, _t = null, H = t, Se = t._config, Ze = t._nodes, Ut = H._listeners.mutation, gn = s, _n = i, Fe = n._nodeMap, te = e._nodeMap, tt = e._readOnly, pn = new Map(t._keyToDOMMap);
918
+ B = "", le = "", j = "", ls = r === Me, _t = null, H = t, Se = t._config, Ge = t._nodes, Ut = H._listeners.mutation, gn = s, _n = i, Fe = n._nodeMap, te = e._nodeMap, tt = e._readOnly, pn = new Map(t._keyToDOMMap);
919
919
  const o = /* @__PURE__ */ new Map();
920
- return et = o, je("root", null), H = void 0, Ze = void 0, gn = void 0, _n = void 0, Fe = void 0, te = void 0, Se = void 0, pn = void 0, et = void 0, o;
920
+ return et = o, je("root", null), H = void 0, Ge = void 0, gn = void 0, _n = void 0, Fe = void 0, te = void 0, Se = void 0, pn = void 0, et = void 0, o;
921
921
  }
922
922
  function xn(n) {
923
923
  const e = pn.get(n);
@@ -947,23 +947,23 @@ const oe = Object.freeze({}), vn = 30, Sn = [["keydown", function(n, e) {
947
947
  }(t, r) ? (Ye = !0, w(e, dn, n)) : /* @__PURE__ */ function(l) {
948
948
  return l === " ";
949
949
  }(t) ? w(e, Rs, n) : function(l, c) {
950
- return Z && c && l.toLowerCase() === "o";
950
+ return G && c && l.toLowerCase() === "o";
951
951
  }(t, s) ? (n.preventDefault(), Ye = !0, w(e, gt, !0)) : function(l, c) {
952
952
  return ar(l) && !c;
953
953
  }(t, r) ? (Ye = !1, w(e, dn, n)) : function(l, c, a, u) {
954
- return Z ? !c && !a && (Ke(l) || l.toLowerCase() === "h" && u) : !(u || c || a) && Ke(l);
954
+ return G ? !c && !a && (Ke(l) || l.toLowerCase() === "h" && u) : !(u || c || a) && Ke(l);
955
955
  }(t, o, i, s) ? Ke(t) ? w(e, Ks, n) : (n.preventDefault(), w(e, yt, !0)) : /* @__PURE__ */ function(l) {
956
956
  return l === "Escape";
957
- }(t) ? w(e, $s, n) : function(l, c, a, u, h) {
958
- return Z ? !(a || u || h) && ($e(l) || l.toLowerCase() === "d" && c) : !(c || u || h) && $e(l);
959
- }(t, s, r, o, i) ? $e(t) ? w(e, Js, n) : (n.preventDefault(), w(e, yt, !1)) : function(l, c, a) {
960
- return Ke(l) && (Z ? c : a);
957
+ }(t) ? w(e, Js, n) : function(l, c, a, u, h) {
958
+ return G ? !(a || u || h) && (Je(l) || l.toLowerCase() === "d" && c) : !(c || u || h) && Je(l);
959
+ }(t, s, r, o, i) ? Je(t) ? w(e, $s, n) : (n.preventDefault(), w(e, yt, !1)) : function(l, c, a) {
960
+ return Ke(l) && (G ? c : a);
961
961
  }(t, o, s) ? (n.preventDefault(), w(e, mt, !0)) : function(l, c, a) {
962
- return $e(l) && (Z ? c : a);
962
+ return Je(l) && (G ? c : a);
963
963
  }(t, o, s) ? (n.preventDefault(), w(e, mt, !1)) : function(l, c) {
964
- return Z && c && Ke(l);
964
+ return G && c && Ke(l);
965
965
  }(t, i) ? (n.preventDefault(), w(e, xt, !0)) : function(l, c) {
966
- return Z && c && $e(l);
966
+ return G && c && Je(l);
967
967
  }(t, i) ? (n.preventDefault(), w(e, xt, !1)) : function(l, c, a, u) {
968
968
  return l.toLowerCase() === "b" && !c && Ve(a, u);
969
969
  }(t, o, i, s) ? (n.preventDefault(), w(e, we, "bold")) : function(l, c, a, u) {
@@ -975,12 +975,12 @@ const oe = Object.freeze({}), vn = 30, Sn = [["keydown", function(n, e) {
975
975
  }(t, o, s, i) ? w(e, Us, n) : function(l, c, a, u) {
976
976
  return l.toLowerCase() === "z" && !c && Ve(a, u);
977
977
  }(t, r, i, s) ? (n.preventDefault(), w(e, Br, void 0)) : function(l, c, a, u) {
978
- return Z ? l.toLowerCase() === "z" && a && c : l.toLowerCase() === "y" && u || l.toLowerCase() === "z" && u && c;
978
+ return G ? l.toLowerCase() === "z" && a && c : l.toLowerCase() === "y" && u || l.toLowerCase() === "z" && u && c;
979
979
  }(t, r, i, s) ? (n.preventDefault(), w(e, Rr, void 0)) : Ht(e._editorState._selection) ? function(l, c, a, u) {
980
- return !c && l.toLowerCase() === "c" && (Z ? a : u);
980
+ return !c && l.toLowerCase() === "c" && (G ? a : u);
981
981
  }(t, r, i, s) ? (n.preventDefault(), w(e, Kr, n)) : function(l, c, a, u) {
982
- return !c && l.toLowerCase() === "x" && (Z ? a : u);
983
- }(t, r, i, s) ? (n.preventDefault(), w(e, $r, n)) : ur(t, i, s) && (n.preventDefault(), w(e, Zn, n)) : !xe && ur(t, i, s) && (n.preventDefault(), w(e, Zn, n)), /* @__PURE__ */ function(l, c, a, u) {
982
+ return !c && l.toLowerCase() === "x" && (G ? a : u);
983
+ }(t, r, i, s) ? (n.preventDefault(), w(e, Jr, n)) : ur(t, i, s) && (n.preventDefault(), w(e, Gn, n)) : !xe && ur(t, i, s) && (n.preventDefault(), w(e, Gn, n)), /* @__PURE__ */ function(l, c, a, u) {
984
984
  return l || c || a || u;
985
985
  }(s, r, o, i) && w(e, Ys, n));
986
986
  }], ["pointerdown", function(n, e) {
@@ -993,7 +993,7 @@ const oe = Object.freeze({}), vn = 30, Sn = [["keydown", function(n, e) {
993
993
  const t = I();
994
994
  if (F(t) && !e.isComposing()) {
995
995
  const r = t.anchor, s = t.anchor.getNode();
996
- J(r.key), (n.timeStamp < Xe + vn || r.type === "element" || !t.isCollapsed() || s.getFormat() !== t.format || N(s) && s.getStyle() !== t.style) && w(e, He, ii);
996
+ $(r.key), (n.timeStamp < Xe + vn || r.type === "element" || !t.isCollapsed() || s.getFormat() !== t.format || N(s) && s.getStyle() !== t.style) && w(e, He, ii);
997
997
  }
998
998
  });
999
999
  }], ["compositionend", function(n, e) {
@@ -1010,7 +1010,7 @@ const oe = Object.freeze({}), vn = 30, Sn = [["keydown", function(n, e) {
1010
1010
  const l = t.isBackward(), c = l ? t.anchor.offset : t.focus.offset, a = l ? t.focus.offset : t.anchor.offset;
1011
1011
  vt && !t.isCollapsed() && N(i) && o.anchorNode !== null && i.getTextContent().slice(0, c) + r + i.getTextContent().slice(c + a) === ss(o.anchorNode) || w(e, He, r);
1012
1012
  const u = r.length;
1013
- xe && u > 1 && n.inputType === "insertCompositionText" && !e.isComposing() && (t.anchor.offset -= u), Nn || It || En || !e.isComposing() || (Xe = 0, J(null));
1013
+ xe && u > 1 && n.inputType === "insertCompositionText" && !e.isComposing() && (t.anchor.offset -= u), Nn || It || En || !e.isComposing() || (Xe = 0, $(null));
1014
1014
  } else
1015
1015
  Bn(!1, e, r !== null ? r : void 0), Ue && (on(e, r || void 0), Ue = !1);
1016
1016
  q(), qr(M());
@@ -1021,7 +1021,7 @@ const oe = Object.freeze({}), vn = 30, Sn = [["keydown", function(n, e) {
1021
1021
  if (r) {
1022
1022
  if (F(t)) {
1023
1023
  const i = t.anchor, o = i.getNode();
1024
- i.type === "element" && i.offset === 0 && t.isCollapsed() && !Y(o) && G().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && s !== null && t.is(s) ? (r.removeAllRanges(), t.dirty = !0) : n.detail === 3 && !t.isCollapsed() && o !== t.focus.getNode() && (v(o) ? o.select(0) : o.getParentOrThrow().select(0));
1024
+ i.type === "element" && i.offset === 0 && t.isCollapsed() && !Y(o) && Z().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && s !== null && t.is(s) ? (r.removeAllRanges(), t.dirty = !0) : n.detail === 3 && !t.isCollapsed() && o !== t.focus.getNode() && (v(o) ? o.select(0) : o.getParentOrThrow().select(0));
1025
1025
  } else if (n.pointerType === "touch") {
1026
1026
  const i = r.anchorNode;
1027
1027
  if (i !== null) {
@@ -1046,16 +1046,16 @@ vt && Sn.push(["beforeinput", (n, e) => function(t, r) {
1046
1046
  if (F(o)) {
1047
1047
  const d = o.anchor.key === o.focus.key;
1048
1048
  if (l = t.timeStamp, hs === "MediaLast" && l < Xe + vn && r.isComposing() && d) {
1049
- if (J(null), Xe = 0, setTimeout(() => {
1049
+ if ($(null), Xe = 0, setTimeout(() => {
1050
1050
  X(r, () => {
1051
- J(null);
1051
+ $(null);
1052
1052
  });
1053
1053
  }, vn), F(o)) {
1054
1054
  const g = o.anchor.getNode();
1055
1055
  g.markDirty(), o.format = g.getFormat(), N(g) || b(142), o.style = g.getStyle();
1056
1056
  }
1057
1057
  } else {
1058
- J(null), t.preventDefault();
1058
+ $(null), t.preventDefault();
1059
1059
  const g = o.anchor.getNode().getTextContent(), p = o.anchor.offset === 0 && o.focus.offset === g.length;
1060
1060
  ei && d && !p || w(r, yt, !0);
1061
1061
  }
@@ -1074,13 +1074,13 @@ vt && Sn.push(["beforeinput", (n, e) => function(t, r) {
1074
1074
  w(r, He, t);
1075
1075
  break;
1076
1076
  case "insertFromComposition":
1077
- J(null), w(r, He, t);
1077
+ $(null), w(r, He, t);
1078
1078
  break;
1079
1079
  case "insertLineBreak":
1080
- J(null), w(r, gt, !1);
1080
+ $(null), w(r, gt, !1);
1081
1081
  break;
1082
1082
  case "insertParagraph":
1083
- J(null), Ye && !It ? (Ye = !1, w(r, gt, !1)) : w(r, Yn, void 0);
1083
+ $(null), Ye && !It ? (Ye = !1, w(r, gt, !1)) : w(r, Yn, void 0);
1084
1084
  break;
1085
1085
  case "insertFromPaste":
1086
1086
  case "insertFromPasteAsQuotation":
@@ -1089,11 +1089,11 @@ vt && Sn.push(["beforeinput", (n, e) => function(t, r) {
1089
1089
  case "deleteByComposition":
1090
1090
  (function(d, g) {
1091
1091
  return d !== g || v(d) || v(g) || !d.isToken() || !g.isToken();
1092
- })(h, f) && w(r, Gn, t);
1092
+ })(h, f) && w(r, Zn, t);
1093
1093
  break;
1094
1094
  case "deleteByDrag":
1095
1095
  case "deleteByCut":
1096
- w(r, Gn, t);
1096
+ w(r, Zn, t);
1097
1097
  break;
1098
1098
  case "deleteContent":
1099
1099
  w(r, yt, !1);
@@ -1163,7 +1163,7 @@ function yr(n, e, t) {
1163
1163
  const c = l.anchor, a = c.getNode();
1164
1164
  if (l.isCollapsed()) {
1165
1165
  n.type === "Range" && n.anchorNode === n.focusNode && (l.dirty = !0);
1166
- const u = Kt(e).event, h = u ? u.timeStamp : performance.now(), [f, d, g, p, _] = _s, m = G(), y = e.isComposing() === !1 && m.getTextContent() === "";
1166
+ const u = Kt(e).event, h = u ? u.timeStamp : performance.now(), [f, d, g, p, _] = _s, m = Z(), y = e.isComposing() === !1 && m.getTextContent() === "";
1167
1167
  if (h < _ + 200 && c.offset === g && c.key === p) l.format = f, l.style = d;
1168
1168
  else if (c.type === "text") N(a) || b(141), l.format = a.getFormat(), l.style = a.getStyle();
1169
1169
  else if (c.type === "element" && !y) {
@@ -1190,7 +1190,7 @@ function ys(n) {
1190
1190
  }
1191
1191
  function on(n, e) {
1192
1192
  const t = n._compositionKey;
1193
- if (J(null), t !== null && e != null) {
1193
+ if ($(null), t !== null && e != null) {
1194
1194
  if (e === "") {
1195
1195
  const r = V(t), s = kt(n.getElementByKey(t));
1196
1196
  return void (s !== null && s.nodeValue !== null && N(r) && Rn(r, s.nodeValue, null, null, !0));
@@ -1279,7 +1279,7 @@ class Vt {
1279
1279
  this.__parent = e.__parent, this.__next = e.__next, this.__prev = e.__prev;
1280
1280
  }
1281
1281
  constructor(e) {
1282
- this.__type = this.constructor.getType(), this.__parent = null, this.__prev = null, this.__next = null, Gr(this, e);
1282
+ this.__type = this.constructor.getType(), this.__parent = null, this.__prev = null, this.__next = null, Zr(this, e);
1283
1283
  }
1284
1284
  getType() {
1285
1285
  return this.__type;
@@ -1511,7 +1511,7 @@ class Vt {
1511
1511
  const p = r.anchor, _ = r.focus;
1512
1512
  p.key === i && Cr(p, l), _.key === i && Cr(_, l);
1513
1513
  }
1514
- return ye() === i && J(o), l;
1514
+ return ye() === i && $(o), l;
1515
1515
  }
1516
1516
  insertAfter(e, t = !0) {
1517
1517
  q(), nn(this, e);
@@ -1633,7 +1633,7 @@ function Ii(n) {
1633
1633
  return { node: nt() };
1634
1634
  }
1635
1635
  function nt() {
1636
- return $t(new st());
1636
+ return Jt(new st());
1637
1637
  }
1638
1638
  function Ae(n) {
1639
1639
  return n instanceof st;
@@ -1775,12 +1775,12 @@ class ze extends Vt {
1775
1775
  return { "#text": () => ({ conversion: Wi, priority: 0 }), b: () => ({ conversion: Mi, priority: 0 }), code: () => ({ conversion: ge, priority: 0 }), em: () => ({ conversion: ge, priority: 0 }), i: () => ({ conversion: ge, priority: 0 }), s: () => ({ conversion: ge, priority: 0 }), span: () => ({ conversion: Ai, priority: 0 }), strong: () => ({ conversion: ge, priority: 0 }), sub: () => ({ conversion: ge, priority: 0 }), sup: () => ({ conversion: ge, priority: 0 }), u: () => ({ conversion: ge, priority: 0 }) };
1776
1776
  }
1777
1777
  static importJSON(e) {
1778
- const t = $(e.text);
1778
+ const t = J(e.text);
1779
1779
  return t.setFormat(e.format), t.setDetail(e.detail), t.setMode(e.mode), t.setStyle(e.style), t;
1780
1780
  }
1781
1781
  exportDOM(e) {
1782
1782
  let { element: t } = super.exportDOM(e);
1783
- return t !== null && Jt(t) || b(132), t.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (t = ht(t, "b")), this.hasFormat("italic") && (t = ht(t, "i")), this.hasFormat("strikethrough") && (t = ht(t, "s")), this.hasFormat("underline") && (t = ht(t, "u")), { element: t };
1783
+ return t !== null && $t(t) || b(132), t.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (t = ht(t, "b")), this.hasFormat("italic") && (t = ht(t, "i")), this.hasFormat("strikethrough") && (t = ht(t, "s")), this.hasFormat("underline") && (t = ht(t, "u")), { element: t };
1784
1784
  }
1785
1785
  exportJSON() {
1786
1786
  return { detail: this.getDetail(), format: this.getFormat(), mode: this.getMode(), style: this.getStyle(), text: this.getTextContent(), type: "text", version: 1 };
@@ -1833,7 +1833,7 @@ class ze extends Vt {
1833
1833
  if (!F(i)) return ks(l, r, l, s, "text", "text");
1834
1834
  {
1835
1835
  const c = ye();
1836
- c !== i.anchor.key && c !== i.focus.key || J(l), i.setTextNodeRange(this, r, this, s);
1836
+ c !== i.anchor.key && c !== i.focus.key || $(l), i.setTextNodeRange(this, r, this, s);
1837
1837
  }
1838
1838
  return i;
1839
1839
  }
@@ -1875,18 +1875,18 @@ class ze extends Vt {
1875
1875
  let d;
1876
1876
  const g = t.getFormat(), p = t.getStyle(), _ = t.__detail;
1877
1877
  let m = !1;
1878
- t.isSegmented() ? (d = $(h), d.__format = g, d.__style = p, d.__detail = _, m = !0) : (d = t.getWritable(), d.__text = h);
1878
+ t.isSegmented() ? (d = J(h), d.__format = g, d.__style = p, d.__detail = _, m = !0) : (d = t.getWritable(), d.__text = h);
1879
1879
  const y = I(), S = [d];
1880
1880
  let k = h.length;
1881
1881
  for (let T = 1; T < u; T++) {
1882
- const x = l[T], P = x.length, C = $(x).getWritable();
1882
+ const x = l[T], P = x.length, C = J(x).getWritable();
1883
1883
  C.__format = g, C.__style = p, C.__detail = _;
1884
1884
  const E = C.__key, D = k + P;
1885
1885
  if (F(y)) {
1886
1886
  const O = y.anchor, z = y.focus;
1887
1887
  O.key === s && O.type === "text" && O.offset > k && O.offset <= D && (O.key = E, O.offset -= k, y.dirty = !0), z.key === s && z.type === "text" && z.offset > k && z.offset <= D && (z.key = E, z.offset -= k, y.dirty = !0);
1888
1888
  }
1889
- i === s && J(E), k = D, S.push(C);
1889
+ i === s && $(E), k = D, S.push(C);
1890
1890
  }
1891
1891
  if (f !== null) {
1892
1892
  (function(P) {
@@ -1902,7 +1902,7 @@ class ze extends Vt {
1902
1902
  const t = e === this.getPreviousSibling();
1903
1903
  t || e === this.getNextSibling() || b(50);
1904
1904
  const r = this.__key, s = e.__key, i = this.__text, o = i.length;
1905
- ye() === s && J(r);
1905
+ ye() === s && $(r);
1906
1906
  const l = I();
1907
1907
  if (F(l)) {
1908
1908
  const h = l.anchor, f = l.focus;
@@ -1918,11 +1918,11 @@ class ze extends Vt {
1918
1918
  }
1919
1919
  }
1920
1920
  function Ai(n) {
1921
- return { forChild: Jn(n.style), node: null };
1921
+ return { forChild: $n(n.style), node: null };
1922
1922
  }
1923
1923
  function Mi(n) {
1924
1924
  const e = n, t = e.style.fontWeight === "normal";
1925
- return { forChild: Jn(e.style, t ? void 0 : "bold"), node: null };
1925
+ return { forChild: $n(e.style, t ? void 0 : "bold"), node: null };
1926
1926
  }
1927
1927
  const Sr = /* @__PURE__ */ new WeakMap();
1928
1928
  function zi(n) {
@@ -1945,7 +1945,7 @@ function Wi(n) {
1945
1945
  const l = r[o];
1946
1946
  l === `
1947
1947
  ` || l === `\r
1948
- ` ? s.push(nt()) : l === " " ? s.push(Un()) : l !== "" && s.push($(l));
1948
+ ` ? s.push(nt()) : l === " " ? s.push(Un()) : l !== "" && s.push(J(l));
1949
1949
  }
1950
1950
  return { node: s };
1951
1951
  }
@@ -1970,7 +1970,7 @@ function Wi(n) {
1970
1970
  }
1971
1971
  s && (t = t.slice(0, t.length - 1));
1972
1972
  }
1973
- return t === "" ? { node: null } : { node: $(t) };
1973
+ return t === "" ? { node: null } : { node: J(t) };
1974
1974
  }
1975
1975
  function Tr(n, e) {
1976
1976
  let t = n;
@@ -1994,15 +1994,15 @@ function Tr(n, e) {
1994
1994
  const Bi = { code: "code", em: "italic", i: "italic", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
1995
1995
  function ge(n) {
1996
1996
  const e = Bi[n.nodeName.toLowerCase()];
1997
- return e === void 0 ? { node: null } : { forChild: Jn(n.style, e), node: null };
1997
+ return e === void 0 ? { node: null } : { forChild: $n(n.style, e), node: null };
1998
1998
  }
1999
- function $(n = "") {
2000
- return $t(new ze(n));
1999
+ function J(n = "") {
2000
+ return Jt(new ze(n));
2001
2001
  }
2002
2002
  function N(n) {
2003
2003
  return n instanceof ze;
2004
2004
  }
2005
- function Jn(n, e) {
2005
+ function $n(n, e) {
2006
2006
  const t = n.fontWeight, r = n.textDecoration.split(" "), s = t === "700" || t === "bold", i = r.includes("line-through"), o = n.fontStyle === "italic", l = r.includes("underline"), c = n.verticalAlign;
2007
2007
  return (a) => (N(a) && (s && !a.hasFormat("bold") && a.toggleFormat("bold"), i && !a.hasFormat("strikethrough") && a.toggleFormat("strikethrough"), o && !a.hasFormat("italic") && a.toggleFormat("italic"), l && !a.hasFormat("underline") && a.toggleFormat("underline"), c !== "sub" || a.hasFormat("subscript") || a.toggleFormat("subscript"), c !== "super" || a.hasFormat("superscript") || a.toggleFormat("superscript"), e && !a.hasFormat(e) && a.toggleFormat(e)), a);
2008
2008
  }
@@ -2046,7 +2046,7 @@ class it extends ze {
2046
2046
  }
2047
2047
  }
2048
2048
  function Un() {
2049
- return $t(new it());
2049
+ return Jt(new it());
2050
2050
  }
2051
2051
  function Ri(n) {
2052
2052
  return n instanceof it;
@@ -2077,7 +2077,7 @@ class Ki {
2077
2077
  }
2078
2078
  set(e, t, r) {
2079
2079
  const s = this._selection, i = this.key;
2080
- this.key = e, this.offset = t, this.type = r, lt() || (ye() === i && J(e), s !== null && (s.setCachedNodes(null), s.dirty = !0));
2080
+ this.key = e, this.offset = t, this.type = r, lt() || (ye() === i && $(e), s !== null && (s.setCachedNodes(null), s.dirty = !0));
2081
2081
  }
2082
2082
  }
2083
2083
  function ie(n, e, t) {
@@ -2263,7 +2263,7 @@ class Ce {
2263
2263
  const o = t[i];
2264
2264
  o === `
2265
2265
  ` || o === `\r
2266
- ` ? r.push(nt()) : o === " " ? r.push(Un()) : r.push($(o));
2266
+ ` ? r.push(nt()) : o === " " ? r.push(Un()) : r.push(J(o));
2267
2267
  }
2268
2268
  this.insertNodes(r);
2269
2269
  }
@@ -2271,7 +2271,7 @@ class Ce {
2271
2271
  const t = this.anchor, r = this.focus, s = this.format, i = this.style;
2272
2272
  let o = t, l = r;
2273
2273
  !this.isCollapsed() && r.isBefore(t) && (o = r, l = t), o.type === "element" && function(_, m, y, S) {
2274
- const k = _.getNode(), T = k.getChildAtIndex(_.offset), x = $(), P = Y(k) ? ve().append(x) : x;
2274
+ const k = _.getNode(), T = k.getChildAtIndex(_.offset), x = J(), P = Y(k) ? ve().append(x) : x;
2275
2275
  x.setFormat(y), x.setStyle(S), T === null ? k.append(P) : T.insertBefore(P), _.is(m) && m.set(x.__key, 0, "text"), _.set(x.__key, 0, "text");
2276
2276
  }(o, l, s, i);
2277
2277
  const c = o.offset;
@@ -2283,12 +2283,12 @@ class Ce {
2283
2283
  let p = u[h - 1];
2284
2284
  if (h === 1 && l.type === "element" && (a = d, l.set(o.key, a, "text")), this.isCollapsed() && c === d && (f.isSegmented() || f.isToken() || !f.canInsertTextAfter() || !g.canInsertTextAfter() && f.getNextSibling() === null)) {
2285
2285
  let _ = f.getNextSibling();
2286
- if (N(_) && _.canInsertTextBefore() && !be(_) || (_ = $(), _.setFormat(s), _.setStyle(i), g.canInsertTextAfter() ? f.insertAfter(_) : g.insertAfter(_)), _.select(0, 0), f = _, e !== "") return void this.insertText(e);
2286
+ if (N(_) && _.canInsertTextBefore() && !be(_) || (_ = J(), _.setFormat(s), _.setStyle(i), g.canInsertTextAfter() ? f.insertAfter(_) : g.insertAfter(_)), _.select(0, 0), f = _, e !== "") return void this.insertText(e);
2287
2287
  } else if (this.isCollapsed() && c === 0 && (f.isSegmented() || f.isToken() || !f.canInsertTextBefore() || !g.canInsertTextBefore() && f.getPreviousSibling() === null)) {
2288
2288
  let _ = f.getPreviousSibling();
2289
- if (N(_) && !be(_) || (_ = $(), _.setFormat(s), g.canInsertTextBefore() ? f.insertBefore(_) : g.insertBefore(_)), _.select(), f = _, e !== "") return void this.insertText(e);
2289
+ if (N(_) && !be(_) || (_ = J(), _.setFormat(s), g.canInsertTextBefore() ? f.insertBefore(_) : g.insertBefore(_)), _.select(), f = _, e !== "") return void this.insertText(e);
2290
2290
  } else if (f.isSegmented() && c !== d) {
2291
- const _ = $(f.getTextContent());
2291
+ const _ = J(f.getTextContent());
2292
2292
  _.setFormat(s), f.replace(_), f = _;
2293
2293
  } else if (!this.isCollapsed() && e !== "") {
2294
2294
  const _ = p.getParent();
@@ -2296,18 +2296,18 @@ class Ce {
2296
2296
  }
2297
2297
  if (h === 1) {
2298
2298
  if (f.isToken()) {
2299
- const S = $(e);
2299
+ const S = J(e);
2300
2300
  return S.select(), void f.replace(S);
2301
2301
  }
2302
2302
  const _ = f.getFormat(), m = f.getStyle();
2303
2303
  if (c !== a || _ === s && m === i) {
2304
2304
  if (Ri(f)) {
2305
- const S = $(e);
2305
+ const S = J(e);
2306
2306
  return S.setFormat(s), S.setStyle(i), S.select(), void f.replace(S);
2307
2307
  }
2308
2308
  } else {
2309
2309
  if (f.getTextContent() !== "") {
2310
- const S = $(e);
2310
+ const S = J(e);
2311
2311
  if (S.setFormat(s), S.setStyle(i), S.select(), c === 0) f.insertBefore(S, !1);
2312
2312
  else {
2313
2313
  const [k] = f.splitText(c);
@@ -2327,7 +2327,7 @@ class Ce {
2327
2327
  while (y.isInline());
2328
2328
  if (l.type === "text" && (a !== 0 || p.getTextContent() === "") || l.type === "element" && p.getIndexWithinParent() < a) if (N(p) && !p.isToken() && a !== p.getTextContentSize()) {
2329
2329
  if (p.isSegmented()) {
2330
- const C = $(p.getTextContent());
2330
+ const C = J(p.getTextContent());
2331
2331
  p.replace(C), p = C;
2332
2332
  }
2333
2333
  Y(l.getNode()) || l.type !== "text" || (p = p.spliceText(0, a, "")), _.add(p.__key);
@@ -2351,7 +2351,7 @@ class Ce {
2351
2351
  }
2352
2352
  if (f.isToken()) if (c === d) f.select();
2353
2353
  else {
2354
- const C = $(e);
2354
+ const C = J(e);
2355
2355
  C.select(), f.replace(C);
2356
2356
  }
2357
2357
  else f = f.spliceText(c, d - c, e, !0), f.getTextContent() === "" ? f.remove() : f.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length);
@@ -2365,14 +2365,14 @@ class Ce {
2365
2365
  if (this.isCollapsed()) return;
2366
2366
  const { anchor: e, focus: t } = this, r = this.getNodes(), s = this.isBackward() ? t : e, i = this.isBackward() ? e : t;
2367
2367
  let o = s.getNode(), l = i.getNode();
2368
- const c = Je(o, _e), a = Je(l, _e);
2368
+ const c = $e(o, _e), a = $e(l, _e);
2369
2369
  N(o) && o.isToken() && s.offset < o.getTextContentSize() && (s.offset = 0), i.offset > 0 && N(l) && l.isToken() && (i.offset = l.getTextContentSize()), r.forEach((h) => {
2370
2370
  Qe(o, h) || Qe(l, h) || h.getKey() === o.getKey() || h.getKey() === l.getKey() || h.remove();
2371
2371
  });
2372
2372
  const u = (h, f) => {
2373
2373
  if (h.getTextContent() === "") h.remove();
2374
2374
  else if (f !== 0 && be(h)) {
2375
- const d = $(h.getTextContent());
2375
+ const d = J(h.getTextContent());
2376
2376
  return d.setFormat(h.getFormat()), d.setStyle(h.getStyle()), h.replace(d);
2377
2377
  }
2378
2378
  };
@@ -2387,7 +2387,7 @@ class Ce {
2387
2387
  N(l) && (l.spliceText(0, i.offset, ""), l = u(l, i.offset) || l), o.isAttached() && N(o) ? o.selectEnd() : l.isAttached() && N(l) && l.selectStart(), v(c) && v(a) && c !== a && (c.append(...a.getChildren()), a.remove(), i.set(s.key, s.offset, s.type));
2388
2388
  }
2389
2389
  formatText(e, t = null) {
2390
- if (this.isCollapsed()) return this.toggleFormat(e), void J(null);
2390
+ if (this.isCollapsed()) return this.toggleFormat(e), void $(null);
2391
2391
  const r = this.getNodes(), s = [];
2392
2392
  for (const k of r) N(k) && s.push(k);
2393
2393
  const i = (k) => {
@@ -2398,7 +2398,7 @@ class Ce {
2398
2398
  }
2399
2399
  });
2400
2400
  }, o = s.length;
2401
- if (o === 0) return this.toggleFormat(e), J(null), void i(t);
2401
+ if (o === 0) return this.toggleFormat(e), $(null), void i(t);
2402
2402
  const l = this.anchor, c = this.focus, a = this.isBackward(), u = a ? c : l, h = a ? l : c;
2403
2403
  let f = 0, d = s[0], g = u.type === "element" ? 0 : u.offset;
2404
2404
  if (u.type === "text" && g === d.getTextContentSize() && (f = 1, d = s[1], g = 0), d == null) return;
@@ -2432,7 +2432,7 @@ class Ce {
2432
2432
  const g = I();
2433
2433
  return F(g) || b(134), g.insertNodes(e);
2434
2434
  }
2435
- const t = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Je(t, _e), s = e[e.length - 1];
2435
+ const t = (this.isBackward() ? this.focus : this.anchor).getNode(), r = $e(t, _e), s = e[e.length - 1];
2436
2436
  if (v(r) && "__language" in r) {
2437
2437
  if ("__language" in e[0]) this.insertText(e[0].getTextContent());
2438
2438
  else {
@@ -2468,7 +2468,7 @@ class Ce {
2468
2468
  let k = g;
2469
2469
  for (const T of S) k = k.insertAfter(T);
2470
2470
  }(r, u));
2471
- const f = Je(o, _e);
2471
+ const f = $e(o, _e);
2472
2472
  c && v(f) && (c.canMergeWhenEmpty() || _e(a)) && (f.append(...c.getChildren()), c.remove()), v(r) && r.isEmpty() && r.remove(), o.selectEnd();
2473
2473
  const d = v(r) ? r.getLastChild() : null;
2474
2474
  Ae(d) && f !== r && d.remove();
@@ -2476,9 +2476,9 @@ class Ce {
2476
2476
  insertParagraph() {
2477
2477
  if (this.anchor.key === "root") {
2478
2478
  const o = ve();
2479
- return G().splice(this.anchor.offset, 0, [o]), o.select(), o;
2479
+ return Z().splice(this.anchor.offset, 0, [o]), o.select(), o;
2480
2480
  }
2481
- const e = un(this), t = Je(this.anchor.getNode(), _e);
2481
+ const e = un(this), t = $e(this.anchor.getNode(), _e);
2482
2482
  v(t) || b(213);
2483
2483
  const r = t.getChildAtIndex(e), s = r ? [r, ...r.getNextSiblings()] : [], i = t.insertNewAfter(this, !1);
2484
2484
  return i ? (i.append(...s), i.selectStart(), i) : null;
@@ -2534,7 +2534,7 @@ class Ce {
2534
2534
  const c = M(), a = se(c._window);
2535
2535
  if (!a) return;
2536
2536
  const u = c._blockCursorElement, h = c._rootElement;
2537
- if (h === null || u === null || !v(l) || l.isInline() || l.canBeEmpty() || $n(u, c, h), function(f, d, g, p) {
2537
+ if (h === null || u === null || !v(l) || l.isInline() || l.canBeEmpty() || Jn(u, c, h), function(f, d, g, p) {
2538
2538
  f.modify(d, g, p);
2539
2539
  }(a, e, t ? "backward" : "forward", r), a.rangeCount > 0) {
2540
2540
  const f = a.getRangeAt(0), d = this.anchor.getNode(), g = Y(d) ? d : Ti(d);
@@ -2832,7 +2832,7 @@ function Ot(n, e, t, r, s) {
2832
2832
  function Dr(n, e, t, r, s) {
2833
2833
  n.type === "text" ? (n.key = t, e || (n.offset += s)) : n.offset > r.getIndexWithinParent() && (n.offset -= 1);
2834
2834
  }
2835
- function $i(n, e, t, r, s, i, o) {
2835
+ function Ji(n, e, t, r, s, i, o) {
2836
2836
  const l = r.anchorNode, c = r.focusNode, a = r.anchorOffset, u = r.focusOffset, h = document.activeElement;
2837
2837
  if (s.has("collaboration") && h !== i || h !== null && Xr(h)) return;
2838
2838
  if (!F(e)) return void (n !== null && Mt(t, l, c) && r.removeAllRanges());
@@ -2860,7 +2860,7 @@ function $i(n, e, t, r, s, i, o) {
2860
2860
  (function(De, Be, Hn) {
2861
2861
  const qn = Hn.ownerDocument, Qn = qn.defaultView;
2862
2862
  if (Qn === null) return;
2863
- let { top: Gt, bottom: Zt } = Be, at = 0, ut = 0, he = Hn;
2863
+ let { top: Zt, bottom: Gt } = Be, at = 0, ut = 0, he = Hn;
2864
2864
  for (; he !== null; ) {
2865
2865
  const en = he === qn.body;
2866
2866
  if (en) at = 0, ut = Kt(De).innerHeight;
@@ -2869,12 +2869,12 @@ function $i(n, e, t, r, s, i, o) {
2869
2869
  at = ft.top, ut = ft.bottom;
2870
2870
  }
2871
2871
  let Re = 0;
2872
- if (Gt < at ? Re = -(at - Gt) : Zt > ut && (Re = Zt - ut), Re !== 0) if (en) Qn.scrollBy(0, Re);
2872
+ if (Zt < at ? Re = -(at - Zt) : Gt > ut && (Re = Gt - ut), Re !== 0) if (en) Qn.scrollBy(0, Re);
2873
2873
  else {
2874
2874
  const ft = he.scrollTop;
2875
2875
  he.scrollTop += Re;
2876
2876
  const Xn = he.scrollTop - ft;
2877
- Gt -= Xn, Zt -= Xn;
2877
+ Zt -= Xn, Gt -= Xn;
2878
2878
  }
2879
2879
  if (en) break;
2880
2880
  he = Rt(he);
@@ -2887,7 +2887,7 @@ function $i(n, e, t, r, s, i, o) {
2887
2887
  }
2888
2888
  function go(n) {
2889
2889
  let e = I() || ot();
2890
- e === null && (e = G().selectEnd()), e.insertNodes(n);
2890
+ e === null && (e = Z().selectEnd()), e.insertNodes(n);
2891
2891
  }
2892
2892
  function un(n) {
2893
2893
  let e = n;
@@ -2896,14 +2896,14 @@ function un(n) {
2896
2896
  F(t) && (e = t), F(e) || b(161);
2897
2897
  const r = e.anchor;
2898
2898
  let s = r.getNode(), i = r.offset;
2899
- for (; !_e(s); ) [s, i] = Ji(s, i);
2899
+ for (; !_e(s); ) [s, i] = $i(s, i);
2900
2900
  return i;
2901
2901
  }
2902
- function Ji(n, e) {
2902
+ function $i(n, e) {
2903
2903
  const t = n.getParent();
2904
2904
  if (!t) {
2905
2905
  const s = ve();
2906
- return G().append(s), s.select(), [G(), 0];
2906
+ return Z().append(s), s.select(), [Z(), 0];
2907
2907
  }
2908
2908
  if (N(n)) {
2909
2909
  const s = n.splitText(e);
@@ -3029,7 +3029,7 @@ function me(n, e) {
3029
3029
  try {
3030
3030
  if (d !== null && d.disconnect(), c || l === null || l.dirty) {
3031
3031
  const x = n._blockCursorElement;
3032
- x !== null && $n(x, n, r), $i(o, l, n, k, y, r);
3032
+ x !== null && Jn(x, n, r), Ji(o, l, n, k, y, r);
3033
3033
  }
3034
3034
  ki(n, r, l), d !== null && d.observe(r, Lr);
3035
3035
  } finally {
@@ -3044,10 +3044,10 @@ function me(n, e) {
3044
3044
  }
3045
3045
  }(n, g, y, p, i), F(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(wn, void 0);
3046
3046
  const T = n._pendingDecorators;
3047
- T !== null && (n._decorators = T, n._pendingDecorators = null, Ge("decorator", n, !0, T)), function(x, P, C) {
3047
+ T !== null && (n._decorators = T, n._pendingDecorators = null, Ze("decorator", n, !0, T)), function(x, P, C) {
3048
3048
  const E = ir(P), D = ir(C);
3049
- E !== D && Ge("textcontent", x, !0, D);
3050
- }(n, e || i, t), Ge("update", n, !0, { dirtyElements: _, dirtyLeaves: p, editorState: t, normalizedNodes: m, prevEditorState: e || i, tags: y }), function(x, P) {
3049
+ E !== D && Ze("textcontent", x, !0, D);
3050
+ }(n, e || i, t), Ze("update", n, !0, { dirtyElements: _, dirtyLeaves: p, editorState: t, normalizedNodes: m, prevEditorState: e || i, tags: y }), function(x, P) {
3051
3051
  if (x._deferred = [], P.length !== 0) {
3052
3052
  const C = x._updating;
3053
3053
  x._updating = !0;
@@ -3068,7 +3068,7 @@ function me(n, e) {
3068
3068
  }
3069
3069
  }(n);
3070
3070
  }
3071
- function Ge(n, e, t, ...r) {
3071
+ function Ze(n, e, t, ...r) {
3072
3072
  const s = e._updating;
3073
3073
  e._updating = t;
3074
3074
  try {
@@ -3450,7 +3450,7 @@ class Qt extends Vt {
3450
3450
  }
3451
3451
  exportDOM(e) {
3452
3452
  const { element: t } = super.exportDOM(e);
3453
- if (t && Jt(t)) {
3453
+ if (t && $t(t)) {
3454
3454
  const r = this.getIndent();
3455
3455
  r > 0 && (t.style.paddingInlineStart = 40 * r + "px");
3456
3456
  }
@@ -3574,7 +3574,7 @@ class ct extends Qt {
3574
3574
  return super.append(...e);
3575
3575
  }
3576
3576
  static importJSON(e) {
3577
- const t = G();
3577
+ const t = Z();
3578
3578
  return t.setFormat(e.format), t.setIndent(e.indent), t.setDirection(e.direction), t;
3579
3579
  }
3580
3580
  exportJSON() {
@@ -3618,7 +3618,7 @@ class Xt {
3618
3618
  return t._readOnly = !0, t;
3619
3619
  }
3620
3620
  toJSON() {
3621
- return Ar(null, this, () => ({ root: Fs(G()) }));
3621
+ return Ar(null, this, () => ({ root: Fs(Z()) }));
3622
3622
  }
3623
3623
  }
3624
3624
  class ji extends Qt {
@@ -3675,7 +3675,7 @@ class We extends Qt {
3675
3675
  }
3676
3676
  exportDOM(e) {
3677
3677
  const { element: t } = super.exportDOM(e);
3678
- if (t && Jt(t)) {
3678
+ if (t && $t(t)) {
3679
3679
  this.isEmpty() && t.append(document.createElement("br"));
3680
3680
  const r = this.getFormatType();
3681
3681
  t.style.textAlign = r;
@@ -3711,7 +3711,7 @@ function Hi(n) {
3711
3711
  return n.style && (e.setFormat(n.style.textAlign), Pi(n, e)), { node: e };
3712
3712
  }
3713
3713
  function ve() {
3714
- return $t(new We());
3714
+ return Jt(new We());
3715
3715
  }
3716
3716
  function bn(n) {
3717
3717
  return n instanceof We;
@@ -3841,7 +3841,7 @@ class Yt {
3841
3841
  return o = this, l = e.getType(), X(o, () => {
3842
3842
  const c = fe();
3843
3843
  if (c.isEmpty()) return;
3844
- if (l === "root") return void G().markDirty();
3844
+ if (l === "root") return void Z().markDirty();
3845
3845
  const a = c._nodeMap;
3846
3846
  for (const [, u] of a) u.markDirty();
3847
3847
  }, o._pendingEditorState === null ? { tag: "history-merge" } : void 0), () => {
@@ -3888,7 +3888,7 @@ class Yt {
3888
3888
  const m = c.isEditable();
3889
3889
  switch (d) {
3890
3890
  case "cut":
3891
- return m && w(c, $r, _);
3891
+ return m && w(c, Jr, _);
3892
3892
  case "copy":
3893
3893
  return w(c, Kr, _);
3894
3894
  case "paste":
@@ -3913,7 +3913,7 @@ class Yt {
3913
3913
  }
3914
3914
  }(e, this), r != null && e.classList.add(...r);
3915
3915
  } else this._editorState = s, this._pendingEditorState = null, this._window = null;
3916
- Ge("root", this, !1, e, t);
3916
+ Ze("root", this, !1, e, t);
3917
3917
  }
3918
3918
  }
3919
3919
  getElementByKey(e) {
@@ -3951,7 +3951,7 @@ class Yt {
3951
3951
  focus(e, t = {}) {
3952
3952
  const r = this._rootElement;
3953
3953
  r !== null && (r.setAttribute("autocapitalize", "off"), X(this, () => {
3954
- const s = I(), i = G();
3954
+ const s = I(), i = Z();
3955
3955
  s !== null ? s.dirty = !0 : i.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? i.selectStart() : i.selectEnd());
3956
3956
  }, { onUpdate: () => {
3957
3957
  r.removeAttribute("autocapitalize"), e && e();
@@ -3967,53 +3967,53 @@ class Yt {
3967
3967
  return this._editable;
3968
3968
  }
3969
3969
  setEditable(e) {
3970
- this._editable !== e && (this._editable = e, Ge("editable", this, !0, e));
3970
+ this._editable !== e && (this._editable = e, Ze("editable", this, !0, e));
3971
3971
  }
3972
3972
  toJSON() {
3973
3973
  return { editorState: this._editorState.toJSON() };
3974
3974
  }
3975
3975
  }
3976
- Yt.version = "0.19.0+prod.esm";
3976
+ Yt.version = "0.20.0+prod.esm";
3977
3977
  export {
3978
3978
  ro as $,
3979
- I as A,
3980
- _o as B,
3981
- br as C,
3982
- bn as D,
3979
+ Un as A,
3980
+ Qi as B,
3981
+ bi as C,
3982
+ ve as D,
3983
3983
  ue as E,
3984
- ve as F,
3985
- Kr as G,
3986
- xo as H,
3987
- Mt as I,
3988
- nt as J,
3984
+ uo as F,
3985
+ ze as G,
3986
+ _o as H,
3987
+ yo as I,
3988
+ Kr as J,
3989
3989
  no as K,
3990
- po as L,
3991
- ot as M,
3992
- ji as N,
3993
- yo as O,
3994
- uo as P,
3990
+ bn as L,
3991
+ I as M,
3992
+ xo as N,
3993
+ po as O,
3994
+ Mt as P,
3995
3995
  ao as Q,
3996
3996
  Wt as R,
3997
- Ht as S,
3998
- bi as T,
3999
- Ae as U,
4000
- Bs as V,
4001
- mo as W,
3997
+ $t as S,
3998
+ Ht as T,
3999
+ nt as U,
4000
+ Ae as V,
4001
+ Bs as W,
4002
4002
  dr as X,
4003
- Ws as Y,
4004
- ze as Z,
4003
+ mo as Y,
4004
+ Ws as Z,
4005
4005
  Os as _,
4006
- Pe as a,
4006
+ N as a,
4007
4007
  Ms as a0,
4008
4008
  Is as a1,
4009
- $s as a2,
4009
+ Js as a2,
4010
4010
  mt as a3,
4011
4011
  xt as a4,
4012
4012
  yt as a5,
4013
4013
  Ks as a6,
4014
- Js as a7,
4015
- $r as a8,
4016
- Zi as a9,
4014
+ $s as a7,
4015
+ Jr as a8,
4016
+ Gi as a9,
4017
4017
  to as aA,
4018
4018
  eo as aB,
4019
4019
  He as aa,
@@ -4029,43 +4029,43 @@ export {
4029
4029
  vo as ak,
4030
4030
  Wr as al,
4031
4031
  Xr as am,
4032
- Zn as an,
4032
+ Gn as an,
4033
4033
  io as ao,
4034
4034
  Hs as ap,
4035
4035
  js as aq,
4036
4036
  Vs as ar,
4037
4037
  dn as as,
4038
4038
  gt as at,
4039
- Gi as au,
4039
+ Zi as au,
4040
4040
  Yi as av,
4041
4041
  Xi as aw,
4042
4042
  go as ax,
4043
- Gn as ay,
4043
+ Zn as ay,
4044
4044
  Yr as az,
4045
4045
  v as b,
4046
- N as c,
4046
+ J as c,
4047
4047
  we as d,
4048
4048
  wn as e,
4049
- $t as f,
4049
+ Jt as f,
4050
4050
  Rr as g,
4051
4051
  Br as h,
4052
4052
  so as i,
4053
4053
  lo as j,
4054
- A as k,
4055
- $ as l,
4056
- oo as m,
4054
+ br as k,
4055
+ A as l,
4056
+ Qt as m,
4057
4057
  Y as n,
4058
4058
  Yn as o,
4059
- Ei as p,
4060
- co as q,
4059
+ ji as p,
4060
+ Ei as q,
4061
4061
  Ls as r,
4062
- hr as s,
4062
+ co as s,
4063
4063
  qi as t,
4064
- Un as u,
4065
- Jt as v,
4066
- G as w,
4067
- F as x,
4068
- Qt as y,
4069
- Qi as z
4064
+ Pe as u,
4065
+ F as v,
4066
+ Z as w,
4067
+ oo as x,
4068
+ hr as y,
4069
+ ot as z
4070
4070
  };
4071
- //# sourceMappingURL=Lexical.prod-eo-UKDld.js.map
4071
+ //# sourceMappingURL=Lexical.prod-B6kL_nwF.js.map