@blocknote/xl-multi-column 0.19.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 (78) hide show
  1. package/LICENSE +661 -0
  2. package/dist/blocknote-xl-multi-column.js +3038 -0
  3. package/dist/blocknote-xl-multi-column.js.map +1 -0
  4. package/dist/blocknote-xl-multi-column.umd.cjs +69 -0
  5. package/dist/blocknote-xl-multi-column.umd.cjs.map +1 -0
  6. package/dist/webpack-stats.json +1 -0
  7. package/package.json +80 -0
  8. package/src/blocks/Columns/index.ts +15 -0
  9. package/src/blocks/schema.ts +43 -0
  10. package/src/extensions/ColumnResize/ColumnResizeExtension.ts +357 -0
  11. package/src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts +480 -0
  12. package/src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.tsx +105 -0
  13. package/src/i18n/dictionary.ts +27 -0
  14. package/src/i18n/locales/ar.ts +18 -0
  15. package/src/i18n/locales/de.ts +18 -0
  16. package/src/i18n/locales/en.ts +16 -0
  17. package/src/i18n/locales/es.ts +18 -0
  18. package/src/i18n/locales/fr.ts +18 -0
  19. package/src/i18n/locales/hr.ts +18 -0
  20. package/src/i18n/locales/index.ts +15 -0
  21. package/src/i18n/locales/is.ts +18 -0
  22. package/src/i18n/locales/ja.ts +18 -0
  23. package/src/i18n/locales/ko.ts +18 -0
  24. package/src/i18n/locales/nl.ts +18 -0
  25. package/src/i18n/locales/pl.ts +18 -0
  26. package/src/i18n/locales/pt.ts +18 -0
  27. package/src/i18n/locales/ru.ts +18 -0
  28. package/src/i18n/locales/vi.ts +18 -0
  29. package/src/i18n/locales/zh.ts +18 -0
  30. package/src/index.ts +7 -0
  31. package/src/pm-nodes/Column.ts +87 -0
  32. package/src/pm-nodes/ColumnList.ts +44 -0
  33. package/src/test/commands/__snapshots__/insertBlocks.test.ts.snap +757 -0
  34. package/src/test/commands/__snapshots__/textCursorPosition.test.ts.snap +169 -0
  35. package/src/test/commands/__snapshots__/updateBlock.test.ts.snap +964 -0
  36. package/src/test/commands/insertBlocks.test.ts +206 -0
  37. package/src/test/commands/textCursorPosition.test.ts +19 -0
  38. package/src/test/commands/updateBlock.test.ts +212 -0
  39. package/src/test/conversions/__snapshots__/multi-column/undefined/external.html +1 -0
  40. package/src/test/conversions/__snapshots__/multi-column/undefined/internal.html +1 -0
  41. package/src/test/conversions/__snapshots__/nodeConversion.test.ts.snap +118 -0
  42. package/src/test/conversions/htmlConversion.test.ts +100 -0
  43. package/src/test/conversions/nodeConversion.test.ts +84 -0
  44. package/src/test/conversions/testCases.ts +54 -0
  45. package/src/test/setupTestEnv.ts +99 -0
  46. package/src/vite-env.d.ts +1 -0
  47. package/types/src/blocks/Columns/index.d.ts +32 -0
  48. package/types/src/blocks/schema.d.ts +102 -0
  49. package/types/src/extensions/ColumnResize/ColumnResizeExtension.d.ts +3 -0
  50. package/types/src/extensions/DropCursor/MultiColumnDropCursorPlugin.d.ts +11 -0
  51. package/types/src/extensions/SuggestionMenu/getMultiColumnSlashMenuItems.d.ts +5 -0
  52. package/types/src/i18n/dictionary.d.ts +19 -0
  53. package/types/src/i18n/locales/ar.d.ts +2 -0
  54. package/types/src/i18n/locales/de.d.ts +2 -0
  55. package/types/src/i18n/locales/en.d.ts +16 -0
  56. package/types/src/i18n/locales/es.d.ts +2 -0
  57. package/types/src/i18n/locales/fr.d.ts +2 -0
  58. package/types/src/i18n/locales/hr.d.ts +2 -0
  59. package/types/src/i18n/locales/index.d.ts +15 -0
  60. package/types/src/i18n/locales/is.d.ts +2 -0
  61. package/types/src/i18n/locales/ja.d.ts +2 -0
  62. package/types/src/i18n/locales/ko.d.ts +2 -0
  63. package/types/src/i18n/locales/nl.d.ts +2 -0
  64. package/types/src/i18n/locales/pl.d.ts +2 -0
  65. package/types/src/i18n/locales/pt.d.ts +2 -0
  66. package/types/src/i18n/locales/ru.d.ts +2 -0
  67. package/types/src/i18n/locales/vi.d.ts +2 -0
  68. package/types/src/i18n/locales/zh.d.ts +2 -0
  69. package/types/src/index.d.ts +7 -0
  70. package/types/src/pm-nodes/Column.d.ts +6 -0
  71. package/types/src/pm-nodes/ColumnList.d.ts +6 -0
  72. package/types/src/test/commands/insertBlocks.test.d.ts +1 -0
  73. package/types/src/test/commands/textCursorPosition.test.d.ts +1 -0
  74. package/types/src/test/commands/updateBlock.test.d.ts +1 -0
  75. package/types/src/test/conversions/htmlConversion.test.d.ts +1 -0
  76. package/types/src/test/conversions/nodeConversion.test.d.ts +1 -0
  77. package/types/src/test/conversions/testCases.d.ts +3 -0
  78. package/types/src/test/setupTestEnv.d.ts +1041 -0
@@ -0,0 +1,3038 @@
1
+ var pn = Object.defineProperty;
2
+ var hn = (s, n, a) => n in s ? pn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a;
3
+ var oe = (s, n, a) => hn(s, typeof n != "symbol" ? n + "" : n, a);
4
+ import { getNodeById as wr, createStronglyTypedTiptapNode as Nr, createBlockSpecFromStronglyTypedTiptapNode as Mr, BlockNoteSchema as Lr, getBlockInfo as mn, nodeToBlock as Gt, UniqueID as vn, getNearestBlockContainerPos as yn, insertOrUpdateBlock as Cr } from "@blocknote/core";
5
+ import { Extension as gn } from "@tiptap/core";
6
+ import { PluginKey as bn, Plugin as Fr } from "prosemirror-state";
7
+ import { DecorationSet as Er, Decoration as Rr } from "prosemirror-view";
8
+ import { dropPoint as _n } from "prosemirror-transform";
9
+ const wn = {
10
+ slash_menu: {
11
+ two_columns: {
12
+ title: "عمودان",
13
+ subtext: "عمودان جنبًا إلى جنب",
14
+ aliases: ["أعمدة", "صف", "تقسيم"],
15
+ group: "الكتل الأساسية"
16
+ },
17
+ three_columns: {
18
+ title: "ثلاثة أعمدة",
19
+ subtext: "ثلاثة أعمدة جنبًا إلى جنب",
20
+ aliases: ["أعمدة", "صف", "تقسيم"],
21
+ group: "الكتل الأساسية"
22
+ }
23
+ }
24
+ }, Cn = {
25
+ slash_menu: {
26
+ two_columns: {
27
+ title: "Zwei Spalten",
28
+ subtext: "Zwei Spalten nebeneinander",
29
+ aliases: ["Spalten", "Reihe", "teilen"],
30
+ group: "Grundlegende blöcke"
31
+ },
32
+ three_columns: {
33
+ title: "Drei Spalten",
34
+ subtext: "Drei Spalten nebeneinander",
35
+ aliases: ["Spalten", "Reihe", "teilen"],
36
+ group: "Grundlegende blöcke"
37
+ }
38
+ }
39
+ }, En = {
40
+ slash_menu: {
41
+ two_columns: {
42
+ title: "Two Columns",
43
+ subtext: "Two columns side by side",
44
+ aliases: ["columns", "row", "split"],
45
+ group: "Basic blocks"
46
+ },
47
+ three_columns: {
48
+ title: "Three Columns",
49
+ subtext: "Three columns side by side",
50
+ aliases: ["columns", "row", "split"],
51
+ group: "Basic blocks"
52
+ }
53
+ }
54
+ }, Rn = {
55
+ slash_menu: {
56
+ two_columns: {
57
+ title: "Dos Columnas",
58
+ subtext: "Dos columnas lado a lado",
59
+ aliases: ["columnas", "fila", "dividir"],
60
+ group: "Bloques básicos"
61
+ },
62
+ three_columns: {
63
+ title: "Tres Columnas",
64
+ subtext: "Tres columnas lado a lado",
65
+ aliases: ["columnas", "fila", "dividir"],
66
+ group: "Bloques básicos"
67
+ }
68
+ }
69
+ }, Sn = {
70
+ slash_menu: {
71
+ two_columns: {
72
+ title: "Deux Colonnes",
73
+ subtext: "Deux colonnes côte à côte",
74
+ aliases: ["colonnes", "rangée", "partager"],
75
+ group: "Blocs de base"
76
+ },
77
+ three_columns: {
78
+ title: "Trois Colonnes",
79
+ subtext: "Trois colonnes côte à côte",
80
+ aliases: ["colonnes", "rangée", "partager"],
81
+ group: "Blocs de base"
82
+ }
83
+ }
84
+ }, kn = {
85
+ slash_menu: {
86
+ two_columns: {
87
+ title: "Dva Stupca",
88
+ subtext: "Dva stupca jedan pored drugog",
89
+ aliases: ["stupci", "redak", "podijeli"],
90
+ group: "Osnovni blokovi"
91
+ },
92
+ three_columns: {
93
+ title: "Tri Stupca",
94
+ subtext: "Tri stupca jedan pored drugog",
95
+ aliases: ["stupci", "redak", "podijeli"],
96
+ group: "Osnovni blokovi"
97
+ }
98
+ }
99
+ }, On = {
100
+ slash_menu: {
101
+ two_columns: {
102
+ title: "Tvær Dálkar",
103
+ subtext: "Tvær dálkar hlið við hlið",
104
+ aliases: ["dálkar", "röð", "skipta"],
105
+ group: "Grunnblokkar"
106
+ },
107
+ three_columns: {
108
+ title: "Þrír Dálkar",
109
+ subtext: "Þrír dálkar hlið við hlið",
110
+ aliases: ["dálkar", "röð", "skipta"],
111
+ group: "Grunnblokkar"
112
+ }
113
+ }
114
+ }, Tn = {
115
+ slash_menu: {
116
+ two_columns: {
117
+ title: "二列",
118
+ subtext: "二列並んで",
119
+ aliases: ["列", "行", "分割"],
120
+ group: "基本ブロック"
121
+ },
122
+ three_columns: {
123
+ title: "三列",
124
+ subtext: "三列並んで",
125
+ aliases: ["列", "行", "分割"],
126
+ group: "基本ブロック"
127
+ }
128
+ }
129
+ }, Pn = {
130
+ slash_menu: {
131
+ two_columns: {
132
+ title: "두 열",
133
+ subtext: "두 열 나란히",
134
+ aliases: ["열", "행", "분할"],
135
+ group: "기본 블록"
136
+ },
137
+ three_columns: {
138
+ title: "세 열",
139
+ subtext: "세 열 나란히",
140
+ aliases: ["열", "행", "분할"],
141
+ group: "기본 블록"
142
+ }
143
+ }
144
+ }, jn = {
145
+ slash_menu: {
146
+ two_columns: {
147
+ title: "Twee Kolommen",
148
+ subtext: "Twee kolommen naast elkaar",
149
+ aliases: ["kolommen", "rij", "verdelen"],
150
+ group: "Basisblokken"
151
+ },
152
+ three_columns: {
153
+ title: "Drie Kolommen",
154
+ subtext: "Drie kolommen naast elkaar",
155
+ aliases: ["kolommen", "rij", "verdelen"],
156
+ group: "Basisblokken"
157
+ }
158
+ }
159
+ }, xn = {
160
+ slash_menu: {
161
+ two_columns: {
162
+ title: "Dwie Kolumny",
163
+ subtext: "Dwie kolumny obok siebie",
164
+ aliases: ["kolumny", "rząd", "podzielić"],
165
+ group: "Podstawowe bloki"
166
+ },
167
+ three_columns: {
168
+ title: "Trzy Kolumny",
169
+ subtext: "Trzy kolumny obok siebie",
170
+ aliases: ["kolumny", "rząd", "podzielić"],
171
+ group: "Podstawowe bloki"
172
+ }
173
+ }
174
+ }, Dn = {
175
+ slash_menu: {
176
+ two_columns: {
177
+ title: "Duas Colunas",
178
+ subtext: "Duas colunas lado a lado",
179
+ aliases: ["colunas", "linha", "dividir"],
180
+ group: "Blocos básicos"
181
+ },
182
+ three_columns: {
183
+ title: "Três Colunas",
184
+ subtext: "Três colunas lado a lado",
185
+ aliases: ["colunas", "linha", "dividir"],
186
+ group: "Blocos básicos"
187
+ }
188
+ }
189
+ }, An = {
190
+ slash_menu: {
191
+ two_columns: {
192
+ title: "Два Столбца",
193
+ subtext: "Два столбца рядом",
194
+ aliases: ["столбцы", "ряд", "разделить"],
195
+ group: "Базовые блоки"
196
+ },
197
+ three_columns: {
198
+ title: "Три Столбца",
199
+ subtext: "Три столбца рядом",
200
+ aliases: ["столбцы", "ряд", "разделить"],
201
+ group: "Базовые блоки"
202
+ }
203
+ }
204
+ }, In = {
205
+ slash_menu: {
206
+ two_columns: {
207
+ title: "Hai Cột",
208
+ subtext: "Hai cột cạnh nhau",
209
+ aliases: ["cột", "hàng", "chia"],
210
+ group: "Khối cơ bản"
211
+ },
212
+ three_columns: {
213
+ title: "Ba Cột",
214
+ subtext: "Ba cột cạnh nhau",
215
+ aliases: ["cột", "hàng", "chia"],
216
+ group: "Khối cơ bản"
217
+ }
218
+ }
219
+ }, Nn = {
220
+ slash_menu: {
221
+ two_columns: {
222
+ title: "两列",
223
+ subtext: "两列并排",
224
+ aliases: ["列", "行", "分割"],
225
+ group: "基础"
226
+ },
227
+ three_columns: {
228
+ title: "三列",
229
+ subtext: "三列并排",
230
+ aliases: ["列", "行", "分割"],
231
+ group: "基础"
232
+ }
233
+ }
234
+ }, fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
235
+ __proto__: null,
236
+ ar: wn,
237
+ de: Cn,
238
+ en: En,
239
+ es: Rn,
240
+ fr: Sn,
241
+ hr: kn,
242
+ is: On,
243
+ ja: Tn,
244
+ ko: Pn,
245
+ nl: jn,
246
+ pl: xn,
247
+ pt: Dn,
248
+ ru: An,
249
+ vi: In,
250
+ zh: Nn
251
+ }, Symbol.toStringTag, { value: "Module" }));
252
+ function Sr(s) {
253
+ if (!s.dictionary.multi_column)
254
+ throw new Error("Multi-column dictionary not found");
255
+ return s.dictionary.multi_column;
256
+ }
257
+ const ke = new bn("ColumnResizePlugin");
258
+ class Mn {
259
+ constructor(n, a) {
260
+ oe(this, "editor");
261
+ oe(this, "view");
262
+ oe(this, "RESIZE_MARGIN_WIDTH_PX", 20);
263
+ oe(this, "COLUMN_MIN_WIDTH_PERCENT", 0.5);
264
+ oe(this, "getColumnHoverOrDefaultState", (n) => {
265
+ const a = n.target;
266
+ if (!this.view.dom.contains(a))
267
+ return { type: "default" };
268
+ const c = a.closest(
269
+ ".bn-block-column"
270
+ );
271
+ if (!c)
272
+ return { type: "default" };
273
+ const E = n.clientX, x = c.getBoundingClientRect(), R = E < x.left + this.RESIZE_MARGIN_WIDTH_PX ? "left" : E > x.right - this.RESIZE_MARGIN_WIDTH_PX ? "right" : "none", C = R === "left" ? c.previousElementSibling : R === "right" ? c.nextElementSibling : void 0;
274
+ if (!C)
275
+ return { type: "default" };
276
+ const m = R === "left" ? C : c, U = R === "left" ? c : C, _ = m.getAttribute("data-id"), b = U.getAttribute("data-id"), D = wr(_, this.view.state.doc), N = wr(
277
+ b,
278
+ this.view.state.doc
279
+ );
280
+ if (!D || !N || !D.posBeforeNode)
281
+ throw new Error("Column not found");
282
+ return {
283
+ type: "hover",
284
+ leftColumn: {
285
+ element: m,
286
+ id: _,
287
+ ...D
288
+ },
289
+ rightColumn: {
290
+ element: U,
291
+ id: b,
292
+ ...N
293
+ }
294
+ };
295
+ });
296
+ // When the user mouses down near the boundary between two columns, we
297
+ // want to set the plugin state to resize, so the columns can be resized
298
+ // by moving the mouse.
299
+ oe(this, "mouseDownHandler", (n) => {
300
+ let a = this.getColumnHoverOrDefaultState(n);
301
+ if (a.type === "default")
302
+ return;
303
+ n.preventDefault();
304
+ const c = n.clientX, E = a.leftColumn.element.getBoundingClientRect().width, x = a.rightColumn.element.getBoundingClientRect().width, R = a.leftColumn.node.attrs.width, C = a.rightColumn.node.attrs.width;
305
+ a = {
306
+ type: "resize",
307
+ startPos: c,
308
+ leftColumn: {
309
+ ...a.leftColumn,
310
+ widthPx: E,
311
+ widthPercent: R
312
+ },
313
+ rightColumn: {
314
+ ...a.rightColumn,
315
+ widthPx: x,
316
+ widthPercent: C
317
+ }
318
+ }, this.view.dispatch(
319
+ this.view.state.tr.setMeta(ke, a)
320
+ ), this.editor.sideMenu.freezeMenu();
321
+ });
322
+ // If the plugin isn't in a resize state, we want to update it to either a
323
+ // hover state if the mouse is near the boundary between two columns, or
324
+ // default otherwise. If the plugin is in a resize state, we want to
325
+ // update the column widths based on the horizontal mouse movement.
326
+ oe(this, "mouseMoveHandler", (n) => {
327
+ var m, U;
328
+ const a = ke.getState(this.view.state);
329
+ if (!a)
330
+ return;
331
+ if (a.type !== "resize") {
332
+ const _ = this.getColumnHoverOrDefaultState(n), b = a.type === "default" && _.type === "default", D = a.type !== "default" && _.type !== "default" && a.leftColumn.id === _.leftColumn.id && a.rightColumn.id === _.rightColumn.id;
333
+ if (b || D || _.type === "hover" && ((U = (m = this.editor.sideMenu.view) == null ? void 0 : m.state) != null && U.show))
334
+ return;
335
+ this.view.dispatch(
336
+ this.view.state.tr.setMeta(ke, _)
337
+ );
338
+ return;
339
+ }
340
+ const E = (n.clientX - a.startPos) * a.leftColumn.widthPercent, x = (a.leftColumn.widthPx + E) / a.leftColumn.widthPx - 1;
341
+ let R = a.leftColumn.widthPercent + x, C = a.rightColumn.widthPercent - x;
342
+ R < this.COLUMN_MIN_WIDTH_PERCENT ? (C -= this.COLUMN_MIN_WIDTH_PERCENT - R, R = this.COLUMN_MIN_WIDTH_PERCENT) : C < this.COLUMN_MIN_WIDTH_PERCENT && (R -= this.COLUMN_MIN_WIDTH_PERCENT - C, C = this.COLUMN_MIN_WIDTH_PERCENT), this.view.dispatch(
343
+ this.view.state.tr.setNodeAttribute(
344
+ a.leftColumn.posBeforeNode,
345
+ "width",
346
+ R
347
+ ).setNodeAttribute(
348
+ a.rightColumn.posBeforeNode,
349
+ "width",
350
+ C
351
+ ).setMeta("addToHistory", !1)
352
+ );
353
+ });
354
+ // If the plugin is in a resize state, we want to revert it to a default
355
+ // or hover, depending on where the mouse cursor is, when the user
356
+ // releases the mouse button.
357
+ oe(this, "mouseUpHandler", (n) => {
358
+ const a = ke.getState(this.view.state);
359
+ if (!a || a.type !== "resize")
360
+ return;
361
+ const c = this.getColumnHoverOrDefaultState(n);
362
+ this.view.dispatch(
363
+ this.view.state.tr.setMeta(ke, c)
364
+ ), this.editor.sideMenu.unfreezeMenu();
365
+ });
366
+ // This is a required method for PluginView, so we get a type error if we
367
+ // don't implement it.
368
+ oe(this, "update");
369
+ this.editor = n, this.view = a, this.view.dom.addEventListener("mousedown", this.mouseDownHandler), document.body.addEventListener("mousemove", this.mouseMoveHandler), document.body.addEventListener("mouseup", this.mouseUpHandler);
370
+ }
371
+ }
372
+ const Ln = (s) => new Fr({
373
+ key: ke,
374
+ props: {
375
+ // This adds a border between the columns when the user is
376
+ // resizing them or when the cursor is near their boundary.
377
+ decorations: (n) => {
378
+ const a = ke.getState(n);
379
+ return !a || a.type === "default" ? Er.empty : Er.create(n.doc, [
380
+ Rr.node(
381
+ a.leftColumn.posBeforeNode,
382
+ a.leftColumn.posBeforeNode + a.leftColumn.node.nodeSize,
383
+ {
384
+ style: "box-shadow: 4px 0 0 #ccc; cursor: col-resize"
385
+ }
386
+ ),
387
+ Rr.node(
388
+ a.rightColumn.posBeforeNode,
389
+ a.rightColumn.posBeforeNode + a.rightColumn.node.nodeSize,
390
+ {
391
+ style: "cursor: col-resize"
392
+ }
393
+ )
394
+ ]);
395
+ }
396
+ },
397
+ state: {
398
+ init: () => ({ type: "default" }),
399
+ apply: (n, a) => {
400
+ const c = n.getMeta(ke);
401
+ return c === void 0 ? a : c;
402
+ }
403
+ },
404
+ view: (n) => new Mn(s, n)
405
+ }), Fn = (s) => gn.create({
406
+ name: "columnResize",
407
+ addProseMirrorPlugins() {
408
+ return [Ln(s)];
409
+ }
410
+ }), Bn = Nr({
411
+ name: "column",
412
+ group: "bnBlock childContainer",
413
+ // A block always contains content, and optionally a blockGroup which contains nested blocks
414
+ content: "blockContainer+",
415
+ priority: 40,
416
+ defining: !0,
417
+ addAttributes() {
418
+ return {
419
+ width: {
420
+ // Why does each column have a default width of 1, i.e. 100%? Because
421
+ // when creating a new column, we want to make sure that existing
422
+ // column widths are preserved, while the new one also has a sensible
423
+ // width. If we'd set it so all column widths must add up to 100%
424
+ // instead, then each time a new column is created, we'd have to assign
425
+ // it a width depending on the total number of columns and also adjust
426
+ // the widths of the other columns. The same can be said for using px
427
+ // instead of percent widths and making them add to the editor width. So
428
+ // using this method is both simpler and computationally cheaper. This
429
+ // is possible because we can set the `flex-grow` property to the width
430
+ // value, which handles all the resizing for us, instead of manually
431
+ // having to set the `width` property of each column.
432
+ default: 1,
433
+ parseHTML: (s) => {
434
+ const n = s.getAttribute("data-width");
435
+ if (n === null)
436
+ return null;
437
+ const a = parseFloat(n);
438
+ return isFinite(a) ? a : null;
439
+ },
440
+ renderHTML: (s) => ({
441
+ "data-width": s.width.toString(),
442
+ style: `flex-grow: ${s.width};`
443
+ })
444
+ }
445
+ };
446
+ },
447
+ parseHTML() {
448
+ return [
449
+ {
450
+ tag: "div",
451
+ getAttrs: (s) => typeof s == "string" ? !1 : s.getAttribute("data-node-type") === this.name ? {} : !1
452
+ }
453
+ ];
454
+ },
455
+ renderHTML({ HTMLAttributes: s }) {
456
+ const n = document.createElement("div");
457
+ n.className = "bn-block-column", n.setAttribute("data-node-type", this.name);
458
+ for (const [a, c] of Object.entries(s))
459
+ n.setAttribute(a, c);
460
+ return {
461
+ dom: n,
462
+ contentDOM: n
463
+ };
464
+ },
465
+ addExtensions() {
466
+ return [Fn(this.options.editor)];
467
+ }
468
+ }), Wn = Nr({
469
+ name: "columnList",
470
+ group: "childContainer bnBlock blockGroupChild",
471
+ // A block always contains content, and optionally a blockGroup which contains nested blocks
472
+ content: "column column+",
473
+ // min two columns
474
+ priority: 40,
475
+ // should be below blockContainer
476
+ defining: !0,
477
+ parseHTML() {
478
+ return [
479
+ {
480
+ tag: "div",
481
+ getAttrs: (s) => typeof s == "string" ? !1 : s.getAttribute("data-node-type") === this.name ? {} : !1
482
+ }
483
+ ];
484
+ },
485
+ renderHTML({ HTMLAttributes: s }) {
486
+ const n = document.createElement("div");
487
+ n.className = "bn-block-column-list", n.setAttribute("data-node-type", this.name);
488
+ for (const [a, c] of Object.entries(s))
489
+ n.setAttribute(a, c);
490
+ return n.style.display = "flex", {
491
+ dom: n,
492
+ contentDOM: n
493
+ };
494
+ }
495
+ }), Br = Mr(Bn, {
496
+ width: {
497
+ default: 1
498
+ }
499
+ }), Wr = Mr(
500
+ Wn,
501
+ {}
502
+ ), kr = Lr.create({
503
+ blockSpecs: {
504
+ column: Br,
505
+ columnList: Wr
506
+ }
507
+ }), po = (s) => Lr.create({
508
+ blockSpecs: {
509
+ ...s.blockSpecs,
510
+ column: Br,
511
+ columnList: Wr
512
+ },
513
+ inlineContentSpecs: s.inlineContentSpecs,
514
+ styleSpecs: s.styleSpecs
515
+ }), Ct = 0.1;
516
+ function $n(s) {
517
+ return { left: s.clientX, top: s.clientY };
518
+ }
519
+ function ho(s) {
520
+ const n = s.editor;
521
+ return new Fr({
522
+ view(a) {
523
+ return new Vn(a, s);
524
+ },
525
+ props: {
526
+ handleDrop(a, c, E, x) {
527
+ const R = a.posAtCoords($n(c));
528
+ if (!R)
529
+ throw new Error("Could not get event position");
530
+ const C = $r(a.state, R), m = mn(C), _ = a.nodeDOM(C.posBeforeNode).getBoundingClientRect();
531
+ let b = "regular";
532
+ if (c.clientX <= _.left + _.width * Ct && (b = "left"), c.clientX >= _.right - _.width * Ct && (b = "right"), b === "regular")
533
+ return !1;
534
+ const D = Gt(
535
+ E.content.child(0),
536
+ n.schema.blockSchema,
537
+ n.schema.inlineContentSchema,
538
+ n.schema.styleSchema
539
+ // TODO: cache?
540
+ );
541
+ if (m.blockNoteType === "column") {
542
+ const N = a.state.doc.resolve(m.bnBlock.beforePos).node(), M = Gt(
543
+ N,
544
+ n.schema.blockSchema,
545
+ n.schema.inlineContentSchema,
546
+ n.schema.styleSchema
547
+ );
548
+ let ee = 0;
549
+ M.children.forEach((le) => {
550
+ ee += le.props.width;
551
+ });
552
+ const X = ee / M.children.length;
553
+ if (X < 0.99 || X > 1.01) {
554
+ const le = 1 / X;
555
+ M.children.forEach((ce) => {
556
+ ce.props.width = ce.props.width * le;
557
+ });
558
+ }
559
+ const ue = M.children.findIndex(
560
+ (le) => le.id === m.bnBlock.node.attrs.id
561
+ ), z = M.children.toSpliced(
562
+ b === "left" ? ue : ue + 1,
563
+ 0,
564
+ {
565
+ type: "column",
566
+ children: [D],
567
+ props: {},
568
+ content: void 0,
569
+ id: vn.options.generateID()
570
+ }
571
+ );
572
+ n.removeBlocks([D]), n.updateBlock(M, {
573
+ children: z
574
+ });
575
+ } else {
576
+ const N = Gt(
577
+ m.bnBlock.node,
578
+ n.schema.blockSchema,
579
+ n.schema.inlineContentSchema,
580
+ n.schema.styleSchema
581
+ ), M = b === "left" ? [D, N] : [N, D];
582
+ n.removeBlocks([D]), n.replaceBlocks(
583
+ [N],
584
+ [
585
+ {
586
+ type: "columnList",
587
+ children: M.map((ee) => ({
588
+ type: "column",
589
+ children: [ee]
590
+ }))
591
+ }
592
+ ]
593
+ );
594
+ }
595
+ return !0;
596
+ }
597
+ }
598
+ });
599
+ }
600
+ class Vn {
601
+ constructor(n, a) {
602
+ oe(this, "width");
603
+ oe(this, "color");
604
+ oe(this, "class");
605
+ oe(this, "cursorPos");
606
+ oe(this, "element", null);
607
+ oe(this, "timeout");
608
+ oe(this, "handlers");
609
+ this.editorView = n, this.width = a.width ?? 1, this.color = a.color === !1 ? void 0 : a.color || "black", this.class = a.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((c) => {
610
+ const E = (x) => {
611
+ this[c](x);
612
+ };
613
+ return n.dom.addEventListener(c, E), { name: c, handler: E };
614
+ });
615
+ }
616
+ destroy() {
617
+ this.handlers.forEach(
618
+ ({ name: n, handler: a }) => this.editorView.dom.removeEventListener(n, a)
619
+ );
620
+ }
621
+ update(n, a) {
622
+ this.cursorPos != null && a.doc !== n.state.doc && (this.cursorPos.pos > n.state.doc.content.size ? this.setCursor(void 0) : this.updateOverlay());
623
+ }
624
+ setCursor(n) {
625
+ var a, c;
626
+ n === this.cursorPos || (n == null ? void 0 : n.pos) === ((a = this.cursorPos) == null ? void 0 : a.pos) && (n == null ? void 0 : n.position) === ((c = this.cursorPos) == null ? void 0 : c.position) || (this.cursorPos = n, n ? this.updateOverlay() : (this.element.parentNode.removeChild(this.element), this.element = null));
627
+ }
628
+ updateOverlay() {
629
+ if (!this.cursorPos)
630
+ throw new Error("updateOverlay called with no cursor position");
631
+ const n = this.editorView.state.doc.resolve(this.cursorPos.pos), a = !n.parent.inlineContent;
632
+ let c;
633
+ const E = this.editorView.dom, x = E.getBoundingClientRect(), R = x.width / E.offsetWidth, C = x.height / E.offsetHeight;
634
+ if (a) {
635
+ const b = n.nodeBefore, D = n.nodeAfter;
636
+ if (b || D)
637
+ if (this.cursorPos.position === "left" || this.cursorPos.position === "right") {
638
+ const M = this.editorView.nodeDOM(this.cursorPos.pos).getBoundingClientRect(), ee = this.width / 2 * C, X = this.cursorPos.position === "left" ? M.left : M.right;
639
+ c = {
640
+ left: X - ee,
641
+ right: X + ee,
642
+ top: M.top,
643
+ bottom: M.bottom
644
+ // left: blockRect.left,
645
+ // right: blockRect.right,
646
+ };
647
+ } else {
648
+ const N = this.editorView.nodeDOM(
649
+ this.cursorPos.pos - (b ? b.nodeSize : 0)
650
+ );
651
+ if (N) {
652
+ const M = N.getBoundingClientRect();
653
+ let ee = b ? M.bottom : M.top;
654
+ b && D && (ee = (ee + this.editorView.nodeDOM(this.cursorPos.pos).getBoundingClientRect().top) / 2);
655
+ const X = this.width / 2 * C;
656
+ this.cursorPos.position === "regular" && (c = {
657
+ left: M.left,
658
+ right: M.right,
659
+ top: ee - X,
660
+ bottom: ee + X
661
+ });
662
+ }
663
+ }
664
+ }
665
+ if (!c) {
666
+ const b = this.editorView.coordsAtPos(this.cursorPos.pos), D = this.width / 2 * R;
667
+ c = {
668
+ left: b.left - D,
669
+ right: b.left + D,
670
+ top: b.top,
671
+ bottom: b.bottom
672
+ };
673
+ }
674
+ const m = this.editorView.dom.offsetParent;
675
+ this.element || (this.element = m.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", a), this.element.classList.toggle(
676
+ "prosemirror-dropcursor-vertical",
677
+ this.cursorPos.position !== "regular"
678
+ ), this.element.classList.toggle("prosemirror-dropcursor-inline", !a);
679
+ let U, _;
680
+ if (!m || m === document.body && getComputedStyle(m).position === "static")
681
+ U = -window.scrollX, _ = -window.scrollY;
682
+ else {
683
+ const b = m.getBoundingClientRect(), D = b.width / m.offsetWidth, N = b.height / m.offsetHeight;
684
+ U = b.left - m.scrollLeft * D, _ = b.top - m.scrollTop * N;
685
+ }
686
+ this.element.style.left = (c.left - U) / R + "px", this.element.style.top = (c.top - _) / C + "px", this.element.style.width = (c.right - c.left) / R + "px", this.element.style.height = (c.bottom - c.top) / C + "px";
687
+ }
688
+ scheduleRemoval(n) {
689
+ clearTimeout(this.timeout), this.timeout = setTimeout(() => this.setCursor(void 0), n);
690
+ }
691
+ // this gets executed on every mouse move when dragging (drag over)
692
+ dragover(n) {
693
+ if (!this.editorView.editable)
694
+ return;
695
+ const a = this.editorView.posAtCoords({
696
+ left: n.clientX,
697
+ top: n.clientY
698
+ }), c = a && a.inside >= 0 && this.editorView.state.doc.nodeAt(a.inside), E = c && c.type.spec.disableDropCursor, x = typeof E == "function" ? E(this.editorView, a, n) : E;
699
+ if (a && !x) {
700
+ let R = "regular", C = a.pos;
701
+ const m = $r(this.editorView.state, a), _ = this.editorView.nodeDOM(m.posBeforeNode).getBoundingClientRect();
702
+ if (n.clientX <= _.left + _.width * Ct && (R = "left", C = m.posBeforeNode), n.clientX >= _.right - _.width * Ct && (R = "right", C = m.posBeforeNode), R === "regular" && this.editorView.dragging && this.editorView.dragging.slice) {
703
+ const b = _n(
704
+ this.editorView.state.doc,
705
+ C,
706
+ this.editorView.dragging.slice
707
+ );
708
+ b != null && (C = b);
709
+ }
710
+ this.setCursor({ pos: C, position: R }), this.scheduleRemoval(5e3);
711
+ }
712
+ }
713
+ dragend() {
714
+ this.scheduleRemoval(20);
715
+ }
716
+ drop() {
717
+ this.scheduleRemoval(20);
718
+ }
719
+ dragleave(n) {
720
+ (n.target === this.editorView.dom || !this.editorView.dom.contains(n.relatedTarget)) && this.setCursor(void 0);
721
+ }
722
+ }
723
+ function $r(s, n) {
724
+ const a = yn(s.doc, n.pos);
725
+ let c = s.doc.resolve(a.posBeforeNode);
726
+ return c.parent.type.name === "column" && (c = s.doc.resolve(c.before())), {
727
+ posBeforeNode: c.pos,
728
+ node: c.nodeAfter
729
+ };
730
+ }
731
+ function Un(s) {
732
+ return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
733
+ }
734
+ var qt = { exports: {} }, Ze = {}, wt = { exports: {} }, k = {};
735
+ /**
736
+ * @license React
737
+ * react.production.min.js
738
+ *
739
+ * Copyright (c) Facebook, Inc. and its affiliates.
740
+ *
741
+ * This source code is licensed under the MIT license found in the
742
+ * LICENSE file in the root directory of this source tree.
743
+ */
744
+ var Or;
745
+ function zn() {
746
+ if (Or) return k;
747
+ Or = 1;
748
+ var s = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), R = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), U = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), b = Symbol.iterator;
749
+ function D(o) {
750
+ return o === null || typeof o != "object" ? null : (o = b && o[b] || o["@@iterator"], typeof o == "function" ? o : null);
751
+ }
752
+ var N = { isMounted: function() {
753
+ return !1;
754
+ }, enqueueForceUpdate: function() {
755
+ }, enqueueReplaceState: function() {
756
+ }, enqueueSetState: function() {
757
+ } }, M = Object.assign, ee = {};
758
+ function X(o, f, O) {
759
+ this.props = o, this.context = f, this.refs = ee, this.updater = O || N;
760
+ }
761
+ X.prototype.isReactComponent = {}, X.prototype.setState = function(o, f) {
762
+ if (typeof o != "object" && typeof o != "function" && o != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
763
+ this.updater.enqueueSetState(this, o, f, "setState");
764
+ }, X.prototype.forceUpdate = function(o) {
765
+ this.updater.enqueueForceUpdate(this, o, "forceUpdate");
766
+ };
767
+ function ue() {
768
+ }
769
+ ue.prototype = X.prototype;
770
+ function z(o, f, O) {
771
+ this.props = o, this.context = f, this.refs = ee, this.updater = O || N;
772
+ }
773
+ var le = z.prototype = new ue();
774
+ le.constructor = z, M(le, X.prototype), le.isPureReactComponent = !0;
775
+ var ce = Array.isArray, J = Object.prototype.hasOwnProperty, se = { current: null }, he = { key: !0, ref: !0, __self: !0, __source: !0 };
776
+ function ye(o, f, O) {
777
+ var P, A = {}, V = null, W = null;
778
+ if (f != null) for (P in f.ref !== void 0 && (W = f.ref), f.key !== void 0 && (V = "" + f.key), f) J.call(f, P) && !he.hasOwnProperty(P) && (A[P] = f[P]);
779
+ var B = arguments.length - 2;
780
+ if (B === 1) A.children = O;
781
+ else if (1 < B) {
782
+ for (var L = Array(B), Z = 0; Z < B; Z++) L[Z] = arguments[Z + 2];
783
+ A.children = L;
784
+ }
785
+ if (o && o.defaultProps) for (P in B = o.defaultProps, B) A[P] === void 0 && (A[P] = B[P]);
786
+ return { $$typeof: s, type: o, key: V, ref: W, props: A, _owner: se.current };
787
+ }
788
+ function Oe(o, f) {
789
+ return { $$typeof: s, type: o.type, key: f, ref: o.ref, props: o.props, _owner: o._owner };
790
+ }
791
+ function Te(o) {
792
+ return typeof o == "object" && o !== null && o.$$typeof === s;
793
+ }
794
+ function He(o) {
795
+ var f = { "=": "=0", ":": "=2" };
796
+ return "$" + o.replace(/[=:]/g, function(O) {
797
+ return f[O];
798
+ });
799
+ }
800
+ var Pe = /\/+/g;
801
+ function ie(o, f) {
802
+ return typeof o == "object" && o !== null && o.key != null ? He("" + o.key) : f.toString(36);
803
+ }
804
+ function fe(o, f, O, P, A) {
805
+ var V = typeof o;
806
+ (V === "undefined" || V === "boolean") && (o = null);
807
+ var W = !1;
808
+ if (o === null) W = !0;
809
+ else switch (V) {
810
+ case "string":
811
+ case "number":
812
+ W = !0;
813
+ break;
814
+ case "object":
815
+ switch (o.$$typeof) {
816
+ case s:
817
+ case n:
818
+ W = !0;
819
+ }
820
+ }
821
+ if (W) return W = o, A = A(W), o = P === "" ? "." + ie(W, 0) : P, ce(A) ? (O = "", o != null && (O = o.replace(Pe, "$&/") + "/"), fe(A, f, O, "", function(Z) {
822
+ return Z;
823
+ })) : A != null && (Te(A) && (A = Oe(A, O + (!A.key || W && W.key === A.key ? "" : ("" + A.key).replace(Pe, "$&/") + "/") + o)), f.push(A)), 1;
824
+ if (W = 0, P = P === "" ? "." : P + ":", ce(o)) for (var B = 0; B < o.length; B++) {
825
+ V = o[B];
826
+ var L = P + ie(V, B);
827
+ W += fe(V, f, O, L, A);
828
+ }
829
+ else if (L = D(o), typeof L == "function") for (o = L.call(o), B = 0; !(V = o.next()).done; ) V = V.value, L = P + ie(V, B++), W += fe(V, f, O, L, A);
830
+ else if (V === "object") throw f = String(o), Error("Objects are not valid as a React child (found: " + (f === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : f) + "). If you meant to render a collection of children, use an array instead.");
831
+ return W;
832
+ }
833
+ function te(o, f, O) {
834
+ if (o == null) return o;
835
+ var P = [], A = 0;
836
+ return fe(o, P, "", "", function(V) {
837
+ return f.call(O, V, A++);
838
+ }), P;
839
+ }
840
+ function pe(o) {
841
+ if (o._status === -1) {
842
+ var f = o._result;
843
+ f = f(), f.then(function(O) {
844
+ (o._status === 0 || o._status === -1) && (o._status = 1, o._result = O);
845
+ }, function(O) {
846
+ (o._status === 0 || o._status === -1) && (o._status = 2, o._result = O);
847
+ }), o._status === -1 && (o._status = 0, o._result = f);
848
+ }
849
+ if (o._status === 1) return o._result.default;
850
+ throw o._result;
851
+ }
852
+ var v = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: me, ReactCurrentOwner: se };
853
+ function ge() {
854
+ throw Error("act(...) is not supported in production builds of React.");
855
+ }
856
+ return k.Children = { map: te, forEach: function(o, f, O) {
857
+ te(o, function() {
858
+ f.apply(this, arguments);
859
+ }, O);
860
+ }, count: function(o) {
861
+ var f = 0;
862
+ return te(o, function() {
863
+ f++;
864
+ }), f;
865
+ }, toArray: function(o) {
866
+ return te(o, function(f) {
867
+ return f;
868
+ }) || [];
869
+ }, only: function(o) {
870
+ if (!Te(o)) throw Error("React.Children.only expected to receive a single React element child.");
871
+ return o;
872
+ } }, k.Component = X, k.Fragment = a, k.Profiler = E, k.PureComponent = z, k.StrictMode = c, k.Suspense = m, k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = je, k.act = ge, k.cloneElement = function(o, f, O) {
873
+ if (o == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
874
+ var P = M({}, o.props), A = o.key, V = o.ref, W = o._owner;
875
+ if (f != null) {
876
+ if (f.ref !== void 0 && (V = f.ref, W = se.current), f.key !== void 0 && (A = "" + f.key), o.type && o.type.defaultProps) var B = o.type.defaultProps;
877
+ for (L in f) J.call(f, L) && !he.hasOwnProperty(L) && (P[L] = f[L] === void 0 && B !== void 0 ? B[L] : f[L]);
878
+ }
879
+ var L = arguments.length - 2;
880
+ if (L === 1) P.children = O;
881
+ else if (1 < L) {
882
+ B = Array(L);
883
+ for (var Z = 0; Z < L; Z++) B[Z] = arguments[Z + 2];
884
+ P.children = B;
885
+ }
886
+ return { $$typeof: s, type: o.type, key: A, ref: V, props: P, _owner: W };
887
+ }, k.createContext = function(o) {
888
+ return o = { $$typeof: R, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof: x, _context: o }, o.Consumer = o;
889
+ }, k.createElement = ye, k.createFactory = function(o) {
890
+ var f = ye.bind(null, o);
891
+ return f.type = o, f;
892
+ }, k.createRef = function() {
893
+ return { current: null };
894
+ }, k.forwardRef = function(o) {
895
+ return { $$typeof: C, render: o };
896
+ }, k.isValidElement = Te, k.lazy = function(o) {
897
+ return { $$typeof: _, _payload: { _status: -1, _result: o }, _init: pe };
898
+ }, k.memo = function(o, f) {
899
+ return { $$typeof: U, type: o, compare: f === void 0 ? null : f };
900
+ }, k.startTransition = function(o) {
901
+ var f = me.transition;
902
+ me.transition = {};
903
+ try {
904
+ o();
905
+ } finally {
906
+ me.transition = f;
907
+ }
908
+ }, k.unstable_act = ge, k.useCallback = function(o, f) {
909
+ return v.current.useCallback(o, f);
910
+ }, k.useContext = function(o) {
911
+ return v.current.useContext(o);
912
+ }, k.useDebugValue = function() {
913
+ }, k.useDeferredValue = function(o) {
914
+ return v.current.useDeferredValue(o);
915
+ }, k.useEffect = function(o, f) {
916
+ return v.current.useEffect(o, f);
917
+ }, k.useId = function() {
918
+ return v.current.useId();
919
+ }, k.useImperativeHandle = function(o, f, O) {
920
+ return v.current.useImperativeHandle(o, f, O);
921
+ }, k.useInsertionEffect = function(o, f) {
922
+ return v.current.useInsertionEffect(o, f);
923
+ }, k.useLayoutEffect = function(o, f) {
924
+ return v.current.useLayoutEffect(o, f);
925
+ }, k.useMemo = function(o, f) {
926
+ return v.current.useMemo(o, f);
927
+ }, k.useReducer = function(o, f, O) {
928
+ return v.current.useReducer(o, f, O);
929
+ }, k.useRef = function(o) {
930
+ return v.current.useRef(o);
931
+ }, k.useState = function(o) {
932
+ return v.current.useState(o);
933
+ }, k.useSyncExternalStore = function(o, f, O) {
934
+ return v.current.useSyncExternalStore(o, f, O);
935
+ }, k.useTransition = function() {
936
+ return v.current.useTransition();
937
+ }, k.version = "18.3.1", k;
938
+ }
939
+ var et = { exports: {} };
940
+ /**
941
+ * @license React
942
+ * react.development.js
943
+ *
944
+ * Copyright (c) Facebook, Inc. and its affiliates.
945
+ *
946
+ * This source code is licensed under the MIT license found in the
947
+ * LICENSE file in the root directory of this source tree.
948
+ */
949
+ et.exports;
950
+ var Tr;
951
+ function Yn() {
952
+ return Tr || (Tr = 1, function(s, n) {
953
+ process.env.NODE_ENV !== "production" && function() {
954
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
955
+ var a = "18.3.1", c = Symbol.for("react.element"), E = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), U = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), ee = Symbol.for("react.offscreen"), X = Symbol.iterator, ue = "@@iterator";
956
+ function z(e) {
957
+ if (e === null || typeof e != "object")
958
+ return null;
959
+ var t = X && e[X] || e[ue];
960
+ return typeof t == "function" ? t : null;
961
+ }
962
+ var le = {
963
+ /**
964
+ * @internal
965
+ * @type {ReactComponent}
966
+ */
967
+ current: null
968
+ }, ce = {
969
+ transition: null
970
+ }, J = {
971
+ current: null,
972
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
973
+ isBatchingLegacy: !1,
974
+ didScheduleLegacyUpdate: !1
975
+ }, se = {
976
+ /**
977
+ * @internal
978
+ * @type {ReactComponent}
979
+ */
980
+ current: null
981
+ }, he = {}, ye = null;
982
+ function Oe(e) {
983
+ ye = e;
984
+ }
985
+ he.setExtraStackFrame = function(e) {
986
+ ye = e;
987
+ }, he.getCurrentStack = null, he.getStackAddendum = function() {
988
+ var e = "";
989
+ ye && (e += ye);
990
+ var t = he.getCurrentStack;
991
+ return t && (e += t() || ""), e;
992
+ };
993
+ var Te = !1, He = !1, Pe = !1, ie = !1, fe = !1, te = {
994
+ ReactCurrentDispatcher: le,
995
+ ReactCurrentBatchConfig: ce,
996
+ ReactCurrentOwner: se
997
+ };
998
+ te.ReactDebugCurrentFrame = he, te.ReactCurrentActQueue = J;
999
+ function pe(e) {
1000
+ {
1001
+ for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
1002
+ i[u - 1] = arguments[u];
1003
+ me("warn", e, i);
1004
+ }
1005
+ }
1006
+ function v(e) {
1007
+ {
1008
+ for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
1009
+ i[u - 1] = arguments[u];
1010
+ me("error", e, i);
1011
+ }
1012
+ }
1013
+ function me(e, t, i) {
1014
+ {
1015
+ var u = te.ReactDebugCurrentFrame, p = u.getStackAddendum();
1016
+ p !== "" && (t += "%s", i = i.concat([p]));
1017
+ var y = i.map(function(h) {
1018
+ return String(h);
1019
+ });
1020
+ y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
1021
+ }
1022
+ }
1023
+ var je = {};
1024
+ function ge(e, t) {
1025
+ {
1026
+ var i = e.constructor, u = i && (i.displayName || i.name) || "ReactClass", p = u + "." + t;
1027
+ if (je[p])
1028
+ return;
1029
+ v("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, u), je[p] = !0;
1030
+ }
1031
+ }
1032
+ var o = {
1033
+ /**
1034
+ * Checks whether or not this composite component is mounted.
1035
+ * @param {ReactClass} publicInstance The instance we want to test.
1036
+ * @return {boolean} True if mounted, false otherwise.
1037
+ * @protected
1038
+ * @final
1039
+ */
1040
+ isMounted: function(e) {
1041
+ return !1;
1042
+ },
1043
+ /**
1044
+ * Forces an update. This should only be invoked when it is known with
1045
+ * certainty that we are **not** in a DOM transaction.
1046
+ *
1047
+ * You may want to call this when you know that some deeper aspect of the
1048
+ * component's state has changed but `setState` was not called.
1049
+ *
1050
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
1051
+ * `componentWillUpdate` and `componentDidUpdate`.
1052
+ *
1053
+ * @param {ReactClass} publicInstance The instance that should rerender.
1054
+ * @param {?function} callback Called after component is updated.
1055
+ * @param {?string} callerName name of the calling function in the public API.
1056
+ * @internal
1057
+ */
1058
+ enqueueForceUpdate: function(e, t, i) {
1059
+ ge(e, "forceUpdate");
1060
+ },
1061
+ /**
1062
+ * Replaces all of the state. Always use this or `setState` to mutate state.
1063
+ * You should treat `this.state` as immutable.
1064
+ *
1065
+ * There is no guarantee that `this.state` will be immediately updated, so
1066
+ * accessing `this.state` after calling this method may return the old value.
1067
+ *
1068
+ * @param {ReactClass} publicInstance The instance that should rerender.
1069
+ * @param {object} completeState Next state.
1070
+ * @param {?function} callback Called after component is updated.
1071
+ * @param {?string} callerName name of the calling function in the public API.
1072
+ * @internal
1073
+ */
1074
+ enqueueReplaceState: function(e, t, i, u) {
1075
+ ge(e, "replaceState");
1076
+ },
1077
+ /**
1078
+ * Sets a subset of the state. This only exists because _pendingState is
1079
+ * internal. This provides a merging strategy that is not available to deep
1080
+ * properties which is confusing. TODO: Expose pendingState or don't use it
1081
+ * during the merge.
1082
+ *
1083
+ * @param {ReactClass} publicInstance The instance that should rerender.
1084
+ * @param {object} partialState Next partial state to be merged with state.
1085
+ * @param {?function} callback Called after component is updated.
1086
+ * @param {?string} Name of the calling function in the public API.
1087
+ * @internal
1088
+ */
1089
+ enqueueSetState: function(e, t, i, u) {
1090
+ ge(e, "setState");
1091
+ }
1092
+ }, f = Object.assign, O = {};
1093
+ Object.freeze(O);
1094
+ function P(e, t, i) {
1095
+ this.props = e, this.context = t, this.refs = O, this.updater = i || o;
1096
+ }
1097
+ P.prototype.isReactComponent = {}, P.prototype.setState = function(e, t) {
1098
+ if (typeof e != "object" && typeof e != "function" && e != null)
1099
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
1100
+ this.updater.enqueueSetState(this, e, t, "setState");
1101
+ }, P.prototype.forceUpdate = function(e) {
1102
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1103
+ };
1104
+ {
1105
+ var A = {
1106
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
1107
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
1108
+ }, V = function(e, t) {
1109
+ Object.defineProperty(P.prototype, e, {
1110
+ get: function() {
1111
+ pe("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
1112
+ }
1113
+ });
1114
+ };
1115
+ for (var W in A)
1116
+ A.hasOwnProperty(W) && V(W, A[W]);
1117
+ }
1118
+ function B() {
1119
+ }
1120
+ B.prototype = P.prototype;
1121
+ function L(e, t, i) {
1122
+ this.props = e, this.context = t, this.refs = O, this.updater = i || o;
1123
+ }
1124
+ var Z = L.prototype = new B();
1125
+ Z.constructor = L, f(Z, P.prototype), Z.isPureReactComponent = !0;
1126
+ function St() {
1127
+ var e = {
1128
+ current: null
1129
+ };
1130
+ return Object.seal(e), e;
1131
+ }
1132
+ var tt = Array.isArray;
1133
+ function Be(e) {
1134
+ return tt(e);
1135
+ }
1136
+ function kt(e) {
1137
+ {
1138
+ var t = typeof Symbol == "function" && Symbol.toStringTag, i = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
1139
+ return i;
1140
+ }
1141
+ }
1142
+ function We(e) {
1143
+ try {
1144
+ return we(e), !1;
1145
+ } catch {
1146
+ return !0;
1147
+ }
1148
+ }
1149
+ function we(e) {
1150
+ return "" + e;
1151
+ }
1152
+ function xe(e) {
1153
+ if (We(e))
1154
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kt(e)), we(e);
1155
+ }
1156
+ function rt(e, t, i) {
1157
+ var u = e.displayName;
1158
+ if (u)
1159
+ return u;
1160
+ var p = t.displayName || t.name || "";
1161
+ return p !== "" ? i + "(" + p + ")" : i;
1162
+ }
1163
+ function De(e) {
1164
+ return e.displayName || "Context";
1165
+ }
1166
+ function ve(e) {
1167
+ if (e == null)
1168
+ return null;
1169
+ if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
1170
+ return e.displayName || e.name || null;
1171
+ if (typeof e == "string")
1172
+ return e;
1173
+ switch (e) {
1174
+ case x:
1175
+ return "Fragment";
1176
+ case E:
1177
+ return "Portal";
1178
+ case C:
1179
+ return "Profiler";
1180
+ case R:
1181
+ return "StrictMode";
1182
+ case b:
1183
+ return "Suspense";
1184
+ case D:
1185
+ return "SuspenseList";
1186
+ }
1187
+ if (typeof e == "object")
1188
+ switch (e.$$typeof) {
1189
+ case U:
1190
+ var t = e;
1191
+ return De(t) + ".Consumer";
1192
+ case m:
1193
+ var i = e;
1194
+ return De(i._context) + ".Provider";
1195
+ case _:
1196
+ return rt(e, e.render, "ForwardRef");
1197
+ case N:
1198
+ var u = e.displayName || null;
1199
+ return u !== null ? u : ve(e.type) || "Memo";
1200
+ case M: {
1201
+ var p = e, y = p._payload, h = p._init;
1202
+ try {
1203
+ return ve(h(y));
1204
+ } catch {
1205
+ return null;
1206
+ }
1207
+ }
1208
+ }
1209
+ return null;
1210
+ }
1211
+ var Ae = Object.prototype.hasOwnProperty, $e = {
1212
+ key: !0,
1213
+ ref: !0,
1214
+ __self: !0,
1215
+ __source: !0
1216
+ }, nt, ot, Ve;
1217
+ Ve = {};
1218
+ function Ke(e) {
1219
+ if (Ae.call(e, "ref")) {
1220
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
1221
+ if (t && t.isReactWarning)
1222
+ return !1;
1223
+ }
1224
+ return e.ref !== void 0;
1225
+ }
1226
+ function Ce(e) {
1227
+ if (Ae.call(e, "key")) {
1228
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
1229
+ if (t && t.isReactWarning)
1230
+ return !1;
1231
+ }
1232
+ return e.key !== void 0;
1233
+ }
1234
+ function Ot(e, t) {
1235
+ var i = function() {
1236
+ nt || (nt = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
1237
+ };
1238
+ i.isReactWarning = !0, Object.defineProperty(e, "key", {
1239
+ get: i,
1240
+ configurable: !0
1241
+ });
1242
+ }
1243
+ function it(e, t) {
1244
+ var i = function() {
1245
+ ot || (ot = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
1246
+ };
1247
+ i.isReactWarning = !0, Object.defineProperty(e, "ref", {
1248
+ get: i,
1249
+ configurable: !0
1250
+ });
1251
+ }
1252
+ function at(e) {
1253
+ if (typeof e.ref == "string" && se.current && e.__self && se.current.stateNode !== e.__self) {
1254
+ var t = ve(se.current.type);
1255
+ Ve[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Ve[t] = !0);
1256
+ }
1257
+ }
1258
+ var Ie = function(e, t, i, u, p, y, h) {
1259
+ var w = {
1260
+ // This tag allows us to uniquely identify this as a React Element
1261
+ $$typeof: c,
1262
+ // Built-in properties that belong on the element
1263
+ type: e,
1264
+ key: t,
1265
+ ref: i,
1266
+ props: h,
1267
+ // Record the component responsible for creating this element.
1268
+ _owner: y
1269
+ };
1270
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
1271
+ configurable: !1,
1272
+ enumerable: !1,
1273
+ writable: !0,
1274
+ value: !1
1275
+ }), Object.defineProperty(w, "_self", {
1276
+ configurable: !1,
1277
+ enumerable: !1,
1278
+ writable: !1,
1279
+ value: u
1280
+ }), Object.defineProperty(w, "_source", {
1281
+ configurable: !1,
1282
+ enumerable: !1,
1283
+ writable: !1,
1284
+ value: p
1285
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
1286
+ };
1287
+ function Tt(e, t, i) {
1288
+ var u, p = {}, y = null, h = null, w = null, j = null;
1289
+ if (t != null) {
1290
+ Ke(t) && (h = t.ref, at(t)), Ce(t) && (xe(t.key), y = "" + t.key), w = t.__self === void 0 ? null : t.__self, j = t.__source === void 0 ? null : t.__source;
1291
+ for (u in t)
1292
+ Ae.call(t, u) && !$e.hasOwnProperty(u) && (p[u] = t[u]);
1293
+ }
1294
+ var $ = arguments.length - 2;
1295
+ if ($ === 1)
1296
+ p.children = i;
1297
+ else if ($ > 1) {
1298
+ for (var Y = Array($), H = 0; H < $; H++)
1299
+ Y[H] = arguments[H + 2];
1300
+ Object.freeze && Object.freeze(Y), p.children = Y;
1301
+ }
1302
+ if (e && e.defaultProps) {
1303
+ var G = e.defaultProps;
1304
+ for (u in G)
1305
+ p[u] === void 0 && (p[u] = G[u]);
1306
+ }
1307
+ if (y || h) {
1308
+ var Q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1309
+ y && Ot(p, Q), h && it(p, Q);
1310
+ }
1311
+ return Ie(e, y, h, w, j, se.current, p);
1312
+ }
1313
+ function Pt(e, t) {
1314
+ var i = Ie(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
1315
+ return i;
1316
+ }
1317
+ function jt(e, t, i) {
1318
+ if (e == null)
1319
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
1320
+ var u, p = f({}, e.props), y = e.key, h = e.ref, w = e._self, j = e._source, $ = e._owner;
1321
+ if (t != null) {
1322
+ Ke(t) && (h = t.ref, $ = se.current), Ce(t) && (xe(t.key), y = "" + t.key);
1323
+ var Y;
1324
+ e.type && e.type.defaultProps && (Y = e.type.defaultProps);
1325
+ for (u in t)
1326
+ Ae.call(t, u) && !$e.hasOwnProperty(u) && (t[u] === void 0 && Y !== void 0 ? p[u] = Y[u] : p[u] = t[u]);
1327
+ }
1328
+ var H = arguments.length - 2;
1329
+ if (H === 1)
1330
+ p.children = i;
1331
+ else if (H > 1) {
1332
+ for (var G = Array(H), Q = 0; Q < H; Q++)
1333
+ G[Q] = arguments[Q + 2];
1334
+ p.children = G;
1335
+ }
1336
+ return Ie(e.type, y, h, w, j, $, p);
1337
+ }
1338
+ function Ee(e) {
1339
+ return typeof e == "object" && e !== null && e.$$typeof === c;
1340
+ }
1341
+ var st = ".", xt = ":";
1342
+ function Dt(e) {
1343
+ var t = /[=:]/g, i = {
1344
+ "=": "=0",
1345
+ ":": "=2"
1346
+ }, u = e.replace(t, function(p) {
1347
+ return i[p];
1348
+ });
1349
+ return "$" + u;
1350
+ }
1351
+ var Ue = !1, ut = /\/+/g;
1352
+ function be(e) {
1353
+ return e.replace(ut, "$&/");
1354
+ }
1355
+ function Ne(e, t) {
1356
+ return typeof e == "object" && e !== null && e.key != null ? (xe(e.key), Dt("" + e.key)) : t.toString(36);
1357
+ }
1358
+ function Re(e, t, i, u, p) {
1359
+ var y = typeof e;
1360
+ (y === "undefined" || y === "boolean") && (e = null);
1361
+ var h = !1;
1362
+ if (e === null)
1363
+ h = !0;
1364
+ else
1365
+ switch (y) {
1366
+ case "string":
1367
+ case "number":
1368
+ h = !0;
1369
+ break;
1370
+ case "object":
1371
+ switch (e.$$typeof) {
1372
+ case c:
1373
+ case E:
1374
+ h = !0;
1375
+ }
1376
+ }
1377
+ if (h) {
1378
+ var w = e, j = p(w), $ = u === "" ? st + Ne(w, 0) : u;
1379
+ if (Be(j)) {
1380
+ var Y = "";
1381
+ $ != null && (Y = be($) + "/"), Re(j, t, Y, "", function(dn) {
1382
+ return dn;
1383
+ });
1384
+ } else j != null && (Ee(j) && (j.key && (!w || w.key !== j.key) && xe(j.key), j = Pt(
1385
+ j,
1386
+ // Keep both the (mapped) and old keys if they differ, just as
1387
+ // traverseAllChildren used to do for objects as children
1388
+ i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1389
+ (j.key && (!w || w.key !== j.key) ? (
1390
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1391
+ // eslint-disable-next-line react-internal/safe-string-coercion
1392
+ be("" + j.key) + "/"
1393
+ ) : "") + $
1394
+ )), t.push(j));
1395
+ return 1;
1396
+ }
1397
+ var H, G, Q = 0, ne = u === "" ? st : u + xt;
1398
+ if (Be(e))
1399
+ for (var _t = 0; _t < e.length; _t++)
1400
+ H = e[_t], G = ne + Ne(H, _t), Q += Re(H, t, i, G, p);
1401
+ else {
1402
+ var Kt = z(e);
1403
+ if (typeof Kt == "function") {
1404
+ var gr = e;
1405
+ Kt === gr.entries && (Ue || pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ue = !0);
1406
+ for (var cn = Kt.call(gr), br, fn = 0; !(br = cn.next()).done; )
1407
+ H = br.value, G = ne + Ne(H, fn++), Q += Re(H, t, i, G, p);
1408
+ } else if (y === "object") {
1409
+ var _r = String(e);
1410
+ throw new Error("Objects are not valid as a React child (found: " + (_r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : _r) + "). If you meant to render a collection of children, use an array instead.");
1411
+ }
1412
+ }
1413
+ return Q;
1414
+ }
1415
+ function Me(e, t, i) {
1416
+ if (e == null)
1417
+ return e;
1418
+ var u = [], p = 0;
1419
+ return Re(e, u, "", "", function(y) {
1420
+ return t.call(i, y, p++);
1421
+ }), u;
1422
+ }
1423
+ function At(e) {
1424
+ var t = 0;
1425
+ return Me(e, function() {
1426
+ t++;
1427
+ }), t;
1428
+ }
1429
+ function lt(e, t, i) {
1430
+ Me(e, function() {
1431
+ t.apply(this, arguments);
1432
+ }, i);
1433
+ }
1434
+ function It(e) {
1435
+ return Me(e, function(t) {
1436
+ return t;
1437
+ }) || [];
1438
+ }
1439
+ function ct(e) {
1440
+ if (!Ee(e))
1441
+ throw new Error("React.Children.only expected to receive a single React element child.");
1442
+ return e;
1443
+ }
1444
+ function ft(e) {
1445
+ var t = {
1446
+ $$typeof: U,
1447
+ // As a workaround to support multiple concurrent renderers, we categorize
1448
+ // some renderers as primary and others as secondary. We only expect
1449
+ // there to be two concurrent renderers at most: React Native (primary) and
1450
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1451
+ // Secondary renderers store their context values on separate fields.
1452
+ _currentValue: e,
1453
+ _currentValue2: e,
1454
+ // Used to track how many concurrent renderers this context currently
1455
+ // supports within in a single renderer. Such as parallel server rendering.
1456
+ _threadCount: 0,
1457
+ // These are circular
1458
+ Provider: null,
1459
+ Consumer: null,
1460
+ // Add these to use same hidden class in VM as ServerContext
1461
+ _defaultValue: null,
1462
+ _globalName: null
1463
+ };
1464
+ t.Provider = {
1465
+ $$typeof: m,
1466
+ _context: t
1467
+ };
1468
+ var i = !1, u = !1, p = !1;
1469
+ {
1470
+ var y = {
1471
+ $$typeof: U,
1472
+ _context: t
1473
+ };
1474
+ Object.defineProperties(y, {
1475
+ Provider: {
1476
+ get: function() {
1477
+ return u || (u = !0, v("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
1478
+ },
1479
+ set: function(h) {
1480
+ t.Provider = h;
1481
+ }
1482
+ },
1483
+ _currentValue: {
1484
+ get: function() {
1485
+ return t._currentValue;
1486
+ },
1487
+ set: function(h) {
1488
+ t._currentValue = h;
1489
+ }
1490
+ },
1491
+ _currentValue2: {
1492
+ get: function() {
1493
+ return t._currentValue2;
1494
+ },
1495
+ set: function(h) {
1496
+ t._currentValue2 = h;
1497
+ }
1498
+ },
1499
+ _threadCount: {
1500
+ get: function() {
1501
+ return t._threadCount;
1502
+ },
1503
+ set: function(h) {
1504
+ t._threadCount = h;
1505
+ }
1506
+ },
1507
+ Consumer: {
1508
+ get: function() {
1509
+ return i || (i = !0, v("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
1510
+ }
1511
+ },
1512
+ displayName: {
1513
+ get: function() {
1514
+ return t.displayName;
1515
+ },
1516
+ set: function(h) {
1517
+ p || (pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", h), p = !0);
1518
+ }
1519
+ }
1520
+ }), t.Consumer = y;
1521
+ }
1522
+ return t._currentRenderer = null, t._currentRenderer2 = null, t;
1523
+ }
1524
+ var Le = -1, Ge = 0, qe = 1, dt = 2;
1525
+ function Nt(e) {
1526
+ if (e._status === Le) {
1527
+ var t = e._result, i = t();
1528
+ if (i.then(function(y) {
1529
+ if (e._status === Ge || e._status === Le) {
1530
+ var h = e;
1531
+ h._status = qe, h._result = y;
1532
+ }
1533
+ }, function(y) {
1534
+ if (e._status === Ge || e._status === Le) {
1535
+ var h = e;
1536
+ h._status = dt, h._result = y;
1537
+ }
1538
+ }), e._status === Le) {
1539
+ var u = e;
1540
+ u._status = Ge, u._result = i;
1541
+ }
1542
+ }
1543
+ if (e._status === qe) {
1544
+ var p = e._result;
1545
+ return p === void 0 && v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1546
+
1547
+ Your code should look like:
1548
+ const MyComponent = lazy(() => import('./MyComponent'))
1549
+
1550
+ Did you accidentally put curly braces around the import?`, p), "default" in p || v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1551
+
1552
+ Your code should look like:
1553
+ const MyComponent = lazy(() => import('./MyComponent'))`, p), p.default;
1554
+ } else
1555
+ throw e._result;
1556
+ }
1557
+ function Mt(e) {
1558
+ var t = {
1559
+ // We use these fields to store the result.
1560
+ _status: Le,
1561
+ _result: e
1562
+ }, i = {
1563
+ $$typeof: M,
1564
+ _payload: t,
1565
+ _init: Nt
1566
+ };
1567
+ {
1568
+ var u, p;
1569
+ Object.defineProperties(i, {
1570
+ defaultProps: {
1571
+ configurable: !0,
1572
+ get: function() {
1573
+ return u;
1574
+ },
1575
+ set: function(y) {
1576
+ v("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = y, Object.defineProperty(i, "defaultProps", {
1577
+ enumerable: !0
1578
+ });
1579
+ }
1580
+ },
1581
+ propTypes: {
1582
+ configurable: !0,
1583
+ get: function() {
1584
+ return p;
1585
+ },
1586
+ set: function(y) {
1587
+ v("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), p = y, Object.defineProperty(i, "propTypes", {
1588
+ enumerable: !0
1589
+ });
1590
+ }
1591
+ }
1592
+ });
1593
+ }
1594
+ return i;
1595
+ }
1596
+ function Lt(e) {
1597
+ e != null && e.$$typeof === N ? v("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? v("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && v("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && v("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1598
+ var t = {
1599
+ $$typeof: _,
1600
+ render: e
1601
+ };
1602
+ {
1603
+ var i;
1604
+ Object.defineProperty(t, "displayName", {
1605
+ enumerable: !1,
1606
+ configurable: !0,
1607
+ get: function() {
1608
+ return i;
1609
+ },
1610
+ set: function(u) {
1611
+ i = u, !e.name && !e.displayName && (e.displayName = u);
1612
+ }
1613
+ });
1614
+ }
1615
+ return t;
1616
+ }
1617
+ var pt;
1618
+ pt = Symbol.for("react.module.reference");
1619
+ function r(e) {
1620
+ return !!(typeof e == "string" || typeof e == "function" || e === x || e === C || fe || e === R || e === b || e === D || ie || e === ee || Te || He || Pe || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === N || e.$$typeof === m || e.$$typeof === U || e.$$typeof === _ || // This needs to include all possible module reference object
1621
+ // types supported by any Flight configuration anywhere since
1622
+ // we don't know which Flight build this will end up being used
1623
+ // with.
1624
+ e.$$typeof === pt || e.getModuleId !== void 0));
1625
+ }
1626
+ function l(e, t) {
1627
+ r(e) || v("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
1628
+ var i = {
1629
+ $$typeof: N,
1630
+ type: e,
1631
+ compare: t === void 0 ? null : t
1632
+ };
1633
+ {
1634
+ var u;
1635
+ Object.defineProperty(i, "displayName", {
1636
+ enumerable: !1,
1637
+ configurable: !0,
1638
+ get: function() {
1639
+ return u;
1640
+ },
1641
+ set: function(p) {
1642
+ u = p, !e.name && !e.displayName && (e.displayName = p);
1643
+ }
1644
+ });
1645
+ }
1646
+ return i;
1647
+ }
1648
+ function d() {
1649
+ var e = le.current;
1650
+ return e === null && v(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1651
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
1652
+ 2. You might be breaking the Rules of Hooks
1653
+ 3. You might have more than one copy of React in the same app
1654
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
1655
+ }
1656
+ function g(e) {
1657
+ var t = d();
1658
+ if (e._context !== void 0) {
1659
+ var i = e._context;
1660
+ i.Consumer === e ? v("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : i.Provider === e && v("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1661
+ }
1662
+ return t.useContext(e);
1663
+ }
1664
+ function I(e) {
1665
+ var t = d();
1666
+ return t.useState(e);
1667
+ }
1668
+ function F(e, t, i) {
1669
+ var u = d();
1670
+ return u.useReducer(e, t, i);
1671
+ }
1672
+ function T(e) {
1673
+ var t = d();
1674
+ return t.useRef(e);
1675
+ }
1676
+ function S(e, t) {
1677
+ var i = d();
1678
+ return i.useEffect(e, t);
1679
+ }
1680
+ function re(e, t) {
1681
+ var i = d();
1682
+ return i.useInsertionEffect(e, t);
1683
+ }
1684
+ function K(e, t) {
1685
+ var i = d();
1686
+ return i.useLayoutEffect(e, t);
1687
+ }
1688
+ function q(e, t) {
1689
+ var i = d();
1690
+ return i.useCallback(e, t);
1691
+ }
1692
+ function de(e, t) {
1693
+ var i = d();
1694
+ return i.useMemo(e, t);
1695
+ }
1696
+ function Se(e, t, i) {
1697
+ var u = d();
1698
+ return u.useImperativeHandle(e, t, i);
1699
+ }
1700
+ function _e(e, t) {
1701
+ {
1702
+ var i = d();
1703
+ return i.useDebugValue(e, t);
1704
+ }
1705
+ }
1706
+ function ae() {
1707
+ var e = d();
1708
+ return e.useTransition();
1709
+ }
1710
+ function Xe(e) {
1711
+ var t = d();
1712
+ return t.useDeferredValue(e);
1713
+ }
1714
+ function Ft() {
1715
+ var e = d();
1716
+ return e.useId();
1717
+ }
1718
+ function Bt(e, t, i) {
1719
+ var u = d();
1720
+ return u.useSyncExternalStore(e, t, i);
1721
+ }
1722
+ var Je = 0, Jt, Zt, Qt, er, tr, rr, nr;
1723
+ function or() {
1724
+ }
1725
+ or.__reactDisabledLog = !0;
1726
+ function Yr() {
1727
+ {
1728
+ if (Je === 0) {
1729
+ Jt = console.log, Zt = console.info, Qt = console.warn, er = console.error, tr = console.group, rr = console.groupCollapsed, nr = console.groupEnd;
1730
+ var e = {
1731
+ configurable: !0,
1732
+ enumerable: !0,
1733
+ value: or,
1734
+ writable: !0
1735
+ };
1736
+ Object.defineProperties(console, {
1737
+ info: e,
1738
+ log: e,
1739
+ warn: e,
1740
+ error: e,
1741
+ group: e,
1742
+ groupCollapsed: e,
1743
+ groupEnd: e
1744
+ });
1745
+ }
1746
+ Je++;
1747
+ }
1748
+ }
1749
+ function Hr() {
1750
+ {
1751
+ if (Je--, Je === 0) {
1752
+ var e = {
1753
+ configurable: !0,
1754
+ enumerable: !0,
1755
+ writable: !0
1756
+ };
1757
+ Object.defineProperties(console, {
1758
+ log: f({}, e, {
1759
+ value: Jt
1760
+ }),
1761
+ info: f({}, e, {
1762
+ value: Zt
1763
+ }),
1764
+ warn: f({}, e, {
1765
+ value: Qt
1766
+ }),
1767
+ error: f({}, e, {
1768
+ value: er
1769
+ }),
1770
+ group: f({}, e, {
1771
+ value: tr
1772
+ }),
1773
+ groupCollapsed: f({}, e, {
1774
+ value: rr
1775
+ }),
1776
+ groupEnd: f({}, e, {
1777
+ value: nr
1778
+ })
1779
+ });
1780
+ }
1781
+ Je < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1782
+ }
1783
+ }
1784
+ var Wt = te.ReactCurrentDispatcher, $t;
1785
+ function ht(e, t, i) {
1786
+ {
1787
+ if ($t === void 0)
1788
+ try {
1789
+ throw Error();
1790
+ } catch (p) {
1791
+ var u = p.stack.trim().match(/\n( *(at )?)/);
1792
+ $t = u && u[1] || "";
1793
+ }
1794
+ return `
1795
+ ` + $t + e;
1796
+ }
1797
+ }
1798
+ var Vt = !1, mt;
1799
+ {
1800
+ var Kr = typeof WeakMap == "function" ? WeakMap : Map;
1801
+ mt = new Kr();
1802
+ }
1803
+ function ir(e, t) {
1804
+ if (!e || Vt)
1805
+ return "";
1806
+ {
1807
+ var i = mt.get(e);
1808
+ if (i !== void 0)
1809
+ return i;
1810
+ }
1811
+ var u;
1812
+ Vt = !0;
1813
+ var p = Error.prepareStackTrace;
1814
+ Error.prepareStackTrace = void 0;
1815
+ var y;
1816
+ y = Wt.current, Wt.current = null, Yr();
1817
+ try {
1818
+ if (t) {
1819
+ var h = function() {
1820
+ throw Error();
1821
+ };
1822
+ if (Object.defineProperty(h.prototype, "props", {
1823
+ set: function() {
1824
+ throw Error();
1825
+ }
1826
+ }), typeof Reflect == "object" && Reflect.construct) {
1827
+ try {
1828
+ Reflect.construct(h, []);
1829
+ } catch (ne) {
1830
+ u = ne;
1831
+ }
1832
+ Reflect.construct(e, [], h);
1833
+ } else {
1834
+ try {
1835
+ h.call();
1836
+ } catch (ne) {
1837
+ u = ne;
1838
+ }
1839
+ e.call(h.prototype);
1840
+ }
1841
+ } else {
1842
+ try {
1843
+ throw Error();
1844
+ } catch (ne) {
1845
+ u = ne;
1846
+ }
1847
+ e();
1848
+ }
1849
+ } catch (ne) {
1850
+ if (ne && u && typeof ne.stack == "string") {
1851
+ for (var w = ne.stack.split(`
1852
+ `), j = u.stack.split(`
1853
+ `), $ = w.length - 1, Y = j.length - 1; $ >= 1 && Y >= 0 && w[$] !== j[Y]; )
1854
+ Y--;
1855
+ for (; $ >= 1 && Y >= 0; $--, Y--)
1856
+ if (w[$] !== j[Y]) {
1857
+ if ($ !== 1 || Y !== 1)
1858
+ do
1859
+ if ($--, Y--, Y < 0 || w[$] !== j[Y]) {
1860
+ var H = `
1861
+ ` + w[$].replace(" at new ", " at ");
1862
+ return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && mt.set(e, H), H;
1863
+ }
1864
+ while ($ >= 1 && Y >= 0);
1865
+ break;
1866
+ }
1867
+ }
1868
+ } finally {
1869
+ Vt = !1, Wt.current = y, Hr(), Error.prepareStackTrace = p;
1870
+ }
1871
+ var G = e ? e.displayName || e.name : "", Q = G ? ht(G) : "";
1872
+ return typeof e == "function" && mt.set(e, Q), Q;
1873
+ }
1874
+ function Gr(e, t, i) {
1875
+ return ir(e, !1);
1876
+ }
1877
+ function qr(e) {
1878
+ var t = e.prototype;
1879
+ return !!(t && t.isReactComponent);
1880
+ }
1881
+ function vt(e, t, i) {
1882
+ if (e == null)
1883
+ return "";
1884
+ if (typeof e == "function")
1885
+ return ir(e, qr(e));
1886
+ if (typeof e == "string")
1887
+ return ht(e);
1888
+ switch (e) {
1889
+ case b:
1890
+ return ht("Suspense");
1891
+ case D:
1892
+ return ht("SuspenseList");
1893
+ }
1894
+ if (typeof e == "object")
1895
+ switch (e.$$typeof) {
1896
+ case _:
1897
+ return Gr(e.render);
1898
+ case N:
1899
+ return vt(e.type, t, i);
1900
+ case M: {
1901
+ var u = e, p = u._payload, y = u._init;
1902
+ try {
1903
+ return vt(y(p), t, i);
1904
+ } catch {
1905
+ }
1906
+ }
1907
+ }
1908
+ return "";
1909
+ }
1910
+ var ar = {}, sr = te.ReactDebugCurrentFrame;
1911
+ function yt(e) {
1912
+ if (e) {
1913
+ var t = e._owner, i = vt(e.type, e._source, t ? t.type : null);
1914
+ sr.setExtraStackFrame(i);
1915
+ } else
1916
+ sr.setExtraStackFrame(null);
1917
+ }
1918
+ function Xr(e, t, i, u, p) {
1919
+ {
1920
+ var y = Function.call.bind(Ae);
1921
+ for (var h in e)
1922
+ if (y(e, h)) {
1923
+ var w = void 0;
1924
+ try {
1925
+ if (typeof e[h] != "function") {
1926
+ var j = Error((u || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1927
+ throw j.name = "Invariant Violation", j;
1928
+ }
1929
+ w = e[h](t, h, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1930
+ } catch ($) {
1931
+ w = $;
1932
+ }
1933
+ w && !(w instanceof Error) && (yt(p), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, h, typeof w), yt(null)), w instanceof Error && !(w.message in ar) && (ar[w.message] = !0, yt(p), v("Failed %s type: %s", i, w.message), yt(null));
1934
+ }
1935
+ }
1936
+ }
1937
+ function ze(e) {
1938
+ if (e) {
1939
+ var t = e._owner, i = vt(e.type, e._source, t ? t.type : null);
1940
+ Oe(i);
1941
+ } else
1942
+ Oe(null);
1943
+ }
1944
+ var Ut;
1945
+ Ut = !1;
1946
+ function ur() {
1947
+ if (se.current) {
1948
+ var e = ve(se.current.type);
1949
+ if (e)
1950
+ return `
1951
+
1952
+ Check the render method of \`` + e + "`.";
1953
+ }
1954
+ return "";
1955
+ }
1956
+ function Jr(e) {
1957
+ if (e !== void 0) {
1958
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
1959
+ return `
1960
+
1961
+ Check your code at ` + t + ":" + i + ".";
1962
+ }
1963
+ return "";
1964
+ }
1965
+ function Zr(e) {
1966
+ return e != null ? Jr(e.__source) : "";
1967
+ }
1968
+ var lr = {};
1969
+ function Qr(e) {
1970
+ var t = ur();
1971
+ if (!t) {
1972
+ var i = typeof e == "string" ? e : e.displayName || e.name;
1973
+ i && (t = `
1974
+
1975
+ Check the top-level render call using <` + i + ">.");
1976
+ }
1977
+ return t;
1978
+ }
1979
+ function cr(e, t) {
1980
+ if (!(!e._store || e._store.validated || e.key != null)) {
1981
+ e._store.validated = !0;
1982
+ var i = Qr(t);
1983
+ if (!lr[i]) {
1984
+ lr[i] = !0;
1985
+ var u = "";
1986
+ e && e._owner && e._owner !== se.current && (u = " It was passed a child from " + ve(e._owner.type) + "."), ze(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), ze(null);
1987
+ }
1988
+ }
1989
+ }
1990
+ function fr(e, t) {
1991
+ if (typeof e == "object") {
1992
+ if (Be(e))
1993
+ for (var i = 0; i < e.length; i++) {
1994
+ var u = e[i];
1995
+ Ee(u) && cr(u, t);
1996
+ }
1997
+ else if (Ee(e))
1998
+ e._store && (e._store.validated = !0);
1999
+ else if (e) {
2000
+ var p = z(e);
2001
+ if (typeof p == "function" && p !== e.entries)
2002
+ for (var y = p.call(e), h; !(h = y.next()).done; )
2003
+ Ee(h.value) && cr(h.value, t);
2004
+ }
2005
+ }
2006
+ }
2007
+ function dr(e) {
2008
+ {
2009
+ var t = e.type;
2010
+ if (t == null || typeof t == "string")
2011
+ return;
2012
+ var i;
2013
+ if (typeof t == "function")
2014
+ i = t.propTypes;
2015
+ else if (typeof t == "object" && (t.$$typeof === _ || // Note: Memo only checks outer props here.
2016
+ // Inner props are checked in the reconciler.
2017
+ t.$$typeof === N))
2018
+ i = t.propTypes;
2019
+ else
2020
+ return;
2021
+ if (i) {
2022
+ var u = ve(t);
2023
+ Xr(i, e.props, "prop", u, e);
2024
+ } else if (t.PropTypes !== void 0 && !Ut) {
2025
+ Ut = !0;
2026
+ var p = ve(t);
2027
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
2028
+ }
2029
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2030
+ }
2031
+ }
2032
+ function en(e) {
2033
+ {
2034
+ for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
2035
+ var u = t[i];
2036
+ if (u !== "children" && u !== "key") {
2037
+ ze(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), ze(null);
2038
+ break;
2039
+ }
2040
+ }
2041
+ e.ref !== null && (ze(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
2042
+ }
2043
+ }
2044
+ function pr(e, t, i) {
2045
+ var u = r(e);
2046
+ if (!u) {
2047
+ var p = "";
2048
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2049
+ var y = Zr(t);
2050
+ y ? p += y : p += ur();
2051
+ var h;
2052
+ e === null ? h = "null" : Be(e) ? h = "array" : e !== void 0 && e.$$typeof === c ? (h = "<" + (ve(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, v("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, p);
2053
+ }
2054
+ var w = Tt.apply(this, arguments);
2055
+ if (w == null)
2056
+ return w;
2057
+ if (u)
2058
+ for (var j = 2; j < arguments.length; j++)
2059
+ fr(arguments[j], e);
2060
+ return e === x ? en(w) : dr(w), w;
2061
+ }
2062
+ var hr = !1;
2063
+ function tn(e) {
2064
+ var t = pr.bind(null, e);
2065
+ return t.type = e, hr || (hr = !0, pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
2066
+ enumerable: !1,
2067
+ get: function() {
2068
+ return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
2069
+ value: e
2070
+ }), e;
2071
+ }
2072
+ }), t;
2073
+ }
2074
+ function rn(e, t, i) {
2075
+ for (var u = jt.apply(this, arguments), p = 2; p < arguments.length; p++)
2076
+ fr(arguments[p], u.type);
2077
+ return dr(u), u;
2078
+ }
2079
+ function nn(e, t) {
2080
+ var i = ce.transition;
2081
+ ce.transition = {};
2082
+ var u = ce.transition;
2083
+ ce.transition._updatedFibers = /* @__PURE__ */ new Set();
2084
+ try {
2085
+ e();
2086
+ } finally {
2087
+ if (ce.transition = i, i === null && u._updatedFibers) {
2088
+ var p = u._updatedFibers.size;
2089
+ p > 10 && pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), u._updatedFibers.clear();
2090
+ }
2091
+ }
2092
+ }
2093
+ var mr = !1, gt = null;
2094
+ function on(e) {
2095
+ if (gt === null)
2096
+ try {
2097
+ var t = ("require" + Math.random()).slice(0, 7), i = s && s[t];
2098
+ gt = i.call(s, "timers").setImmediate;
2099
+ } catch {
2100
+ gt = function(p) {
2101
+ mr === !1 && (mr = !0, typeof MessageChannel > "u" && v("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
2102
+ var y = new MessageChannel();
2103
+ y.port1.onmessage = p, y.port2.postMessage(void 0);
2104
+ };
2105
+ }
2106
+ return gt(e);
2107
+ }
2108
+ var Ye = 0, vr = !1;
2109
+ function yr(e) {
2110
+ {
2111
+ var t = Ye;
2112
+ Ye++, J.current === null && (J.current = []);
2113
+ var i = J.isBatchingLegacy, u;
2114
+ try {
2115
+ if (J.isBatchingLegacy = !0, u = e(), !i && J.didScheduleLegacyUpdate) {
2116
+ var p = J.current;
2117
+ p !== null && (J.didScheduleLegacyUpdate = !1, Ht(p));
2118
+ }
2119
+ } catch (G) {
2120
+ throw bt(t), G;
2121
+ } finally {
2122
+ J.isBatchingLegacy = i;
2123
+ }
2124
+ if (u !== null && typeof u == "object" && typeof u.then == "function") {
2125
+ var y = u, h = !1, w = {
2126
+ then: function(G, Q) {
2127
+ h = !0, y.then(function(ne) {
2128
+ bt(t), Ye === 0 ? zt(ne, G, Q) : G(ne);
2129
+ }, function(ne) {
2130
+ bt(t), Q(ne);
2131
+ });
2132
+ }
2133
+ };
2134
+ return !vr && typeof Promise < "u" && Promise.resolve().then(function() {
2135
+ }).then(function() {
2136
+ h || (vr = !0, v("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
2137
+ }), w;
2138
+ } else {
2139
+ var j = u;
2140
+ if (bt(t), Ye === 0) {
2141
+ var $ = J.current;
2142
+ $ !== null && (Ht($), J.current = null);
2143
+ var Y = {
2144
+ then: function(G, Q) {
2145
+ J.current === null ? (J.current = [], zt(j, G, Q)) : G(j);
2146
+ }
2147
+ };
2148
+ return Y;
2149
+ } else {
2150
+ var H = {
2151
+ then: function(G, Q) {
2152
+ G(j);
2153
+ }
2154
+ };
2155
+ return H;
2156
+ }
2157
+ }
2158
+ }
2159
+ }
2160
+ function bt(e) {
2161
+ e !== Ye - 1 && v("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ye = e;
2162
+ }
2163
+ function zt(e, t, i) {
2164
+ {
2165
+ var u = J.current;
2166
+ if (u !== null)
2167
+ try {
2168
+ Ht(u), on(function() {
2169
+ u.length === 0 ? (J.current = null, t(e)) : zt(e, t, i);
2170
+ });
2171
+ } catch (p) {
2172
+ i(p);
2173
+ }
2174
+ else
2175
+ t(e);
2176
+ }
2177
+ }
2178
+ var Yt = !1;
2179
+ function Ht(e) {
2180
+ if (!Yt) {
2181
+ Yt = !0;
2182
+ var t = 0;
2183
+ try {
2184
+ for (; t < e.length; t++) {
2185
+ var i = e[t];
2186
+ do
2187
+ i = i(!0);
2188
+ while (i !== null);
2189
+ }
2190
+ e.length = 0;
2191
+ } catch (u) {
2192
+ throw e = e.slice(t + 1), u;
2193
+ } finally {
2194
+ Yt = !1;
2195
+ }
2196
+ }
2197
+ }
2198
+ var an = pr, sn = rn, un = tn, ln = {
2199
+ map: Me,
2200
+ forEach: lt,
2201
+ count: At,
2202
+ toArray: It,
2203
+ only: ct
2204
+ };
2205
+ n.Children = ln, n.Component = P, n.Fragment = x, n.Profiler = C, n.PureComponent = L, n.StrictMode = R, n.Suspense = b, n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = te, n.act = yr, n.cloneElement = sn, n.createContext = ft, n.createElement = an, n.createFactory = un, n.createRef = St, n.forwardRef = Lt, n.isValidElement = Ee, n.lazy = Mt, n.memo = l, n.startTransition = nn, n.unstable_act = yr, n.useCallback = q, n.useContext = g, n.useDebugValue = _e, n.useDeferredValue = Xe, n.useEffect = S, n.useId = Ft, n.useImperativeHandle = Se, n.useInsertionEffect = re, n.useLayoutEffect = K, n.useMemo = de, n.useReducer = F, n.useRef = T, n.useState = I, n.useSyncExternalStore = Bt, n.useTransition = ae, n.version = a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2206
+ }();
2207
+ }(et, et.exports)), et.exports;
2208
+ }
2209
+ var Pr;
2210
+ function Xt() {
2211
+ return Pr || (Pr = 1, process.env.NODE_ENV === "production" ? wt.exports = zn() : wt.exports = Yn()), wt.exports;
2212
+ }
2213
+ /**
2214
+ * @license React
2215
+ * react-jsx-runtime.production.min.js
2216
+ *
2217
+ * Copyright (c) Facebook, Inc. and its affiliates.
2218
+ *
2219
+ * This source code is licensed under the MIT license found in the
2220
+ * LICENSE file in the root directory of this source tree.
2221
+ */
2222
+ var jr;
2223
+ function Hn() {
2224
+ if (jr) return Ze;
2225
+ jr = 1;
2226
+ var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, E = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
2227
+ function R(C, m, U) {
2228
+ var _, b = {}, D = null, N = null;
2229
+ U !== void 0 && (D = "" + U), m.key !== void 0 && (D = "" + m.key), m.ref !== void 0 && (N = m.ref);
2230
+ for (_ in m) c.call(m, _) && !x.hasOwnProperty(_) && (b[_] = m[_]);
2231
+ if (C && C.defaultProps) for (_ in m = C.defaultProps, m) b[_] === void 0 && (b[_] = m[_]);
2232
+ return { $$typeof: n, type: C, key: D, ref: N, props: b, _owner: E.current };
2233
+ }
2234
+ return Ze.Fragment = a, Ze.jsx = R, Ze.jsxs = R, Ze;
2235
+ }
2236
+ var Qe = {};
2237
+ /**
2238
+ * @license React
2239
+ * react-jsx-runtime.development.js
2240
+ *
2241
+ * Copyright (c) Facebook, Inc. and its affiliates.
2242
+ *
2243
+ * This source code is licensed under the MIT license found in the
2244
+ * LICENSE file in the root directory of this source tree.
2245
+ */
2246
+ var xr;
2247
+ function Kn() {
2248
+ return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
2249
+ var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), M = Symbol.iterator, ee = "@@iterator";
2250
+ function X(r) {
2251
+ if (r === null || typeof r != "object")
2252
+ return null;
2253
+ var l = M && r[M] || r[ee];
2254
+ return typeof l == "function" ? l : null;
2255
+ }
2256
+ var ue = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2257
+ function z(r) {
2258
+ {
2259
+ for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
2260
+ d[g - 1] = arguments[g];
2261
+ le("error", r, d);
2262
+ }
2263
+ }
2264
+ function le(r, l, d) {
2265
+ {
2266
+ var g = ue.ReactDebugCurrentFrame, I = g.getStackAddendum();
2267
+ I !== "" && (l += "%s", d = d.concat([I]));
2268
+ var F = d.map(function(T) {
2269
+ return String(T);
2270
+ });
2271
+ F.unshift("Warning: " + l), Function.prototype.apply.call(console[r], console, F);
2272
+ }
2273
+ }
2274
+ var ce = !1, J = !1, se = !1, he = !1, ye = !1, Oe;
2275
+ Oe = Symbol.for("react.module.reference");
2276
+ function Te(r) {
2277
+ return !!(typeof r == "string" || typeof r == "function" || r === c || r === x || ye || r === E || r === U || r === _ || he || r === N || ce || J || se || typeof r == "object" && r !== null && (r.$$typeof === D || r.$$typeof === b || r.$$typeof === R || r.$$typeof === C || r.$$typeof === m || // This needs to include all possible module reference object
2278
+ // types supported by any Flight configuration anywhere since
2279
+ // we don't know which Flight build this will end up being used
2280
+ // with.
2281
+ r.$$typeof === Oe || r.getModuleId !== void 0));
2282
+ }
2283
+ function He(r, l, d) {
2284
+ var g = r.displayName;
2285
+ if (g)
2286
+ return g;
2287
+ var I = l.displayName || l.name || "";
2288
+ return I !== "" ? d + "(" + I + ")" : d;
2289
+ }
2290
+ function Pe(r) {
2291
+ return r.displayName || "Context";
2292
+ }
2293
+ function ie(r) {
2294
+ if (r == null)
2295
+ return null;
2296
+ if (typeof r.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
2297
+ return r.displayName || r.name || null;
2298
+ if (typeof r == "string")
2299
+ return r;
2300
+ switch (r) {
2301
+ case c:
2302
+ return "Fragment";
2303
+ case a:
2304
+ return "Portal";
2305
+ case x:
2306
+ return "Profiler";
2307
+ case E:
2308
+ return "StrictMode";
2309
+ case U:
2310
+ return "Suspense";
2311
+ case _:
2312
+ return "SuspenseList";
2313
+ }
2314
+ if (typeof r == "object")
2315
+ switch (r.$$typeof) {
2316
+ case C:
2317
+ var l = r;
2318
+ return Pe(l) + ".Consumer";
2319
+ case R:
2320
+ var d = r;
2321
+ return Pe(d._context) + ".Provider";
2322
+ case m:
2323
+ return He(r, r.render, "ForwardRef");
2324
+ case b:
2325
+ var g = r.displayName || null;
2326
+ return g !== null ? g : ie(r.type) || "Memo";
2327
+ case D: {
2328
+ var I = r, F = I._payload, T = I._init;
2329
+ try {
2330
+ return ie(T(F));
2331
+ } catch {
2332
+ return null;
2333
+ }
2334
+ }
2335
+ }
2336
+ return null;
2337
+ }
2338
+ var fe = Object.assign, te = 0, pe, v, me, je, ge, o, f;
2339
+ function O() {
2340
+ }
2341
+ O.__reactDisabledLog = !0;
2342
+ function P() {
2343
+ {
2344
+ if (te === 0) {
2345
+ pe = console.log, v = console.info, me = console.warn, je = console.error, ge = console.group, o = console.groupCollapsed, f = console.groupEnd;
2346
+ var r = {
2347
+ configurable: !0,
2348
+ enumerable: !0,
2349
+ value: O,
2350
+ writable: !0
2351
+ };
2352
+ Object.defineProperties(console, {
2353
+ info: r,
2354
+ log: r,
2355
+ warn: r,
2356
+ error: r,
2357
+ group: r,
2358
+ groupCollapsed: r,
2359
+ groupEnd: r
2360
+ });
2361
+ }
2362
+ te++;
2363
+ }
2364
+ }
2365
+ function A() {
2366
+ {
2367
+ if (te--, te === 0) {
2368
+ var r = {
2369
+ configurable: !0,
2370
+ enumerable: !0,
2371
+ writable: !0
2372
+ };
2373
+ Object.defineProperties(console, {
2374
+ log: fe({}, r, {
2375
+ value: pe
2376
+ }),
2377
+ info: fe({}, r, {
2378
+ value: v
2379
+ }),
2380
+ warn: fe({}, r, {
2381
+ value: me
2382
+ }),
2383
+ error: fe({}, r, {
2384
+ value: je
2385
+ }),
2386
+ group: fe({}, r, {
2387
+ value: ge
2388
+ }),
2389
+ groupCollapsed: fe({}, r, {
2390
+ value: o
2391
+ }),
2392
+ groupEnd: fe({}, r, {
2393
+ value: f
2394
+ })
2395
+ });
2396
+ }
2397
+ te < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2398
+ }
2399
+ }
2400
+ var V = ue.ReactCurrentDispatcher, W;
2401
+ function B(r, l, d) {
2402
+ {
2403
+ if (W === void 0)
2404
+ try {
2405
+ throw Error();
2406
+ } catch (I) {
2407
+ var g = I.stack.trim().match(/\n( *(at )?)/);
2408
+ W = g && g[1] || "";
2409
+ }
2410
+ return `
2411
+ ` + W + r;
2412
+ }
2413
+ }
2414
+ var L = !1, Z;
2415
+ {
2416
+ var St = typeof WeakMap == "function" ? WeakMap : Map;
2417
+ Z = new St();
2418
+ }
2419
+ function tt(r, l) {
2420
+ if (!r || L)
2421
+ return "";
2422
+ {
2423
+ var d = Z.get(r);
2424
+ if (d !== void 0)
2425
+ return d;
2426
+ }
2427
+ var g;
2428
+ L = !0;
2429
+ var I = Error.prepareStackTrace;
2430
+ Error.prepareStackTrace = void 0;
2431
+ var F;
2432
+ F = V.current, V.current = null, P();
2433
+ try {
2434
+ if (l) {
2435
+ var T = function() {
2436
+ throw Error();
2437
+ };
2438
+ if (Object.defineProperty(T.prototype, "props", {
2439
+ set: function() {
2440
+ throw Error();
2441
+ }
2442
+ }), typeof Reflect == "object" && Reflect.construct) {
2443
+ try {
2444
+ Reflect.construct(T, []);
2445
+ } catch (ae) {
2446
+ g = ae;
2447
+ }
2448
+ Reflect.construct(r, [], T);
2449
+ } else {
2450
+ try {
2451
+ T.call();
2452
+ } catch (ae) {
2453
+ g = ae;
2454
+ }
2455
+ r.call(T.prototype);
2456
+ }
2457
+ } else {
2458
+ try {
2459
+ throw Error();
2460
+ } catch (ae) {
2461
+ g = ae;
2462
+ }
2463
+ r();
2464
+ }
2465
+ } catch (ae) {
2466
+ if (ae && g && typeof ae.stack == "string") {
2467
+ for (var S = ae.stack.split(`
2468
+ `), re = g.stack.split(`
2469
+ `), K = S.length - 1, q = re.length - 1; K >= 1 && q >= 0 && S[K] !== re[q]; )
2470
+ q--;
2471
+ for (; K >= 1 && q >= 0; K--, q--)
2472
+ if (S[K] !== re[q]) {
2473
+ if (K !== 1 || q !== 1)
2474
+ do
2475
+ if (K--, q--, q < 0 || S[K] !== re[q]) {
2476
+ var de = `
2477
+ ` + S[K].replace(" at new ", " at ");
2478
+ return r.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", r.displayName)), typeof r == "function" && Z.set(r, de), de;
2479
+ }
2480
+ while (K >= 1 && q >= 0);
2481
+ break;
2482
+ }
2483
+ }
2484
+ } finally {
2485
+ L = !1, V.current = F, A(), Error.prepareStackTrace = I;
2486
+ }
2487
+ var Se = r ? r.displayName || r.name : "", _e = Se ? B(Se) : "";
2488
+ return typeof r == "function" && Z.set(r, _e), _e;
2489
+ }
2490
+ function Be(r, l, d) {
2491
+ return tt(r, !1);
2492
+ }
2493
+ function kt(r) {
2494
+ var l = r.prototype;
2495
+ return !!(l && l.isReactComponent);
2496
+ }
2497
+ function We(r, l, d) {
2498
+ if (r == null)
2499
+ return "";
2500
+ if (typeof r == "function")
2501
+ return tt(r, kt(r));
2502
+ if (typeof r == "string")
2503
+ return B(r);
2504
+ switch (r) {
2505
+ case U:
2506
+ return B("Suspense");
2507
+ case _:
2508
+ return B("SuspenseList");
2509
+ }
2510
+ if (typeof r == "object")
2511
+ switch (r.$$typeof) {
2512
+ case m:
2513
+ return Be(r.render);
2514
+ case b:
2515
+ return We(r.type, l, d);
2516
+ case D: {
2517
+ var g = r, I = g._payload, F = g._init;
2518
+ try {
2519
+ return We(F(I), l, d);
2520
+ } catch {
2521
+ }
2522
+ }
2523
+ }
2524
+ return "";
2525
+ }
2526
+ var we = Object.prototype.hasOwnProperty, xe = {}, rt = ue.ReactDebugCurrentFrame;
2527
+ function De(r) {
2528
+ if (r) {
2529
+ var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
2530
+ rt.setExtraStackFrame(d);
2531
+ } else
2532
+ rt.setExtraStackFrame(null);
2533
+ }
2534
+ function ve(r, l, d, g, I) {
2535
+ {
2536
+ var F = Function.call.bind(we);
2537
+ for (var T in r)
2538
+ if (F(r, T)) {
2539
+ var S = void 0;
2540
+ try {
2541
+ if (typeof r[T] != "function") {
2542
+ var re = Error((g || "React class") + ": " + d + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2543
+ throw re.name = "Invariant Violation", re;
2544
+ }
2545
+ S = r[T](l, T, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2546
+ } catch (K) {
2547
+ S = K;
2548
+ }
2549
+ S && !(S instanceof Error) && (De(I), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", d, T, typeof S), De(null)), S instanceof Error && !(S.message in xe) && (xe[S.message] = !0, De(I), z("Failed %s type: %s", d, S.message), De(null));
2550
+ }
2551
+ }
2552
+ }
2553
+ var Ae = Array.isArray;
2554
+ function $e(r) {
2555
+ return Ae(r);
2556
+ }
2557
+ function nt(r) {
2558
+ {
2559
+ var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && r[Symbol.toStringTag] || r.constructor.name || "Object";
2560
+ return d;
2561
+ }
2562
+ }
2563
+ function ot(r) {
2564
+ try {
2565
+ return Ve(r), !1;
2566
+ } catch {
2567
+ return !0;
2568
+ }
2569
+ }
2570
+ function Ve(r) {
2571
+ return "" + r;
2572
+ }
2573
+ function Ke(r) {
2574
+ if (ot(r))
2575
+ return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nt(r)), Ve(r);
2576
+ }
2577
+ var Ce = ue.ReactCurrentOwner, Ot = {
2578
+ key: !0,
2579
+ ref: !0,
2580
+ __self: !0,
2581
+ __source: !0
2582
+ }, it, at, Ie;
2583
+ Ie = {};
2584
+ function Tt(r) {
2585
+ if (we.call(r, "ref")) {
2586
+ var l = Object.getOwnPropertyDescriptor(r, "ref").get;
2587
+ if (l && l.isReactWarning)
2588
+ return !1;
2589
+ }
2590
+ return r.ref !== void 0;
2591
+ }
2592
+ function Pt(r) {
2593
+ if (we.call(r, "key")) {
2594
+ var l = Object.getOwnPropertyDescriptor(r, "key").get;
2595
+ if (l && l.isReactWarning)
2596
+ return !1;
2597
+ }
2598
+ return r.key !== void 0;
2599
+ }
2600
+ function jt(r, l) {
2601
+ if (typeof r.ref == "string" && Ce.current && l && Ce.current.stateNode !== l) {
2602
+ var d = ie(Ce.current.type);
2603
+ Ie[d] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ie(Ce.current.type), r.ref), Ie[d] = !0);
2604
+ }
2605
+ }
2606
+ function Ee(r, l) {
2607
+ {
2608
+ var d = function() {
2609
+ it || (it = !0, z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
2610
+ };
2611
+ d.isReactWarning = !0, Object.defineProperty(r, "key", {
2612
+ get: d,
2613
+ configurable: !0
2614
+ });
2615
+ }
2616
+ }
2617
+ function st(r, l) {
2618
+ {
2619
+ var d = function() {
2620
+ at || (at = !0, z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
2621
+ };
2622
+ d.isReactWarning = !0, Object.defineProperty(r, "ref", {
2623
+ get: d,
2624
+ configurable: !0
2625
+ });
2626
+ }
2627
+ }
2628
+ var xt = function(r, l, d, g, I, F, T) {
2629
+ var S = {
2630
+ // This tag allows us to uniquely identify this as a React Element
2631
+ $$typeof: n,
2632
+ // Built-in properties that belong on the element
2633
+ type: r,
2634
+ key: l,
2635
+ ref: d,
2636
+ props: T,
2637
+ // Record the component responsible for creating this element.
2638
+ _owner: F
2639
+ };
2640
+ return S._store = {}, Object.defineProperty(S._store, "validated", {
2641
+ configurable: !1,
2642
+ enumerable: !1,
2643
+ writable: !0,
2644
+ value: !1
2645
+ }), Object.defineProperty(S, "_self", {
2646
+ configurable: !1,
2647
+ enumerable: !1,
2648
+ writable: !1,
2649
+ value: g
2650
+ }), Object.defineProperty(S, "_source", {
2651
+ configurable: !1,
2652
+ enumerable: !1,
2653
+ writable: !1,
2654
+ value: I
2655
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
2656
+ };
2657
+ function Dt(r, l, d, g, I) {
2658
+ {
2659
+ var F, T = {}, S = null, re = null;
2660
+ d !== void 0 && (Ke(d), S = "" + d), Pt(l) && (Ke(l.key), S = "" + l.key), Tt(l) && (re = l.ref, jt(l, I));
2661
+ for (F in l)
2662
+ we.call(l, F) && !Ot.hasOwnProperty(F) && (T[F] = l[F]);
2663
+ if (r && r.defaultProps) {
2664
+ var K = r.defaultProps;
2665
+ for (F in K)
2666
+ T[F] === void 0 && (T[F] = K[F]);
2667
+ }
2668
+ if (S || re) {
2669
+ var q = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
2670
+ S && Ee(T, q), re && st(T, q);
2671
+ }
2672
+ return xt(r, S, re, I, g, Ce.current, T);
2673
+ }
2674
+ }
2675
+ var Ue = ue.ReactCurrentOwner, ut = ue.ReactDebugCurrentFrame;
2676
+ function be(r) {
2677
+ if (r) {
2678
+ var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
2679
+ ut.setExtraStackFrame(d);
2680
+ } else
2681
+ ut.setExtraStackFrame(null);
2682
+ }
2683
+ var Ne;
2684
+ Ne = !1;
2685
+ function Re(r) {
2686
+ return typeof r == "object" && r !== null && r.$$typeof === n;
2687
+ }
2688
+ function Me() {
2689
+ {
2690
+ if (Ue.current) {
2691
+ var r = ie(Ue.current.type);
2692
+ if (r)
2693
+ return `
2694
+
2695
+ Check the render method of \`` + r + "`.";
2696
+ }
2697
+ return "";
2698
+ }
2699
+ }
2700
+ function At(r) {
2701
+ return "";
2702
+ }
2703
+ var lt = {};
2704
+ function It(r) {
2705
+ {
2706
+ var l = Me();
2707
+ if (!l) {
2708
+ var d = typeof r == "string" ? r : r.displayName || r.name;
2709
+ d && (l = `
2710
+
2711
+ Check the top-level render call using <` + d + ">.");
2712
+ }
2713
+ return l;
2714
+ }
2715
+ }
2716
+ function ct(r, l) {
2717
+ {
2718
+ if (!r._store || r._store.validated || r.key != null)
2719
+ return;
2720
+ r._store.validated = !0;
2721
+ var d = It(l);
2722
+ if (lt[d])
2723
+ return;
2724
+ lt[d] = !0;
2725
+ var g = "";
2726
+ r && r._owner && r._owner !== Ue.current && (g = " It was passed a child from " + ie(r._owner.type) + "."), be(r), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, g), be(null);
2727
+ }
2728
+ }
2729
+ function ft(r, l) {
2730
+ {
2731
+ if (typeof r != "object")
2732
+ return;
2733
+ if ($e(r))
2734
+ for (var d = 0; d < r.length; d++) {
2735
+ var g = r[d];
2736
+ Re(g) && ct(g, l);
2737
+ }
2738
+ else if (Re(r))
2739
+ r._store && (r._store.validated = !0);
2740
+ else if (r) {
2741
+ var I = X(r);
2742
+ if (typeof I == "function" && I !== r.entries)
2743
+ for (var F = I.call(r), T; !(T = F.next()).done; )
2744
+ Re(T.value) && ct(T.value, l);
2745
+ }
2746
+ }
2747
+ }
2748
+ function Le(r) {
2749
+ {
2750
+ var l = r.type;
2751
+ if (l == null || typeof l == "string")
2752
+ return;
2753
+ var d;
2754
+ if (typeof l == "function")
2755
+ d = l.propTypes;
2756
+ else if (typeof l == "object" && (l.$$typeof === m || // Note: Memo only checks outer props here.
2757
+ // Inner props are checked in the reconciler.
2758
+ l.$$typeof === b))
2759
+ d = l.propTypes;
2760
+ else
2761
+ return;
2762
+ if (d) {
2763
+ var g = ie(l);
2764
+ ve(d, r.props, "prop", g, r);
2765
+ } else if (l.PropTypes !== void 0 && !Ne) {
2766
+ Ne = !0;
2767
+ var I = ie(l);
2768
+ z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
2769
+ }
2770
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2771
+ }
2772
+ }
2773
+ function Ge(r) {
2774
+ {
2775
+ for (var l = Object.keys(r.props), d = 0; d < l.length; d++) {
2776
+ var g = l[d];
2777
+ if (g !== "children" && g !== "key") {
2778
+ be(r), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), be(null);
2779
+ break;
2780
+ }
2781
+ }
2782
+ r.ref !== null && (be(r), z("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
2783
+ }
2784
+ }
2785
+ var qe = {};
2786
+ function dt(r, l, d, g, I, F) {
2787
+ {
2788
+ var T = Te(r);
2789
+ if (!T) {
2790
+ var S = "";
2791
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2792
+ var re = At();
2793
+ re ? S += re : S += Me();
2794
+ var K;
2795
+ r === null ? K = "null" : $e(r) ? K = "array" : r !== void 0 && r.$$typeof === n ? (K = "<" + (ie(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : K = typeof r, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, S);
2796
+ }
2797
+ var q = Dt(r, l, d, I, F);
2798
+ if (q == null)
2799
+ return q;
2800
+ if (T) {
2801
+ var de = l.children;
2802
+ if (de !== void 0)
2803
+ if (g)
2804
+ if ($e(de)) {
2805
+ for (var Se = 0; Se < de.length; Se++)
2806
+ ft(de[Se], r);
2807
+ Object.freeze && Object.freeze(de);
2808
+ } else
2809
+ z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2810
+ else
2811
+ ft(de, r);
2812
+ }
2813
+ if (we.call(l, "key")) {
2814
+ var _e = ie(r), ae = Object.keys(l).filter(function(Bt) {
2815
+ return Bt !== "key";
2816
+ }), Xe = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
2817
+ if (!qe[_e + Xe]) {
2818
+ var Ft = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
2819
+ z(`A props object containing a "key" prop is being spread into JSX:
2820
+ let props = %s;
2821
+ <%s {...props} />
2822
+ React keys must be passed directly to JSX without using spread:
2823
+ let props = %s;
2824
+ <%s key={someKey} {...props} />`, Xe, _e, Ft, _e), qe[_e + Xe] = !0;
2825
+ }
2826
+ }
2827
+ return r === c ? Ge(q) : Le(q), q;
2828
+ }
2829
+ }
2830
+ function Nt(r, l, d) {
2831
+ return dt(r, l, d, !0);
2832
+ }
2833
+ function Mt(r, l, d) {
2834
+ return dt(r, l, d, !1);
2835
+ }
2836
+ var Lt = Mt, pt = Nt;
2837
+ Qe.Fragment = c, Qe.jsx = Lt, Qe.jsxs = pt;
2838
+ }()), Qe;
2839
+ }
2840
+ process.env.NODE_ENV === "production" ? qt.exports = Hn() : qt.exports = Kn();
2841
+ var Dr = qt.exports, Gn = Xt();
2842
+ const Fe = /* @__PURE__ */ Un(Gn);
2843
+ var Vr = {
2844
+ color: void 0,
2845
+ size: void 0,
2846
+ className: void 0,
2847
+ style: void 0,
2848
+ attr: void 0
2849
+ }, Ar = Fe.createContext && /* @__PURE__ */ Fe.createContext(Vr), qn = ["attr", "size", "title"];
2850
+ function Xn(s, n) {
2851
+ if (s == null) return {};
2852
+ var a = Jn(s, n), c, E;
2853
+ if (Object.getOwnPropertySymbols) {
2854
+ var x = Object.getOwnPropertySymbols(s);
2855
+ for (E = 0; E < x.length; E++)
2856
+ c = x[E], !(n.indexOf(c) >= 0) && Object.prototype.propertyIsEnumerable.call(s, c) && (a[c] = s[c]);
2857
+ }
2858
+ return a;
2859
+ }
2860
+ function Jn(s, n) {
2861
+ if (s == null) return {};
2862
+ var a = {};
2863
+ for (var c in s)
2864
+ if (Object.prototype.hasOwnProperty.call(s, c)) {
2865
+ if (n.indexOf(c) >= 0) continue;
2866
+ a[c] = s[c];
2867
+ }
2868
+ return a;
2869
+ }
2870
+ function Et() {
2871
+ return Et = Object.assign ? Object.assign.bind() : function(s) {
2872
+ for (var n = 1; n < arguments.length; n++) {
2873
+ var a = arguments[n];
2874
+ for (var c in a)
2875
+ Object.prototype.hasOwnProperty.call(a, c) && (s[c] = a[c]);
2876
+ }
2877
+ return s;
2878
+ }, Et.apply(this, arguments);
2879
+ }
2880
+ function Ir(s, n) {
2881
+ var a = Object.keys(s);
2882
+ if (Object.getOwnPropertySymbols) {
2883
+ var c = Object.getOwnPropertySymbols(s);
2884
+ n && (c = c.filter(function(E) {
2885
+ return Object.getOwnPropertyDescriptor(s, E).enumerable;
2886
+ })), a.push.apply(a, c);
2887
+ }
2888
+ return a;
2889
+ }
2890
+ function Rt(s) {
2891
+ for (var n = 1; n < arguments.length; n++) {
2892
+ var a = arguments[n] != null ? arguments[n] : {};
2893
+ n % 2 ? Ir(Object(a), !0).forEach(function(c) {
2894
+ Zn(s, c, a[c]);
2895
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(a)) : Ir(Object(a)).forEach(function(c) {
2896
+ Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(a, c));
2897
+ });
2898
+ }
2899
+ return s;
2900
+ }
2901
+ function Zn(s, n, a) {
2902
+ return n = Qn(n), n in s ? Object.defineProperty(s, n, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : s[n] = a, s;
2903
+ }
2904
+ function Qn(s) {
2905
+ var n = eo(s, "string");
2906
+ return typeof n == "symbol" ? n : n + "";
2907
+ }
2908
+ function eo(s, n) {
2909
+ if (typeof s != "object" || !s) return s;
2910
+ var a = s[Symbol.toPrimitive];
2911
+ if (a !== void 0) {
2912
+ var c = a.call(s, n || "default");
2913
+ if (typeof c != "object") return c;
2914
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2915
+ }
2916
+ return (n === "string" ? String : Number)(s);
2917
+ }
2918
+ function Ur(s) {
2919
+ return s && s.map((n, a) => /* @__PURE__ */ Fe.createElement(n.tag, Rt({
2920
+ key: a
2921
+ }, n.attr), Ur(n.child)));
2922
+ }
2923
+ function zr(s) {
2924
+ return (n) => /* @__PURE__ */ Fe.createElement(to, Et({
2925
+ attr: Rt({}, s.attr)
2926
+ }, n), Ur(s.child));
2927
+ }
2928
+ function to(s) {
2929
+ var n = (a) => {
2930
+ var {
2931
+ attr: c,
2932
+ size: E,
2933
+ title: x
2934
+ } = s, R = Xn(s, qn), C = E || a.size || "1em", m;
2935
+ return a.className && (m = a.className), s.className && (m = (m ? m + " " : "") + s.className), /* @__PURE__ */ Fe.createElement("svg", Et({
2936
+ stroke: "currentColor",
2937
+ fill: "currentColor",
2938
+ strokeWidth: "0"
2939
+ }, a.attr, c, R, {
2940
+ className: m,
2941
+ style: Rt(Rt({
2942
+ color: s.color || a.color
2943
+ }, a.style), s.style),
2944
+ height: C,
2945
+ width: C,
2946
+ xmlns: "http://www.w3.org/2000/svg"
2947
+ }), x && /* @__PURE__ */ Fe.createElement("title", null, x), s.children);
2948
+ };
2949
+ return Ar !== void 0 ? /* @__PURE__ */ Fe.createElement(Ar.Consumer, null, (a) => n(a)) : n(Vr);
2950
+ }
2951
+ function ro(s) {
2952
+ return zr({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M3 3m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1zm9 -1v18" }, child: [] }] })(s);
2953
+ }
2954
+ function no(s) {
2955
+ return zr({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M3 3m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1zm6 -1v18m6 -18v18" }, child: [] }] })(s);
2956
+ }
2957
+ function oo(s) {
2958
+ return "column" in s.schema.blockSchema && s.schema.blockSchema.columnList === kr.blockSchema.columnList && "column" in s.schema.blockSchema && s.schema.blockSchema.column === kr.blockSchema.column;
2959
+ }
2960
+ function mo(s) {
2961
+ const n = [];
2962
+ return oo(s) && n.push(
2963
+ {
2964
+ ...Sr(s).slash_menu.two_columns,
2965
+ icon: /* @__PURE__ */ Dr.jsx(ro, { size: 18 }),
2966
+ onItemClick: () => {
2967
+ Cr(s, {
2968
+ type: "columnList",
2969
+ children: [
2970
+ {
2971
+ type: "column",
2972
+ children: [
2973
+ {
2974
+ type: "paragraph"
2975
+ }
2976
+ ]
2977
+ },
2978
+ {
2979
+ type: "column",
2980
+ children: [
2981
+ {
2982
+ type: "paragraph"
2983
+ }
2984
+ ]
2985
+ }
2986
+ ]
2987
+ });
2988
+ }
2989
+ },
2990
+ {
2991
+ ...Sr(s).slash_menu.three_columns,
2992
+ icon: /* @__PURE__ */ Dr.jsx(no, { size: 18 }),
2993
+ onItemClick: () => {
2994
+ Cr(s, {
2995
+ type: "columnList",
2996
+ children: [
2997
+ {
2998
+ type: "column",
2999
+ children: [
3000
+ {
3001
+ type: "paragraph"
3002
+ }
3003
+ ]
3004
+ },
3005
+ {
3006
+ type: "column",
3007
+ children: [
3008
+ {
3009
+ type: "paragraph"
3010
+ }
3011
+ ]
3012
+ },
3013
+ {
3014
+ type: "column",
3015
+ children: [
3016
+ {
3017
+ type: "paragraph"
3018
+ }
3019
+ ]
3020
+ }
3021
+ ]
3022
+ });
3023
+ }
3024
+ }
3025
+ ), n;
3026
+ }
3027
+ export {
3028
+ Br as ColumnBlock,
3029
+ Wr as ColumnListBlock,
3030
+ oo as checkMultiColumnBlocksInSchema,
3031
+ Sr as getMultiColumnDictionary,
3032
+ mo as getMultiColumnSlashMenuItems,
3033
+ fo as locales,
3034
+ ho as multiColumnDropCursor,
3035
+ kr as multiColumnSchema,
3036
+ po as withMultiColumn
3037
+ };
3038
+ //# sourceMappingURL=blocknote-xl-multi-column.js.map