@uva-glass/component-library 1.62.7 → 1.62.9

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 (57) hide show
  1. package/dist/{Lexical.prod-eo-UKDld.js → Lexical.prod-B6kL_nwF.js} +159 -159
  2. package/dist/Lexical.prod-B6kL_nwF.js.map +1 -0
  3. package/dist/{LexicalUtils.prod-DzksRdFe.js → LexicalUtils.prod-BBoyOK4A.js} +22 -22
  4. package/dist/{LexicalUtils.prod-DzksRdFe.js.map → LexicalUtils.prod-BBoyOK4A.js.map} +1 -1
  5. package/dist/{ListPlugin-DsPphjdE.js → ListPlugin-CpLcVKRP.js} +17 -17
  6. package/dist/{ListPlugin-DsPphjdE.js.map → ListPlugin-CpLcVKRP.js.map} +1 -1
  7. package/dist/TablePlugin-DQR5VWGq.js +301 -0
  8. package/dist/TablePlugin-DQR5VWGq.js.map +1 -0
  9. package/dist/assets/favicon/android-chrome-192x192.png +0 -0
  10. package/dist/assets/favicon/android-chrome-512x512.png +0 -0
  11. package/dist/assets/favicon/apple-touch-icon.png +0 -0
  12. package/dist/assets/favicon/favicon-16x16.png +0 -0
  13. package/dist/assets/favicon/favicon-32x32.png +0 -0
  14. package/dist/assets/favicon/favicon.ico +0 -0
  15. package/dist/assets/favicon/favicon.svg +27 -0
  16. package/dist/assets/favicon/site.webmanifest +19 -0
  17. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  18. package/dist/components/FormInput/FormInput.js +1 -1
  19. package/dist/components/InputField/InputField.stories.js +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  22. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  23. package/dist/components/MultiSelect/index.js +1 -1
  24. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  25. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  26. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  27. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  28. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  29. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +2 -2
  30. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +32 -32
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  32. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +2 -2
  33. package/dist/components/RteEditor/Plugins/ListPlugin/index.js +1 -1
  34. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  35. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  36. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +7 -6
  37. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  38. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  39. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +50 -37
  40. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
  41. package/dist/components/RteEditor/Plugins/index.js +2 -2
  42. package/dist/components/RteEditor/RteEditor.d.ts +1 -1
  43. package/dist/components/RteEditor/RteEditor.js +140 -138
  44. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  45. package/dist/components/RteEditor/RteEditor.stories.js +1 -1
  46. package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
  47. package/dist/components/index.js +1 -1
  48. package/dist/{helpers-BD3Y_bqE.js → helpers-C7Yo7VY3.js} +34 -34
  49. package/dist/{helpers-BD3Y_bqE.js.map → helpers-C7Yo7VY3.js.map} +1 -1
  50. package/dist/{helpers-DONVwywj.js → helpers-CVB_4CnL.js} +127 -125
  51. package/dist/helpers-CVB_4CnL.js.map +1 -0
  52. package/dist/index.js +1 -1
  53. package/package.json +9 -9
  54. package/dist/Lexical.prod-eo-UKDld.js.map +0 -1
  55. package/dist/TablePlugin-hmwPCCLn.js +0 -310
  56. package/dist/TablePlugin-hmwPCCLn.js.map +0 -1
  57. package/dist/helpers-DONVwywj.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { i as et, t as _, $ as ue, U as tt } from "./LexicalUtils.prod-DzksRdFe.js";
2
- import { C as Tt, X as Et, k as nt, b as T, n as Ot, N as ot, J as rt, w as Ee, p as st, c as $, v as lt, q as Le, a as it, P as ve, s as He, T as Be, F as V, x as A, A as D, u as Mt, z as at, B as Ft, G as Rt, H as B, I as Kt, Q as kt, f as Oe, l as Me, y as Fe, U as Dt, t as Pt, R as Y, V as At, W as Q, Y as Lt, a0 as Ht, a1 as Bt, a2 as Wt, a3 as It, a4 as We, a5 as zt, a6 as Ut, a7 as Jt, a8 as Yt, d as Xt, a9 as jt, aa as qt, ab as $t, ac as Gt, e as se, M as Vt, E as q, ad as Zt, o as Qt, ae, af as en, D as ct, ag as tn, ah as nn, ai as on, aj as Ie } from "./Lexical.prod-eo-UKDld.js";
1
+ import { i as et, t as _, $ as ue, U as tt } from "./LexicalUtils.prod-BBoyOK4A.js";
2
+ import { k as Tt, X as Et, l as nt, b as T, n as Ot, p as ot, U as rt, w as Ee, q as st, a as V, S as lt, s as Le, u as it, F as ve, y as He, C as Be, D as z, v as A, M as D, A as Mt, B as at, H as Ft, J as Rt, N as B, P as Kt, Q as kt, f as Oe, c as Me, m as Fe, V as Dt, t as Pt, R as X, W as At, Y as Q, Z as Lt, a0 as Ht, a1 as Bt, a2 as Wt, a3 as It, a4 as We, a5 as zt, a6 as Ut, a7 as Jt, a8 as Yt, d as Xt, a9 as jt, aa as qt, ab as $t, ac as Vt, e as se, z as Gt, E as $, ad as Zt, o as Qt, ae, af as en, L as ct, ag as tn, ah as nn, ai as on, aj as Ie } from "./Lexical.prod-B6kL_nwF.js";
3
3
  function rn(n) {
4
4
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
5
  }
@@ -84,7 +84,7 @@ function dt(n, e, t, o = null) {
84
84
  let l = e;
85
85
  if (o !== null) {
86
86
  let g = st(e);
87
- g = $(g) && o !== null ? ut(o, g) : g, l = g;
87
+ g = V(g) && o !== null ? ut(o, g) : g, l = g;
88
88
  }
89
89
  const a = T(l) ? l.getChildren() : [], d = n._nodes.get(l.getType());
90
90
  let h;
@@ -111,12 +111,12 @@ function gt(n, e, t, o, s = /* @__PURE__ */ new Map(), r) {
111
111
  let a = null;
112
112
  const d = function(f, p) {
113
113
  const { nodeName: w } = f, C = p._htmlConversions.get(w.toLowerCase());
114
- let x = null;
114
+ let N = null;
115
115
  if (C !== void 0) for (const E of C) {
116
116
  const v = E(f);
117
- v !== null && (x === null || (x.priority || 0) < (v.priority || 0)) && (x = v);
117
+ v !== null && (N === null || (N.priority || 0) <= (v.priority || 0)) && (N = v);
118
118
  }
119
- return x !== null ? x.conversion : null;
119
+ return N !== null ? N.conversion : null;
120
120
  }(n, e), h = d ? d(n) : null;
121
121
  let i = null;
122
122
  if (h !== null) {
@@ -135,7 +135,7 @@ function gt(n, e, t, o, s = /* @__PURE__ */ new Map(), r) {
135
135
  return i != null && (u = i(u)), He(n) && (u = gn(n, u, g ? () => {
136
136
  const f = new ot();
137
137
  return t.push(f), f;
138
- } : V)), a == null ? u.length > 0 ? l = l.concat(u) : He(n) && function(f) {
138
+ } : z)), a == null ? u.length > 0 ? l = l.concat(u) : He(n) && function(f) {
139
139
  return f.nextSibling == null || f.previousSibling == null ? !1 : Be(f.nextSibling) && Be(f.previousSibling);
140
140
  }(n) && (l = l.concat(rt())) : T(a) && a.append(...u), l;
141
141
  }
@@ -208,7 +208,7 @@ function mt(n, e, t, o = []) {
208
208
  let l = t;
209
209
  if (e !== null) {
210
210
  let h = st(t);
211
- h = $(h) && e !== null ? ut(e, h) : h, l = h;
211
+ h = V(h) && e !== null ? ut(e, h) : h, l = h;
212
212
  }
213
213
  const a = T(l) ? l.getChildren() : [], d = function(h) {
214
214
  const i = h.exportJSON(), c = h.constructor;
@@ -218,7 +218,7 @@ function mt(n, e, t, o = []) {
218
218
  }
219
219
  return i;
220
220
  }(l);
221
- if ($(l)) {
221
+ if (V(l)) {
222
222
  const h = l.__text;
223
223
  h.length > 0 ? d.text = h : s = !1;
224
224
  }
@@ -243,7 +243,7 @@ function Sn(n) {
243
243
  const e = [];
244
244
  for (let t = 0; t < n.length; t++) {
245
245
  const o = n[t], s = Ft(o);
246
- $(s) && an(s), e.push(s);
246
+ V(s) && an(s), e.push(s);
247
247
  }
248
248
  return e;
249
249
  }
@@ -410,11 +410,11 @@ function Je(n) {
410
410
  const r = e.style.backgroundColor;
411
411
  r !== "" && (s.__backgroundColor = r);
412
412
  const l = e.style, a = (l && l.textDecoration || "").split(" "), d = l.fontWeight === "700" || l.fontWeight === "bold", h = a.includes("line-through"), i = l.fontStyle === "italic", c = a.includes("underline");
413
- return { after: (u) => (u.length === 0 && u.push(V()), u), forChild: (u, g) => {
413
+ return { after: (u) => (u.length === 0 && u.push(z()), u), forChild: (u, g) => {
414
414
  if (m(g) && !T(u)) {
415
- const f = V();
415
+ const f = z();
416
416
  return Dt(u) && u.getTextContent() === `
417
- ` ? null : ($(u) && (d && u.toggleFormat("bold"), h && u.toggleFormat("strikethrough"), i && u.toggleFormat("italic"), c && u.toggleFormat("underline")), f.append(u), f);
417
+ ` ? null : (V(u) && (d && u.toggleFormat("bold"), h && u.toggleFormat("strikethrough"), i && u.toggleFormat("italic"), c && u.toggleFormat("underline")), f.append(u), f);
418
418
  }
419
419
  return u;
420
420
  }, node: s };
@@ -426,16 +426,16 @@ function m(n) {
426
426
  return n instanceof de;
427
427
  }
428
428
  const Wn = Pt();
429
- function xn(n) {
429
+ function Nn(n) {
430
430
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
431
431
  }
432
- var N = xn(function(n) {
432
+ var x = Nn(function(n) {
433
433
  const e = new URLSearchParams();
434
434
  e.append("code", n);
435
435
  for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
436
436
  throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
437
437
  });
438
- const Nn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
438
+ const xn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
439
439
  class Ce extends Fe {
440
440
  static getType() {
441
441
  return "tablerow";
@@ -496,7 +496,7 @@ function Tn(n, e, t = !0) {
496
496
  for (let l = 0; l < e; l++) {
497
497
  let a = I.NO_STATUS;
498
498
  typeof t == "object" ? (s === 0 && t.rows && (a |= I.ROW), l === 0 && t.columns && (a |= I.COLUMN)) : t && (s === 0 && (a |= I.ROW), l === 0 && (a |= I.COLUMN));
499
- const d = oe(a), h = V();
499
+ const d = oe(a), h = z();
500
500
  h.append(Me()), d.append(h), r.append(d);
501
501
  }
502
502
  o.append(r);
@@ -538,7 +538,7 @@ function On(n, e) {
538
538
  }
539
539
  function ne(n, e, t) {
540
540
  const [o, s, r] = Mn(n, e, t);
541
- return s === null && N(207), r === null && N(208), [o, s, r];
541
+ return s === null && x(207), r === null && x(208), [o, s, r];
542
542
  }
543
543
  function Mn(n, e, t) {
544
544
  const o = [];
@@ -550,15 +550,15 @@ function Mn(n, e, t) {
550
550
  const a = n.getChildren();
551
551
  for (let d = 0; d < a.length; d++) {
552
552
  const h = a[d];
553
- W(h) || N(209);
553
+ W(h) || x(209);
554
554
  for (let i = h.getFirstChild(), c = 0; i != null; i = i.getNextSibling()) {
555
- m(i) || N(147);
555
+ m(i) || x(147);
556
556
  const u = l(d);
557
557
  for (; u[c] !== void 0; ) c++;
558
558
  const g = { cell: i, startColumn: c, startRow: d }, { __rowSpan: f, __colSpan: p } = i;
559
559
  for (let w = 0; w < f && !(d + w >= a.length); w++) {
560
560
  const C = l(d + w);
561
- for (let x = 0; x < p; x++) C[c + x] = g;
561
+ for (let N = 0; N < p; N++) C[c + N] = g;
562
562
  }
563
563
  e !== null && s === null && e.is(i) && (s = g), t !== null && r === null && t.is(i) && (r = g);
564
564
  }
@@ -570,15 +570,15 @@ function le(n) {
570
570
  if (n instanceof de) e = n;
571
571
  else if ("__type" in n) {
572
572
  const s = _(n, m);
573
- m(s) || N(148), e = s;
573
+ m(s) || x(148), e = s;
574
574
  } else {
575
575
  const s = _(n.getNode(), m);
576
- m(s) || N(148), e = s;
576
+ m(s) || x(148), e = s;
577
577
  }
578
578
  const t = e.getParent();
579
- W(t) || N(149);
579
+ W(t) || x(149);
580
580
  const o = t.getParent();
581
- return M(o) || N(210), [e, t, o];
581
+ return M(o) || x(210), [e, t, o];
582
582
  }
583
583
  function Ye(n) {
584
584
  const [e, , t] = le(n), o = t.getChildren(), s = o.length, r = o[0].getChildren().length, l = new Array(s);
@@ -642,17 +642,17 @@ class be {
642
642
  }
643
643
  insertNodes(e) {
644
644
  const t = this.focus.getNode();
645
- T(t) || N(151), nn(t.select(0, t.getChildrenSize())).insertNodes(e);
645
+ T(t) || x(151), nn(t.select(0, t.getChildrenSize())).insertNodes(e);
646
646
  }
647
647
  getShape() {
648
648
  const e = ae(this.anchor.key);
649
- m(e) || N(152);
649
+ m(e) || x(152);
650
650
  const t = Ye(e);
651
- t === null && N(153);
651
+ t === null && x(153);
652
652
  const o = ae(this.focus.key);
653
- m(o) || N(154);
653
+ m(o) || x(154);
654
654
  const s = Ye(o);
655
- s === null && N(155);
655
+ s === null && x(155);
656
656
  const r = Math.min(t.columnIndex, s.columnIndex), l = Math.max(t.columnIndex + t.colSpan - 1, s.columnIndex + s.colSpan - 1), a = Math.min(t.rowIndex, s.rowIndex), d = Math.max(t.rowIndex + t.rowSpan - 1, s.rowIndex + s.rowSpan - 1);
657
657
  return { fromX: Math.min(r, l), fromY: Math.min(a, d), toX: Math.max(r, l), toY: Math.max(a, d) };
658
658
  }
@@ -660,46 +660,46 @@ class be {
660
660
  const e = this._cachedNodes;
661
661
  if (e !== null) return e;
662
662
  const t = this.anchor.getNode(), o = this.focus.getNode(), s = _(t, m), r = _(o, m);
663
- m(s) || N(152), m(r) || N(154);
663
+ m(s) || x(152), m(r) || x(154);
664
664
  const l = s.getParent();
665
- W(l) || N(156);
665
+ W(l) || x(156);
666
666
  const a = l.getParent();
667
- M(a) || N(157);
667
+ M(a) || x(157);
668
668
  const d = r.getParents()[1];
669
669
  if (d !== a) {
670
670
  if (a.isParentOf(r)) {
671
671
  const b = d.getParent();
672
- b == null && N(159), this.set(this.tableKey, r.getKey(), b.getKey());
672
+ b == null && x(159), this.set(this.tableKey, r.getKey(), b.getKey());
673
673
  } else {
674
674
  const b = a.getParent();
675
- b == null && N(158), this.set(this.tableKey, b.getKey(), r.getKey());
675
+ b == null && x(158), this.set(this.tableKey, b.getKey(), r.getKey());
676
676
  }
677
677
  return this.getNodes();
678
678
  }
679
679
  const [h, i, c] = ne(a, s, r);
680
- let u = Math.min(i.startColumn, c.startColumn), g = Math.min(i.startRow, c.startRow), f = Math.max(i.startColumn + i.cell.__colSpan - 1, c.startColumn + c.cell.__colSpan - 1), p = Math.max(i.startRow + i.cell.__rowSpan - 1, c.startRow + c.cell.__rowSpan - 1), w = u, C = g, x = u, E = g;
680
+ let u = Math.min(i.startColumn, c.startColumn), g = Math.min(i.startRow, c.startRow), f = Math.max(i.startColumn + i.cell.__colSpan - 1, c.startColumn + c.cell.__colSpan - 1), p = Math.max(i.startRow + i.cell.__rowSpan - 1, c.startRow + c.cell.__rowSpan - 1), w = u, C = g, N = u, E = g;
681
681
  function v(b) {
682
682
  const { cell: y, startColumn: S, startRow: P } = b;
683
683
  u = Math.min(u, S), g = Math.min(g, P), f = Math.max(f, S + y.__colSpan - 1), p = Math.max(p, P + y.__rowSpan - 1);
684
684
  }
685
- for (; u < w || g < C || f > x || p > E; ) {
685
+ for (; u < w || g < C || f > N || p > E; ) {
686
686
  if (u < w) {
687
687
  const b = E - C, y = w - 1;
688
688
  for (let S = 0; S <= b; S++) v(h[C + S][y]);
689
689
  w = y;
690
690
  }
691
691
  if (g < C) {
692
- const b = x - w, y = C - 1;
692
+ const b = N - w, y = C - 1;
693
693
  for (let S = 0; S <= b; S++) v(h[y][w + S]);
694
694
  C = y;
695
695
  }
696
- if (f > x) {
697
- const b = E - C, y = x + 1;
696
+ if (f > N) {
697
+ const b = E - C, y = N + 1;
698
698
  for (let S = 0; S <= b; S++) v(h[C + S][y]);
699
- x = y;
699
+ N = y;
700
700
  }
701
701
  if (p > E) {
702
- const b = x - w, y = E + 1;
702
+ const b = N - w, y = E + 1;
703
703
  for (let S = 0; S <= b; S++) v(h[y][w + S]);
704
704
  E = y;
705
705
  }
@@ -708,7 +708,7 @@ class be {
708
708
  let O = null;
709
709
  for (let b = g; b <= p; b++) for (let y = u; y <= f; y++) {
710
710
  const { cell: S } = h[b][y], P = S.getParent();
711
- W(P) || N(160), P !== O && K.set(P.getKey(), P), K.set(S.getKey(), S);
711
+ W(P) || x(160), P !== O && K.set(P.getKey(), P), K.set(S.getKey(), S);
712
712
  for (const L of Fn(S)) K.set(L.getKey(), L);
713
713
  O = P;
714
714
  }
@@ -737,7 +737,7 @@ function Fn(n) {
737
737
  const e = [], t = [n];
738
738
  for (; t.length > 0; ) {
739
739
  const o = t.pop();
740
- o === void 0 && N(112), T(o) && t.unshift(...o.getChildren()), o !== n && e.push(o);
740
+ o === void 0 && x(112), T(o) && t.unshift(...o.getChildren()), o !== n && e.push(o);
741
741
  }
742
742
  return e;
743
743
  }
@@ -781,7 +781,7 @@ class Rn {
781
781
  const t = e.getElementByKey(this.tableNodeKey);
782
782
  if (!t) throw new Error("Expected to find TableElement in DOM");
783
783
  const o = ce(t);
784
- me(e, o, null), q(null), e.dispatchCommand(se, void 0);
784
+ me(e, o, null), $(null), e.dispatchCommand(se, void 0);
785
785
  });
786
786
  }
787
787
  enableHighlightStyle() {
@@ -821,17 +821,17 @@ class Rn {
821
821
  if (r === this.focusX && l === this.focusY) return;
822
822
  } else this.isHighlightingCells = !0, this.disableHighlightStyle();
823
823
  if (this.focusX = r, this.focusY = l, this.isHighlightingCells) {
824
- const a = Y(e.elem);
824
+ const a = X(e.elem);
825
825
  if (this.tableSelection != null && this.anchorCellNodeKey != null && m(a) && s.is(te(a))) {
826
826
  const d = a.getKey();
827
- this.tableSelection = this.tableSelection.clone() || Xe(), this.focusCellNodeKey = d, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey), q(this.tableSelection), o.dispatchCommand(se, void 0), me(o, this.table, this.tableSelection);
827
+ this.tableSelection = this.tableSelection.clone() || Xe(), this.focusCellNodeKey = d, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey), $(this.tableSelection), o.dispatchCommand(se, void 0), me(o, this.table, this.tableSelection);
828
828
  }
829
829
  }
830
830
  });
831
831
  }
832
832
  setAnchorCellForSelection(e) {
833
833
  this.isHighlightingCells = !1, this.anchorCell = e, this.anchorX = e.x, this.anchorY = e.y, this.editor.update(() => {
834
- const t = Y(e.elem);
834
+ const t = X(e.elem);
835
835
  if (m(t)) {
836
836
  const o = t.getKey();
837
837
  this.tableSelection = this.tableSelection != null ? this.tableSelection.clone() : Xe(), this.anchorCellNodeKey = o;
@@ -841,11 +841,11 @@ class Rn {
841
841
  formatCells(e) {
842
842
  this.editor.update(() => {
843
843
  const t = D();
844
- R(t) || N(11);
844
+ R(t) || x(11);
845
845
  const o = en(), s = o.anchor, r = o.focus, l = t.getNodes().filter(m), a = l[0].getFirstChild(), d = ct(a) ? a.getFormatFlags(e, null) : null;
846
846
  l.forEach((h) => {
847
847
  s.set(h.getKey(), 0, "element"), r.set(h.getKey(), h.getChildrenSize(), "element"), o.formatText(e, d);
848
- }), q(t), this.editor.dispatchCommand(se, void 0);
848
+ }), $(t), this.editor.dispatchCommand(se, void 0);
849
849
  });
850
850
  }
851
851
  clearText() {
@@ -854,26 +854,26 @@ class Rn {
854
854
  const t = ae(this.tableNodeKey);
855
855
  if (!M(t)) throw new Error("Expected TableNode.");
856
856
  const o = D();
857
- R(o) || N(11);
857
+ R(o) || x(11);
858
858
  const s = o.getNodes().filter(m);
859
859
  s.length !== this.table.columns * this.table.rows ? (s.forEach((r) => {
860
860
  if (T(r)) {
861
- const l = V(), a = Me();
861
+ const l = z(), a = Me();
862
862
  l.append(a), r.append(l), r.getChildren().forEach((d) => {
863
863
  d !== l && d.remove();
864
864
  });
865
865
  }
866
- }), me(e, this.table, null), q(null), e.dispatchCommand(se, void 0)) : (t.selectPrevious(), t.remove(), Ee().selectStart());
866
+ }), me(e, this.table, null), $(null), e.dispatchCommand(se, void 0)) : (t.selectPrevious(), t.remove(), Ee().selectStart());
867
867
  });
868
868
  }
869
869
  }
870
- const Te = "__lexicalTableSelection", Ct = (n) => Nn ? (n || window).getSelection() : null;
870
+ const Te = "__lexicalTableSelection", Ct = (n) => xn ? (n || window).getSelection() : null;
871
871
  function zn(n, e, t, o) {
872
872
  const s = t.getRootElement();
873
873
  if (s === null) throw new Error("No root element.");
874
874
  const r = new Rn(t, n.getKey()), l = t._window || window;
875
875
  (function(i, c) {
876
- je(i) !== null && N(205), i[Te] = c;
876
+ je(i) !== null && x(205), i[Te] = c;
877
877
  })(e, r), r.listenersToRemove.add(() => function(i, c) {
878
878
  je(i) === c && delete i[Te];
879
879
  }(e, r));
@@ -893,7 +893,7 @@ function zn(n, e, t, o) {
893
893
  setTimeout(() => {
894
894
  if (i.button !== 0 || !l) return;
895
895
  const c = qe(i.target);
896
- c !== null && (J(i), r.setAnchorCellForSelection(c));
896
+ c !== null && (Y(i), r.setAnchorCellForSelection(c));
897
897
  const { onMouseUp: u, onMouseMove: g } = a();
898
898
  r.isSelecting = !0, l.addEventListener("mouseup", u, r.listenerOptions), l.addEventListener("mousemove", g, r.listenerOptions);
899
899
  }, 0);
@@ -906,7 +906,7 @@ function zn(n, e, t, o) {
906
906
  const c = D();
907
907
  if (R(c)) {
908
908
  const u = _(c.focus.getNode(), m);
909
- if (m(u)) return J(i), u.selectEnd(), !0;
909
+ if (m(u)) return Y(i), u.selectEnd(), !0;
910
910
  }
911
911
  return !1;
912
912
  }, Q)), [It, We, zt].forEach((i) => {
@@ -919,8 +919,8 @@ function zn(n, e, t, o) {
919
919
  if (!m(g)) return !1;
920
920
  const f = u.anchor.getNode(), p = u.focus.getNode(), w = n.isParentOf(f), C = n.isParentOf(p);
921
921
  if (w && !C || C && !w) return r.clearText(), !0;
922
- const x = _(u.anchor.getNode(), (v) => T(v)), E = x && _(x, (v) => T(v) && m(v.getParent()));
923
- if (!T(E) || !T(x)) return !1;
922
+ const N = _(u.anchor.getNode(), (v) => T(v)), E = N && _(N, (v) => T(v) && m(v.getParent()));
923
+ if (!T(E) || !T(N)) return !1;
924
924
  if (c === We && E.getPreviousSibling() === null) return !0;
925
925
  }
926
926
  return !1;
@@ -963,8 +963,8 @@ function zn(n, e, t, o) {
963
963
  if (!R(c) || !G(c, n)) return !1;
964
964
  const u = c.anchor.getNode(), g = c.focus.getNode();
965
965
  if (!m(u) || !m(g)) return !1;
966
- const [f, p, w] = ne(n, u, g), C = Math.max(p.startRow, w.startRow), x = Math.max(p.startColumn, w.startColumn), E = Math.min(p.startRow, w.startRow), v = Math.min(p.startColumn, w.startColumn);
967
- for (let K = E; K <= C; K++) for (let O = v; O <= x; O++) {
966
+ const [f, p, w] = ne(n, u, g), C = Math.max(p.startRow, w.startRow), N = Math.max(p.startColumn, w.startColumn), E = Math.min(p.startRow, w.startRow), v = Math.min(p.startColumn, w.startColumn);
967
+ for (let K = E; K <= C; K++) for (let O = v; O <= N; O++) {
968
968
  const F = f[K][O].cell;
969
969
  F.setFormat(i);
970
970
  const b = F.getChildren();
@@ -982,60 +982,60 @@ function zn(n, e, t, o) {
982
982
  const u = _(c.anchor.getNode(), (g) => m(g));
983
983
  if (!m(u)) return !1;
984
984
  if (typeof i == "string") {
985
- const g = Ve(t, c, n);
986
- if (g) return Ge(g, n, [Me(i)]), !0;
985
+ const g = Ge(t, c, n);
986
+ if (g) return Ve(g, n, [Me(i)]), !0;
987
987
  }
988
988
  }
989
989
  return !1;
990
990
  }, B)), o && r.listenersToRemove.add(t.registerCommand($t, (i) => {
991
991
  const c = D();
992
992
  if (!A(c) || !c.isCollapsed() || !G(c, n)) return !1;
993
- const u = Ne(c.anchor.getNode());
993
+ const u = xe(c.anchor.getNode());
994
994
  if (u === null) return !1;
995
- J(i);
995
+ Y(i);
996
996
  const g = n.getCordsFromCellNode(u, r.table);
997
997
  return St(r, n, g.x, g.y, i.shiftKey ? "backward" : "forward"), !0;
998
- }, B)), r.listenersToRemove.add(t.registerCommand(Gt, (i) => n.isSelected(), Q)), r.listenersToRemove.add(t.registerCommand(at, (i) => {
998
+ }, B)), r.listenersToRemove.add(t.registerCommand(Vt, (i) => n.isSelected(), Q)), r.listenersToRemove.add(t.registerCommand(at, (i) => {
999
999
  const { nodes: c, selection: u } = i, g = u.getStartEndPoints(), f = R(u), p = A(u) && _(u.anchor.getNode(), (k) => m(k)) !== null && _(u.focus.getNode(), (k) => m(k)) !== null || f;
1000
1000
  if (c.length !== 1 || !M(c[0]) || !p || g === null) return !1;
1001
- const [w] = g, C = c[0], x = C.getChildren(), E = C.getFirstChildOrThrow().getChildrenSize(), v = C.getChildrenSize(), K = _(w.getNode(), (k) => m(k)), O = K && _(K, (k) => W(k)), F = O && _(O, (k) => M(k));
1001
+ const [w] = g, C = c[0], N = C.getChildren(), E = C.getFirstChildOrThrow().getChildrenSize(), v = C.getChildrenSize(), K = _(w.getNode(), (k) => m(k)), O = K && _(K, (k) => W(k)), F = O && _(O, (k) => M(k));
1002
1002
  if (!m(K) || !W(O) || !M(F)) return !1;
1003
- const b = O.getIndexWithinParent(), y = Math.min(F.getChildrenSize() - 1, b + v - 1), S = K.getIndexWithinParent(), P = Math.min(O.getChildrenSize() - 1, S + E - 1), L = Math.min(S, P), H = Math.min(b, y), X = Math.max(S, P), z = Math.max(b, y), j = F.getChildren();
1004
- let U = 0;
1005
- for (let k = H; k <= z; k++) {
1006
- const re = j[k];
1003
+ const b = O.getIndexWithinParent(), y = Math.min(F.getChildrenSize() - 1, b + v - 1), S = K.getIndexWithinParent(), P = Math.min(O.getChildrenSize() - 1, S + E - 1), L = Math.min(S, P), H = Math.min(b, y), j = Math.max(S, P), U = Math.max(b, y), q = F.getChildren();
1004
+ let J = 0;
1005
+ for (let k = H; k <= U; k++) {
1006
+ const re = q[k];
1007
1007
  if (!W(re)) return !1;
1008
- const De = x[U];
1008
+ const De = N[J];
1009
1009
  if (!W(De)) return !1;
1010
- const xt = re.getChildren(), Nt = De.getChildren();
1010
+ const Nt = re.getChildren(), xt = De.getChildren();
1011
1011
  let Pe = 0;
1012
- for (let _e = L; _e <= X; _e++) {
1013
- const fe = xt[_e];
1012
+ for (let _e = L; _e <= j; _e++) {
1013
+ const fe = Nt[_e];
1014
1014
  if (!m(fe)) return !1;
1015
- const Ae = Nt[Pe];
1015
+ const Ae = xt[Pe];
1016
1016
  if (!m(Ae)) return !1;
1017
1017
  const vt = fe.getChildren();
1018
1018
  Ae.getChildren().forEach((Z) => {
1019
- $(Z) && V().append(Z), fe.append(Z);
1019
+ V(Z) && z().append(Z), fe.append(Z);
1020
1020
  }), vt.forEach((Z) => Z.remove()), Pe++;
1021
1021
  }
1022
- U++;
1022
+ J++;
1023
1023
  }
1024
1024
  return !0;
1025
1025
  }, B)), r.listenersToRemove.add(t.registerCommand(se, () => {
1026
- const i = D(), c = Vt();
1026
+ const i = D(), c = Gt();
1027
1027
  if (A(i)) {
1028
- const { anchor: u, focus: g } = i, f = u.getNode(), p = g.getNode(), w = Ne(f), C = Ne(p), x = !(!w || !n.is(te(w))), E = !(!C || !n.is(te(C))), v = x !== E, K = x && E, O = i.isBackward();
1028
+ const { anchor: u, focus: g } = i, f = u.getNode(), p = g.getNode(), w = xe(f), C = xe(p), N = !(!w || !n.is(te(w))), E = !(!C || !n.is(te(C))), v = N !== E, K = N && E, O = i.isBackward();
1029
1029
  if (v) {
1030
1030
  const F = i.clone();
1031
1031
  if (E) {
1032
1032
  const [b] = ne(n, C, C), y = b[0][0].cell, S = b[b.length - 1].at(-1).cell;
1033
1033
  F.focus.set(O ? y.getKey() : S.getKey(), O ? y.getChildrenSize() : S.getChildrenSize(), "element");
1034
- } else if (x) {
1034
+ } else if (N) {
1035
1035
  const [b] = ne(n, w, w), y = b[0][0].cell, S = b[b.length - 1].at(-1).cell;
1036
1036
  F.anchor.set(O ? S.getKey() : y.getKey(), O ? S.getChildrenSize() : 0, "element");
1037
1037
  }
1038
- q(F), $e(t, r);
1038
+ $(F), $e(t, r);
1039
1039
  } else K && (w.is(C) || (r.setAnchorCellForSelection(h(w)), r.setFocusCellForSelection(h(C), !0), r.isSelecting || setTimeout(() => {
1040
1040
  const { onMouseUp: F, onMouseMove: b } = a();
1041
1041
  r.isSelecting = !0, l.addEventListener("mouseup", F), l.addEventListener("mousemove", b);
@@ -1043,10 +1043,10 @@ function zn(n, e, t, o) {
1043
1043
  } else if (i && R(i) && i.is(c) && i.tableKey === n.getKey()) {
1044
1044
  const u = Ct(t._window);
1045
1045
  if (u && u.anchorNode && u.focusNode) {
1046
- const g = Y(u.focusNode), f = g && !n.is(te(g)), p = Y(u.anchorNode), w = p && n.is(te(p));
1046
+ const g = X(u.focusNode), f = g && !n.is(te(g)), p = X(u.anchorNode), w = p && n.is(te(p));
1047
1047
  if (f && w && u.rangeCount > 0) {
1048
1048
  const C = Zt(u, t);
1049
- C && (C.anchor.set(n.getKey(), i.isBackward() ? n.getChildrenSize() : 0, "element"), u.removeAllRanges(), q(C));
1049
+ C && (C.anchor.set(n.getKey(), i.isBackward() ? n.getChildrenSize() : 0, "element"), u.removeAllRanges(), $(C));
1050
1050
  }
1051
1051
  }
1052
1052
  }
@@ -1059,8 +1059,8 @@ function zn(n, e, t, o) {
1059
1059
  }, B)), r.listenersToRemove.add(t.registerCommand(Qt, () => {
1060
1060
  const i = D();
1061
1061
  if (!A(i) || !i.isCollapsed() || !G(i, n)) return !1;
1062
- const c = Ve(t, i, n);
1063
- return !!c && (Ge(c, n), !0);
1062
+ const c = Ge(t, i, n);
1063
+ return !!c && (Ve(c, n), !0);
1064
1064
  }, B)), r;
1065
1065
  }
1066
1066
  function je(n) {
@@ -1123,7 +1123,7 @@ function Ke(n, e) {
1123
1123
  if (s) for (let r = 0; r < s.length; r++) {
1124
1124
  const l = s[r];
1125
1125
  if (!l) continue;
1126
- const a = Y(l.elem);
1126
+ const a = X(l.elem);
1127
1127
  a !== null && e(l, a, { x: r, y: o });
1128
1128
  }
1129
1129
  }
@@ -1170,16 +1170,16 @@ function G(n, e) {
1170
1170
  function pe(n, e) {
1171
1171
  e ? n.selectStart() : n.selectEnd();
1172
1172
  }
1173
- const xe = "172,206,247";
1173
+ const Ne = "172,206,247";
1174
1174
  function bt(n, e) {
1175
- const t = e.elem, o = Y(t);
1176
- m(o) || N(131), o.getBackgroundColor() === null ? t.style.setProperty("background-color", `rgb(${xe})`) : t.style.setProperty("background-image", `linear-gradient(to right, rgba(${xe},0.85), rgba(${xe},0.85))`), t.style.setProperty("caret-color", "transparent");
1175
+ const t = e.elem, o = X(t);
1176
+ m(o) || x(131), o.getBackgroundColor() === null ? t.style.setProperty("background-color", `rgb(${Ne})`) : t.style.setProperty("background-image", `linear-gradient(to right, rgba(${Ne},0.85), rgba(${Ne},0.85))`), t.style.setProperty("caret-color", "transparent");
1177
1177
  }
1178
1178
  function yt(n, e) {
1179
- const t = e.elem, o = Y(t);
1180
- m(o) || N(131), o.getBackgroundColor() === null && t.style.removeProperty("background-color"), t.style.removeProperty("background-image"), t.style.removeProperty("caret-color");
1179
+ const t = e.elem, o = X(t);
1180
+ m(o) || x(131), o.getBackgroundColor() === null && t.style.removeProperty("background-color"), t.style.removeProperty("background-image"), t.style.removeProperty("caret-color");
1181
1181
  }
1182
- function Ne(n) {
1182
+ function xe(n) {
1183
1183
  const e = _(n, m);
1184
1184
  return m(e) ? e : null;
1185
1185
  }
@@ -1203,7 +1203,7 @@ function ie(n, e, t, o, s) {
1203
1203
  const h = _(d, (c) => T(c) && !c.isInline());
1204
1204
  if (!h) return !1;
1205
1205
  const i = h.getPreviousSibling();
1206
- return !(!i || !M(i)) && (J(e), i.selectEnd(), !0);
1206
+ return !(!i || !M(i)) && (Y(e), i.selectEnd(), !0);
1207
1207
  }
1208
1208
  if (e.shiftKey && (t === "up" || t === "down")) {
1209
1209
  const l = r.focus.getNode();
@@ -1215,9 +1215,9 @@ function ie(n, e, t, o, s) {
1215
1215
  let h = 0;
1216
1216
  t === "up" && T(d) && (h = d.getChildrenSize());
1217
1217
  let i = d;
1218
- t === "up" && T(d) && (i = d.getLastChild() || d, h = $(i) ? i.getTextContentSize() : 0);
1218
+ t === "up" && T(d) && (i = d.getLastChild() || d, h = V(i) ? i.getTextContentSize() : 0);
1219
1219
  const c = r.clone();
1220
- return c.focus.set(i.getKey(), h, $(i) ? "text" : "element"), q(c), J(e), !0;
1220
+ return c.focus.set(i.getKey(), h, V(i) ? "text" : "element"), $(c), Y(e), !0;
1221
1221
  }
1222
1222
  if (it(l)) {
1223
1223
  const a = t === "up" ? r.getNodes()[r.getNodes().length - 1] : r.getNodes()[0];
@@ -1240,7 +1240,7 @@ function ie(n, e, t, o, s) {
1240
1240
  const h = d.getFirstDescendant(), i = d.getLastDescendant();
1241
1241
  if (!h || !i) return !1;
1242
1242
  const [c] = le(h), [u] = le(i), g = r.clone();
1243
- return g.focus.set((t === "up" ? c : u).getKey(), t === "up" ? 0 : u.getChildrenSize(), "element"), J(e), q(g), !0;
1243
+ return g.focus.set((t === "up" ? c : u).getKey(), t === "up" ? 0 : u.getChildrenSize(), "element"), Y(e), $(g), !0;
1244
1244
  }
1245
1245
  }
1246
1246
  }
@@ -1256,33 +1256,33 @@ function ie(n, e, t, o, s) {
1256
1256
  if (C != null) return s.table = ce(C), ie(n, e, t, i, s);
1257
1257
  }
1258
1258
  if (t === "backward" || t === "forward") {
1259
- const C = l.type, x = l.offset, E = l.getNode();
1259
+ const C = l.type, N = l.offset, E = l.getNode();
1260
1260
  if (!E) return !1;
1261
1261
  const v = r.getNodes();
1262
1262
  return (v.length !== 1 || !nt(v[0])) && !!function(K, O, F, b) {
1263
1263
  return function(y, S, P) {
1264
1264
  return y === "element" && (P === "backward" ? S.getPreviousSibling() === null : S.getNextSibling() === null);
1265
1265
  }(K, F, b) || function(y, S, P, L) {
1266
- const H = _(P, (z) => T(z) && !z.isInline());
1266
+ const H = _(P, (U) => T(U) && !U.isInline());
1267
1267
  if (!H) return !1;
1268
- const X = L === "backward" ? S === 0 : S === P.getTextContentSize();
1269
- return y === "text" && X && (L === "backward" ? H.getPreviousSibling() === null : H.getNextSibling() === null);
1268
+ const j = L === "backward" ? S === 0 : S === P.getTextContentSize();
1269
+ return y === "text" && j && (L === "backward" ? H.getPreviousSibling() === null : H.getNextSibling() === null);
1270
1270
  }(K, O, F, b);
1271
- }(C, x, E, t) && function(K, O, F, b) {
1271
+ }(C, N, E, t) && function(K, O, F, b) {
1272
1272
  const y = _(O, m);
1273
1273
  if (!m(y)) return !1;
1274
1274
  const [S, P] = ne(F, y, y);
1275
- if (!function(H, X, z) {
1276
- const j = H[0][0], U = H[H.length - 1][H[0].length - 1], { startColumn: k, startRow: re } = X;
1277
- return z === "backward" ? k === j.startColumn && re === j.startRow : k === U.startColumn && re === U.startRow;
1275
+ if (!function(H, j, U) {
1276
+ const q = H[0][0], J = H[H.length - 1][H[0].length - 1], { startColumn: k, startRow: re } = j;
1277
+ return U === "backward" ? k === q.startColumn && re === q.startRow : k === J.startColumn && re === J.startRow;
1278
1278
  }(S, P, b)) return !1;
1279
- const L = function(H, X, z) {
1280
- const j = _(H, (k) => T(k) && !k.isInline());
1281
- if (!j) return;
1282
- const U = X === "backward" ? j.getPreviousSibling() : j.getNextSibling();
1283
- return U && M(U) ? U : X === "backward" ? z.getPreviousSibling() : z.getNextSibling();
1279
+ const L = function(H, j, U) {
1280
+ const q = _(H, (k) => T(k) && !k.isInline());
1281
+ if (!q) return;
1282
+ const J = j === "backward" ? q.getPreviousSibling() : q.getNextSibling();
1283
+ return J && M(J) ? J : j === "backward" ? U.getPreviousSibling() : U.getNextSibling();
1284
1284
  }(O, b, F);
1285
- return !L || M(L) ? !1 : (J(K), b === "backward" ? L.selectEnd() : L.selectStart(), !0);
1285
+ return !L || M(L) ? !1 : (Y(K), b === "backward" ? L.selectEnd() : L.selectStart(), !0);
1286
1286
  }(e, E, o, t);
1287
1287
  }
1288
1288
  const c = n.getElementByKey(d.__key), u = n.getElementByKey(l.key);
@@ -1300,12 +1300,12 @@ function ie(n, e, t, o, s) {
1300
1300
  if (p == null) return !1;
1301
1301
  const w = p.getBoundingClientRect();
1302
1302
  if (t === "up" ? w.top > g.top - g.height : g.bottom + g.height > w.bottom) {
1303
- J(e);
1303
+ Y(e);
1304
1304
  const C = o.getCordsFromCellNode(d, s.table);
1305
1305
  if (!e.shiftKey) return St(s, o, C.x, C.y, t);
1306
1306
  {
1307
- const x = o.getDOMCellFromCordsOrThrow(C.x, C.y, s.table);
1308
- s.setAnchorCellForSelection(x), s.setFocusCellForSelection(x, !0);
1307
+ const N = o.getDOMCellFromCordsOrThrow(C.x, C.y, s.table);
1308
+ s.setAnchorCellForSelection(N), s.setFocusCellForSelection(N, !0);
1309
1309
  }
1310
1310
  return !0;
1311
1311
  }
@@ -1314,7 +1314,7 @@ function ie(n, e, t, o, s) {
1314
1314
  if (!m(d) || !m(h) || !M(i) || c == null) return !1;
1315
1315
  s.updateTableTableSelection(r);
1316
1316
  const u = ce(c), g = o.getCordsFromCellNode(d, u), f = o.getDOMCellFromCordsOrThrow(g.x, g.y, u);
1317
- if (s.setAnchorCellForSelection(f), J(e), e.shiftKey) {
1317
+ if (s.setAnchorCellForSelection(f), Y(e), e.shiftKey) {
1318
1318
  const p = o.getCordsFromCellNode(h, u);
1319
1319
  return Kn(s, i, p.x, p.y, t);
1320
1320
  }
@@ -1322,14 +1322,14 @@ function ie(n, e, t, o, s) {
1322
1322
  }
1323
1323
  return !1;
1324
1324
  }
1325
- function J(n) {
1325
+ function Y(n) {
1326
1326
  n.preventDefault(), n.stopImmediatePropagation(), n.stopPropagation();
1327
1327
  }
1328
- function Ge(n, e, t) {
1329
- const o = V();
1328
+ function Ve(n, e, t) {
1329
+ const o = z();
1330
1330
  n === "first" ? e.insertBefore(o) : e.insertAfter(o), o.append(...t || []), o.selectEnd();
1331
1331
  }
1332
- function Ve(n, e, t) {
1332
+ function Ge(n, e, t) {
1333
1333
  const o = t.getParent();
1334
1334
  if (!o) return;
1335
1335
  const s = n.getElementByKey(o.getKey());
@@ -1421,7 +1421,7 @@ class ye extends Fe {
1421
1421
  const a = l.findIndex((d) => {
1422
1422
  if (!d) return;
1423
1423
  const { elem: h } = d;
1424
- return Y(h) === e;
1424
+ return X(h) === e;
1425
1425
  });
1426
1426
  if (a !== -1) return { x: a, y: r };
1427
1427
  }
@@ -1441,7 +1441,7 @@ class ye extends Fe {
1441
1441
  getCellNodeFromCords(e, t, o) {
1442
1442
  const s = this.getDOMCellFromCords(e, t, o);
1443
1443
  if (s == null) return null;
1444
- const r = Y(s.elem);
1444
+ const r = X(s.elem);
1445
1445
  return m(r) ? r : null;
1446
1446
  }
1447
1447
  getCellNodeFromCordsOrThrow(e, t, o) {
@@ -1500,7 +1500,7 @@ const _t = 100, Un = (n, e) => {
1500
1500
  const s = he();
1501
1501
  for (let r = 0; r < e; r++) {
1502
1502
  const l = oe(0, void 0, _t / e);
1503
- s.append(l);
1503
+ l.append(z()), s.append(l);
1504
1504
  }
1505
1505
  t.append(s);
1506
1506
  }
@@ -1517,7 +1517,7 @@ const _t = 100, Un = (n, e) => {
1517
1517
  const t = he(), o = ge(n), s = o.getChildrenSize();
1518
1518
  for (let l = 0; l < s; l++) {
1519
1519
  const a = oe(0);
1520
- t.append(a);
1520
+ a.append(z()), t.append(a);
1521
1521
  }
1522
1522
  e === "insertRowAbove" ? o.insertBefore(t) : o.insertAfter(t);
1523
1523
  const r = t.getFirstDescendant();
@@ -1530,7 +1530,9 @@ const _t = 100, Un = (n, e) => {
1530
1530
  let l = wt(n);
1531
1531
  const a = r.getChildren(), d = a.length;
1532
1532
  for (let i = 0; i < d; i++) {
1533
- const c = oe(0), u = a[i].getChildren()[l];
1533
+ const c = oe(0);
1534
+ c.append(z());
1535
+ const u = a[i].getChildren()[l];
1534
1536
  u && (e === "insertColumnLeft" ? u.insertBefore(c) : u.insertAfter(c)), a.forEach((g) => {
1535
1537
  g.getChildren().forEach((f) => {
1536
1538
  f.setWidth(_t / s);
@@ -1575,4 +1577,4 @@ export {
1575
1577
  Wn as r,
1576
1578
  ye as u
1577
1579
  };
1578
- //# sourceMappingURL=helpers-DONVwywj.js.map
1580
+ //# sourceMappingURL=helpers-CVB_4CnL.js.map