@uva-glass/component-library 3.2.1 → 3.3.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 (65) hide show
  1. package/dist/{Lexical.prod-Bu-Iw9VX.js → Lexical.prod-CniF7zEE.js} +670 -666
  2. package/dist/Lexical.prod-CniF7zEE.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-C5dHfEke.js → LexicalClipboard.prod-BXVNkwwS.js} +42 -42
  4. package/dist/{LexicalClipboard.prod-C5dHfEke.js.map → LexicalClipboard.prod-BXVNkwwS.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-DdERpPPj.js → LexicalLink.prod-Du8ZoNsh.js} +3 -3
  6. package/dist/{LexicalLink.prod-DdERpPPj.js.map → LexicalLink.prod-Du8ZoNsh.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CzJqqstH.js → LexicalList.prod-BUcoZhe4.js} +35 -35
  8. package/dist/{LexicalList.prod-CzJqqstH.js.map → LexicalList.prod-BUcoZhe4.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-CkM-3E0b.js → LexicalSelection.prod-BfAlhGGm.js} +25 -25
  10. package/dist/{LexicalSelection.prod-CkM-3E0b.js.map → LexicalSelection.prod-BfAlhGGm.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-BsmIydKv.js → LexicalTable.prod-CYafu_j9.js} +458 -453
  12. package/dist/LexicalTable.prod-CYafu_j9.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-BVZbsLIa.js → LexicalUtils.prod-DVr8VsHc.js} +36 -36
  14. package/dist/{LexicalUtils.prod-BVZbsLIa.js.map → LexicalUtils.prod-DVr8VsHc.js.map} +1 -1
  15. package/dist/{TablePlugin-DKzssVbg.js → TablePlugin-MjKuocl4.js} +53 -53
  16. package/dist/{TablePlugin-DKzssVbg.js.map → TablePlugin-MjKuocl4.js.map} +1 -1
  17. package/dist/assets/RadioGroup.css +1 -0
  18. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  19. package/dist/components/FormInput/FormInput.js +1 -1
  20. package/dist/components/InputField/InputField.stories.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  23. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  24. package/dist/components/MultiSelect/index.js +1 -1
  25. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  26. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  27. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  28. package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
  29. package/dist/components/RadioGroup/RadioGroup.js +51 -0
  30. package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
  31. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +5 -0
  32. package/dist/components/RadioGroup/RadioGroup.stories.js +48 -0
  33. package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -0
  34. package/dist/components/RadioGroup/Radiogroup.test.d.ts +0 -0
  35. package/dist/components/RadioGroup/Radiogroup.test.js +24 -0
  36. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -0
  37. package/dist/components/RadioGroup/index.d.ts +1 -0
  38. package/dist/components/RadioGroup/index.js +5 -0
  39. package/dist/components/RadioGroup/index.js.map +1 -0
  40. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  41. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +11 -11
  42. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  43. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  44. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  45. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +29 -29
  46. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  47. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +26 -26
  48. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  49. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  50. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  51. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +14 -14
  52. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  53. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +22 -22
  54. package/dist/components/RteEditor/Plugins/index.js +1 -1
  55. package/dist/components/RteEditor/RteEditor.js +116 -116
  56. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  57. package/dist/components/RteEditor/helpers.js +4 -4
  58. package/dist/components/Timeline/Timeline.test.js +1 -1
  59. package/dist/components/index.js +1 -1
  60. package/dist/{helpers-D13uK95u.js → helpers-ChM6xtQG.js} +63 -63
  61. package/dist/{helpers-D13uK95u.js.map → helpers-ChM6xtQG.js.map} +1 -1
  62. package/dist/index.js +1 -1
  63. package/package.json +5 -5
  64. package/dist/Lexical.prod-Bu-Iw9VX.js.map +0 -1
  65. package/dist/LexicalTable.prod-BsmIydKv.js.map +0 -1
@@ -1,63 +1,63 @@
1
- var Ps = Object.defineProperty;
2
- var Fs = (n, e, t) => e in n ? Ps(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var te = (n, e, t) => Fs(n, typeof e != "symbol" ? e + "" : e, t);
4
- function b(n, ...e) {
1
+ var Fs = Object.defineProperty;
2
+ var Ls = (n, e, t) => e in n ? Fs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var te = (n, e, t) => Ls(n, typeof e != "symbol" ? e + "" : e, t);
4
+ function T(n, ...e) {
5
5
  const t = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
6
6
  r.append("code", n);
7
7
  for (const i of e) r.append("v", i);
8
8
  throw t.search = r.toString(), Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
9
9
  }
10
- const le = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Ls = le && "documentMode" in document ? document.documentMode : null, se = le && /Mac|iPod|iPhone|iPad/.test(navigator.platform), we = le && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Gt = !(!le || !("InputEvent" in window) || Ls) && "getTargetRanges" in new window.InputEvent("input"), St = le && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), tt = le && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, As = le && /Android/.test(navigator.userAgent), wi = le && /^(?=.*Chrome).*/i.test(navigator.userAgent), Ar = le && As && wi, Qt = le && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !wi;
10
+ const le = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, As = le && "documentMode" in document ? document.documentMode : null, se = le && /Mac|iPod|iPhone|iPad/.test(navigator.platform), we = le && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Gt = !(!le || !("InputEvent" in window) || As) && "getTargetRanges" in new window.InputEvent("input"), St = le && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), tt = le && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Os = le && /Android/.test(navigator.userAgent), Ni = le && /^(?=.*Chrome).*/i.test(navigator.userAgent), Ar = le && Os && Ni, Qt = le && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Ni;
11
11
  function Xt(...n) {
12
12
  const e = [];
13
13
  for (const t of n) if (t && typeof t == "string") for (const [r] of t.matchAll(/\S+/g)) e.push(r);
14
14
  return e;
15
15
  }
16
- const Os = 1, Ms = 3, Is = 9, Ds = 11, ze = 0, Ni = 1, nt = 2, zs = 0, Bs = 1, Ws = 2, Yt = 4, Zt = 8, ir = 128, Rs = 1792 | (112 | (3 | Yt | Zt) | ir), sr = 1, or = 2, lr = 3, ar = 4, cr = 5, ur = 6, dn = St || tt || Qt ? " " : "​", Se = `
16
+ const Ms = 1, Ds = 3, Is = 9, zs = 11, ze = 0, Ei = 1, nt = 2, Bs = 0, Ws = 1, Rs = 2, Yt = 4, Zt = 8, ir = 128, Ks = 1792 | (112 | (3 | Yt | Zt) | ir), sr = 1, or = 2, lr = 3, ar = 4, cr = 5, ur = 6, dn = St || tt || Qt ? " " : "​", Se = `
17
17
 
18
- `, Ks = we ? " " : dn, Ei = "֑-߿יִ-﷽ﹰ-ﻼ", Pi = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", Js = new RegExp("^[^" + Pi + "]*[" + Ei + "]"), js = new RegExp("^[^" + Ei + "]*[" + Pi + "]"), Be = { bold: 1, capitalize: 1024, code: 16, highlight: ir, italic: 2, lowercase: 256, strikethrough: Yt, subscript: 32, superscript: 64, underline: Zt, uppercase: 512 }, $s = { directionless: 1, unmergeable: 2 }, Or = { center: or, end: ur, justify: ar, left: sr, right: lr, start: cr }, Us = { [or]: "center", [ur]: "end", [ar]: "justify", [sr]: "left", [lr]: "right", [cr]: "start" }, Vs = { normal: 0, segmented: 2, token: 1 }, qs = { [zs]: "normal", [Ws]: "segmented", [Bs]: "token" }, Hs = "$";
19
- function Fi(n, e, t, r, i, s) {
18
+ `, Js = we ? " " : dn, Pi = "֑-߿יִ-﷽ﹰ-ﻼ", Fi = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", js = new RegExp("^[^" + Fi + "]*[" + Pi + "]"), $s = new RegExp("^[^" + Pi + "]*[" + Fi + "]"), Be = { bold: 1, capitalize: 1024, code: 16, highlight: ir, italic: 2, lowercase: 256, strikethrough: Yt, subscript: 32, superscript: 64, underline: Zt, uppercase: 512 }, Us = { directionless: 1, unmergeable: 2 }, Or = { center: or, end: ur, justify: ar, left: sr, right: lr, start: cr }, Vs = { [or]: "center", [ur]: "end", [ar]: "justify", [sr]: "left", [lr]: "right", [cr]: "start" }, qs = { normal: 0, segmented: 2, token: 1 }, Hs = { [Bs]: "normal", [Rs]: "segmented", [Ws]: "token" }, Gs = "$";
19
+ function Li(n, e, t, r, i, s) {
20
20
  let o = n.getFirstChild();
21
21
  for (; o !== null; ) {
22
22
  const l = o.__key;
23
- o.__parent === e && (k(o) && Fi(o, l, t, r, i, s), t.has(l) || s.delete(l), i.push(l)), o = o.getNextSibling();
23
+ o.__parent === e && (k(o) && Li(o, l, t, r, i, s), t.has(l) || s.delete(l), i.push(l)), o = o.getNextSibling();
24
24
  }
25
25
  }
26
- const Gs = 100;
26
+ const Qs = 100;
27
27
  let Kn = !1, fr = 0;
28
- function Qs(n) {
28
+ function Xs(n) {
29
29
  fr = n.timeStamp;
30
30
  }
31
31
  function En(n, e, t) {
32
32
  const r = n.nodeName === "BR", i = e.__lexicalLineBreak;
33
33
  return i && (n === i || r && n.previousSibling === i) || r && kn(n, t) !== void 0;
34
34
  }
35
- function Xs(n, e, t) {
35
+ function Ys(n, e, t) {
36
36
  const r = Ce(ie(t));
37
37
  let i = null, s = null;
38
38
  r !== null && r.anchorNode === n && (i = r.anchorOffset, s = r.focusOffset);
39
39
  const o = n.nodeValue;
40
40
  o !== null && br(e, o, i, s, !1);
41
41
  }
42
- function Ys(n, e, t) {
42
+ function Zs(n, e, t) {
43
43
  if (L(n)) {
44
44
  const r = n.anchor.getNode();
45
45
  if (r.is(t) && n.format !== r.getFormat()) return !1;
46
46
  }
47
47
  return ke(e) && t.isAttached();
48
48
  }
49
- function Zs(n, e, t, r) {
50
- for (let i = n; i && !rl(i); i = At(i)) {
49
+ function eo(n, e, t, r) {
50
+ for (let i = n; i && !il(i); i = At(i)) {
51
51
  const s = kn(i, e);
52
52
  if (s !== void 0) {
53
53
  const o = j(s, t);
54
- if (o) return D(o) || !ee(i) ? void 0 : [i, o];
55
- } else if (i === r) return [r, ys(t)];
54
+ if (o) return I(o) || !Y(i) ? void 0 : [i, o];
55
+ } else if (i === r) return [r, xs(t)];
56
56
  }
57
57
  }
58
- function Li(n, e, t) {
58
+ function Ai(n, e, t) {
59
59
  Kn = !0;
60
- const r = performance.now() - fr > Gs;
60
+ const r = performance.now() - fr > Qs;
61
61
  try {
62
62
  ne(n, () => {
63
63
  const i = M() || function(f) {
@@ -68,18 +68,18 @@ function Li(n, e, t) {
68
68
  }(n), s = /* @__PURE__ */ new Map(), o = n.getRootElement(), l = n._editorState, a = n._blockCursorElement;
69
69
  let c = !1, u = "";
70
70
  for (let f = 0; f < e.length; f++) {
71
- const _ = e[f], h = _.type, p = _.target, g = Zs(p, n, l, o);
71
+ const _ = e[f], h = _.type, p = _.target, g = eo(p, n, l, o);
72
72
  if (!g) continue;
73
73
  const [x, m] = g;
74
- if (h === "characterData") r && P(m) && ke(p) && Ys(i, p, m) && Xs(p, m, n);
74
+ if (h === "characterData") r && P(m) && ke(p) && Zs(i, p, m) && Ys(p, m, n);
75
75
  else if (h === "childList") {
76
76
  c = !0;
77
77
  const y = _.addedNodes;
78
78
  for (let S = 0; S < y.length; S++) {
79
- const N = y[S], T = ps(N), C = N.parentNode;
80
- if (C != null && N !== a && T === null && !En(N, C, n)) {
79
+ const N = y[S], b = ms(N), C = N.parentNode;
80
+ if (C != null && N !== a && b === null && !En(N, C, n)) {
81
81
  if (we) {
82
- const F = (ee(N) ? N.innerText : null) || N.nodeValue;
82
+ const F = (Y(N) ? N.innerText : null) || N.nodeValue;
83
83
  F && (u += F);
84
84
  }
85
85
  C.removeChild(N);
@@ -89,8 +89,8 @@ function Li(n, e, t) {
89
89
  if (w > 0) {
90
90
  let S = 0;
91
91
  for (let N = 0; N < w; N++) {
92
- const T = v[N];
93
- (En(T, p, n) || a === T) && (p.appendChild(T), S++);
92
+ const b = v[N];
93
+ (En(b, p, n) || a === b) && (p.appendChild(b), S++);
94
94
  }
95
95
  w !== S && s.set(x, m);
96
96
  }
@@ -108,21 +108,21 @@ function Li(n, e, t) {
108
108
  }
109
109
  t.takeRecords();
110
110
  }
111
- i !== null && (c && re(i), we && ks(n) && i.insertRawText(u));
111
+ i !== null && (c && re(i), we && bs(n) && i.insertRawText(u));
112
112
  });
113
113
  } finally {
114
114
  Kn = !1;
115
115
  }
116
116
  }
117
- function Ai(n) {
117
+ function Oi(n) {
118
118
  const e = n._observer;
119
- e !== null && Li(n, e.takeRecords(), e);
119
+ e !== null && Ai(n, e.takeRecords(), e);
120
120
  }
121
- function Oi(n) {
121
+ function Mi(n) {
122
122
  (function(e) {
123
- fr === 0 && ie(e).addEventListener("textInput", Qs, !0);
123
+ fr === 0 && ie(e).addEventListener("textInput", Xs, !0);
124
124
  })(n), n._observer = new MutationObserver((e, t) => {
125
- Li(n, e, t);
125
+ Ai(n, e, t);
126
126
  });
127
127
  }
128
128
  class dr {
@@ -155,7 +155,7 @@ class dr {
155
155
  toJSON() {
156
156
  const e = { ...this.unknownState };
157
157
  for (const [t, r] of this.knownState) t.isEqual(r, t.defaultValue) ? delete e[t.key] : e[t.key] = t.unparse(r);
158
- return Bt(e) ? { [Hs]: e } : {};
158
+ return Bt(e) ? { [Gs]: e } : {};
159
159
  }
160
160
  getWritable(e) {
161
161
  if (this.node === e) return this;
@@ -184,7 +184,7 @@ class dr {
184
184
  function Bt(n) {
185
185
  if (n) for (const e in n) return n;
186
186
  }
187
- function eo(n) {
187
+ function to(n) {
188
188
  const e = n.getWritable(), t = e.__state ? e.__state.getWritable(e) : new dr(e);
189
189
  return e.__state = t, t;
190
190
  }
@@ -211,17 +211,17 @@ function Mr(n, e) {
211
211
  return !(u && _(u, d) || d && _(d, u) || u && h(u, d) || d && h(d, u));
212
212
  }(a, c));
213
213
  }
214
- function Ir(n, e) {
214
+ function Dr(n, e) {
215
215
  const t = n.mergeWithSibling(e), r = B()._normalizedNodes;
216
216
  return r.add(n.__key), r.add(e.__key), t;
217
217
  }
218
- function Dr(n) {
218
+ function Ir(n) {
219
219
  let e, t, r = n;
220
220
  if (r.__text !== "" || !r.isSimpleText() || r.isUnmergeable()) {
221
221
  for (; (e = r.getPreviousSibling()) !== null && P(e) && e.isSimpleText() && !e.isUnmergeable(); ) {
222
222
  if (e.__text !== "") {
223
223
  if (Mr(e, r)) {
224
- r = Ir(e, r);
224
+ r = Dr(e, r);
225
225
  break;
226
226
  }
227
227
  break;
@@ -231,7 +231,7 @@ function Dr(n) {
231
231
  for (; (t = r.getNextSibling()) !== null && P(t) && t.isSimpleText() && !t.isUnmergeable(); ) {
232
232
  if (t.__text !== "") {
233
233
  if (Mr(r, t)) {
234
- r = Ir(r, t);
234
+ r = Dr(r, t);
235
235
  break;
236
236
  }
237
237
  break;
@@ -255,7 +255,7 @@ function zr(n) {
255
255
  n.set(r.__key, i ? r.getChildrenSize() : 0, "element", !0);
256
256
  }
257
257
  }
258
- let Pe, Q, Ct, hn, jn, $n, We, oe, Un, kt, R = "", G = "", ae = null, ce = "", ye = "", Mi = !1, bt = !1, jt = null;
258
+ let Pe, Q, Ct, hn, jn, $n, We, oe, Un, kt, R = "", G = "", ae = null, ce = "", ye = "", Di = !1, bt = !1, jt = null;
259
259
  function en(n, e) {
260
260
  const t = We.get(n);
261
261
  if (e !== null) {
@@ -278,23 +278,23 @@ function Vn(n, e, t, r) {
278
278
  function Oe(n, e) {
279
279
  n.setProperty("text-align", e);
280
280
  }
281
- const to = "40px";
281
+ const no = "40px";
282
282
  function Ii(n, e) {
283
283
  const t = Pe.theme.indent;
284
284
  if (typeof t == "string") {
285
285
  const i = n.classList.contains(t);
286
286
  e > 0 && !i ? n.classList.add(t) : e < 1 && i && n.classList.remove(t);
287
287
  }
288
- const r = getComputedStyle(n).getPropertyValue("--lexical-indent-base-value") || to;
288
+ const r = getComputedStyle(n).getPropertyValue("--lexical-indent-base-value") || no;
289
289
  n.style.setProperty("padding-inline-start", e === 0 ? "" : `calc(${e} * ${r})`);
290
290
  }
291
- function Di(n, e) {
291
+ function zi(n, e) {
292
292
  const t = n.style;
293
293
  e === 0 ? Oe(t, "") : e === sr ? Oe(t, "left") : e === or ? Oe(t, "center") : e === lr ? Oe(t, "right") : e === ar ? Oe(t, "justify") : e === cr ? Oe(t, "start") : e === ur && Oe(t, "end");
294
294
  }
295
295
  function tn(n, e) {
296
296
  const t = oe.get(n);
297
- t === void 0 && b(60);
297
+ t === void 0 && T(60);
298
298
  const r = t.createDOM(Pe, Q);
299
299
  if (function(i, s, o) {
300
300
  const l = o._keyToDOMMap;
@@ -302,22 +302,22 @@ function tn(n, e) {
302
302
  const d = `__lexicalKey_${c._key}`;
303
303
  a[d] = u;
304
304
  })(s, o, i), l.set(i, s);
305
- }(n, r, Q), P(t) ? r.setAttribute("data-lexical-text", "true") : D(t) && r.setAttribute("data-lexical-decorator", "true"), k(t)) {
305
+ }(n, r, Q), P(t) ? r.setAttribute("data-lexical-text", "true") : I(t) && r.setAttribute("data-lexical-decorator", "true"), k(t)) {
306
306
  const i = t.__indent, s = t.__size;
307
307
  if (i !== 0 && Ii(r, i), s !== 0) {
308
308
  const l = s - 1;
309
309
  (function(a, c, u, d) {
310
310
  const f = G;
311
- G = "", qn(a, u, 0, c, u.getDOMSlot(d)), Bi(u, d), G = f;
311
+ G = "", qn(a, u, 0, c, u.getDOMSlot(d)), Wi(u, d), G = f;
312
312
  })(nn(t, oe), l, t, r);
313
313
  }
314
314
  const o = t.__format;
315
- o !== 0 && Di(r, o), t.isInline() || zi(null, t, r), bn(t) && (R += Se, ye += Se);
315
+ o !== 0 && zi(r, o), t.isInline() || Bi(null, t, r), bn(t) && (R += Se, ye += Se);
316
316
  } else {
317
317
  const i = t.getTextContent();
318
- if (D(t)) {
318
+ if (I(t)) {
319
319
  const s = t.decorate(Q, Pe);
320
- s !== null && Wi(n, s), r.contentEditable = "false";
320
+ s !== null && Ri(n, s), r.contentEditable = "false";
321
321
  } else P(t) && (t.isDirectionless() || (G += i));
322
322
  R += i, ye += i;
323
323
  }
@@ -339,21 +339,21 @@ function Br(n, e) {
339
339
  const t = n.__last;
340
340
  if (t) {
341
341
  const r = e.get(t);
342
- if (r) return Ze(r) ? "line-break" : D(r) && r.isInline() ? "decorator" : null;
342
+ if (r) return Ze(r) ? "line-break" : I(r) && r.isInline() ? "decorator" : null;
343
343
  }
344
344
  return "empty";
345
345
  }
346
346
  return null;
347
347
  }
348
- function zi(n, e, t) {
348
+ function Bi(n, e, t) {
349
349
  const r = Br(n, We), i = Br(e, oe);
350
350
  r !== i && e.getDOMSlot(t).setManagedLineBreak(i);
351
351
  }
352
- function Bi(n, e) {
352
+ function Wi(n, e) {
353
353
  const t = e.__lexicalDirTextContent || "", r = e.__lexicalDir || "";
354
354
  if (t !== G || r !== jt) {
355
355
  const i = G === "", s = i ? jt : function(o) {
356
- return Js.test(o) ? "rtl" : js.test(o) ? "ltr" : null;
356
+ return js.test(o) ? "rtl" : $s.test(o) ? "ltr" : null;
357
357
  }(G);
358
358
  if (s !== r) {
359
359
  const o = e.classList, l = Pe.theme;
@@ -381,7 +381,7 @@ function Bi(n, e) {
381
381
  jt = s, e.__lexicalDirTextContent = G, e.__lexicalDir = s;
382
382
  }
383
383
  }
384
- function no(n, e, t) {
384
+ function ro(n, e, t) {
385
385
  const r = G;
386
386
  var i;
387
387
  G = "", ae = null, ce = "", function(s, o, l) {
@@ -408,7 +408,7 @@ function no(n, e, t) {
408
408
  P(h) && (ae === null && (ae = h.getFormat()), ce === "" && (ce = h.getStyle()));
409
409
  } else {
410
410
  const f = nn(s, We), _ = nn(o, oe);
411
- if (f.length !== c && b(227), _.length !== u && b(228), c === 0) u !== 0 && qn(_, o, 0, u - 1, l);
411
+ if (f.length !== c && T(227), _.length !== u && T(228), c === 0) u !== 0 && qn(_, o, 0, u - 1, l);
412
412
  else if (u === 0) {
413
413
  if (c !== 0) {
414
414
  const h = l.after == null && l.before == null && l.element.__lexicalLineBreak == null;
@@ -416,31 +416,31 @@ function no(n, e, t) {
416
416
  }
417
417
  } else (function(h, p, g, x, m, y) {
418
418
  const v = x - 1, w = m - 1;
419
- let S, N, T = y.getFirstChild(), C = 0, F = 0;
419
+ let S, N, b = y.getFirstChild(), C = 0, F = 0;
420
420
  for (; C <= v && F <= w; ) {
421
- const I = p[C], A = g[F];
422
- if (I === A) T = Pn(ht(A, y.element)), C++, F++;
421
+ const D = p[C], A = g[F];
422
+ if (D === A) b = Pn(ht(A, y.element)), C++, F++;
423
423
  else {
424
424
  S === void 0 && (S = new Set(p)), N === void 0 && (N = new Set(g));
425
- const $ = N.has(I), he = S.has(A);
425
+ const $ = N.has(D), he = S.has(A);
426
426
  if ($) if (he) {
427
427
  const ge = it(Q, A);
428
- ge === T ? T = Pn(ht(A, y.element)) : (y.withBefore(T).insertChild(ge), ht(A, y.element)), C++, F++;
429
- } else tn(A, y.withBefore(T)), F++;
430
- else T = Pn(Hn(I)), en(I, y.element), C++;
428
+ ge === b ? b = Pn(ht(A, y.element)) : (y.withBefore(b).insertChild(ge), ht(A, y.element)), C++, F++;
429
+ } else tn(A, y.withBefore(b)), F++;
430
+ else b = Pn(Hn(D)), en(D, y.element), C++;
431
431
  }
432
432
  const z = oe.get(A);
433
433
  z !== null && P(z) && (ae === null && (ae = z.getFormat()), ce === "" && (ce = z.getStyle()));
434
434
  }
435
435
  const O = C > v, W = F > w;
436
436
  if (O && !W) {
437
- const I = g[w + 1], A = I === void 0 ? null : Q.getElementByKey(I);
437
+ const D = g[w + 1], A = D === void 0 ? null : Q.getElementByKey(D);
438
438
  qn(g, h, F, w, y.withBefore(A));
439
439
  } else W && !O && Vn(p, C, v, y.element);
440
440
  })(o, f, _, c, u, l);
441
441
  }
442
442
  bn(o) && (R += Se), d.__lexicalTextContent = R, R = a + R;
443
- }(n, e, e.getDOMSlot(t)), Bi(e, t), i = e, ae == null || ae === i.__textFormat || bt || i.setTextFormat(ae), function(s) {
443
+ }(n, e, e.getDOMSlot(t)), Wi(e, t), i = e, ae == null || ae === i.__textFormat || bt || i.setTextFormat(ae), function(s) {
444
444
  ce === "" || ce === s.__textStyle || bt || s.setTextStyle(ce);
445
445
  }(e), G = r;
446
446
  }
@@ -449,15 +449,15 @@ function nn(n, e) {
449
449
  let r = n.__first;
450
450
  for (; r !== null; ) {
451
451
  const i = e.get(r);
452
- i === void 0 && b(101), t.push(r), r = i.__next;
452
+ i === void 0 && T(101), t.push(r), r = i.__next;
453
453
  }
454
454
  return t;
455
455
  }
456
456
  function ht(n, e) {
457
457
  const t = We.get(n);
458
458
  let r = oe.get(n);
459
- t !== void 0 && r !== void 0 || b(61);
460
- const i = Mi || $n.has(n) || jn.has(n), s = it(Q, n);
459
+ t !== void 0 && r !== void 0 || T(61);
460
+ const i = Di || $n.has(n) || jn.has(n), s = it(Q, n);
461
461
  if (t === r && !i) {
462
462
  if (k(t)) {
463
463
  const o = s.__lexicalTextContent;
@@ -472,33 +472,33 @@ function ht(n, e) {
472
472
  }
473
473
  if (t !== r && i && Tr(kt, Ct, hn, r, "updated"), r.updateDOM(t, s, Pe)) {
474
474
  const o = tn(n, null);
475
- return e === null && b(62), e.replaceChild(o, s), en(n, null), o;
475
+ return e === null && T(62), e.replaceChild(o, s), en(n, null), o;
476
476
  }
477
477
  if (k(t) && k(r)) {
478
478
  const o = r.__indent;
479
479
  o !== t.__indent && Ii(s, o);
480
480
  const l = r.__format;
481
- l !== t.__format && Di(s, l), i && (no(t, r, s), Y(r) || r.isInline() || zi(t, r, s)), bn(r) && (R += Se, ye += Se);
481
+ l !== t.__format && zi(s, l), i && (ro(t, r, s), Z(r) || r.isInline() || Bi(t, r, s)), bn(r) && (R += Se, ye += Se);
482
482
  } else {
483
483
  const o = r.getTextContent();
484
- if (D(r)) {
484
+ if (I(r)) {
485
485
  const l = r.decorate(Q, Pe);
486
- l !== null && Wi(n, l);
486
+ l !== null && Ri(n, l);
487
487
  } else P(r) && !r.isDirectionless() && (G += o);
488
488
  R += o, ye += o;
489
489
  }
490
- if (!bt && Y(r) && r.__cachedText !== ye) {
490
+ if (!bt && Z(r) && r.__cachedText !== ye) {
491
491
  const o = r.getWritable();
492
492
  o.__cachedText = ye, r = o;
493
493
  }
494
494
  return s;
495
495
  }
496
- function Wi(n, e) {
496
+ function Ri(n, e) {
497
497
  let t = Q._pendingDecorators;
498
498
  const r = Q._decorators;
499
499
  if (t === null) {
500
500
  if (r[n] === e) return;
501
- t = ms(Q);
501
+ t = ys(Q);
502
502
  }
503
503
  t[n] = e;
504
504
  }
@@ -506,68 +506,68 @@ function Pn(n) {
506
506
  let e = n.nextSibling;
507
507
  return e !== null && e === Q._blockCursorElement && (e = e.nextSibling), e;
508
508
  }
509
- function ro(n, e, t, r, i, s) {
510
- R = "", ye = "", G = "", Mi = r === nt, jt = null, Q = t, Pe = t._config, Ct = t._nodes, hn = Q._listeners.mutation, jn = i, $n = s, We = n._nodeMap, oe = e._nodeMap, bt = e._readOnly, Un = new Map(t._keyToDOMMap);
509
+ function io(n, e, t, r, i, s) {
510
+ R = "", ye = "", G = "", Di = r === nt, jt = null, Q = t, Pe = t._config, Ct = t._nodes, hn = Q._listeners.mutation, jn = i, $n = s, We = n._nodeMap, oe = e._nodeMap, bt = e._readOnly, Un = new Map(t._keyToDOMMap);
511
511
  const o = /* @__PURE__ */ new Map();
512
512
  return kt = o, ht("root", null), Q = void 0, Ct = void 0, jn = void 0, $n = void 0, We = void 0, oe = void 0, Pe = void 0, Un = void 0, kt = void 0, o;
513
513
  }
514
514
  function Hn(n) {
515
515
  const e = Un.get(n);
516
- return e === void 0 && b(75, n), e;
516
+ return e === void 0 && T(75, n), e;
517
517
  }
518
- function xl(n) {
518
+ function Sl(n) {
519
519
  return {};
520
520
  }
521
- const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr = {}, sn = {}, on = {}, Ie = {}, Ji = {}, ji = {}, so = {}, oo = {}, lo = {}, ao = {}, co = {}, uo = {}, fo = {}, Gn = {}, ho = {}, go = {}, _o = {}, po = {}, mo = {}, Cl = {}, kl = {}, bl = {}, yo = {}, Tl = {}, xo = {}, So = {}, Co = {}, $i = {}, Ui = {}, Kr = {}, vl = {}, wl = {}, Nl = {}, El = {}, ko = {}, bo = {}, To = {}, pe = Object.freeze({}), Qn = 30, Xn = [["keydown", function(n, e) {
521
+ const Ki = {}, Cl = {}, so = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ji = {}, Rr = {}, sn = {}, on = {}, De = {}, ji = {}, $i = {}, oo = {}, lo = {}, ao = {}, co = {}, uo = {}, fo = {}, ho = {}, Gn = {}, go = {}, _o = {}, po = {}, mo = {}, yo = {}, kl = {}, bl = {}, Tl = {}, xo = {}, vl = {}, So = {}, Co = {}, ko = {}, Ui = {}, Vi = {}, Kr = {}, wl = {}, Nl = {}, El = {}, Pl = {}, bo = {}, To = {}, vo = {}, pe = Object.freeze({}), Qn = 30, Xn = [["keydown", function(n, e) {
522
522
  if (pt = n.timeStamp, Yn = n.key, e.isComposing()) return;
523
523
  const { key: t, shiftKey: r, ctrlKey: i, metaKey: s, altKey: o } = n;
524
- if (!E(e, so, n) && t != null) {
524
+ if (!E(e, oo, n) && t != null) {
525
525
  if (Fn && He(Yn)) return ne(e, () => {
526
526
  Wt(e, Ln);
527
527
  }), Fn = !1, void (Ln = "");
528
528
  if (function(l, a, c, u) {
529
- return _i(l) && !a && !u && !c;
530
- }(t, i, o, s)) E(e, oo, n);
529
+ return pi(l) && !a && !u && !c;
530
+ }(t, i, o, s)) E(e, lo, n);
531
531
  else if (function(l, a, c, u, d) {
532
- return _i(l) && !u && !c && (a || d);
533
- }(t, i, r, o, s)) E(e, lo, n);
532
+ return pi(l) && !u && !c && (a || d);
533
+ }(t, i, r, o, s)) E(e, ao, n);
534
534
  else if (function(l, a, c, u) {
535
- return gi(l) && !a && !u && !c;
536
- }(t, i, o, s)) E(e, ao, n);
535
+ return _i(l) && !a && !u && !c;
536
+ }(t, i, o, s)) E(e, co, n);
537
537
  else if (function(l, a, c, u, d) {
538
- return gi(l) && !u && !c && (a || d);
539
- }(t, i, r, o, s)) E(e, co, n);
538
+ return _i(l) && !u && !c && (a || d);
539
+ }(t, i, r, o, s)) E(e, uo, n);
540
540
  else if (/* @__PURE__ */ function(l, a, c) {
541
541
  return /* @__PURE__ */ function(u) {
542
542
  return u === "ArrowUp";
543
543
  }(l) && !a && !c;
544
- }(t, i, s)) E(e, uo, n);
544
+ }(t, i, s)) E(e, fo, n);
545
545
  else if (/* @__PURE__ */ function(l, a, c) {
546
546
  return /* @__PURE__ */ function(u) {
547
547
  return u === "ArrowDown";
548
548
  }(l) && !a && !c;
549
- }(t, i, s)) E(e, fo, n);
549
+ }(t, i, s)) E(e, ho, n);
550
550
  else if (function(l, a) {
551
- return pi(l) && a;
551
+ return mi(l) && a;
552
552
  }(t, r)) mt = !0, E(e, Gn, n);
553
553
  else if (/* @__PURE__ */ function(l) {
554
554
  return l === " ";
555
- }(t)) E(e, ho, n);
555
+ }(t)) E(e, go, n);
556
556
  else if (function(l, a) {
557
557
  return se && a && l.toLowerCase() === "o";
558
558
  }(t, i)) n.preventDefault(), mt = !0, E(e, $t, !0);
559
559
  else if (function(l, a) {
560
- return pi(l) && !a;
560
+ return mi(l) && !a;
561
561
  }(t, r)) mt = !1, E(e, Gn, n);
562
562
  else if (function(l, a, c, u) {
563
563
  return se ? !a && !c && (He(l) || l.toLowerCase() === "h" && u) : u || a || c ? !1 : He(l);
564
- }(t, o, s, i)) He(t) ? E(e, go, n) : (n.preventDefault(), E(e, rn, !0));
564
+ }(t, o, s, i)) He(t) ? E(e, _o, n) : (n.preventDefault(), E(e, rn, !0));
565
565
  else if (/* @__PURE__ */ function(l) {
566
566
  return l === "Escape";
567
- }(t)) E(e, _o, n);
567
+ }(t)) E(e, po, n);
568
568
  else if (function(l, a, c, u, d) {
569
569
  return se ? !(c || u || d) && (dt(l) || l.toLowerCase() === "d" && a) : a || u || d ? !1 : dt(l);
570
- }(t, i, r, o, s)) dt(t) ? E(e, po, n) : (n.preventDefault(), E(e, rn, !1));
570
+ }(t, i, r, o, s)) dt(t) ? E(e, mo, n) : (n.preventDefault(), E(e, rn, !1));
571
571
  else if (function(l, a, c) {
572
572
  return He(l) && (se ? a : c);
573
573
  }(t, o, i)) n.preventDefault(), E(e, sn, !0);
@@ -582,45 +582,45 @@ const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr
582
582
  }(t, s)) n.preventDefault(), E(e, on, !1);
583
583
  else if (function(l, a, c, u) {
584
584
  return l.toLowerCase() === "b" && !a && gt(c, u);
585
- }(t, o, s, i)) n.preventDefault(), E(e, Ie, "bold");
585
+ }(t, o, s, i)) n.preventDefault(), E(e, De, "bold");
586
586
  else if (function(l, a, c, u) {
587
587
  return l.toLowerCase() === "u" && !a && gt(c, u);
588
- }(t, o, s, i)) n.preventDefault(), E(e, Ie, "underline");
588
+ }(t, o, s, i)) n.preventDefault(), E(e, De, "underline");
589
589
  else if (function(l, a, c, u) {
590
590
  return l.toLowerCase() === "i" && !a && gt(c, u);
591
- }(t, o, s, i)) n.preventDefault(), E(e, Ie, "italic");
591
+ }(t, o, s, i)) n.preventDefault(), E(e, De, "italic");
592
592
  else if (/* @__PURE__ */ function(l, a, c, u) {
593
593
  return l === "Tab" && !a && !c && !u;
594
- }(t, o, i, s)) E(e, mo, n);
594
+ }(t, o, i, s)) E(e, yo, n);
595
595
  else if (function(l, a, c, u) {
596
596
  return l.toLowerCase() === "z" && !a && gt(c, u);
597
- }(t, r, s, i)) n.preventDefault(), E(e, Ji, void 0);
597
+ }(t, r, s, i)) n.preventDefault(), E(e, ji, void 0);
598
598
  else if (function(l, a, c, u) {
599
599
  return se ? l.toLowerCase() === "z" && c && a : l.toLowerCase() === "y" && u || l.toLowerCase() === "z" && u && a;
600
- }(t, r, s, i)) n.preventDefault(), E(e, ji, void 0);
600
+ }(t, r, s, i)) n.preventDefault(), E(e, $i, void 0);
601
601
  else {
602
602
  const l = e._editorState._selection;
603
- l === null || L(l) ? !we && mi(t, s, i) && (n.preventDefault(), E(e, Kr, n)) : function(a, c, u, d) {
603
+ l === null || L(l) ? !we && yi(t, s, i) && (n.preventDefault(), E(e, Kr, n)) : function(a, c, u, d) {
604
604
  return c ? !1 : a.toLowerCase() === "c" ? se ? u : d : !1;
605
- }(t, r, s, i) ? (n.preventDefault(), E(e, $i, n)) : function(a, c, u, d) {
605
+ }(t, r, s, i) ? (n.preventDefault(), E(e, Ui, n)) : function(a, c, u, d) {
606
606
  return c ? !1 : a.toLowerCase() === "x" ? se ? u : d : !1;
607
- }(t, r, s, i) ? (n.preventDefault(), E(e, Ui, n)) : mi(t, s, i) && (n.preventDefault(), E(e, Kr, n));
607
+ }(t, r, s, i) ? (n.preventDefault(), E(e, Vi, n)) : yi(t, s, i) && (n.preventDefault(), E(e, Kr, n));
608
608
  }
609
609
  /* @__PURE__ */ (function(l, a, c, u) {
610
610
  return l || a || c || u;
611
- })(i, r, o, s) && E(e, To, n);
611
+ })(i, r, o, s) && E(e, vo, n);
612
612
  }
613
613
  }], ["pointerdown", function(n, e) {
614
614
  const t = n.target, r = n.pointerType;
615
615
  Ot(t) && r !== "touch" && n.button === 0 && ne(e, () => {
616
- D(Sr(t)) || (er = !0);
616
+ di(t) || (er = !0);
617
617
  });
618
618
  }], ["compositionstart", function(n, e) {
619
619
  ne(e, () => {
620
620
  const t = M();
621
621
  if (L(t) && !e.isComposing()) {
622
622
  const r = t.anchor, i = t.anchor.getNode();
623
- V(r.key), (n.timeStamp < pt + Qn || r.type === "element" || !t.isCollapsed() || i.getFormat() !== t.format || P(i) && i.getStyle() !== t.style) && E(e, _t, Ks);
623
+ V(r.key), (n.timeStamp < pt + Qn || r.type === "element" || !t.isCollapsed() || i.getFormat() !== t.format || P(i) && i.getStyle() !== t.style) && E(e, _t, Js);
624
624
  }
625
625
  });
626
626
  }], ["compositionend", function(n, e) {
@@ -629,13 +629,14 @@ const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr
629
629
  }) : (Fn = !0, Ln = n.data);
630
630
  }], ["input", function(n, e) {
631
631
  n.stopPropagation(), ne(e, () => {
632
- const t = M(), r = n.data, i = Qi(n);
633
- if (r != null && L(t) && Hi(t, i, r, n.timeStamp, !1)) {
632
+ if (Y(n.target) && di(n.target)) return;
633
+ const t = M(), r = n.data, i = Xi(n);
634
+ if (r != null && L(t) && Gi(t, i, r, n.timeStamp, !1)) {
634
635
  ft && (Wt(e, r), ft = !1);
635
636
  const s = t.anchor.getNode(), o = Ce(ie(e));
636
637
  if (o === null) return;
637
638
  const l = t.isBackward(), a = l ? t.anchor.offset : t.focus.offset, c = l ? t.focus.offset : t.anchor.offset;
638
- Gt && !t.isCollapsed() && P(s) && o.anchorNode !== null && s.getTextContent().slice(0, a) + r + s.getTextContent().slice(a + c) === Cs(o.anchorNode) || E(e, _t, r);
639
+ Gt && !t.isCollapsed() && P(s) && o.anchorNode !== null && s.getTextContent().slice(0, a) + r + s.getTextContent().slice(a + c) === ks(o.anchorNode) || E(e, _t, r);
639
640
  const u = r.length;
640
641
  we && u > 1 && n.inputType === "insertCompositionText" && !e.isComposing() && (t.anchor.offset -= u), St || tt || Qt || !e.isComposing() || (pt = 0, V(null));
641
642
  } else
@@ -643,7 +644,7 @@ const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr
643
644
  (function() {
644
645
  H();
645
646
  const s = B();
646
- Ai(s);
647
+ Oi(s);
647
648
  })();
648
649
  }, { event: n }), Ge = null;
649
650
  }], ["click", function(n, e) {
@@ -652,11 +653,11 @@ const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr
652
653
  if (r) {
653
654
  if (L(t)) {
654
655
  const s = t.anchor, o = s.getNode();
655
- if (s.type === "element" && s.offset === 0 && t.isCollapsed() && !Y(o) && Z().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && i !== null && t.is(i)) r.removeAllRanges(), t.dirty = !0;
656
+ if (s.type === "element" && s.offset === 0 && t.isCollapsed() && !Z(o) && ee().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && i !== null && t.is(i)) r.removeAllRanges(), t.dirty = !0;
656
657
  else if (n.detail === 3 && !t.isCollapsed() && o !== t.focus.getNode()) {
657
658
  const l = function(a, c) {
658
659
  let u = a;
659
- for (; u !== Z() && u != null; ) {
660
+ for (; u !== ee() && u != null; ) {
660
661
  if (c(u)) return u;
661
662
  u = u.getParent();
662
663
  }
@@ -666,15 +667,15 @@ const Ri = {}, Sl = {}, io = {}, rn = {}, $t = {}, Wr = {}, _t = {}, Ki = {}, Rr
666
667
  }
667
668
  } else if (n.pointerType === "touch") {
668
669
  const s = r.anchorNode;
669
- (ee(s) || ke(s)) && re(pn(i, r, e, n));
670
+ (Y(s) || ke(s)) && re(pn(i, r, e, n));
670
671
  }
671
672
  }
672
- E(e, io, n);
673
+ E(e, so, n);
673
674
  });
674
675
  }], ["cut", pe], ["copy", pe], ["dragstart", pe], ["dragover", pe], ["dragend", pe], ["paste", pe], ["focus", pe], ["blur", pe], ["drop", pe]];
675
676
  Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
676
- const i = t.inputType, s = Qi(t);
677
- i === "deleteCompositionText" || we && ks(r) || i !== "insertCompositionText" && ne(r, () => {
677
+ const i = t.inputType, s = Xi(t);
678
+ i === "deleteCompositionText" || we && bs(r) || i !== "insertCompositionText" && ne(r, () => {
678
679
  const o = M();
679
680
  if (i === "deleteContentBackward") {
680
681
  if (o === null) {
@@ -691,13 +692,13 @@ Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
691
692
  });
692
693
  }, Qn), L(o)) {
693
694
  const h = o.anchor.getNode();
694
- h.markDirty(), P(h) || b(142), Gi(o, h);
695
+ h.markDirty(), P(h) || T(142), Qi(o, h);
695
696
  }
696
697
  } else {
697
698
  V(null), t.preventDefault();
698
699
  const h = o.anchor.getNode(), p = h.getTextContent(), g = h.canInsertTextAfter(), x = o.anchor.offset === 0 && o.focus.offset === p.length;
699
700
  let m = Ar && _ && !x && g;
700
- if (m && o.isCollapsed() && (m = !D(Uo(o.anchor, !0))), !m) {
701
+ if (m && o.isCollapsed() && (m = !I(Vo(o.anchor, !0))), !m) {
701
702
  E(r, rn, !0);
702
703
  const y = M();
703
704
  Ar && L(y) && y.isCollapsed() && (Me = y, setTimeout(() => Me = null));
@@ -709,7 +710,7 @@ Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
709
710
  var l;
710
711
  if (!L(o)) return;
711
712
  const a = t.data;
712
- Ge !== null && kr(!1, r, Ge), o.dirty && Ge === null || !o.isCollapsed() || Y(o.anchor.getNode()) || s === null || o.applyDOMRange(s), Ge = null;
713
+ Ge !== null && kr(!1, r, Ge), o.dirty && Ge === null || !o.isCollapsed() || Z(o.anchor.getNode()) || s === null || o.applyDOMRange(s), Ge = null;
713
714
  const c = o.anchor, u = o.focus, d = c.getNode(), f = u.getNode();
714
715
  if (i !== "insertText" && i !== "insertTranspose") switch (t.preventDefault(), i) {
715
716
  case "insertFromYank":
@@ -728,7 +729,7 @@ Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
728
729
  break;
729
730
  case "insertFromPaste":
730
731
  case "insertFromPasteAsQuotation":
731
- E(r, Ki, t);
732
+ E(r, Ji, t);
732
733
  break;
733
734
  case "deleteByComposition":
734
735
  (function(_, h) {
@@ -758,22 +759,22 @@ Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
758
759
  E(r, on, !1);
759
760
  break;
760
761
  case "formatStrikeThrough":
761
- E(r, Ie, "strikethrough");
762
+ E(r, De, "strikethrough");
762
763
  break;
763
764
  case "formatBold":
764
- E(r, Ie, "bold");
765
+ E(r, De, "bold");
765
766
  break;
766
767
  case "formatItalic":
767
- E(r, Ie, "italic");
768
+ E(r, De, "italic");
768
769
  break;
769
770
  case "formatUnderline":
770
- E(r, Ie, "underline");
771
+ E(r, De, "underline");
771
772
  break;
772
773
  case "historyUndo":
773
- E(r, Ji, void 0);
774
+ E(r, ji, void 0);
774
775
  break;
775
776
  case "historyRedo":
776
- E(r, ji, void 0);
777
+ E(r, $i, void 0);
777
778
  }
778
779
  else {
779
780
  if (a === `
@@ -782,17 +783,17 @@ Gt && Xn.push(["beforeinput", (n, e) => function(t, r) {
782
783
  else if (a == null && t.dataTransfer) {
783
784
  const _ = t.dataTransfer.getData("text/plain");
784
785
  t.preventDefault(), o.insertRawText(_);
785
- } else a != null && Hi(o, s, a, t.timeStamp, !0) ? (t.preventDefault(), E(r, _t, a)) : Ge = a;
786
- Vi = t.timeStamp;
786
+ } else a != null && Gi(o, s, a, t.timeStamp, !0) ? (t.preventDefault(), E(r, _t, a)) : Ge = a;
787
+ qi = t.timeStamp;
787
788
  }
788
789
  });
789
790
  }(n, e)]);
790
- let pt = 0, Yn = null, Vi = 0, Ge = null;
791
+ let pt = 0, Yn = null, qi = 0, Ge = null;
791
792
  const ln = /* @__PURE__ */ new WeakMap();
792
- let Zn = !1, er = !1, mt = !1, ft = !1, Fn = !1, Ln = "", Me = null, qi = [0, "", 0, "root", 0];
793
- function Hi(n, e, t, r, i) {
793
+ let Zn = !1, er = !1, mt = !1, ft = !1, Fn = !1, Ln = "", Me = null, Hi = [0, "", 0, "root", 0];
794
+ function Gi(n, e, t, r, i) {
794
795
  const s = n.anchor, o = n.focus, l = s.getNode(), a = B(), c = Ce(ie(a)), u = c !== null ? c.anchorNode : null, d = s.key, f = a.getElementByKey(d), _ = t.length;
795
- return d !== o.key || !P(l) || (!i && (!Gt || Vi < r + 50) || l.isDirty() && _ < 2 || xs(t)) && s.offset !== o.offset && !l.isComposing() || Qe(l) || l.isDirty() && _ > 1 || (i || !Gt) && f !== null && !l.isComposing() && u !== rt(f) || c !== null && e !== null && (!e.collapsed || e.startContainer !== c.anchorNode || e.startOffset !== c.anchorOffset) || l.getFormat() !== n.format || l.getStyle() !== n.style || function(h, p) {
796
+ return d !== o.key || !P(l) || (!i && (!Gt || qi < r + 50) || l.isDirty() && _ < 2 || Ss(t)) && s.offset !== o.offset && !l.isComposing() || Qe(l) || l.isDirty() && _ > 1 || (i || !Gt) && f !== null && !l.isComposing() && u !== rt(f) || c !== null && e !== null && (!e.collapsed || e.startContainer !== c.anchorNode || e.startOffset !== c.anchorOffset) || l.getFormat() !== n.format || l.getStyle() !== n.style || function(h, p) {
796
797
  if (p.isSegmented()) return !0;
797
798
  if (!h.isCollapsed()) return !1;
798
799
  const g = h.anchor.offset, x = p.getParentOrThrow(), m = p.isToken();
@@ -819,11 +820,11 @@ function jr(n, e, t) {
819
820
  const a = l.anchor, c = a.getNode();
820
821
  if (l.isCollapsed()) {
821
822
  n.type === "Range" && n.anchorNode === n.focusNode && (l.dirty = !0);
822
- const u = ie(e).event, d = u ? u.timeStamp : performance.now(), [f, _, h, p, g] = qi, x = Z(), m = e.isComposing() === !1 && x.getTextContent() === "";
823
+ const u = ie(e).event, d = u ? u.timeStamp : performance.now(), [f, _, h, p, g] = Hi, x = ee(), m = e.isComposing() === !1 && x.getTextContent() === "";
823
824
  if (d < g + 200 && a.offset === h && a.key === p) Ut(l, f, _);
824
- else if (a.type === "text") P(c) || b(141), Gi(l, c);
825
+ else if (a.type === "text") P(c) || T(141), Qi(l, c);
825
826
  else if (a.type === "element" && !m) {
826
- k(c) || b(259);
827
+ k(c) || T(259);
827
828
  const y = a.getNode();
828
829
  y.isEmpty() ? function(v, w) {
829
830
  const S = w.getTextFormat(), N = w.getTextStyle();
@@ -832,7 +833,7 @@ function jr(n, e, t) {
832
833
  }
833
834
  } else {
834
835
  const u = a.key, d = l.focus.key, f = l.getNodes(), _ = f.length, h = l.isBackward(), p = h ? o : i, g = h ? i : o, x = h ? d : u, m = h ? u : d;
835
- let y = Rs, v = !1;
836
+ let y = Ks, v = !1;
836
837
  for (let w = 0; w < _; w++) {
837
838
  const S = f[w], N = S.getTextContentSize();
838
839
  if (P(S) && N !== 0 && !(w === 0 && S.__key === x && p === N || w === _ - 1 && S.__key === m && g === 0) && (v = !0, y &= S.getFormat(), y === 0)) break;
@@ -840,16 +841,16 @@ function jr(n, e, t) {
840
841
  l.format = v ? y : 0;
841
842
  }
842
843
  }
843
- E(e, Ri, void 0);
844
+ E(e, Ki, void 0);
844
845
  });
845
846
  }
846
847
  function Ut(n, e, t) {
847
848
  n.format === e && n.style === t || (n.format = e, n.style = t, n.dirty = !0);
848
849
  }
849
- function Gi(n, e) {
850
+ function Qi(n, e) {
850
851
  Ut(n, e.getFormat(), e.getStyle());
851
852
  }
852
- function Qi(n) {
853
+ function Xi(n) {
853
854
  if (!n.getTargetRanges) return null;
854
855
  const e = n.getTargetRanges();
855
856
  return e.length === 0 ? null : e[0];
@@ -872,19 +873,19 @@ function Wt(n, e) {
872
873
  }
873
874
  kr(!0, n, e);
874
875
  }
875
- function Xi(n) {
876
+ function Yi(n) {
876
877
  let e = n.__lexicalEventHandles;
877
878
  return e === void 0 && (e = [], n.__lexicalEventHandles = e), e;
878
879
  }
879
880
  const Ye = /* @__PURE__ */ new Map();
880
- function Yi(n) {
881
- const e = Xo(n.target);
881
+ function Zi(n) {
882
+ const e = Yo(n.target);
882
883
  if (e === null) return;
883
- const t = gs(e.anchorNode);
884
+ const t = _s(e.anchorNode);
884
885
  if (t === null) return;
885
886
  er && (er = !1, ne(t, () => {
886
887
  const a = at(), c = e.anchorNode;
887
- (ee(c) || ke(c)) && re(pn(a, e, t, n));
888
+ (Y(c) || ke(c)) && re(pn(a, e, t, n));
888
889
  }));
889
890
  const r = Cr(t), i = r[r.length - 1], s = i._key, o = Ye.get(s), l = o || i;
890
891
  l !== t && jr(e, l, !1), jr(e, t, !0), t !== i ? Ye.set(s, t) : o && Ye.delete(s);
@@ -895,19 +896,19 @@ function $r(n) {
895
896
  function Ur(n) {
896
897
  return n._lexicalHandled === !0;
897
898
  }
898
- function vo(n) {
899
+ function wo(n) {
899
900
  const e = n.ownerDocument, t = ln.get(e);
900
- t === void 0 && b(162);
901
+ if (t === void 0) return;
901
902
  const r = t - 1;
902
- r >= 0 || b(164), ln.set(e, r), r === 0 && e.removeEventListener("selectionchange", Yi);
903
+ r >= 0 || T(164), ln.set(e, r), r === 0 && e.removeEventListener("selectionchange", Zi);
903
904
  const i = Cn(n);
904
905
  xr(i) ? (function(o) {
905
906
  if (o._parentEditor !== null) {
906
907
  const l = Cr(o), a = l[l.length - 1]._key;
907
908
  Ye.get(a) === o && Ye.delete(a);
908
909
  } else Ye.delete(o._key);
909
- }(i), n.__lexicalEditor = null) : i && b(198);
910
- const s = Xi(n);
910
+ }(i), n.__lexicalEditor = null) : i && T(198);
911
+ const s = Yi(n);
911
912
  for (let o = 0; o < s.length; o++) s[o]();
912
913
  n.__lexicalEventHandles = [];
913
914
  }
@@ -928,28 +929,28 @@ function tr(n, e, t) {
928
929
  } else _r(s) && e && n.isSelected() && n.selectPrevious();
929
930
  if (L(s) && e && !o) {
930
931
  const l = n.getIndexWithinParent();
931
- De(n), an(s, i, l, -1);
932
- } else De(n);
933
- t || Ae(i) || i.canBeEmpty() || !i.isEmpty() || tr(i, e), e && Y(i) && i.isEmpty() && i.selectEnd();
932
+ Ie(n), an(s, i, l, -1);
933
+ } else Ie(n);
934
+ t || Ae(i) || i.canBeEmpty() || !i.isEmpty() || tr(i, e), e && s && Z(i) && i.isEmpty() && i.selectEnd();
934
935
  }
935
936
  class gn {
936
937
  static getType() {
937
- b(64, this.name);
938
+ T(64, this.name);
938
939
  }
939
940
  static clone(e) {
940
- b(65, this.name);
941
+ T(65, this.name);
941
942
  }
942
943
  afterCloneFrom(e) {
943
944
  this.__parent = e.__parent, this.__next = e.__next, this.__prev = e.__prev, this.__state = e.__state;
944
945
  }
945
946
  constructor(e) {
946
- this.__type = this.constructor.getType(), this.__parent = null, this.__prev = null, this.__next = null, Object.defineProperty(this, "__state", { configurable: !0, enumerable: !1, value: void 0, writable: !0 }), _s(this, e);
947
+ this.__type = this.constructor.getType(), this.__parent = null, this.__prev = null, this.__next = null, Object.defineProperty(this, "__state", { configurable: !0, enumerable: !1, value: void 0, writable: !0 }), ps(this, e);
947
948
  }
948
949
  getType() {
949
950
  return this.__type;
950
951
  }
951
952
  isInline() {
952
- b(137, this.constructor.name);
953
+ T(137, this.constructor.name);
953
954
  }
954
955
  isAttached() {
955
956
  let e = this.__key;
@@ -969,7 +970,7 @@ class gn {
969
970
  if (L(t) && t.anchor.type === "element" && t.focus.type === "element") {
970
971
  if (t.isCollapsed()) return !1;
971
972
  const i = this.getParent();
972
- if (D(this) && this.isInline() && i) {
973
+ if (I(this) && this.isInline() && i) {
973
974
  const s = t.isBackward() ? t.focus : t.anchor;
974
975
  if (i.is(s.getNode()) && s.offset === i.getChildrenSize() && this.is(i.getLastChild())) return !1;
975
976
  }
@@ -995,20 +996,20 @@ class gn {
995
996
  }
996
997
  getParentOrThrow() {
997
998
  const e = this.getParent();
998
- return e === null && b(66, this.__key), e;
999
+ return e === null && T(66, this.__key), e;
999
1000
  }
1000
1001
  getTopLevelElement() {
1001
1002
  let e = this;
1002
1003
  for (; e !== null; ) {
1003
1004
  const t = e.getParent();
1004
- if (Ae(t)) return k(e) || e === this && D(e) || b(194), e;
1005
+ if (Ae(t)) return k(e) || e === this && I(e) || T(194), e;
1005
1006
  e = t;
1006
1007
  }
1007
1008
  return null;
1008
1009
  }
1009
1010
  getTopLevelElementOrThrow() {
1010
1011
  const e = this.getTopLevelElement();
1011
- return e === null && b(67, this.__key), e;
1012
+ return e === null && T(67, this.__key), e;
1012
1013
  }
1013
1014
  getParents() {
1014
1015
  const e = [];
@@ -1052,7 +1053,7 @@ class gn {
1052
1053
  }
1053
1054
  isBefore(e) {
1054
1055
  const t = qt(this, e);
1055
- return t !== null && (t.type === "descendant" || (t.type === "branch" ? Ns(t) === -1 : (t.type !== "same" && t.type !== "ancestor" && b(279), !1)));
1056
+ return t !== null && (t.type === "descendant" || (t.type === "branch" ? Es(t) === -1 : (t.type !== "same" && t.type !== "ancestor" && T(279), !1)));
1056
1057
  }
1057
1058
  isParentOf(e) {
1058
1059
  const t = qt(this, e);
@@ -1078,7 +1079,7 @@ class gn {
1078
1079
  if (i.has(c.__key) || r.push(c), c === e) break;
1079
1080
  let u = null, d = c;
1080
1081
  do {
1081
- if (d === null && b(68), u = t ? d.getNextSibling() : d.getPreviousSibling(), d = d.getParent(), d === null) break;
1082
+ if (d === null && T(68), u = t ? d.getNextSibling() : d.getPreviousSibling(), d = d.getParent(), d === null) break;
1082
1083
  u !== null || i.has(d.__key) || r.push(d);
1083
1084
  } while (u === null);
1084
1085
  s = u;
@@ -1091,13 +1092,13 @@ class gn {
1091
1092
  }
1092
1093
  getLatest() {
1093
1094
  const e = j(this.__key);
1094
- return e === null && b(113), e;
1095
+ return e === null && T(113), e;
1095
1096
  }
1096
1097
  getWritable() {
1097
1098
  H();
1098
1099
  const e = Le(), t = B(), r = e._nodeMap, i = this.__key, s = this.getLatest(), o = t._cloneNotNeeded, l = M();
1099
1100
  if (l !== null && l.setCachedNodes(null), o.has(i)) return fn(s), s;
1100
- const a = tl(s);
1101
+ const a = nl(s);
1101
1102
  return o.add(i), fn(a), r.set(i, a), a;
1102
1103
  }
1103
1104
  getTextContent() {
@@ -1107,10 +1108,10 @@ class gn {
1107
1108
  return this.getTextContent().length;
1108
1109
  }
1109
1110
  createDOM(e, t) {
1110
- b(70);
1111
+ T(70);
1111
1112
  }
1112
1113
  updateDOM(e, t, r) {
1113
- b(71);
1114
+ T(71);
1114
1115
  }
1115
1116
  exportDOM(e) {
1116
1117
  return { element: this.createDOM(e._config, e) };
@@ -1120,12 +1121,12 @@ class gn {
1120
1121
  return { type: this.__type, version: 1, ...e };
1121
1122
  }
1122
1123
  static importJSON(e) {
1123
- b(18, this.name);
1124
+ T(18, this.name);
1124
1125
  }
1125
1126
  updateFromJSON(e) {
1126
1127
  return function(t, r) {
1127
1128
  const i = t.getWritable();
1128
- return (r || i.__state) && eo(t).updateFromJSON(r), i;
1129
+ return (r || i.__state) && to(t).updateFromJSON(r), i;
1129
1130
  }(this, e.$);
1130
1131
  }
1131
1132
  static transform() {
@@ -1139,9 +1140,9 @@ class gn {
1139
1140
  let r = M();
1140
1141
  r !== null && (r = r.clone()), zn(this, e);
1141
1142
  const i = this.getLatest(), s = this.__key, o = e.__key, l = e.getWritable(), a = this.getParentOrThrow().getWritable(), c = a.__size;
1142
- De(l);
1143
+ Ie(l);
1143
1144
  const u = i.getPreviousSibling(), d = i.getNextSibling(), f = i.__prev, _ = i.__next, h = i.__parent;
1144
- if (tr(i, !1, !0), u === null ? a.__first = o : u.getWritable().__next = o, l.__prev = f, d === null ? a.__last = o : d.getWritable().__prev = o, l.__next = _, l.__parent = h, a.__size = c, t && (k(this) && k(l) || b(139), this.getChildren().forEach((p) => {
1145
+ if (tr(i, !1, !0), u === null ? a.__first = o : u.getWritable().__next = o, l.__prev = f, d === null ? a.__last = o : d.getWritable().__prev = o, l.__next = _, l.__parent = h, a.__size = c, t && (k(this) && k(l) || T(139), this.getChildren().forEach((p) => {
1145
1146
  l.append(p);
1146
1147
  })), L(r)) {
1147
1148
  re(r);
@@ -1156,7 +1157,7 @@ class gn {
1156
1157
  let l = !1, a = !1;
1157
1158
  if (s !== null) {
1158
1159
  const _ = e.getIndexWithinParent();
1159
- if (De(i), L(o)) {
1160
+ if (Ie(i), L(o)) {
1160
1161
  const h = s.__key, p = o.anchor, g = o.focus;
1161
1162
  l = p.type === "element" && p.key === h && p.offset === _ + 1, a = g.type === "element" && g.key === h && g.offset === _ + 1;
1162
1163
  }
@@ -1173,7 +1174,7 @@ class gn {
1173
1174
  insertBefore(e, t = !0) {
1174
1175
  H(), zn(this, e);
1175
1176
  const r = this.getWritable(), i = e.getWritable(), s = i.__key;
1176
- De(i);
1177
+ Ie(i);
1177
1178
  const o = this.getPreviousSibling(), l = this.getParentOrThrow().getWritable(), a = r.__prev, c = this.getIndexWithinParent();
1178
1179
  o === null ? l.__first = s : o.getWritable().__next = s, l.__size++, r.__prev = s, i.__prev = a, i.__next = r.__key, i.__parent = r.__parent;
1179
1180
  const u = M();
@@ -1246,7 +1247,7 @@ class Nt extends gn {
1246
1247
  static importDOM() {
1247
1248
  return { br: (e) => function(t) {
1248
1249
  const r = t.parentElement;
1249
- if (r !== null && xi(r)) {
1250
+ if (r !== null && Si(r)) {
1250
1251
  const i = r.firstChild;
1251
1252
  if (i === t || i.nextSibling === t && Rt(i)) {
1252
1253
  const s = r.lastChild;
@@ -1256,20 +1257,20 @@ class Nt extends gn {
1256
1257
  return !1;
1257
1258
  }(e) || function(t) {
1258
1259
  const r = t.parentElement;
1259
- if (r !== null && xi(r)) {
1260
+ if (r !== null && Si(r)) {
1260
1261
  const i = r.firstChild;
1261
1262
  if (i === t || i.nextSibling === t && Rt(i)) return !1;
1262
1263
  const s = r.lastChild;
1263
1264
  if (s === t || s.previousSibling === t && Rt(s)) return !0;
1264
1265
  }
1265
1266
  return !1;
1266
- }(e) ? null : { conversion: wo, priority: 0 } };
1267
+ }(e) ? null : { conversion: No, priority: 0 } };
1267
1268
  }
1268
1269
  static importJSON(e) {
1269
1270
  return Tt().updateFromJSON(e);
1270
1271
  }
1271
1272
  }
1272
- function wo(n) {
1273
+ function No(n) {
1273
1274
  return { node: Tt() };
1274
1275
  }
1275
1276
  function Tt() {
@@ -1287,7 +1288,7 @@ function An(n, e) {
1287
1288
  function On(n, e) {
1288
1289
  return 1 & e ? "strong" : 2 & e ? "em" : "span";
1289
1290
  }
1290
- function Zi(n, e, t, r, i) {
1291
+ function es(n, e, t, r, i) {
1291
1292
  const s = r.classList;
1292
1293
  let o = et(i, "base");
1293
1294
  o !== void 0 && s.add(...o), o = et(i, "underlineStrikethrough");
@@ -1305,7 +1306,7 @@ function Zi(n, e, t, r, i) {
1305
1306
  } else e & u && s.remove(...o);
1306
1307
  }
1307
1308
  }
1308
- function es(n, e, t) {
1309
+ function ts(n, e, t) {
1309
1310
  const r = e.firstChild, i = t.isComposing(), s = n + (i ? dn : "");
1310
1311
  if (r == null) e.textContent = s;
1311
1312
  else {
@@ -1323,9 +1324,9 @@ function es(n, e, t) {
1323
1324
  }
1324
1325
  }
1325
1326
  function Vr(n, e, t, r, i, s) {
1326
- es(i, n, e);
1327
+ ts(i, n, e);
1327
1328
  const o = s.theme.text;
1328
- o !== void 0 && Zi(0, 0, r, n, o);
1329
+ o !== void 0 && es(0, 0, r, n, o);
1329
1330
  }
1330
1331
  function Kt(n, e) {
1331
1332
  const t = document.createElement(e);
@@ -1352,7 +1353,7 @@ class lt extends gn {
1352
1353
  }
1353
1354
  getMode() {
1354
1355
  const e = this.getLatest();
1355
- return qs[e.__mode];
1356
+ return Hs[e.__mode];
1356
1357
  }
1357
1358
  getStyle() {
1358
1359
  return this.getLatest().__style;
@@ -1403,19 +1404,19 @@ class lt extends gn {
1403
1404
  if ((l === null ? c : l) !== (a === null ? u : a)) return !0;
1404
1405
  if (l === a && c !== u) {
1405
1406
  const p = t.firstChild;
1406
- p == null && b(48);
1407
+ p == null && T(48);
1407
1408
  const g = document.createElement(u);
1408
1409
  return Vr(g, this, 0, o, i, r), t.replaceChild(g, p), !1;
1409
1410
  }
1410
1411
  let d = t;
1411
- a !== null && l !== null && (d = t.firstChild, d == null && b(49)), es(i, d, this);
1412
+ a !== null && l !== null && (d = t.firstChild, d == null && T(49)), ts(i, d, this);
1412
1413
  const f = r.theme.text;
1413
- f !== void 0 && s !== o && Zi(0, s, o, d, f);
1414
+ f !== void 0 && s !== o && es(0, s, o, d, f);
1414
1415
  const _ = e.__style, h = this.__style;
1415
1416
  return _ !== h && (t.style.cssText = h), !1;
1416
1417
  }
1417
1418
  static importDOM() {
1418
- return { "#text": () => ({ conversion: Fo, priority: 0 }), b: () => ({ conversion: Eo, priority: 0 }), code: () => ({ conversion: me, priority: 0 }), em: () => ({ conversion: me, priority: 0 }), i: () => ({ conversion: me, priority: 0 }), mark: () => ({ conversion: me, priority: 0 }), s: () => ({ conversion: me, priority: 0 }), span: () => ({ conversion: No, priority: 0 }), strong: () => ({ conversion: me, priority: 0 }), sub: () => ({ conversion: me, priority: 0 }), sup: () => ({ conversion: me, priority: 0 }), u: () => ({ conversion: me, priority: 0 }) };
1419
+ return { "#text": () => ({ conversion: Lo, priority: 0 }), b: () => ({ conversion: Po, priority: 0 }), code: () => ({ conversion: me, priority: 0 }), em: () => ({ conversion: me, priority: 0 }), i: () => ({ conversion: me, priority: 0 }), mark: () => ({ conversion: me, priority: 0 }), s: () => ({ conversion: me, priority: 0 }), span: () => ({ conversion: Eo, priority: 0 }), strong: () => ({ conversion: me, priority: 0 }), sub: () => ({ conversion: me, priority: 0 }), sup: () => ({ conversion: me, priority: 0 }), u: () => ({ conversion: me, priority: 0 }) };
1419
1420
  }
1420
1421
  static importJSON(e) {
1421
1422
  return U().updateFromJSON(e);
@@ -1425,7 +1426,7 @@ class lt extends gn {
1425
1426
  }
1426
1427
  exportDOM(e) {
1427
1428
  let { element: t } = super.exportDOM(e);
1428
- return ee(t) || b(132), t.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (t = Kt(t, "b")), this.hasFormat("italic") && (t = Kt(t, "i")), this.hasFormat("strikethrough") && (t = Kt(t, "s")), this.hasFormat("underline") && (t = Kt(t, "u")), { element: t };
1429
+ return Y(t) || T(132), t.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (t = Kt(t, "b")), this.hasFormat("italic") && (t = Kt(t, "i")), this.hasFormat("strikethrough") && (t = Kt(t, "s")), this.hasFormat("underline") && (t = Kt(t, "u")), { element: t };
1429
1430
  }
1430
1431
  exportJSON() {
1431
1432
  return { detail: this.getDetail(), format: this.getFormat(), mode: this.getMode(), style: this.getStyle(), text: this.getTextContent(), ...super.exportJSON() };
@@ -1438,7 +1439,7 @@ class lt extends gn {
1438
1439
  }
1439
1440
  setDetail(e) {
1440
1441
  const t = this.getWritable();
1441
- return t.__detail = typeof e == "string" ? $s[e] : e, t;
1442
+ return t.__detail = typeof e == "string" ? Us[e] : e, t;
1442
1443
  }
1443
1444
  setStyle(e) {
1444
1445
  const t = this.getWritable();
@@ -1457,7 +1458,7 @@ class lt extends gn {
1457
1458
  return e.__detail ^= 2, e;
1458
1459
  }
1459
1460
  setMode(e) {
1460
- const t = Vs[e];
1461
+ const t = qs[e];
1461
1462
  if (this.__mode === t) return this;
1462
1463
  const r = this.getWritable();
1463
1464
  return r.__mode = t, r;
@@ -1475,7 +1476,7 @@ class lt extends gn {
1475
1476
  const a = o.length;
1476
1477
  r === void 0 && (r = a), i === void 0 && (i = a);
1477
1478
  } else r = 0, i = 0;
1478
- if (!L(s)) return rs(l, r, l, i, "text", "text");
1479
+ if (!L(s)) return is(l, r, l, i, "text", "text");
1479
1480
  {
1480
1481
  const a = ve();
1481
1482
  a !== s.anchor.key && a !== s.focus.key || V(l), s.setTextNodeRange(this, r, this, i);
@@ -1512,11 +1513,11 @@ class lt extends gn {
1512
1513
  const t = this.getLatest(), r = t.getTextContent();
1513
1514
  if (r === "") return [];
1514
1515
  const i = t.__key, s = ve(), o = r.length;
1515
- e.sort((T, C) => T - C), e.push(o);
1516
+ e.sort((b, C) => b - C), e.push(o);
1516
1517
  const l = [], a = e.length;
1517
- for (let T = 0, C = 0; T < o && C <= a; C++) {
1518
+ for (let b = 0, C = 0; b < o && C <= a; C++) {
1518
1519
  const F = e[C];
1519
- F > T && (l.push(r.slice(T, F)), T = F);
1520
+ F > b && (l.push(r.slice(b, F)), b = F);
1520
1521
  }
1521
1522
  const c = l.length;
1522
1523
  if (c === 1) return [t];
@@ -1526,24 +1527,24 @@ class lt extends gn {
1526
1527
  let g = !1, x = null, m = null;
1527
1528
  const y = M();
1528
1529
  if (L(y)) {
1529
- const [T, C] = y.isBackward() ? [y.focus, y.anchor] : [y.anchor, y.focus];
1530
- T.type === "text" && T.key === i && (x = T), C.type === "text" && C.key === i && (m = C);
1530
+ const [b, C] = y.isBackward() ? [y.focus, y.anchor] : [y.anchor, y.focus];
1531
+ b.type === "text" && b.key === i && (x = b), C.type === "text" && C.key === i && (m = C);
1531
1532
  }
1532
1533
  t.isSegmented() ? (f = U(u), f.__format = _, f.__style = h, f.__detail = p, g = !0) : (f = t.getWritable(), f.__text = u);
1533
1534
  const v = [f];
1534
- for (let T = 1; T < c; T++) {
1535
- const C = U(l[T]);
1535
+ for (let b = 1; b < c; b++) {
1536
+ const C = U(l[b]);
1536
1537
  C.__format = _, C.__style = h, C.__detail = p;
1537
1538
  const F = C.__key;
1538
1539
  s === i && V(F), v.push(C);
1539
1540
  }
1540
1541
  const w = x ? x.offset : null, S = m ? m.offset : null;
1541
1542
  let N = 0;
1542
- for (const T of v) {
1543
+ for (const b of v) {
1543
1544
  if (!x && !m) break;
1544
- const C = N + T.getTextContentSize();
1545
- if (x !== null && w !== null && w <= C && w >= N && (x.set(T.getKey(), w - N, "text"), w < C && (x = null)), m !== null && S !== null && S <= C && S >= N) {
1546
- m.set(T.getKey(), S - N, "text");
1545
+ const C = N + b.getTextContentSize();
1546
+ if (x !== null && w !== null && w <= C && w >= N && (x.set(b.getKey(), w - N, "text"), w < C && (x = null)), m !== null && S !== null && S <= C && S >= N) {
1547
+ m.set(b.getKey(), S - N, "text");
1547
1548
  break;
1548
1549
  }
1549
1550
  N = C;
@@ -1553,14 +1554,14 @@ class lt extends gn {
1553
1554
  const O = F.getPreviousSibling(), W = F.getNextSibling();
1554
1555
  O !== null && fn(O), W !== null && fn(W);
1555
1556
  })(this);
1556
- const T = d.getWritable(), C = this.getIndexWithinParent();
1557
- g ? (T.splice(C, 0, v), this.remove()) : T.splice(C, 1, v), L(y) && an(y, d, C, c - 1);
1557
+ const b = d.getWritable(), C = this.getIndexWithinParent();
1558
+ g ? (b.splice(C, 0, v), this.remove()) : b.splice(C, 1, v), L(y) && an(y, d, C, c - 1);
1558
1559
  }
1559
1560
  return v;
1560
1561
  }
1561
1562
  mergeWithSibling(e) {
1562
1563
  const t = e === this.getPreviousSibling();
1563
- t || e === this.getNextSibling() || b(50);
1564
+ t || e === this.getNextSibling() || T(50);
1564
1565
  const r = this.__key, i = e.__key, s = this.__text, o = s.length;
1565
1566
  ve() === i && V(r);
1566
1567
  const l = M();
@@ -1577,28 +1578,28 @@ class lt extends gn {
1577
1578
  return !1;
1578
1579
  }
1579
1580
  }
1580
- function No(n) {
1581
+ function Eo(n) {
1581
1582
  return { forChild: hr(n.style), node: null };
1582
1583
  }
1583
- function Eo(n) {
1584
+ function Po(n) {
1584
1585
  const e = n, t = e.style.fontWeight === "normal";
1585
1586
  return { forChild: hr(e.style, t ? void 0 : "bold"), node: null };
1586
1587
  }
1587
1588
  const qr = /* @__PURE__ */ new WeakMap();
1588
- function Po(n) {
1589
- if (!ee(n)) return !1;
1589
+ function Fo(n) {
1590
+ if (!Y(n)) return !1;
1590
1591
  if (n.nodeName === "PRE") return !0;
1591
1592
  const e = n.style.whiteSpace;
1592
1593
  return typeof e == "string" && e.startsWith("pre");
1593
1594
  }
1594
- function Fo(n) {
1595
+ function Lo(n) {
1595
1596
  const e = n;
1596
- n.parentElement === null && b(129);
1597
+ n.parentElement === null && T(129);
1597
1598
  let t = e.textContent || "";
1598
1599
  if (function(r) {
1599
1600
  let i, s = r.parentNode;
1600
1601
  const o = [r];
1601
- for (; s !== null && (i = qr.get(s)) === void 0 && !Po(s); ) o.push(s), s = s.parentNode;
1602
+ for (; s !== null && (i = qr.get(s)) === void 0 && !Fo(s); ) o.push(s), s = s.parentNode;
1602
1603
  const l = i === void 0 ? s : i;
1603
1604
  for (let a = 0; a < o.length; a++) qr.set(o[a], l);
1604
1605
  return l;
@@ -1644,9 +1645,9 @@ function Hr(n, e) {
1644
1645
  if (s === null) return null;
1645
1646
  t = s;
1646
1647
  }
1647
- if (t = r, ee(t)) {
1648
+ if (t = r, Y(t)) {
1648
1649
  const s = t.style.display;
1649
- if (s === "" && !Zo(t) || s !== "" && !s.startsWith("inline")) return null;
1650
+ if (s === "" && !el(t) || s !== "" && !s.startsWith("inline")) return null;
1650
1651
  }
1651
1652
  let i = t;
1652
1653
  for (; (i = e ? t.firstChild : t.lastChild) !== null; ) t = i;
@@ -1654,9 +1655,9 @@ function Hr(n, e) {
1654
1655
  if (t.nodeName === "BR") return null;
1655
1656
  }
1656
1657
  }
1657
- const Lo = { code: "code", em: "italic", i: "italic", mark: "highlight", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
1658
+ const Ao = { code: "code", em: "italic", i: "italic", mark: "highlight", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
1658
1659
  function me(n) {
1659
- const e = Lo[n.nodeName.toLowerCase()];
1660
+ const e = Ao[n.nodeName.toLowerCase()];
1660
1661
  return e === void 0 ? { node: null } : { forChild: hr(n.style, e), node: null };
1661
1662
  }
1662
1663
  function U(n = "") {
@@ -1690,13 +1691,13 @@ class Et extends lt {
1690
1691
  return gr().updateFromJSON(e);
1691
1692
  }
1692
1693
  setTextContent(e) {
1693
- return e !== " " && e !== "" && b(126), super.setTextContent(e);
1694
+ return e !== " " && e !== "" && T(126), super.setTextContent(e);
1694
1695
  }
1695
1696
  setDetail(e) {
1696
- return e !== 2 && b(127), this;
1697
+ return e !== 2 && T(127), this;
1697
1698
  }
1698
1699
  setMode(e) {
1699
- return e !== "normal" && b(128), this;
1700
+ return e !== "normal" && T(128), this;
1700
1701
  }
1701
1702
  canInsertTextBefore() {
1702
1703
  return !1;
@@ -1708,10 +1709,10 @@ class Et extends lt {
1708
1709
  function gr() {
1709
1710
  return Tn(new Et());
1710
1711
  }
1711
- function Ao(n) {
1712
+ function Oo(n) {
1712
1713
  return n instanceof Et;
1713
1714
  }
1714
- class Oo {
1715
+ class Mo {
1715
1716
  constructor(e, t, r) {
1716
1717
  this._selection = null, this.key = e, this.offset = t, this.type = r;
1717
1718
  }
@@ -1719,11 +1720,11 @@ class Oo {
1719
1720
  return this.key === e.key && this.offset === e.offset && this.type === e.type;
1720
1721
  }
1721
1722
  isBefore(e) {
1722
- return this.key === e.key ? this.offset < e.offset : ws(ue($e(this, "next")), ue($e(e, "next"))) < 0;
1723
+ return this.key === e.key ? this.offset < e.offset : Ns(ue($e(this, "next")), ue($e(e, "next"))) < 0;
1723
1724
  }
1724
1725
  getNode() {
1725
1726
  const e = j(this.key);
1726
- return e === null && b(20), e;
1727
+ return e === null && T(20), e;
1727
1728
  }
1728
1729
  set(e, t, r, i) {
1729
1730
  const s = this._selection, o = this.key;
@@ -1731,7 +1732,7 @@ class Oo {
1731
1732
  }
1732
1733
  }
1733
1734
  function de(n, e, t) {
1734
- return new Oo(n, e, t);
1735
+ return new Mo(n, e, t);
1735
1736
  }
1736
1737
  function Mn(n, e) {
1737
1738
  let t = e.__key, r = n.offset, i = "element";
@@ -1832,7 +1833,7 @@ class _n {
1832
1833
  const e = this.getNodes();
1833
1834
  if ((M() || at()) === this && e[0]) {
1834
1835
  const t = q(e[0], "next");
1835
- dl(je(t, t));
1836
+ hl(je(t, t));
1836
1837
  }
1837
1838
  for (const t of e) t.remove();
1838
1839
  }
@@ -1881,7 +1882,7 @@ class Ve {
1881
1882
  i.push(f);
1882
1883
  }
1883
1884
  return i;
1884
- }(Es(Ti(this), "next"));
1885
+ }(Ps(vi(this), "next"));
1885
1886
  return Pt() || (this._cachedNodes = t), t;
1886
1887
  }
1887
1888
  setTextNodeRange(e, t, r, i) {
@@ -1899,12 +1900,12 @@ class Ve {
1899
1900
  else if (u = !1, P(f)) {
1900
1901
  let _ = f.getTextContent();
1901
1902
  f === t ? f === r ? i.type === "element" && s.type === "element" && s.offset !== i.offset || (_ = l < a ? _.slice(l, a) : _.slice(a, l)) : _ = o ? _.slice(l) : _.slice(a) : f === r && (_ = o ? _.slice(0, a) : _.slice(0, l)), c += _;
1902
- } else !D(f) && !Ze(f) || f === r && this.isCollapsed() || (c += f.getTextContent());
1903
+ } else !I(f) && !Ze(f) || f === r && this.isCollapsed() || (c += f.getTextContent());
1903
1904
  }
1904
1905
  return c;
1905
1906
  }
1906
1907
  applyDOMRange(e) {
1907
- const t = B(), r = t.getEditorState()._selection, i = ns(e.startContainer, e.startOffset, e.endContainer, e.endOffset, t, r);
1908
+ const t = B(), r = t.getEditorState()._selection, i = rs(e.startContainer, e.startOffset, e.endContainer, e.endOffset, t, r);
1908
1909
  if (i === null) return;
1909
1910
  const [s, o] = i;
1910
1911
  this.anchor.set(s.key, s.offset, s.type, !0), this.focus.set(o.key, o.offset, o.type, !0), Jn(this);
@@ -1937,14 +1938,14 @@ class Ve {
1937
1938
  const t = this.anchor, r = this.focus, i = this.format, s = this.style;
1938
1939
  let o = t, l = r;
1939
1940
  !this.isCollapsed() && r.isBefore(t) && (o = r, l = t), o.type === "element" && function(g, x, m, y) {
1940
- const v = g.getNode(), w = v.getChildAtIndex(g.offset), S = U(), N = Y(v) ? Ne().append(S) : S;
1941
+ const v = g.getNode(), w = v.getChildAtIndex(g.offset), S = U(), N = Z(v) ? Ne().append(S) : S;
1941
1942
  S.setFormat(m), S.setStyle(y), w === null ? v.append(N) : w.insertBefore(N), g.is(x) && x.set(S.__key, 0, "text"), g.set(S.__key, 0, "text");
1942
1943
  }(o, l, i, s), l.type === "element" && wt(l, ue($e(l, "next")));
1943
1944
  const a = o.offset;
1944
1945
  let c = l.offset;
1945
1946
  const u = this.getNodes(), d = u.length;
1946
1947
  let f = u[0];
1947
- P(f) || b(26);
1948
+ P(f) || T(26);
1948
1949
  const _ = f.getTextContent().length, h = f.getParentOrThrow();
1949
1950
  let p = u[d - 1];
1950
1951
  if (d === 1 && l.type === "element" && (c = _, l.set(o.key, c, "text")), this.isCollapsed() && a === _ && (f.isSegmented() || f.isToken() || !f.canInsertTextAfter() || !h.canInsertTextAfter() && f.getNextSibling() === null)) {
@@ -1958,7 +1959,7 @@ class Ve {
1958
1959
  g.setFormat(i), f.replace(g), f = g;
1959
1960
  } else if (!this.isCollapsed() && e !== "") {
1960
1961
  const g = p.getParent();
1961
- if (!h.canInsertTextBefore() || !h.canInsertTextAfter() || k(g) && (!g.canInsertTextBefore() || !g.canInsertTextAfter())) return this.insertText(""), ts(this.anchor, this.focus, null), void this.insertText(e);
1962
+ if (!h.canInsertTextBefore() || !h.canInsertTextAfter() || k(g) && (!g.canInsertTextBefore() || !g.canInsertTextAfter())) return this.insertText(""), ns(this.anchor, this.focus, null), void this.insertText(e);
1962
1963
  }
1963
1964
  if (d === 1) {
1964
1965
  if (f.isToken()) {
@@ -1967,7 +1968,7 @@ class Ve {
1967
1968
  }
1968
1969
  const g = f.getFormat(), x = f.getStyle();
1969
1970
  if (a !== c || g === i && x === s) {
1970
- if (Ao(f)) {
1971
+ if (Oo(f)) {
1971
1972
  const y = U(e);
1972
1973
  return y.setFormat(i), y.setStyle(s), y.select(), void f.replace(y);
1973
1974
  }
@@ -1993,43 +1994,43 @@ class Ve {
1993
1994
  while (m.isInline());
1994
1995
  if (l.type === "text" && (c !== 0 || p.getTextContent() === "") || l.type === "element" && p.getIndexWithinParent() < c) if (P(p) && !p.isToken() && c !== p.getTextContentSize()) {
1995
1996
  if (p.isSegmented()) {
1996
- const T = U(p.getTextContent());
1997
- p.replace(T), p = T;
1997
+ const b = U(p.getTextContent());
1998
+ p.replace(b), p = b;
1998
1999
  }
1999
- Y(l.getNode()) || l.type !== "text" || (p = p.spliceText(0, c, "")), g.add(p.__key);
2000
+ Z(l.getNode()) || l.type !== "text" || (p = p.spliceText(0, c, "")), g.add(p.__key);
2000
2001
  } else {
2001
- const T = p.getParentOrThrow();
2002
- T.canBeEmpty() || T.getChildrenSize() !== 1 ? p.remove() : T.remove();
2002
+ const b = p.getParentOrThrow();
2003
+ b.canBeEmpty() || b.getChildrenSize() !== 1 ? p.remove() : b.remove();
2003
2004
  }
2004
2005
  else g.add(p.__key);
2005
2006
  const v = m.getChildren(), w = new Set(u), S = x.is(m), N = x.isInline() && f.getNextSibling() === null ? x : f;
2006
- for (let T = v.length - 1; T >= 0; T--) {
2007
- const C = v[T];
2007
+ for (let b = v.length - 1; b >= 0; b--) {
2008
+ const C = v[b];
2008
2009
  if (C.is(f) || k(C) && C.isParentOf(f)) break;
2009
2010
  C.isAttached() && (!w.has(C) || C.is(y) ? S || N.insertAfter(C, !1) : C.remove());
2010
2011
  }
2011
2012
  if (!S) {
2012
- let T = m, C = null;
2013
- for (; T !== null; ) {
2014
- const F = T.getChildren(), O = F.length;
2015
- (O === 0 || F[O - 1].is(C)) && (g.delete(T.__key), C = T), T = T.getParent();
2013
+ let b = m, C = null;
2014
+ for (; b !== null; ) {
2015
+ const F = b.getChildren(), O = F.length;
2016
+ (O === 0 || F[O - 1].is(C)) && (g.delete(b.__key), C = b), b = b.getParent();
2016
2017
  }
2017
2018
  }
2018
2019
  if (f.isToken()) if (a === _) f.select();
2019
2020
  else {
2020
- const T = U(e);
2021
- T.select(), f.replace(T);
2021
+ const b = U(e);
2022
+ b.select(), f.replace(b);
2022
2023
  }
2023
2024
  else f = f.spliceText(a, _ - a, e, !0), f.getTextContent() === "" ? f.remove() : f.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length);
2024
- for (let T = 1; T < d; T++) {
2025
- const C = u[T], F = C.__key;
2025
+ for (let b = 1; b < d; b++) {
2026
+ const C = u[b], F = C.__key;
2026
2027
  g.has(F) || C.remove();
2027
2028
  }
2028
2029
  }
2029
2030
  }
2030
2031
  removeText() {
2031
2032
  const e = M() === this;
2032
- Ht(this, hl(Ti(this))), e && M() !== this && re(this);
2033
+ Ht(this, gl(vi(this))), e && M() !== this && re(this);
2033
2034
  }
2034
2035
  formatText(e, t = null) {
2035
2036
  if (this.isCollapsed()) return this.toggleFormat(e), void V(null);
@@ -2075,20 +2076,20 @@ class Ve {
2075
2076
  if (this.isCollapsed() || this.removeText(), this.anchor.key === "root") {
2076
2077
  this.insertParagraph();
2077
2078
  const h = M();
2078
- return L(h) || b(134), h.insertNodes(e);
2079
+ return L(h) || T(134), h.insertNodes(e);
2079
2080
  }
2080
2081
  const t = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Wn(t, Te), i = e[e.length - 1];
2081
2082
  if (k(r) && "__language" in r) {
2082
2083
  if ("__language" in e[0]) this.insertText(e[0].getTextContent());
2083
2084
  else {
2084
- const h = In(this);
2085
+ const h = Dn(this);
2085
2086
  r.splice(h, 0, e), i.selectEnd();
2086
2087
  }
2087
2088
  return;
2088
2089
  }
2089
- if (!e.some((h) => (k(h) || D(h)) && !h.isInline())) {
2090
- k(r) || b(211, t.constructor.name, t.getType());
2091
- const h = In(this);
2090
+ if (!e.some((h) => (k(h) || I(h)) && !h.isInline())) {
2091
+ k(r) || T(211, t.constructor.name, t.getType());
2092
+ const h = Dn(this);
2092
2093
  return r.splice(h, 0, e), void i.selectEnd();
2093
2094
  }
2094
2095
  const s = function(h) {
@@ -2096,7 +2097,7 @@ class Ve {
2096
2097
  let g = null;
2097
2098
  for (let x = 0; x < h.length; x++) {
2098
2099
  const m = h[x], y = Ze(m);
2099
- if (y || D(m) && m.isInline() || k(m) && m.isInline() || P(m) || m.isParentRequired()) {
2100
+ if (y || I(m) && m.isInline() || k(m) && m.isInline() || P(m) || m.isParentRequired()) {
2100
2101
  if (g === null && (g = m.createParentElementNode(), p.append(g), y)) continue;
2101
2102
  g !== null && g.append(m);
2102
2103
  } else p.append(m), g = null;
@@ -2105,11 +2106,11 @@ class Ve {
2105
2106
  }(e), o = s.getLastDescendant(), l = s.getChildren(), a = !k(r) || !r.isEmpty() ? this.insertParagraph() : null, c = l[l.length - 1];
2106
2107
  let u = l[0];
2107
2108
  var d;
2108
- k(d = u) && Te(d) && !d.isEmpty() && k(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (k(r) || b(211, t.constructor.name, t.getType()), r.append(...u.getChildren()), u = l[1]), u && (r === null && b(212, t.constructor.name, t.getType()), function(h, p, g) {
2109
+ k(d = u) && Te(d) && !d.isEmpty() && k(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (k(r) || T(211, t.constructor.name, t.getType()), r.append(...u.getChildren()), u = l[1]), u && (r === null && T(212, t.constructor.name, t.getType()), function(h, p, g) {
2109
2110
  const x = p.getParentOrThrow().getLastChild();
2110
2111
  let m = p;
2111
2112
  const y = [p];
2112
- for (; m !== x; ) m.getNextSibling() || b(140), m = m.getNextSibling(), y.push(m);
2113
+ for (; m !== x; ) m.getNextSibling() || T(140), m = m.getNextSibling(), y.push(m);
2113
2114
  let v = h;
2114
2115
  for (const w of y) v = v.insertAfter(w);
2115
2116
  }(r, u));
@@ -2121,10 +2122,10 @@ class Ve {
2121
2122
  insertParagraph() {
2122
2123
  if (this.anchor.key === "root") {
2123
2124
  const o = Ne();
2124
- return Z().splice(this.anchor.offset, 0, [o]), o.select(), o;
2125
+ return ee().splice(this.anchor.offset, 0, [o]), o.select(), o;
2125
2126
  }
2126
- const e = In(this), t = Wn(this.anchor.getNode(), Te);
2127
- k(t) || b(213);
2127
+ const e = Dn(this), t = Wn(this.anchor.getNode(), Te);
2128
+ k(t) || T(213);
2128
2129
  const r = t.getChildAtIndex(e), i = r ? [r, ...r.getNextSiblings()] : [], s = t.insertNewAfter(this, !1);
2129
2130
  return s ? (s.append(...i), s.selectStart(), s) : null;
2130
2131
  }
@@ -2165,12 +2166,12 @@ class Ve {
2165
2166
  const l = s._blockCursorElement, a = s._rootElement, c = this.focus.getNode();
2166
2167
  if (a === null || l === null || !k(c) || c.isInline() || c.canBeEmpty() || rr(l, s, a), this.dirty) {
2167
2168
  let u = it(s, this.anchor.key), d = it(s, this.focus.key);
2168
- this.anchor.type === "text" && (u = rt(u)), this.focus.type === "text" && (d = rt(d)), u && d && ss(o, u, this.anchor.offset, d, this.focus.offset);
2169
+ this.anchor.type === "text" && (u = rt(u)), this.focus.type === "text" && (d = rt(d)), u && d && os(o, u, this.anchor.offset, d, this.focus.offset);
2169
2170
  }
2170
2171
  if (function(u, d, f, _) {
2171
2172
  u.modify(d, f, _);
2172
2173
  }(o, e, t ? "backward" : "forward", r), o.rangeCount > 0) {
2173
- const u = o.getRangeAt(0), d = this.anchor.getNode(), f = Y(d) ? d : Ho(d);
2174
+ const u = o.getRangeAt(0), d = this.anchor.getNode(), f = Z(d) ? d : Go(d);
2174
2175
  if (this.applyDOMRange(u), this.dirty = !0, !i) {
2175
2176
  const _ = this.getNodes(), h = [];
2176
2177
  let p = !1;
@@ -2206,7 +2207,7 @@ class Ve {
2206
2207
  const r = this.anchor;
2207
2208
  let i = r.getNode();
2208
2209
  if (this.forwardDeletion(r, i, e)) return;
2209
- const s = Ts($e(r, e ? "previous" : "next"));
2210
+ const s = vs($e(r, e ? "previous" : "next"));
2210
2211
  if (s.getTextSlices().every((l) => l === null || l.distance === 0)) {
2211
2212
  let l = { type: "initial" };
2212
2213
  for (const a of s.iterNodeCarets("shadowRoot")) if (fe(a)) {
@@ -2230,10 +2231,10 @@ class Ve {
2230
2231
  } else l = { block: a.origin, type: "merge-next-block" };
2231
2232
  continue;
2232
2233
  }
2233
- if (D(a.origin)) {
2234
+ if (I(a.origin)) {
2234
2235
  if (!a.origin.isIsolated()) if (l.type === "merge-next-block" && (a.origin.isKeyboardSelectable() || !a.origin.isInline()) && k(s.anchor.origin) && s.anchor.origin.isEmpty()) {
2235
2236
  s.anchor.origin.remove();
2236
- const c = is();
2237
+ const c = ss();
2237
2238
  c.add(a.origin.getKey()), re(c);
2238
2239
  } else a.origin.remove();
2239
2240
  return;
@@ -2263,7 +2264,7 @@ class Ve {
2263
2264
  if (f === _ && u.type === "text" && d.type === "text") {
2264
2265
  const h = u.offset, p = d.offset, g = h < p, x = g ? h : p, m = g ? p : h, y = m - 1;
2265
2266
  x !== y && function(v) {
2266
- return !(xs(v) || Mo(v));
2267
+ return !(Ss(v) || Do(v));
2267
2268
  }(f.getTextContent().slice(x, m)) && (c ? d.set(d.key, y, d.type) : u.set(u.key, y, u.type));
2268
2269
  }
2269
2270
  })(this, e);
@@ -2271,7 +2272,7 @@ class Ve {
2271
2272
  }
2272
2273
  if (this.removeText(), e && !t && this.isCollapsed() && this.anchor.type === "element" && this.anchor.offset === 0) {
2273
2274
  const r = this.anchor.getNode();
2274
- r.isEmpty() && Y(r.getParent()) && r.getPreviousSibling() === null && Yr(this, r);
2275
+ r.isEmpty() && Z(r.getParent()) && r.getPreviousSibling() === null && Yr(this, r);
2275
2276
  }
2276
2277
  }
2277
2278
  deleteLine(e) {
@@ -2317,7 +2318,7 @@ function Yr(n, e) {
2317
2318
  }
2318
2319
  return !1;
2319
2320
  }
2320
- const Mo = (() => {
2321
+ const Do = (() => {
2321
2322
  try {
2322
2323
  const n = new RegExp("\\p{Emoji}", "u"), e = n.test.bind(n);
2323
2324
  if (e("❤️") && e("#️⃣") && e("👍")) return e;
@@ -2340,7 +2341,7 @@ function Zr(n, e, t) {
2340
2341
  }
2341
2342
  function ei(n, e, t, r) {
2342
2343
  let i, s = e;
2343
- if (ee(n)) {
2344
+ if (Y(n)) {
2344
2345
  let o = !1;
2345
2346
  const l = n.childNodes, a = l.length, c = r._blockCursorElement;
2346
2347
  s === a && (o = !0, s = a - 1);
@@ -2350,13 +2351,13 @@ function ei(n, e, t, r) {
2350
2351
  const f = c.parentNode;
2351
2352
  n === f && e > Array.prototype.indexOf.call(f.children, c) && s--;
2352
2353
  }
2353
- if (i = Xe(u), P(i)) s = hi(i, o);
2354
+ if (i = Xe(u), P(i)) s = gi(i, o);
2354
2355
  else {
2355
2356
  let f = Xe(n);
2356
2357
  if (f === null) return null;
2357
2358
  if (k(f)) {
2358
2359
  const _ = r.getElementByKey(f.getKey());
2359
- _ === null && b(214), [f, s] = f.getDOMSlot(_).resolveChildIndex(f, _, n, e), k(f) || b(215), o && s >= f.getChildrenSize() && (s = Math.max(0, f.getChildrenSize() - 1));
2360
+ _ === null && T(214), [f, s] = f.getDOMSlot(_).resolveChildIndex(f, _, n, e), k(f) || T(215), o && s >= f.getChildrenSize() && (s = Math.max(0, f.getChildrenSize() - 1));
2360
2361
  let p = f.getChildAtIndex(s);
2361
2362
  if (k(p) && function(g, x, m) {
2362
2363
  const y = g.getParent();
@@ -2365,10 +2366,10 @@ function ei(n, e, t, r) {
2365
2366
  const g = o ? p.getLastDescendant() : p.getFirstDescendant();
2366
2367
  g === null ? f = p : (p = g, f = k(p) ? p : p.getParentOrThrow()), s = 0;
2367
2368
  }
2368
- P(p) ? (i = p, f = null, s = hi(p, o)) : p !== f && o && !d && (k(f) || b(216), s = Math.min(f.getChildrenSize(), s + 1));
2369
+ P(p) ? (i = p, f = null, s = gi(p, o)) : p !== f && o && !d && (k(f) || T(216), s = Math.min(f.getChildrenSize(), s + 1));
2369
2370
  } else {
2370
2371
  const _ = f.getIndexWithinParent();
2371
- s = e === 0 && D(f) && Xe(n) === f ? _ : _ + 1, f = f.getParentOrThrow();
2372
+ s = e === 0 && I(f) && Xe(n) === f ? _ : _ + 1, f = f.getParentOrThrow();
2372
2373
  }
2373
2374
  if (k(f)) return de(f.__key, s, "element");
2374
2375
  }
@@ -2394,7 +2395,7 @@ function ti(n, e, t) {
2394
2395
  }
2395
2396
  }
2396
2397
  }
2397
- function ts(n, e, t) {
2398
+ function ns(n, e, t) {
2398
2399
  if (n.type === "text" && e.type === "text") {
2399
2400
  const r = n.isBefore(e), i = n.is(e);
2400
2401
  ti(n, r, i), ti(e, !r, i), i && e.set(n.key, n.offset, n.type);
@@ -2405,7 +2406,7 @@ function ts(n, e, t) {
2405
2406
  }
2406
2407
  }
2407
2408
  }
2408
- function ns(n, e, t, r, i, s) {
2409
+ function rs(n, e, t, r, i, s) {
2409
2410
  if (n === null || t === null || !Sn(i, n, t)) return null;
2410
2411
  const o = ei(n, e, L(s) ? s.anchor : null, i);
2411
2412
  if (o === null) return null;
@@ -2413,14 +2414,14 @@ function ns(n, e, t, r, i, s) {
2413
2414
  if (l === null) return null;
2414
2415
  if (o.type === "element" && l.type === "element") {
2415
2416
  const a = Xe(n), c = Xe(t);
2416
- if (D(a) && D(c)) return null;
2417
+ if (I(a) && I(c)) return null;
2417
2418
  }
2418
- return ts(o, l, s), [o, l];
2419
+ return ns(o, l, s), [o, l];
2419
2420
  }
2420
- function Pl(n) {
2421
+ function Fl(n) {
2421
2422
  return k(n) && !n.isInline();
2422
2423
  }
2423
- function rs(n, e, t, r, i, s) {
2424
+ function is(n, e, t, r, i, s) {
2424
2425
  const o = Le(), l = new Ve(de(n, e, i), de(t, r, s), 0, "");
2425
2426
  return l.dirty = !0, o._selection = l, l;
2426
2427
  }
@@ -2428,10 +2429,10 @@ function Io() {
2428
2429
  const n = de("root", 0, "element"), e = de("root", 0, "element");
2429
2430
  return new Ve(n, e, 0, "");
2430
2431
  }
2431
- function is() {
2432
+ function ss() {
2432
2433
  return new _n(/* @__PURE__ */ new Set());
2433
2434
  }
2434
- function Fl(n, e) {
2435
+ function Ll(n, e) {
2435
2436
  return pn(null, n, e, null);
2436
2437
  }
2437
2438
  function pn(n, e, t, r) {
@@ -2442,7 +2443,7 @@ function pn(n, e, t, r) {
2442
2443
  if (L(n) && !a) return n.clone();
2443
2444
  if (e === null) return null;
2444
2445
  if (c = e.anchorNode, u = e.focusNode, d = e.anchorOffset, f = e.focusOffset, l && L(n) && !Sn(t, c, u)) return n.clone();
2445
- const _ = ns(c, d, u, f, t, n);
2446
+ const _ = rs(c, d, u, f, t, n);
2446
2447
  if (_ === null) return null;
2447
2448
  const [h, p] = _;
2448
2449
  return new Ve(h, p, L(n) ? n.format : 0, L(n) ? n.style : "");
@@ -2509,26 +2510,26 @@ function cn(n, e, t, r, i) {
2509
2510
  function ri(n, e, t, r, i) {
2510
2511
  n.type === "text" ? n.set(t, n.offset + (e ? 0 : i), "text") : n.offset > r.getIndexWithinParent() && n.set(n.key, n.offset - 1, "element");
2511
2512
  }
2512
- function ss(n, e, t, r, i) {
2513
+ function os(n, e, t, r, i) {
2513
2514
  try {
2514
2515
  n.setBaseAndExtent(e, t, r, i);
2515
2516
  } catch {
2516
2517
  }
2517
2518
  }
2518
- function Do(n, e, t, r, i, s, o) {
2519
+ function zo(n, e, t, r, i, s, o) {
2519
2520
  const l = r.anchorNode, a = r.focusNode, c = r.anchorOffset, u = r.focusOffset, d = document.activeElement;
2520
- if (i.has("collaboration") && d !== s || d !== null && hs(d)) return;
2521
+ if (i.has("collaboration") && d !== s || d !== null && gs(d)) return;
2521
2522
  if (!L(e)) return void (n !== null && Sn(t, l, a) && r.removeAllRanges());
2522
2523
  const f = e.anchor, _ = e.focus, h = f.key, p = _.key, g = it(t, h), x = it(t, p), m = f.offset, y = _.offset, v = e.format, w = e.style, S = e.isCollapsed();
2523
- let N = g, T = x, C = !1;
2524
+ let N = g, b = x, C = !1;
2524
2525
  if (f.type === "text") {
2525
2526
  N = rt(g);
2526
2527
  const z = f.getNode();
2527
2528
  C = z.getFormat() !== v || z.getStyle() !== w;
2528
2529
  } else L(n) && n.anchor.type === "text" && (C = !0);
2529
- var F, O, W, I, A;
2530
- if (_.type === "text" && (T = rt(x)), N !== null && T !== null && (S && (n === null || C || L(n) && (n.format !== v || n.style !== w)) && (F = v, O = w, W = m, I = h, A = performance.now(), qi = [F, O, W, I, A]), c !== m || u !== y || l !== N || a !== T || r.type === "Range" && S || (d !== null && s.contains(d) || s.focus({ preventScroll: !0 }), f.type === "element"))) {
2531
- if (ss(r, N, m, T, y), !i.has("skip-scroll-into-view") && e.isCollapsed() && s !== null && s === document.activeElement) {
2530
+ var F, O, W, D, A;
2531
+ if (_.type === "text" && (b = rt(x)), N !== null && b !== null && (S && (n === null || C || L(n) && (n.format !== v || n.style !== w)) && (F = v, O = w, W = m, D = h, A = performance.now(), Hi = [F, O, W, D, A]), c !== m || u !== y || l !== N || a !== b || r.type === "Range" && S || (d !== null && s.contains(d) || s.focus({ preventScroll: !0 }), f.type === "element"))) {
2532
+ if (os(r, N, m, b, y), !i.has("skip-scroll-into-view") && e.isCollapsed() && s !== null && s === document.activeElement) {
2532
2533
  const z = L(e) && e.anchor.type === "element" ? N.childNodes[m] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null;
2533
2534
  if (z !== null) {
2534
2535
  let $;
@@ -2537,18 +2538,18 @@ function Do(n, e, t, r, i, s, o) {
2537
2538
  he.selectNode(z), $ = he.getBoundingClientRect();
2538
2539
  } else $ = z.getBoundingClientRect();
2539
2540
  (function(he, ge, _e) {
2540
- const ct = bs(_e), Fr = vr(ct);
2541
+ const ct = Ts(_e), Fr = vr(ct);
2541
2542
  if (ct === null || Fr === null) return;
2542
- let { top: vn, bottom: wn } = ge, It = 0, Dt = 0, be = _e;
2543
+ let { top: vn, bottom: wn } = ge, Dt = 0, It = 0, be = _e;
2543
2544
  for (; be !== null; ) {
2544
2545
  const Nn = be === ct.body;
2545
- if (Nn) It = 0, Dt = ie(he).innerHeight;
2546
+ if (Nn) Dt = 0, It = ie(he).innerHeight;
2546
2547
  else {
2547
2548
  const zt = be.getBoundingClientRect();
2548
- It = zt.top, Dt = zt.bottom;
2549
+ Dt = zt.top, It = zt.bottom;
2549
2550
  }
2550
2551
  let ut = 0;
2551
- if (vn < It ? ut = -(It - vn) : wn > Dt && (ut = wn - Dt), ut !== 0) if (Nn) Fr.scrollBy(0, ut);
2552
+ if (vn < Dt ? ut = -(Dt - vn) : wn > It && (ut = wn - It), ut !== 0) if (Nn) Fr.scrollBy(0, ut);
2552
2553
  else {
2553
2554
  const zt = be.scrollTop;
2554
2555
  be.scrollTop += ut;
@@ -2564,28 +2565,28 @@ function Do(n, e, t, r, i, s, o) {
2564
2565
  Zn = !0;
2565
2566
  }
2566
2567
  }
2567
- function Ll(n) {
2568
+ function Al(n) {
2568
2569
  let e = M() || at();
2569
- e === null && (e = Z().selectEnd()), e.insertNodes(n);
2570
+ e === null && (e = ee().selectEnd()), e.insertNodes(n);
2570
2571
  }
2571
- function In(n) {
2572
+ function Dn(n) {
2572
2573
  let e = n;
2573
2574
  n.isCollapsed() || e.removeText();
2574
2575
  const t = M();
2575
- L(t) && (e = t), L(e) || b(161);
2576
+ L(t) && (e = t), L(e) || T(161);
2576
2577
  const r = e.anchor;
2577
2578
  let i = r.getNode(), s = r.offset;
2578
2579
  for (; !Te(i); ) {
2579
2580
  const o = i;
2580
- if ([i, s] = zo(i, s), o.is(i)) break;
2581
+ if ([i, s] = Bo(i, s), o.is(i)) break;
2581
2582
  }
2582
2583
  return s;
2583
2584
  }
2584
- function zo(n, e) {
2585
+ function Bo(n, e) {
2585
2586
  const t = n.getParent();
2586
2587
  if (!t) {
2587
2588
  const i = Ne();
2588
- return Z().append(i), i.select(), [Z(), 0];
2589
+ return ee().append(i), i.select(), [ee(), 0];
2589
2590
  }
2590
2591
  if (P(n)) {
2591
2592
  const i = n.splitText(e);
@@ -2608,46 +2609,46 @@ function ii(n, e, t, r, i = "decorators-and-blocks") {
2608
2609
  }
2609
2610
  const s = $e(n.focus, t ? "previous" : "next"), o = r === "lineboundary", l = e === "move";
2610
2611
  let a = s, c = i === "decorators-and-blocks";
2611
- if (!gl(a)) {
2612
+ if (!_l(a)) {
2612
2613
  for (const u of a) {
2613
2614
  c = !1;
2614
2615
  const { origin: d } = u;
2615
- if (!D(d) || d.isIsolated() || (a = u, !o || !d.isInline())) break;
2616
+ if (!I(d) || d.isIsolated() || (a = u, !o || !d.isInline())) break;
2616
2617
  }
2617
- if (c) for (const u of Ts(s).iterNodeCarets(e === "extend" ? "shadowRoot" : "root")) {
2618
+ if (c) for (const u of vs(s).iterNodeCarets(e === "extend" ? "shadowRoot" : "root")) {
2618
2619
  if (fe(u)) u.origin.isInline() || (a = u);
2619
2620
  else {
2620
2621
  if (k(u.origin)) continue;
2621
- D(u.origin) && !u.origin.isInline() && (a = u);
2622
+ I(u.origin) && !u.origin.isInline() && (a = u);
2622
2623
  }
2623
2624
  break;
2624
2625
  }
2625
2626
  }
2626
2627
  if (a === s) return !1;
2627
- if (l && !o && D(a.origin) && a.origin.isKeyboardSelectable()) {
2628
- const u = is();
2628
+ if (l && !o && I(a.origin) && a.origin.isKeyboardSelectable()) {
2629
+ const u = ss();
2629
2630
  return u.add(a.origin.getKey()), re(u), !0;
2630
2631
  }
2631
2632
  return a = ue(a), l && wt(n.anchor, a), wt(n.focus, a), c || !o;
2632
2633
  }
2633
- let J = null, K = null, X = !1, Dn = !1, Vt = 0;
2634
+ let J = null, K = null, X = !1, In = !1, Vt = 0;
2634
2635
  const si = { characterData: !0, childList: !0, subtree: !0 };
2635
2636
  function Pt() {
2636
2637
  return X || J !== null && J._readOnly;
2637
2638
  }
2638
2639
  function H() {
2639
- X && b(13);
2640
+ X && T(13);
2640
2641
  }
2641
- function os() {
2642
- Vt > 99 && b(14);
2642
+ function ls() {
2643
+ Vt > 99 && T(14);
2643
2644
  }
2644
2645
  function Le() {
2645
- return J === null && b(195, ls()), J;
2646
+ return J === null && T(195, as()), J;
2646
2647
  }
2647
2648
  function B() {
2648
- return K === null && b(196, ls()), K;
2649
+ return K === null && T(196, as()), K;
2649
2650
  }
2650
- function ls() {
2651
+ function as() {
2651
2652
  let n = 0;
2652
2653
  const e = /* @__PURE__ */ new Set(), t = xn.version;
2653
2654
  if (typeof window < "u") for (const i of document.querySelectorAll("[contenteditable]")) {
@@ -2661,13 +2662,13 @@ function ls() {
2661
2662
  let r = ` Detected on the page: ${n} compatible editor(s) with version ${t}`;
2662
2663
  return e.size && (r += ` and incompatible editors with versions ${Array.from(e).join(", ")}`), r;
2663
2664
  }
2664
- function Bo() {
2665
+ function Wo() {
2665
2666
  return K;
2666
2667
  }
2667
2668
  function oi(n, e, t) {
2668
2669
  const r = e.__type, i = function(l, a) {
2669
2670
  const c = l._nodes.get(a);
2670
- return c === void 0 && b(30, a), c;
2671
+ return c === void 0 && T(30, a), c;
2671
2672
  }(n, r);
2672
2673
  let s = t.get(r);
2673
2674
  s === void 0 && (s = Array.from(i.transforms), t.set(r, s));
@@ -2677,21 +2678,21 @@ function oi(n, e, t) {
2677
2678
  function li(n, e) {
2678
2679
  return n !== void 0 && n.__key !== e && n.isAttached();
2679
2680
  }
2680
- function as(n, e) {
2681
+ function cs(n, e) {
2681
2682
  if (!e) return;
2682
2683
  const t = n._updateTags;
2683
2684
  let r = e;
2684
2685
  Array.isArray(e) || (r = [e]);
2685
2686
  for (const i of r) t.add(i);
2686
2687
  }
2687
- function Al(n) {
2688
+ function Ol(n) {
2688
2689
  return pr(n, B()._nodes);
2689
2690
  }
2690
2691
  function pr(n, e) {
2691
2692
  const t = n.type, r = e.get(t);
2692
- r === void 0 && b(17, t);
2693
+ r === void 0 && T(17, t);
2693
2694
  const i = r.klass;
2694
- n.type !== i.getType() && b(18, i.name);
2695
+ n.type !== i.getType() && T(18, i.name);
2695
2696
  const s = i.importJSON(n), o = n.children;
2696
2697
  if (k(s) && Array.isArray(o)) for (let l = 0; l < o.length; l++) {
2697
2698
  const a = pr(o[l], e);
@@ -2716,11 +2717,11 @@ function xe(n, e) {
2716
2717
  if (n._pendingEditorState = null, n._editorState = t, !i && a && _ !== null) {
2717
2718
  K = n, J = t, X = !1, n._updating = !0;
2718
2719
  try {
2719
- const S = n._dirtyType, N = n._dirtyElements, T = n._dirtyLeaves;
2720
- _.disconnect(), h = ro(s, t, n, S, N, T);
2720
+ const S = n._dirtyType, N = n._dirtyElements, b = n._dirtyLeaves;
2721
+ _.disconnect(), h = io(s, t, n, S, N, b);
2721
2722
  } catch (S) {
2722
- if (S instanceof Error && n._onError(S), Dn) throw S;
2723
- return ds(n, null, r, t), Oi(n), n._dirtyType = nt, Dn = !0, xe(n, s), void (Dn = !1);
2723
+ if (S instanceof Error && n._onError(S), In) throw S;
2724
+ return hs(n, null, r, t), Mi(n), n._dirtyType = nt, In = !0, xe(n, s), void (In = !1);
2724
2725
  } finally {
2725
2726
  _.observe(r, si), n._updating = f, J = c, X = u, K = d;
2726
2727
  }
@@ -2728,11 +2729,11 @@ function xe(n, e) {
2728
2729
  t._readOnly || (t._readOnly = !0);
2729
2730
  const p = n._dirtyLeaves, g = n._dirtyElements, x = n._normalizedNodes, m = n._updateTags, y = n._deferred;
2730
2731
  a && (n._dirtyType = ze, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), function(S, N) {
2731
- const T = S._decorators;
2732
- let C = S._pendingDecorators || T;
2732
+ const b = S._decorators;
2733
+ let C = S._pendingDecorators || b;
2733
2734
  const F = N._nodeMap;
2734
2735
  let O;
2735
- for (O in C) F.has(O) || (C === T && (C = ms(S)), delete C[O]);
2736
+ for (O in C) F.has(O) || (C === b && (C = ys(S)), delete C[O]);
2736
2737
  }(n, t);
2737
2738
  const v = i ? null : Ce(ie(n));
2738
2739
  if (n._editable && v !== null && (a || l === null || l.dirty) && r !== null && !m.has("skip-dom-selection")) {
@@ -2740,23 +2741,23 @@ function xe(n, e) {
2740
2741
  try {
2741
2742
  if (_ !== null && _.disconnect(), a || l === null || l.dirty) {
2742
2743
  const S = n._blockCursorElement;
2743
- S !== null && rr(S, n, r), Do(o, l, n, v, m, r);
2744
+ S !== null && rr(S, n, r), zo(o, l, n, v, m, r);
2744
2745
  }
2745
- (function(S, N, T) {
2746
+ (function(S, N, b) {
2746
2747
  let C = S._blockCursorElement;
2747
- if (L(T) && T.isCollapsed() && T.anchor.type === "element" && N.contains(document.activeElement)) {
2748
- const F = T.anchor, O = F.getNode(), W = F.offset;
2749
- let I = !1, A = null;
2748
+ if (L(b) && b.isCollapsed() && b.anchor.type === "element" && N.contains(document.activeElement)) {
2749
+ const F = b.anchor, O = F.getNode(), W = F.offset;
2750
+ let D = !1, A = null;
2750
2751
  if (W === O.getChildrenSize())
2751
- Bn(O.getChildAtIndex(W - 1)) && (I = !0);
2752
+ Bn(O.getChildAtIndex(W - 1)) && (D = !0);
2752
2753
  else {
2753
2754
  const z = O.getChildAtIndex(W);
2754
2755
  if (z !== null && Bn(z)) {
2755
2756
  const $ = z.getPreviousSibling();
2756
- ($ === null || Bn($)) && (I = !0, A = S.getElementByKey(z.__key));
2757
+ ($ === null || Bn($)) && (D = !0, A = S.getElementByKey(z.__key));
2757
2758
  }
2758
2759
  }
2759
- if (I) {
2760
+ if (D) {
2760
2761
  const z = S.getElementByKey(O.__key);
2761
2762
  return C === null && (S._blockCursorElement = C = function($) {
2762
2763
  const he = $.theme, ge = document.createElement("div");
@@ -2779,33 +2780,33 @@ function xe(n, e) {
2779
2780
  _ !== null && _.observe(r, si), K = d, J = c;
2780
2781
  }
2781
2782
  }
2782
- h !== null && function(S, N, T, C, F) {
2783
+ h !== null && function(S, N, b, C, F) {
2783
2784
  const O = Array.from(S._listeners.mutation), W = O.length;
2784
- for (let I = 0; I < W; I++) {
2785
- const [A, z] = O[I], $ = N.get(z);
2786
- $ !== void 0 && A($, { dirtyLeaves: C, prevEditorState: F, updateTags: T });
2785
+ for (let D = 0; D < W; D++) {
2786
+ const [A, z] = O[D], $ = N.get(z);
2787
+ $ !== void 0 && A($, { dirtyLeaves: C, prevEditorState: F, updateTags: b });
2787
2788
  }
2788
- }(n, h, m, p, s), L(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(Ri, void 0);
2789
+ }(n, h, m, p, s), L(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(Ki, void 0);
2789
2790
  const w = n._pendingDecorators;
2790
- w !== null && (n._decorators = w, n._pendingDecorators = null, yt("decorator", n, !0, w)), function(S, N, T) {
2791
- const C = di(N), F = di(T);
2791
+ w !== null && (n._decorators = w, n._pendingDecorators = null, yt("decorator", n, !0, w)), function(S, N, b) {
2792
+ const C = hi(N), F = hi(b);
2792
2793
  C !== F && yt("textcontent", S, !0, F);
2793
2794
  }(n, e || s, t), yt("update", n, !0, { dirtyElements: g, dirtyLeaves: p, editorState: t, mutatedNodes: h, normalizedNodes: x, prevEditorState: e || s, tags: m }), function(S, N) {
2794
2795
  if (S._deferred = [], N.length !== 0) {
2795
- const T = S._updating;
2796
+ const b = S._updating;
2796
2797
  S._updating = !0;
2797
2798
  try {
2798
2799
  for (let C = 0; C < N.length; C++) N[C]();
2799
2800
  } finally {
2800
- S._updating = T;
2801
+ S._updating = b;
2801
2802
  }
2802
2803
  }
2803
2804
  }(n, y), function(S) {
2804
2805
  const N = S._updates;
2805
2806
  if (N.length !== 0) {
2806
- const T = N.shift();
2807
- if (T) {
2808
- const [C, F] = T;
2807
+ const b = N.shift();
2808
+ if (b) {
2809
+ const [C, F] = b;
2809
2810
  mr(S, C, F);
2810
2811
  }
2811
2812
  }
@@ -2821,11 +2822,11 @@ function yt(n, e, t, ...r) {
2821
2822
  e._updating = i;
2822
2823
  }
2823
2824
  }
2824
- function cs(n, e, t) {
2825
+ function us(n, e, t) {
2825
2826
  if (n._updating === !1 || K !== n) {
2826
2827
  let i = !1;
2827
2828
  return n.update(() => {
2828
- i = cs(n, e, t);
2829
+ i = us(n, e, t);
2829
2830
  }), i;
2830
2831
  }
2831
2832
  const r = Cr(n);
@@ -2852,9 +2853,9 @@ function ci(n, e) {
2852
2853
  if (o !== void 0) {
2853
2854
  if (l = o.onUpdate, o.skipTransforms && (r = !0), o.discrete) {
2854
2855
  const a = n._pendingEditorState;
2855
- a === null && b(191), a._flushSync = !0;
2856
+ a === null && T(191), a._flushSync = !0;
2856
2857
  }
2857
- l && n._deferred.push(l), as(n, o.tag);
2858
+ l && n._deferred.push(l), cs(n, o.tag);
2858
2859
  }
2859
2860
  s();
2860
2861
  }
@@ -2864,10 +2865,10 @@ function ci(n, e) {
2864
2865
  function mr(n, e, t) {
2865
2866
  const r = n._updateTags;
2866
2867
  let i, s = !1, o = !1;
2867
- t !== void 0 && (i = t.onUpdate, as(n, t.tag), s = t.skipTransforms || !1, o = t.discrete || !1), i && n._deferred.push(i);
2868
+ t !== void 0 && (i = t.onUpdate, cs(n, t.tag), s = t.skipTransforms || !1, o = t.discrete || !1), i && n._deferred.push(i);
2868
2869
  const l = n._editorState;
2869
2870
  let a = n._pendingEditorState, c = !1;
2870
- (a === null || a._readOnly) && (a = n._pendingEditorState = us(a || l), c = !0), a._flushSync = o;
2871
+ (a === null || a._readOnly) && (a = n._pendingEditorState = fs(a || l), c = !0), a._flushSync = o;
2871
2872
  const u = J, d = X, f = K, _ = n._updating;
2872
2873
  J = a, X = !1, n._updating = !0, K = n;
2873
2874
  const h = n._headless || n.getRootElement() === null;
@@ -2881,27 +2882,27 @@ function mr(n, e, t) {
2881
2882
  const v = y.getEditorState()._selection, w = m._selection;
2882
2883
  if (L(w)) {
2883
2884
  const S = w.anchor, N = w.focus;
2884
- let T;
2885
- if (S.type === "text" && (T = S.getNode(), T.selectionTransform(v, w)), N.type === "text") {
2885
+ let b;
2886
+ if (S.type === "text" && (b = S.getNode(), b.selectionTransform(v, w)), N.type === "text") {
2886
2887
  const C = N.getNode();
2887
- T !== C && C.selectionTransform(v, w);
2888
+ b !== C && C.selectionTransform(v, w);
2888
2889
  }
2889
2890
  }
2890
2891
  }(a, n), n._dirtyType !== ze && (s ? function(m, y) {
2891
2892
  const v = y._dirtyLeaves, w = m._nodeMap;
2892
2893
  for (const S of v) {
2893
2894
  const N = w.get(S);
2894
- P(N) && N.isAttached() && N.isSimpleText() && !N.isUnmergeable() && Dr(N);
2895
+ P(N) && N.isAttached() && N.isSimpleText() && !N.isUnmergeable() && Ir(N);
2895
2896
  }
2896
2897
  }(a, n) : function(m, y) {
2897
- const v = y._dirtyLeaves, w = y._dirtyElements, S = m._nodeMap, N = ve(), T = /* @__PURE__ */ new Map();
2898
+ const v = y._dirtyLeaves, w = y._dirtyElements, S = m._nodeMap, N = ve(), b = /* @__PURE__ */ new Map();
2898
2899
  let C = v, F = C.size, O = w, W = O.size;
2899
2900
  for (; F > 0 || W > 0; ) {
2900
2901
  if (F > 0) {
2901
2902
  y._dirtyLeaves = /* @__PURE__ */ new Set();
2902
- for (const I of C) {
2903
- const A = S.get(I);
2904
- P(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() && Dr(A), A !== void 0 && li(A, N) && oi(y, A, T), v.add(I);
2903
+ for (const D of C) {
2904
+ const A = S.get(D);
2905
+ P(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() && Ir(A), A !== void 0 && li(A, N) && oi(y, A, b), v.add(D);
2905
2906
  }
2906
2907
  if (C = y._dirtyLeaves, F = C.size, F > 0) {
2907
2908
  Vt++;
@@ -2909,22 +2910,22 @@ function mr(n, e, t) {
2909
2910
  }
2910
2911
  }
2911
2912
  y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements = /* @__PURE__ */ new Map(), O.delete("root") && O.set("root", !0);
2912
- for (const I of O) {
2913
- const A = I[0], z = I[1];
2913
+ for (const D of O) {
2914
+ const A = D[0], z = D[1];
2914
2915
  if (w.set(A, z), !z) continue;
2915
2916
  const $ = S.get(A);
2916
- $ !== void 0 && li($, N) && oi(y, $, T);
2917
+ $ !== void 0 && li($, N) && oi(y, $, b);
2917
2918
  }
2918
2919
  C = y._dirtyLeaves, F = C.size, O = y._dirtyElements, W = O.size, Vt++;
2919
2920
  }
2920
2921
  y._dirtyLeaves = v, y._dirtyElements = w;
2921
2922
  }(a, n), ci(n), function(m, y, v, w) {
2922
- const S = m._nodeMap, N = y._nodeMap, T = [];
2923
+ const S = m._nodeMap, N = y._nodeMap, b = [];
2923
2924
  for (const [C] of w) {
2924
2925
  const F = N.get(C);
2925
- F !== void 0 && (F.isAttached() || (k(F) && Fi(F, C, S, N, T, w), S.has(C) || w.delete(C), T.push(C)));
2926
+ F !== void 0 && (F.isAttached() || (k(F) && Li(F, C, S, N, b, w), S.has(C) || w.delete(C), b.push(C)));
2926
2927
  }
2927
- for (const C of T) N.delete(C);
2928
+ for (const C of b) N.delete(C);
2928
2929
  for (const C of v) {
2929
2930
  const F = N.get(C);
2930
2931
  F === void 0 || F.isAttached() || (S.has(C) || v.delete(C), N.delete(C));
@@ -2933,7 +2934,7 @@ function mr(n, e, t) {
2933
2934
  const x = a._selection;
2934
2935
  if (L(x)) {
2935
2936
  const m = a._nodeMap, y = x.anchor.key, v = x.focus.key;
2936
- m.get(y) !== void 0 && m.get(v) !== void 0 || b(19);
2937
+ m.get(y) !== void 0 && m.get(v) !== void 0 || T(19);
2937
2938
  } else _r(x) && x._nodes.size === 0 && (a._selection = null);
2938
2939
  } catch (g) {
2939
2940
  return g instanceof Error && n._onError(g), n._pendingEditorState = l, n._dirtyType = nt, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements.clear(), void xe(n);
@@ -2946,7 +2947,7 @@ function mr(n, e, t) {
2946
2947
  if (y.dirty || !y.is(m)) return !0;
2947
2948
  } else if (m !== null) return !0;
2948
2949
  return !1;
2949
- }(a, n) ? a._flushSync ? (a._flushSync = !1, xe(n)) : c && jo(() => {
2950
+ }(a, n) ? a._flushSync ? (a._flushSync = !1, xe(n)) : c && $o(() => {
2950
2951
  xe(n);
2951
2952
  }) : (a._flushSync = !1, c && (r.clear(), n._deferred = [], n._pendingEditorState = null));
2952
2953
  }
@@ -2968,13 +2969,13 @@ class xt {
2968
2969
  }
2969
2970
  insertChild(e) {
2970
2971
  const t = this.before || this.getManagedLineBreak();
2971
- return t !== null && t.parentElement !== this.element && b(222), this.element.insertBefore(e, t), this;
2972
+ return t !== null && t.parentElement !== this.element && T(222), this.element.insertBefore(e, t), this;
2972
2973
  }
2973
2974
  removeChild(e) {
2974
- return e.parentElement !== this.element && b(223), this.element.removeChild(e), this;
2975
+ return e.parentElement !== this.element && T(223), this.element.removeChild(e), this;
2975
2976
  }
2976
2977
  replaceChild(e, t) {
2977
- return t.parentElement !== this.element && b(224), this.element.replaceChild(e, t), this;
2978
+ return t.parentElement !== this.element && T(224), this.element.replaceChild(e, t), this;
2978
2979
  }
2979
2980
  getFirstChild() {
2980
2981
  const e = this.after ? this.after.nextSibling : this.element.firstChild;
@@ -3042,7 +3043,7 @@ function ui(n, e) {
3042
3043
  for (let s = r.previousSibling; s !== null; s = s.previousSibling) i++;
3043
3044
  t.push(i);
3044
3045
  }
3045
- return r !== n && b(225), t.reverse();
3046
+ return r !== n && T(225), t.reverse();
3046
3047
  }
3047
3048
  class mn extends gn {
3048
3049
  constructor(e) {
@@ -3056,7 +3057,7 @@ class mn extends gn {
3056
3057
  }
3057
3058
  getFormatType() {
3058
3059
  const e = this.getFormat();
3059
- return Us[e] || "";
3060
+ return Vs[e] || "";
3060
3061
  }
3061
3062
  getStyle() {
3062
3063
  return this.getLatest().__style;
@@ -3135,7 +3136,7 @@ class mn extends gn {
3135
3136
  }
3136
3137
  getFirstChildOrThrow() {
3137
3138
  const e = this.getFirstChild();
3138
- return e === null && b(45, this.__key), e;
3139
+ return e === null && T(45, this.__key), e;
3139
3140
  }
3140
3141
  getLastChild() {
3141
3142
  const e = this.getLatest().__last;
@@ -3143,7 +3144,7 @@ class mn extends gn {
3143
3144
  }
3144
3145
  getLastChildOrThrow() {
3145
3146
  const e = this.getLastChild();
3146
- return e === null && b(96, this.__key), e;
3147
+ return e === null && T(96, this.__key), e;
3147
3148
  }
3148
3149
  getChildAtIndex(e) {
3149
3150
  const t = this.getChildrenSize();
@@ -3218,7 +3219,7 @@ class mn extends gn {
3218
3219
  }
3219
3220
  i === void 0 && (i = o), s === void 0 && (s = o);
3220
3221
  const l = this.__key;
3221
- return L(r) ? (r.anchor.set(l, i, "element"), r.focus.set(l, s, "element"), r.dirty = !0, r) : rs(l, i, l, s, "element", "element");
3222
+ return L(r) ? (r.anchor.set(l, i, "element"), r.focus.set(l, s, "element"), r.dirty = !0, r) : is(l, i, l, s, "element", "element");
3222
3223
  }
3223
3224
  selectStart() {
3224
3225
  const e = this.getFirstDescendant();
@@ -3258,7 +3259,7 @@ class mn extends gn {
3258
3259
  }
3259
3260
  splice(e, t, r) {
3260
3261
  const i = r.length, s = this.getChildrenSize(), o = this.getWritable();
3261
- e + t <= s || b(226, String(e), String(t), String(s));
3262
+ e + t <= s || T(226, String(e), String(t), String(s));
3262
3263
  const l = o.__key, a = [], c = [], u = this.getChildAtIndex(e + t);
3263
3264
  let d = null, f = s - t + i;
3264
3265
  if (e !== 0) if (e === s) d = this.getLastChild();
@@ -3269,9 +3270,9 @@ class mn extends gn {
3269
3270
  if (t > 0) {
3270
3271
  let h = d === null ? this.getFirstChild() : d.getNextSibling();
3271
3272
  for (let p = 0; p < t; p++) {
3272
- h === null && b(100);
3273
+ h === null && T(100);
3273
3274
  const g = h.getNextSibling(), x = h.__key;
3274
- De(h.getWritable()), c.push(x), h = g;
3275
+ Ie(h.getWritable()), c.push(x), h = g;
3275
3276
  }
3276
3277
  }
3277
3278
  let _ = d;
@@ -3279,14 +3280,14 @@ class mn extends gn {
3279
3280
  const p = r[h];
3280
3281
  _ !== null && p.is(_) && (d = _ = _.getPreviousSibling());
3281
3282
  const g = p.getWritable();
3282
- g.__parent === l && f--, De(g);
3283
+ g.__parent === l && f--, Ie(g);
3283
3284
  const x = p.__key;
3284
3285
  if (_ === null) o.__first = x, g.__prev = null;
3285
3286
  else {
3286
3287
  const m = _.getWritable();
3287
3288
  m.__next = x, g.__prev = m.__key;
3288
3289
  }
3289
- p.__key === l && b(76), g.__parent = l, a.push(x), _ = p;
3290
+ p.__key === l && T(76), g.__parent = l, a.push(x), _ = p;
3290
3291
  }
3291
3292
  if (e + t === s)
3292
3293
  _ !== null && (_.getWritable().__next = null, o.__last = _.__key);
@@ -3311,7 +3312,7 @@ class mn extends gn {
3311
3312
  }
3312
3313
  exportDOM(e) {
3313
3314
  const { element: t } = super.exportDOM(e);
3314
- if (ee(t)) {
3315
+ if (Y(t)) {
3315
3316
  const r = this.getIndent();
3316
3317
  r > 0 && (t.style.paddingInlineStart = 40 * r + "px");
3317
3318
  const i = this.getDirection();
@@ -3389,9 +3390,9 @@ function fi(n, e, t) {
3389
3390
  }
3390
3391
  return !1;
3391
3392
  }
3392
- class Wo extends gn {
3393
+ class Ro extends gn {
3393
3394
  decorate(e, t) {
3394
- b(47);
3395
+ T(47);
3395
3396
  }
3396
3397
  isIsolated() {
3397
3398
  return !1;
@@ -3403,8 +3404,8 @@ class Wo extends gn {
3403
3404
  return !0;
3404
3405
  }
3405
3406
  }
3406
- function D(n) {
3407
- return n instanceof Wo;
3407
+ function I(n) {
3408
+ return n instanceof Ro;
3408
3409
  }
3409
3410
  class Ft extends mn {
3410
3411
  static getType() {
@@ -3417,55 +3418,55 @@ class Ft extends mn {
3417
3418
  super("root"), this.__cachedText = null;
3418
3419
  }
3419
3420
  getTopLevelElementOrThrow() {
3420
- b(51);
3421
+ T(51);
3421
3422
  }
3422
3423
  getTextContent() {
3423
3424
  const e = this.__cachedText;
3424
3425
  return !Pt() && B()._dirtyType !== ze || e === null ? super.getTextContent() : e;
3425
3426
  }
3426
3427
  remove() {
3427
- b(52);
3428
+ T(52);
3428
3429
  }
3429
3430
  replace(e) {
3430
- b(53);
3431
+ T(53);
3431
3432
  }
3432
3433
  insertBefore(e) {
3433
- b(54);
3434
+ T(54);
3434
3435
  }
3435
3436
  insertAfter(e) {
3436
- b(55);
3437
+ T(55);
3437
3438
  }
3438
3439
  updateDOM(e, t) {
3439
3440
  return !1;
3440
3441
  }
3441
3442
  splice(e, t, r) {
3442
- for (const i of r) k(i) || D(i) || b(282);
3443
+ for (const i of r) k(i) || I(i) || T(282);
3443
3444
  return super.splice(e, t, r);
3444
3445
  }
3445
3446
  static importJSON(e) {
3446
- return Z().updateFromJSON(e);
3447
+ return ee().updateFromJSON(e);
3447
3448
  }
3448
3449
  collapseAtStart() {
3449
3450
  return !0;
3450
3451
  }
3451
3452
  }
3452
- function Y(n) {
3453
+ function Z(n) {
3453
3454
  return n instanceof Ft;
3454
3455
  }
3455
- function us(n) {
3456
+ function fs(n) {
3456
3457
  return new yn(new Map(n._nodeMap));
3457
3458
  }
3458
3459
  function yr() {
3459
3460
  return new yn(/* @__PURE__ */ new Map([["root", new Ft()]]));
3460
3461
  }
3461
- function fs(n) {
3462
+ function ds(n) {
3462
3463
  const e = n.exportJSON(), t = n.constructor;
3463
- if (e.type !== t.getType() && b(130, t.name), k(n)) {
3464
+ if (e.type !== t.getType() && T(130, t.name), k(n)) {
3464
3465
  const r = e.children;
3465
- Array.isArray(r) || b(59, t.name);
3466
+ Array.isArray(r) || T(59, t.name);
3466
3467
  const i = n.getChildren();
3467
3468
  for (let s = 0; s < i.length; s++) {
3468
- const o = fs(i[s]);
3469
+ const o = ds(i[s]);
3469
3470
  r.push(o);
3470
3471
  }
3471
3472
  }
@@ -3486,10 +3487,10 @@ class yn {
3486
3487
  return t._readOnly = !0, t;
3487
3488
  }
3488
3489
  toJSON() {
3489
- return ai(null, this, () => ({ root: fs(Z()) }));
3490
+ return ai(null, this, () => ({ root: ds(ee()) }));
3490
3491
  }
3491
3492
  }
3492
- class Ro extends mn {
3493
+ class Ko extends mn {
3493
3494
  static getType() {
3494
3495
  return "artificial";
3495
3496
  }
@@ -3512,11 +3513,11 @@ class Lt extends mn {
3512
3513
  return !1;
3513
3514
  }
3514
3515
  static importDOM() {
3515
- return { p: (e) => ({ conversion: Ko, priority: 0 }) };
3516
+ return { p: (e) => ({ conversion: Jo, priority: 0 }) };
3516
3517
  }
3517
3518
  exportDOM(e) {
3518
3519
  const { element: t } = super.exportDOM(e);
3519
- if (ee(t)) {
3520
+ if (Y(t)) {
3520
3521
  this.isEmpty() && t.append(document.createElement("br"));
3521
3522
  const r = this.getFormatType();
3522
3523
  t.style.textAlign = r;
@@ -3544,25 +3545,25 @@ class Lt extends mn {
3544
3545
  return !1;
3545
3546
  }
3546
3547
  }
3547
- function Ko(n) {
3548
+ function Jo(n) {
3548
3549
  const e = Ne();
3549
- return n.style && (e.setFormat(n.style.textAlign), nl(n, e)), { node: e };
3550
+ return n.style && (e.setFormat(n.style.textAlign), rl(n, e)), { node: e };
3550
3551
  }
3551
3552
  function Ne() {
3552
3553
  return Tn(new Lt());
3553
3554
  }
3554
- function Ol(n) {
3555
+ function Ml(n) {
3555
3556
  return n instanceof Lt;
3556
3557
  }
3557
- const Ml = 0, Il = 1, Dl = 3, zl = 4;
3558
- function ds(n, e, t, r) {
3558
+ const Dl = 0, Il = 1, zl = 3, Bl = 4;
3559
+ function hs(n, e, t, r) {
3559
3560
  const i = n._keyToDOMMap;
3560
3561
  i.clear(), n._editorState = yr(), n._pendingEditorState = r, n._compositionKey = null, n._dirtyType = ze, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements.clear(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set(), n._updates = [], n._blockCursorElement = null;
3561
3562
  const s = n._observer;
3562
3563
  s !== null && (s.disconnect(), n._observer = null), e !== null && (e.textContent = ""), t !== null && (t.textContent = "", i.set("root", t));
3563
3564
  }
3564
- function Bl(n) {
3565
- const e = n || {}, t = Bo(), r = e.theme || {}, i = n === void 0 ? t : e.parentEditor || null, s = e.disableEvents || !1, o = yr(), l = e.namespace || (i !== null ? i._config.namespace : Ss()), a = e.editorState, c = [Ft, lt, Nt, Et, Lt, Ro, ...e.nodes || []], { onError: u, html: d } = e, f = e.editable === void 0 || e.editable;
3565
+ function Wl(n) {
3566
+ const e = n || {}, t = Wo(), r = e.theme || {}, i = n === void 0 ? t : e.parentEditor || null, s = e.disableEvents || !1, o = yr(), l = e.namespace || (i !== null ? i._config.namespace : Cs()), a = e.editorState, c = [Ft, lt, Nt, Et, Lt, Ko, ...e.nodes || []], { onError: u, html: d } = e, f = e.editable === void 0 || e.editable;
3566
3567
  let _;
3567
3568
  if (n === void 0 && t !== null) _ = t._nodes;
3568
3569
  else {
@@ -3591,12 +3592,12 @@ function Bl(n) {
3591
3592
  const S = w.call(v.klass);
3592
3593
  S !== null && y(S);
3593
3594
  }), g && y(g), x;
3594
- }(_, d ? d.import : void 0), f);
3595
+ }(_, d ? d.import : void 0), f, n);
3595
3596
  return a !== void 0 && (h._pendingEditorState = a, h._dirtyType = nt), h;
3596
3597
  }
3597
3598
  class xn {
3598
- constructor(e, t, r, i, s, o, l) {
3599
- this._parentEditor = t, this._rootElement = null, this._editorState = e, this._pendingEditorState = null, this._compositionKey = null, this._deferred = [], this._keyToDOMMap = /* @__PURE__ */ new Map(), this._updates = [], this._updating = !1, this._listeners = { decorator: /* @__PURE__ */ new Set(), editable: /* @__PURE__ */ new Set(), mutation: /* @__PURE__ */ new Map(), root: /* @__PURE__ */ new Set(), textcontent: /* @__PURE__ */ new Set(), update: /* @__PURE__ */ new Set() }, this._commands = /* @__PURE__ */ new Map(), this._config = i, this._nodes = r, this._decorators = {}, this._pendingDecorators = null, this._dirtyType = ze, this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._dirtyElements = /* @__PURE__ */ new Map(), this._normalizedNodes = /* @__PURE__ */ new Set(), this._updateTags = /* @__PURE__ */ new Set(), this._observer = null, this._key = Ss(), this._onError = s, this._htmlConversions = o, this._editable = l, this._headless = t !== null && t._headless, this._window = null, this._blockCursorElement = null;
3599
+ constructor(e, t, r, i, s, o, l, a) {
3600
+ this._createEditorArgs = a, this._parentEditor = t, this._rootElement = null, this._editorState = e, this._pendingEditorState = null, this._compositionKey = null, this._deferred = [], this._keyToDOMMap = /* @__PURE__ */ new Map(), this._updates = [], this._updating = !1, this._listeners = { decorator: /* @__PURE__ */ new Set(), editable: /* @__PURE__ */ new Set(), mutation: /* @__PURE__ */ new Map(), root: /* @__PURE__ */ new Set(), textcontent: /* @__PURE__ */ new Set(), update: /* @__PURE__ */ new Set() }, this._commands = /* @__PURE__ */ new Map(), this._config = i, this._nodes = r, this._decorators = {}, this._pendingDecorators = null, this._dirtyType = ze, this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._dirtyElements = /* @__PURE__ */ new Map(), this._normalizedNodes = /* @__PURE__ */ new Set(), this._updateTags = /* @__PURE__ */ new Set(), this._observer = null, this._key = Cs(), this._onError = s, this._htmlConversions = o, this._editable = l, this._headless = t !== null && t._headless, this._window = null, this._blockCursorElement = null;
3600
3601
  }
3601
3602
  isComposing() {
3602
3603
  return this._compositionKey != null;
@@ -3632,11 +3633,11 @@ class xn {
3632
3633
  };
3633
3634
  }
3634
3635
  registerCommand(e, t, r) {
3635
- r === void 0 && b(35);
3636
+ r === void 0 && T(35);
3636
3637
  const i = this._commands;
3637
3638
  i.has(e) || i.set(e, [/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()]);
3638
3639
  const s = i.get(e);
3639
- s === void 0 && b(36, String(e));
3640
+ s === void 0 && T(36, String(e));
3640
3641
  const o = s[r];
3641
3642
  return o.add(t), () => {
3642
3643
  o.delete(t), s.every((l) => l.size === 0) && i.delete(e);
@@ -3652,14 +3653,14 @@ class xn {
3652
3653
  }
3653
3654
  getRegisteredNode(e) {
3654
3655
  const t = this._nodes.get(e.getType());
3655
- return t === void 0 && b(37, e.name), t;
3656
+ return t === void 0 && T(37, e.name), t;
3656
3657
  }
3657
3658
  resolveRegisteredNodeAfterReplacements(e) {
3658
3659
  for (; e.replaceWithKlass; ) e = this.getRegisteredNode(e.replaceWithKlass);
3659
3660
  return e;
3660
3661
  }
3661
3662
  initializeMutationListener(e, t) {
3662
- const r = this._editorState, i = Ci(r).get(t.getType());
3663
+ const r = this._editorState, i = ki(r).get(t.getType());
3663
3664
  if (!i) return;
3664
3665
  const s = /* @__PURE__ */ new Map();
3665
3666
  for (const o of i.keys()) s.set(o, "created");
@@ -3676,7 +3677,7 @@ class xn {
3676
3677
  i.push(o);
3677
3678
  }
3678
3679
  return function(o, l) {
3679
- const a = Ci(o.getEditorState()), c = [];
3680
+ const a = ki(o.getEditorState()), c = [];
3680
3681
  for (const u of l) {
3681
3682
  const d = a.get(u);
3682
3683
  d && c.push(d);
@@ -3713,12 +3714,12 @@ class xn {
3713
3714
  const t = this._rootElement;
3714
3715
  if (e !== t) {
3715
3716
  const r = et(this._config.theme, "root"), i = this._pendingEditorState || this._editorState;
3716
- if (this._rootElement = e, ds(this, t, e, i), t !== null && (this._config.disableEvents || vo(t), r != null && t.classList.remove(...r)), e !== null) {
3717
+ if (this._rootElement = e, hs(this, t, e, i), t !== null && (this._config.disableEvents || wo(t), r != null && t.classList.remove(...r)), e !== null) {
3717
3718
  const s = vr(e), o = e.style;
3718
- o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = s, this._dirtyType = nt, Oi(this), this._updateTags.add("history-merge"), xe(this), this._config.disableEvents || function(l, a) {
3719
+ o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = s, this._dirtyType = nt, Mi(this), this._updateTags.add("history-merge"), xe(this), this._config.disableEvents || function(l, a) {
3719
3720
  const c = l.ownerDocument, u = ln.get(c);
3720
- (u === void 0 || u < 1) && c.addEventListener("selectionchange", Yi), ln.set(c, (u || 0) + 1), l.__lexicalEditor = a;
3721
- const d = Xi(l);
3721
+ (u === void 0 || u < 1) && c.addEventListener("selectionchange", Zi), ln.set(c, (u || 0) + 1), l.__lexicalEditor = a;
3722
+ const d = Yi(l);
3722
3723
  for (let f = 0; f < Xn.length; f++) {
3723
3724
  const [_, h] = Xn[f], p = typeof h == "function" ? (g) => {
3724
3725
  Ur(g) || ($r(g), (a.isEditable() || _ === "click") && h(g, a));
@@ -3728,23 +3729,23 @@ class xn {
3728
3729
  const x = a.isEditable();
3729
3730
  switch (_) {
3730
3731
  case "cut":
3731
- return x && E(a, Ui, g);
3732
+ return x && E(a, Vi, g);
3732
3733
  case "copy":
3733
- return E(a, $i, g);
3734
+ return E(a, Ui, g);
3734
3735
  case "paste":
3735
- return x && E(a, Ki, g);
3736
+ return x && E(a, Ji, g);
3736
3737
  case "dragstart":
3737
- return x && E(a, xo, g);
3738
- case "dragover":
3739
3738
  return x && E(a, So, g);
3740
- case "dragend":
3739
+ case "dragover":
3741
3740
  return x && E(a, Co, g);
3742
- case "focus":
3741
+ case "dragend":
3743
3742
  return x && E(a, ko, g);
3744
- case "blur":
3743
+ case "focus":
3745
3744
  return x && E(a, bo, g);
3745
+ case "blur":
3746
+ return x && E(a, To, g);
3746
3747
  case "drop":
3747
- return x && E(a, yo, g);
3748
+ return x && E(a, xo, g);
3748
3749
  }
3749
3750
  };
3750
3751
  l.addEventListener(_, p), d.push(() => {
@@ -3763,9 +3764,9 @@ class xn {
3763
3764
  return this._editorState;
3764
3765
  }
3765
3766
  setEditorState(e, t) {
3766
- e.isEmpty() && b(38);
3767
+ e.isEmpty() && T(38);
3767
3768
  let r = e;
3768
- r._readOnly && (r = us(e), r._selection = e._selection ? e._selection.clone() : null), Ai(this);
3769
+ r._readOnly && (r = fs(e), r._selection = e._selection ? e._selection.clone() : null), Oi(this);
3769
3770
  const i = this._pendingEditorState, s = this._updateTags, o = t !== void 0 ? t.tag : null;
3770
3771
  i === null || i.isEmpty() || (o != null && s.add(o), xe(this)), this._pendingEditorState = r, this._dirtyType = nt, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && s.add(o), this._updating || xe(this);
3771
3772
  }
@@ -3795,8 +3796,8 @@ class xn {
3795
3796
  focus(e, t = {}) {
3796
3797
  const r = this._rootElement;
3797
3798
  r !== null && (r.setAttribute("autocapitalize", "off"), ne(this, () => {
3798
- const i = M(), s = Z();
3799
- i !== null ? i.dirty = !0 : s.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? s.selectStart() : s.selectEnd()), Vo("focus"), qo(() => {
3799
+ const i = M(), s = ee();
3800
+ i !== null ? i.dirty = !0 : s.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? s.selectStart() : s.selectEnd()), qo("focus"), Ho(() => {
3800
3801
  r.removeAttribute("autocapitalize"), e && e();
3801
3802
  });
3802
3803
  }), this._pendingEditorState === null && r.removeAttribute("autocapitalize"));
@@ -3817,21 +3818,24 @@ class xn {
3817
3818
  return { editorState: this._editorState.toJSON() };
3818
3819
  }
3819
3820
  }
3820
- xn.version = "0.28.0+prod.esm";
3821
- let Jo = 1;
3822
- const jo = typeof queueMicrotask == "function" ? queueMicrotask : (n) => {
3821
+ xn.version = "0.29.0+prod.esm";
3822
+ let jo = 1;
3823
+ const $o = typeof queueMicrotask == "function" ? queueMicrotask : (n) => {
3823
3824
  Promise.resolve().then(n);
3824
3825
  };
3825
- function hs(n) {
3826
+ function di(n) {
3827
+ return I(Sr(n));
3828
+ }
3829
+ function gs(n) {
3826
3830
  const e = document.activeElement;
3827
- if (!ee(e)) return !1;
3831
+ if (!Y(e)) return !1;
3828
3832
  const t = e.nodeName;
3829
- return D(Sr(n)) && (t === "INPUT" || t === "TEXTAREA" || e.contentEditable === "true" && Cn(e) == null);
3833
+ return I(Sr(n)) && (t === "INPUT" || t === "TEXTAREA" || e.contentEditable === "true" && Cn(e) == null);
3830
3834
  }
3831
3835
  function Sn(n, e, t) {
3832
3836
  const r = n.getRootElement();
3833
3837
  try {
3834
- return r !== null && r.contains(e) && r.contains(t) && e !== null && !hs(e) && gs(e) === n;
3838
+ return r !== null && r.contains(e) && r.contains(t) && e !== null && !gs(e) && _s(e) === n;
3835
3839
  } catch {
3836
3840
  return !1;
3837
3841
  }
@@ -3839,7 +3843,7 @@ function Sn(n, e, t) {
3839
3843
  function xr(n) {
3840
3844
  return n instanceof xn;
3841
3845
  }
3842
- function gs(n) {
3846
+ function _s(n) {
3843
3847
  let e = n;
3844
3848
  for (; e != null; ) {
3845
3849
  const t = Cn(e);
@@ -3855,9 +3859,9 @@ function Qe(n) {
3855
3859
  return n.isToken() || n.isSegmented();
3856
3860
  }
3857
3861
  function ke(n) {
3858
- return Ot(n) && n.nodeType === Ms;
3862
+ return Ot(n) && n.nodeType === Ds;
3859
3863
  }
3860
- function $o(n) {
3864
+ function Uo(n) {
3861
3865
  return Ot(n) && n.nodeType === Is;
3862
3866
  }
3863
3867
  function rt(n) {
@@ -3874,16 +3878,16 @@ function un(n, e, t) {
3874
3878
  let i = n ^ r;
3875
3879
  return e === "subscript" ? i &= -65 : e === "superscript" ? i &= -33 : e === "lowercase" ? (i &= -513, i &= -1025) : e === "uppercase" ? (i &= -257, i &= -1025) : e === "capitalize" && (i &= -257, i &= -513), i;
3876
3880
  }
3877
- function Wl(n) {
3878
- return P(n) || Ze(n) || D(n);
3881
+ function Rl(n) {
3882
+ return P(n) || Ze(n) || I(n);
3879
3883
  }
3880
- function _s(n, e) {
3884
+ function ps(n, e) {
3881
3885
  if (e != null) return void (n.__key = e);
3882
- H(), os();
3883
- const t = B(), r = Le(), i = "" + Jo++;
3884
- r._nodeMap.set(i, n), k(n) ? t._dirtyElements.set(i, !0) : t._dirtyLeaves.add(i), t._cloneNotNeeded.add(i), t._dirtyType = Ni, n.__key = i;
3886
+ H(), ls();
3887
+ const t = B(), r = Le(), i = "" + jo++;
3888
+ r._nodeMap.set(i, n), k(n) ? t._dirtyElements.set(i, !0) : t._dirtyLeaves.add(i), t._cloneNotNeeded.add(i), t._dirtyType = Ei, n.__key = i;
3885
3889
  }
3886
- function De(n) {
3890
+ function Ie(n) {
3887
3891
  const e = n.getParent();
3888
3892
  if (e !== null) {
3889
3893
  const t = n.getWritable(), r = e.getWritable(), i = n.getPreviousSibling(), s = n.getNextSibling();
@@ -3915,7 +3919,7 @@ function De(n) {
3915
3919
  }
3916
3920
  }
3917
3921
  function fn(n) {
3918
- os();
3922
+ ls();
3919
3923
  const e = n.getLatest(), t = e.__parent, r = Le(), i = B(), s = r._nodeMap, o = i._dirtyElements;
3920
3924
  t !== null && function(a, c, u) {
3921
3925
  let d = a;
@@ -3927,7 +3931,7 @@ function fn(n) {
3927
3931
  }
3928
3932
  }(t, s, o);
3929
3933
  const l = e.__key;
3930
- i._dirtyType = Ni, k(n) ? o.set(l, !0) : i._dirtyLeaves.add(l);
3934
+ i._dirtyType = Ei, k(n) ? o.set(l, !0) : i._dirtyLeaves.add(l);
3931
3935
  }
3932
3936
  function V(n) {
3933
3937
  H();
@@ -3950,7 +3954,7 @@ function j(n, e) {
3950
3954
  const t = (e || Le())._nodeMap.get(n);
3951
3955
  return t === void 0 ? null : t;
3952
3956
  }
3953
- function ps(n, e) {
3957
+ function ms(n, e) {
3954
3958
  const t = kn(n, B());
3955
3959
  return t !== void 0 ? j(t, e) : null;
3956
3960
  }
@@ -3960,23 +3964,23 @@ function kn(n, e) {
3960
3964
  function Sr(n, e) {
3961
3965
  let t = n;
3962
3966
  for (; t != null; ) {
3963
- const r = ps(t, e);
3967
+ const r = ms(t, e);
3964
3968
  if (r !== null) return r;
3965
3969
  t = At(t);
3966
3970
  }
3967
3971
  return null;
3968
3972
  }
3969
- function ms(n) {
3973
+ function ys(n) {
3970
3974
  const e = n._decorators, t = Object.assign({}, e);
3971
3975
  return n._pendingDecorators = t, t;
3972
3976
  }
3973
- function di(n) {
3974
- return n.read(() => Z().getTextContent());
3977
+ function hi(n) {
3978
+ return n.read(() => ee().getTextContent());
3975
3979
  }
3976
- function Z() {
3977
- return ys(Le());
3980
+ function ee() {
3981
+ return xs(Le());
3978
3982
  }
3979
- function ys(n) {
3983
+ function xs(n) {
3980
3984
  return n._nodeMap.get("root");
3981
3985
  }
3982
3986
  function re(n) {
@@ -3996,10 +4000,10 @@ function Xe(n) {
3996
4000
  }(n, e);
3997
4001
  return t === null ? n === e.getRootElement() ? j("root") : null : j(t);
3998
4002
  }
3999
- function hi(n, e) {
4003
+ function gi(n, e) {
4000
4004
  return e ? n.getTextContentSize() : 0;
4001
4005
  }
4002
- function xs(n) {
4006
+ function Ss(n) {
4003
4007
  return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n);
4004
4008
  }
4005
4009
  function Cr(n) {
@@ -4008,10 +4012,10 @@ function Cr(n) {
4008
4012
  for (; t !== null; ) e.push(t), t = t._parentEditor;
4009
4013
  return e;
4010
4014
  }
4011
- function Ss() {
4015
+ function Cs() {
4012
4016
  return Math.random().toString(36).replace(/[^a-z]+/g, "").substring(0, 5);
4013
4017
  }
4014
- function Cs(n) {
4018
+ function ks(n) {
4015
4019
  return ke(n) ? n.nodeValue : null;
4016
4020
  }
4017
4021
  function kr(n, e, t) {
@@ -4020,7 +4024,7 @@ function kr(n, e, t) {
4020
4024
  const i = r.anchorNode;
4021
4025
  let { anchorOffset: s, focusOffset: o } = r;
4022
4026
  if (i !== null) {
4023
- let l = Cs(i);
4027
+ let l = ks(i);
4024
4028
  const a = Sr(i);
4025
4029
  if (l !== null && P(a)) {
4026
4030
  if (l === dn && t) {
@@ -4063,16 +4067,16 @@ function br(n, e, t, r, i) {
4063
4067
  }
4064
4068
  }
4065
4069
  }
4066
- function gi(n) {
4070
+ function _i(n) {
4067
4071
  return n === "ArrowLeft";
4068
4072
  }
4069
- function _i(n) {
4073
+ function pi(n) {
4070
4074
  return n === "ArrowRight";
4071
4075
  }
4072
4076
  function gt(n, e) {
4073
4077
  return se ? n : e;
4074
4078
  }
4075
- function pi(n) {
4079
+ function mi(n) {
4076
4080
  return n === "Enter";
4077
4081
  }
4078
4082
  function He(n) {
@@ -4081,11 +4085,11 @@ function He(n) {
4081
4085
  function dt(n) {
4082
4086
  return n === "Delete";
4083
4087
  }
4084
- function mi(n, e, t) {
4088
+ function yi(n, e, t) {
4085
4089
  return n.toLowerCase() === "a" && gt(e, t);
4086
4090
  }
4087
- function Rl(n) {
4088
- const e = Z();
4091
+ function Kl(n) {
4092
+ const e = ee();
4089
4093
  if (L(n)) {
4090
4094
  const t = n.anchor, r = n.focus, i = t.getNode().getTopLevelElementOrThrow().getParentOrThrow();
4091
4095
  return t.set(i.getKey(), 0, "element"), r.set(i.getKey(), i.getChildrenSize(), "element"), Jn(n), n;
@@ -4109,56 +4113,56 @@ function et(n, e) {
4109
4113
  function Tr(n, e, t, r, i) {
4110
4114
  if (t.size === 0) return;
4111
4115
  const s = r.__type, o = r.__key, l = e.get(s);
4112
- l === void 0 && b(33, s);
4116
+ l === void 0 && T(33, s);
4113
4117
  const a = l.klass;
4114
4118
  let c = n.get(a);
4115
4119
  c === void 0 && (c = /* @__PURE__ */ new Map(), n.set(a, c));
4116
4120
  const u = c.get(o), d = u === "destroyed" && i === "created";
4117
4121
  (u === void 0 || d) && c.set(o, d ? "updated" : i);
4118
4122
  }
4119
- function yi(n, e, t) {
4123
+ function xi(n, e, t) {
4120
4124
  const r = n.getParent();
4121
4125
  let i = t, s = n;
4122
4126
  return r !== null && (e && t === 0 ? (i = s.getIndexWithinParent(), s = r) : e || t !== s.getChildrenSize() || (i = s.getIndexWithinParent() + 1, s = r)), s.getChildAtIndex(e ? i - 1 : i);
4123
4127
  }
4124
- function Uo(n, e) {
4128
+ function Vo(n, e) {
4125
4129
  const t = n.offset;
4126
4130
  if (n.type === "element")
4127
- return yi(n.getNode(), e, t);
4131
+ return xi(n.getNode(), e, t);
4128
4132
  {
4129
4133
  const r = n.getNode();
4130
4134
  if (e && t === 0 || !e && t === r.getTextContentSize()) {
4131
4135
  const i = e ? r.getPreviousSibling() : r.getNextSibling();
4132
- return i === null ? yi(r.getParentOrThrow(), e, r.getIndexWithinParent() + (e ? 0 : 1)) : i;
4136
+ return i === null ? xi(r.getParentOrThrow(), e, r.getIndexWithinParent() + (e ? 0 : 1)) : i;
4133
4137
  }
4134
4138
  }
4135
4139
  return null;
4136
4140
  }
4137
- function ks(n) {
4141
+ function bs(n) {
4138
4142
  const e = ie(n).event, t = e && e.inputType;
4139
4143
  return t === "insertFromPaste" || t === "insertFromPasteAsQuotation";
4140
4144
  }
4141
4145
  function E(n, e, t) {
4142
- return cs(n, e, t);
4146
+ return us(n, e, t);
4143
4147
  }
4144
4148
  function bn(n) {
4145
- return !Y(n) && !n.isLastChild() && !n.isInline();
4149
+ return !Z(n) && !n.isLastChild() && !n.isInline();
4146
4150
  }
4147
4151
  function it(n, e) {
4148
4152
  const t = n._keyToDOMMap.get(e);
4149
- return t === void 0 && b(75, e), t;
4153
+ return t === void 0 && T(75, e), t;
4150
4154
  }
4151
4155
  function At(n) {
4152
4156
  const e = n.assignedSlot || n.parentElement;
4153
- return Yo(e) ? e.host : e;
4157
+ return Zo(e) ? e.host : e;
4154
4158
  }
4155
- function bs(n) {
4156
- return $o(n) ? n : ee(n) ? n.ownerDocument : null;
4159
+ function Ts(n) {
4160
+ return Uo(n) ? n : Y(n) ? n.ownerDocument : null;
4157
4161
  }
4158
- function Vo(n) {
4162
+ function qo(n) {
4159
4163
  H(), B()._updateTags.add(n);
4160
4164
  }
4161
- function qo(n) {
4165
+ function Ho(n) {
4162
4166
  H(), B()._deferred.push(n);
4163
4167
  }
4164
4168
  function nr(n, e) {
@@ -4170,17 +4174,17 @@ function nr(n, e) {
4170
4174
  return !1;
4171
4175
  }
4172
4176
  function vr(n) {
4173
- const e = bs(n);
4177
+ const e = Ts(n);
4174
4178
  return e ? e.defaultView : null;
4175
4179
  }
4176
4180
  function ie(n) {
4177
4181
  const e = n._window;
4178
- return e === null && b(78), e;
4182
+ return e === null && T(78), e;
4179
4183
  }
4180
- function Kl(n) {
4181
- return k(n) && n.isInline() || D(n) && n.isInline();
4184
+ function Jl(n) {
4185
+ return k(n) && n.isInline() || I(n) && n.isInline();
4182
4186
  }
4183
- function Ho(n) {
4187
+ function Go(n) {
4184
4188
  let e = n.getParentOrThrow();
4185
4189
  for (; e !== null; ) {
4186
4190
  if (Ae(e)) return e;
@@ -4189,31 +4193,31 @@ function Ho(n) {
4189
4193
  return e;
4190
4194
  }
4191
4195
  function Ae(n) {
4192
- return Y(n) || k(n) && n.isShadowRoot();
4196
+ return Z(n) || k(n) && n.isShadowRoot();
4193
4197
  }
4194
- function Go(n) {
4198
+ function Qo(n) {
4195
4199
  const e = n.constructor.clone(n);
4196
- return _s(e, null), e;
4200
+ return ps(e, null), e;
4197
4201
  }
4198
4202
  function Tn(n) {
4199
4203
  const e = B(), t = n.constructor.getType(), r = e._nodes.get(t);
4200
- r === void 0 && b(200, n.constructor.name, t);
4204
+ r === void 0 && T(200, n.constructor.name, t);
4201
4205
  const { replace: i, replaceWithKlass: s } = r;
4202
4206
  if (i !== null) {
4203
4207
  const o = i(n), l = o.constructor;
4204
- return s !== null ? o instanceof s || b(201, s.name, s.getType(), l.name, l.getType(), n.constructor.name, t) : o instanceof n.constructor && l !== n.constructor || b(202, l.name, l.getType(), n.constructor.name, t), o.__key === n.__key && b(203, n.constructor.name, t, l.name, l.getType()), o;
4208
+ return s !== null ? o instanceof s || T(201, s.name, s.getType(), l.name, l.getType(), n.constructor.name, t) : o instanceof n.constructor && l !== n.constructor || T(202, l.name, l.getType(), n.constructor.name, t), o.__key === n.__key && T(203, n.constructor.name, t, l.name, l.getType()), o;
4205
4209
  }
4206
4210
  return n;
4207
4211
  }
4208
4212
  function zn(n, e) {
4209
- !Y(n.getParent()) || k(e) || D(e) || b(99);
4213
+ !Z(n.getParent()) || k(e) || I(e) || T(99);
4210
4214
  }
4211
- function Qo(n) {
4215
+ function Xo(n) {
4212
4216
  const e = j(n);
4213
- return e === null && b(63, n), e;
4217
+ return e === null && T(63, n), e;
4214
4218
  }
4215
4219
  function Bn(n) {
4216
- return (D(n) || k(n) && !n.canBeEmpty()) && !n.isInline();
4220
+ return (I(n) || k(n) && !n.canBeEmpty()) && !n.isInline();
4217
4221
  }
4218
4222
  function rr(n, e, t) {
4219
4223
  t.style.removeProperty("caret-color"), e._blockCursorElement = null;
@@ -4223,32 +4227,32 @@ function rr(n, e, t) {
4223
4227
  function Ce(n) {
4224
4228
  return le ? (n || window).getSelection() : null;
4225
4229
  }
4226
- function Xo(n) {
4230
+ function Yo(n) {
4227
4231
  const e = vr(n);
4228
4232
  return e ? e.getSelection() : null;
4229
4233
  }
4230
- function Jl(n) {
4231
- return ee(n) && n.tagName === "A";
4234
+ function jl(n) {
4235
+ return Y(n) && n.tagName === "A";
4232
4236
  }
4233
- function ee(n) {
4234
- return Ot(n) && n.nodeType === Os;
4237
+ function Y(n) {
4238
+ return Ot(n) && n.nodeType === Ms;
4235
4239
  }
4236
4240
  function Ot(n) {
4237
4241
  return typeof n == "object" && n !== null && "nodeType" in n && typeof n.nodeType == "number";
4238
4242
  }
4239
- function Yo(n) {
4240
- return Ot(n) && n.nodeType === Ds;
4241
- }
4242
4243
  function Zo(n) {
4244
+ return Ot(n) && n.nodeType === zs;
4245
+ }
4246
+ function el(n) {
4243
4247
  const e = new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/, "i");
4244
4248
  return n.nodeName.match(e) !== null;
4245
4249
  }
4246
- function xi(n) {
4250
+ function Si(n) {
4247
4251
  const e = new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/, "i");
4248
4252
  return n.nodeName.match(e) !== null;
4249
4253
  }
4250
4254
  function Te(n) {
4251
- if (D(n) && !n.isInline()) return !0;
4255
+ if (I(n) && !n.isInline()) return !0;
4252
4256
  if (!k(n) || Ae(n)) return !1;
4253
4257
  const e = n.getFirstChild(), t = e === null || Ze(e) || P(e) || e.isInline();
4254
4258
  return !n.isInline() && n.canBeEmpty() !== !1 && t;
@@ -4258,14 +4262,14 @@ function Wn(n, e) {
4258
4262
  for (; t !== null && t.getParent() !== null && !e(t); ) t = t.getParentOrThrow();
4259
4263
  return e(t) ? t : null;
4260
4264
  }
4261
- function jl() {
4265
+ function $l() {
4262
4266
  return B();
4263
4267
  }
4264
- const Si = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new Map();
4265
- function Ci(n) {
4266
- if (!n._readOnly && n.isEmpty()) return el;
4267
- n._readOnly || b(192);
4268
- let e = Si.get(n);
4268
+ const Ci = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new Map();
4269
+ function ki(n) {
4270
+ if (!n._readOnly && n.isEmpty()) return tl;
4271
+ n._readOnly || T(192);
4272
+ let e = Ci.get(n);
4269
4273
  return e || (e = function(t) {
4270
4274
  const r = /* @__PURE__ */ new Map();
4271
4275
  for (const [i, s] of t._nodeMap) {
@@ -4274,29 +4278,29 @@ function Ci(n) {
4274
4278
  l || (l = /* @__PURE__ */ new Map(), r.set(o, l)), l.set(i, s);
4275
4279
  }
4276
4280
  return r;
4277
- }(n), Si.set(n, e)), e;
4281
+ }(n), Ci.set(n, e)), e;
4278
4282
  }
4279
- function tl(n) {
4283
+ function nl(n) {
4280
4284
  const e = n.constructor.clone(n);
4281
4285
  return e.afterCloneFrom(n), e;
4282
4286
  }
4283
- function nl(n, e) {
4287
+ function rl(n, e) {
4284
4288
  const t = (parseInt(n.style.paddingInlineStart, 10) || 0) / 40;
4285
4289
  e.setIndent(t);
4286
4290
  }
4287
- function $l(n) {
4291
+ function Ul(n) {
4288
4292
  n.__lexicalUnmanaged = !0;
4289
4293
  }
4290
- function rl(n) {
4294
+ function il(n) {
4291
4295
  return n.__lexicalUnmanaged === !0;
4292
4296
  }
4293
- const il = { next: "previous", previous: "next" };
4297
+ const sl = { next: "previous", previous: "next" };
4294
4298
  class wr {
4295
4299
  constructor(e) {
4296
4300
  this.origin = e;
4297
4301
  }
4298
4302
  [Symbol.iterator]() {
4299
- return vs({ hasNext: st, initial: this.getAdjacentCaret(), map: (e) => e, step: (e) => e.getAdjacentCaret() });
4303
+ return ws({ hasNext: st, initial: this.getAdjacentCaret(), map: (e) => e, step: (e) => e.getAdjacentCaret() });
4300
4304
  }
4301
4305
  getAdjacentCaret() {
4302
4306
  return q(this.getNodeAtCaret(), this.direction);
@@ -4328,7 +4332,7 @@ class wr {
4328
4332
  const u = a.getParent();
4329
4333
  u && u.is(o) && a.remove(), c.replace(a);
4330
4334
  }
4331
- } else c === null && b(263, Array.from(l).join(" "));
4335
+ } else c === null && T(263, Array.from(l).join(" "));
4332
4336
  } else s.insert(a);
4333
4337
  s = q(a, this.direction);
4334
4338
  }
@@ -4365,12 +4369,12 @@ class vt extends wr {
4365
4369
  return this.isSameNodeCaret(t);
4366
4370
  }
4367
4371
  }
4368
- const sl = { root: Y, shadowRoot: Ae };
4372
+ const ol = { root: Z, shadowRoot: Ae };
4369
4373
  function qe(n) {
4370
- return il[n];
4374
+ return sl[n];
4371
4375
  }
4372
4376
  function Nr(n, e = "root") {
4373
- return sl[e](n) ? null : n;
4377
+ return ol[e](n) ? null : n;
4374
4378
  }
4375
4379
  class Re extends wr {
4376
4380
  constructor() {
@@ -4445,7 +4449,7 @@ function st(n) {
4445
4449
  function fe(n) {
4446
4450
  return n instanceof vt;
4447
4451
  }
4448
- const ol = { next: class extends Ke {
4452
+ const ll = { next: class extends Ke {
4449
4453
  constructor() {
4450
4454
  super(...arguments);
4451
4455
  te(this, "direction", "next");
@@ -4467,7 +4471,7 @@ const ol = { next: class extends Ke {
4467
4471
  insert(e) {
4468
4472
  return this.origin.insertBefore(e), this;
4469
4473
  }
4470
- } }, ll = { next: class extends Re {
4474
+ } }, al = { next: class extends Re {
4471
4475
  constructor() {
4472
4476
  super(...arguments);
4473
4477
  te(this, "direction", "next");
@@ -4489,7 +4493,7 @@ const ol = { next: class extends Ke {
4489
4493
  insert(e) {
4490
4494
  return this.origin.insertBefore(e), this;
4491
4495
  }
4492
- } }, al = { next: class extends vt {
4496
+ } }, cl = { next: class extends vt {
4493
4497
  constructor() {
4494
4498
  super(...arguments);
4495
4499
  te(this, "direction", "next");
@@ -4513,26 +4517,26 @@ const ol = { next: class extends Ke {
4513
4517
  }
4514
4518
  } };
4515
4519
  function q(n, e) {
4516
- return n ? new ll[e](n) : null;
4520
+ return n ? new al[e](n) : null;
4517
4521
  }
4518
4522
  function Je(n, e, t) {
4519
- return n ? new ol[e](n, ot(n, t)) : null;
4523
+ return n ? new ll[e](n, ot(n, t)) : null;
4520
4524
  }
4521
4525
  function ot(n, e) {
4522
4526
  const t = n.getTextContentSize(), r = e === "next" ? t : e === "previous" ? 0 : e;
4523
- return r >= 0 && r <= t || b(274, String(e), String(t)), r;
4527
+ return r >= 0 && r <= t || T(274, String(e), String(t)), r;
4524
4528
  }
4525
- function ki(n, e) {
4526
- return new ul(n, e);
4529
+ function bi(n, e) {
4530
+ return new fl(n, e);
4527
4531
  }
4528
4532
  function Fe(n, e) {
4529
- return k(n) ? new al[e](n) : null;
4533
+ return k(n) ? new cl[e](n) : null;
4530
4534
  }
4531
- function cl(n) {
4535
+ function ul(n) {
4532
4536
  return n && n.getChildCaret() || n;
4533
4537
  }
4534
4538
  function Er(n) {
4535
- return n && cl(n.getAdjacentCaret());
4539
+ return n && ul(n.getAdjacentCaret());
4536
4540
  }
4537
4541
  class Pr {
4538
4542
  constructor(e, t, r) {
@@ -4551,24 +4555,24 @@ class Pr {
4551
4555
  const s = this[i].getLatest();
4552
4556
  return Ee(s) ? function(o, l) {
4553
4557
  const { direction: a, origin: c } = o, u = ot(c, l === "focus" ? qe(a) : a);
4554
- return ki(o, u - o.offset);
4558
+ return bi(o, u - o.offset);
4555
4559
  }(s, i) : null;
4556
4560
  }, t = e("anchor"), r = e("focus");
4557
4561
  if (t && r) {
4558
4562
  const { caret: i } = t, { caret: s } = r;
4559
- if (i.isSameNodeCaret(s)) return [ki(i, s.offset - i.offset), null];
4563
+ if (i.isSameNodeCaret(s)) return [bi(i, s.offset - i.offset), null];
4560
4564
  }
4561
4565
  return [t, r];
4562
4566
  }
4563
4567
  iterNodeCarets(e = "root") {
4564
4568
  const t = Ee(this.anchor) ? this.anchor.getSiblingCaret() : this.anchor.getLatest(), r = this.focus.getLatest(), i = Ee(r), s = (o) => o.isSameNodeCaret(r) ? null : Er(o) || o.getParentCaret(e);
4565
- return vs({ hasNext: (o) => o !== null && !(i && r.isSameNodeCaret(o)), initial: t.isSameNodeCaret(r) ? null : s(t), map: (o) => o, step: s });
4569
+ return ws({ hasNext: (o) => o !== null && !(i && r.isSameNodeCaret(o)), initial: t.isSameNodeCaret(r) ? null : s(t), map: (o) => o, step: s });
4566
4570
  }
4567
4571
  [Symbol.iterator]() {
4568
4572
  return this.iterNodeCarets("root");
4569
4573
  }
4570
4574
  }
4571
- class ul {
4575
+ class fl {
4572
4576
  constructor(e, t) {
4573
4577
  te(this, "type", "slice");
4574
4578
  this.caret = e, this.distance = t;
@@ -4589,16 +4593,16 @@ class ul {
4589
4593
  return Je(e.setTextContent(s.slice(0, r) + s.slice(i)), t, r);
4590
4594
  }
4591
4595
  }
4592
- function Ts(n) {
4593
- return je(n, q(Z(), n.direction));
4596
+ function vs(n) {
4597
+ return je(n, q(ee(), n.direction));
4594
4598
  }
4595
- function fl(n) {
4599
+ function dl(n) {
4596
4600
  return je(n, n);
4597
4601
  }
4598
4602
  function je(n, e) {
4599
- return n.direction !== e.direction && b(265), new Pr(n, e, n.direction);
4603
+ return n.direction !== e.direction && T(265), new Pr(n, e, n.direction);
4600
4604
  }
4601
- function vs(n) {
4605
+ function ws(n) {
4602
4606
  const { initial: e, hasNext: t, step: r, map: i } = n;
4603
4607
  let s = e;
4604
4608
  return { [Symbol.iterator]() {
@@ -4609,9 +4613,9 @@ function vs(n) {
4609
4613
  return s = r(s), o;
4610
4614
  } };
4611
4615
  }
4612
- function ws(n, e) {
4616
+ function Ns(n, e) {
4613
4617
  const t = qt(n.origin, e.origin);
4614
- switch (t === null && b(275, n.origin.getKey(), e.origin.getKey()), t.type) {
4618
+ switch (t === null && T(275, n.origin.getKey(), e.origin.getKey()), t.type) {
4615
4619
  case "same": {
4616
4620
  const r = n.type === "text", i = e.type === "text";
4617
4621
  return r && i ? function(s, o) {
@@ -4623,10 +4627,10 @@ function ws(n, e) {
4623
4627
  case "descendant":
4624
4628
  return e.type === "child" ? 1 : -1;
4625
4629
  case "branch":
4626
- return Ns(t);
4630
+ return Es(t);
4627
4631
  }
4628
4632
  }
4629
- function Ns(n) {
4633
+ function Es(n) {
4630
4634
  const { a: e, b: t } = n, r = e.__key, i = t.__key;
4631
4635
  let s = e, o = t;
4632
4636
  for (; s && o; s = s.getNextSibling(), o = o.getNextSibling()) {
@@ -4638,43 +4642,43 @@ function Ns(n) {
4638
4642
  function Jt(n, e) {
4639
4643
  return e.is(n);
4640
4644
  }
4641
- function bi(n) {
4645
+ function Ti(n) {
4642
4646
  return k(n) ? [n.getLatest(), null] : [n.getParent(), n.getLatest()];
4643
4647
  }
4644
4648
  function qt(n, e) {
4645
4649
  if (n.is(e)) return { commonAncestor: n, type: "same" };
4646
4650
  const t = /* @__PURE__ */ new Map();
4647
- for (let [r, i] = bi(n); r; i = r, r = r.getParent()) t.set(r, i);
4648
- for (let [r, i] = bi(e); r; i = r, r = r.getParent()) {
4651
+ for (let [r, i] = Ti(n); r; i = r, r = r.getParent()) t.set(r, i);
4652
+ for (let [r, i] = Ti(e); r; i = r, r = r.getParent()) {
4649
4653
  const s = t.get(r);
4650
- if (s !== void 0) return s === null ? (Jt(n, r) || b(276), { commonAncestor: r, type: "ancestor" }) : i === null ? (Jt(e, r) || b(277), { commonAncestor: r, type: "descendant" }) : ((k(s) || Jt(n, s)) && (k(i) || Jt(e, i)) && r.is(s.getParent()) && r.is(i.getParent()) || b(278), { a: s, b: i, commonAncestor: r, type: "branch" });
4654
+ if (s !== void 0) return s === null ? (Jt(n, r) || T(276), { commonAncestor: r, type: "ancestor" }) : i === null ? (Jt(e, r) || T(277), { commonAncestor: r, type: "descendant" }) : ((k(s) || Jt(n, s)) && (k(i) || Jt(e, i)) && r.is(s.getParent()) && r.is(i.getParent()) || T(278), { a: s, b: i, commonAncestor: r, type: "branch" });
4651
4655
  }
4652
4656
  return null;
4653
4657
  }
4654
4658
  function $e(n, e) {
4655
- const { type: t, key: r, offset: i } = n, s = Qo(n.key);
4656
- return t === "text" ? (P(s) || b(266, s.getType(), r), Je(s, e, i)) : (k(s) || b(267, s.getType(), r), _l(s, n.offset, e));
4659
+ const { type: t, key: r, offset: i } = n, s = Xo(n.key);
4660
+ return t === "text" ? (P(s) || T(266, s.getType(), r), Je(s, e, i)) : (k(s) || T(267, s.getType(), r), pl(s, n.offset, e));
4657
4661
  }
4658
4662
  function wt(n, e) {
4659
4663
  const { origin: t, direction: r } = e, i = r === "next";
4660
- Ee(e) ? n.set(t.getKey(), e.offset, "text") : st(e) ? P(t) ? n.set(t.getKey(), ot(t, r), "text") : n.set(t.getParentOrThrow().getKey(), t.getIndexWithinParent() + (i ? 1 : 0), "element") : (fe(e) && k(t) || b(268), n.set(t.getKey(), i ? 0 : t.getChildrenSize(), "element"));
4664
+ Ee(e) ? n.set(t.getKey(), e.offset, "text") : st(e) ? P(t) ? n.set(t.getKey(), ot(t, r), "text") : n.set(t.getParentOrThrow().getKey(), t.getIndexWithinParent() + (i ? 1 : 0), "element") : (fe(e) && k(t) || T(268), n.set(t.getKey(), i ? 0 : t.getChildrenSize(), "element"));
4661
4665
  }
4662
- function dl(n) {
4666
+ function hl(n) {
4663
4667
  const e = M(), t = L(e) ? e : Io();
4664
4668
  return Ht(t, n), re(t), t;
4665
4669
  }
4666
4670
  function Ht(n, e) {
4667
4671
  wt(n.anchor, e.anchor), wt(n.focus, e.focus);
4668
4672
  }
4669
- function Ti(n) {
4670
- const { anchor: e, focus: t } = n, r = $e(e, "next"), i = $e(t, "next"), s = ws(r, i) <= 0 ? "next" : "previous";
4673
+ function vi(n) {
4674
+ const { anchor: e, focus: t } = n, r = $e(e, "next"), i = $e(t, "next"), s = Ns(r, i) <= 0 ? "next" : "previous";
4671
4675
  return je(Ue(r, s), Ue(i, s));
4672
4676
  }
4673
4677
  function Mt(n) {
4674
4678
  const { direction: e, origin: t } = n, r = q(t, qe(e)).getNodeAtCaret();
4675
4679
  return r ? q(r, e) : Fe(t.getParentOrThrow(), e);
4676
4680
  }
4677
- function vi(n, e = "root") {
4681
+ function wi(n, e = "root") {
4678
4682
  const t = [n];
4679
4683
  for (let r = fe(n) ? n.getParentCaret(e) : n.getSiblingCaret(); r !== null; r = r.getParentCaret(e)) t.push(Mt(r));
4680
4684
  return t;
@@ -4682,11 +4686,11 @@ function vi(n, e = "root") {
4682
4686
  function Rn(n) {
4683
4687
  return !!n && n.origin.isAttached();
4684
4688
  }
4685
- function hl(n, e = "removeEmptySlices") {
4689
+ function gl(n, e = "removeEmptySlices") {
4686
4690
  if (n.isCollapsed()) return n;
4687
4691
  const t = "root", r = "next";
4688
4692
  let i = e;
4689
- const s = Es(n, r), o = vi(s.anchor, t), l = vi(s.focus.getFlipped(), t), a = /* @__PURE__ */ new Set(), c = [];
4693
+ const s = Ps(n, r), o = wi(s.anchor, t), l = wi(s.focus.getFlipped(), t), a = /* @__PURE__ */ new Set(), c = [];
4690
4694
  for (const h of s.iterNodeCarets(t)) if (fe(h)) a.add(h.origin.getKey());
4691
4695
  else if (st(h)) {
4692
4696
  const { origin: p } = h;
@@ -4730,14 +4734,14 @@ function hl(n, e = "removeEmptySlices") {
4730
4734
  for (S = 0; S < w && y[S] === v[S]; S++) ;
4731
4735
  const N = (F, O) => {
4732
4736
  let W;
4733
- for (let I = S; I < F.length; I++) {
4734
- const A = F[I];
4737
+ for (let D = S; D < F.length; D++) {
4738
+ const A = F[D];
4735
4739
  if (Ae(A)) return;
4736
4740
  !W && O(A) && (W = A);
4737
4741
  }
4738
4742
  return W;
4739
- }, T = N(y, Te), C = T && N(v, (F) => g.has(F.getKey()) && Te(F));
4740
- return T && C ? [T, C] : null;
4743
+ }, b = N(y, Te), C = b && N(v, (F) => g.has(F.getKey()) && Te(F));
4744
+ return b && C ? [b, C] : null;
4741
4745
  }(u, d, a);
4742
4746
  if (f) {
4743
4747
  const [h, p] = f;
@@ -4745,8 +4749,8 @@ function hl(n, e = "removeEmptySlices") {
4745
4749
  }
4746
4750
  const _ = [u, d, ...o, ...l].find(Rn);
4747
4751
  if (_)
4748
- return fl(Ue(ue(_), n.direction));
4749
- b(269, JSON.stringify(o.map((h) => h.origin.__key)));
4752
+ return dl(Ue(ue(_), n.direction));
4753
+ T(269, JSON.stringify(o.map((h) => h.origin.__key)));
4750
4754
  }
4751
4755
  function ue(n) {
4752
4756
  const e = function(i) {
@@ -4762,16 +4766,16 @@ function ue(n) {
4762
4766
  const r = e.getAdjacentCaret();
4763
4767
  return st(r) && P(r.origin) ? Je(r.origin, t, qe(t)) : e;
4764
4768
  }
4765
- function gl(n) {
4769
+ function _l(n) {
4766
4770
  return Ee(n) && n.offset !== ot(n.origin, n.direction);
4767
4771
  }
4768
4772
  function Ue(n, e) {
4769
4773
  return n.direction === e ? n : n.getFlipped();
4770
4774
  }
4771
- function Es(n, e) {
4775
+ function Ps(n, e) {
4772
4776
  return n.direction === e ? n : je(Ue(n.focus, e), Ue(n.anchor, e));
4773
4777
  }
4774
- function _l(n, e, t) {
4778
+ function pl(n, e, t) {
4775
4779
  let r = Fe(n, "next");
4776
4780
  for (let i = 0; i < e; i++) {
4777
4781
  const s = r.getAdjacentCaret();
@@ -4780,17 +4784,17 @@ function _l(n, e, t) {
4780
4784
  }
4781
4785
  return Ue(r, t);
4782
4786
  }
4783
- function pl(n) {
4787
+ function ml(n) {
4784
4788
  const { origin: e, offset: t, direction: r } = n;
4785
4789
  if (t === ot(e, r)) return n.getSiblingCaret();
4786
4790
  if (t === ot(e, qe(r))) return Mt(n.getSiblingCaret());
4787
4791
  const [i] = e.splitText(t);
4788
- return P(i) || b(281), Ue(q(i, "next"), r);
4792
+ return P(i) || T(281), Ue(q(i, "next"), r);
4789
4793
  }
4790
- function ml(n, e) {
4794
+ function yl(n, e) {
4791
4795
  return !0;
4792
4796
  }
4793
- function Ul(n, { $copyElementNode: e = Go, $splitTextPointCaretNext: t = pl, rootMode: r = "shadowRoot", $shouldSplit: i = ml } = {}) {
4797
+ function Vl(n, { $copyElementNode: e = Qo, $splitTextPointCaretNext: t = ml, rootMode: r = "shadowRoot", $shouldSplit: i = yl } = {}) {
4794
4798
  if (Ee(n)) return t(n);
4795
4799
  const s = n.getParentCaret(r);
4796
4800
  if (s) {
@@ -4806,119 +4810,119 @@ function Ul(n, { $copyElementNode: e = Go, $splitTextPointCaretNext: t = pl, roo
4806
4810
  return s;
4807
4811
  }
4808
4812
  export {
4809
- Ae as $,
4810
- _o as A,
4811
- Ui as B,
4813
+ Jl as $,
4814
+ zl as A,
4815
+ Fe as B,
4812
4816
  Jn as C,
4813
- Fe as D,
4814
- Il as E,
4815
- Dl as F,
4816
- Ie as G,
4817
- Wl as H,
4818
- Tl as I,
4819
- Kl as J,
4820
- lt as K,
4821
- po as L,
4822
- _t as M,
4817
+ on as D,
4818
+ Dl as E,
4819
+ rn as F,
4820
+ _o as G,
4821
+ Tn as H,
4822
+ mo as I,
4823
+ lt as J,
4824
+ Vi as K,
4825
+ Bl as L,
4826
+ Ze as M,
4823
4827
  Ml as N,
4824
- Ze as O,
4825
- mo as P,
4826
- U as Q,
4827
- ko as R,
4828
- Ri as S,
4829
- Ne as T,
4830
- Tn as U,
4831
- at as V,
4832
- Ce as W,
4833
- P as X,
4834
- wt as Y,
4835
- Fl as Z,
4836
- $l as _,
4828
+ De as O,
4829
+ Il as P,
4830
+ Rl as Q,
4831
+ vl as R,
4832
+ _t as S,
4833
+ yo as T,
4834
+ Ae as U,
4835
+ bo as V,
4836
+ Ki as W,
4837
+ U as X,
4838
+ P as Y,
4839
+ Ce as Z,
4840
+ Ll as _,
4837
4841
  M as a,
4838
4842
  Io as a0,
4839
- Y as a1,
4843
+ Z as a1,
4840
4844
  de as a2,
4841
4845
  $e as a3,
4842
- gl as a4,
4843
- Ts as a5,
4846
+ _l as a4,
4847
+ vs as a5,
4844
4848
  st as a6,
4845
4849
  fe as a7,
4846
4850
  q as a8,
4847
4851
  Er as a9,
4848
4852
  gr as aA,
4849
- $i as aB,
4850
- Al as aC,
4853
+ Ui as aB,
4854
+ Ol as aC,
4851
4855
  Sn as aD,
4852
4856
  _r as aE,
4853
- Bl as aF,
4854
- ho as aG,
4855
- hs as aH,
4857
+ Wl as aF,
4858
+ go as aG,
4859
+ gs as aH,
4856
4860
  Kr as aI,
4857
- Rl as aJ,
4858
- So as aK,
4859
- xo as aL,
4860
- yo as aM,
4861
+ Kl as aJ,
4862
+ Co as aK,
4863
+ So as aL,
4864
+ xo as aM,
4861
4865
  Gn as aN,
4862
4866
  $t as aO,
4863
- bl as aP,
4864
- Uo as aQ,
4865
- kl as aR,
4866
- Cl as aS,
4867
- Ll as aT,
4867
+ Tl as aP,
4868
+ Vo as aQ,
4869
+ bl as aR,
4870
+ kl as aS,
4871
+ Al as aT,
4868
4872
  Rr as aU,
4869
- gs as aV,
4870
- wl as aW,
4871
- vl as aX,
4873
+ _s as aV,
4874
+ Nl as aW,
4875
+ wl as aX,
4872
4876
  Pt as aa,
4873
4877
  Be as ab,
4874
4878
  Lt as ac,
4875
- Ki as ad,
4876
- Z as ae,
4877
- vs as af,
4878
- dl as ag,
4879
- fl as ah,
4879
+ Ji as ad,
4880
+ ee as ae,
4881
+ ws as af,
4882
+ hl as ag,
4883
+ dl as ah,
4880
4884
  Ue as ai,
4881
- Ul as aj,
4885
+ Vl as aj,
4882
4886
  Ee as ak,
4883
- D as al,
4887
+ I as al,
4884
4888
  Xr as am,
4885
4889
  Te as an,
4886
- so as ao,
4887
- El as ap,
4888
- Nl as aq,
4889
- Ji as ar,
4890
- ji as as,
4891
- Ro as at,
4890
+ oo as ao,
4891
+ Pl as ap,
4892
+ El as aq,
4893
+ ji as ar,
4894
+ $i as as,
4895
+ Ko as at,
4892
4896
  Tt as au,
4893
- Pl as av,
4894
- xi as aw,
4895
- Zo as ax,
4896
- tl as ay,
4897
- Yo as az,
4897
+ Fl as av,
4898
+ Si as aw,
4899
+ el as ax,
4900
+ nl as ay,
4901
+ Zo as az,
4898
4902
  Wr as b,
4899
- ue as c,
4900
- k as d,
4901
- ee as e,
4902
- mn as f,
4903
- re as g,
4904
- jl as h,
4905
- io as i,
4906
- Sl as j,
4907
- j as k,
4908
- L as l,
4909
- fo as m,
4910
- Ot as n,
4911
- xl as o,
4912
- uo as p,
4913
- ao as q,
4914
- Sr as r,
4915
- oo as s,
4916
- Jl as t,
4917
- sn as u,
4918
- on as v,
4919
- Ol as w,
4920
- rn as x,
4921
- zl as y,
4922
- go as z
4903
+ L as c,
4904
+ mn as d,
4905
+ ue as e,
4906
+ $l as f,
4907
+ so as g,
4908
+ k as h,
4909
+ Cl as i,
4910
+ Ot as j,
4911
+ at as k,
4912
+ j as l,
4913
+ Ul as m,
4914
+ jl as n,
4915
+ Sl as o,
4916
+ ho as p,
4917
+ fo as q,
4918
+ Y as r,
4919
+ Sr as s,
4920
+ wt as t,
4921
+ re as u,
4922
+ co as v,
4923
+ Ne as w,
4924
+ lo as x,
4925
+ po as y,
4926
+ sn as z
4923
4927
  };
4924
- //# sourceMappingURL=Lexical.prod-Bu-Iw9VX.js.map
4928
+ //# sourceMappingURL=Lexical.prod-CniF7zEE.js.map