@uva-glass/component-library 3.27.0 → 3.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{Lexical.prod-m3GJsAAT.js → Lexical.prod-UwAbgYpF.js} +1043 -1036
  2. package/dist/Lexical.prod-UwAbgYpF.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-HyvHKdDm.js → LexicalClipboard.prod-DHIGjydG.js} +25 -25
  4. package/dist/{LexicalClipboard.prod-HyvHKdDm.js.map → LexicalClipboard.prod-DHIGjydG.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-D0qasaVP.js → LexicalLink.prod-Bsa9J7L-.js} +13 -13
  6. package/dist/{LexicalLink.prod-D0qasaVP.js.map → LexicalLink.prod-Bsa9J7L-.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CQz14k_F.js → LexicalList.prod-jxGuZd4b.js} +26 -26
  8. package/dist/{LexicalList.prod-CQz14k_F.js.map → LexicalList.prod-jxGuZd4b.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-xk5MiZnZ.js +101 -0
  10. package/dist/LexicalSelection.prod-xk5MiZnZ.js.map +1 -0
  11. package/dist/{LexicalTable.prod-BHKhA4PF.js → LexicalTable.prod-BSjs04iE.js} +164 -164
  12. package/dist/{LexicalTable.prod-BHKhA4PF.js.map → LexicalTable.prod-BSjs04iE.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-Vqqof-U-.js → LexicalUtils.prod-cQutjKA3.js} +43 -43
  14. package/dist/{LexicalUtils.prod-Vqqof-U-.js.map → LexicalUtils.prod-cQutjKA3.js.map} +1 -1
  15. package/dist/{TablePlugin-CykqKW6X.js → TablePlugin-NmJsn2fm.js} +4 -4
  16. package/dist/{TablePlugin-CykqKW6X.js.map → TablePlugin-NmJsn2fm.js.map} +1 -1
  17. package/dist/assets/MultiSelectBox.css +1 -1
  18. package/dist/assets/TextArea.css +1 -1
  19. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  20. package/dist/components/FormInput/FormInput.js +1 -1
  21. package/dist/components/InputField/InputField.stories.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  25. package/dist/components/MultiSelect/index.js +1 -1
  26. package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +3 -1
  27. package/dist/components/MultiSelectBox/MultiSelectBox.js +82 -78
  28. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
  29. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  30. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  31. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  32. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  33. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  34. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  36. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  37. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +30 -30
  38. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  39. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +12 -12
  40. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  41. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  42. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  43. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  44. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  45. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
  46. package/dist/components/RteEditor/Plugins/index.js +1 -1
  47. package/dist/components/RteEditor/RteEditor.js +74 -74
  48. package/dist/components/RteEditor/helpers.js +4 -4
  49. package/dist/components/SelectListbox/SelectListBox.stories.js +5 -0
  50. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
  51. package/dist/components/SelectListbox/SelectProvider.js +24 -33
  52. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  53. package/dist/components/TextArea/TextArea.js +14 -14
  54. package/dist/components/index.js +1 -1
  55. package/dist/{helpers-5AryUrYu.js → helpers-DZIm3MiJ.js} +4 -4
  56. package/dist/{helpers-5AryUrYu.js.map → helpers-DZIm3MiJ.js.map} +1 -1
  57. package/dist/index.js +1 -1
  58. package/package.json +6 -6
  59. package/dist/Lexical.prod-m3GJsAAT.js.map +0 -1
  60. package/dist/LexicalSelection.prod-Bh25dAig.js +0 -101
  61. package/dist/LexicalSelection.prod-Bh25dAig.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { w as x, r as Q, i as ge, _ as Nt, j as Ut, N as Xt, T as vt, S as Yt, L as qt } from "./LexicalUtils.prod-Vqqof-U-.js";
2
- import { f as Ze, u as be, e as Qe, h as jt, Q as Ce, i as at, P as I, X as Ge, T as Vt, m as xt, k as re, n as Zt, L as Be, p as Tt, c as L, o as Qt, q as ye, d as D, N as B, w as Je, s as Oe, t as Gt, x as en, z as tn, A as nn, K as De, O as on, B as rn, C as Rt, D as ln, E as V, G as sn, H as an, U as cn, M as un, R as hn, S as dn, V as fn, W as gn, Y as fe, y as ne, $ as $e, a0 as mn, a as Ft, a1 as pn, F as et, a2 as Cn, Z as _n, a3 as Ae, a4 as Sn, a5 as wn, a6 as ct, a7 as yn, a8 as ut, j as bn, a9 as ht, _ as dt, l as Te, aa as Nn, v as vn, ab as xn, ac as Tn } from "./Lexical.prod-m3GJsAAT.js";
3
- import { _ as Rn, M as Fn } from "./LexicalClipboard.prod-HyvHKdDm.js";
1
+ import { w as x, r as Z, i as ge, _ as Nt, j as Ut, N as Xt, T as vt, S as qt, L as Yt } from "./LexicalUtils.prod-cQutjKA3.js";
2
+ import { f as Qe, a as ye, n as Ze, h as jt, Q as Ce, j as at, P as I, X as Ge, k as Vt, x as xt, l as re, q as Qt, L as Be, r as Tt, c as L, o as Zt, s as be, d as D, N as B, w as Je, y as Oe, z as Gt, A as en, T as tn, B as nn, K as De, O as on, C as rn, D as Rt, E as ln, G as V, H as sn, M as an, U as cn, R as un, S as hn, W as dn, Y as fn, Z as gn, _ as fe, m as ne, $ as $e, a0 as mn, b as Ft, a1 as pn, F as et, a2 as Cn, t as _n, a3 as Ae, a4 as Sn, a5 as wn, a6 as ct, a7 as bn, a8 as ut, V as yn, a9 as ht, p as dt, e as Te, aa as Nn, v as vn, ab as xn, ac as Tn } from "./Lexical.prod-UwAbgYpF.js";
3
+ import { _ as Rn, M as Fn } from "./LexicalClipboard.prod-DHIGjydG.js";
4
4
  const tt = /^(\d+(?:\.\d+)?)px$/, W = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 };
5
- class ce extends Ze {
5
+ class ce extends Qe {
6
6
  static getType() {
7
7
  return "tablecell";
8
8
  }
@@ -26,11 +26,11 @@ class ce extends Ze {
26
26
  }
27
27
  createDOM(e) {
28
28
  const t = document.createElement(this.getTag());
29
- return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), Ue(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), Q(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
29
+ return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), Ue(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), Z(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
30
30
  }
31
31
  exportDOM(e) {
32
32
  const t = super.exportDOM(e);
33
- if (be(t.element)) {
33
+ if (ye(t.element)) {
34
34
  const o = t.element;
35
35
  o.setAttribute("data-temporary-table-cell-lexical-key", this.getKey()), o.style.border = "1px solid black", this.__colSpan > 1 && (o.colSpan = this.__colSpan), this.__rowSpan > 1 && (o.rowSpan = this.__rowSpan), o.style.width = `${this.getWidth() || 75}px`, o.style.verticalAlign = this.getVerticalAlign() || "top", o.style.textAlign = "start", this.__backgroundColor === null && this.hasHeader() && (o.style.backgroundColor = "#f2f3f5");
36
36
  }
@@ -138,19 +138,19 @@ function ft(n) {
138
138
  }, node: r };
139
139
  }
140
140
  function X(n = W.NO_STATUS, e = 1, t) {
141
- return Qe(new ce(n, e, t));
141
+ return Ze(new ce(n, e, t));
142
142
  }
143
143
  function w(n) {
144
144
  return n instanceof ce;
145
145
  }
146
- const Kn = Qt("INSERT_TABLE_COMMAND");
147
- function y(n, ...e) {
146
+ const Kn = Zt("INSERT_TABLE_COMMAND");
147
+ function b(n, ...e) {
148
148
  const t = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
149
149
  o.append("code", n);
150
150
  for (const r of e) o.append("v", r);
151
151
  throw t.search = o.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.`);
152
152
  }
153
- class xe extends Ze {
153
+ class xe extends Qe {
154
154
  static getType() {
155
155
  return "tablerow";
156
156
  }
@@ -175,7 +175,7 @@ class xe extends Ze {
175
175
  }
176
176
  createDOM(e) {
177
177
  const t = document.createElement("tr");
178
- return this.__height && (t.style.height = `${this.__height}px`), Q(t, e.theme.tableRow), t;
178
+ return this.__height && (t.style.height = `${this.__height}px`), Z(t, e.theme.tableRow), t;
179
179
  }
180
180
  extractWithChild(e, t, o) {
181
181
  return o === "html";
@@ -206,7 +206,7 @@ function On(n) {
206
206
  return tt.test(e.style.height) && (t = parseFloat(e.style.height)), { after: (o) => Nt(o, w), node: ve(t) };
207
207
  }
208
208
  function ve(n) {
209
- return Qe(new xe(n));
209
+ return Ze(new xe(n));
210
210
  }
211
211
  function A(n) {
212
212
  return n instanceof xe;
@@ -262,7 +262,7 @@ function kn(n, e = !0) {
262
262
  } else a.setRowSpan(a.__rowSpan + 1);
263
263
  }
264
264
  const p = t.getChildAtIndex(u);
265
- A(p) || y(256), p.insertAfter(h), i = h;
265
+ A(p) || b(256), p.insertAfter(h), i = h;
266
266
  } else {
267
267
  const u = l, m = o[u], h = ve();
268
268
  for (let C = 0; C < s; C++) {
@@ -273,13 +273,13 @@ function kn(n, e = !0) {
273
273
  } else a.setRowSpan(a.__rowSpan + 1);
274
274
  }
275
275
  const p = t.getChildAtIndex(u);
276
- A(p) || y(257), p.insertBefore(h), i = h;
276
+ A(p) || b(257), p.insertBefore(h), i = h;
277
277
  }
278
278
  return i;
279
279
  }
280
280
  function $n(n, e = !0, t = !0) {
281
281
  const [, , o] = G(n), [r, s] = U(o, n, n), l = r.length, { startColumn: i } = s, u = e ? i + n.__colSpan - 1 : i - 1, m = o.getFirstChild();
282
- A(m) || y(120);
282
+ A(m) || b(120);
283
283
  let h = null;
284
284
  function p(c = W.NO_STATUS) {
285
285
  const f = X(c).append(I());
@@ -288,8 +288,8 @@ function $n(n, e = !0, t = !0) {
288
288
  let C = m;
289
289
  e: for (let c = 0; c < l; c++) {
290
290
  if (c !== 0) {
291
- const b = C.getNextSibling();
292
- A(b) || y(121), C = b;
291
+ const y = C.getNextSibling();
292
+ A(y) || b(121), C = y;
293
293
  }
294
294
  const f = r[c], d = f[u < 0 ? 0 : u].cell.__headerState, g = Xe(d, W.ROW);
295
295
  if (u < 0) {
@@ -298,18 +298,18 @@ function $n(n, e = !0, t = !0) {
298
298
  }
299
299
  const { cell: _, startColumn: S, startRow: N } = f[u];
300
300
  if (S + _.__colSpan - 1 <= u) {
301
- let b = _, T = N, F = u;
302
- for (; T !== c && b.__rowSpan > 1; ) {
301
+ let y = _, T = N, F = u;
302
+ for (; T !== c && y.__rowSpan > 1; ) {
303
303
  if (F -= _.__colSpan, !(F >= 0)) {
304
304
  C.append(p(g));
305
305
  continue e;
306
306
  }
307
307
  {
308
308
  const { cell: M, startRow: K } = f[F];
309
- b = M, T = K;
309
+ y = M, T = K;
310
310
  }
311
311
  }
312
- b.insertAfter(p(g));
312
+ y.insertAfter(p(g));
313
313
  } else _.setColSpan(_.__colSpan + 1);
314
314
  }
315
315
  h !== null && t && Mn(h);
@@ -393,11 +393,11 @@ function Wn(n) {
393
393
  let c;
394
394
  for (let f = 1; f < s; f++) {
395
395
  const d = m + f, g = l[d];
396
- c = (c || t).getNextSibling(), A(c) || y(125);
396
+ c = (c || t).getNextSibling(), A(c) || b(125);
397
397
  let _ = null;
398
398
  for (let S = 0; S < u; S++) {
399
- const N = g[S], b = N.cell;
400
- N.startRow === d && (_ = b), b.__colSpan > 1 && (S += b.__colSpan - 1);
399
+ const N = g[S], y = N.cell;
400
+ N.startRow === d && (_ = y), y.__colSpan > 1 && (S += y.__colSpan - 1);
401
401
  }
402
402
  if (_ === null) for (let S = r - 1; S >= 0; S--) At(c, X(p[S] | a[f]).append(I()));
403
403
  else for (let S = r - 1; S >= 0; S--) _.insertAfter(X(p[S] | a[f]).append(I()));
@@ -407,7 +407,7 @@ function Wn(n) {
407
407
  }
408
408
  function U(n, e, t) {
409
409
  const [o, r, s] = oe(n, e, t);
410
- return r === null && y(207), s === null && y(208), [o, r, s];
410
+ return r === null && b(207), s === null && b(208), [o, r, s];
411
411
  }
412
412
  function oe(n, e, t) {
413
413
  const o = [];
@@ -419,10 +419,10 @@ function oe(n, e, t) {
419
419
  const i = n.getChildren();
420
420
  for (let u = 0; u < i.length; u++) {
421
421
  const m = i[u];
422
- A(m) || y(209);
422
+ A(m) || b(209);
423
423
  const h = l(u);
424
424
  for (let p = m.getFirstChild(), C = 0; p != null; p = p.getNextSibling()) {
425
- for (w(p) || y(147); h[C] !== void 0; ) C++;
425
+ for (w(p) || b(147); h[C] !== void 0; ) C++;
426
426
  const a = { cell: p, startColumn: C, startRow: u }, { __rowSpan: c, __colSpan: f } = p;
427
427
  for (let d = 0; d < c && !(u + d >= i.length); d++) {
428
428
  const g = l(u + d);
@@ -438,15 +438,15 @@ function G(n) {
438
438
  if (n instanceof ce) e = n;
439
439
  else if ("__type" in n) {
440
440
  const r = x(n, w);
441
- w(r) || y(148), e = r;
441
+ w(r) || b(148), e = r;
442
442
  } else {
443
443
  const r = x(n.getNode(), w);
444
- w(r) || y(148), e = r;
444
+ w(r) || b(148), e = r;
445
445
  }
446
446
  const t = e.getParent();
447
- A(t) || y(149);
447
+ A(t) || b(149);
448
448
  const o = t.getParent();
449
- return $(o) || y(210), [e, t, o];
449
+ return $(o) || b(210), [e, t, o];
450
450
  }
451
451
  function Ee(n, e, t) {
452
452
  let o, r = Math.min(e.startColumn, t.startColumn), s = Math.min(e.startRow, t.startRow), l = Math.max(e.startColumn + e.cell.__colSpan - 1, t.startColumn + t.cell.__colSpan - 1), i = Math.max(e.startRow + e.cell.__rowSpan - 1, t.startRow + t.cell.__rowSpan - 1);
@@ -483,13 +483,13 @@ function mt(n) {
483
483
  function pt(n) {
484
484
  const [[e, t, o, r], [s, l, i, u]] = ["anchor", "focus"].map((m) => {
485
485
  const h = n[m].getNode(), p = x(h, w);
486
- w(p) || y(238, m, h.getKey(), h.getType());
486
+ w(p) || b(238, m, h.getKey(), h.getType());
487
487
  const C = p.getParent();
488
- A(C) || y(239, m);
488
+ A(C) || b(239, m);
489
489
  const a = C.getParent();
490
- return $(a) || y(240, m), [h, p, C, a];
490
+ return $(a) || b(240, m), [h, p, C, a];
491
491
  });
492
- return r.is(u) || y(241), { anchorCell: t, anchorNode: e, anchorRow: o, anchorTable: r, focusCell: l, focusNode: s, focusRow: i, focusTable: u };
492
+ return r.is(u) || b(241), { anchorCell: t, anchorNode: e, anchorRow: o, anchorTable: r, focusCell: l, focusNode: s, focusRow: i, focusTable: u };
493
493
  }
494
494
  class Me {
495
495
  constructor(e, t, o) {
@@ -540,13 +540,13 @@ class Me {
540
540
  }
541
541
  insertNodes(e) {
542
542
  const t = this.focus.getNode();
543
- D(t) || y(151), vn(t.select(0, t.getChildrenSize())).insertNodes(e);
543
+ D(t) || b(151), vn(t.select(0, t.getChildrenSize())).insertNodes(e);
544
544
  }
545
545
  getShape() {
546
546
  const { anchorCell: e, focusCell: t } = pt(this), o = mt(e);
547
- o === null && y(153);
547
+ o === null && b(153);
548
548
  const r = mt(t);
549
- r === null && y(155);
549
+ r === null && b(155);
550
550
  const s = Math.min(o.columnIndex, r.columnIndex), l = Math.max(o.columnIndex + o.colSpan - 1, r.columnIndex + r.colSpan - 1), i = Math.min(o.rowIndex, r.rowIndex), u = Math.max(o.rowIndex + o.rowSpan - 1, r.rowIndex + r.rowSpan - 1);
551
551
  return { fromX: Math.min(s, l), fromY: Math.min(i, u), toX: Math.max(s, l), toY: Math.max(i, u) };
552
552
  }
@@ -558,10 +558,10 @@ class Me {
558
558
  if (s !== t) {
559
559
  if (t.isParentOf(r)) {
560
560
  const d = s.getParent();
561
- d == null && y(159), this.set(this.tableKey, r.getKey(), d.getKey());
561
+ d == null && b(159), this.set(this.tableKey, r.getKey(), d.getKey());
562
562
  } else {
563
563
  const d = t.getParent();
564
- d == null && y(158), this.set(this.tableKey, d.getKey(), r.getKey());
564
+ d == null && b(158), this.set(this.tableKey, d.getKey(), r.getKey());
565
565
  }
566
566
  return this.getNodes();
567
567
  }
@@ -569,7 +569,7 @@ class Me {
569
569
  let c = null;
570
570
  for (let d = p; d <= C; d++) for (let g = m; g <= h; g++) {
571
571
  const { cell: _ } = l[d][g], S = _.getParent();
572
- A(S) || y(160), S !== c && (a.set(S.getKey(), S), c = S), a.has(_.getKey()) || Hn(_, (N) => {
572
+ A(S) || b(160), S !== c && (a.set(S.getKey(), S), c = S), a.has(_.getKey()) || Pn(_, (N) => {
573
573
  a.set(N.getKey(), N);
574
574
  });
575
575
  }
@@ -594,12 +594,12 @@ function Et() {
594
594
  const n = Ae("root", 0, "element"), e = Ae("root", 0, "element");
595
595
  return new Me("root", n, e);
596
596
  }
597
- function Pn(n, e, t) {
597
+ function Hn(n, e, t) {
598
598
  n.getKey(), e.getKey(), t.getKey();
599
599
  const o = B(), r = O(o) ? o.clone() : Et();
600
600
  return r.set(n.getKey(), e.getKey(), t.getKey()), r;
601
601
  }
602
- function Hn(n, e) {
602
+ function Pn(n, e) {
603
603
  const t = [[n]];
604
604
  for (let o = t.at(-1); o !== void 0 && t.length > 0; o = t.at(-1)) {
605
605
  const r = o.pop();
@@ -608,9 +608,9 @@ function Hn(n, e) {
608
608
  }
609
609
  function kt(n, e = xt()) {
610
610
  const t = Oe(n);
611
- $(t) || y(231, n);
611
+ $(t) || b(231, n);
612
612
  const o = ie(t, e.getElementByKey(n));
613
- return o === null && y(232, n), { tableElement: o, tableNode: t };
613
+ return o === null && b(232, n), { tableElement: o, tableNode: t };
614
614
  }
615
615
  class Bn {
616
616
  constructor(e, t) {
@@ -658,11 +658,11 @@ class Bn {
658
658
  }
659
659
  $disableHighlightStyle() {
660
660
  const { tableElement: e } = this.$lookup();
661
- Q(e, this.editor._config.theme.tableSelection), this.hasHijackedSelectionStyles = !0;
661
+ Z(e, this.editor._config.theme.tableSelection), this.hasHijackedSelectionStyles = !0;
662
662
  }
663
663
  $updateTableTableSelection(e) {
664
664
  if (e !== null) {
665
- e.tableKey !== this.tableNodeKey && y(233, e.tableKey, this.tableNodeKey);
665
+ e.tableKey !== this.tableNodeKey && b(233, e.tableKey, this.tableNodeKey);
666
666
  const t = this.editor;
667
667
  this.tableSelection = e, this.isHighlightingCells = !0, this.$disableHighlightStyle(), this.updateDOMSelection(), Re(t, this.table, this.tableSelection);
668
668
  } else this.$clearHighlight();
@@ -692,8 +692,8 @@ class Bn {
692
692
  if (s === this.focusX && l === this.focusY) return !1;
693
693
  } else this.isHighlightingCells = !0, this.$disableHighlightStyle();
694
694
  if (this.focusX = s, this.focusY = l, this.isHighlightingCells) {
695
- const i = qe(r, e.elem);
696
- if (this.tableSelection != null && this.anchorCellNodeKey != null && i !== null) return this.focusCellNodeKey = i.getKey(), this.tableSelection = Pn(r, this.$getAnchorTableCellOrThrow(), i), ne(this.tableSelection), o.dispatchCommand(fe, void 0), Re(o, this.table, this.tableSelection), !0;
695
+ const i = Ye(r, e.elem);
696
+ if (this.tableSelection != null && this.anchorCellNodeKey != null && i !== null) return this.focusCellNodeKey = i.getKey(), this.tableSelection = Hn(r, this.$getAnchorTableCellOrThrow(), i), ne(this.tableSelection), o.dispatchCommand(fe, void 0), Re(o, this.table, this.tableSelection), !0;
697
697
  }
698
698
  return !1;
699
699
  }
@@ -702,18 +702,18 @@ class Bn {
702
702
  }
703
703
  $getAnchorTableCellOrThrow() {
704
704
  const e = this.$getAnchorTableCell();
705
- return e === null && y(234), e;
705
+ return e === null && b(234), e;
706
706
  }
707
707
  $getFocusTableCell() {
708
708
  return this.focusCellNodeKey ? Oe(this.focusCellNodeKey) : null;
709
709
  }
710
710
  $getFocusTableCellOrThrow() {
711
711
  const e = this.$getFocusTableCell();
712
- return e === null && y(235), e;
712
+ return e === null && b(235), e;
713
713
  }
714
714
  $setAnchorCellForSelection(e) {
715
715
  this.isHighlightingCells = !1, this.anchorCell = e, this.anchorX = e.x, this.anchorY = e.y;
716
- const { tableNode: t } = this.$lookup(), o = qe(t, e.elem);
716
+ const { tableNode: t } = this.$lookup(), o = Ye(t, e.elem);
717
717
  if (o !== null) {
718
718
  const r = o.getKey();
719
719
  this.tableSelection = this.tableSelection != null ? this.tableSelection.clone() : Et(), this.anchorCellNodeKey = r;
@@ -721,9 +721,9 @@ class Bn {
721
721
  }
722
722
  $formatCells(e) {
723
723
  const t = B();
724
- O(t) || y(236);
724
+ O(t) || b(236);
725
725
  const o = pn(), r = o.anchor, s = o.focus, l = t.getNodes().filter(w);
726
- l.length > 0 || y(237);
726
+ l.length > 0 || b(237);
727
727
  const i = l[0].getFirstChild(), u = et(i) ? i.getFormatFlags(e, null) : null;
728
728
  l.forEach((m) => {
729
729
  r.set(m.getKey(), 0, "element"), s.set(m.getKey(), m.getChildrenSize(), "element"), o.formatText(e, u);
@@ -733,7 +733,7 @@ class Bn {
733
733
  const { editor: e } = this, t = Oe(this.tableNodeKey);
734
734
  if (!$(t)) throw new Error("Expected TableNode.");
735
735
  const o = B();
736
- O(o) || y(253);
736
+ O(o) || b(253);
737
737
  const r = o.getNodes().filter(w), s = t.getFirstChild(), l = t.getLastChild();
738
738
  if (r.length > 0 && s !== null && l !== null && A(s) && A(l) && r[0] === s.getFirstChild() && r[r.length - 1] === l.getLastChild()) {
739
739
  t.selectPrevious();
@@ -750,14 +750,14 @@ class Bn {
750
750
  }), Re(e, this.table, null), ne(null), e.dispatchCommand(fe, void 0);
751
751
  }
752
752
  }
753
- const Ye = "__lexicalTableSelection", Dn = (n) => !(1 & ~n.buttons);
753
+ const qe = "__lexicalTableSelection", Dn = (n) => !(1 & ~n.buttons);
754
754
  function de(n) {
755
- return be(n) && n.nodeName === "TABLE";
755
+ return ye(n) && n.nodeName === "TABLE";
756
756
  }
757
757
  function ie(n, e) {
758
758
  if (!e) return e;
759
759
  const t = de(e) ? e : n.getDOMSlot(e).element;
760
- return t.nodeName !== "TABLE" && y(245, e.nodeName), t;
760
+ return t.nodeName !== "TABLE" && b(245, e.nodeName), t;
761
761
  }
762
762
  function ot(n) {
763
763
  return n._window;
@@ -772,19 +772,19 @@ function Ne(n, e) {
772
772
  const In = [[Gt, "down"], [en, "up"], [tn, "backward"], [nn, "forward"]], Jn = [rn, Rt, ln], Un = [sn, an];
773
773
  function Xn(n, e, t, o) {
774
774
  const r = t.getRootElement(), s = ot(t);
775
- r !== null && s !== null || y(246);
775
+ r !== null && s !== null || b(246);
776
776
  const l = new Bn(t, n.getKey()), i = ie(n, e);
777
777
  (function(a, c) {
778
- Ct(a) !== null && y(205), a[Ye] = c;
778
+ Ct(a) !== null && b(205), a[qe] = c;
779
779
  })(i, l), l.listenersToRemove.add(() => function(a, c) {
780
- Ct(a) === c && delete a[Ye];
780
+ Ct(a) === c && delete a[qe];
781
781
  }(i, l));
782
782
  const u = (a) => {
783
- if (l.pointerType = a.pointerType, a.button !== 0 || !ye(a.target) || !s) return;
783
+ if (l.pointerType = a.pointerType, a.button !== 0 || !be(a.target) || !s) return;
784
784
  const c = ke(a.target);
785
785
  c !== null && t.update(() => {
786
786
  const f = Je();
787
- if (gt && a.shiftKey && Z(f, n) && (L(f) || O(f))) {
787
+ if (gt && a.shiftKey && Q(f, n) && (L(f) || O(f))) {
788
788
  const d = f.anchor.getNode(), g = Ne(n, f.anchor.getNode());
789
789
  g ? (l.$setAnchorCellForSelection(se(l, g)), l.$setFocusCellForSelection(c), te(a)) : (n.isBefore(d) ? n.selectStart() : n.selectEnd()).anchor.set(f.anchor.key, f.anchor.offset, f.anchor.type);
790
790
  } else l.$setAnchorCellForSelection(c);
@@ -794,7 +794,7 @@ function Xn(n, e, t, o) {
794
794
  l.isSelecting = !1, s.removeEventListener("pointerup", f), s.removeEventListener("pointermove", d);
795
795
  }, d = (g) => {
796
796
  if (!Dn(g) && l.isSelecting) return l.isSelecting = !1, s.removeEventListener("pointerup", f), void s.removeEventListener("pointermove", d);
797
- if (!ye(g.target)) return;
797
+ if (!be(g.target)) return;
798
798
  let _ = null;
799
799
  const S = !(gt || i.contains(g.target));
800
800
  if (S) _ = _t(i, g.target);
@@ -808,14 +808,14 @@ function Xn(n, e, t, o) {
808
808
  i.removeEventListener("pointerdown", u);
809
809
  });
810
810
  const m = (a) => {
811
- a.detail >= 3 && ye(a.target) && ke(a.target) !== null && a.preventDefault();
811
+ a.detail >= 3 && be(a.target) && ke(a.target) !== null && a.preventDefault();
812
812
  };
813
813
  i.addEventListener("mousedown", m, l.listenerOptions), l.listenersToRemove.add(() => {
814
814
  i.removeEventListener("mousedown", m);
815
815
  });
816
816
  const h = (a) => {
817
817
  const c = a.target;
818
- a.button === 0 && ye(c) && t.update(() => {
818
+ a.button === 0 && be(c) && t.update(() => {
819
819
  const f = B();
820
820
  O(f) && f.tableKey === l.tableNodeKey && r.contains(c) && l.$clearHighlight();
821
821
  });
@@ -834,13 +834,13 @@ function Xn(n, e, t, o) {
834
834
  }, De));
835
835
  const p = (a) => () => {
836
836
  const c = B();
837
- if (!Z(c, n)) return !1;
837
+ if (!Q(c, n)) return !1;
838
838
  if (O(c)) return l.$clearText(), !0;
839
839
  if (L(c)) {
840
840
  if (!w(Ne(n, c.anchor.getNode()))) return !1;
841
841
  const f = c.anchor.getNode(), d = c.focus.getNode(), g = n.isParentOf(f), _ = n.isParentOf(d);
842
842
  if (g && !_ || _ && !g) return l.$clearText(), !0;
843
- const S = x(c.anchor.getNode(), (b) => D(b)), N = S && x(S, (b) => D(b) && w(b.getParent()));
843
+ const S = x(c.anchor.getNode(), (y) => D(y)), N = S && x(S, (y) => D(y) && w(y.getParent()));
844
844
  if (!D(N) || !D(S)) return !1;
845
845
  if (a === Rt && N.getPreviousSibling() === null) return !0;
846
846
  }
@@ -855,21 +855,21 @@ function Xn(n, e, t, o) {
855
855
  const d = f ? "anchor" : "focus", g = f ? "focus" : "anchor", { key: _, offset: S, type: N } = c[g];
856
856
  return n[c[d].isBefore(c[g]) ? "selectPrevious" : "selectNext"]()[g].set(_, S, N), !1;
857
857
  }
858
- return !!Z(c, n) && !!O(c) && (a && (a.preventDefault(), a.stopPropagation()), l.$clearText(), !0);
858
+ return !!Q(c, n) && !!O(c) && (a && (a.preventDefault(), a.stopPropagation()), l.$clearText(), !0);
859
859
  };
860
860
  for (const a of Un) l.listenersToRemove.add(t.registerCommand(a, C, V));
861
861
  return l.listenersToRemove.add(t.registerCommand(cn, (a) => {
862
862
  const c = B();
863
863
  if (c) {
864
864
  if (!O(c) && !L(c)) return !1;
865
- Rn(t, qt(a, ClipboardEvent) ? a : null, Fn(c));
865
+ Rn(t, Yt(a, ClipboardEvent) ? a : null, Fn(c));
866
866
  const f = C(a);
867
867
  return L(c) ? (c.removeText(), !0) : f;
868
868
  }
869
869
  return !1;
870
870
  }, V)), l.listenersToRemove.add(t.registerCommand(un, (a) => {
871
871
  const c = B();
872
- if (!Z(c, n)) return !1;
872
+ if (!Q(c, n)) return !1;
873
873
  if (O(c)) return l.$formatCells(a), !0;
874
874
  if (L(c)) {
875
875
  const f = x(c.anchor.getNode(), (d) => w(d));
@@ -878,7 +878,7 @@ function Xn(n, e, t, o) {
878
878
  return !1;
879
879
  }, V)), l.listenersToRemove.add(t.registerCommand(hn, (a) => {
880
880
  const c = B();
881
- if (!O(c) || !Z(c, n)) return !1;
881
+ if (!O(c) || !Q(c, n)) return !1;
882
882
  const f = c.anchor.getNode(), d = c.focus.getNode();
883
883
  if (!w(f) || !w(d)) return !1;
884
884
  if (function(K, E) {
@@ -891,80 +891,80 @@ function Xn(n, e, t, o) {
891
891
  }
892
892
  return !1;
893
893
  }(c, n)) return n.setFormat(a), !0;
894
- const [g, _, S] = U(n, f, d), N = Math.max(_.startRow + _.cell.__rowSpan - 1, S.startRow + S.cell.__rowSpan - 1), b = Math.max(_.startColumn + _.cell.__colSpan - 1, S.startColumn + S.cell.__colSpan - 1), T = Math.min(_.startRow, S.startRow), F = Math.min(_.startColumn, S.startColumn), M = /* @__PURE__ */ new Set();
895
- for (let K = T; K <= N; K++) for (let E = F; E <= b; E++) {
894
+ const [g, _, S] = U(n, f, d), N = Math.max(_.startRow + _.cell.__rowSpan - 1, S.startRow + S.cell.__rowSpan - 1), y = Math.max(_.startColumn + _.cell.__colSpan - 1, S.startColumn + S.cell.__colSpan - 1), T = Math.min(_.startRow, S.startRow), F = Math.min(_.startColumn, S.startColumn), M = /* @__PURE__ */ new Set();
895
+ for (let K = T; K <= N; K++) for (let E = F; E <= y; E++) {
896
896
  const R = g[K][E].cell;
897
897
  if (M.has(R)) continue;
898
898
  M.add(R), R.setFormat(a);
899
899
  const k = R.getChildren();
900
900
  for (let z = 0; z < k.length; z++) {
901
- const P = k[z];
902
- D(P) && !P.isInline() && P.setFormat(a);
901
+ const H = k[z];
902
+ D(H) && !H.isInline() && H.setFormat(a);
903
903
  }
904
904
  }
905
905
  return !0;
906
906
  }, V)), l.listenersToRemove.add(t.registerCommand(dn, (a) => {
907
907
  const c = B();
908
- if (!Z(c, n)) return !1;
908
+ if (!Q(c, n)) return !1;
909
909
  if (O(c)) return l.$clearHighlight(), !1;
910
910
  if (L(c)) {
911
911
  const f = x(c.anchor.getNode(), (d) => w(d));
912
912
  if (!w(f)) return !1;
913
913
  if (typeof a == "string") {
914
- const d = yt(t, c, n);
914
+ const d = bt(t, c, n);
915
915
  if (d) return wt(d, n, [Ge(a)]), !0;
916
916
  }
917
917
  }
918
918
  return !1;
919
919
  }, V)), o && l.listenersToRemove.add(t.registerCommand(fn, (a) => {
920
920
  const c = B();
921
- if (!L(c) || !c.isCollapsed() || !Z(c, n)) return !1;
921
+ if (!L(c) || !c.isCollapsed() || !Q(c, n)) return !1;
922
922
  const f = we(c.anchor.getNode());
923
923
  return !(f === null || !n.is(pe(f))) && (te(a), function(d, g) {
924
924
  const _ = g === "next" ? "getNextSibling" : "getPreviousSibling", S = g === "next" ? "getFirstChild" : "getLastChild", N = d[_]();
925
925
  if (D(N)) return N.selectEnd();
926
- const b = x(d, A);
927
- b === null && y(247);
928
- for (let F = b[_](); A(F); F = F[_]()) {
926
+ const y = x(d, A);
927
+ y === null && b(247);
928
+ for (let F = y[_](); A(F); F = F[_]()) {
929
929
  const M = F[S]();
930
930
  if (D(M)) return M.selectEnd();
931
931
  }
932
- const T = x(b, $);
933
- T === null && y(248), g === "next" ? T.selectNext() : T.selectPrevious();
932
+ const T = x(y, $);
933
+ T === null && b(248), g === "next" ? T.selectNext() : T.selectPrevious();
934
934
  }(f, a.shiftKey ? "previous" : "next"), !0);
935
935
  }, V)), l.listenersToRemove.add(t.registerCommand(gn, (a) => n.isSelected(), De)), l.listenersToRemove.add(t.registerCommand(Tt, (a) => {
936
936
  const { nodes: c, selection: f } = a, d = f.getStartEndPoints(), g = O(f), _ = L(f) && x(f.anchor.getNode(), (v) => w(v)) !== null && x(f.focus.getNode(), (v) => w(v)) !== null || g;
937
937
  if (c.length !== 1 || !$(c[0]) || !_ || d === null) return !1;
938
- const [S, N] = d, [b, T, F] = G(S), M = x(N.getNode(), (v) => w(v));
939
- if (!(w(b) && w(M) && A(T) && $(F))) return !1;
940
- const K = c[0], [E, R, k] = U(F, b, M), [z] = oe(K, null, null), P = E.length, le = P > 0 ? E[0].length : 0;
941
- let Y = R.startRow, q = R.startColumn, H = z.length, ue = H > 0 ? z[0].length : 0;
938
+ const [S, N] = d, [y, T, F] = G(S), M = x(N.getNode(), (v) => w(v));
939
+ if (!(w(y) && w(M) && A(T) && $(F))) return !1;
940
+ const K = c[0], [E, R, k] = U(F, y, M), [z] = oe(K, null, null), H = E.length, le = H > 0 ? E[0].length : 0;
941
+ let q = R.startRow, Y = R.startColumn, P = z.length, ue = P > 0 ? z[0].length : 0;
942
942
  if (g) {
943
943
  const v = Ee(E, R, k), J = v.maxRow - v.minRow + 1, j = v.maxColumn - v.minColumn + 1;
944
- Y = v.minRow, q = v.minColumn, H = Math.min(H, J), ue = Math.min(ue, j);
944
+ q = v.minRow, Y = v.minColumn, P = Math.min(P, J), ue = Math.min(ue, j);
945
945
  }
946
946
  let ze = !1;
947
- const Lt = Math.min(P, Y + H) - 1, Wt = Math.min(le, q + ue) - 1, st = /* @__PURE__ */ new Set();
948
- for (let v = Y; v <= Lt; v++) for (let J = q; J <= Wt; J++) {
947
+ const Lt = Math.min(H, q + P) - 1, Wt = Math.min(le, Y + ue) - 1, st = /* @__PURE__ */ new Set();
948
+ for (let v = q; v <= Lt; v++) for (let J = Y; J <= Wt; J++) {
949
949
  const j = E[v][J];
950
950
  st.has(j.cell.getKey()) || j.cell.__rowSpan === 1 && j.cell.__colSpan === 1 || (Wn(j.cell), st.add(j.cell.getKey()), ze = !0);
951
951
  }
952
952
  let [_e] = oe(F.getWritable(), null, null);
953
- const Pt = H - P + Y;
954
- for (let v = 0; v < Pt; v++)
955
- kn(_e[P - 1][0].cell);
956
- const Ht = ue - le + q;
953
+ const Ht = P - H + q;
957
954
  for (let v = 0; v < Ht; v++)
955
+ kn(_e[H - 1][0].cell);
956
+ const Pt = ue - le + Y;
957
+ for (let v = 0; v < Pt; v++)
958
958
  $n(_e[0][le - 1].cell, !0, !1);
959
959
  [_e] = oe(F.getWritable(), null, null);
960
- for (let v = Y; v < Y + H; v++) for (let J = q; J < q + ue; J++) {
961
- const j = v - Y, it = J - q, Le = z[j][it];
960
+ for (let v = q; v < q + P; v++) for (let J = Y; J < Y + ue; J++) {
961
+ const j = v - q, it = J - Y, Le = z[j][it];
962
962
  if (Le.startRow !== j || Le.startColumn !== it) continue;
963
963
  const Se = Le.cell;
964
964
  if (Se.__rowSpan !== 1 || Se.__colSpan !== 1) {
965
- const ee = [], Dt = Math.min(v + Se.__rowSpan, Y + H) - 1, It = Math.min(J + Se.__colSpan, q + ue) - 1;
966
- for (let Pe = v; Pe <= Dt; Pe++) for (let He = J; He <= It; He++) {
967
- const Jt = _e[Pe][He];
965
+ const ee = [], Dt = Math.min(v + Se.__rowSpan, q + P) - 1, It = Math.min(J + Se.__colSpan, Y + ue) - 1;
966
+ for (let He = v; He <= Dt; He++) for (let Pe = J; Pe <= It; Pe++) {
967
+ const Jt = _e[He][Pe];
968
968
  ee.push(Jt.cell);
969
969
  }
970
970
  zn(ee), ze = !0;
@@ -984,7 +984,7 @@ function Xn(n, e, t, o) {
984
984
  if (f !== null) {
985
985
  const { focusCell: d } = f;
986
986
  if (O(a) && a.tableKey === l.tableNodeKey) return (d.x !== l.focusX || d.y !== l.focusY) && (l.$setFocusCellForSelection(d), !0);
987
- if (d !== l.anchorCell && Z(a, n)) return l.$setFocusCellForSelection(d), !0;
987
+ if (d !== l.anchorCell && Q(a, n)) return l.$setFocusCellForSelection(d), !0;
988
988
  }
989
989
  if (l.getAndClearShouldCheckSelection() && L(c) && L(a) && a.isCollapsed()) {
990
990
  const d = a.anchor.getNode(), g = n.getFirstChild(), _ = we(d);
@@ -994,28 +994,28 @@ function Xn(n, e, t, o) {
994
994
  }
995
995
  }
996
996
  if (L(a)) {
997
- const { anchor: d, focus: g } = a, _ = d.getNode(), S = g.getNode(), N = we(_), b = we(S), T = !(!N || !n.is(pe(N))), F = !(!b || !n.is(pe(b))), M = T !== F, K = T && F, E = a.isBackward();
997
+ const { anchor: d, focus: g } = a, _ = d.getNode(), S = g.getNode(), N = we(_), y = we(S), T = !(!N || !n.is(pe(N))), F = !(!y || !n.is(pe(y))), M = T !== F, K = T && F, E = a.isBackward();
998
998
  if (M) {
999
999
  const R = a.clone();
1000
1000
  if (F) {
1001
- const [k] = U(n, b, b), z = k[0][0].cell, P = k[k.length - 1].at(-1).cell;
1002
- R.focus.set(E ? z.getKey() : P.getKey(), E ? z.getChildrenSize() : P.getChildrenSize(), "element");
1001
+ const [k] = U(n, y, y), z = k[0][0].cell, H = k[k.length - 1].at(-1).cell;
1002
+ R.focus.set(E ? z.getKey() : H.getKey(), E ? z.getChildrenSize() : H.getChildrenSize(), "element");
1003
1003
  } else if (T) {
1004
- const [k] = U(n, N, N), z = k[0][0].cell, P = k[k.length - 1].at(-1).cell;
1005
- R.anchor.set(E ? P.getKey() : z.getKey(), E ? P.getChildrenSize() : 0, "element");
1004
+ const [k] = U(n, N, N), z = k[0][0].cell, H = k[k.length - 1].at(-1).cell;
1005
+ R.anchor.set(E ? H.getKey() : z.getKey(), E ? H.getChildrenSize() : 0, "element");
1006
1006
  }
1007
1007
  ne(R), St(t, l);
1008
- } else if (K && (N.is(b) || (l.$setAnchorCellForSelection(se(l, N)), l.$setFocusCellForSelection(se(l, b), !0)), l.pointerType === "touch" && a.isCollapsed() && L(c) && c.isCollapsed())) {
1008
+ } else if (K && (N.is(y) || (l.$setAnchorCellForSelection(se(l, N)), l.$setFocusCellForSelection(se(l, y), !0)), l.pointerType === "touch" && a.isCollapsed() && L(c) && c.isCollapsed())) {
1009
1009
  const R = we(c.anchor.getNode());
1010
- R && !R.is(b) && (l.$setAnchorCellForSelection(se(l, R)), l.$setFocusCellForSelection(se(l, b), !0), l.pointerType = null);
1010
+ R && !R.is(y) && (l.$setAnchorCellForSelection(se(l, R)), l.$setFocusCellForSelection(se(l, y), !0), l.pointerType = null);
1011
1011
  }
1012
1012
  } else if (a && O(a) && a.is(c) && a.tableKey === n.getKey()) {
1013
1013
  const d = $e(s);
1014
1014
  if (d && d.anchorNode && d.focusNode) {
1015
1015
  const g = re(d.focusNode), _ = g && !n.isParentOf(g), S = re(d.anchorNode), N = S && n.isParentOf(S);
1016
1016
  if (_ && N && d.rangeCount > 0) {
1017
- const b = mn(d, t);
1018
- b && (b.anchor.set(n.getKey(), a.isBackward() ? n.getChildrenSize() : 0, "element"), d.removeAllRanges(), ne(b));
1017
+ const y = mn(d, t);
1018
+ y && (y.anchor.set(n.getKey(), a.isBackward() ? n.getChildrenSize() : 0, "element"), d.removeAllRanges(), ne(y));
1019
1019
  }
1020
1020
  }
1021
1021
  }
@@ -1027,13 +1027,13 @@ function Xn(n, e, t, o) {
1027
1027
  }(t, l) : !l.hasHijackedSelectionStyles && n.isSelected() && St(t, l), !1);
1028
1028
  }, V)), l.listenersToRemove.add(t.registerCommand(Ft, () => {
1029
1029
  const a = B();
1030
- if (!L(a) || !a.isCollapsed() || !Z(a, n)) return !1;
1031
- const c = yt(t, a, n);
1030
+ if (!L(a) || !a.isCollapsed() || !Q(a, n)) return !1;
1031
+ const c = bt(t, a, n);
1032
1032
  return !!c && (wt(c, n), !0);
1033
1033
  }, V)), l;
1034
1034
  }
1035
1035
  function Ct(n) {
1036
- return n[Ye] || null;
1036
+ return n[qe] || null;
1037
1037
  }
1038
1038
  function ke(n) {
1039
1039
  let e = n;
@@ -1112,7 +1112,7 @@ function St(n, e) {
1112
1112
  t.highlighted = !0, $t(n, t);
1113
1113
  });
1114
1114
  }
1115
- const Yn = (n, e, t, o, r) => {
1115
+ const qn = (n, e, t, o, r) => {
1116
1116
  const s = r === "forward";
1117
1117
  switch (r) {
1118
1118
  case "backward":
@@ -1145,21 +1145,21 @@ function Fe([n, e]) {
1145
1145
  }
1146
1146
  function he(n, e, [t, o]) {
1147
1147
  const r = e[o], s = n[r];
1148
- s === void 0 && y(250, o, String(r));
1148
+ s === void 0 && b(250, o, String(r));
1149
1149
  const l = e[t], i = s[l];
1150
- return i === void 0 && y(250, t, String(l)), i;
1150
+ return i === void 0 && b(250, t, String(l)), i;
1151
1151
  }
1152
- function qn(n, e, t, o, r) {
1152
+ function Yn(n, e, t, o, r) {
1153
1153
  const s = Ee(e, t, o), l = function(T, F) {
1154
1154
  const { minColumn: M, maxColumn: K, minRow: E, maxRow: R } = F;
1155
- let k = 1, z = 1, P = 1, le = 1;
1156
- const Y = T[E], q = T[R];
1157
- for (let H = M; H <= K; H++) k = Math.max(k, Y[H].cell.__rowSpan), le = Math.max(le, q[H].cell.__rowSpan);
1158
- for (let H = E; H <= R; H++) z = Math.max(z, T[H][M].cell.__colSpan), P = Math.max(P, T[H][K].cell.__colSpan);
1159
- return { bottomSpan: le, leftSpan: z, rightSpan: P, topSpan: k };
1155
+ let k = 1, z = 1, H = 1, le = 1;
1156
+ const q = T[E], Y = T[R];
1157
+ for (let P = M; P <= K; P++) k = Math.max(k, q[P].cell.__rowSpan), le = Math.max(le, Y[P].cell.__rowSpan);
1158
+ for (let P = E; P <= R; P++) z = Math.max(z, T[P][M].cell.__colSpan), H = Math.max(H, T[P][K].cell.__colSpan);
1159
+ return { bottomSpan: le, leftSpan: z, rightSpan: H, topSpan: k };
1160
1160
  }(e, s), { topSpan: i, leftSpan: u, bottomSpan: m, rightSpan: h } = l, p = function(T, F) {
1161
1161
  const M = Ie(T, F);
1162
- return M === null && y(249, F.cell.getKey()), M;
1162
+ return M === null && b(249, F.cell.getKey()), M;
1163
1163
  }(s, t), [C, a] = Fe(p);
1164
1164
  let c = s[C], f = s[a];
1165
1165
  r === "forward" ? c += C === "maxColumn" ? 1 : u : r === "backward" ? c -= C === "minColumn" ? 1 : h : r === "down" ? f += a === "maxRow" ? 1 : i : r === "up" && (f -= a === "minRow" ? 1 : m);
@@ -1174,10 +1174,10 @@ function qn(n, e, t, o, r) {
1174
1174
  if (R) return [he(T, K, Fe(R)), he(T, K, R)];
1175
1175
  const k = ["minColumn", "minRow"];
1176
1176
  return [he(T, K, k), he(T, K, Fe(k))];
1177
- }(e, t, g), N = se(n, _.cell), b = se(n, S.cell);
1178
- return n.$setAnchorCellForSelection(N), n.$setFocusCellForSelection(b, !0), !0;
1177
+ }(e, t, g), N = se(n, _.cell), y = se(n, S.cell);
1178
+ return n.$setAnchorCellForSelection(N), n.$setFocusCellForSelection(y, !0), !0;
1179
1179
  }
1180
- function Z(n, e) {
1180
+ function Q(n, e) {
1181
1181
  if (L(n) || O(n)) {
1182
1182
  const t = e.isParentOf(n.anchor.getNode()), o = e.isParentOf(n.focus.getNode());
1183
1183
  return t && o;
@@ -1189,11 +1189,11 @@ function Ke(n, e) {
1189
1189
  }
1190
1190
  function $t(n, e) {
1191
1191
  const t = e.elem, o = n._config.theme;
1192
- w(re(t)) || y(131), Q(t, o.tableCellSelected);
1192
+ w(re(t)) || b(131), Z(t, o.tableCellSelected);
1193
1193
  }
1194
1194
  function Mt(n, e) {
1195
1195
  const t = e.elem;
1196
- w(re(t)) || y(131);
1196
+ w(re(t)) || b(131);
1197
1197
  const o = n._config.theme;
1198
1198
  ge(t, o.tableCellSelected);
1199
1199
  }
@@ -1210,7 +1210,7 @@ function jn(n, e, t, o, r, s, l) {
1210
1210
  if (wn(i)) return !1;
1211
1211
  let u = i;
1212
1212
  for (const d of ct(i).iterNodeCarets("shadowRoot")) {
1213
- if (!yn(d) || !D(d.origin)) return !1;
1213
+ if (!bn(d) || !D(d.origin)) return !1;
1214
1214
  u = d;
1215
1215
  }
1216
1216
  const m = u.getParentAtCaret();
@@ -1219,7 +1219,7 @@ function jn(n, e, t, o, r, s, l) {
1219
1219
  for (const g of ct(d).iterNodeCarets("root")) {
1220
1220
  const { origin: _ } = g;
1221
1221
  if (w(_)) {
1222
- if (ut(g)) return bn(_, d.direction);
1222
+ if (ut(g)) return yn(_, d.direction);
1223
1223
  } else if (!A(_)) break;
1224
1224
  }
1225
1225
  return null;
@@ -1252,7 +1252,7 @@ function zt(n, e, t, o, r) {
1252
1252
  return i ? i.hasAttribute("aria-controls") && i.getAttribute("aria-controls") === "typeahead-menu" : !1;
1253
1253
  }(n)) return !1;
1254
1254
  const s = B();
1255
- if (!Z(s, o)) {
1255
+ if (!Q(s, o)) {
1256
1256
  if (L(s)) {
1257
1257
  if (t === "backward") {
1258
1258
  if (s.focus.offset > 0) return !1;
@@ -1334,7 +1334,7 @@ function zt(n, e, t, o, r) {
1334
1334
  if (t === "up" ? d.top > a.top - a.height : a.bottom + a.height > d.bottom) {
1335
1335
  te(e);
1336
1336
  const g = o.getCordsFromCellNode(u, r.table);
1337
- if (!e.shiftKey) return Yn(r, o, g.x, g.y, t);
1337
+ if (!e.shiftKey) return qn(r, o, g.x, g.y, t);
1338
1338
  {
1339
1339
  const _ = o.getDOMCellFromCordsOrThrow(g.x, g.y, r.table);
1340
1340
  r.$setAnchorCellForSelection(_), r.$setFocusCellForSelection(_, !0);
@@ -1344,14 +1344,14 @@ function zt(n, e, t, o, r) {
1344
1344
  }
1345
1345
  } else if (O(s)) {
1346
1346
  const { anchor: l, focus: i } = s, u = x(l.getNode(), w), m = x(i.getNode(), w), [h] = s.getNodes();
1347
- $(h) || y(251);
1347
+ $(h) || b(251);
1348
1348
  const p = ie(h, n.getElementByKey(h.getKey()));
1349
1349
  if (!w(u) || !w(m) || !$(h) || p == null) return !1;
1350
1350
  r.$updateTableTableSelection(s);
1351
1351
  const C = me(h, p), a = o.getCordsFromCellNode(u, C), c = o.getDOMCellFromCordsOrThrow(a.x, a.y, C);
1352
1352
  if (r.$setAnchorCellForSelection(c), te(e), e.shiftKey) {
1353
1353
  const [f, d, g] = U(o, u, m);
1354
- return qn(r, f, d, g, t);
1354
+ return Yn(r, f, d, g, t);
1355
1355
  }
1356
1356
  return m.selectEnd(), !0;
1357
1357
  }
@@ -1364,7 +1364,7 @@ function wt(n, e, t) {
1364
1364
  const o = I();
1365
1365
  n === "first" ? e.insertBefore(o) : e.insertAfter(o), o.append(...t || []), o.selectEnd();
1366
1366
  }
1367
- function yt(n, e, t) {
1367
+ function bt(n, e, t) {
1368
1368
  const o = t.getParent();
1369
1369
  if (!o) return;
1370
1370
  const r = $e(ot(n));
@@ -1382,17 +1382,17 @@ function se(n, e) {
1382
1382
  const { tableNode: t } = n.$lookup(), o = t.getCordsFromCellNode(e, n.table);
1383
1383
  return t.getDOMCellFromCordsOrThrow(o.x, o.y, n.table);
1384
1384
  }
1385
- function qe(n, e, t) {
1385
+ function Ye(n, e, t) {
1386
1386
  return Ne(n, re(e, t));
1387
1387
  }
1388
- function bt(n, e, t) {
1388
+ function yt(n, e, t) {
1389
1389
  if (!e.theme.tableAlignment) return;
1390
1390
  const o = [], r = [];
1391
1391
  for (const s of ["center", "right"]) {
1392
1392
  const l = e.theme.tableAlignment[s];
1393
1393
  l && (s === t ? r : o).push(l);
1394
1394
  }
1395
- ge(n, ...o), Q(n, ...r);
1395
+ ge(n, ...o), Z(n, ...r);
1396
1396
  }
1397
1397
  const je = /* @__PURE__ */ new WeakSet();
1398
1398
  function Ve(n = xt()) {
@@ -1401,7 +1401,7 @@ function Ve(n = xt()) {
1401
1401
  function uo(n, e) {
1402
1402
  e ? je.add(n) : je.delete(n);
1403
1403
  }
1404
- class ae extends Ze {
1404
+ class ae extends Qe {
1405
1405
  static getType() {
1406
1406
  return "table";
1407
1407
  }
@@ -1419,7 +1419,7 @@ class ae extends Ze {
1419
1419
  super.afterCloneFrom(e), this.__colWidths = e.__colWidths, this.__rowStriping = e.__rowStriping, this.__frozenColumnCount = e.__frozenColumnCount, this.__frozenRowCount = e.__frozenRowCount;
1420
1420
  }
1421
1421
  static importDOM() {
1422
- return { table: (e) => ({ conversion: Zn, priority: 1 }) };
1422
+ return { table: (e) => ({ conversion: Qn, priority: 1 }) };
1423
1423
  }
1424
1424
  static importJSON(e) {
1425
1425
  return lt().updateFromJSON(e);
@@ -1438,28 +1438,28 @@ class ae extends Ze {
1438
1438
  }
1439
1439
  getDOMSlot(e) {
1440
1440
  const t = de(e) ? e : e.querySelector("table");
1441
- return de(t) || y(229), super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"));
1441
+ return de(t) || b(229), super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"));
1442
1442
  }
1443
1443
  createDOM(e, t) {
1444
1444
  const o = document.createElement("table");
1445
1445
  this.__style && (o.style.cssText = this.__style);
1446
1446
  const r = document.createElement("colgroup");
1447
- if (o.appendChild(r), Vt(r), Q(o, e.theme.table), this.updateTableElement(null, o, e), Ve(t)) {
1447
+ if (o.appendChild(r), Vt(r), Z(o, e.theme.table), this.updateTableElement(null, o, e), Ve(t)) {
1448
1448
  const s = document.createElement("div"), l = e.theme.tableScrollableWrapper;
1449
- return l ? Q(s, l) : s.style.cssText = "overflow-x: auto;", s.appendChild(o), this.updateTableWrapper(null, s, o, e), s;
1449
+ return l ? Z(s, l) : s.style.cssText = "overflow-x: auto;", s.appendChild(o), this.updateTableWrapper(null, s, o, e), s;
1450
1450
  }
1451
1451
  return o;
1452
1452
  }
1453
1453
  updateTableWrapper(e, t, o, r) {
1454
1454
  this.__frozenColumnCount !== (e ? e.__frozenColumnCount : 0) && function(s, l, i, u) {
1455
- u > 0 ? (Q(s, i.theme.tableFrozenColumn), l.setAttribute("data-lexical-frozen-column", "true")) : (ge(s, i.theme.tableFrozenColumn), l.removeAttribute("data-lexical-frozen-column"));
1455
+ u > 0 ? (Z(s, i.theme.tableFrozenColumn), l.setAttribute("data-lexical-frozen-column", "true")) : (ge(s, i.theme.tableFrozenColumn), l.removeAttribute("data-lexical-frozen-column"));
1456
1456
  }(t, o, r, this.__frozenColumnCount), this.__frozenRowCount !== (e ? e.__frozenRowCount : 0) && function(s, l, i, u) {
1457
- u > 0 ? (Q(s, i.theme.tableFrozenRow), l.setAttribute("data-lexical-frozen-row", "true")) : (ge(s, i.theme.tableFrozenRow), l.removeAttribute("data-lexical-frozen-row"));
1457
+ u > 0 ? (Z(s, i.theme.tableFrozenRow), l.setAttribute("data-lexical-frozen-row", "true")) : (ge(s, i.theme.tableFrozenRow), l.removeAttribute("data-lexical-frozen-row"));
1458
1458
  }(t, o, r, this.__frozenRowCount);
1459
1459
  }
1460
1460
  updateTableElement(e, t, o) {
1461
1461
  this.__style !== (e ? e.__style : "") && (t.style.cssText = this.__style), this.__rowStriping !== (!!e && e.__rowStriping) && function(r, s, l) {
1462
- l ? (Q(r, s.theme.tableRowStriping), r.setAttribute("data-lexical-row-striping", "true")) : (ge(r, s.theme.tableRowStriping), r.removeAttribute("data-lexical-row-striping"));
1462
+ l ? (Z(r, s.theme.tableRowStriping), r.setAttribute("data-lexical-row-striping", "true")) : (ge(r, s.theme.tableRowStriping), r.removeAttribute("data-lexical-row-striping"));
1463
1463
  }(t, o, this.__rowStriping), function(r, s, l, i) {
1464
1464
  const u = r.querySelector("colgroup");
1465
1465
  if (!u) return;
@@ -1469,18 +1469,18 @@ class ae extends Ze {
1469
1469
  C && (p.style.width = `${C}px`), m.push(p);
1470
1470
  }
1471
1471
  u.replaceChildren(...m);
1472
- }(t, 0, this.getColumnCount(), this.getColWidths()), bt(t, o, this.getFormatType());
1472
+ }(t, 0, this.getColumnCount(), this.getColWidths()), yt(t, o, this.getFormatType());
1473
1473
  }
1474
1474
  updateDOM(e, t, o) {
1475
1475
  const r = this.getDOMSlot(t).element;
1476
- return t === r === Ve() || (be(s = t) && s.nodeName === "DIV" && this.updateTableWrapper(e, t, r, o), this.updateTableElement(e, r, o), !1);
1476
+ return t === r === Ve() || (ye(s = t) && s.nodeName === "DIV" && this.updateTableWrapper(e, t, r, o), this.updateTableElement(e, r, o), !1);
1477
1477
  var s;
1478
1478
  }
1479
1479
  exportDOM(e) {
1480
1480
  const t = super.exportDOM(e), { element: o } = t;
1481
1481
  return { after: (r) => {
1482
- if (t.after && (r = t.after(r)), !de(r) && be(r) && (r = r.querySelector("table")), !de(r)) return null;
1483
- bt(r, e._config, this.getFormatType());
1482
+ if (t.after && (r = t.after(r)), !de(r) && ye(r) && (r = r.querySelector("table")), !de(r)) return null;
1483
+ yt(r, e._config, this.getFormatType());
1484
1484
  const [s] = oe(this, null, null), l = /* @__PURE__ */ new Map();
1485
1485
  for (const h of s) for (const p of h) {
1486
1486
  const C = p.cell.getKey();
@@ -1509,7 +1509,7 @@ class ae extends Ze {
1509
1509
  r.append(h);
1510
1510
  }
1511
1511
  return r;
1512
- }, element: !de(o) && be(o) ? o.querySelector("table") : o };
1512
+ }, element: !de(o) && ye(o) ? o.querySelector("table") : o };
1513
1513
  }
1514
1514
  canBeEmpty() {
1515
1515
  return !1;
@@ -1524,7 +1524,7 @@ class ae extends Ze {
1524
1524
  if (l != null) for (let i = 0; i < l.length; i++) {
1525
1525
  const u = l[i];
1526
1526
  if (u == null) continue;
1527
- const { elem: m } = u, h = qe(this, m);
1527
+ const { elem: m } = u, h = Ye(this, m);
1528
1528
  if (h !== null && e.is(h)) return { x: i, y: s };
1529
1529
  }
1530
1530
  }
@@ -1590,9 +1590,9 @@ class ae extends Ze {
1590
1590
  }
1591
1591
  function Vn(n, e) {
1592
1592
  const t = n.getElementByKey(e.getKey());
1593
- return t === null && y(230), me(e, t);
1593
+ return t === null && b(230), me(e, t);
1594
1594
  }
1595
- function Zn(n) {
1595
+ function Qn(n) {
1596
1596
  const e = lt();
1597
1597
  n.hasAttribute("data-lexical-row-striping") && e.setRowStriping(!0), n.hasAttribute("data-lexical-frozen-column") && e.setFrozenColumns(1), n.hasAttribute("data-lexical-frozen-row") && e.setFrozenRows(1);
1598
1598
  const t = n.querySelector(":scope > colgroup");
@@ -1611,16 +1611,16 @@ function Zn(n) {
1611
1611
  return { after: (o) => Nt(o, A), node: e };
1612
1612
  }
1613
1613
  function lt() {
1614
- return Qe(new ae());
1614
+ return Ze(new ae());
1615
1615
  }
1616
1616
  function $(n) {
1617
1617
  return n instanceof ae;
1618
1618
  }
1619
- function Qn({ rows: n, columns: e, includeHeaders: t }) {
1619
+ function Zn({ rows: n, columns: e, includeHeaders: t }) {
1620
1620
  const o = B() || Je();
1621
1621
  if (!o || !L(o) || pe(o.anchor.getNode())) return !1;
1622
1622
  const r = En(Number(n), Number(e), t);
1623
- Yt(r);
1623
+ qt(r);
1624
1624
  const s = r.getFirstDescendant();
1625
1625
  return Ce(s) && s.select(), !0;
1626
1626
  }
@@ -1636,7 +1636,7 @@ function to(n) {
1636
1636
  for (let r = 0; r < e.length; ++r) {
1637
1637
  const s = o[r];
1638
1638
  if (!s) continue;
1639
- A(s) || y(254, s.constructor.name, s.getType());
1639
+ A(s) || b(254, s.constructor.name, s.getType());
1640
1640
  const l = e[r].reduce((i, u) => u ? 1 + i : i, 0);
1641
1641
  if (l !== t) for (let i = l; i < t; ++i) {
1642
1642
  const u = X();
@@ -1645,7 +1645,7 @@ function to(n) {
1645
1645
  }
1646
1646
  }
1647
1647
  function no(n) {
1648
- if (n.detail < 3 || !ye(n.target)) return !1;
1648
+ if (n.detail < 3 || !be(n.target)) return !1;
1649
1649
  const e = re(n.target);
1650
1650
  if (e === null) return !1;
1651
1651
  const t = x(e, (o) => D(o) && !o.isInline());
@@ -1656,16 +1656,16 @@ function ho(n) {
1656
1656
  if (e.getColSpan() > 1 || e.getRowSpan() > 1) {
1657
1657
  const [, , t] = G(e), [o] = U(t, e, e), r = o.length, s = o[0].length;
1658
1658
  let l = t.getFirstChild();
1659
- A(l) || y(175);
1659
+ A(l) || b(175);
1660
1660
  const i = [];
1661
1661
  for (let u = 0; u < r; u++) {
1662
- u !== 0 && (l = l.getNextSibling(), A(l) || y(175));
1662
+ u !== 0 && (l = l.getNextSibling(), A(l) || b(175));
1663
1663
  let m = null;
1664
1664
  for (let h = 0; h < s; h++) {
1665
1665
  const p = o[u][h], C = p.cell;
1666
1666
  if (p.startRow === u && p.startColumn === h) m = C, i.push(C);
1667
1667
  else if (C.getColSpan() > 1 || C.getRowSpan() > 1) {
1668
- w(C) || y(176);
1668
+ w(C) || b(176);
1669
1669
  const a = X(C.__headerState);
1670
1670
  m !== null ? m.insertAfter(a) : Xt(l, a);
1671
1671
  }
@@ -1696,7 +1696,7 @@ function fo(n, e = !0) {
1696
1696
  };
1697
1697
  }
1698
1698
  function go(n) {
1699
- return n.hasNodes([ae]) || y(255), Ut(n.registerCommand(Kn, Qn, Be), n.registerCommand(Tt, ({ nodes: e, selection: t }) => L(t) ? pe(t.anchor.getNode()) !== null && e.some($) : !1, Be), n.registerCommand(Zt, no, Be), n.registerNodeTransform(ae, to), n.registerNodeTransform(xe, eo), n.registerNodeTransform(ce, Gn));
1699
+ return n.hasNodes([ae]) || b(255), Ut(n.registerCommand(Kn, Zn, Be), n.registerCommand(Tt, ({ nodes: e, selection: t }) => L(t) ? pe(t.anchor.getNode()) !== null && e.some($) : !1, Be), n.registerCommand(Qt, no, Be), n.registerNodeTransform(ae, to), n.registerNodeTransform(xe, eo), n.registerNodeTransform(ce, Gn));
1700
1700
  }
1701
1701
  export {
1702
1702
  ao as B,
@@ -1718,4 +1718,4 @@ export {
1718
1718
  ce as y,
1719
1719
  Kt as z
1720
1720
  };
1721
- //# sourceMappingURL=LexicalTable.prod-BHKhA4PF.js.map
1721
+ //# sourceMappingURL=LexicalTable.prod-BSjs04iE.js.map