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