@blocknote/xl-multi-column 0.19.0 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-xl-multi-column.js +245 -228
- package/dist/blocknote-xl-multi-column.js.map +1 -1
- package/dist/blocknote-xl-multi-column.umd.cjs +18 -18
- package/dist/blocknote-xl-multi-column.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/extensions/ColumnResize/ColumnResizeExtension.ts +9 -3
- package/src/extensions/DropCursor/MultiColumnDropCursorPlugin.ts +34 -12
- package/src/test/commands/__snapshots__/removeBlocks.test.ts.snap +226 -0
- package/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap +175 -0
- package/src/test/commands/removeBlocks.test.ts +19 -0
- package/src/test/commands/replaceBlocks.test.ts +40 -0
- package/types/src/test/commands/removeBlocks.test.d.ts +1 -0
- package/types/src/test/commands/replaceBlocks.test.d.ts +1 -0
- package/types/src/test/setupTestEnv.d.ts +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var pn = Object.defineProperty;
|
|
2
2
|
var hn = (s, n, a) => n in s ? pn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a;
|
|
3
|
-
var
|
|
4
|
-
import { getNodeById as wr, createStronglyTypedTiptapNode as Nr, createBlockSpecFromStronglyTypedTiptapNode as Mr, BlockNoteSchema as Lr, getBlockInfo as mn, nodeToBlock as Gt, UniqueID as vn,
|
|
3
|
+
var ue = (s, n, a) => hn(s, typeof n != "symbol" ? n + "" : n, a);
|
|
4
|
+
import { getNodeById as wr, createStronglyTypedTiptapNode as Nr, createBlockSpecFromStronglyTypedTiptapNode as Mr, BlockNoteSchema as Lr, getBlockInfo as mn, nodeToBlock as Gt, UniqueID as vn, getNearestBlockPos as yn, insertOrUpdateBlock as Cr } from "@blocknote/core";
|
|
5
5
|
import { Extension as gn } from "@tiptap/core";
|
|
6
6
|
import { PluginKey as bn, Plugin as Fr } from "prosemirror-state";
|
|
7
7
|
import { DecorationSet as Er, Decoration as Rr } from "prosemirror-view";
|
|
@@ -257,11 +257,13 @@ function Sr(s) {
|
|
|
257
257
|
const ke = new bn("ColumnResizePlugin");
|
|
258
258
|
class Mn {
|
|
259
259
|
constructor(n, a) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
ue(this, "editor");
|
|
261
|
+
ue(this, "view");
|
|
262
|
+
ue(this, "RESIZE_MARGIN_WIDTH_PX", 20);
|
|
263
|
+
ue(this, "COLUMN_MIN_WIDTH_PERCENT", 0.5);
|
|
264
|
+
ue(this, "getColumnHoverOrDefaultState", (n) => {
|
|
265
|
+
if (!this.editor.isEditable)
|
|
266
|
+
return { type: "default" };
|
|
265
267
|
const a = n.target;
|
|
266
268
|
if (!this.view.dom.contains(a))
|
|
267
269
|
return { type: "default" };
|
|
@@ -270,21 +272,21 @@ class Mn {
|
|
|
270
272
|
);
|
|
271
273
|
if (!c)
|
|
272
274
|
return { type: "default" };
|
|
273
|
-
const E = n.clientX,
|
|
275
|
+
const E = n.clientX, D = c.getBoundingClientRect(), R = E < D.left + this.RESIZE_MARGIN_WIDTH_PX ? "left" : E > D.right - this.RESIZE_MARGIN_WIDTH_PX ? "right" : "none", C = R === "left" ? c.previousElementSibling : R === "right" ? c.nextElementSibling : void 0;
|
|
274
276
|
if (!C)
|
|
275
277
|
return { type: "default" };
|
|
276
|
-
const m = R === "left" ? C : c, U = R === "left" ? c : C, _ = m.getAttribute("data-id"), b = U.getAttribute("data-id"),
|
|
278
|
+
const m = R === "left" ? C : c, U = R === "left" ? c : C, _ = m.getAttribute("data-id"), b = U.getAttribute("data-id"), j = wr(_, this.view.state.doc), N = wr(
|
|
277
279
|
b,
|
|
278
280
|
this.view.state.doc
|
|
279
281
|
);
|
|
280
|
-
if (!
|
|
282
|
+
if (!j || !N || !j.posBeforeNode)
|
|
281
283
|
throw new Error("Column not found");
|
|
282
284
|
return {
|
|
283
285
|
type: "hover",
|
|
284
286
|
leftColumn: {
|
|
285
287
|
element: m,
|
|
286
288
|
id: _,
|
|
287
|
-
...
|
|
289
|
+
...j
|
|
288
290
|
},
|
|
289
291
|
rightColumn: {
|
|
290
292
|
element: U,
|
|
@@ -296,12 +298,12 @@ class Mn {
|
|
|
296
298
|
// When the user mouses down near the boundary between two columns, we
|
|
297
299
|
// want to set the plugin state to resize, so the columns can be resized
|
|
298
300
|
// by moving the mouse.
|
|
299
|
-
|
|
301
|
+
ue(this, "mouseDownHandler", (n) => {
|
|
300
302
|
let a = this.getColumnHoverOrDefaultState(n);
|
|
301
303
|
if (a.type === "default")
|
|
302
304
|
return;
|
|
303
305
|
n.preventDefault();
|
|
304
|
-
const c = n.clientX, E = a.leftColumn.element.getBoundingClientRect().width,
|
|
306
|
+
const c = n.clientX, E = a.leftColumn.element.getBoundingClientRect().width, D = a.rightColumn.element.getBoundingClientRect().width, R = a.leftColumn.node.attrs.width, C = a.rightColumn.node.attrs.width;
|
|
305
307
|
a = {
|
|
306
308
|
type: "resize",
|
|
307
309
|
startPos: c,
|
|
@@ -312,7 +314,7 @@ class Mn {
|
|
|
312
314
|
},
|
|
313
315
|
rightColumn: {
|
|
314
316
|
...a.rightColumn,
|
|
315
|
-
widthPx:
|
|
317
|
+
widthPx: D,
|
|
316
318
|
widthPercent: C
|
|
317
319
|
}
|
|
318
320
|
}, this.view.dispatch(
|
|
@@ -323,22 +325,22 @@ class Mn {
|
|
|
323
325
|
// hover state if the mouse is near the boundary between two columns, or
|
|
324
326
|
// default otherwise. If the plugin is in a resize state, we want to
|
|
325
327
|
// update the column widths based on the horizontal mouse movement.
|
|
326
|
-
|
|
328
|
+
ue(this, "mouseMoveHandler", (n) => {
|
|
327
329
|
var m, U;
|
|
328
330
|
const a = ke.getState(this.view.state);
|
|
329
331
|
if (!a)
|
|
330
332
|
return;
|
|
331
333
|
if (a.type !== "resize") {
|
|
332
|
-
const _ = this.getColumnHoverOrDefaultState(n), b = a.type === "default" && _.type === "default",
|
|
333
|
-
if (b ||
|
|
334
|
+
const _ = this.getColumnHoverOrDefaultState(n), b = a.type === "default" && _.type === "default", j = a.type !== "default" && _.type !== "default" && a.leftColumn.id === _.leftColumn.id && a.rightColumn.id === _.rightColumn.id;
|
|
335
|
+
if (b || j || _.type === "hover" && ((U = (m = this.editor.sideMenu.view) == null ? void 0 : m.state) != null && U.show))
|
|
334
336
|
return;
|
|
335
337
|
this.view.dispatch(
|
|
336
338
|
this.view.state.tr.setMeta(ke, _)
|
|
337
339
|
);
|
|
338
340
|
return;
|
|
339
341
|
}
|
|
340
|
-
const E = (n.clientX - a.startPos) * a.leftColumn.widthPercent,
|
|
341
|
-
let R = a.leftColumn.widthPercent +
|
|
342
|
+
const E = (n.clientX - a.startPos) * a.leftColumn.widthPercent, D = (a.leftColumn.widthPx + E) / a.leftColumn.widthPx - 1;
|
|
343
|
+
let R = a.leftColumn.widthPercent + D, C = a.rightColumn.widthPercent - D;
|
|
342
344
|
R < this.COLUMN_MIN_WIDTH_PERCENT ? (C -= this.COLUMN_MIN_WIDTH_PERCENT - R, R = this.COLUMN_MIN_WIDTH_PERCENT) : C < this.COLUMN_MIN_WIDTH_PERCENT && (R -= this.COLUMN_MIN_WIDTH_PERCENT - C, C = this.COLUMN_MIN_WIDTH_PERCENT), this.view.dispatch(
|
|
343
345
|
this.view.state.tr.setNodeAttribute(
|
|
344
346
|
a.leftColumn.posBeforeNode,
|
|
@@ -354,7 +356,7 @@ class Mn {
|
|
|
354
356
|
// If the plugin is in a resize state, we want to revert it to a default
|
|
355
357
|
// or hover, depending on where the mouse cursor is, when the user
|
|
356
358
|
// releases the mouse button.
|
|
357
|
-
|
|
359
|
+
ue(this, "mouseUpHandler", (n) => {
|
|
358
360
|
const a = ke.getState(this.view.state);
|
|
359
361
|
if (!a || a.type !== "resize")
|
|
360
362
|
return;
|
|
@@ -363,11 +365,11 @@ class Mn {
|
|
|
363
365
|
this.view.state.tr.setMeta(ke, c)
|
|
364
366
|
), this.editor.sideMenu.unfreezeMenu();
|
|
365
367
|
});
|
|
366
|
-
// This is a required method for PluginView, so we get a type error if we
|
|
367
|
-
// don't implement it.
|
|
368
|
-
oe(this, "update");
|
|
369
368
|
this.editor = n, this.view = a, this.view.dom.addEventListener("mousedown", this.mouseDownHandler), document.body.addEventListener("mousemove", this.mouseMoveHandler), document.body.addEventListener("mouseup", this.mouseUpHandler);
|
|
370
369
|
}
|
|
370
|
+
destroy() {
|
|
371
|
+
this.view.dom.removeEventListener("mousedown", this.mouseDownHandler), document.body.removeEventListener("mousemove", this.mouseMoveHandler), document.body.removeEventListener("mouseup", this.mouseUpHandler);
|
|
372
|
+
}
|
|
371
373
|
}
|
|
372
374
|
const Ln = (s) => new Fr({
|
|
373
375
|
key: ke,
|
|
@@ -523,7 +525,7 @@ function ho(s) {
|
|
|
523
525
|
return new Vn(a, s);
|
|
524
526
|
},
|
|
525
527
|
props: {
|
|
526
|
-
handleDrop(a, c, E,
|
|
528
|
+
handleDrop(a, c, E, D) {
|
|
527
529
|
const R = a.posAtCoords($n(c));
|
|
528
530
|
if (!R)
|
|
529
531
|
throw new Error("Could not get event position");
|
|
@@ -531,7 +533,7 @@ function ho(s) {
|
|
|
531
533
|
let b = "regular";
|
|
532
534
|
if (c.clientX <= _.left + _.width * Ct && (b = "left"), c.clientX >= _.right - _.width * Ct && (b = "right"), b === "regular")
|
|
533
535
|
return !1;
|
|
534
|
-
const
|
|
536
|
+
const j = Gt(
|
|
535
537
|
E.content.child(0),
|
|
536
538
|
n.schema.blockSchema,
|
|
537
539
|
n.schema.inlineContentSchema,
|
|
@@ -546,30 +548,31 @@ function ho(s) {
|
|
|
546
548
|
n.schema.styleSchema
|
|
547
549
|
);
|
|
548
550
|
let ee = 0;
|
|
549
|
-
M.children.forEach((
|
|
550
|
-
ee +=
|
|
551
|
+
M.children.forEach((te) => {
|
|
552
|
+
ee += te.props.width;
|
|
551
553
|
});
|
|
552
554
|
const X = ee / M.children.length;
|
|
553
555
|
if (X < 0.99 || X > 1.01) {
|
|
554
|
-
const
|
|
555
|
-
M.children.forEach((
|
|
556
|
-
|
|
556
|
+
const te = 1 / X;
|
|
557
|
+
M.children.forEach((ie) => {
|
|
558
|
+
ie.props.width = ie.props.width * te;
|
|
557
559
|
});
|
|
558
560
|
}
|
|
559
|
-
const
|
|
560
|
-
(
|
|
561
|
-
), z = M.children.
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
561
|
+
const ce = M.children.findIndex(
|
|
562
|
+
(te) => te.id === m.bnBlock.node.attrs.id
|
|
563
|
+
), z = M.children.map((te) => ({
|
|
564
|
+
...te,
|
|
565
|
+
children: te.children.filter(
|
|
566
|
+
(ie) => ie.id !== j.id
|
|
567
|
+
)
|
|
568
|
+
})).filter((te) => te.children.length > 0).toSpliced(b === "left" ? ce : ce + 1, 0, {
|
|
569
|
+
type: "column",
|
|
570
|
+
children: [j],
|
|
571
|
+
props: {},
|
|
572
|
+
content: void 0,
|
|
573
|
+
id: vn.options.generateID()
|
|
574
|
+
});
|
|
575
|
+
n.removeBlocks([j]), n.updateBlock(M, {
|
|
573
576
|
children: z
|
|
574
577
|
});
|
|
575
578
|
} else {
|
|
@@ -578,8 +581,8 @@ function ho(s) {
|
|
|
578
581
|
n.schema.blockSchema,
|
|
579
582
|
n.schema.inlineContentSchema,
|
|
580
583
|
n.schema.styleSchema
|
|
581
|
-
), M = b === "left" ? [
|
|
582
|
-
n.removeBlocks([
|
|
584
|
+
), M = b === "left" ? [j, N] : [N, j];
|
|
585
|
+
n.removeBlocks([j]), n.replaceBlocks(
|
|
583
586
|
[N],
|
|
584
587
|
[
|
|
585
588
|
{
|
|
@@ -599,23 +602,34 @@ function ho(s) {
|
|
|
599
602
|
}
|
|
600
603
|
class Vn {
|
|
601
604
|
constructor(n, a) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
ue(this, "width");
|
|
606
|
+
ue(this, "color");
|
|
607
|
+
ue(this, "class");
|
|
608
|
+
ue(this, "cursorPos");
|
|
609
|
+
ue(this, "element", null);
|
|
610
|
+
ue(this, "timeout");
|
|
611
|
+
ue(this, "handlers");
|
|
609
612
|
this.editorView = n, this.width = a.width ?? 1, this.color = a.color === !1 ? void 0 : a.color || "black", this.class = a.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((c) => {
|
|
610
|
-
const E = (
|
|
611
|
-
this[c](
|
|
613
|
+
const E = (D) => {
|
|
614
|
+
this[c](D);
|
|
612
615
|
};
|
|
613
|
-
return n.dom.addEventListener(
|
|
616
|
+
return n.dom.addEventListener(
|
|
617
|
+
c,
|
|
618
|
+
E,
|
|
619
|
+
// drop event captured in bubbling phase to make sure
|
|
620
|
+
// "cursorPos" is set to undefined before the "handleDrop" handler is called
|
|
621
|
+
// (otherwise an error could be thrown, see https://github.com/TypeCellOS/BlockNote/pull/1240)
|
|
622
|
+
c === "drop" ? !0 : void 0
|
|
623
|
+
), { name: c, handler: E };
|
|
614
624
|
});
|
|
615
625
|
}
|
|
616
626
|
destroy() {
|
|
617
627
|
this.handlers.forEach(
|
|
618
|
-
({ name: n, handler: a }) => this.editorView.dom.removeEventListener(
|
|
628
|
+
({ name: n, handler: a }) => this.editorView.dom.removeEventListener(
|
|
629
|
+
n,
|
|
630
|
+
a,
|
|
631
|
+
n === "drop" ? !0 : void 0
|
|
632
|
+
)
|
|
619
633
|
);
|
|
620
634
|
}
|
|
621
635
|
update(n, a) {
|
|
@@ -630,12 +644,15 @@ class Vn {
|
|
|
630
644
|
throw new Error("updateOverlay called with no cursor position");
|
|
631
645
|
const n = this.editorView.state.doc.resolve(this.cursorPos.pos), a = !n.parent.inlineContent;
|
|
632
646
|
let c;
|
|
633
|
-
const E = this.editorView.dom,
|
|
647
|
+
const E = this.editorView.dom, D = E.getBoundingClientRect(), R = D.width / E.offsetWidth, C = D.height / E.offsetHeight;
|
|
634
648
|
if (a) {
|
|
635
|
-
const b = n.nodeBefore,
|
|
636
|
-
if (b ||
|
|
649
|
+
const b = n.nodeBefore, j = n.nodeAfter;
|
|
650
|
+
if (b || j)
|
|
637
651
|
if (this.cursorPos.position === "left" || this.cursorPos.position === "right") {
|
|
638
|
-
const
|
|
652
|
+
const N = this.editorView.nodeDOM(this.cursorPos.pos);
|
|
653
|
+
if (!N)
|
|
654
|
+
throw new Error("nodeDOM returned null in updateOverlay");
|
|
655
|
+
const M = N.getBoundingClientRect(), ee = this.width / 2 * C, X = this.cursorPos.position === "left" ? M.left : M.right;
|
|
639
656
|
c = {
|
|
640
657
|
left: X - ee,
|
|
641
658
|
right: X + ee,
|
|
@@ -651,7 +668,7 @@ class Vn {
|
|
|
651
668
|
if (N) {
|
|
652
669
|
const M = N.getBoundingClientRect();
|
|
653
670
|
let ee = b ? M.bottom : M.top;
|
|
654
|
-
b &&
|
|
671
|
+
b && j && (ee = (ee + this.editorView.nodeDOM(this.cursorPos.pos).getBoundingClientRect().top) / 2);
|
|
655
672
|
const X = this.width / 2 * C;
|
|
656
673
|
this.cursorPos.position === "regular" && (c = {
|
|
657
674
|
left: M.left,
|
|
@@ -663,10 +680,10 @@ class Vn {
|
|
|
663
680
|
}
|
|
664
681
|
}
|
|
665
682
|
if (!c) {
|
|
666
|
-
const b = this.editorView.coordsAtPos(this.cursorPos.pos),
|
|
683
|
+
const b = this.editorView.coordsAtPos(this.cursorPos.pos), j = this.width / 2 * R;
|
|
667
684
|
c = {
|
|
668
|
-
left: b.left -
|
|
669
|
-
right: b.left +
|
|
685
|
+
left: b.left - j,
|
|
686
|
+
right: b.left + j,
|
|
670
687
|
top: b.top,
|
|
671
688
|
bottom: b.bottom
|
|
672
689
|
};
|
|
@@ -680,8 +697,8 @@ class Vn {
|
|
|
680
697
|
if (!m || m === document.body && getComputedStyle(m).position === "static")
|
|
681
698
|
U = -window.scrollX, _ = -window.scrollY;
|
|
682
699
|
else {
|
|
683
|
-
const b = m.getBoundingClientRect(),
|
|
684
|
-
U = b.left - m.scrollLeft *
|
|
700
|
+
const b = m.getBoundingClientRect(), j = b.width / m.offsetWidth, N = b.height / m.offsetHeight;
|
|
701
|
+
U = b.left - m.scrollLeft * j, _ = b.top - m.scrollTop * N;
|
|
685
702
|
}
|
|
686
703
|
this.element.style.left = (c.left - U) / R + "px", this.element.style.top = (c.top - _) / C + "px", this.element.style.width = (c.right - c.left) / R + "px", this.element.style.height = (c.bottom - c.top) / C + "px";
|
|
687
704
|
}
|
|
@@ -695,8 +712,8 @@ class Vn {
|
|
|
695
712
|
const a = this.editorView.posAtCoords({
|
|
696
713
|
left: n.clientX,
|
|
697
714
|
top: n.clientY
|
|
698
|
-
}), c = a && a.inside >= 0 && this.editorView.state.doc.nodeAt(a.inside), E = c && c.type.spec.disableDropCursor,
|
|
699
|
-
if (a && !
|
|
715
|
+
}), c = a && a.inside >= 0 && this.editorView.state.doc.nodeAt(a.inside), E = c && c.type.spec.disableDropCursor, D = typeof E == "function" ? E(this.editorView, a, n) : E;
|
|
716
|
+
if (a && !D) {
|
|
700
717
|
let R = "regular", C = a.pos;
|
|
701
718
|
const m = $r(this.editorView.state, a), _ = this.editorView.nodeDOM(m.posBeforeNode).getBoundingClientRect();
|
|
702
719
|
if (n.clientX <= _.left + _.width * Ct && (R = "left", C = m.posBeforeNode), n.clientX >= _.right - _.width * Ct && (R = "right", C = m.posBeforeNode), R === "regular" && this.editorView.dragging && this.editorView.dragging.slice) {
|
|
@@ -714,7 +731,7 @@ class Vn {
|
|
|
714
731
|
this.scheduleRemoval(20);
|
|
715
732
|
}
|
|
716
733
|
drop() {
|
|
717
|
-
this.
|
|
734
|
+
this.setCursor(void 0);
|
|
718
735
|
}
|
|
719
736
|
dragleave(n) {
|
|
720
737
|
(n.target === this.editorView.dom || !this.editorView.dom.contains(n.relatedTarget)) && this.setCursor(void 0);
|
|
@@ -745,8 +762,8 @@ var Or;
|
|
|
745
762
|
function zn() {
|
|
746
763
|
if (Or) return k;
|
|
747
764
|
Or = 1;
|
|
748
|
-
var s = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"),
|
|
749
|
-
function
|
|
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) {
|
|
750
767
|
return o === null || typeof o != "object" ? null : (o = b && o[b] || o["@@iterator"], typeof o == "function" ? o : null);
|
|
751
768
|
}
|
|
752
769
|
var N = { isMounted: function() {
|
|
@@ -764,15 +781,15 @@ function zn() {
|
|
|
764
781
|
}, X.prototype.forceUpdate = function(o) {
|
|
765
782
|
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
766
783
|
};
|
|
767
|
-
function
|
|
784
|
+
function ce() {
|
|
768
785
|
}
|
|
769
|
-
|
|
786
|
+
ce.prototype = X.prototype;
|
|
770
787
|
function z(o, f, O) {
|
|
771
788
|
this.props = o, this.context = f, this.refs = ee, this.updater = O || N;
|
|
772
789
|
}
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
var
|
|
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 };
|
|
776
793
|
function ye(o, f, O) {
|
|
777
794
|
var P, A = {}, V = null, W = null;
|
|
778
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]);
|
|
@@ -783,7 +800,7 @@ function zn() {
|
|
|
783
800
|
A.children = L;
|
|
784
801
|
}
|
|
785
802
|
if (o && o.defaultProps) for (P in B = o.defaultProps, B) A[P] === void 0 && (A[P] = B[P]);
|
|
786
|
-
return { $$typeof: s, type: o, key: V, ref: W, props: A, _owner:
|
|
803
|
+
return { $$typeof: s, type: o, key: V, ref: W, props: A, _owner: le.current };
|
|
787
804
|
}
|
|
788
805
|
function Oe(o, f) {
|
|
789
806
|
return { $$typeof: s, type: o.type, key: f, ref: o.ref, props: o.props, _owner: o._owner };
|
|
@@ -798,7 +815,7 @@ function zn() {
|
|
|
798
815
|
});
|
|
799
816
|
}
|
|
800
817
|
var Pe = /\/+/g;
|
|
801
|
-
function
|
|
818
|
+
function ae(o, f) {
|
|
802
819
|
return typeof o == "object" && o !== null && o.key != null ? He("" + o.key) : f.toString(36);
|
|
803
820
|
}
|
|
804
821
|
function fe(o, f, O, P, A) {
|
|
@@ -818,19 +835,19 @@ function zn() {
|
|
|
818
835
|
W = !0;
|
|
819
836
|
}
|
|
820
837
|
}
|
|
821
|
-
if (W) return W = o, A = A(W), o = P === "" ? "." +
|
|
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) {
|
|
822
839
|
return Z;
|
|
823
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;
|
|
824
|
-
if (W = 0, P = P === "" ? "." : P + ":",
|
|
841
|
+
if (W = 0, P = P === "" ? "." : P + ":", ie(o)) for (var B = 0; B < o.length; B++) {
|
|
825
842
|
V = o[B];
|
|
826
|
-
var L = P +
|
|
843
|
+
var L = P + ae(V, B);
|
|
827
844
|
W += fe(V, f, O, L, A);
|
|
828
845
|
}
|
|
829
|
-
else if (L =
|
|
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);
|
|
830
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.");
|
|
831
848
|
return W;
|
|
832
849
|
}
|
|
833
|
-
function
|
|
850
|
+
function re(o, f, O) {
|
|
834
851
|
if (o == null) return o;
|
|
835
852
|
var P = [], A = 0;
|
|
836
853
|
return fe(o, P, "", "", function(V) {
|
|
@@ -849,21 +866,21 @@ function zn() {
|
|
|
849
866
|
if (o._status === 1) return o._result.default;
|
|
850
867
|
throw o._result;
|
|
851
868
|
}
|
|
852
|
-
var v = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: me, ReactCurrentOwner:
|
|
869
|
+
var v = { current: null }, me = { transition: null }, je = { ReactCurrentDispatcher: v, ReactCurrentBatchConfig: me, ReactCurrentOwner: le };
|
|
853
870
|
function ge() {
|
|
854
871
|
throw Error("act(...) is not supported in production builds of React.");
|
|
855
872
|
}
|
|
856
|
-
return k.Children = { map:
|
|
857
|
-
|
|
873
|
+
return k.Children = { map: re, forEach: function(o, f, O) {
|
|
874
|
+
re(o, function() {
|
|
858
875
|
f.apply(this, arguments);
|
|
859
876
|
}, O);
|
|
860
877
|
}, count: function(o) {
|
|
861
878
|
var f = 0;
|
|
862
|
-
return
|
|
879
|
+
return re(o, function() {
|
|
863
880
|
f++;
|
|
864
881
|
}), f;
|
|
865
882
|
}, toArray: function(o) {
|
|
866
|
-
return
|
|
883
|
+
return re(o, function(f) {
|
|
867
884
|
return f;
|
|
868
885
|
}) || [];
|
|
869
886
|
}, only: function(o) {
|
|
@@ -873,7 +890,7 @@ function zn() {
|
|
|
873
890
|
if (o == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
874
891
|
var P = M({}, o.props), A = o.key, V = o.ref, W = o._owner;
|
|
875
892
|
if (f != null) {
|
|
876
|
-
if (f.ref !== void 0 && (V = f.ref, W =
|
|
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;
|
|
877
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]);
|
|
878
895
|
}
|
|
879
896
|
var L = arguments.length - 2;
|
|
@@ -885,7 +902,7 @@ function zn() {
|
|
|
885
902
|
}
|
|
886
903
|
return { $$typeof: s, type: o.type, key: A, ref: V, props: P, _owner: W };
|
|
887
904
|
}, k.createContext = function(o) {
|
|
888
|
-
return o = { $$typeof: R, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof:
|
|
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;
|
|
889
906
|
}, k.createElement = ye, k.createFactory = function(o) {
|
|
890
907
|
var f = ye.bind(null, o);
|
|
891
908
|
return f.type = o, f;
|
|
@@ -952,27 +969,27 @@ function Yn() {
|
|
|
952
969
|
return Tr || (Tr = 1, function(s, n) {
|
|
953
970
|
process.env.NODE_ENV !== "production" && function() {
|
|
954
971
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
955
|
-
var a = "18.3.1", c = Symbol.for("react.element"), E = Symbol.for("react.portal"),
|
|
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";
|
|
956
973
|
function z(e) {
|
|
957
974
|
if (e === null || typeof e != "object")
|
|
958
975
|
return null;
|
|
959
|
-
var t = X && e[X] || e[
|
|
976
|
+
var t = X && e[X] || e[ce];
|
|
960
977
|
return typeof t == "function" ? t : null;
|
|
961
978
|
}
|
|
962
|
-
var
|
|
979
|
+
var te = {
|
|
963
980
|
/**
|
|
964
981
|
* @internal
|
|
965
982
|
* @type {ReactComponent}
|
|
966
983
|
*/
|
|
967
984
|
current: null
|
|
968
|
-
},
|
|
985
|
+
}, ie = {
|
|
969
986
|
transition: null
|
|
970
987
|
}, J = {
|
|
971
988
|
current: null,
|
|
972
989
|
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
973
990
|
isBatchingLegacy: !1,
|
|
974
991
|
didScheduleLegacyUpdate: !1
|
|
975
|
-
},
|
|
992
|
+
}, le = {
|
|
976
993
|
/**
|
|
977
994
|
* @internal
|
|
978
995
|
* @type {ReactComponent}
|
|
@@ -990,12 +1007,12 @@ function Yn() {
|
|
|
990
1007
|
var t = he.getCurrentStack;
|
|
991
1008
|
return t && (e += t() || ""), e;
|
|
992
1009
|
};
|
|
993
|
-
var Te = !1, He = !1, Pe = !1,
|
|
994
|
-
ReactCurrentDispatcher:
|
|
995
|
-
ReactCurrentBatchConfig:
|
|
996
|
-
ReactCurrentOwner:
|
|
1010
|
+
var Te = !1, He = !1, Pe = !1, ae = !1, fe = !1, re = {
|
|
1011
|
+
ReactCurrentDispatcher: te,
|
|
1012
|
+
ReactCurrentBatchConfig: ie,
|
|
1013
|
+
ReactCurrentOwner: le
|
|
997
1014
|
};
|
|
998
|
-
|
|
1015
|
+
re.ReactDebugCurrentFrame = he, re.ReactCurrentActQueue = J;
|
|
999
1016
|
function pe(e) {
|
|
1000
1017
|
{
|
|
1001
1018
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
|
|
@@ -1012,7 +1029,7 @@ function Yn() {
|
|
|
1012
1029
|
}
|
|
1013
1030
|
function me(e, t, i) {
|
|
1014
1031
|
{
|
|
1015
|
-
var u =
|
|
1032
|
+
var u = re.ReactDebugCurrentFrame, p = u.getStackAddendum();
|
|
1016
1033
|
p !== "" && (t += "%s", i = i.concat([p]));
|
|
1017
1034
|
var y = i.map(function(h) {
|
|
1018
1035
|
return String(h);
|
|
@@ -1171,7 +1188,7 @@ function Yn() {
|
|
|
1171
1188
|
if (typeof e == "string")
|
|
1172
1189
|
return e;
|
|
1173
1190
|
switch (e) {
|
|
1174
|
-
case
|
|
1191
|
+
case D:
|
|
1175
1192
|
return "Fragment";
|
|
1176
1193
|
case E:
|
|
1177
1194
|
return "Portal";
|
|
@@ -1181,7 +1198,7 @@ function Yn() {
|
|
|
1181
1198
|
return "StrictMode";
|
|
1182
1199
|
case b:
|
|
1183
1200
|
return "Suspense";
|
|
1184
|
-
case
|
|
1201
|
+
case j:
|
|
1185
1202
|
return "SuspenseList";
|
|
1186
1203
|
}
|
|
1187
1204
|
if (typeof e == "object")
|
|
@@ -1250,8 +1267,8 @@ function Yn() {
|
|
|
1250
1267
|
});
|
|
1251
1268
|
}
|
|
1252
1269
|
function at(e) {
|
|
1253
|
-
if (typeof e.ref == "string" &&
|
|
1254
|
-
var t = ve(
|
|
1270
|
+
if (typeof e.ref == "string" && le.current && e.__self && le.current.stateNode !== e.__self) {
|
|
1271
|
+
var t = ve(le.current.type);
|
|
1255
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);
|
|
1256
1273
|
}
|
|
1257
1274
|
}
|
|
@@ -1285,9 +1302,9 @@ function Yn() {
|
|
|
1285
1302
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
1286
1303
|
};
|
|
1287
1304
|
function Tt(e, t, i) {
|
|
1288
|
-
var u, p = {}, y = null, h = null, w = null,
|
|
1305
|
+
var u, p = {}, y = null, h = null, w = null, x = null;
|
|
1289
1306
|
if (t != null) {
|
|
1290
|
-
Ke(t) && (h = t.ref, at(t)), Ce(t) && (xe(t.key), y = "" + t.key), w = t.__self === void 0 ? null : t.__self,
|
|
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;
|
|
1291
1308
|
for (u in t)
|
|
1292
1309
|
Ae.call(t, u) && !$e.hasOwnProperty(u) && (p[u] = t[u]);
|
|
1293
1310
|
}
|
|
@@ -1308,7 +1325,7 @@ function Yn() {
|
|
|
1308
1325
|
var Q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1309
1326
|
y && Ot(p, Q), h && it(p, Q);
|
|
1310
1327
|
}
|
|
1311
|
-
return Ie(e, y, h, w,
|
|
1328
|
+
return Ie(e, y, h, w, x, le.current, p);
|
|
1312
1329
|
}
|
|
1313
1330
|
function Pt(e, t) {
|
|
1314
1331
|
var i = Ie(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
@@ -1317,9 +1334,9 @@ function Yn() {
|
|
|
1317
1334
|
function jt(e, t, i) {
|
|
1318
1335
|
if (e == null)
|
|
1319
1336
|
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
1320
|
-
var u, p = f({}, e.props), y = e.key, h = e.ref, w = e._self,
|
|
1337
|
+
var u, p = f({}, e.props), y = e.key, h = e.ref, w = e._self, x = e._source, $ = e._owner;
|
|
1321
1338
|
if (t != null) {
|
|
1322
|
-
Ke(t) && (h = t.ref, $ =
|
|
1339
|
+
Ke(t) && (h = t.ref, $ = le.current), Ce(t) && (xe(t.key), y = "" + t.key);
|
|
1323
1340
|
var Y;
|
|
1324
1341
|
e.type && e.type.defaultProps && (Y = e.type.defaultProps);
|
|
1325
1342
|
for (u in t)
|
|
@@ -1333,7 +1350,7 @@ function Yn() {
|
|
|
1333
1350
|
G[Q] = arguments[Q + 2];
|
|
1334
1351
|
p.children = G;
|
|
1335
1352
|
}
|
|
1336
|
-
return Ie(e.type, y, h, w,
|
|
1353
|
+
return Ie(e.type, y, h, w, x, $, p);
|
|
1337
1354
|
}
|
|
1338
1355
|
function Ee(e) {
|
|
1339
1356
|
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
@@ -1375,36 +1392,36 @@ function Yn() {
|
|
|
1375
1392
|
}
|
|
1376
1393
|
}
|
|
1377
1394
|
if (h) {
|
|
1378
|
-
var w = e,
|
|
1379
|
-
if (Be(
|
|
1395
|
+
var w = e, x = p(w), $ = u === "" ? st + Ne(w, 0) : u;
|
|
1396
|
+
if (Be(x)) {
|
|
1380
1397
|
var Y = "";
|
|
1381
|
-
$ != null && (Y = be($) + "/"), Re(
|
|
1398
|
+
$ != null && (Y = be($) + "/"), Re(x, t, Y, "", function(dn) {
|
|
1382
1399
|
return dn;
|
|
1383
1400
|
});
|
|
1384
|
-
} else
|
|
1385
|
-
|
|
1401
|
+
} else x != null && (Ee(x) && (x.key && (!w || w.key !== x.key) && xe(x.key), x = Pt(
|
|
1402
|
+
x,
|
|
1386
1403
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
1387
1404
|
// traverseAllChildren used to do for objects as children
|
|
1388
1405
|
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1389
|
-
(
|
|
1406
|
+
(x.key && (!w || w.key !== x.key) ? (
|
|
1390
1407
|
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1391
1408
|
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1392
|
-
be("" +
|
|
1409
|
+
be("" + x.key) + "/"
|
|
1393
1410
|
) : "") + $
|
|
1394
|
-
)), t.push(
|
|
1411
|
+
)), t.push(x));
|
|
1395
1412
|
return 1;
|
|
1396
1413
|
}
|
|
1397
|
-
var H, G, Q = 0,
|
|
1414
|
+
var H, G, Q = 0, oe = u === "" ? st : u + xt;
|
|
1398
1415
|
if (Be(e))
|
|
1399
1416
|
for (var _t = 0; _t < e.length; _t++)
|
|
1400
|
-
H = e[_t], G =
|
|
1417
|
+
H = e[_t], G = oe + Ne(H, _t), Q += Re(H, t, i, G, p);
|
|
1401
1418
|
else {
|
|
1402
1419
|
var Kt = z(e);
|
|
1403
1420
|
if (typeof Kt == "function") {
|
|
1404
1421
|
var gr = e;
|
|
1405
1422
|
Kt === gr.entries && (Ue || pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Ue = !0);
|
|
1406
1423
|
for (var cn = Kt.call(gr), br, fn = 0; !(br = cn.next()).done; )
|
|
1407
|
-
H = br.value, G =
|
|
1424
|
+
H = br.value, G = oe + Ne(H, fn++), Q += Re(H, t, i, G, p);
|
|
1408
1425
|
} else if (y === "object") {
|
|
1409
1426
|
var _r = String(e);
|
|
1410
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.");
|
|
@@ -1617,7 +1634,7 @@ Your code should look like:
|
|
|
1617
1634
|
var pt;
|
|
1618
1635
|
pt = Symbol.for("react.module.reference");
|
|
1619
1636
|
function r(e) {
|
|
1620
|
-
return !!(typeof e == "string" || typeof e == "function" || 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
|
|
1621
1638
|
// types supported by any Flight configuration anywhere since
|
|
1622
1639
|
// we don't know which Flight build this will end up being used
|
|
1623
1640
|
// with.
|
|
@@ -1646,7 +1663,7 @@ Your code should look like:
|
|
|
1646
1663
|
return i;
|
|
1647
1664
|
}
|
|
1648
1665
|
function d() {
|
|
1649
|
-
var e =
|
|
1666
|
+
var e = te.current;
|
|
1650
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:
|
|
1651
1668
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1652
1669
|
2. You might be breaking the Rules of Hooks
|
|
@@ -1677,7 +1694,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1677
1694
|
var i = d();
|
|
1678
1695
|
return i.useEffect(e, t);
|
|
1679
1696
|
}
|
|
1680
|
-
function
|
|
1697
|
+
function ne(e, t) {
|
|
1681
1698
|
var i = d();
|
|
1682
1699
|
return i.useInsertionEffect(e, t);
|
|
1683
1700
|
}
|
|
@@ -1703,7 +1720,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1703
1720
|
return i.useDebugValue(e, t);
|
|
1704
1721
|
}
|
|
1705
1722
|
}
|
|
1706
|
-
function
|
|
1723
|
+
function se() {
|
|
1707
1724
|
var e = d();
|
|
1708
1725
|
return e.useTransition();
|
|
1709
1726
|
}
|
|
@@ -1781,7 +1798,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1781
1798
|
Je < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1782
1799
|
}
|
|
1783
1800
|
}
|
|
1784
|
-
var Wt =
|
|
1801
|
+
var Wt = re.ReactCurrentDispatcher, $t;
|
|
1785
1802
|
function ht(e, t, i) {
|
|
1786
1803
|
{
|
|
1787
1804
|
if ($t === void 0)
|
|
@@ -1826,37 +1843,37 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1826
1843
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1827
1844
|
try {
|
|
1828
1845
|
Reflect.construct(h, []);
|
|
1829
|
-
} catch (
|
|
1830
|
-
u =
|
|
1846
|
+
} catch (oe) {
|
|
1847
|
+
u = oe;
|
|
1831
1848
|
}
|
|
1832
1849
|
Reflect.construct(e, [], h);
|
|
1833
1850
|
} else {
|
|
1834
1851
|
try {
|
|
1835
1852
|
h.call();
|
|
1836
|
-
} catch (
|
|
1837
|
-
u =
|
|
1853
|
+
} catch (oe) {
|
|
1854
|
+
u = oe;
|
|
1838
1855
|
}
|
|
1839
1856
|
e.call(h.prototype);
|
|
1840
1857
|
}
|
|
1841
1858
|
} else {
|
|
1842
1859
|
try {
|
|
1843
1860
|
throw Error();
|
|
1844
|
-
} catch (
|
|
1845
|
-
u =
|
|
1861
|
+
} catch (oe) {
|
|
1862
|
+
u = oe;
|
|
1846
1863
|
}
|
|
1847
1864
|
e();
|
|
1848
1865
|
}
|
|
1849
|
-
} catch (
|
|
1850
|
-
if (
|
|
1851
|
-
for (var w =
|
|
1852
|
-
`),
|
|
1853
|
-
`), $ = w.length - 1, Y =
|
|
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]; )
|
|
1854
1871
|
Y--;
|
|
1855
1872
|
for (; $ >= 1 && Y >= 0; $--, Y--)
|
|
1856
|
-
if (w[$] !==
|
|
1873
|
+
if (w[$] !== x[Y]) {
|
|
1857
1874
|
if ($ !== 1 || Y !== 1)
|
|
1858
1875
|
do
|
|
1859
|
-
if ($--, Y--, Y < 0 || w[$] !==
|
|
1876
|
+
if ($--, Y--, Y < 0 || w[$] !== x[Y]) {
|
|
1860
1877
|
var H = `
|
|
1861
1878
|
` + w[$].replace(" at new ", " at ");
|
|
1862
1879
|
return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && mt.set(e, H), H;
|
|
@@ -1888,7 +1905,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1888
1905
|
switch (e) {
|
|
1889
1906
|
case b:
|
|
1890
1907
|
return ht("Suspense");
|
|
1891
|
-
case
|
|
1908
|
+
case j:
|
|
1892
1909
|
return ht("SuspenseList");
|
|
1893
1910
|
}
|
|
1894
1911
|
if (typeof e == "object")
|
|
@@ -1907,7 +1924,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1907
1924
|
}
|
|
1908
1925
|
return "";
|
|
1909
1926
|
}
|
|
1910
|
-
var ar = {}, sr =
|
|
1927
|
+
var ar = {}, sr = re.ReactDebugCurrentFrame;
|
|
1911
1928
|
function yt(e) {
|
|
1912
1929
|
if (e) {
|
|
1913
1930
|
var t = e._owner, i = vt(e.type, e._source, t ? t.type : null);
|
|
@@ -1923,8 +1940,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1923
1940
|
var w = void 0;
|
|
1924
1941
|
try {
|
|
1925
1942
|
if (typeof e[h] != "function") {
|
|
1926
|
-
var
|
|
1927
|
-
throw
|
|
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;
|
|
1928
1945
|
}
|
|
1929
1946
|
w = e[h](t, h, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1930
1947
|
} catch ($) {
|
|
@@ -1944,8 +1961,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1944
1961
|
var Ut;
|
|
1945
1962
|
Ut = !1;
|
|
1946
1963
|
function ur() {
|
|
1947
|
-
if (
|
|
1948
|
-
var e = ve(
|
|
1964
|
+
if (le.current) {
|
|
1965
|
+
var e = ve(le.current.type);
|
|
1949
1966
|
if (e)
|
|
1950
1967
|
return `
|
|
1951
1968
|
|
|
@@ -1983,7 +2000,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
1983
2000
|
if (!lr[i]) {
|
|
1984
2001
|
lr[i] = !0;
|
|
1985
2002
|
var u = "";
|
|
1986
|
-
e && e._owner && e._owner !==
|
|
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);
|
|
1987
2004
|
}
|
|
1988
2005
|
}
|
|
1989
2006
|
}
|
|
@@ -2055,9 +2072,9 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2055
2072
|
if (w == null)
|
|
2056
2073
|
return w;
|
|
2057
2074
|
if (u)
|
|
2058
|
-
for (var
|
|
2059
|
-
fr(arguments[
|
|
2060
|
-
return e ===
|
|
2075
|
+
for (var x = 2; x < arguments.length; x++)
|
|
2076
|
+
fr(arguments[x], e);
|
|
2077
|
+
return e === D ? en(w) : dr(w), w;
|
|
2061
2078
|
}
|
|
2062
2079
|
var hr = !1;
|
|
2063
2080
|
function tn(e) {
|
|
@@ -2077,14 +2094,14 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2077
2094
|
return dr(u), u;
|
|
2078
2095
|
}
|
|
2079
2096
|
function nn(e, t) {
|
|
2080
|
-
var i =
|
|
2081
|
-
|
|
2082
|
-
var u =
|
|
2083
|
-
|
|
2097
|
+
var i = ie.transition;
|
|
2098
|
+
ie.transition = {};
|
|
2099
|
+
var u = ie.transition;
|
|
2100
|
+
ie.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2084
2101
|
try {
|
|
2085
2102
|
e();
|
|
2086
2103
|
} finally {
|
|
2087
|
-
if (
|
|
2104
|
+
if (ie.transition = i, i === null && u._updatedFibers) {
|
|
2088
2105
|
var p = u._updatedFibers.size;
|
|
2089
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();
|
|
2090
2107
|
}
|
|
@@ -2124,10 +2141,10 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2124
2141
|
if (u !== null && typeof u == "object" && typeof u.then == "function") {
|
|
2125
2142
|
var y = u, h = !1, w = {
|
|
2126
2143
|
then: function(G, Q) {
|
|
2127
|
-
h = !0, y.then(function(
|
|
2128
|
-
bt(t), Ye === 0 ? zt(
|
|
2129
|
-
}, function(
|
|
2130
|
-
bt(t), 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);
|
|
2131
2148
|
});
|
|
2132
2149
|
}
|
|
2133
2150
|
};
|
|
@@ -2136,20 +2153,20 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2136
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 () => ...);"));
|
|
2137
2154
|
}), w;
|
|
2138
2155
|
} else {
|
|
2139
|
-
var
|
|
2156
|
+
var x = u;
|
|
2140
2157
|
if (bt(t), Ye === 0) {
|
|
2141
2158
|
var $ = J.current;
|
|
2142
2159
|
$ !== null && (Ht($), J.current = null);
|
|
2143
2160
|
var Y = {
|
|
2144
2161
|
then: function(G, Q) {
|
|
2145
|
-
J.current === null ? (J.current = [], zt(
|
|
2162
|
+
J.current === null ? (J.current = [], zt(x, G, Q)) : G(x);
|
|
2146
2163
|
}
|
|
2147
2164
|
};
|
|
2148
2165
|
return Y;
|
|
2149
2166
|
} else {
|
|
2150
2167
|
var H = {
|
|
2151
2168
|
then: function(G, Q) {
|
|
2152
|
-
G(
|
|
2169
|
+
G(x);
|
|
2153
2170
|
}
|
|
2154
2171
|
};
|
|
2155
2172
|
return H;
|
|
@@ -2202,7 +2219,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
2202
2219
|
toArray: It,
|
|
2203
2220
|
only: ct
|
|
2204
2221
|
};
|
|
2205
|
-
n.Children = ln, n.Component = P, n.Fragment =
|
|
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());
|
|
2206
2223
|
}();
|
|
2207
2224
|
}(et, et.exports)), et.exports;
|
|
2208
2225
|
}
|
|
@@ -2223,13 +2240,13 @@ var jr;
|
|
|
2223
2240
|
function Hn() {
|
|
2224
2241
|
if (jr) return Ze;
|
|
2225
2242
|
jr = 1;
|
|
2226
|
-
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, E = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
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 };
|
|
2227
2244
|
function R(C, m, U) {
|
|
2228
|
-
var _, b = {},
|
|
2229
|
-
U !== void 0 && (
|
|
2230
|
-
for (_ in m) c.call(m, _) && !
|
|
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[_]);
|
|
2231
2248
|
if (C && C.defaultProps) for (_ in m = C.defaultProps, m) b[_] === void 0 && (b[_] = m[_]);
|
|
2232
|
-
return { $$typeof: n, type: C, key:
|
|
2249
|
+
return { $$typeof: n, type: C, key: j, ref: N, props: b, _owner: E.current };
|
|
2233
2250
|
}
|
|
2234
2251
|
return Ze.Fragment = a, Ze.jsx = R, Ze.jsxs = R, Ze;
|
|
2235
2252
|
}
|
|
@@ -2246,24 +2263,24 @@ var Qe = {};
|
|
|
2246
2263
|
var xr;
|
|
2247
2264
|
function Kn() {
|
|
2248
2265
|
return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2249
|
-
var s = Xt(), n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"),
|
|
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";
|
|
2250
2267
|
function X(r) {
|
|
2251
2268
|
if (r === null || typeof r != "object")
|
|
2252
2269
|
return null;
|
|
2253
2270
|
var l = M && r[M] || r[ee];
|
|
2254
2271
|
return typeof l == "function" ? l : null;
|
|
2255
2272
|
}
|
|
2256
|
-
var
|
|
2273
|
+
var ce = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2257
2274
|
function z(r) {
|
|
2258
2275
|
{
|
|
2259
2276
|
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
|
|
2260
2277
|
d[g - 1] = arguments[g];
|
|
2261
|
-
|
|
2278
|
+
te("error", r, d);
|
|
2262
2279
|
}
|
|
2263
2280
|
}
|
|
2264
|
-
function
|
|
2281
|
+
function te(r, l, d) {
|
|
2265
2282
|
{
|
|
2266
|
-
var g =
|
|
2283
|
+
var g = ce.ReactDebugCurrentFrame, I = g.getStackAddendum();
|
|
2267
2284
|
I !== "" && (l += "%s", d = d.concat([I]));
|
|
2268
2285
|
var F = d.map(function(T) {
|
|
2269
2286
|
return String(T);
|
|
@@ -2271,10 +2288,10 @@ function Kn() {
|
|
|
2271
2288
|
F.unshift("Warning: " + l), Function.prototype.apply.call(console[r], console, F);
|
|
2272
2289
|
}
|
|
2273
2290
|
}
|
|
2274
|
-
var
|
|
2291
|
+
var ie = !1, J = !1, le = !1, he = !1, ye = !1, Oe;
|
|
2275
2292
|
Oe = Symbol.for("react.module.reference");
|
|
2276
2293
|
function Te(r) {
|
|
2277
|
-
return !!(typeof r == "string" || typeof r == "function" || r === c || 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
|
|
2278
2295
|
// types supported by any Flight configuration anywhere since
|
|
2279
2296
|
// we don't know which Flight build this will end up being used
|
|
2280
2297
|
// with.
|
|
@@ -2290,7 +2307,7 @@ function Kn() {
|
|
|
2290
2307
|
function Pe(r) {
|
|
2291
2308
|
return r.displayName || "Context";
|
|
2292
2309
|
}
|
|
2293
|
-
function
|
|
2310
|
+
function ae(r) {
|
|
2294
2311
|
if (r == null)
|
|
2295
2312
|
return null;
|
|
2296
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")
|
|
@@ -2302,7 +2319,7 @@ function Kn() {
|
|
|
2302
2319
|
return "Fragment";
|
|
2303
2320
|
case a:
|
|
2304
2321
|
return "Portal";
|
|
2305
|
-
case
|
|
2322
|
+
case D:
|
|
2306
2323
|
return "Profiler";
|
|
2307
2324
|
case E:
|
|
2308
2325
|
return "StrictMode";
|
|
@@ -2323,11 +2340,11 @@ function Kn() {
|
|
|
2323
2340
|
return He(r, r.render, "ForwardRef");
|
|
2324
2341
|
case b:
|
|
2325
2342
|
var g = r.displayName || null;
|
|
2326
|
-
return g !== null ? g :
|
|
2327
|
-
case
|
|
2343
|
+
return g !== null ? g : ae(r.type) || "Memo";
|
|
2344
|
+
case j: {
|
|
2328
2345
|
var I = r, F = I._payload, T = I._init;
|
|
2329
2346
|
try {
|
|
2330
|
-
return
|
|
2347
|
+
return ae(T(F));
|
|
2331
2348
|
} catch {
|
|
2332
2349
|
return null;
|
|
2333
2350
|
}
|
|
@@ -2335,13 +2352,13 @@ function Kn() {
|
|
|
2335
2352
|
}
|
|
2336
2353
|
return null;
|
|
2337
2354
|
}
|
|
2338
|
-
var fe = Object.assign,
|
|
2355
|
+
var fe = Object.assign, re = 0, pe, v, me, je, ge, o, f;
|
|
2339
2356
|
function O() {
|
|
2340
2357
|
}
|
|
2341
2358
|
O.__reactDisabledLog = !0;
|
|
2342
2359
|
function P() {
|
|
2343
2360
|
{
|
|
2344
|
-
if (
|
|
2361
|
+
if (re === 0) {
|
|
2345
2362
|
pe = console.log, v = console.info, me = console.warn, je = console.error, ge = console.group, o = console.groupCollapsed, f = console.groupEnd;
|
|
2346
2363
|
var r = {
|
|
2347
2364
|
configurable: !0,
|
|
@@ -2359,12 +2376,12 @@ function Kn() {
|
|
|
2359
2376
|
groupEnd: r
|
|
2360
2377
|
});
|
|
2361
2378
|
}
|
|
2362
|
-
|
|
2379
|
+
re++;
|
|
2363
2380
|
}
|
|
2364
2381
|
}
|
|
2365
2382
|
function A() {
|
|
2366
2383
|
{
|
|
2367
|
-
if (
|
|
2384
|
+
if (re--, re === 0) {
|
|
2368
2385
|
var r = {
|
|
2369
2386
|
configurable: !0,
|
|
2370
2387
|
enumerable: !0,
|
|
@@ -2394,10 +2411,10 @@ function Kn() {
|
|
|
2394
2411
|
})
|
|
2395
2412
|
});
|
|
2396
2413
|
}
|
|
2397
|
-
|
|
2414
|
+
re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2398
2415
|
}
|
|
2399
2416
|
}
|
|
2400
|
-
var V =
|
|
2417
|
+
var V = ce.ReactCurrentDispatcher, W;
|
|
2401
2418
|
function B(r, l, d) {
|
|
2402
2419
|
{
|
|
2403
2420
|
if (W === void 0)
|
|
@@ -2442,37 +2459,37 @@ function Kn() {
|
|
|
2442
2459
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2443
2460
|
try {
|
|
2444
2461
|
Reflect.construct(T, []);
|
|
2445
|
-
} catch (
|
|
2446
|
-
g =
|
|
2462
|
+
} catch (se) {
|
|
2463
|
+
g = se;
|
|
2447
2464
|
}
|
|
2448
2465
|
Reflect.construct(r, [], T);
|
|
2449
2466
|
} else {
|
|
2450
2467
|
try {
|
|
2451
2468
|
T.call();
|
|
2452
|
-
} catch (
|
|
2453
|
-
g =
|
|
2469
|
+
} catch (se) {
|
|
2470
|
+
g = se;
|
|
2454
2471
|
}
|
|
2455
2472
|
r.call(T.prototype);
|
|
2456
2473
|
}
|
|
2457
2474
|
} else {
|
|
2458
2475
|
try {
|
|
2459
2476
|
throw Error();
|
|
2460
|
-
} catch (
|
|
2461
|
-
g =
|
|
2477
|
+
} catch (se) {
|
|
2478
|
+
g = se;
|
|
2462
2479
|
}
|
|
2463
2480
|
r();
|
|
2464
2481
|
}
|
|
2465
|
-
} catch (
|
|
2466
|
-
if (
|
|
2467
|
-
for (var S =
|
|
2468
|
-
`),
|
|
2469
|
-
`), K = S.length - 1, q =
|
|
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]; )
|
|
2470
2487
|
q--;
|
|
2471
2488
|
for (; K >= 1 && q >= 0; K--, q--)
|
|
2472
|
-
if (S[K] !==
|
|
2489
|
+
if (S[K] !== ne[q]) {
|
|
2473
2490
|
if (K !== 1 || q !== 1)
|
|
2474
2491
|
do
|
|
2475
|
-
if (K--, q--, q < 0 || S[K] !==
|
|
2492
|
+
if (K--, q--, q < 0 || S[K] !== ne[q]) {
|
|
2476
2493
|
var de = `
|
|
2477
2494
|
` + S[K].replace(" at new ", " at ");
|
|
2478
2495
|
return r.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", r.displayName)), typeof r == "function" && Z.set(r, de), de;
|
|
@@ -2513,7 +2530,7 @@ function Kn() {
|
|
|
2513
2530
|
return Be(r.render);
|
|
2514
2531
|
case b:
|
|
2515
2532
|
return We(r.type, l, d);
|
|
2516
|
-
case
|
|
2533
|
+
case j: {
|
|
2517
2534
|
var g = r, I = g._payload, F = g._init;
|
|
2518
2535
|
try {
|
|
2519
2536
|
return We(F(I), l, d);
|
|
@@ -2523,7 +2540,7 @@ function Kn() {
|
|
|
2523
2540
|
}
|
|
2524
2541
|
return "";
|
|
2525
2542
|
}
|
|
2526
|
-
var we = Object.prototype.hasOwnProperty, xe = {}, rt =
|
|
2543
|
+
var we = Object.prototype.hasOwnProperty, xe = {}, rt = ce.ReactDebugCurrentFrame;
|
|
2527
2544
|
function De(r) {
|
|
2528
2545
|
if (r) {
|
|
2529
2546
|
var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
|
|
@@ -2539,8 +2556,8 @@ function Kn() {
|
|
|
2539
2556
|
var S = void 0;
|
|
2540
2557
|
try {
|
|
2541
2558
|
if (typeof r[T] != "function") {
|
|
2542
|
-
var
|
|
2543
|
-
throw
|
|
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;
|
|
2544
2561
|
}
|
|
2545
2562
|
S = r[T](l, T, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2546
2563
|
} catch (K) {
|
|
@@ -2574,7 +2591,7 @@ function Kn() {
|
|
|
2574
2591
|
if (ot(r))
|
|
2575
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);
|
|
2576
2593
|
}
|
|
2577
|
-
var Ce =
|
|
2594
|
+
var Ce = ce.ReactCurrentOwner, Ot = {
|
|
2578
2595
|
key: !0,
|
|
2579
2596
|
ref: !0,
|
|
2580
2597
|
__self: !0,
|
|
@@ -2599,8 +2616,8 @@ function Kn() {
|
|
|
2599
2616
|
}
|
|
2600
2617
|
function jt(r, l) {
|
|
2601
2618
|
if (typeof r.ref == "string" && Ce.current && l && Ce.current.stateNode !== l) {
|
|
2602
|
-
var d =
|
|
2603
|
-
Ie[d] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
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);
|
|
2604
2621
|
}
|
|
2605
2622
|
}
|
|
2606
2623
|
function Ee(r, l) {
|
|
@@ -2656,8 +2673,8 @@ function Kn() {
|
|
|
2656
2673
|
};
|
|
2657
2674
|
function Dt(r, l, d, g, I) {
|
|
2658
2675
|
{
|
|
2659
|
-
var F, T = {}, S = null,
|
|
2660
|
-
d !== void 0 && (Ke(d), S = "" + d), Pt(l) && (Ke(l.key), S = "" + l.key), Tt(l) && (
|
|
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));
|
|
2661
2678
|
for (F in l)
|
|
2662
2679
|
we.call(l, F) && !Ot.hasOwnProperty(F) && (T[F] = l[F]);
|
|
2663
2680
|
if (r && r.defaultProps) {
|
|
@@ -2665,14 +2682,14 @@ function Kn() {
|
|
|
2665
2682
|
for (F in K)
|
|
2666
2683
|
T[F] === void 0 && (T[F] = K[F]);
|
|
2667
2684
|
}
|
|
2668
|
-
if (S ||
|
|
2685
|
+
if (S || ne) {
|
|
2669
2686
|
var q = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
2670
|
-
S && Ee(T, q),
|
|
2687
|
+
S && Ee(T, q), ne && st(T, q);
|
|
2671
2688
|
}
|
|
2672
|
-
return xt(r, S,
|
|
2689
|
+
return xt(r, S, ne, I, g, Ce.current, T);
|
|
2673
2690
|
}
|
|
2674
2691
|
}
|
|
2675
|
-
var Ue =
|
|
2692
|
+
var Ue = ce.ReactCurrentOwner, ut = ce.ReactDebugCurrentFrame;
|
|
2676
2693
|
function be(r) {
|
|
2677
2694
|
if (r) {
|
|
2678
2695
|
var l = r._owner, d = We(r.type, r._source, l ? l.type : null);
|
|
@@ -2688,7 +2705,7 @@ function Kn() {
|
|
|
2688
2705
|
function Me() {
|
|
2689
2706
|
{
|
|
2690
2707
|
if (Ue.current) {
|
|
2691
|
-
var r =
|
|
2708
|
+
var r = ae(Ue.current.type);
|
|
2692
2709
|
if (r)
|
|
2693
2710
|
return `
|
|
2694
2711
|
|
|
@@ -2723,7 +2740,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2723
2740
|
return;
|
|
2724
2741
|
lt[d] = !0;
|
|
2725
2742
|
var g = "";
|
|
2726
|
-
r && r._owner && r._owner !== Ue.current && (g = " It was passed a child from " +
|
|
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);
|
|
2727
2744
|
}
|
|
2728
2745
|
}
|
|
2729
2746
|
function ft(r, l) {
|
|
@@ -2760,11 +2777,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2760
2777
|
else
|
|
2761
2778
|
return;
|
|
2762
2779
|
if (d) {
|
|
2763
|
-
var g =
|
|
2780
|
+
var g = ae(l);
|
|
2764
2781
|
ve(d, r.props, "prop", g, r);
|
|
2765
2782
|
} else if (l.PropTypes !== void 0 && !Ne) {
|
|
2766
2783
|
Ne = !0;
|
|
2767
|
-
var I =
|
|
2784
|
+
var I = ae(l);
|
|
2768
2785
|
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
2769
2786
|
}
|
|
2770
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.");
|
|
@@ -2789,10 +2806,10 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2789
2806
|
if (!T) {
|
|
2790
2807
|
var S = "";
|
|
2791
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.");
|
|
2792
|
-
var
|
|
2793
|
-
|
|
2809
|
+
var ne = At();
|
|
2810
|
+
ne ? S += ne : S += Me();
|
|
2794
2811
|
var K;
|
|
2795
|
-
r === null ? K = "null" : $e(r) ? K = "array" : r !== void 0 && r.$$typeof === n ? (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);
|
|
2796
2813
|
}
|
|
2797
2814
|
var q = Dt(r, l, d, I, F);
|
|
2798
2815
|
if (q == null)
|
|
@@ -2811,11 +2828,11 @@ Check the top-level render call using <` + d + ">.");
|
|
|
2811
2828
|
ft(de, r);
|
|
2812
2829
|
}
|
|
2813
2830
|
if (we.call(l, "key")) {
|
|
2814
|
-
var _e =
|
|
2831
|
+
var _e = ae(r), se = Object.keys(l).filter(function(Bt) {
|
|
2815
2832
|
return Bt !== "key";
|
|
2816
|
-
}), Xe =
|
|
2833
|
+
}), Xe = se.length > 0 ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2817
2834
|
if (!qe[_e + Xe]) {
|
|
2818
|
-
var Ft =
|
|
2835
|
+
var Ft = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
|
|
2819
2836
|
z(`A props object containing a "key" prop is being spread into JSX:
|
|
2820
2837
|
let props = %s;
|
|
2821
2838
|
<%s {...props} />
|
|
@@ -2851,9 +2868,9 @@ function Xn(s, n) {
|
|
|
2851
2868
|
if (s == null) return {};
|
|
2852
2869
|
var a = Jn(s, n), c, E;
|
|
2853
2870
|
if (Object.getOwnPropertySymbols) {
|
|
2854
|
-
var
|
|
2855
|
-
for (E = 0; E <
|
|
2856
|
-
c =
|
|
2871
|
+
var D = Object.getOwnPropertySymbols(s);
|
|
2872
|
+
for (E = 0; E < D.length; E++)
|
|
2873
|
+
c = D[E], !(n.indexOf(c) >= 0) && Object.prototype.propertyIsEnumerable.call(s, c) && (a[c] = s[c]);
|
|
2857
2874
|
}
|
|
2858
2875
|
return a;
|
|
2859
2876
|
}
|
|
@@ -2930,7 +2947,7 @@ function to(s) {
|
|
|
2930
2947
|
var {
|
|
2931
2948
|
attr: c,
|
|
2932
2949
|
size: E,
|
|
2933
|
-
title:
|
|
2950
|
+
title: D
|
|
2934
2951
|
} = s, R = Xn(s, qn), C = E || a.size || "1em", m;
|
|
2935
2952
|
return a.className && (m = a.className), s.className && (m = (m ? m + " " : "") + s.className), /* @__PURE__ */ Fe.createElement("svg", Et({
|
|
2936
2953
|
stroke: "currentColor",
|
|
@@ -2944,7 +2961,7 @@ function to(s) {
|
|
|
2944
2961
|
height: C,
|
|
2945
2962
|
width: C,
|
|
2946
2963
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2947
|
-
}),
|
|
2964
|
+
}), D && /* @__PURE__ */ Fe.createElement("title", null, D), s.children);
|
|
2948
2965
|
};
|
|
2949
2966
|
return Ar !== void 0 ? /* @__PURE__ */ Fe.createElement(Ar.Consumer, null, (a) => n(a)) : n(Vr);
|
|
2950
2967
|
}
|