@uva-glass/component-library 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/{Lexical.prod-CniF7zEE.js → Lexical.prod-CWyHQUEM.js} +738 -736
  2. package/dist/Lexical.prod-CWyHQUEM.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-BXVNkwwS.js → LexicalClipboard.prod-DbqSWANZ.js} +41 -41
  4. package/dist/{LexicalClipboard.prod-BXVNkwwS.js.map → LexicalClipboard.prod-DbqSWANZ.js.map} +1 -1
  5. package/dist/LexicalLink.prod-DbxnRszt.js +275 -0
  6. package/dist/LexicalLink.prod-DbxnRszt.js.map +1 -0
  7. package/dist/{LexicalList.prod-BUcoZhe4.js → LexicalList.prod-pZmYrwOC.js} +212 -172
  8. package/dist/LexicalList.prod-pZmYrwOC.js.map +1 -0
  9. package/dist/{LexicalSelection.prod-BfAlhGGm.js → LexicalSelection.prod-DkvWlcln.js} +14 -14
  10. package/dist/{LexicalSelection.prod-BfAlhGGm.js.map → LexicalSelection.prod-DkvWlcln.js.map} +1 -1
  11. package/dist/LexicalTable.prod-C6duSS2P.js +1720 -0
  12. package/dist/LexicalTable.prod-C6duSS2P.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-DVr8VsHc.js → LexicalUtils.prod-Dny9Fu94.js} +43 -43
  14. package/dist/{LexicalUtils.prod-DVr8VsHc.js.map → LexicalUtils.prod-Dny9Fu94.js.map} +1 -1
  15. package/dist/{TablePlugin-MjKuocl4.js → TablePlugin-Ba6PaBhf.js} +28 -28
  16. package/dist/{TablePlugin-MjKuocl4.js.map → TablePlugin-Ba6PaBhf.js.map} +1 -1
  17. package/dist/components/Accordion/Accordion.test.js +2 -2
  18. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  19. package/dist/components/ActionList/ActionList.test.js +2 -2
  20. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  21. package/dist/components/Attention/Attention.test.js +1 -1
  22. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  23. package/dist/components/Buttons/Button.test.js +1 -1
  24. package/dist/components/Buttons/LinkButton.test.js +1 -1
  25. package/dist/components/Buttons/MenuButton.test.js +1 -1
  26. package/dist/components/Card/Card.test.js +1 -1
  27. package/dist/components/Checkbox/Checkbox.test.js +1 -1
  28. package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
  29. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  30. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  31. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  32. package/dist/components/FormInput/FormInput.js +1 -1
  33. package/dist/components/Icon/icons/index.d.ts +12 -0
  34. package/dist/components/Icon/icons/index.js +45 -35
  35. package/dist/components/Icon/icons/index.js.map +1 -1
  36. package/dist/components/InputField/InputField.stories.js +1 -1
  37. package/dist/components/Label/Label.test.js +1 -1
  38. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  39. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  40. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  41. package/dist/components/MultiSelect/index.js +1 -1
  42. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  43. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  44. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  45. package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
  46. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  47. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  48. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  49. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  50. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  51. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +35 -35
  52. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  53. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
  54. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
  55. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  56. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  57. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +11 -11
  58. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  59. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +7 -7
  60. package/dist/components/RteEditor/Plugins/index.js +1 -1
  61. package/dist/components/RteEditor/RteEditor.js +237 -235
  62. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  63. package/dist/components/RteEditor/helpers.js +4 -4
  64. package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
  65. package/dist/components/TextArea/TextArea.test.js +1 -1
  66. package/dist/components/Timeline/Timeline.test.js +2 -2
  67. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  68. package/dist/components/index.js +1 -1
  69. package/dist/{helpers-ChM6xtQG.js → helpers-BUwfVZhW.js} +15 -15
  70. package/dist/{helpers-ChM6xtQG.js.map → helpers-BUwfVZhW.js.map} +1 -1
  71. package/dist/{index-hwMTfLfH.js → index-Ck15_vKo.js} +2 -2
  72. package/dist/{index-hwMTfLfH.js.map → index-Ck15_vKo.js.map} +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/{react.esm-DI5ilWeT.js → react.esm-CMg7bmSn.js} +372 -366
  75. package/dist/{react.esm-DI5ilWeT.js.map → react.esm-CMg7bmSn.js.map} +1 -1
  76. package/package.json +28 -28
  77. package/dist/Lexical.prod-CniF7zEE.js.map +0 -1
  78. package/dist/LexicalLink.prod-Du8ZoNsh.js +0 -259
  79. package/dist/LexicalLink.prod-Du8ZoNsh.js.map +0 -1
  80. package/dist/LexicalList.prod-BUcoZhe4.js.map +0 -1
  81. package/dist/LexicalTable.prod-CYafu_j9.js +0 -1555
  82. package/dist/LexicalTable.prod-CYafu_j9.js.map +0 -1
@@ -0,0 +1,1720 @@
1
+ import { w as T, r as Q, i as ge, _ as yt, j as Jt, N as Yt, T as Nt, S as Xt, L as qt } from "./LexicalUtils.prod-Dny9Fu94.js";
2
+ import { f as Ve, n as ye, q as Ze, $ as jt, Y as Ce, M as it, T as I, X as Qe, p as Vt, h as xt, i as re, j as Zt, N as Be, k as Tt, c as z, o as Qt, r as be, d as D, a as B, m as Ue, s as Ke, t as Gt, v as en, x as tn, y as nn, F as De, L as on, A as rn, B as Rt, D as ln, H as V, I as sn, K as an, O as cn, P as un, Q as hn, R as dn, S as fn, V as gn, W as fe, g as ne, _ as $e, a0 as mn, b as Ft, a1 as pn, w as Ge, a2 as Cn, U as _n, a3 as Ae, a4 as Sn, a5 as wn, a6 as at, a7 as bn, a8 as ct, z as yn, a9 as ut, l as ht, Z as Re, aa as Nn, C as xn, ab as Tn, ac as Rn } from "./Lexical.prod-CWyHQUEM.js";
3
+ import { _ as Fn, M as vn } from "./LexicalClipboard.prod-DbqSWANZ.js";
4
+ const et = /^(\d+(?:\.\d+)?)px$/, W = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 };
5
+ class ce extends Ve {
6
+ static getType() {
7
+ return "tablecell";
8
+ }
9
+ static clone(e) {
10
+ return new ce(e.__headerState, e.__colSpan, e.__width, e.__key);
11
+ }
12
+ afterCloneFrom(e) {
13
+ super.afterCloneFrom(e), this.__rowSpan = e.__rowSpan, this.__backgroundColor = e.__backgroundColor, this.__verticalAlign = e.__verticalAlign;
14
+ }
15
+ static importDOM() {
16
+ return { td: (e) => ({ conversion: dt, priority: 0 }), th: (e) => ({ conversion: dt, priority: 0 }) };
17
+ }
18
+ static importJSON(e) {
19
+ return Y().updateFromJSON(e);
20
+ }
21
+ updateFromJSON(e) {
22
+ return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan || 1).setRowSpan(e.rowSpan || 1).setWidth(e.width || void 0).setBackgroundColor(e.backgroundColor || null).setVerticalAlign(e.verticalAlign || void 0);
23
+ }
24
+ constructor(e = W.NO_STATUS, t = 1, o, l) {
25
+ super(l), this.__colSpan = t, this.__rowSpan = 1, this.__headerState = e, this.__width = o, this.__backgroundColor = null, this.__verticalAlign = void 0;
26
+ }
27
+ createDOM(e) {
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), Je(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), Q(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
30
+ }
31
+ exportDOM(e) {
32
+ const t = super.exportDOM(e);
33
+ if (ye(t.element)) {
34
+ const o = t.element;
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
+ }
37
+ return t;
38
+ }
39
+ exportJSON() {
40
+ return { ...super.exportJSON(), ...Je(this.__verticalAlign) && { verticalAlign: this.__verticalAlign }, backgroundColor: this.getBackgroundColor(), colSpan: this.__colSpan, headerState: this.__headerState, rowSpan: this.__rowSpan, width: this.getWidth() };
41
+ }
42
+ getColSpan() {
43
+ return this.getLatest().__colSpan;
44
+ }
45
+ setColSpan(e) {
46
+ const t = this.getWritable();
47
+ return t.__colSpan = e, t;
48
+ }
49
+ getRowSpan() {
50
+ return this.getLatest().__rowSpan;
51
+ }
52
+ setRowSpan(e) {
53
+ const t = this.getWritable();
54
+ return t.__rowSpan = e, t;
55
+ }
56
+ getTag() {
57
+ return this.hasHeader() ? "th" : "td";
58
+ }
59
+ setHeaderStyles(e, t = W.BOTH) {
60
+ const o = this.getWritable();
61
+ return o.__headerState = e & t | o.__headerState & ~t, o;
62
+ }
63
+ getHeaderStyles() {
64
+ return this.getLatest().__headerState;
65
+ }
66
+ setWidth(e) {
67
+ const t = this.getWritable();
68
+ return t.__width = e, t;
69
+ }
70
+ getWidth() {
71
+ return this.getLatest().__width;
72
+ }
73
+ getBackgroundColor() {
74
+ return this.getLatest().__backgroundColor;
75
+ }
76
+ setBackgroundColor(e) {
77
+ const t = this.getWritable();
78
+ return t.__backgroundColor = e, t;
79
+ }
80
+ getVerticalAlign() {
81
+ return this.getLatest().__verticalAlign;
82
+ }
83
+ setVerticalAlign(e) {
84
+ const t = this.getWritable();
85
+ return t.__verticalAlign = e || void 0, t;
86
+ }
87
+ toggleHeaderStyle(e) {
88
+ const t = this.getWritable();
89
+ return (t.__headerState & e) === e ? t.__headerState -= e : t.__headerState += e, t;
90
+ }
91
+ hasHeaderState(e) {
92
+ return (this.getHeaderStyles() & e) === e;
93
+ }
94
+ hasHeader() {
95
+ return this.getLatest().__headerState !== W.NO_STATUS;
96
+ }
97
+ updateDOM(e) {
98
+ return e.__headerState !== this.__headerState || e.__width !== this.__width || e.__colSpan !== this.__colSpan || e.__rowSpan !== this.__rowSpan || e.__backgroundColor !== this.__backgroundColor || e.__verticalAlign !== this.__verticalAlign;
99
+ }
100
+ isShadowRoot() {
101
+ return !0;
102
+ }
103
+ collapseAtStart() {
104
+ return !0;
105
+ }
106
+ canBeEmpty() {
107
+ return !1;
108
+ }
109
+ canIndent() {
110
+ return !1;
111
+ }
112
+ }
113
+ function Je(n) {
114
+ return n === "middle" || n === "bottom";
115
+ }
116
+ function dt(n) {
117
+ const e = n, t = n.nodeName.toLowerCase();
118
+ let o;
119
+ et.test(e.style.width) && (o = parseFloat(e.style.width));
120
+ const l = Y(t === "th" ? W.ROW : W.NO_STATUS, e.colSpan, o);
121
+ l.__rowSpan = e.rowSpan;
122
+ const s = e.style.backgroundColor;
123
+ s !== "" && (l.__backgroundColor = s);
124
+ const r = e.style.verticalAlign;
125
+ Je(r) && (l.__verticalAlign = r);
126
+ const i = e.style, u = (i && i.textDecoration || "").split(" "), m = i.fontWeight === "700" || i.fontWeight === "bold", h = u.includes("line-through"), p = i.fontStyle === "italic", C = u.includes("underline");
127
+ return { after: (a) => {
128
+ const c = [];
129
+ let f = null;
130
+ const d = () => {
131
+ if (f) {
132
+ const g = f.getFirstChild();
133
+ it(g) && f.getChildrenSize() === 1 && g.remove();
134
+ }
135
+ };
136
+ for (const g of a) jt(g) || Ce(g) || it(g) ? (Ce(g) && (m && g.toggleFormat("bold"), h && g.toggleFormat("strikethrough"), p && g.toggleFormat("italic"), C && g.toggleFormat("underline")), f ? f.append(g) : (f = I().append(g), c.push(f))) : (c.push(g), d(), f = null);
137
+ return d(), c.length === 0 && c.push(I()), c;
138
+ }, node: l };
139
+ }
140
+ function Y(n = W.NO_STATUS, e = 1, t) {
141
+ return Ze(new ce(n, e, t));
142
+ }
143
+ function w(n) {
144
+ return n instanceof ce;
145
+ }
146
+ const On = Qt();
147
+ function b(n, ...e) {
148
+ const t = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
149
+ o.append("code", n);
150
+ for (const l of e) o.append("v", l);
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
+ }
153
+ class Te extends Ve {
154
+ static getType() {
155
+ return "tablerow";
156
+ }
157
+ static clone(e) {
158
+ return new Te(e.__height, e.__key);
159
+ }
160
+ static importDOM() {
161
+ return { tr: (e) => ({ conversion: Kn, priority: 0 }) };
162
+ }
163
+ static importJSON(e) {
164
+ return xe().updateFromJSON(e);
165
+ }
166
+ updateFromJSON(e) {
167
+ return super.updateFromJSON(e).setHeight(e.height);
168
+ }
169
+ constructor(e, t) {
170
+ super(t), this.__height = e;
171
+ }
172
+ exportJSON() {
173
+ const e = this.getHeight();
174
+ return { ...super.exportJSON(), ...e === void 0 ? void 0 : { height: e } };
175
+ }
176
+ createDOM(e) {
177
+ const t = document.createElement("tr");
178
+ return this.__height && (t.style.height = `${this.__height}px`), Q(t, e.theme.tableRow), t;
179
+ }
180
+ extractWithChild(e, t, o) {
181
+ return o === "html";
182
+ }
183
+ isShadowRoot() {
184
+ return !0;
185
+ }
186
+ setHeight(e) {
187
+ const t = this.getWritable();
188
+ return t.__height = e, t;
189
+ }
190
+ getHeight() {
191
+ return this.getLatest().__height;
192
+ }
193
+ updateDOM(e) {
194
+ return e.__height !== this.__height;
195
+ }
196
+ canBeEmpty() {
197
+ return !1;
198
+ }
199
+ canIndent() {
200
+ return !1;
201
+ }
202
+ }
203
+ function Kn(n) {
204
+ const e = n;
205
+ let t;
206
+ return et.test(e.style.height) && (t = parseFloat(e.style.height)), { after: (o) => yt(o, w), node: xe(t) };
207
+ }
208
+ function xe(n) {
209
+ return Ze(new Te(n));
210
+ }
211
+ function $(n) {
212
+ return n instanceof Te;
213
+ }
214
+ const tt = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, An = tt && "documentMode" in document ? document.documentMode : null, ft = tt && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
215
+ function En(n, e, t = !0) {
216
+ const o = rt();
217
+ for (let l = 0; l < n; l++) {
218
+ const s = xe();
219
+ for (let r = 0; r < e; r++) {
220
+ let i = W.NO_STATUS;
221
+ typeof t == "object" ? (l === 0 && t.rows && (i |= W.ROW), r === 0 && t.columns && (i |= W.COLUMN)) : t && (l === 0 && (i |= W.ROW), r === 0 && (i |= W.COLUMN));
222
+ const u = Y(i), m = I();
223
+ m.append(Qe()), u.append(m), s.append(u);
224
+ }
225
+ o.append(s);
226
+ }
227
+ return o;
228
+ }
229
+ function so(n) {
230
+ const e = T(n, (t) => w(t));
231
+ return w(e) ? e : null;
232
+ }
233
+ function vt(n) {
234
+ const e = T(n, (t) => $(t));
235
+ if ($(e)) return e;
236
+ throw new Error("Expected table cell to be inside of table row.");
237
+ }
238
+ function Ot(n) {
239
+ const e = T(n, (t) => k(t));
240
+ if (k(e)) return e;
241
+ throw new Error("Expected table cell to be inside of table.");
242
+ }
243
+ function io(n) {
244
+ const e = vt(n);
245
+ return Ot(e).getChildren().findIndex((t) => t.is(e));
246
+ }
247
+ function ao(n) {
248
+ return vt(n).getChildren().findIndex((e) => e.is(n));
249
+ }
250
+ tt && "InputEvent" in window && !An && new window.InputEvent("input");
251
+ const Ye = (n, e) => n === W.BOTH || n === e ? e : W.NO_STATUS;
252
+ function kn(n, e = !0) {
253
+ const [, , t] = G(n), [o, l] = J(t, n, n), s = o[0].length, { startRow: r } = l;
254
+ let i = null;
255
+ if (e) {
256
+ const u = r + n.__rowSpan - 1, m = o[u], h = xe();
257
+ for (let C = 0; C < s; C++) {
258
+ const { cell: a, startRow: c } = m[C];
259
+ if (c + a.__rowSpan - 1 <= u) {
260
+ const f = m[C].cell.__headerState, d = Ye(f, W.COLUMN);
261
+ h.append(Y(d).append(I()));
262
+ } else a.setRowSpan(a.__rowSpan + 1);
263
+ }
264
+ const p = t.getChildAtIndex(u);
265
+ $(p) || b(256), p.insertAfter(h), i = h;
266
+ } else {
267
+ const u = r, m = o[u], h = xe();
268
+ for (let C = 0; C < s; C++) {
269
+ const { cell: a, startRow: c } = m[C];
270
+ if (c === u) {
271
+ const f = m[C].cell.__headerState, d = Ye(f, W.COLUMN);
272
+ h.append(Y(d).append(I()));
273
+ } else a.setRowSpan(a.__rowSpan + 1);
274
+ }
275
+ const p = t.getChildAtIndex(u);
276
+ $(p) || b(257), p.insertBefore(h), i = h;
277
+ }
278
+ return i;
279
+ }
280
+ function $n(n, e = !0, t = !0) {
281
+ const [, , o] = G(n), [l, s] = J(o, n, n), r = l.length, { startColumn: i } = s, u = e ? i + n.__colSpan - 1 : i - 1, m = o.getFirstChild();
282
+ $(m) || b(120);
283
+ let h = null;
284
+ function p(c = W.NO_STATUS) {
285
+ const f = Y(c).append(I());
286
+ return h === null && (h = f), f;
287
+ }
288
+ let C = m;
289
+ e: for (let c = 0; c < r; c++) {
290
+ if (c !== 0) {
291
+ const y = C.getNextSibling();
292
+ $(y) || b(121), C = y;
293
+ }
294
+ const f = l[c], d = f[u < 0 ? 0 : u].cell.__headerState, g = Ye(d, W.ROW);
295
+ if (u < 0) {
296
+ Kt(C, p(g));
297
+ continue;
298
+ }
299
+ const { cell: _, startColumn: S, startRow: N } = f[u];
300
+ if (S + _.__colSpan - 1 <= u) {
301
+ let y = _, R = N, v = u;
302
+ for (; R !== c && y.__rowSpan > 1; ) {
303
+ if (v -= _.__colSpan, !(v >= 0)) {
304
+ C.append(p(g));
305
+ continue e;
306
+ }
307
+ {
308
+ const { cell: M, startRow: O } = f[v];
309
+ y = M, R = O;
310
+ }
311
+ }
312
+ y.insertAfter(p(g));
313
+ } else _.setColSpan(_.__colSpan + 1);
314
+ }
315
+ h !== null && t && Mn(h);
316
+ const a = o.getColWidths();
317
+ if (a) {
318
+ const c = [...a], f = u < 0 ? 0 : u, d = c[f];
319
+ c.splice(f, 0, d), o.setColWidths(c);
320
+ }
321
+ return h;
322
+ }
323
+ function co(n, e) {
324
+ const t = n.getChildren();
325
+ for (let o = 0; o < t.length; o++) {
326
+ const l = t[o];
327
+ if ($(l)) {
328
+ const s = l.getChildren();
329
+ if (e >= s.length || e < 0) throw new Error("Table column target index out of range");
330
+ s[e].remove();
331
+ }
332
+ }
333
+ return n;
334
+ }
335
+ function Mn(n) {
336
+ const e = n.getFirstDescendant();
337
+ e == null ? n.selectStart() : e.getParentOrThrow().selectStart();
338
+ }
339
+ function Kt(n, e) {
340
+ const t = n.getFirstChild();
341
+ t !== null ? t.insertBefore(e) : n.append(e);
342
+ }
343
+ function Ln(n) {
344
+ if (n.length === 0) return null;
345
+ const e = Ot(n[0]), [t] = oe(e, null, null);
346
+ let o = 1 / 0, l = -1 / 0, s = 1 / 0, r = -1 / 0;
347
+ const i = /* @__PURE__ */ new Set();
348
+ for (const a of t) for (const c of a) {
349
+ if (!c || !c.cell) continue;
350
+ const f = c.cell.getKey();
351
+ if (!i.has(f) && n.some((d) => d.is(c.cell))) {
352
+ i.add(f);
353
+ const d = c.startRow, g = c.startColumn, _ = c.cell.__rowSpan || 1, S = c.cell.__colSpan || 1;
354
+ o = Math.min(o, d), l = Math.max(l, d + _ - 1), s = Math.min(s, g), r = Math.max(r, g + S - 1);
355
+ }
356
+ }
357
+ if (o === 1 / 0 || s === 1 / 0) return null;
358
+ const u = l - o + 1, m = r - s + 1, h = t[o][s];
359
+ if (!h.cell) return null;
360
+ const p = h.cell;
361
+ p.setColSpan(m), p.setRowSpan(u);
362
+ const C = /* @__PURE__ */ new Set([p.getKey()]);
363
+ for (let a = o; a <= l; a++) for (let c = s; c <= r; c++) {
364
+ const f = t[a][c];
365
+ if (!f.cell) continue;
366
+ const d = f.cell, g = d.getKey();
367
+ C.has(g) || (C.add(g), zn(d) || p.append(...d.getChildren()), d.remove());
368
+ }
369
+ return p.getChildrenSize() === 0 && p.append(I()), p;
370
+ }
371
+ function zn(n) {
372
+ if (n.getChildrenSize() !== 1) return !1;
373
+ const e = n.getFirstChildOrThrow();
374
+ return !(!Ge(e) || !e.isEmpty());
375
+ }
376
+ function Wn(n) {
377
+ const [e, t, o] = G(n), l = e.__colSpan, s = e.__rowSpan;
378
+ if (l === 1 && s === 1) return;
379
+ const [r, i] = J(o, e, e), { startColumn: u, startRow: m } = i, h = e.__headerState & W.COLUMN, p = Array.from({ length: l }, (c, f) => {
380
+ let d = h;
381
+ for (let g = 0; d !== 0 && g < r.length; g++) d &= r[g][f + u].cell.__headerState;
382
+ return d;
383
+ }), C = e.__headerState & W.ROW, a = Array.from({ length: s }, (c, f) => {
384
+ let d = C;
385
+ for (let g = 0; d !== 0 && g < r[0].length; g++) d &= r[f + m][g].cell.__headerState;
386
+ return d;
387
+ });
388
+ if (l > 1) {
389
+ for (let c = 1; c < l; c++) e.insertAfter(Y(p[c] | a[0]).append(I()));
390
+ e.setColSpan(1);
391
+ }
392
+ if (s > 1) {
393
+ let c;
394
+ for (let f = 1; f < s; f++) {
395
+ const d = m + f, g = r[d];
396
+ c = (c || t).getNextSibling(), $(c) || b(125);
397
+ let _ = null;
398
+ for (let S = 0; S < u; S++) {
399
+ const N = g[S], y = N.cell;
400
+ N.startRow === d && (_ = y), y.__colSpan > 1 && (S += y.__colSpan - 1);
401
+ }
402
+ if (_ === null) for (let S = l - 1; S >= 0; S--) Kt(c, Y(p[S] | a[f]).append(I()));
403
+ else for (let S = l - 1; S >= 0; S--) _.insertAfter(Y(p[S] | a[f]).append(I()));
404
+ }
405
+ e.setRowSpan(1);
406
+ }
407
+ }
408
+ function J(n, e, t) {
409
+ const [o, l, s] = oe(n, e, t);
410
+ return l === null && b(207), s === null && b(208), [o, l, s];
411
+ }
412
+ function oe(n, e, t) {
413
+ const o = [];
414
+ let l = null, s = null;
415
+ function r(u) {
416
+ let m = o[u];
417
+ return m === void 0 && (o[u] = m = []), m;
418
+ }
419
+ const i = n.getChildren();
420
+ for (let u = 0; u < i.length; u++) {
421
+ const m = i[u];
422
+ $(m) || b(209);
423
+ const h = r(u);
424
+ for (let p = m.getFirstChild(), C = 0; p != null; p = p.getNextSibling()) {
425
+ for (w(p) || b(147); h[C] !== void 0; ) C++;
426
+ const a = { cell: p, startColumn: C, startRow: u }, { __rowSpan: c, __colSpan: f } = p;
427
+ for (let d = 0; d < c && !(u + d >= i.length); d++) {
428
+ const g = r(u + d);
429
+ for (let _ = 0; _ < f; _++) g[C + _] = a;
430
+ }
431
+ e !== null && l === null && e.is(p) && (l = a), t !== null && s === null && t.is(p) && (s = a);
432
+ }
433
+ }
434
+ return [o, l, s];
435
+ }
436
+ function G(n) {
437
+ let e;
438
+ if (n instanceof ce) e = n;
439
+ else if ("__type" in n) {
440
+ const l = T(n, w);
441
+ w(l) || b(148), e = l;
442
+ } else {
443
+ const l = T(n.getNode(), w);
444
+ w(l) || b(148), e = l;
445
+ }
446
+ const t = e.getParent();
447
+ $(t) || b(149);
448
+ const o = t.getParent();
449
+ return k(o) || b(210), [e, t, o];
450
+ }
451
+ function Ee(n, e, t) {
452
+ let o, l = Math.min(e.startColumn, t.startColumn), s = Math.min(e.startRow, t.startRow), r = 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);
453
+ do {
454
+ o = !1;
455
+ for (let u = 0; u < n.length; u++) for (let m = 0; m < n[0].length; m++) {
456
+ const h = n[u][m];
457
+ if (!h) continue;
458
+ const p = h.startColumn + h.cell.__colSpan - 1, C = h.startRow + h.cell.__rowSpan - 1, a = h.startColumn <= r && p >= l, c = h.startRow <= i && C >= s;
459
+ if (a && c) {
460
+ const f = Math.min(l, h.startColumn), d = Math.max(r, p), g = Math.min(s, h.startRow), _ = Math.max(i, C);
461
+ f === l && d === r && g === s && _ === i || (l = f, r = d, s = g, i = _, o = !0);
462
+ }
463
+ }
464
+ } while (o);
465
+ return { maxColumn: r, maxRow: i, minColumn: l, minRow: s };
466
+ }
467
+ function gt(n) {
468
+ const [e, , t] = G(n), o = t.getChildren(), l = o.length, s = o[0].getChildren().length, r = new Array(l);
469
+ for (let i = 0; i < l; i++) r[i] = new Array(s);
470
+ for (let i = 0; i < l; i++) {
471
+ const u = o[i].getChildren();
472
+ let m = 0;
473
+ for (let h = 0; h < u.length; h++) {
474
+ for (; r[i][m]; ) m++;
475
+ const p = u[h], C = p.__rowSpan || 1, a = p.__colSpan || 1;
476
+ for (let c = 0; c < C; c++) for (let f = 0; f < a; f++) r[i + c][m + f] = p;
477
+ if (e === p) return { colSpan: a, columnIndex: m, rowIndex: i, rowSpan: C };
478
+ m += a;
479
+ }
480
+ }
481
+ return null;
482
+ }
483
+ function mt(n) {
484
+ const [[e, t, o, l], [s, r, i, u]] = ["anchor", "focus"].map((m) => {
485
+ const h = n[m].getNode(), p = T(h, w);
486
+ w(p) || b(238, m, h.getKey(), h.getType());
487
+ const C = p.getParent();
488
+ $(C) || b(239, m);
489
+ const a = C.getParent();
490
+ return k(a) || b(240, m), [h, p, C, a];
491
+ });
492
+ return l.is(u) || b(241), { anchorCell: t, anchorNode: e, anchorRow: o, anchorTable: l, focusCell: r, focusNode: s, focusRow: i, focusTable: u };
493
+ }
494
+ class Me {
495
+ constructor(e, t, o) {
496
+ this.anchor = t, this.focus = o, t._selection = this, o._selection = this, this._cachedNodes = null, this.dirty = !1, this.tableKey = e;
497
+ }
498
+ getStartEndPoints() {
499
+ return [this.anchor, this.focus];
500
+ }
501
+ isValid() {
502
+ return this.tableKey !== "root" && this.anchor.key !== "root" && this.anchor.type === "element" && this.focus.key !== "root" && this.focus.type === "element";
503
+ }
504
+ isBackward() {
505
+ return this.focus.isBefore(this.anchor);
506
+ }
507
+ getCachedNodes() {
508
+ return this._cachedNodes;
509
+ }
510
+ setCachedNodes(e) {
511
+ this._cachedNodes = e;
512
+ }
513
+ is(e) {
514
+ return K(e) && this.tableKey === e.tableKey && this.anchor.is(e.anchor) && this.focus.is(e.focus);
515
+ }
516
+ set(e, t, o) {
517
+ this.dirty = this.dirty || e !== this.tableKey || t !== this.anchor.key || o !== this.focus.key, this.tableKey = e, this.anchor.key = t, this.focus.key = o, this._cachedNodes = null;
518
+ }
519
+ clone() {
520
+ return new Me(this.tableKey, Ae(this.anchor.key, this.anchor.offset, this.anchor.type), Ae(this.focus.key, this.focus.offset, this.focus.type));
521
+ }
522
+ isCollapsed() {
523
+ return !1;
524
+ }
525
+ extract() {
526
+ return this.getNodes();
527
+ }
528
+ insertRawText(e) {
529
+ }
530
+ insertText() {
531
+ }
532
+ hasFormat(e) {
533
+ let t = 0;
534
+ this.getNodes().filter(w).forEach((l) => {
535
+ const s = l.getFirstChild();
536
+ Ge(s) && (t |= s.getTextFormat());
537
+ });
538
+ const o = Rn[e];
539
+ return !!(t & o);
540
+ }
541
+ insertNodes(e) {
542
+ const t = this.focus.getNode();
543
+ D(t) || b(151), xn(t.select(0, t.getChildrenSize())).insertNodes(e);
544
+ }
545
+ getShape() {
546
+ const { anchorCell: e, focusCell: t } = mt(this), o = gt(e);
547
+ o === null && b(153);
548
+ const l = gt(t);
549
+ l === null && b(155);
550
+ const s = Math.min(o.columnIndex, l.columnIndex), r = Math.max(o.columnIndex + o.colSpan - 1, l.columnIndex + l.colSpan - 1), i = Math.min(o.rowIndex, l.rowIndex), u = Math.max(o.rowIndex + o.rowSpan - 1, l.rowIndex + l.rowSpan - 1);
551
+ return { fromX: Math.min(s, r), fromY: Math.min(i, u), toX: Math.max(s, r), toY: Math.max(i, u) };
552
+ }
553
+ getNodes() {
554
+ if (!this.isValid()) return [];
555
+ const e = this._cachedNodes;
556
+ if (e !== null) return e;
557
+ const { anchorTable: t, anchorCell: o, focusCell: l } = mt(this), s = l.getParents()[1];
558
+ if (s !== t) {
559
+ if (t.isParentOf(l)) {
560
+ const d = s.getParent();
561
+ d == null && b(159), this.set(this.tableKey, l.getKey(), d.getKey());
562
+ } else {
563
+ const d = t.getParent();
564
+ d == null && b(158), this.set(this.tableKey, d.getKey(), l.getKey());
565
+ }
566
+ return this.getNodes();
567
+ }
568
+ const [r, i, u] = J(t, o, l), { minColumn: m, maxColumn: h, minRow: p, maxRow: C } = Ee(r, i, u), a = /* @__PURE__ */ new Map([[t.getKey(), t]]);
569
+ let c = null;
570
+ for (let d = p; d <= C; d++) for (let g = m; g <= h; g++) {
571
+ const { cell: _ } = r[d][g], S = _.getParent();
572
+ $(S) || b(160), S !== c && (a.set(S.getKey(), S), c = S), a.has(_.getKey()) || Pn(_, (N) => {
573
+ a.set(N.getKey(), N);
574
+ });
575
+ }
576
+ const f = Array.from(a.values());
577
+ return Tn() || (this._cachedNodes = f), f;
578
+ }
579
+ getTextContent() {
580
+ const e = this.getNodes().filter((o) => w(o));
581
+ let t = "";
582
+ for (let o = 0; o < e.length; o++) {
583
+ const l = e[o], s = l.__parent, r = (e[o + 1] || {}).__parent;
584
+ t += l.getTextContent() + (r !== s ? `
585
+ ` : " ");
586
+ }
587
+ return t;
588
+ }
589
+ }
590
+ function K(n) {
591
+ return n instanceof Me;
592
+ }
593
+ function At() {
594
+ const n = Ae("root", 0, "element"), e = Ae("root", 0, "element");
595
+ return new Me("root", n, e);
596
+ }
597
+ function Hn(n, e, t) {
598
+ n.getKey(), e.getKey(), t.getKey();
599
+ const o = B(), l = K(o) ? o.clone() : At();
600
+ return l.set(n.getKey(), e.getKey(), t.getKey()), l;
601
+ }
602
+ function Pn(n, e) {
603
+ const t = [[n]];
604
+ for (let o = t.at(-1); o !== void 0 && t.length > 0; o = t.at(-1)) {
605
+ const l = o.pop();
606
+ l === void 0 ? t.pop() : e(l) !== !1 && D(l) && t.push(l.getChildren());
607
+ }
608
+ }
609
+ function Et(n, e = xt()) {
610
+ const t = Ke(n);
611
+ k(t) || b(231, n);
612
+ const o = ie(t, e.getElementByKey(n));
613
+ return o === null && b(232, n), { tableElement: o, tableNode: t };
614
+ }
615
+ class Bn {
616
+ constructor(e, t) {
617
+ this.isHighlightingCells = !1, this.anchorX = -1, this.anchorY = -1, this.focusX = -1, this.focusY = -1, this.listenersToRemove = /* @__PURE__ */ new Set(), this.tableNodeKey = t, this.editor = e, this.table = { columns: 0, domRows: [], rows: 0 }, this.tableSelection = null, this.anchorCellNodeKey = null, this.focusCellNodeKey = null, this.anchorCell = null, this.focusCell = null, this.hasHijackedSelectionStyles = !1, this.isSelecting = !1, this.pointerType = null, this.shouldCheckSelection = !1, this.abortController = new AbortController(), this.listenerOptions = { signal: this.abortController.signal }, this.nextFocus = null, this.trackTable();
618
+ }
619
+ getTable() {
620
+ return this.table;
621
+ }
622
+ removeListeners() {
623
+ this.abortController.abort("removeListeners"), Array.from(this.listenersToRemove).forEach((e) => e()), this.listenersToRemove.clear();
624
+ }
625
+ $lookup() {
626
+ return Et(this.tableNodeKey, this.editor);
627
+ }
628
+ trackTable() {
629
+ const e = new MutationObserver((t) => {
630
+ this.editor.getEditorState().read(() => {
631
+ let o = !1;
632
+ for (let r = 0; r < t.length; r++) {
633
+ const i = t[r].target.nodeName;
634
+ if (i === "TABLE" || i === "TBODY" || i === "THEAD" || i === "TR") {
635
+ o = !0;
636
+ break;
637
+ }
638
+ }
639
+ if (!o) return;
640
+ const { tableNode: l, tableElement: s } = this.$lookup();
641
+ this.table = me(l, s);
642
+ }, { editor: this.editor });
643
+ });
644
+ this.editor.getEditorState().read(() => {
645
+ const { tableNode: t, tableElement: o } = this.$lookup();
646
+ this.table = me(t, o), e.observe(o, { attributes: !0, childList: !0, subtree: !0 });
647
+ }, { editor: this.editor });
648
+ }
649
+ $clearHighlight() {
650
+ const e = this.editor;
651
+ this.isHighlightingCells = !1, this.anchorX = -1, this.anchorY = -1, this.focusX = -1, this.focusY = -1, this.tableSelection = null, this.anchorCellNodeKey = null, this.focusCellNodeKey = null, this.anchorCell = null, this.focusCell = null, this.hasHijackedSelectionStyles = !1, this.$enableHighlightStyle();
652
+ const { tableNode: t, tableElement: o } = this.$lookup();
653
+ Fe(e, me(t, o), null), B() !== null && (ne(null), e.dispatchCommand(fe, void 0));
654
+ }
655
+ $enableHighlightStyle() {
656
+ const e = this.editor, { tableElement: t } = this.$lookup();
657
+ ge(t, e._config.theme.tableSelection), t.classList.remove("disable-selection"), this.hasHijackedSelectionStyles = !1;
658
+ }
659
+ $disableHighlightStyle() {
660
+ const { tableElement: e } = this.$lookup();
661
+ Q(e, this.editor._config.theme.tableSelection), this.hasHijackedSelectionStyles = !0;
662
+ }
663
+ $updateTableTableSelection(e) {
664
+ if (e !== null) {
665
+ e.tableKey !== this.tableNodeKey && b(233, e.tableKey, this.tableNodeKey);
666
+ const t = this.editor;
667
+ this.tableSelection = e, this.isHighlightingCells = !0, this.$disableHighlightStyle(), this.updateDOMSelection(), Fe(t, this.table, this.tableSelection);
668
+ } else this.$clearHighlight();
669
+ }
670
+ setShouldCheckSelection() {
671
+ this.shouldCheckSelection = !0;
672
+ }
673
+ getAndClearShouldCheckSelection() {
674
+ return !!this.shouldCheckSelection && (this.shouldCheckSelection = !1, !0);
675
+ }
676
+ setNextFocus(e) {
677
+ this.nextFocus = e;
678
+ }
679
+ getAndClearNextFocus() {
680
+ const { nextFocus: e } = this;
681
+ return e !== null && (this.nextFocus = null), e;
682
+ }
683
+ updateDOMSelection() {
684
+ if (this.anchorCell !== null && this.focusCell !== null) {
685
+ const e = $e(this.editor._window);
686
+ e && e.rangeCount > 0 && e.removeAllRanges();
687
+ }
688
+ }
689
+ $setFocusCellForSelection(e, t = !1) {
690
+ const o = this.editor, { tableNode: l } = this.$lookup(), s = e.x, r = e.y;
691
+ if (this.focusCell = e, this.isHighlightingCells || this.anchorX === s && this.anchorY === r && !t) {
692
+ if (s === this.focusX && r === this.focusY) return !1;
693
+ } else this.isHighlightingCells = !0, this.$disableHighlightStyle();
694
+ if (this.focusX = s, this.focusY = r, this.isHighlightingCells) {
695
+ const i = qe(l, e.elem);
696
+ if (this.tableSelection != null && this.anchorCellNodeKey != null && i !== null) return this.focusCellNodeKey = i.getKey(), this.tableSelection = Hn(l, this.$getAnchorTableCellOrThrow(), i), ne(this.tableSelection), o.dispatchCommand(fe, void 0), Fe(o, this.table, this.tableSelection), !0;
697
+ }
698
+ return !1;
699
+ }
700
+ $getAnchorTableCell() {
701
+ return this.anchorCellNodeKey ? Ke(this.anchorCellNodeKey) : null;
702
+ }
703
+ $getAnchorTableCellOrThrow() {
704
+ const e = this.$getAnchorTableCell();
705
+ return e === null && b(234), e;
706
+ }
707
+ $getFocusTableCell() {
708
+ return this.focusCellNodeKey ? Ke(this.focusCellNodeKey) : null;
709
+ }
710
+ $getFocusTableCellOrThrow() {
711
+ const e = this.$getFocusTableCell();
712
+ return e === null && b(235), e;
713
+ }
714
+ $setAnchorCellForSelection(e) {
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);
717
+ if (o !== null) {
718
+ const l = o.getKey();
719
+ this.tableSelection = this.tableSelection != null ? this.tableSelection.clone() : At(), this.anchorCellNodeKey = l;
720
+ }
721
+ }
722
+ $formatCells(e) {
723
+ const t = B();
724
+ K(t) || b(236);
725
+ const o = pn(), l = o.anchor, s = o.focus, r = t.getNodes().filter(w);
726
+ r.length > 0 || b(237);
727
+ const i = r[0].getFirstChild(), u = Ge(i) ? i.getFormatFlags(e, null) : null;
728
+ r.forEach((m) => {
729
+ l.set(m.getKey(), 0, "element"), s.set(m.getKey(), m.getChildrenSize(), "element"), o.formatText(e, u);
730
+ }), ne(t), this.editor.dispatchCommand(fe, void 0);
731
+ }
732
+ $clearText() {
733
+ const { editor: e } = this, t = Ke(this.tableNodeKey);
734
+ if (!k(t)) throw new Error("Expected TableNode.");
735
+ const o = B();
736
+ K(o) || b(253);
737
+ const l = o.getNodes().filter(w);
738
+ if (l.length === this.table.columns * this.table.rows) {
739
+ t.selectPrevious();
740
+ const s = t.getParent();
741
+ return t.remove(), void (Cn(s) && s.isEmpty() && e.dispatchCommand(Ft, void 0));
742
+ }
743
+ l.forEach((s) => {
744
+ if (D(s)) {
745
+ const r = I(), i = Qe();
746
+ r.append(i), s.append(r), s.getChildren().forEach((u) => {
747
+ u !== r && u.remove();
748
+ });
749
+ }
750
+ }), Fe(e, this.table, null), ne(null), e.dispatchCommand(fe, void 0);
751
+ }
752
+ }
753
+ const Xe = "__lexicalTableSelection", Dn = (n) => !(1 & ~n.buttons);
754
+ function de(n) {
755
+ return ye(n) && n.nodeName === "TABLE";
756
+ }
757
+ function ie(n, e) {
758
+ if (!e) return e;
759
+ const t = de(e) ? e : n.getDOMSlot(e).element;
760
+ return t.nodeName !== "TABLE" && b(245, e.nodeName), t;
761
+ }
762
+ function nt(n) {
763
+ return n._window;
764
+ }
765
+ function Ne(n, e) {
766
+ for (let t = e, o = null; t !== null; t = t.getParent()) {
767
+ if (n.is(t)) return o;
768
+ w(t) && (o = t);
769
+ }
770
+ return null;
771
+ }
772
+ const In = [[Gt, "down"], [en, "up"], [tn, "backward"], [nn, "forward"]], Un = [rn, Rt, ln], Jn = [sn, an];
773
+ function Yn(n, e, t, o) {
774
+ const l = t.getRootElement(), s = nt(t);
775
+ l !== null && s !== null || b(246);
776
+ const r = new Bn(t, n.getKey()), i = ie(n, e);
777
+ (function(a, c) {
778
+ pt(a) !== null && b(205), a[Xe] = c;
779
+ })(i, r), r.listenersToRemove.add(() => function(a, c) {
780
+ pt(a) === c && delete a[Xe];
781
+ }(i, r));
782
+ const u = (a) => {
783
+ if (r.pointerType = a.pointerType, a.button !== 0 || !be(a.target) || !s) return;
784
+ const c = ke(a.target);
785
+ c !== null && t.update(() => {
786
+ const f = Ue();
787
+ if (ft && a.shiftKey && Z(f, n) && (z(f) || K(f))) {
788
+ const d = f.anchor.getNode(), g = Ne(n, f.anchor.getNode());
789
+ g ? (r.$setAnchorCellForSelection(se(r, g)), r.$setFocusCellForSelection(c), te(a)) : (n.isBefore(d) ? n.selectStart() : n.selectEnd()).anchor.set(f.anchor.key, f.anchor.offset, f.anchor.type);
790
+ } else r.$setAnchorCellForSelection(c);
791
+ }), (() => {
792
+ if (r.isSelecting) return;
793
+ const f = () => {
794
+ r.isSelecting = !1, s.removeEventListener("pointerup", f), s.removeEventListener("pointermove", d);
795
+ }, d = (g) => {
796
+ if (!Dn(g) && r.isSelecting) return r.isSelecting = !1, s.removeEventListener("pointerup", f), void s.removeEventListener("pointermove", d);
797
+ if (!be(g.target)) return;
798
+ let _ = null;
799
+ const S = !(ft || i.contains(g.target));
800
+ if (S) _ = Ct(i, g.target);
801
+ else for (const N of document.elementsFromPoint(g.clientX, g.clientY)) if (_ = Ct(i, N), _) break;
802
+ !_ || r.focusCell !== null && _.elem === r.focusCell.elem || (r.setNextFocus({ focusCell: _, override: S }), t.dispatchCommand(fe, void 0));
803
+ };
804
+ r.isSelecting = !0, s.addEventListener("pointerup", f, r.listenerOptions), s.addEventListener("pointermove", d, r.listenerOptions);
805
+ })();
806
+ };
807
+ i.addEventListener("pointerdown", u, r.listenerOptions), r.listenersToRemove.add(() => {
808
+ i.removeEventListener("pointerdown", u);
809
+ });
810
+ const m = (a) => {
811
+ a.detail >= 3 && be(a.target) && ke(a.target) !== null && a.preventDefault();
812
+ };
813
+ i.addEventListener("mousedown", m, r.listenerOptions), r.listenersToRemove.add(() => {
814
+ i.removeEventListener("mousedown", m);
815
+ });
816
+ const h = (a) => {
817
+ const c = a.target;
818
+ a.button === 0 && be(c) && t.update(() => {
819
+ const f = B();
820
+ K(f) && f.tableKey === r.tableNodeKey && l.contains(c) && r.$clearHighlight();
821
+ });
822
+ };
823
+ s.addEventListener("pointerdown", h, r.listenerOptions), r.listenersToRemove.add(() => {
824
+ s.removeEventListener("pointerdown", h);
825
+ });
826
+ for (const [a, c] of In) r.listenersToRemove.add(t.registerCommand(a, (f) => Mt(t, f, c, n, r), De));
827
+ r.listenersToRemove.add(t.registerCommand(on, (a) => {
828
+ const c = B();
829
+ if (K(c)) {
830
+ const f = Ne(n, c.focus.getNode());
831
+ if (f !== null) return te(a), f.selectEnd(), !0;
832
+ }
833
+ return !1;
834
+ }, De));
835
+ const p = (a) => () => {
836
+ const c = B();
837
+ if (!Z(c, n)) return !1;
838
+ if (K(c)) return r.$clearText(), !0;
839
+ if (z(c)) {
840
+ if (!w(Ne(n, c.anchor.getNode()))) return !1;
841
+ const f = c.anchor.getNode(), d = c.focus.getNode(), g = n.isParentOf(f), _ = n.isParentOf(d);
842
+ if (g && !_ || _ && !g) return r.$clearText(), !0;
843
+ const S = T(c.anchor.getNode(), (y) => D(y)), N = S && T(S, (y) => D(y) && w(y.getParent()));
844
+ if (!D(N) || !D(S)) return !1;
845
+ if (a === Rt && N.getPreviousSibling() === null) return !0;
846
+ }
847
+ return !1;
848
+ };
849
+ for (const a of Un) r.listenersToRemove.add(t.registerCommand(a, p(a), V));
850
+ const C = (a) => {
851
+ const c = B();
852
+ if (!K(c) && !z(c)) return !1;
853
+ const f = n.isParentOf(c.anchor.getNode());
854
+ if (f !== n.isParentOf(c.focus.getNode())) {
855
+ const d = f ? "anchor" : "focus", g = f ? "focus" : "anchor", { key: _, offset: S, type: N } = c[g];
856
+ return n[c[d].isBefore(c[g]) ? "selectPrevious" : "selectNext"]()[g].set(_, S, N), !1;
857
+ }
858
+ return !!Z(c, n) && !!K(c) && (a && (a.preventDefault(), a.stopPropagation()), r.$clearText(), !0);
859
+ };
860
+ for (const a of Jn) r.listenersToRemove.add(t.registerCommand(a, C, V));
861
+ return r.listenersToRemove.add(t.registerCommand(cn, (a) => {
862
+ const c = B();
863
+ if (c) {
864
+ if (!K(c) && !z(c)) return !1;
865
+ Fn(t, qt(a, ClipboardEvent) ? a : null, vn(c));
866
+ const f = C(a);
867
+ return z(c) ? (c.removeText(), !0) : f;
868
+ }
869
+ return !1;
870
+ }, V)), r.listenersToRemove.add(t.registerCommand(un, (a) => {
871
+ const c = B();
872
+ if (!Z(c, n)) return !1;
873
+ if (K(c)) return r.$formatCells(a), !0;
874
+ if (z(c)) {
875
+ const f = T(c.anchor.getNode(), (d) => w(d));
876
+ if (!w(f)) return !1;
877
+ }
878
+ return !1;
879
+ }, V)), r.listenersToRemove.add(t.registerCommand(hn, (a) => {
880
+ const c = B();
881
+ if (!K(c) || !Z(c, n)) return !1;
882
+ const f = c.anchor.getNode(), d = c.focus.getNode();
883
+ if (!w(f) || !w(d)) return !1;
884
+ if (function(O, A) {
885
+ if (K(O)) {
886
+ const F = O.anchor.getNode(), E = O.focus.getNode();
887
+ if (A && F && E) {
888
+ const [L] = J(A, F, E);
889
+ return F.getKey() === L[0][0].cell.getKey() && E.getKey() === L[L.length - 1].at(-1).cell.getKey();
890
+ }
891
+ }
892
+ return !1;
893
+ }(c, n)) return n.setFormat(a), !0;
894
+ const [g, _, S] = J(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), R = Math.min(_.startRow, S.startRow), v = Math.min(_.startColumn, S.startColumn), M = /* @__PURE__ */ new Set();
895
+ for (let O = R; O <= N; O++) for (let A = v; A <= y; A++) {
896
+ const F = g[O][A].cell;
897
+ if (M.has(F)) continue;
898
+ M.add(F), F.setFormat(a);
899
+ const E = F.getChildren();
900
+ for (let L = 0; L < E.length; L++) {
901
+ const H = E[L];
902
+ D(H) && !H.isInline() && H.setFormat(a);
903
+ }
904
+ }
905
+ return !0;
906
+ }, V)), r.listenersToRemove.add(t.registerCommand(dn, (a) => {
907
+ const c = B();
908
+ if (!Z(c, n)) return !1;
909
+ if (K(c)) return r.$clearHighlight(), !1;
910
+ if (z(c)) {
911
+ const f = T(c.anchor.getNode(), (d) => w(d));
912
+ if (!w(f)) return !1;
913
+ if (typeof a == "string") {
914
+ const d = wt(t, c, n);
915
+ if (d) return St(d, n, [Qe(a)]), !0;
916
+ }
917
+ }
918
+ return !1;
919
+ }, V)), o && r.listenersToRemove.add(t.registerCommand(fn, (a) => {
920
+ const c = B();
921
+ if (!z(c) || !c.isCollapsed() || !Z(c, n)) return !1;
922
+ const f = we(c.anchor.getNode());
923
+ return !(f === null || !n.is(pe(f))) && (te(a), function(d, g) {
924
+ const _ = g === "next" ? "getNextSibling" : "getPreviousSibling", S = g === "next" ? "getFirstChild" : "getLastChild", N = d[_]();
925
+ if (D(N)) return N.selectEnd();
926
+ const y = T(d, $);
927
+ y === null && b(247);
928
+ for (let v = y[_](); $(v); v = v[_]()) {
929
+ const M = v[S]();
930
+ if (D(M)) return M.selectEnd();
931
+ }
932
+ const R = T(y, k);
933
+ R === null && b(248), g === "next" ? R.selectNext() : R.selectPrevious();
934
+ }(f, a.shiftKey ? "previous" : "next"), !0);
935
+ }, V)), r.listenersToRemove.add(t.registerCommand(gn, (a) => n.isSelected(), De)), r.listenersToRemove.add(t.registerCommand(Tt, (a) => {
936
+ const { nodes: c, selection: f } = a, d = f.getStartEndPoints(), g = K(f), _ = z(f) && T(f.anchor.getNode(), (x) => w(x)) !== null && T(f.focus.getNode(), (x) => w(x)) !== null || g;
937
+ if (c.length !== 1 || !k(c[0]) || !_ || d === null) return !1;
938
+ const [S, N] = d, [y, R, v] = G(S), M = T(N.getNode(), (x) => w(x));
939
+ if (!(w(y) && w(M) && $(R) && k(v))) return !1;
940
+ const O = c[0], [A, F, E] = J(v, y, M), [L] = oe(O, null, null), H = A.length, le = H > 0 ? A[0].length : 0;
941
+ let X = F.startRow, q = F.startColumn, P = L.length, ue = P > 0 ? L[0].length : 0;
942
+ if (g) {
943
+ const x = Ee(A, F, E), U = x.maxRow - x.minRow + 1, j = x.maxColumn - x.minColumn + 1;
944
+ X = x.minRow, q = x.minColumn, P = Math.min(P, U), ue = Math.min(ue, j);
945
+ }
946
+ let Le = !1;
947
+ const zt = Math.min(H, X + P) - 1, Wt = Math.min(le, q + ue) - 1, lt = /* @__PURE__ */ new Set();
948
+ for (let x = X; x <= zt; x++) for (let U = q; U <= Wt; U++) {
949
+ const j = A[x][U];
950
+ lt.has(j.cell.getKey()) || j.cell.__rowSpan === 1 && j.cell.__colSpan === 1 || (Wn(j.cell), lt.add(j.cell.getKey()), Le = !0);
951
+ }
952
+ let [_e] = oe(v.getWritable(), null, null);
953
+ const Ht = P - H + X;
954
+ for (let x = 0; x < Ht; x++)
955
+ kn(_e[H - 1][0].cell);
956
+ const Pt = ue - le + q;
957
+ for (let x = 0; x < Pt; x++)
958
+ $n(_e[0][le - 1].cell, !0, !1);
959
+ [_e] = oe(v.getWritable(), null, null);
960
+ for (let x = X; x < X + P; x++) for (let U = q; U < q + ue; U++) {
961
+ const j = x - X, st = U - q, ze = L[j][st];
962
+ if (ze.startRow !== j || ze.startColumn !== st) continue;
963
+ const Se = ze.cell;
964
+ if (Se.__rowSpan !== 1 || Se.__colSpan !== 1) {
965
+ const ee = [], Dt = Math.min(x + Se.__rowSpan, X + P) - 1, It = Math.min(U + Se.__colSpan, q + ue) - 1;
966
+ for (let He = x; He <= Dt; He++) for (let Pe = U; Pe <= It; Pe++) {
967
+ const Ut = _e[He][Pe];
968
+ ee.push(Ut.cell);
969
+ }
970
+ Ln(ee), Le = !0;
971
+ }
972
+ const { cell: We } = _e[x][U], Bt = We.getChildren();
973
+ Se.getChildren().forEach((ee) => {
974
+ Ce(ee) && I().append(ee), We.append(ee);
975
+ }), Bt.forEach((ee) => ee.remove());
976
+ }
977
+ if (g && Le) {
978
+ const [x] = oe(v.getWritable(), null, null);
979
+ x[F.startRow][F.startColumn].cell.selectEnd();
980
+ }
981
+ return !0;
982
+ }, V)), r.listenersToRemove.add(t.registerCommand(fe, () => {
983
+ const a = B(), c = Ue(), f = r.getAndClearNextFocus();
984
+ if (f !== null) {
985
+ const { focusCell: d } = f;
986
+ if (K(a) && a.tableKey === r.tableNodeKey) return (d.x !== r.focusX || d.y !== r.focusY) && (r.$setFocusCellForSelection(d), !0);
987
+ if (d !== r.anchorCell && Z(a, n)) return r.$setFocusCellForSelection(d), !0;
988
+ }
989
+ if (r.getAndClearShouldCheckSelection() && z(c) && z(a) && a.isCollapsed()) {
990
+ const d = a.anchor.getNode(), g = n.getFirstChild(), _ = we(d);
991
+ if (_ !== null && $(g)) {
992
+ const S = g.getFirstChild();
993
+ if (w(S) && n.is(T(_, (N) => N.is(n) || N.is(S)))) return S.selectStart(), !0;
994
+ }
995
+ }
996
+ if (z(a)) {
997
+ const { anchor: d, focus: g } = a, _ = d.getNode(), S = g.getNode(), N = we(_), y = we(S), R = !(!N || !n.is(pe(N))), v = !(!y || !n.is(pe(y))), M = R !== v, O = R && v, A = a.isBackward();
998
+ if (M) {
999
+ const F = a.clone();
1000
+ if (v) {
1001
+ const [E] = J(n, y, y), L = E[0][0].cell, H = E[E.length - 1].at(-1).cell;
1002
+ F.focus.set(A ? L.getKey() : H.getKey(), A ? L.getChildrenSize() : H.getChildrenSize(), "element");
1003
+ } else if (R) {
1004
+ const [E] = J(n, N, N), L = E[0][0].cell, H = E[E.length - 1].at(-1).cell;
1005
+ F.anchor.set(A ? H.getKey() : L.getKey(), A ? H.getChildrenSize() : 0, "element");
1006
+ }
1007
+ ne(F), _t(t, r);
1008
+ } else if (O && (N.is(y) || (r.$setAnchorCellForSelection(se(r, N)), r.$setFocusCellForSelection(se(r, y), !0)), r.pointerType === "touch" && a.isCollapsed() && z(c) && c.isCollapsed())) {
1009
+ const F = we(c.anchor.getNode());
1010
+ F && !F.is(y) && (r.$setAnchorCellForSelection(se(r, F)), r.$setFocusCellForSelection(se(r, y), !0), r.pointerType = null);
1011
+ }
1012
+ } else if (a && K(a) && a.is(c) && a.tableKey === n.getKey()) {
1013
+ const d = $e(s);
1014
+ if (d && d.anchorNode && d.focusNode) {
1015
+ const g = re(d.focusNode), _ = g && !n.isParentOf(g), S = re(d.anchorNode), N = S && n.isParentOf(S);
1016
+ if (_ && N && d.rangeCount > 0) {
1017
+ const y = mn(d, t);
1018
+ y && (y.anchor.set(n.getKey(), a.isBackward() ? n.getChildrenSize() : 0, "element"), d.removeAllRanges(), ne(y));
1019
+ }
1020
+ }
1021
+ }
1022
+ return a && !a.is(c) && (K(a) || K(c)) && r.tableSelection && !r.tableSelection.is(c) ? (K(a) && a.tableKey === r.tableNodeKey ? r.$updateTableTableSelection(a) : !K(a) && K(c) && c.tableKey === r.tableNodeKey && r.$updateTableTableSelection(null), !1) : (r.hasHijackedSelectionStyles && !n.isSelected() ? function(d, g) {
1023
+ g.$enableHighlightStyle(), ot(g.table, (_) => {
1024
+ const S = _.elem;
1025
+ _.highlighted = !1, $t(d, _), S.getAttribute("style") || S.removeAttribute("style");
1026
+ });
1027
+ }(t, r) : !r.hasHijackedSelectionStyles && n.isSelected() && _t(t, r), !1);
1028
+ }, V)), r.listenersToRemove.add(t.registerCommand(Ft, () => {
1029
+ const a = B();
1030
+ if (!z(a) || !a.isCollapsed() || !Z(a, n)) return !1;
1031
+ const c = wt(t, a, n);
1032
+ return !!c && (St(c, n), !0);
1033
+ }, V)), r;
1034
+ }
1035
+ function pt(n) {
1036
+ return n[Xe] || null;
1037
+ }
1038
+ function ke(n) {
1039
+ let e = n;
1040
+ for (; e != null; ) {
1041
+ const t = e.nodeName;
1042
+ if (t === "TD" || t === "TH") {
1043
+ const o = e._cell;
1044
+ return o === void 0 ? null : o;
1045
+ }
1046
+ e = e.parentNode;
1047
+ }
1048
+ return null;
1049
+ }
1050
+ function Ct(n, e) {
1051
+ if (!n.contains(e)) return null;
1052
+ let t = null;
1053
+ for (let o = e; o != null; o = o.parentNode) {
1054
+ if (o === n) return t;
1055
+ const l = o.nodeName;
1056
+ l !== "TD" && l !== "TH" || (t = o._cell || null);
1057
+ }
1058
+ return null;
1059
+ }
1060
+ function me(n, e) {
1061
+ const t = [], o = { columns: 0, domRows: t, rows: 0 };
1062
+ let l = ie(n, e).querySelector("tr"), s = 0, r = 0;
1063
+ for (t.length = 0; l != null; ) {
1064
+ const i = l.nodeName;
1065
+ if (i === "TD" || i === "TH") {
1066
+ const h = { elem: l, hasBackgroundColor: l.style.backgroundColor !== "", highlighted: !1, x: s, y: r };
1067
+ l._cell = h;
1068
+ let p = t[r];
1069
+ p === void 0 && (p = t[r] = []), p[s] = h;
1070
+ } else {
1071
+ const h = l.firstChild;
1072
+ if (h != null) {
1073
+ l = h;
1074
+ continue;
1075
+ }
1076
+ }
1077
+ const u = l.nextSibling;
1078
+ if (u != null) {
1079
+ s++, l = u;
1080
+ continue;
1081
+ }
1082
+ const m = l.parentNode;
1083
+ if (m != null) {
1084
+ const h = m.nextSibling;
1085
+ if (h == null) break;
1086
+ r++, s = 0, l = h;
1087
+ }
1088
+ }
1089
+ return o.columns = s + 1, o.rows = r + 1, o;
1090
+ }
1091
+ function Fe(n, e, t) {
1092
+ const o = new Set(t ? t.getNodes() : []);
1093
+ ot(e, (l, s) => {
1094
+ const r = l.elem;
1095
+ o.has(s) ? (l.highlighted = !0, kt(n, l)) : (l.highlighted = !1, $t(n, l), r.getAttribute("style") || r.removeAttribute("style"));
1096
+ });
1097
+ }
1098
+ function ot(n, e) {
1099
+ const { domRows: t } = n;
1100
+ for (let o = 0; o < t.length; o++) {
1101
+ const l = t[o];
1102
+ if (l) for (let s = 0; s < l.length; s++) {
1103
+ const r = l[s];
1104
+ if (!r) continue;
1105
+ const i = re(r.elem);
1106
+ i !== null && e(r, i, { x: s, y: o });
1107
+ }
1108
+ }
1109
+ }
1110
+ function _t(n, e) {
1111
+ e.$disableHighlightStyle(), ot(e.table, (t) => {
1112
+ t.highlighted = !0, kt(n, t);
1113
+ });
1114
+ }
1115
+ const Xn = (n, e, t, o, l) => {
1116
+ const s = l === "forward";
1117
+ switch (l) {
1118
+ case "backward":
1119
+ case "forward":
1120
+ return t !== (s ? n.table.columns - 1 : 0) ? Oe(e.getCellNodeFromCordsOrThrow(t + (s ? 1 : -1), o, n.table), s) : o !== (s ? n.table.rows - 1 : 0) ? Oe(e.getCellNodeFromCordsOrThrow(s ? 0 : n.table.columns - 1, o + (s ? 1 : -1), n.table), s) : s ? e.selectNext() : e.selectPrevious(), !0;
1121
+ case "up":
1122
+ return o !== 0 ? Oe(e.getCellNodeFromCordsOrThrow(t, o - 1, n.table), !1) : e.selectPrevious(), !0;
1123
+ case "down":
1124
+ return o !== n.table.rows - 1 ? Oe(e.getCellNodeFromCordsOrThrow(t, o + 1, n.table), !0) : e.selectNext(), !0;
1125
+ default:
1126
+ return !1;
1127
+ }
1128
+ };
1129
+ function Ie(n, e) {
1130
+ let t, o;
1131
+ if (e.startColumn === n.minColumn) t = "minColumn";
1132
+ else {
1133
+ if (e.startColumn + e.cell.__colSpan - 1 !== n.maxColumn) return null;
1134
+ t = "maxColumn";
1135
+ }
1136
+ if (e.startRow === n.minRow) o = "minRow";
1137
+ else {
1138
+ if (e.startRow + e.cell.__rowSpan - 1 !== n.maxRow) return null;
1139
+ o = "maxRow";
1140
+ }
1141
+ return [t, o];
1142
+ }
1143
+ function ve([n, e]) {
1144
+ return [n === "minColumn" ? "maxColumn" : "minColumn", e === "minRow" ? "maxRow" : "minRow"];
1145
+ }
1146
+ function he(n, e, [t, o]) {
1147
+ const l = e[o], s = n[l];
1148
+ s === void 0 && b(250, o, String(l));
1149
+ const r = e[t], i = s[r];
1150
+ return i === void 0 && b(250, t, String(r)), i;
1151
+ }
1152
+ function qn(n, e, t, o, l) {
1153
+ const s = Ee(e, t, o), r = function(R, v) {
1154
+ const { minColumn: M, maxColumn: O, minRow: A, maxRow: F } = v;
1155
+ let E = 1, L = 1, H = 1, le = 1;
1156
+ const X = R[A], q = R[F];
1157
+ for (let P = M; P <= O; P++) E = Math.max(E, X[P].cell.__rowSpan), le = Math.max(le, q[P].cell.__rowSpan);
1158
+ for (let P = A; P <= F; P++) L = Math.max(L, R[P][M].cell.__colSpan), H = Math.max(H, R[P][O].cell.__colSpan);
1159
+ return { bottomSpan: le, leftSpan: L, rightSpan: H, topSpan: E };
1160
+ }(e, s), { topSpan: i, leftSpan: u, bottomSpan: m, rightSpan: h } = r, p = function(R, v) {
1161
+ const M = Ie(R, v);
1162
+ return M === null && b(249, v.cell.getKey()), M;
1163
+ }(s, t), [C, a] = ve(p);
1164
+ let c = s[C], f = s[a];
1165
+ l === "forward" ? c += C === "maxColumn" ? 1 : u : l === "backward" ? c -= C === "minColumn" ? 1 : h : l === "down" ? f += a === "maxRow" ? 1 : i : l === "up" && (f -= a === "minRow" ? 1 : m);
1166
+ const d = e[f];
1167
+ if (d === void 0) return !1;
1168
+ const g = d[c];
1169
+ if (g === void 0) return !1;
1170
+ const [_, S] = function(R, v, M) {
1171
+ const O = Ee(R, v, M), A = Ie(O, v);
1172
+ if (A) return [he(R, O, A), he(R, O, ve(A))];
1173
+ const F = Ie(O, M);
1174
+ if (F) return [he(R, O, ve(F)), he(R, O, F)];
1175
+ const E = ["minColumn", "minRow"];
1176
+ return [he(R, O, E), he(R, O, ve(E))];
1177
+ }(e, t, g), N = se(n, _.cell), y = se(n, S.cell);
1178
+ return n.$setAnchorCellForSelection(N), n.$setFocusCellForSelection(y, !0), !0;
1179
+ }
1180
+ function Z(n, e) {
1181
+ if (z(n) || K(n)) {
1182
+ const t = e.isParentOf(n.anchor.getNode()), o = e.isParentOf(n.focus.getNode());
1183
+ return t && o;
1184
+ }
1185
+ return !1;
1186
+ }
1187
+ function Oe(n, e) {
1188
+ e ? n.selectStart() : n.selectEnd();
1189
+ }
1190
+ function kt(n, e) {
1191
+ const t = e.elem, o = n._config.theme;
1192
+ w(re(t)) || b(131), Q(t, o.tableCellSelected);
1193
+ }
1194
+ function $t(n, e) {
1195
+ const t = e.elem;
1196
+ w(re(t)) || b(131);
1197
+ const o = n._config.theme;
1198
+ ge(t, o.tableCellSelected);
1199
+ }
1200
+ function we(n) {
1201
+ const e = T(n, w);
1202
+ return w(e) ? e : null;
1203
+ }
1204
+ function pe(n) {
1205
+ const e = T(n, k);
1206
+ return k(e) ? e : null;
1207
+ }
1208
+ function jn(n, e, t, o, l, s, r) {
1209
+ const i = Sn(t.focus, l ? "previous" : "next");
1210
+ if (wn(i)) return !1;
1211
+ let u = i;
1212
+ for (const d of at(i).iterNodeCarets("shadowRoot")) {
1213
+ if (!bn(d) || !D(d.origin)) return !1;
1214
+ u = d;
1215
+ }
1216
+ const m = u.getParentAtCaret();
1217
+ if (!w(m)) return !1;
1218
+ const h = m, p = function(d) {
1219
+ for (const g of at(d).iterNodeCarets("root")) {
1220
+ const { origin: _ } = g;
1221
+ if (w(_)) {
1222
+ if (ct(g)) return yn(_, d.direction);
1223
+ } else if (!$(_)) break;
1224
+ }
1225
+ return null;
1226
+ }(ut(h, u.direction)), C = T(h, k);
1227
+ if (!C || !C.is(s)) return !1;
1228
+ const a = n.getElementByKey(h.getKey()), c = ke(a);
1229
+ if (!a || !c) return !1;
1230
+ const f = Vn(n, C);
1231
+ if (r.table = f, p) if (o === "extend") {
1232
+ const d = ke(n.getElementByKey(p.origin.getKey()));
1233
+ if (!d) return !1;
1234
+ r.$setAnchorCellForSelection(c), r.$setFocusCellForSelection(d, !0);
1235
+ } else {
1236
+ const d = ht(p);
1237
+ Re(t.anchor, d), Re(t.focus, d);
1238
+ }
1239
+ else if (o === "extend") r.$setAnchorCellForSelection(c), r.$setFocusCellForSelection(c, !0);
1240
+ else {
1241
+ const d = function(g) {
1242
+ const _ = Nn(g);
1243
+ return ct(_) ? ht(_) : g;
1244
+ }(ut(C, i.direction));
1245
+ Re(t.anchor, d), Re(t.focus, d);
1246
+ }
1247
+ return te(e), !0;
1248
+ }
1249
+ function Mt(n, e, t, o, l) {
1250
+ if ((t === "up" || t === "down") && function(r) {
1251
+ const i = r.getRootElement();
1252
+ return i ? i.hasAttribute("aria-controls") && i.getAttribute("aria-controls") === "typeahead-menu" : !1;
1253
+ }(n)) return !1;
1254
+ const s = B();
1255
+ if (!Z(s, o)) {
1256
+ if (z(s)) {
1257
+ if (t === "backward") {
1258
+ if (s.focus.offset > 0) return !1;
1259
+ const r = function(u) {
1260
+ for (let m = u, h = u; h !== null; m = h, h = h.getParent()) if (D(h)) {
1261
+ if (h !== m && h.getFirstChild() !== m) return null;
1262
+ if (!h.isInline()) return h;
1263
+ }
1264
+ return null;
1265
+ }(s.focus.getNode());
1266
+ if (!r) return !1;
1267
+ const i = r.getPreviousSibling();
1268
+ return !!k(i) && (te(e), e.shiftKey ? s.focus.set(i.getParentOrThrow().getKey(), i.getIndexWithinParent(), "element") : i.selectEnd(), !0);
1269
+ }
1270
+ if (e.shiftKey && (t === "up" || t === "down")) {
1271
+ const r = s.focus.getNode();
1272
+ if (!s.isCollapsed() && (t === "up" && !s.isBackward() || t === "down" && s.isBackward())) {
1273
+ let i = T(r, (C) => k(C));
1274
+ if (w(i) && (i = T(i, k)), i !== o || !i) return !1;
1275
+ const u = t === "down" ? i.getNextSibling() : i.getPreviousSibling();
1276
+ if (!u) return !1;
1277
+ let m = 0;
1278
+ t === "up" && D(u) && (m = u.getChildrenSize());
1279
+ let h = u;
1280
+ t === "up" && D(u) && (h = u.getLastChild() || u, m = Ce(h) ? h.getTextContentSize() : 0);
1281
+ const p = s.clone();
1282
+ return p.focus.set(h.getKey(), m, Ce(h) ? "text" : "element"), ne(p), te(e), !0;
1283
+ }
1284
+ if (_n(r)) {
1285
+ const i = t === "up" ? s.getNodes()[s.getNodes().length - 1] : s.getNodes()[0];
1286
+ if (i && Ne(o, i) !== null) {
1287
+ const u = o.getFirstDescendant(), m = o.getLastDescendant();
1288
+ if (!u || !m) return !1;
1289
+ const [h] = G(u), [p] = G(m), C = o.getCordsFromCellNode(h, l.table), a = o.getCordsFromCellNode(p, l.table), c = o.getDOMCellFromCordsOrThrow(C.x, C.y, l.table), f = o.getDOMCellFromCordsOrThrow(a.x, a.y, l.table);
1290
+ return l.$setAnchorCellForSelection(c), l.$setFocusCellForSelection(f, !0), !0;
1291
+ }
1292
+ return !1;
1293
+ }
1294
+ {
1295
+ let i = T(r, (m) => D(m) && !m.isInline());
1296
+ if (w(i) && (i = T(i, k)), !i) return !1;
1297
+ const u = t === "down" ? i.getNextSibling() : i.getPreviousSibling();
1298
+ if (k(u) && l.tableNodeKey === u.getKey()) {
1299
+ const m = u.getFirstDescendant(), h = u.getLastDescendant();
1300
+ if (!m || !h) return !1;
1301
+ const [p] = G(m), [C] = G(h), a = s.clone();
1302
+ return a.focus.set((t === "up" ? p : C).getKey(), t === "up" ? 0 : C.getChildrenSize(), "element"), te(e), ne(a), !0;
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ return t === "down" && Lt(n) && l.setShouldCheckSelection(), !1;
1308
+ }
1309
+ if (z(s)) {
1310
+ if (t === "backward" || t === "forward")
1311
+ return jn(n, e, s, e.shiftKey ? "extend" : "move", t === "backward", o, l);
1312
+ if (s.isCollapsed()) {
1313
+ const { anchor: r, focus: i } = s, u = T(r.getNode(), w), m = T(i.getNode(), w);
1314
+ if (!w(u) || !u.is(m)) return !1;
1315
+ const h = pe(u);
1316
+ if (h !== o && h != null) {
1317
+ const g = ie(h, n.getElementByKey(h.getKey()));
1318
+ if (g != null) return l.table = me(h, g), Mt(n, e, t, h, l);
1319
+ }
1320
+ const p = n.getElementByKey(u.__key), C = n.getElementByKey(r.key);
1321
+ if (C == null || p == null) return !1;
1322
+ let a;
1323
+ if (r.type === "element") a = C.getBoundingClientRect();
1324
+ else {
1325
+ const g = $e(nt(n));
1326
+ if (g === null || g.rangeCount === 0) return !1;
1327
+ a = g.getRangeAt(0).getBoundingClientRect();
1328
+ }
1329
+ const c = t === "up" ? u.getFirstChild() : u.getLastChild();
1330
+ if (c == null) return !1;
1331
+ const f = n.getElementByKey(c.__key);
1332
+ if (f == null) return !1;
1333
+ const d = f.getBoundingClientRect();
1334
+ if (t === "up" ? d.top > a.top - a.height : a.bottom + a.height > d.bottom) {
1335
+ te(e);
1336
+ const g = o.getCordsFromCellNode(u, l.table);
1337
+ if (!e.shiftKey) return Xn(l, o, g.x, g.y, t);
1338
+ {
1339
+ const _ = o.getDOMCellFromCordsOrThrow(g.x, g.y, l.table);
1340
+ l.$setAnchorCellForSelection(_), l.$setFocusCellForSelection(_, !0);
1341
+ }
1342
+ return !0;
1343
+ }
1344
+ }
1345
+ } else if (K(s)) {
1346
+ const { anchor: r, focus: i } = s, u = T(r.getNode(), w), m = T(i.getNode(), w), [h] = s.getNodes();
1347
+ k(h) || b(251);
1348
+ const p = ie(h, n.getElementByKey(h.getKey()));
1349
+ if (!w(u) || !w(m) || !k(h) || p == null) return !1;
1350
+ l.$updateTableTableSelection(s);
1351
+ const C = me(h, p), a = o.getCordsFromCellNode(u, C), c = o.getDOMCellFromCordsOrThrow(a.x, a.y, C);
1352
+ if (l.$setAnchorCellForSelection(c), te(e), e.shiftKey) {
1353
+ const [f, d, g] = J(o, u, m);
1354
+ return qn(l, f, d, g, t);
1355
+ }
1356
+ return m.selectEnd(), !0;
1357
+ }
1358
+ return !1;
1359
+ }
1360
+ function te(n) {
1361
+ n.preventDefault(), n.stopImmediatePropagation(), n.stopPropagation();
1362
+ }
1363
+ function St(n, e, t) {
1364
+ const o = I();
1365
+ n === "first" ? e.insertBefore(o) : e.insertAfter(o), o.append(...t || []), o.selectEnd();
1366
+ }
1367
+ function wt(n, e, t) {
1368
+ const o = t.getParent();
1369
+ if (!o) return;
1370
+ const l = $e(nt(n));
1371
+ if (!l) return;
1372
+ const s = l.anchorNode, r = n.getElementByKey(o.getKey()), i = ie(t, n.getElementByKey(t.getKey()));
1373
+ if (!s || !r || !i || !r.contains(s) || i.contains(s)) return;
1374
+ const u = T(e.anchor.getNode(), (_) => w(_));
1375
+ if (!u) return;
1376
+ const m = T(u, (_) => k(_));
1377
+ if (!k(m) || !m.is(t)) return;
1378
+ const [h, p] = J(t, u, u), C = h[0][0], a = h[h.length - 1][h[0].length - 1], { startRow: c, startColumn: f } = p, d = c === C.startRow && f === C.startColumn, g = c === a.startRow && f === a.startColumn;
1379
+ return d ? "first" : g ? "last" : void 0;
1380
+ }
1381
+ function se(n, e) {
1382
+ const { tableNode: t } = n.$lookup(), o = t.getCordsFromCellNode(e, n.table);
1383
+ return t.getDOMCellFromCordsOrThrow(o.x, o.y, n.table);
1384
+ }
1385
+ function qe(n, e, t) {
1386
+ return Ne(n, re(e, t));
1387
+ }
1388
+ function bt(n, e, t) {
1389
+ if (!e.theme.tableAlignment) return;
1390
+ const o = [], l = [];
1391
+ for (const s of ["center", "right"]) {
1392
+ const r = e.theme.tableAlignment[s];
1393
+ r && (s === t ? l : o).push(r);
1394
+ }
1395
+ ge(n, ...o), Q(n, ...l);
1396
+ }
1397
+ const je = /* @__PURE__ */ new WeakSet();
1398
+ function Lt(n = xt()) {
1399
+ return je.has(n);
1400
+ }
1401
+ function uo(n, e) {
1402
+ e ? je.add(n) : je.delete(n);
1403
+ }
1404
+ class ae extends Ve {
1405
+ static getType() {
1406
+ return "table";
1407
+ }
1408
+ getColWidths() {
1409
+ return this.getLatest().__colWidths;
1410
+ }
1411
+ setColWidths(e) {
1412
+ const t = this.getWritable();
1413
+ return t.__colWidths = e, t;
1414
+ }
1415
+ static clone(e) {
1416
+ return new ae(e.__key);
1417
+ }
1418
+ afterCloneFrom(e) {
1419
+ super.afterCloneFrom(e), this.__colWidths = e.__colWidths, this.__rowStriping = e.__rowStriping, this.__frozenColumnCount = e.__frozenColumnCount, this.__frozenRowCount = e.__frozenRowCount;
1420
+ }
1421
+ static importDOM() {
1422
+ return { table: (e) => ({ conversion: Zn, priority: 1 }) };
1423
+ }
1424
+ static importJSON(e) {
1425
+ return rt().updateFromJSON(e);
1426
+ }
1427
+ updateFromJSON(e) {
1428
+ return super.updateFromJSON(e).setRowStriping(e.rowStriping || !1).setFrozenColumns(e.frozenColumnCount || 0).setFrozenRows(e.frozenRowCount || 0).setColWidths(e.colWidths);
1429
+ }
1430
+ constructor(e) {
1431
+ super(e), this.__rowStriping = !1, this.__frozenColumnCount = 0, this.__frozenRowCount = 0;
1432
+ }
1433
+ exportJSON() {
1434
+ return { ...super.exportJSON(), colWidths: this.getColWidths(), frozenColumnCount: this.__frozenColumnCount ? this.__frozenColumnCount : void 0, frozenRowCount: this.__frozenRowCount ? this.__frozenRowCount : void 0, rowStriping: this.__rowStriping ? this.__rowStriping : void 0 };
1435
+ }
1436
+ extractWithChild(e, t, o) {
1437
+ return o === "html";
1438
+ }
1439
+ getDOMSlot(e) {
1440
+ const t = de(e) ? e : e.querySelector("table");
1441
+ return de(t) || b(229), super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"));
1442
+ }
1443
+ createDOM(e, t) {
1444
+ const o = document.createElement("table");
1445
+ this.__style && (o.style.cssText = this.__style);
1446
+ const l = document.createElement("colgroup");
1447
+ if (o.appendChild(l), Vt(l), Q(o, e.theme.table), this.updateTableElement(null, o, e), Lt(t)) {
1448
+ const s = document.createElement("div"), r = e.theme.tableScrollableWrapper;
1449
+ return r ? Q(s, r) : s.style.cssText = "overflow-x: auto;", s.appendChild(o), this.updateTableWrapper(null, s, o, e), s;
1450
+ }
1451
+ return o;
1452
+ }
1453
+ updateTableWrapper(e, t, o, l) {
1454
+ this.__frozenColumnCount !== (e ? e.__frozenColumnCount : 0) && function(s, r, i, u) {
1455
+ u > 0 ? (Q(s, i.theme.tableFrozenColumn), r.setAttribute("data-lexical-frozen-column", "true")) : (ge(s, i.theme.tableFrozenColumn), r.removeAttribute("data-lexical-frozen-column"));
1456
+ }(t, o, l, this.__frozenColumnCount), this.__frozenRowCount !== (e ? e.__frozenRowCount : 0) && function(s, r, i, u) {
1457
+ u > 0 ? (Q(s, i.theme.tableFrozenRow), r.setAttribute("data-lexical-frozen-row", "true")) : (ge(s, i.theme.tableFrozenRow), r.removeAttribute("data-lexical-frozen-row"));
1458
+ }(t, o, l, this.__frozenRowCount);
1459
+ }
1460
+ updateTableElement(e, t, o) {
1461
+ this.__style !== (e ? e.__style : "") && (t.style.cssText = this.__style), this.__rowStriping !== (!!e && e.__rowStriping) && function(l, s, r) {
1462
+ r ? (Q(l, s.theme.tableRowStriping), l.setAttribute("data-lexical-row-striping", "true")) : (ge(l, s.theme.tableRowStriping), l.removeAttribute("data-lexical-row-striping"));
1463
+ }(t, o, this.__rowStriping), function(l, s, r, i) {
1464
+ const u = l.querySelector("colgroup");
1465
+ if (!u) return;
1466
+ const m = [];
1467
+ for (let h = 0; h < r; h++) {
1468
+ const p = document.createElement("col"), C = i && i[h];
1469
+ C && (p.style.width = `${C}px`), m.push(p);
1470
+ }
1471
+ u.replaceChildren(...m);
1472
+ }(t, 0, this.getColumnCount(), this.getColWidths()), bt(t, o, this.getFormatType());
1473
+ }
1474
+ updateDOM(e, t, o) {
1475
+ const l = this.getDOMSlot(t).element;
1476
+ var s;
1477
+ return ye(s = t) && s.nodeName === "DIV" && this.updateTableWrapper(e, t, l, o), this.updateTableElement(e, this.getDOMSlot(t).element, o), !1;
1478
+ }
1479
+ exportDOM(e) {
1480
+ const t = super.exportDOM(e), { element: o } = t;
1481
+ return { after: (l) => {
1482
+ if (t.after && (l = t.after(l)), !de(l) && ye(l) && (l = l.querySelector("table")), !de(l)) return null;
1483
+ bt(l, e._config, this.getFormatType());
1484
+ const [s] = oe(this, null, null), r = /* @__PURE__ */ new Map();
1485
+ for (const h of s) for (const p of h) {
1486
+ const C = p.cell.getKey();
1487
+ r.has(C) || r.set(C, { colSpan: p.cell.getColSpan(), startColumn: p.startColumn });
1488
+ }
1489
+ const i = /* @__PURE__ */ new Set();
1490
+ for (const h of l.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")) {
1491
+ const p = h.getAttribute("data-temporary-table-cell-lexical-key");
1492
+ if (p) {
1493
+ const C = r.get(p);
1494
+ if (h.removeAttribute("data-temporary-table-cell-lexical-key"), C) {
1495
+ r.delete(p);
1496
+ for (let a = 0; a < C.colSpan; a++) i.add(a + C.startColumn);
1497
+ }
1498
+ }
1499
+ }
1500
+ const u = l.querySelector(":scope > colgroup");
1501
+ if (u) {
1502
+ const h = Array.from(l.querySelectorAll(":scope > colgroup > col")).filter((p, C) => i.has(C));
1503
+ u.replaceChildren(...h);
1504
+ }
1505
+ const m = l.querySelectorAll(":scope > tr");
1506
+ if (m.length > 0) {
1507
+ const h = document.createElement("tbody");
1508
+ for (const p of m) h.appendChild(p);
1509
+ l.append(h);
1510
+ }
1511
+ return l;
1512
+ }, element: !de(o) && ye(o) ? o.querySelector("table") : o };
1513
+ }
1514
+ canBeEmpty() {
1515
+ return !1;
1516
+ }
1517
+ isShadowRoot() {
1518
+ return !0;
1519
+ }
1520
+ getCordsFromCellNode(e, t) {
1521
+ const { rows: o, domRows: l } = t;
1522
+ for (let s = 0; s < o; s++) {
1523
+ const r = l[s];
1524
+ if (r != null) for (let i = 0; i < r.length; i++) {
1525
+ const u = r[i];
1526
+ if (u == null) continue;
1527
+ const { elem: m } = u, h = qe(this, m);
1528
+ if (h !== null && e.is(h)) return { x: i, y: s };
1529
+ }
1530
+ }
1531
+ throw new Error("Cell not found in table.");
1532
+ }
1533
+ getDOMCellFromCords(e, t, o) {
1534
+ const { domRows: l } = o, s = l[t];
1535
+ if (s == null) return null;
1536
+ const r = s[e < s.length ? e : s.length - 1];
1537
+ return r ?? null;
1538
+ }
1539
+ getDOMCellFromCordsOrThrow(e, t, o) {
1540
+ const l = this.getDOMCellFromCords(e, t, o);
1541
+ if (!l) throw new Error("Cell not found at cords.");
1542
+ return l;
1543
+ }
1544
+ getCellNodeFromCords(e, t, o) {
1545
+ const l = this.getDOMCellFromCords(e, t, o);
1546
+ if (l == null) return null;
1547
+ const s = re(l.elem);
1548
+ return w(s) ? s : null;
1549
+ }
1550
+ getCellNodeFromCordsOrThrow(e, t, o) {
1551
+ const l = this.getCellNodeFromCords(e, t, o);
1552
+ if (!l) throw new Error("Node at cords not TableCellNode.");
1553
+ return l;
1554
+ }
1555
+ getRowStriping() {
1556
+ return !!this.getLatest().__rowStriping;
1557
+ }
1558
+ setRowStriping(e) {
1559
+ const t = this.getWritable();
1560
+ return t.__rowStriping = e, t;
1561
+ }
1562
+ setFrozenColumns(e) {
1563
+ const t = this.getWritable();
1564
+ return t.__frozenColumnCount = e, t;
1565
+ }
1566
+ getFrozenColumns() {
1567
+ return this.getLatest().__frozenColumnCount;
1568
+ }
1569
+ setFrozenRows(e) {
1570
+ const t = this.getWritable();
1571
+ return t.__frozenRowCount = e, t;
1572
+ }
1573
+ getFrozenRows() {
1574
+ return this.getLatest().__frozenRowCount;
1575
+ }
1576
+ canSelectBefore() {
1577
+ return !0;
1578
+ }
1579
+ canIndent() {
1580
+ return !1;
1581
+ }
1582
+ getColumnCount() {
1583
+ const e = this.getFirstChild();
1584
+ if (!e) return 0;
1585
+ let t = 0;
1586
+ return e.getChildren().forEach((o) => {
1587
+ w(o) && (t += o.getColSpan());
1588
+ }), t;
1589
+ }
1590
+ }
1591
+ function Vn(n, e) {
1592
+ const t = n.getElementByKey(e.getKey());
1593
+ return t === null && b(230), me(e, t);
1594
+ }
1595
+ function Zn(n) {
1596
+ const e = rt();
1597
+ n.hasAttribute("data-lexical-row-striping") && e.setRowStriping(!0);
1598
+ const t = n.querySelector(":scope > colgroup");
1599
+ if (t) {
1600
+ let o = [];
1601
+ for (const l of t.querySelectorAll(":scope > col")) {
1602
+ let s = l.style.width || "";
1603
+ if (!et.test(s) && (s = l.getAttribute("width") || "", !/^\d+$/.test(s))) {
1604
+ o = void 0;
1605
+ break;
1606
+ }
1607
+ o.push(parseFloat(s));
1608
+ }
1609
+ o && e.setColWidths(o);
1610
+ }
1611
+ return { after: (o) => yt(o, $), node: e };
1612
+ }
1613
+ function rt() {
1614
+ return Ze(new ae());
1615
+ }
1616
+ function k(n) {
1617
+ return n instanceof ae;
1618
+ }
1619
+ function Qn({ rows: n, columns: e, includeHeaders: t }) {
1620
+ const o = B() || Ue();
1621
+ if (!o || !z(o) || pe(o.anchor.getNode())) return !1;
1622
+ const l = En(Number(n), Number(e), t);
1623
+ Xt(l);
1624
+ const s = l.getFirstDescendant();
1625
+ return Ce(s) && s.select(), !0;
1626
+ }
1627
+ function Gn(n) {
1628
+ $(n.getParent()) ? n.isEmpty() && n.append(I()) : n.remove();
1629
+ }
1630
+ function eo(n) {
1631
+ k(n.getParent()) ? Nt(n, w) : n.remove();
1632
+ }
1633
+ function to(n) {
1634
+ Nt(n, $);
1635
+ const [e] = oe(n, null, null), t = e.reduce((l, s) => Math.max(l, s.length), 0), o = n.getChildren();
1636
+ for (let l = 0; l < e.length; ++l) {
1637
+ const s = o[l];
1638
+ if (!s) continue;
1639
+ $(s) || b(254, s.constructor.name, s.getType());
1640
+ const r = e[l].reduce((i, u) => u ? 1 + i : i, 0);
1641
+ if (r !== t) for (let i = r; i < t; ++i) {
1642
+ const u = Y();
1643
+ u.append(I()), s.append(u);
1644
+ }
1645
+ }
1646
+ }
1647
+ function no(n) {
1648
+ if (n.detail < 3 || !be(n.target)) return !1;
1649
+ const e = re(n.target);
1650
+ if (e === null) return !1;
1651
+ const t = T(e, (o) => D(o) && !o.isInline());
1652
+ return t === null ? !1 : !!w(t.getParent()) && (t.select(0), !0);
1653
+ }
1654
+ function ho(n) {
1655
+ return n.registerNodeTransform(ce, (e) => {
1656
+ if (e.getColSpan() > 1 || e.getRowSpan() > 1) {
1657
+ const [, , t] = G(e), [o] = J(t, e, e), l = o.length, s = o[0].length;
1658
+ let r = t.getFirstChild();
1659
+ $(r) || b(175);
1660
+ const i = [];
1661
+ for (let u = 0; u < l; u++) {
1662
+ u !== 0 && (r = r.getNextSibling(), $(r) || b(175));
1663
+ let m = null;
1664
+ for (let h = 0; h < s; h++) {
1665
+ const p = o[u][h], C = p.cell;
1666
+ if (p.startRow === u && p.startColumn === h) m = C, i.push(C);
1667
+ else if (C.getColSpan() > 1 || C.getRowSpan() > 1) {
1668
+ w(C) || b(176);
1669
+ const a = Y(C.__headerState);
1670
+ m !== null ? m.insertAfter(a) : Yt(r, a);
1671
+ }
1672
+ }
1673
+ }
1674
+ for (const u of i) u.setColSpan(1), u.setRowSpan(1);
1675
+ }
1676
+ });
1677
+ }
1678
+ function fo(n, e = !0) {
1679
+ const t = /* @__PURE__ */ new Map(), o = (s, r, i) => {
1680
+ const u = ie(s, i), m = Yn(s, u, n, e);
1681
+ t.set(r, [m, u]);
1682
+ }, l = n.registerMutationListener(ae, (s) => {
1683
+ n.getEditorState().read(() => {
1684
+ for (const [r, i] of s) {
1685
+ const u = t.get(r);
1686
+ if (i === "created" || i === "updated") {
1687
+ const { tableNode: m, tableElement: h } = Et(r);
1688
+ u === void 0 ? o(m, r, h) : h !== u[1] && (u[0].removeListeners(), t.delete(r), o(m, r, h));
1689
+ } else i === "destroyed" && u !== void 0 && (u[0].removeListeners(), t.delete(r));
1690
+ }
1691
+ }, { editor: n });
1692
+ }, { skipInitialization: !1 });
1693
+ return () => {
1694
+ l();
1695
+ for (const [, [s]] of t) s.removeListeners();
1696
+ };
1697
+ }
1698
+ function go(n) {
1699
+ return n.hasNodes([ae]) || b(255), Jt(n.registerCommand(On, Qn, Be), n.registerCommand(Tt, ({ nodes: e, selection: t }) => z(t) ? pe(t.anchor.getNode()) !== null && e.some(k) : !1, Be), n.registerCommand(Zt, no, Be), n.registerNodeTransform(ae, to), n.registerNodeTransform(Te, eo), n.registerNodeTransform(ce, Gn));
1700
+ }
1701
+ export {
1702
+ ao as B,
1703
+ vt as H,
1704
+ xe as K,
1705
+ so as L,
1706
+ Te as O,
1707
+ io as P,
1708
+ w as R,
1709
+ ho as S,
1710
+ En as W,
1711
+ co as Z,
1712
+ ae as a,
1713
+ go as b,
1714
+ uo as c,
1715
+ fo as w,
1716
+ Y as x,
1717
+ ce as y,
1718
+ Ot as z
1719
+ };
1720
+ //# sourceMappingURL=LexicalTable.prod-C6duSS2P.js.map