@pie-element/select-text 13.1.2-next.5 → 13.1.2-next.7
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/author/design.js +1 -1
- package/dist/author/index.js +2 -2
- package/dist/browser/{Check-hYJSLKBP.js → Check-CmcAwXkY.js} +1759 -1802
- package/dist/browser/Check-CmcAwXkY.js.map +1 -0
- package/dist/browser/author/index.js +22354 -25535
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +2 -2
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/{dist-NxgaOEGc.js → dist-BamN0-DG.js} +2 -2
- package/dist/browser/{dist-NxgaOEGc.js.map → dist-BamN0-DG.js.map} +1 -1
- package/dist/browser/{main-nEorTqht.js → main-DFPODQm1.js} +731 -723
- package/dist/browser/main-DFPODQm1.js.map +1 -0
- package/dist/browser/print/index.js +3 -3
- package/dist/browser/print/index.js.map +1 -1
- package/dist/delivery/index.js +1 -1
- package/dist/delivery/main.d.ts +2 -0
- package/dist/delivery/main.js +58 -49
- package/dist/index.iife.js +38 -38
- package/dist/print/index.js +6 -6
- package/package.json +17 -9
- package/dist/browser/Check-hYJSLKBP.js.map +0 -1
- package/dist/browser/main-nEorTqht.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as e, b as t, g as n, s as r, t as i, y as a } from "./dist-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as e, b as t, g as n, s as r, t as i, y as a } from "./dist-BamN0-DG.js";
|
|
2
|
+
import { C as o, F as s, Ht as c, I as l, S as u, Z as d, _ as f, b as p, g as m, gt as h, h as g, l as _, m as v, n as y, o as b, pt as x, r as S, t as ee } from "./Check-CmcAwXkY.js";
|
|
3
3
|
import C, { useRef as w } from "react";
|
|
4
|
-
import
|
|
4
|
+
import T from "react-dom";
|
|
5
|
+
import { Fragment as te, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
5
6
|
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
6
|
-
var O = /* @__PURE__ */ t(
|
|
7
|
+
var O = /* @__PURE__ */ t(c(), 1), ne = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ D("svg", {
|
|
7
8
|
preserveAspectRatio: "xMinYMin meet",
|
|
8
9
|
version: "1.1",
|
|
9
10
|
viewBox: "-283 359 34 35",
|
|
@@ -25,11 +26,11 @@ var O = /* @__PURE__ */ t(S(), 1), ee = ({ bgFill: e, fgFill: t }) => /* @__PURE
|
|
|
25
26
|
})
|
|
26
27
|
]
|
|
27
28
|
});
|
|
28
|
-
|
|
29
|
+
ne.propTypes = {
|
|
29
30
|
bgFill: O.default.string.isRequired,
|
|
30
31
|
fgFill: O.default.string.isRequired
|
|
31
32
|
};
|
|
32
|
-
var
|
|
33
|
+
var re = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
|
|
33
34
|
preserveAspectRatio: "xMinYMin meet",
|
|
34
35
|
version: "1.1",
|
|
35
36
|
viewBox: "-129.5 127 34 35",
|
|
@@ -69,76 +70,76 @@ var k = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
|
|
|
69
70
|
})
|
|
70
71
|
]
|
|
71
72
|
});
|
|
72
|
-
|
|
73
|
+
re.propTypes = {
|
|
73
74
|
bgFill: O.default.string.isRequired,
|
|
74
75
|
fgFill: O.default.string.isRequired,
|
|
75
76
|
borderFill: O.default.string.isRequired
|
|
76
77
|
};
|
|
77
|
-
var
|
|
78
|
+
var ie = h("div")(({ size: e }) => ({
|
|
78
79
|
width: e || "25px",
|
|
79
80
|
height: e || "25px"
|
|
80
|
-
})),
|
|
81
|
+
})), ae = ({ open: e, size: t }) => /* @__PURE__ */ E(ie, {
|
|
81
82
|
size: t,
|
|
82
|
-
children: e ? /* @__PURE__ */ E(
|
|
83
|
+
children: e ? /* @__PURE__ */ E(ne, {
|
|
83
84
|
bgFill: "#bce2ff",
|
|
84
85
|
fgFill: "#1a9cff"
|
|
85
|
-
}) : /* @__PURE__ */ E(
|
|
86
|
+
}) : /* @__PURE__ */ E(re, {
|
|
86
87
|
bgFill: "white",
|
|
87
88
|
fgFill: "#1a9cff",
|
|
88
89
|
borderFill: "#bce2ff"
|
|
89
90
|
})
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
+
ae.propTypes = {
|
|
92
93
|
open: O.default.bool,
|
|
93
94
|
size: O.default.string
|
|
94
|
-
},
|
|
95
|
+
}, ae.defaultProps = { open: !1 };
|
|
95
96
|
//#endregion
|
|
96
97
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Close.js
|
|
97
|
-
var
|
|
98
|
+
var oe = x(/*#__PURE__*/ E("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Close"), se = 3.2, k = 3.4, ce = 2, A = h("span")(({ theme: e }) => ({
|
|
98
99
|
cursor: "pointer",
|
|
99
100
|
textIndent: 0,
|
|
100
101
|
"&.disabled": {
|
|
101
102
|
cursor: "inherit",
|
|
102
|
-
color:
|
|
103
|
+
color: l.disabled()
|
|
103
104
|
},
|
|
104
105
|
"&.disabledBlack": {
|
|
105
106
|
cursor: "inherit",
|
|
106
107
|
pointerEvents: "none"
|
|
107
108
|
},
|
|
108
|
-
"&.disabledAndSelected": { backgroundColor:
|
|
109
|
-
[`@media (min-width: ${e.breakpoints.values.md}px)`]: { "&.
|
|
110
|
-
backgroundColor:
|
|
109
|
+
"&.disabledAndSelected": { backgroundColor: l.blueGrey100() },
|
|
110
|
+
[`@media (min-width: ${e.breakpoints.values.md}px)`]: { "&.selectableToken:hover": {
|
|
111
|
+
backgroundColor: l.blueGrey300(),
|
|
111
112
|
color: e.palette.common.black,
|
|
112
|
-
"& > *": { backgroundColor:
|
|
113
|
+
"& > *": { backgroundColor: l.blueGrey300() }
|
|
113
114
|
} },
|
|
114
|
-
"&.
|
|
115
|
-
backgroundColor:
|
|
115
|
+
"&.selectedToken": {
|
|
116
|
+
backgroundColor: l.blueGrey100(),
|
|
116
117
|
color: e.palette.common.black,
|
|
117
|
-
lineHeight: `${parseFloat(e.spacing(1)) *
|
|
118
|
-
border: `solid 2px ${
|
|
118
|
+
lineHeight: `${parseFloat(e.spacing(1)) * se}px`,
|
|
119
|
+
border: `solid 2px ${l.blueGrey900()}`,
|
|
119
120
|
borderRadius: "4px",
|
|
120
|
-
"& > *": { backgroundColor:
|
|
121
|
+
"& > *": { backgroundColor: l.blueGrey100() }
|
|
121
122
|
},
|
|
122
123
|
"&.highlight": {
|
|
123
|
-
border: `dashed 2px ${
|
|
124
|
+
border: `dashed 2px ${l.blueGrey600()}`,
|
|
124
125
|
borderRadius: "4px",
|
|
125
|
-
lineHeight: `${parseFloat(e.spacing(1)) *
|
|
126
|
+
lineHeight: `${parseFloat(e.spacing(1)) * se}px`
|
|
126
127
|
},
|
|
127
128
|
"&.print": {
|
|
128
|
-
border: `dashed 2px ${
|
|
129
|
+
border: `dashed 2px ${l.blueGrey600()}`,
|
|
129
130
|
borderRadius: "4px",
|
|
130
|
-
lineHeight: `${parseFloat(e.spacing(1)) *
|
|
131
|
-
color:
|
|
131
|
+
lineHeight: `${parseFloat(e.spacing(1)) * se}px`,
|
|
132
|
+
color: l.text()
|
|
132
133
|
},
|
|
133
134
|
"&.custom": { display: "initial" }
|
|
134
|
-
})),
|
|
135
|
+
})), le = h("span")(({ theme: e }) => ({
|
|
135
136
|
position: "relative",
|
|
136
137
|
borderRadius: "4px",
|
|
137
138
|
color: e.palette.common.black,
|
|
138
|
-
lineHeight: `${parseFloat(e.spacing(1)) *
|
|
139
|
-
padding: `${
|
|
140
|
-
})),
|
|
141
|
-
color:
|
|
139
|
+
lineHeight: `${parseFloat(e.spacing(1)) * k + ce}px`,
|
|
140
|
+
padding: `${ce}px`
|
|
141
|
+
})), ue = h(le)(() => ({ border: `${l.correctTertiary()} solid 2px` })), de = h(le)(() => ({ border: `${l.incorrectWithIcon()} solid 2px` })), fe = h(le)(() => ({ border: `${l.incorrectWithIcon()} dashed 2px` })), pe = {
|
|
142
|
+
color: l.white(),
|
|
142
143
|
position: "absolute",
|
|
143
144
|
top: "-8px",
|
|
144
145
|
left: "-8px",
|
|
@@ -146,26 +147,26 @@ var re = v(/*#__PURE__*/ E("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41
|
|
|
146
147
|
fontSize: "12px",
|
|
147
148
|
padding: "2px",
|
|
148
149
|
display: "inline-block"
|
|
149
|
-
},
|
|
150
|
-
...
|
|
151
|
-
backgroundColor:
|
|
152
|
-
})),
|
|
153
|
-
...
|
|
154
|
-
backgroundColor:
|
|
155
|
-
})),
|
|
156
|
-
|
|
150
|
+
}, me = h(ee)(() => ({
|
|
151
|
+
...pe,
|
|
152
|
+
backgroundColor: l.correctTertiary()
|
|
153
|
+
})), he = h(oe)(() => ({
|
|
154
|
+
...pe,
|
|
155
|
+
backgroundColor: l.incorrectWithIcon()
|
|
156
|
+
})), j = ({ useWrapper: e, children: t, Container: n, Icon: r }) => e ? /* @__PURE__ */ D(n, { children: [t, r ? /* @__PURE__ */ E(r, {}) : null] }) : t;
|
|
157
|
+
j.propTypes = {
|
|
157
158
|
useWrapper: O.default.bool,
|
|
158
159
|
Container: O.default.elementType,
|
|
159
160
|
Icon: O.default.elementType,
|
|
160
161
|
children: O.default.node
|
|
161
162
|
};
|
|
162
|
-
var
|
|
163
|
+
var M = {
|
|
163
164
|
text: O.default.string,
|
|
164
165
|
selectable: O.default.bool
|
|
165
|
-
},
|
|
166
|
+
}, N = class e extends C.Component {
|
|
166
167
|
static rootClassName = "tokenRootClass";
|
|
167
168
|
static propTypes = {
|
|
168
|
-
...
|
|
169
|
+
...M,
|
|
169
170
|
text: O.default.string.isRequired,
|
|
170
171
|
className: O.default.string,
|
|
171
172
|
disabled: O.default.bool,
|
|
@@ -179,25 +180,25 @@ var he = {
|
|
|
179
180
|
getClassAndIconConfig = () => {
|
|
180
181
|
let { selectable: t, selected: n, className: r, disabled: i, highlight: a, correct: o, animationsDisabled: s, isMissing: c } = this.props, l = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0, u = e.rootClassName;
|
|
181
182
|
if (o === void 0 && n && i) return {
|
|
182
|
-
className:
|
|
183
|
+
className: S(u, "selectedToken", "disabledBlack", r),
|
|
183
184
|
Component: A
|
|
184
185
|
};
|
|
185
186
|
if (o !== void 0) {
|
|
186
187
|
let e = o === !0;
|
|
187
188
|
return {
|
|
188
|
-
className:
|
|
189
|
+
className: S(u, "custom", r),
|
|
189
190
|
Component: A,
|
|
190
|
-
Container: e ?
|
|
191
|
-
Icon: e ?
|
|
191
|
+
Container: e ? ue : de,
|
|
192
|
+
Icon: e ? me : he
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
195
|
return c ? {
|
|
195
|
-
className:
|
|
196
|
+
className: S(u, "custom", "missing", r),
|
|
196
197
|
Component: A,
|
|
197
|
-
Container:
|
|
198
|
-
Icon:
|
|
198
|
+
Container: fe,
|
|
199
|
+
Icon: he
|
|
199
200
|
} : {
|
|
200
|
-
className:
|
|
201
|
+
className: S(u, i && "disabled", t && !i && !l && "selectableToken", n && !i && "selectedToken", n && i && "disabledAndSelected", a && t && !i && !n && "highlight", s && "print", r),
|
|
201
202
|
Component: A,
|
|
202
203
|
Container: void 0,
|
|
203
204
|
Icon: void 0
|
|
@@ -205,7 +206,7 @@ var he = {
|
|
|
205
206
|
};
|
|
206
207
|
render() {
|
|
207
208
|
let { text: e, index: t, correct: n, isMissing: r } = this.props, { className: i, Component: a, Container: o, Icon: s } = this.getClassAndIconConfig();
|
|
208
|
-
return /* @__PURE__ */ E(
|
|
209
|
+
return /* @__PURE__ */ E(j, {
|
|
209
210
|
useWrapper: n !== void 0 || r,
|
|
210
211
|
Container: o,
|
|
211
212
|
Icon: s,
|
|
@@ -216,7 +217,7 @@ var he = {
|
|
|
216
217
|
})
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
|
-
},
|
|
220
|
+
}, ge = /* @__PURE__ */ e(((e) => {
|
|
220
221
|
var t = a("react");
|
|
221
222
|
function n(e) {
|
|
222
223
|
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -412,7 +413,7 @@ var he = {
|
|
|
412
413
|
return 4 <= e.insertionMode || e.insertionMode === 0 ? b(1, null) : e;
|
|
413
414
|
}
|
|
414
415
|
var S = /* @__PURE__ */ new Map();
|
|
415
|
-
function
|
|
416
|
+
function ee(e, t, i) {
|
|
416
417
|
if (typeof i != "object") throw Error(n(62));
|
|
417
418
|
for (var a in t = !0, i) if (r.call(i, a)) {
|
|
418
419
|
var o = i[a];
|
|
@@ -430,10 +431,10 @@ var he = {
|
|
|
430
431
|
}
|
|
431
432
|
t || e.push("\"");
|
|
432
433
|
}
|
|
433
|
-
function
|
|
434
|
+
function C(e, t, n, r) {
|
|
434
435
|
switch (n) {
|
|
435
436
|
case "style":
|
|
436
|
-
|
|
437
|
+
ee(e, t, r);
|
|
437
438
|
return;
|
|
438
439
|
case "defaultValue":
|
|
439
440
|
case "defaultChecked":
|
|
@@ -473,21 +474,21 @@ var he = {
|
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
+
function w(e, t, r) {
|
|
477
478
|
if (t != null) {
|
|
478
479
|
if (r != null) throw Error(n(60));
|
|
479
480
|
if (typeof t != "object" || !("__html" in t)) throw Error(n(61));
|
|
480
481
|
t = t.__html, t != null && e.push("" + t);
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function T(e) {
|
|
484
485
|
var n = "";
|
|
485
486
|
return t.Children.forEach(e, function(e) {
|
|
486
487
|
e != null && (n += e);
|
|
487
488
|
}), n;
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
-
e.push(
|
|
490
|
+
function te(e, t, n, i) {
|
|
491
|
+
e.push(O(n));
|
|
491
492
|
var a = n = null, o;
|
|
492
493
|
for (o in t) if (r.call(t, o)) {
|
|
493
494
|
var s = t[o];
|
|
@@ -498,24 +499,24 @@ var he = {
|
|
|
498
499
|
case "dangerouslySetInnerHTML":
|
|
499
500
|
a = s;
|
|
500
501
|
break;
|
|
501
|
-
default:
|
|
502
|
+
default: C(e, i, o, s);
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
|
-
return e.push(">"),
|
|
505
|
+
return e.push(">"), w(e, a, n), typeof n == "string" ? (e.push(g(n)), null) : n;
|
|
505
506
|
}
|
|
506
|
-
var
|
|
507
|
-
function
|
|
508
|
-
var t =
|
|
507
|
+
var E = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, D = /* @__PURE__ */ new Map();
|
|
508
|
+
function O(e) {
|
|
509
|
+
var t = D.get(e);
|
|
509
510
|
if (t === void 0) {
|
|
510
|
-
if (!
|
|
511
|
-
t = "<" + e,
|
|
511
|
+
if (!E.test(e)) throw Error(n(65, e));
|
|
512
|
+
t = "<" + e, D.set(e, t);
|
|
512
513
|
}
|
|
513
514
|
return t;
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ne(e, t, i, a, o) {
|
|
516
517
|
switch (t) {
|
|
517
518
|
case "select":
|
|
518
|
-
e.push(
|
|
519
|
+
e.push(O("select"));
|
|
519
520
|
var s = null, l = null;
|
|
520
521
|
for (p in i) if (r.call(i, p)) {
|
|
521
522
|
var u = i[p];
|
|
@@ -528,12 +529,12 @@ var he = {
|
|
|
528
529
|
break;
|
|
529
530
|
case "defaultValue":
|
|
530
531
|
case "value": break;
|
|
531
|
-
default:
|
|
532
|
+
default: C(e, a, p, u);
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
|
-
return e.push(">"),
|
|
535
|
+
return e.push(">"), w(e, l, s), s;
|
|
535
536
|
case "option":
|
|
536
|
-
l = o.selectedValue, e.push(
|
|
537
|
+
l = o.selectedValue, e.push(O("option"));
|
|
537
538
|
var d = u = null, f = null, p = null;
|
|
538
539
|
for (s in i) if (r.call(i, s)) {
|
|
539
540
|
var m = i[s];
|
|
@@ -548,19 +549,19 @@ var he = {
|
|
|
548
549
|
p = m;
|
|
549
550
|
break;
|
|
550
551
|
case "value": d = m;
|
|
551
|
-
default:
|
|
552
|
+
default: C(e, a, s, m);
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
|
-
if (l != null) if (i = d === null ?
|
|
555
|
+
if (l != null) if (i = d === null ? T(u) : "" + d, y(l)) {
|
|
555
556
|
for (a = 0; a < l.length; a++) if ("" + l[a] === i) {
|
|
556
557
|
e.push(" selected=\"\"");
|
|
557
558
|
break;
|
|
558
559
|
}
|
|
559
560
|
} else "" + l === i && e.push(" selected=\"\"");
|
|
560
561
|
else f && e.push(" selected=\"\"");
|
|
561
|
-
return e.push(">"),
|
|
562
|
+
return e.push(">"), w(e, p, u), u;
|
|
562
563
|
case "textarea":
|
|
563
|
-
for (u in e.push(
|
|
564
|
+
for (u in e.push(O("textarea")), p = l = s = null, i) if (r.call(i, u) && (d = i[u], d != null)) switch (u) {
|
|
564
565
|
case "children":
|
|
565
566
|
p = d;
|
|
566
567
|
break;
|
|
@@ -571,7 +572,7 @@ var he = {
|
|
|
571
572
|
l = d;
|
|
572
573
|
break;
|
|
573
574
|
case "dangerouslySetInnerHTML": throw Error(n(91));
|
|
574
|
-
default:
|
|
575
|
+
default: C(e, a, u, d);
|
|
575
576
|
}
|
|
576
577
|
if (s === null && l !== null && (s = l), e.push(">"), p != null) {
|
|
577
578
|
if (s != null) throw Error(n(92));
|
|
@@ -580,7 +581,7 @@ var he = {
|
|
|
580
581
|
}
|
|
581
582
|
return typeof s == "string" && s[0] === "\n" && e.push("\n"), s !== null && e.push(g("" + s)), null;
|
|
582
583
|
case "input":
|
|
583
|
-
for (l in e.push(
|
|
584
|
+
for (l in e.push(O("input")), d = p = u = s = null, i) if (r.call(i, l) && (f = i[l], f != null)) switch (l) {
|
|
584
585
|
case "children":
|
|
585
586
|
case "dangerouslySetInnerHTML": throw Error(n(399, "input"));
|
|
586
587
|
case "defaultChecked":
|
|
@@ -595,35 +596,35 @@ var he = {
|
|
|
595
596
|
case "value":
|
|
596
597
|
s = f;
|
|
597
598
|
break;
|
|
598
|
-
default:
|
|
599
|
+
default: C(e, a, l, f);
|
|
599
600
|
}
|
|
600
|
-
return p === null ? d !== null &&
|
|
601
|
+
return p === null ? d !== null && C(e, a, "checked", d) : C(e, a, "checked", p), s === null ? u !== null && C(e, a, "value", u) : C(e, a, "value", s), e.push("/>"), null;
|
|
601
602
|
case "menuitem":
|
|
602
|
-
for (var h in e.push(
|
|
603
|
+
for (var h in e.push(O("menuitem")), i) if (r.call(i, h) && (s = i[h], s != null)) switch (h) {
|
|
603
604
|
case "children":
|
|
604
605
|
case "dangerouslySetInnerHTML": throw Error(n(400));
|
|
605
|
-
default:
|
|
606
|
+
default: C(e, a, h, s);
|
|
606
607
|
}
|
|
607
608
|
return e.push(">"), null;
|
|
608
609
|
case "title":
|
|
609
|
-
for (m in e.push(
|
|
610
|
+
for (m in e.push(O("title")), s = null, i) if (r.call(i, m) && (l = i[m], l != null)) switch (m) {
|
|
610
611
|
case "children":
|
|
611
612
|
s = l;
|
|
612
613
|
break;
|
|
613
614
|
case "dangerouslySetInnerHTML": throw Error(n(434));
|
|
614
|
-
default:
|
|
615
|
+
default: C(e, a, m, l);
|
|
615
616
|
}
|
|
616
617
|
return e.push(">"), s;
|
|
617
618
|
case "listing":
|
|
618
619
|
case "pre":
|
|
619
|
-
for (d in e.push(
|
|
620
|
+
for (d in e.push(O(t)), l = s = null, i) if (r.call(i, d) && (u = i[d], u != null)) switch (d) {
|
|
620
621
|
case "children":
|
|
621
622
|
s = u;
|
|
622
623
|
break;
|
|
623
624
|
case "dangerouslySetInnerHTML":
|
|
624
625
|
l = u;
|
|
625
626
|
break;
|
|
626
|
-
default:
|
|
627
|
+
default: C(e, a, d, u);
|
|
627
628
|
}
|
|
628
629
|
if (e.push(">"), l != null) {
|
|
629
630
|
if (s != null) throw Error(n(60));
|
|
@@ -645,10 +646,10 @@ var he = {
|
|
|
645
646
|
case "source":
|
|
646
647
|
case "track":
|
|
647
648
|
case "wbr":
|
|
648
|
-
for (var _ in e.push(
|
|
649
|
+
for (var _ in e.push(O(t)), i) if (r.call(i, _) && (s = i[_], s != null)) switch (_) {
|
|
649
650
|
case "children":
|
|
650
651
|
case "dangerouslySetInnerHTML": throw Error(n(399, t));
|
|
651
|
-
default:
|
|
652
|
+
default: C(e, a, _, s);
|
|
652
653
|
}
|
|
653
654
|
return e.push("/>"), null;
|
|
654
655
|
case "annotation-xml":
|
|
@@ -658,11 +659,11 @@ var he = {
|
|
|
658
659
|
case "font-face-uri":
|
|
659
660
|
case "font-face-format":
|
|
660
661
|
case "font-face-name":
|
|
661
|
-
case "missing-glyph": return
|
|
662
|
-
case "html": return o.insertionMode === 0 && e.push("<!DOCTYPE html>"),
|
|
662
|
+
case "missing-glyph": return te(e, i, t, a);
|
|
663
|
+
case "html": return o.insertionMode === 0 && e.push("<!DOCTYPE html>"), te(e, i, t, a);
|
|
663
664
|
default:
|
|
664
|
-
if (t.indexOf("-") === -1 && typeof i.is != "string") return
|
|
665
|
-
for (f in e.push(
|
|
665
|
+
if (t.indexOf("-") === -1 && typeof i.is != "string") return te(e, i, t, a);
|
|
666
|
+
for (f in e.push(O(t)), l = s = null, i) if (r.call(i, f) && (u = i[f], u != null)) switch (f) {
|
|
666
667
|
case "children":
|
|
667
668
|
s = u;
|
|
668
669
|
break;
|
|
@@ -670,20 +671,20 @@ var he = {
|
|
|
670
671
|
l = u;
|
|
671
672
|
break;
|
|
672
673
|
case "style":
|
|
673
|
-
|
|
674
|
+
ee(e, a, u);
|
|
674
675
|
break;
|
|
675
676
|
case "suppressContentEditableWarning":
|
|
676
677
|
case "suppressHydrationWarning": break;
|
|
677
678
|
default: c(f) && typeof u != "function" && typeof u != "symbol" && e.push(" ", f, "=\"", g(u), "\"");
|
|
678
679
|
}
|
|
679
|
-
return e.push(">"),
|
|
680
|
+
return e.push(">"), w(e, l, s), s;
|
|
680
681
|
}
|
|
681
682
|
}
|
|
682
|
-
function
|
|
683
|
+
function re(e, t, r) {
|
|
683
684
|
if (e.push("<!--$?--><template id=\""), r === null) throw Error(n(395));
|
|
684
685
|
return e.push(r), e.push("\"></template>");
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function ie(e, t, r, i) {
|
|
687
688
|
switch (r.insertionMode) {
|
|
688
689
|
case 0:
|
|
689
690
|
case 1: return e.push("<div hidden id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
@@ -696,7 +697,7 @@ var he = {
|
|
|
696
697
|
default: throw Error(n(397));
|
|
697
698
|
}
|
|
698
699
|
}
|
|
699
|
-
function
|
|
700
|
+
function ae(e, t) {
|
|
700
701
|
switch (t.insertionMode) {
|
|
701
702
|
case 0:
|
|
702
703
|
case 1: return e.push("</div>");
|
|
@@ -709,9 +710,9 @@ var he = {
|
|
|
709
710
|
default: throw Error(n(397));
|
|
710
711
|
}
|
|
711
712
|
}
|
|
712
|
-
var
|
|
713
|
-
function
|
|
714
|
-
return JSON.stringify(e).replace(
|
|
713
|
+
var oe = /[<\u2028\u2029]/g;
|
|
714
|
+
function se(e) {
|
|
715
|
+
return JSON.stringify(e).replace(oe, function(e) {
|
|
715
716
|
switch (e) {
|
|
716
717
|
case "<": return "\\u003c";
|
|
717
718
|
case "\u2028": return "\\u2028";
|
|
@@ -720,7 +721,7 @@ var he = {
|
|
|
720
721
|
}
|
|
721
722
|
});
|
|
722
723
|
}
|
|
723
|
-
function
|
|
724
|
+
function k(e, t) {
|
|
724
725
|
return t = t === void 0 ? "" : t, {
|
|
725
726
|
bootstrapChunks: [],
|
|
726
727
|
startInlineScript: "<script>",
|
|
@@ -735,10 +736,10 @@ var he = {
|
|
|
735
736
|
generateStaticMarkup: e
|
|
736
737
|
};
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
+
function ce(e, t, n, r) {
|
|
739
740
|
return n.generateStaticMarkup ? (e.push(g(t)), !1) : (t === "" ? e = r : (r && e.push("<!-- -->"), e.push(g(t)), e = !0), e);
|
|
740
741
|
}
|
|
741
|
-
var
|
|
742
|
+
var A = Object.assign, le = Symbol.for("react.element"), ue = Symbol.for("react.portal"), de = Symbol.for("react.fragment"), fe = Symbol.for("react.strict_mode"), pe = Symbol.for("react.profiler"), me = Symbol.for("react.provider"), he = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), ge = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), F = Symbol.for("react.scope"), _e = Symbol.for("react.debug_trace_mode"), ve = Symbol.for("react.legacy_hidden"), ye = Symbol.for("react.default_value"), be = Symbol.iterator;
|
|
742
743
|
function xe(e) {
|
|
743
744
|
if (e == null) return null;
|
|
744
745
|
if (typeof e == "function") return e.displayName || e.name || null;
|
|
@@ -790,24 +791,24 @@ var he = {
|
|
|
790
791
|
function we(e) {
|
|
791
792
|
e.context._currentValue2 = e.parentValue, e = e.parent, e !== null && we(e);
|
|
792
793
|
}
|
|
793
|
-
function
|
|
794
|
+
function Te(e) {
|
|
794
795
|
var t = e.parent;
|
|
795
|
-
t !== null &&
|
|
796
|
+
t !== null && Te(t), e.context._currentValue2 = e.value;
|
|
796
797
|
}
|
|
797
|
-
function
|
|
798
|
+
function Ee(e, t) {
|
|
798
799
|
if (e.context._currentValue2 = e.parentValue, e = e.parent, e === null) throw Error(n(402));
|
|
799
|
-
e.depth === t.depth ? L(e, t) :
|
|
800
|
+
e.depth === t.depth ? L(e, t) : Ee(e, t);
|
|
800
801
|
}
|
|
801
|
-
function
|
|
802
|
+
function R(e, t) {
|
|
802
803
|
var r = t.parent;
|
|
803
804
|
if (r === null) throw Error(n(402));
|
|
804
|
-
e.depth === r.depth ? L(e, r) :
|
|
805
|
+
e.depth === r.depth ? L(e, r) : R(e, r), t.context._currentValue2 = t.value;
|
|
805
806
|
}
|
|
806
|
-
function
|
|
807
|
+
function z(e) {
|
|
807
808
|
var t = I;
|
|
808
|
-
t !== e && (t === null ?
|
|
809
|
+
t !== e && (t === null ? Te(e) : e === null ? we(t) : t.depth === e.depth ? L(t, e) : t.depth > e.depth ? Ee(t, e) : R(t, e), I = e);
|
|
809
810
|
}
|
|
810
|
-
var
|
|
811
|
+
var De = {
|
|
811
812
|
isMounted: function() {
|
|
812
813
|
return !1;
|
|
813
814
|
},
|
|
@@ -819,30 +820,30 @@ var he = {
|
|
|
819
820
|
},
|
|
820
821
|
enqueueForceUpdate: function() {}
|
|
821
822
|
};
|
|
822
|
-
function
|
|
823
|
+
function Oe(e, t, n, r) {
|
|
823
824
|
var i = e.state === void 0 ? null : e.state;
|
|
824
|
-
e.updater =
|
|
825
|
+
e.updater = De, e.props = n, e.state = i;
|
|
825
826
|
var a = {
|
|
826
827
|
queue: [],
|
|
827
828
|
replace: !1
|
|
828
829
|
};
|
|
829
830
|
e._reactInternals = a;
|
|
830
831
|
var o = t.contextType;
|
|
831
|
-
if (e.context = typeof o == "object" && o ? o._currentValue2 : r, o = t.getDerivedStateFromProps, typeof o == "function" && (o = o(n, i), i = o == null ? i :
|
|
832
|
+
if (e.context = typeof o == "object" && o ? o._currentValue2 : r, o = t.getDerivedStateFromProps, typeof o == "function" && (o = o(n, i), i = o == null ? i : A({}, i, o), e.state = i), typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function" && (typeof e.UNSAFE_componentWillMount == "function" || typeof e.componentWillMount == "function")) if (t = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), t !== e.state && De.enqueueReplaceState(e, e.state, null), a.queue !== null && 0 < a.queue.length) if (t = a.queue, o = a.replace, a.queue = null, a.replace = !1, o && t.length === 1) e.state = t[0];
|
|
832
833
|
else {
|
|
833
834
|
for (a = o ? t[0] : e.state, i = !0, o = +!!o; o < t.length; o++) {
|
|
834
835
|
var s = t[o];
|
|
835
|
-
s = typeof s == "function" ? s.call(e, a, n, r) : s, s != null && (i ? (i = !1, a =
|
|
836
|
+
s = typeof s == "function" ? s.call(e, a, n, r) : s, s != null && (i ? (i = !1, a = A({}, a, s)) : A(a, s));
|
|
836
837
|
}
|
|
837
838
|
e.state = a;
|
|
838
839
|
}
|
|
839
840
|
else a.queue = null;
|
|
840
841
|
}
|
|
841
|
-
var
|
|
842
|
+
var ke = {
|
|
842
843
|
id: 1,
|
|
843
844
|
overflow: ""
|
|
844
845
|
};
|
|
845
|
-
function
|
|
846
|
+
function Ae(e, t, n) {
|
|
846
847
|
var r = e.id;
|
|
847
848
|
e = e.overflow;
|
|
848
849
|
var i = 32 - je(r) - 1;
|
|
@@ -867,33 +868,33 @@ var he = {
|
|
|
867
868
|
function Fe(e, t) {
|
|
868
869
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
869
870
|
}
|
|
870
|
-
var
|
|
871
|
-
function
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
871
|
+
var Ie = typeof Object.is == "function" ? Object.is : Fe, B = null, V = null, Le = null, H = null, Re = !1, ze = !1, Be = 0, U = null, Ve = 0;
|
|
872
|
+
function W() {
|
|
873
|
+
if (B === null) throw Error(n(321));
|
|
874
|
+
return B;
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
-
if (0 <
|
|
876
|
+
function He() {
|
|
877
|
+
if (0 < Ve) throw Error(n(312));
|
|
877
878
|
return {
|
|
878
879
|
memoizedState: null,
|
|
879
880
|
queue: null,
|
|
880
881
|
next: null
|
|
881
882
|
};
|
|
882
883
|
}
|
|
883
|
-
function
|
|
884
|
-
return H === null ? Le === null ? (Re = !1, Le = H =
|
|
884
|
+
function G() {
|
|
885
|
+
return H === null ? Le === null ? (Re = !1, Le = H = He()) : (Re = !0, H = Le) : H.next === null ? (Re = !1, H = H.next = He()) : (Re = !0, H = H.next), H;
|
|
885
886
|
}
|
|
886
887
|
function Ue() {
|
|
887
|
-
|
|
888
|
+
V = B = null, ze = !1, Le = null, Ve = 0, H = U = null;
|
|
888
889
|
}
|
|
889
890
|
function We(e, t) {
|
|
890
891
|
return typeof t == "function" ? t(e) : t;
|
|
891
892
|
}
|
|
892
893
|
function Ge(e, t, n) {
|
|
893
|
-
if (
|
|
894
|
+
if (B = W(), H = G(), Re) {
|
|
894
895
|
var r = H.queue;
|
|
895
|
-
if (t = r.dispatch,
|
|
896
|
-
|
|
896
|
+
if (t = r.dispatch, U !== null && (n = U.get(r), n !== void 0)) {
|
|
897
|
+
U.delete(r), r = H.memoizedState;
|
|
897
898
|
do
|
|
898
899
|
r = e(r, n.action), n = n.next;
|
|
899
900
|
while (n !== null);
|
|
@@ -904,16 +905,16 @@ var he = {
|
|
|
904
905
|
return e = e === We ? typeof t == "function" ? t() : t : n === void 0 ? t : n(t), H.memoizedState = e, e = H.queue = {
|
|
905
906
|
last: null,
|
|
906
907
|
dispatch: null
|
|
907
|
-
}, e = e.dispatch =
|
|
908
|
+
}, e = e.dispatch = qe.bind(null, B, e), [H.memoizedState, e];
|
|
908
909
|
}
|
|
909
|
-
function
|
|
910
|
-
if (
|
|
910
|
+
function Ke(e, t) {
|
|
911
|
+
if (B = W(), H = G(), t = t === void 0 ? null : t, H !== null) {
|
|
911
912
|
var n = H.memoizedState;
|
|
912
913
|
if (n !== null && t !== null) {
|
|
913
914
|
var r = n[1];
|
|
914
915
|
a: if (r === null) r = !1;
|
|
915
916
|
else {
|
|
916
|
-
for (var i = 0; i < r.length && i < t.length; i++) if (!
|
|
917
|
+
for (var i = 0; i < r.length && i < t.length; i++) if (!Ie(t[i], r[i])) {
|
|
917
918
|
r = !1;
|
|
918
919
|
break a;
|
|
919
920
|
}
|
|
@@ -924,74 +925,74 @@ var he = {
|
|
|
924
925
|
}
|
|
925
926
|
return e = e(), H.memoizedState = [e, t], e;
|
|
926
927
|
}
|
|
927
|
-
function
|
|
928
|
-
if (25 <=
|
|
929
|
-
if (e ===
|
|
928
|
+
function qe(e, t, r) {
|
|
929
|
+
if (25 <= Ve) throw Error(n(301));
|
|
930
|
+
if (e === B) if (ze = !0, e = {
|
|
930
931
|
action: r,
|
|
931
932
|
next: null
|
|
932
|
-
},
|
|
933
|
+
}, U === null && (U = /* @__PURE__ */ new Map()), r = U.get(t), r === void 0) U.set(t, e);
|
|
933
934
|
else {
|
|
934
935
|
for (t = r; t.next !== null;) t = t.next;
|
|
935
936
|
t.next = e;
|
|
936
937
|
}
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function Je() {
|
|
939
940
|
throw Error(n(394));
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
-
var
|
|
942
|
+
function Ye() {}
|
|
943
|
+
var Xe = {
|
|
943
944
|
readContext: function(e) {
|
|
944
945
|
return e._currentValue2;
|
|
945
946
|
},
|
|
946
947
|
useContext: function(e) {
|
|
947
|
-
return
|
|
948
|
+
return W(), e._currentValue2;
|
|
948
949
|
},
|
|
949
|
-
useMemo:
|
|
950
|
+
useMemo: Ke,
|
|
950
951
|
useReducer: Ge,
|
|
951
952
|
useRef: function(e) {
|
|
952
|
-
|
|
953
|
+
B = W(), H = G();
|
|
953
954
|
var t = H.memoizedState;
|
|
954
955
|
return t === null ? (e = { current: e }, H.memoizedState = e) : t;
|
|
955
956
|
},
|
|
956
957
|
useState: function(e) {
|
|
957
958
|
return Ge(We, e);
|
|
958
959
|
},
|
|
959
|
-
useInsertionEffect:
|
|
960
|
+
useInsertionEffect: Ye,
|
|
960
961
|
useLayoutEffect: function() {},
|
|
961
962
|
useCallback: function(e, t) {
|
|
962
|
-
return
|
|
963
|
+
return Ke(function() {
|
|
963
964
|
return e;
|
|
964
965
|
}, t);
|
|
965
966
|
},
|
|
966
|
-
useImperativeHandle:
|
|
967
|
-
useEffect:
|
|
968
|
-
useDebugValue:
|
|
967
|
+
useImperativeHandle: Ye,
|
|
968
|
+
useEffect: Ye,
|
|
969
|
+
useDebugValue: Ye,
|
|
969
970
|
useDeferredValue: function(e) {
|
|
970
|
-
return
|
|
971
|
+
return W(), e;
|
|
971
972
|
},
|
|
972
973
|
useTransition: function() {
|
|
973
|
-
return
|
|
974
|
+
return W(), [!1, Je];
|
|
974
975
|
},
|
|
975
976
|
useId: function() {
|
|
976
|
-
var e =
|
|
977
|
+
var e = V.treeContext, t = e.overflow;
|
|
977
978
|
e = e.id, e = (e & ~(1 << 32 - je(e) - 1)).toString(32) + t;
|
|
978
|
-
var r =
|
|
979
|
+
var r = Ze;
|
|
979
980
|
if (r === null) throw Error(n(404));
|
|
980
|
-
return t =
|
|
981
|
+
return t = Be++, e = ":" + r.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
981
982
|
},
|
|
982
983
|
useMutableSource: function(e, t) {
|
|
983
|
-
return
|
|
984
|
+
return W(), t(e._source);
|
|
984
985
|
},
|
|
985
986
|
useSyncExternalStore: function(e, t, r) {
|
|
986
987
|
if (r === void 0) throw Error(n(407));
|
|
987
988
|
return r();
|
|
988
989
|
}
|
|
989
|
-
},
|
|
990
|
-
function
|
|
990
|
+
}, Ze = null, Qe = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
|
|
991
|
+
function $e(e) {
|
|
991
992
|
return console.error(e), null;
|
|
992
993
|
}
|
|
993
|
-
function
|
|
994
|
-
function
|
|
994
|
+
function et() {}
|
|
995
|
+
function tt(e, t, n, r, i, a, o, s, c) {
|
|
995
996
|
var l = [], u = /* @__PURE__ */ new Set();
|
|
996
997
|
return t = {
|
|
997
998
|
destination: null,
|
|
@@ -1008,20 +1009,20 @@ var he = {
|
|
|
1008
1009
|
clientRenderedBoundaries: [],
|
|
1009
1010
|
completedBoundaries: [],
|
|
1010
1011
|
partialBoundaries: [],
|
|
1011
|
-
onError: i === void 0 ?
|
|
1012
|
-
onAllReady: a === void 0 ?
|
|
1013
|
-
onShellReady: o === void 0 ?
|
|
1014
|
-
onShellError: s === void 0 ?
|
|
1015
|
-
onFatalError: c === void 0 ?
|
|
1016
|
-
}, n =
|
|
1017
|
-
}
|
|
1018
|
-
function
|
|
1012
|
+
onError: i === void 0 ? $e : i,
|
|
1013
|
+
onAllReady: a === void 0 ? et : a,
|
|
1014
|
+
onShellReady: o === void 0 ? et : o,
|
|
1015
|
+
onShellError: s === void 0 ? et : s,
|
|
1016
|
+
onFatalError: c === void 0 ? et : c
|
|
1017
|
+
}, n = rt(t, 0, null, n, !1, !1), n.parentFlushed = !0, e = nt(t, e, null, n, u, Se, null, ke), l.push(e), t;
|
|
1018
|
+
}
|
|
1019
|
+
function nt(e, t, n, r, i, a, o, s) {
|
|
1019
1020
|
e.allPendingTasks++, n === null ? e.pendingRootTasks++ : n.pendingTasks++;
|
|
1020
1021
|
var c = {
|
|
1021
1022
|
node: t,
|
|
1022
1023
|
ping: function() {
|
|
1023
1024
|
var t = e.pingedTasks;
|
|
1024
|
-
t.push(c), t.length === 1 &&
|
|
1025
|
+
t.push(c), t.length === 1 && ht(e);
|
|
1025
1026
|
},
|
|
1026
1027
|
blockedBoundary: n,
|
|
1027
1028
|
blockedSegment: r,
|
|
@@ -1032,7 +1033,7 @@ var he = {
|
|
|
1032
1033
|
};
|
|
1033
1034
|
return i.add(c), c;
|
|
1034
1035
|
}
|
|
1035
|
-
function
|
|
1036
|
+
function rt(e, t, n, r, i, a) {
|
|
1036
1037
|
return {
|
|
1037
1038
|
status: 0,
|
|
1038
1039
|
id: -1,
|
|
@@ -1046,57 +1047,57 @@ var he = {
|
|
|
1046
1047
|
textEmbedded: a
|
|
1047
1048
|
};
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
+
function it(e, t) {
|
|
1050
1051
|
if (e = e.onError(t), e != null && typeof e != "string") throw Error("onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"" + typeof e + "\" instead");
|
|
1051
1052
|
return e;
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
+
function at(e, t) {
|
|
1054
1055
|
var n = e.onShellError;
|
|
1055
1056
|
n(t), n = e.onFatalError, n(t), e.destination === null ? (e.status = 1, e.fatalError = t) : (e.status = 2, e.destination.destroy(t));
|
|
1056
1057
|
}
|
|
1057
|
-
function
|
|
1058
|
-
for (
|
|
1058
|
+
function ot(e, t, n, r, i) {
|
|
1059
|
+
for (B = {}, V = t, Be = 0, e = n(r, i); ze;) ze = !1, Be = 0, Ve += 1, H = null, e = n(r, i);
|
|
1059
1060
|
return Ue(), e;
|
|
1060
1061
|
}
|
|
1061
|
-
function
|
|
1062
|
+
function st(e, t, r, i) {
|
|
1062
1063
|
var a = r.render(), o = i.childContextTypes;
|
|
1063
1064
|
if (o != null) {
|
|
1064
1065
|
var s = t.legacyContext;
|
|
1065
1066
|
if (typeof r.getChildContext != "function") i = s;
|
|
1066
1067
|
else {
|
|
1067
1068
|
for (var c in r = r.getChildContext(), r) if (!(c in o)) throw Error(n(108, xe(i) || "Unknown", c));
|
|
1068
|
-
i =
|
|
1069
|
+
i = A({}, s, r);
|
|
1069
1070
|
}
|
|
1070
|
-
t.legacyContext = i,
|
|
1071
|
-
} else
|
|
1071
|
+
t.legacyContext = i, K(e, t, a), t.legacyContext = s;
|
|
1072
|
+
} else K(e, t, a);
|
|
1072
1073
|
}
|
|
1073
|
-
function
|
|
1074
|
+
function ct(e, t) {
|
|
1074
1075
|
if (e && e.defaultProps) {
|
|
1075
|
-
for (var n in t =
|
|
1076
|
+
for (var n in t = A({}, t), e = e.defaultProps, e) t[n] === void 0 && (t[n] = e[n]);
|
|
1076
1077
|
return t;
|
|
1077
1078
|
}
|
|
1078
1079
|
return t;
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
+
function lt(e, t, r, i, a) {
|
|
1081
1082
|
if (typeof r == "function") if (r.prototype && r.prototype.isReactComponent) {
|
|
1082
1083
|
a = Ce(r, t.legacyContext);
|
|
1083
1084
|
var o = r.contextType;
|
|
1084
|
-
o = new r(i, typeof o == "object" && o ? o._currentValue2 : a),
|
|
1085
|
+
o = new r(i, typeof o == "object" && o ? o._currentValue2 : a), Oe(o, r, i, a), st(e, t, o, r);
|
|
1085
1086
|
} else {
|
|
1086
|
-
o = Ce(r, t.legacyContext), a =
|
|
1087
|
-
var s =
|
|
1088
|
-
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0)
|
|
1087
|
+
o = Ce(r, t.legacyContext), a = ot(e, t, r, i, o);
|
|
1088
|
+
var s = Be !== 0;
|
|
1089
|
+
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0) Oe(a, r, i, o), st(e, t, a, r);
|
|
1089
1090
|
else if (s) {
|
|
1090
|
-
i = t.treeContext, t.treeContext =
|
|
1091
|
+
i = t.treeContext, t.treeContext = Ae(i, 1, 0);
|
|
1091
1092
|
try {
|
|
1092
|
-
|
|
1093
|
+
K(e, t, a);
|
|
1093
1094
|
} finally {
|
|
1094
1095
|
t.treeContext = i;
|
|
1095
1096
|
}
|
|
1096
|
-
} else
|
|
1097
|
+
} else K(e, t, a);
|
|
1097
1098
|
}
|
|
1098
1099
|
else if (typeof r == "string") {
|
|
1099
|
-
switch (a = t.blockedSegment, o =
|
|
1100
|
+
switch (a = t.blockedSegment, o = ne(a.chunks, r, i, e.responseState, a.formatContext), a.lastPushedText = !1, s = a.formatContext, a.formatContext = x(s, r, i), dt(e, t, o), a.formatContext = s, r) {
|
|
1100
1101
|
case "area":
|
|
1101
1102
|
case "base":
|
|
1102
1103
|
case "br":
|
|
@@ -1122,10 +1123,10 @@ var he = {
|
|
|
1122
1123
|
case fe:
|
|
1123
1124
|
case pe:
|
|
1124
1125
|
case de:
|
|
1125
|
-
|
|
1126
|
+
K(e, t, i.children);
|
|
1126
1127
|
return;
|
|
1127
1128
|
case N:
|
|
1128
|
-
|
|
1129
|
+
K(e, t, i.children);
|
|
1129
1130
|
return;
|
|
1130
1131
|
case F: throw Error(n(343));
|
|
1131
1132
|
case M:
|
|
@@ -1141,34 +1142,34 @@ var he = {
|
|
|
1141
1142
|
byteSize: 0,
|
|
1142
1143
|
fallbackAbortableTasks: s,
|
|
1143
1144
|
errorDigest: null
|
|
1144
|
-
}, l =
|
|
1145
|
+
}, l = rt(e, a.chunks.length, c, a.formatContext, !1, !1);
|
|
1145
1146
|
a.children.push(l), a.lastPushedText = !1;
|
|
1146
|
-
var u =
|
|
1147
|
+
var u = rt(e, 0, null, a.formatContext, !1, !1);
|
|
1147
1148
|
u.parentFlushed = !0, t.blockedBoundary = c, t.blockedSegment = u;
|
|
1148
1149
|
try {
|
|
1149
|
-
if (
|
|
1150
|
+
if (dt(e, t, i), e.responseState.generateStaticMarkup || u.lastPushedText && u.textEmbedded && u.chunks.push("<!-- -->"), u.status = 1, q(c, u), c.pendingTasks === 0) break a;
|
|
1150
1151
|
} catch (t) {
|
|
1151
|
-
u.status = 4, c.forceClientRender = !0, c.errorDigest =
|
|
1152
|
+
u.status = 4, c.forceClientRender = !0, c.errorDigest = it(e, t);
|
|
1152
1153
|
} finally {
|
|
1153
1154
|
t.blockedBoundary = r, t.blockedSegment = a;
|
|
1154
1155
|
}
|
|
1155
|
-
t =
|
|
1156
|
+
t = nt(e, o, r, l, s, t.legacyContext, t.context, t.treeContext), e.pingedTasks.push(t);
|
|
1156
1157
|
}
|
|
1157
1158
|
return;
|
|
1158
1159
|
}
|
|
1159
1160
|
if (typeof r == "object" && r) switch (r.$$typeof) {
|
|
1160
1161
|
case j:
|
|
1161
|
-
if (i =
|
|
1162
|
-
r = t.treeContext, t.treeContext =
|
|
1162
|
+
if (i = ot(e, t, r.render, i, a), Be !== 0) {
|
|
1163
|
+
r = t.treeContext, t.treeContext = Ae(r, 1, 0);
|
|
1163
1164
|
try {
|
|
1164
|
-
|
|
1165
|
+
K(e, t, i);
|
|
1165
1166
|
} finally {
|
|
1166
1167
|
t.treeContext = r;
|
|
1167
1168
|
}
|
|
1168
|
-
} else
|
|
1169
|
+
} else K(e, t, i);
|
|
1169
1170
|
return;
|
|
1170
1171
|
case ge:
|
|
1171
|
-
r = r.type, i =
|
|
1172
|
+
r = r.type, i = ct(r, i), lt(e, t, r, i, a);
|
|
1172
1173
|
return;
|
|
1173
1174
|
case me:
|
|
1174
1175
|
if (a = i.children, r = r._context, i = i.value, o = r._currentValue2, r._currentValue2 = i, s = I, I = i = {
|
|
@@ -1177,33 +1178,33 @@ var he = {
|
|
|
1177
1178
|
context: r,
|
|
1178
1179
|
parentValue: o,
|
|
1179
1180
|
value: i
|
|
1180
|
-
}, t.context = i,
|
|
1181
|
+
}, t.context = i, K(e, t, a), e = I, e === null) throw Error(n(403));
|
|
1181
1182
|
i = e.parentValue, e.context._currentValue2 = i === ye ? e.context._defaultValue : i, e = I = e.parent, t.context = e;
|
|
1182
1183
|
return;
|
|
1183
1184
|
case he:
|
|
1184
|
-
i = i.children, i = i(r._currentValue2),
|
|
1185
|
+
i = i.children, i = i(r._currentValue2), K(e, t, i);
|
|
1185
1186
|
return;
|
|
1186
1187
|
case P:
|
|
1187
|
-
a = r._init, r = a(r._payload), i =
|
|
1188
|
+
a = r._init, r = a(r._payload), i = ct(r, i), lt(e, t, r, i, void 0);
|
|
1188
1189
|
return;
|
|
1189
1190
|
}
|
|
1190
1191
|
throw Error(n(130, r == null ? r : typeof r, ""));
|
|
1191
1192
|
}
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
+
function K(e, t, r) {
|
|
1194
1195
|
if (t.node = r, typeof r == "object" && r) {
|
|
1195
1196
|
switch (r.$$typeof) {
|
|
1196
1197
|
case le:
|
|
1197
|
-
|
|
1198
|
+
lt(e, t, r.type, r.props, r.ref);
|
|
1198
1199
|
return;
|
|
1199
1200
|
case ue: throw Error(n(257));
|
|
1200
1201
|
case P:
|
|
1201
1202
|
var i = r._init;
|
|
1202
|
-
r = i(r._payload),
|
|
1203
|
+
r = i(r._payload), K(e, t, r);
|
|
1203
1204
|
return;
|
|
1204
1205
|
}
|
|
1205
1206
|
if (y(r)) {
|
|
1206
|
-
|
|
1207
|
+
ut(e, t, r);
|
|
1207
1208
|
return;
|
|
1208
1209
|
}
|
|
1209
1210
|
if (typeof r != "object" || !r ? i = null : (i = be && r[be] || r["@@iterator"], i = typeof i == "function" ? i : null), i &&= i.call(r)) {
|
|
@@ -1212,51 +1213,51 @@ var he = {
|
|
|
1212
1213
|
do
|
|
1213
1214
|
a.push(r.value), r = i.next();
|
|
1214
1215
|
while (!r.done);
|
|
1215
|
-
|
|
1216
|
+
ut(e, t, a);
|
|
1216
1217
|
}
|
|
1217
1218
|
return;
|
|
1218
1219
|
}
|
|
1219
1220
|
throw e = Object.prototype.toString.call(r), Error(n(31, e === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : e));
|
|
1220
1221
|
}
|
|
1221
|
-
typeof r == "string" ? (i = t.blockedSegment, i.lastPushedText =
|
|
1222
|
+
typeof r == "string" ? (i = t.blockedSegment, i.lastPushedText = ce(t.blockedSegment.chunks, r, e.responseState, i.lastPushedText)) : typeof r == "number" && (i = t.blockedSegment, i.lastPushedText = ce(t.blockedSegment.chunks, "" + r, e.responseState, i.lastPushedText));
|
|
1222
1223
|
}
|
|
1223
|
-
function
|
|
1224
|
+
function ut(e, t, n) {
|
|
1224
1225
|
for (var r = n.length, i = 0; i < r; i++) {
|
|
1225
1226
|
var a = t.treeContext;
|
|
1226
|
-
t.treeContext =
|
|
1227
|
+
t.treeContext = Ae(a, r, i);
|
|
1227
1228
|
try {
|
|
1228
|
-
|
|
1229
|
+
dt(e, t, n[i]);
|
|
1229
1230
|
} finally {
|
|
1230
1231
|
t.treeContext = a;
|
|
1231
1232
|
}
|
|
1232
1233
|
}
|
|
1233
1234
|
}
|
|
1234
|
-
function
|
|
1235
|
+
function dt(e, t, n) {
|
|
1235
1236
|
var r = t.blockedSegment.formatContext, i = t.legacyContext, a = t.context;
|
|
1236
1237
|
try {
|
|
1237
|
-
return
|
|
1238
|
+
return K(e, t, n);
|
|
1238
1239
|
} catch (c) {
|
|
1239
1240
|
if (Ue(), typeof c == "object" && c && typeof c.then == "function") {
|
|
1240
1241
|
n = c;
|
|
1241
|
-
var o = t.blockedSegment, s =
|
|
1242
|
-
o.children.push(s), o.lastPushedText = !1, e =
|
|
1243
|
-
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a,
|
|
1242
|
+
var o = t.blockedSegment, s = rt(e, o.chunks.length, null, o.formatContext, o.lastPushedText, !0);
|
|
1243
|
+
o.children.push(s), o.lastPushedText = !1, e = nt(e, t.node, t.blockedBoundary, s, t.abortSet, t.legacyContext, t.context, t.treeContext).ping, n.then(e, e), t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, z(a);
|
|
1244
|
+
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, z(a), c;
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
1246
|
-
function
|
|
1247
|
+
function ft(e) {
|
|
1247
1248
|
var t = e.blockedBoundary;
|
|
1248
1249
|
e = e.blockedSegment, e.status = 3, mt(this, t, e);
|
|
1249
1250
|
}
|
|
1250
|
-
function
|
|
1251
|
+
function pt(e, t, r) {
|
|
1251
1252
|
var i = e.blockedBoundary;
|
|
1252
1253
|
e.blockedSegment.status = 3, i === null ? (t.allPendingTasks--, t.status !== 2 && (t.status = 2, t.destination !== null && t.destination.push(null))) : (i.pendingTasks--, i.forceClientRender || (i.forceClientRender = !0, e = r === void 0 ? Error(n(432)) : r, i.errorDigest = t.onError(e), i.parentFlushed && t.clientRenderedBoundaries.push(i)), i.fallbackAbortableTasks.forEach(function(e) {
|
|
1253
|
-
return
|
|
1254
|
+
return pt(e, t, r);
|
|
1254
1255
|
}), i.fallbackAbortableTasks.clear(), t.allPendingTasks--, t.allPendingTasks === 0 && (i = t.onAllReady, i()));
|
|
1255
1256
|
}
|
|
1256
|
-
function
|
|
1257
|
+
function q(e, t) {
|
|
1257
1258
|
if (t.chunks.length === 0 && t.children.length === 1 && t.children[0].boundary === null) {
|
|
1258
1259
|
var n = t.children[0];
|
|
1259
|
-
n.id = t.id, n.parentFlushed = !0, n.status === 1 &&
|
|
1260
|
+
n.id = t.id, n.parentFlushed = !0, n.status === 1 && q(e, n);
|
|
1260
1261
|
} else e.completedSegments.push(t);
|
|
1261
1262
|
}
|
|
1262
1263
|
function mt(e, t, r) {
|
|
@@ -1265,32 +1266,32 @@ var he = {
|
|
|
1265
1266
|
if (e.completedRootSegment !== null) throw Error(n(389));
|
|
1266
1267
|
e.completedRootSegment = r;
|
|
1267
1268
|
}
|
|
1268
|
-
e.pendingRootTasks--, e.pendingRootTasks === 0 && (e.onShellError =
|
|
1269
|
-
} else t.pendingTasks--, t.forceClientRender || (t.pendingTasks === 0 ? (r.parentFlushed && r.status === 1 &&
|
|
1269
|
+
e.pendingRootTasks--, e.pendingRootTasks === 0 && (e.onShellError = et, t = e.onShellReady, t());
|
|
1270
|
+
} else t.pendingTasks--, t.forceClientRender || (t.pendingTasks === 0 ? (r.parentFlushed && r.status === 1 && q(t, r), t.parentFlushed && e.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(ft, e), t.fallbackAbortableTasks.clear()) : r.parentFlushed && r.status === 1 && (q(t, r), t.completedSegments.length === 1 && t.parentFlushed && e.partialBoundaries.push(t)));
|
|
1270
1271
|
e.allPendingTasks--, e.allPendingTasks === 0 && (e = e.onAllReady, e());
|
|
1271
1272
|
}
|
|
1272
|
-
function
|
|
1273
|
+
function ht(e) {
|
|
1273
1274
|
if (e.status !== 2) {
|
|
1274
|
-
var t = I, n =
|
|
1275
|
-
|
|
1276
|
-
var r =
|
|
1277
|
-
|
|
1275
|
+
var t = I, n = Qe.current;
|
|
1276
|
+
Qe.current = Xe;
|
|
1277
|
+
var r = Ze;
|
|
1278
|
+
Ze = e.responseState;
|
|
1278
1279
|
try {
|
|
1279
1280
|
var i = e.pingedTasks, a;
|
|
1280
1281
|
for (a = 0; a < i.length; a++) {
|
|
1281
1282
|
var o = i[a], s = e, c = o.blockedSegment;
|
|
1282
1283
|
if (c.status === 0) {
|
|
1283
|
-
|
|
1284
|
+
z(o.context);
|
|
1284
1285
|
try {
|
|
1285
|
-
|
|
1286
|
+
K(s, o, o.node), s.responseState.generateStaticMarkup || c.lastPushedText && c.textEmbedded && c.chunks.push("<!-- -->"), o.abortSet.delete(o), c.status = 1, mt(s, o.blockedBoundary, c);
|
|
1286
1287
|
} catch (e) {
|
|
1287
1288
|
if (Ue(), typeof e == "object" && e && typeof e.then == "function") {
|
|
1288
1289
|
var l = o.ping;
|
|
1289
1290
|
e.then(l, l);
|
|
1290
1291
|
} else {
|
|
1291
1292
|
o.abortSet.delete(o), c.status = 4;
|
|
1292
|
-
var u = o.blockedBoundary, d = e, f =
|
|
1293
|
-
if (u === null ?
|
|
1293
|
+
var u = o.blockedBoundary, d = e, f = it(s, d);
|
|
1294
|
+
if (u === null ? at(s, d) : (u.pendingTasks--, u.forceClientRender || (u.forceClientRender = !0, u.errorDigest = f, u.parentFlushed && s.clientRenderedBoundaries.push(u))), s.allPendingTasks--, s.allPendingTasks === 0) {
|
|
1294
1295
|
var p = s.onAllReady;
|
|
1295
1296
|
p();
|
|
1296
1297
|
}
|
|
@@ -1298,15 +1299,15 @@ var he = {
|
|
|
1298
1299
|
}
|
|
1299
1300
|
}
|
|
1300
1301
|
}
|
|
1301
|
-
i.splice(0, a), e.destination !== null &&
|
|
1302
|
+
i.splice(0, a), e.destination !== null && bt(e, e.destination);
|
|
1302
1303
|
} catch (t) {
|
|
1303
|
-
|
|
1304
|
+
it(e, t), at(e, t);
|
|
1304
1305
|
} finally {
|
|
1305
|
-
|
|
1306
|
+
Ze = r, Qe.current = n, n === Xe && z(t);
|
|
1306
1307
|
}
|
|
1307
1308
|
}
|
|
1308
1309
|
}
|
|
1309
|
-
function
|
|
1310
|
+
function gt(e, t, r) {
|
|
1310
1311
|
switch (r.parentFlushed = !0, r.status) {
|
|
1311
1312
|
case 0:
|
|
1312
1313
|
var i = r.id = e.nextSegmentId++;
|
|
@@ -1319,48 +1320,48 @@ var he = {
|
|
|
1319
1320
|
r = r.children;
|
|
1320
1321
|
for (var s = 0; s < r.length; s++) {
|
|
1321
1322
|
for (a = r[s]; o < a.index; o++) t.push(i[o]);
|
|
1322
|
-
a =
|
|
1323
|
+
a = J(e, t, a);
|
|
1323
1324
|
}
|
|
1324
1325
|
for (; o < i.length - 1; o++) t.push(i[o]);
|
|
1325
1326
|
return o < i.length && (a = t.push(i[o])), a;
|
|
1326
1327
|
default: throw Error(n(390));
|
|
1327
1328
|
}
|
|
1328
1329
|
}
|
|
1329
|
-
function
|
|
1330
|
+
function J(e, t, r) {
|
|
1330
1331
|
var i = r.boundary;
|
|
1331
|
-
if (i === null) return
|
|
1332
|
-
if (i.parentFlushed = !0, i.forceClientRender) return e.responseState.generateStaticMarkup || (i = i.errorDigest, t.push("<!--$!-->"), t.push("<template"), i && (t.push(" data-dgst=\""), i = g(i), t.push(i), t.push("\"")), t.push("></template>")),
|
|
1332
|
+
if (i === null) return gt(e, t, r);
|
|
1333
|
+
if (i.parentFlushed = !0, i.forceClientRender) return e.responseState.generateStaticMarkup || (i = i.errorDigest, t.push("<!--$!-->"), t.push("<template"), i && (t.push(" data-dgst=\""), i = g(i), t.push(i), t.push("\"")), t.push("></template>")), gt(e, t, r), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
1333
1334
|
if (0 < i.pendingTasks) {
|
|
1334
1335
|
i.rootSegmentID = e.nextSegmentId++, 0 < i.completedSegments.length && e.partialBoundaries.push(i);
|
|
1335
1336
|
var a = e.responseState, o = a.nextSuspenseID++;
|
|
1336
|
-
return a = a.boundaryPrefix + o.toString(16), i = i.id = a,
|
|
1337
|
+
return a = a.boundaryPrefix + o.toString(16), i = i.id = a, re(t, e.responseState, i), gt(e, t, r), t.push("<!--/$-->");
|
|
1337
1338
|
}
|
|
1338
|
-
if (i.byteSize > e.progressiveChunkSize) return i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i),
|
|
1339
|
+
if (i.byteSize > e.progressiveChunkSize) return i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i), re(t, e.responseState, i.id), gt(e, t, r), t.push("<!--/$-->");
|
|
1339
1340
|
if (e.responseState.generateStaticMarkup || t.push("<!--$-->"), r = i.completedSegments, r.length !== 1) throw Error(n(391));
|
|
1340
|
-
return
|
|
1341
|
+
return J(e, t, r[0]), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
1341
1342
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1343
|
+
function _t(e, t, n) {
|
|
1344
|
+
return ie(t, e.responseState, n.formatContext, n.id), J(e, t, n), ae(t, n.formatContext);
|
|
1344
1345
|
}
|
|
1345
|
-
function
|
|
1346
|
-
for (var i = r.completedSegments, a = 0; a < i.length; a++)
|
|
1346
|
+
function vt(e, t, r) {
|
|
1347
|
+
for (var i = r.completedSegments, a = 0; a < i.length; a++) yt(e, t, r, i[a]);
|
|
1347
1348
|
if (i.length = 0, e = e.responseState, i = r.id, r = r.rootSegmentID, t.push(e.startInlineScript), e.sentCompleteBoundaryFunction ? t.push("$RC(\"") : (e.sentCompleteBoundaryFunction = !0, t.push("function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\"")), i === null) throw Error(n(395));
|
|
1348
1349
|
return r = r.toString(16), t.push(i), t.push("\",\""), t.push(e.segmentPrefix), t.push(r), t.push("\")<\/script>");
|
|
1349
1350
|
}
|
|
1350
|
-
function
|
|
1351
|
+
function yt(e, t, r, i) {
|
|
1351
1352
|
if (i.status === 2) return !0;
|
|
1352
1353
|
var a = i.id;
|
|
1353
1354
|
if (a === -1) {
|
|
1354
1355
|
if ((i.id = r.rootSegmentID) === -1) throw Error(n(392));
|
|
1355
|
-
return
|
|
1356
|
+
return _t(e, t, i);
|
|
1356
1357
|
}
|
|
1357
|
-
return
|
|
1358
|
+
return _t(e, t, i), e = e.responseState, t.push(e.startInlineScript), e.sentCompleteSegmentFunction ? t.push("$RS(\"") : (e.sentCompleteSegmentFunction = !0, t.push("function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"")), t.push(e.segmentPrefix), a = a.toString(16), t.push(a), t.push("\",\""), t.push(e.placeholderPrefix), t.push(a), t.push("\")<\/script>");
|
|
1358
1359
|
}
|
|
1359
|
-
function
|
|
1360
|
+
function bt(e, t) {
|
|
1360
1361
|
try {
|
|
1361
1362
|
var r = e.completedRootSegment;
|
|
1362
1363
|
if (r !== null && e.pendingRootTasks === 0) {
|
|
1363
|
-
|
|
1364
|
+
J(e, t, r), e.completedRootSegment = null;
|
|
1364
1365
|
var i = e.responseState.bootstrapChunks;
|
|
1365
1366
|
for (r = 0; r < i.length - 1; r++) t.push(i[r]);
|
|
1366
1367
|
r < i.length && t.push(i[r]);
|
|
@@ -1373,17 +1374,17 @@ var he = {
|
|
|
1373
1374
|
if (i.push(c.startInlineScript), c.sentClientRenderFunction ? i.push("$RX(\"") : (c.sentClientRenderFunction = !0, i.push("function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\"")), l === null) throw Error(n(395));
|
|
1374
1375
|
if (i.push(l), i.push("\""), u || d || f) {
|
|
1375
1376
|
i.push(",");
|
|
1376
|
-
var p =
|
|
1377
|
+
var p = se(u || "");
|
|
1377
1378
|
i.push(p);
|
|
1378
1379
|
}
|
|
1379
1380
|
if (d || f) {
|
|
1380
1381
|
i.push(",");
|
|
1381
|
-
var m =
|
|
1382
|
+
var m = se(d || "");
|
|
1382
1383
|
i.push(m);
|
|
1383
1384
|
}
|
|
1384
1385
|
if (f) {
|
|
1385
1386
|
i.push(",");
|
|
1386
|
-
var h =
|
|
1387
|
+
var h = se(f);
|
|
1387
1388
|
i.push(h);
|
|
1388
1389
|
}
|
|
1389
1390
|
if (!i.push(")<\/script>")) {
|
|
@@ -1393,7 +1394,7 @@ var he = {
|
|
|
1393
1394
|
}
|
|
1394
1395
|
a.splice(0, o);
|
|
1395
1396
|
var g = e.completedBoundaries;
|
|
1396
|
-
for (o = 0; o < g.length; o++) if (!
|
|
1397
|
+
for (o = 0; o < g.length; o++) if (!vt(e, t, g[o])) {
|
|
1397
1398
|
e.destination = null, o++, g.splice(0, o);
|
|
1398
1399
|
return;
|
|
1399
1400
|
}
|
|
@@ -1404,7 +1405,7 @@ var he = {
|
|
|
1404
1405
|
a: {
|
|
1405
1406
|
a = e, s = t;
|
|
1406
1407
|
var y = v.completedSegments;
|
|
1407
|
-
for (c = 0; c < y.length; c++) if (!
|
|
1408
|
+
for (c = 0; c < y.length; c++) if (!yt(a, s, v, y[c])) {
|
|
1408
1409
|
c++, y.splice(0, c);
|
|
1409
1410
|
var b = !1;
|
|
1410
1411
|
break a;
|
|
@@ -1418,7 +1419,7 @@ var he = {
|
|
|
1418
1419
|
}
|
|
1419
1420
|
_.splice(0, o);
|
|
1420
1421
|
var x = e.completedBoundaries;
|
|
1421
|
-
for (o = 0; o < x.length; o++) if (!
|
|
1422
|
+
for (o = 0; o < x.length; o++) if (!vt(e, t, x[o])) {
|
|
1422
1423
|
e.destination = null, o++, x.splice(0, o);
|
|
1423
1424
|
return;
|
|
1424
1425
|
}
|
|
@@ -1427,18 +1428,18 @@ var he = {
|
|
|
1427
1428
|
e.allPendingTasks === 0 && e.pingedTasks.length === 0 && e.clientRenderedBoundaries.length === 0 && e.completedBoundaries.length === 0 && t.push(null);
|
|
1428
1429
|
}
|
|
1429
1430
|
}
|
|
1430
|
-
function
|
|
1431
|
+
function xt(e, t) {
|
|
1431
1432
|
try {
|
|
1432
1433
|
var n = e.abortableTasks;
|
|
1433
1434
|
n.forEach(function(n) {
|
|
1434
|
-
return
|
|
1435
|
-
}), n.clear(), e.destination !== null &&
|
|
1435
|
+
return pt(n, e, t);
|
|
1436
|
+
}), n.clear(), e.destination !== null && bt(e, e.destination);
|
|
1436
1437
|
} catch (t) {
|
|
1437
|
-
|
|
1438
|
+
it(e, t), at(e, t);
|
|
1438
1439
|
}
|
|
1439
1440
|
}
|
|
1440
|
-
function
|
|
1441
|
-
function
|
|
1441
|
+
function St() {}
|
|
1442
|
+
function Ct(e, t, r, i) {
|
|
1442
1443
|
var a = !1, o = null, s = "", c = {
|
|
1443
1444
|
push: function(e) {
|
|
1444
1445
|
return e !== null && (s += e), !0;
|
|
@@ -1447,18 +1448,18 @@ var he = {
|
|
|
1447
1448
|
a = !0, o = e;
|
|
1448
1449
|
}
|
|
1449
1450
|
}, l = !1;
|
|
1450
|
-
if (e =
|
|
1451
|
+
if (e = tt(e, k(r, t ? t.identifierPrefix : void 0), {
|
|
1451
1452
|
insertionMode: 1,
|
|
1452
1453
|
selectedValue: null
|
|
1453
|
-
}, Infinity,
|
|
1454
|
+
}, Infinity, St, void 0, function() {
|
|
1454
1455
|
l = !0;
|
|
1455
|
-
}, void 0, void 0),
|
|
1456
|
+
}, void 0, void 0), ht(e), xt(e, i), e.status === 1) e.status = 2, c.destroy(e.fatalError);
|
|
1456
1457
|
else if (e.status !== 2 && e.destination === null) {
|
|
1457
1458
|
e.destination = c;
|
|
1458
1459
|
try {
|
|
1459
|
-
|
|
1460
|
+
bt(e, c);
|
|
1460
1461
|
} catch (t) {
|
|
1461
|
-
|
|
1462
|
+
it(e, t), at(e, t);
|
|
1462
1463
|
}
|
|
1463
1464
|
}
|
|
1464
1465
|
if (a) throw o;
|
|
@@ -1468,13 +1469,13 @@ var he = {
|
|
|
1468
1469
|
e.renderToNodeStream = function() {
|
|
1469
1470
|
throw Error(n(207));
|
|
1470
1471
|
}, e.renderToStaticMarkup = function(e, t) {
|
|
1471
|
-
return
|
|
1472
|
+
return Ct(e, t, !0, "The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server");
|
|
1472
1473
|
}, e.renderToStaticNodeStream = function() {
|
|
1473
1474
|
throw Error(n(208));
|
|
1474
1475
|
}, e.renderToString = function(e, t) {
|
|
1475
|
-
return
|
|
1476
|
+
return Ct(e, t, !1, "The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server");
|
|
1476
1477
|
}, e.version = "18.3.1";
|
|
1477
|
-
})),
|
|
1478
|
+
})), P = /* @__PURE__ */ e(((e) => {
|
|
1478
1479
|
var t = a("react");
|
|
1479
1480
|
function n(e) {
|
|
1480
1481
|
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -1482,10 +1483,10 @@ var he = {
|
|
|
1482
1483
|
}
|
|
1483
1484
|
var r = null, i = 0;
|
|
1484
1485
|
function o(e, t) {
|
|
1485
|
-
if (t.length !== 0) if (512 < t.length) 0 < i && (e.enqueue(new Uint8Array(r.buffer, 0, i)), r = new Uint8Array(512), i = 0), e.enqueue(t);
|
|
1486
|
+
if (t.length !== 0) if (512 < t.length) 0 < i && (e.enqueue(new Uint8Array(r.buffer, 0, i)), r = /* @__PURE__ */ new Uint8Array(512), i = 0), e.enqueue(t);
|
|
1486
1487
|
else {
|
|
1487
1488
|
var n = r.length - i;
|
|
1488
|
-
n < t.length && (n === 0 ? e.enqueue(r) : (r.set(t.subarray(0, n), i), e.enqueue(r), t = t.subarray(n)), r = new Uint8Array(512), i = 0), r.set(t, i), i += t.length;
|
|
1489
|
+
n < t.length && (n === 0 ? e.enqueue(r) : (r.set(t.subarray(0, n), i), e.enqueue(r), t = t.subarray(n)), r = /* @__PURE__ */ new Uint8Array(512), i = 0), r.set(t, i), i += t.length;
|
|
1489
1490
|
}
|
|
1490
1491
|
}
|
|
1491
1492
|
function s(e, t) {
|
|
@@ -1628,22 +1629,22 @@ var he = {
|
|
|
1628
1629
|
strokeMiterlimit: !0,
|
|
1629
1630
|
strokeOpacity: !0,
|
|
1630
1631
|
strokeWidth: !0
|
|
1631
|
-
},
|
|
1632
|
+
}, ee = [
|
|
1632
1633
|
"Webkit",
|
|
1633
1634
|
"ms",
|
|
1634
1635
|
"Moz",
|
|
1635
1636
|
"O"
|
|
1636
1637
|
];
|
|
1637
1638
|
Object.keys(S).forEach(function(e) {
|
|
1638
|
-
|
|
1639
|
+
ee.forEach(function(t) {
|
|
1639
1640
|
t = t + e.charAt(0).toUpperCase() + e.substring(1), S[t] = S[e];
|
|
1640
1641
|
});
|
|
1641
1642
|
});
|
|
1642
|
-
var
|
|
1643
|
-
function
|
|
1643
|
+
var C = /["'&<>]/;
|
|
1644
|
+
function w(e) {
|
|
1644
1645
|
if (typeof e == "boolean" || typeof e == "number") return "" + e;
|
|
1645
1646
|
e = "" + e;
|
|
1646
|
-
var t =
|
|
1647
|
+
var t = C.exec(e);
|
|
1647
1648
|
if (t) {
|
|
1648
1649
|
var n = "", r, i = 0;
|
|
1649
1650
|
for (r = t.index; r < e.length; r++) {
|
|
@@ -1671,15 +1672,15 @@ var he = {
|
|
|
1671
1672
|
}
|
|
1672
1673
|
return e;
|
|
1673
1674
|
}
|
|
1674
|
-
var
|
|
1675
|
-
function
|
|
1675
|
+
var T = /([A-Z])/g, te = /^ms-/, E = Array.isArray, D = d("<script>"), O = d("<\/script>"), ne = d("<script src=\""), re = d("<script type=\"module\" src=\""), ie = d("\" async=\"\"><\/script>"), ae = /(<\/|<)(s)(cript)/gi;
|
|
1676
|
+
function oe(e, t, n, r) {
|
|
1676
1677
|
return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r;
|
|
1677
1678
|
}
|
|
1678
|
-
function
|
|
1679
|
-
e = e === void 0 ? "" : e, t = t === void 0 ?
|
|
1679
|
+
function se(e, t, n, r, i) {
|
|
1680
|
+
e = e === void 0 ? "" : e, t = t === void 0 ? D : d("<script nonce=\"" + w(t) + "\">");
|
|
1680
1681
|
var a = [];
|
|
1681
|
-
if (n !== void 0 && a.push(t, u(("" + n).replace(
|
|
1682
|
-
if (i !== void 0) for (r = 0; r < i.length; r++) a.push(
|
|
1682
|
+
if (n !== void 0 && a.push(t, u(("" + n).replace(ae, oe)), O), r !== void 0) for (n = 0; n < r.length; n++) a.push(ne, u(w(r[n])), ie);
|
|
1683
|
+
if (i !== void 0) for (r = 0; r < i.length; r++) a.push(re, u(w(i[r])), ie);
|
|
1683
1684
|
return {
|
|
1684
1685
|
bootstrapChunks: a,
|
|
1685
1686
|
startInlineScript: t,
|
|
@@ -1693,33 +1694,33 @@ var he = {
|
|
|
1693
1694
|
sentClientRenderFunction: !1
|
|
1694
1695
|
};
|
|
1695
1696
|
}
|
|
1696
|
-
function
|
|
1697
|
+
function k(e, t) {
|
|
1697
1698
|
return {
|
|
1698
1699
|
insertionMode: e,
|
|
1699
1700
|
selectedValue: t
|
|
1700
1701
|
};
|
|
1701
1702
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return
|
|
1703
|
+
function ce(e) {
|
|
1704
|
+
return k(e === "http://www.w3.org/2000/svg" ? 2 : e === "http://www.w3.org/1998/Math/MathML" ? 3 : 0, null);
|
|
1704
1705
|
}
|
|
1705
|
-
function
|
|
1706
|
+
function A(e, t, n) {
|
|
1706
1707
|
switch (t) {
|
|
1707
|
-
case "select": return
|
|
1708
|
-
case "svg": return
|
|
1709
|
-
case "math": return
|
|
1710
|
-
case "foreignObject": return
|
|
1711
|
-
case "table": return
|
|
1708
|
+
case "select": return k(1, n.value == null ? n.defaultValue : n.value);
|
|
1709
|
+
case "svg": return k(2, null);
|
|
1710
|
+
case "math": return k(3, null);
|
|
1711
|
+
case "foreignObject": return k(1, null);
|
|
1712
|
+
case "table": return k(4, null);
|
|
1712
1713
|
case "thead":
|
|
1713
1714
|
case "tbody":
|
|
1714
|
-
case "tfoot": return
|
|
1715
|
-
case "colgroup": return
|
|
1716
|
-
case "tr": return
|
|
1715
|
+
case "tfoot": return k(5, null);
|
|
1716
|
+
case "colgroup": return k(7, null);
|
|
1717
|
+
case "tr": return k(6, null);
|
|
1717
1718
|
}
|
|
1718
|
-
return 4 <= e.insertionMode || e.insertionMode === 0 ?
|
|
1719
|
+
return 4 <= e.insertionMode || e.insertionMode === 0 ? k(1, null) : e;
|
|
1719
1720
|
}
|
|
1720
1721
|
var le = d("<!-- -->");
|
|
1721
1722
|
function ue(e, t, n, r) {
|
|
1722
|
-
return t === "" ? r : (r && e.push(le), e.push(u(
|
|
1723
|
+
return t === "" ? r : (r && e.push(le), e.push(u(w(t))), !0);
|
|
1723
1724
|
}
|
|
1724
1725
|
var de = /* @__PURE__ */ new Map(), fe = d(" style=\""), pe = d(":"), me = d(";");
|
|
1725
1726
|
function he(e, t, r) {
|
|
@@ -1728,12 +1729,12 @@ var he = {
|
|
|
1728
1729
|
var a = r[i];
|
|
1729
1730
|
if (a != null && typeof a != "boolean" && a !== "") {
|
|
1730
1731
|
if (i.indexOf("--") === 0) {
|
|
1731
|
-
var o = u(
|
|
1732
|
-
a = u(
|
|
1732
|
+
var o = u(w(i));
|
|
1733
|
+
a = u(w(("" + a).trim()));
|
|
1733
1734
|
} else {
|
|
1734
1735
|
o = i;
|
|
1735
1736
|
var s = de.get(o);
|
|
1736
|
-
s === void 0 ? (s = d(
|
|
1737
|
+
s === void 0 ? (s = d(w(o.replace(T, "-$1").toLowerCase().replace(te, "-ms-"))), de.set(o, s), o = s) : o = s, a = typeof a == "number" ? a === 0 || p.call(S, i) ? u("" + a) : u(a + "px") : u(w(("" + a).trim()));
|
|
1737
1738
|
}
|
|
1738
1739
|
t ? (t = !1, e.push(fe, o, pe, a)) : e.push(me, o, pe, a);
|
|
1739
1740
|
}
|
|
@@ -1764,15 +1765,15 @@ var he = {
|
|
|
1764
1765
|
r && e.push(j, n, ge);
|
|
1765
1766
|
break;
|
|
1766
1767
|
case 4:
|
|
1767
|
-
!0 === r ? e.push(j, n, ge) : !1 !== r && e.push(j, n, M, u(
|
|
1768
|
+
!0 === r ? e.push(j, n, ge) : !1 !== r && e.push(j, n, M, u(w(r)), N);
|
|
1768
1769
|
break;
|
|
1769
1770
|
case 5:
|
|
1770
|
-
isNaN(r) || e.push(j, n, M, u(
|
|
1771
|
+
isNaN(r) || e.push(j, n, M, u(w(r)), N);
|
|
1771
1772
|
break;
|
|
1772
1773
|
case 6:
|
|
1773
|
-
!isNaN(r) && 1 <= r && e.push(j, n, M, u(
|
|
1774
|
+
!isNaN(r) && 1 <= r && e.push(j, n, M, u(w(r)), N);
|
|
1774
1775
|
break;
|
|
1775
|
-
default: t.sanitizeURL && (r = "" + r), e.push(j, n, M, u(
|
|
1776
|
+
default: t.sanitizeURL && (r = "" + r), e.push(j, n, M, u(w(r)), N);
|
|
1776
1777
|
}
|
|
1777
1778
|
} else if (_(n)) {
|
|
1778
1779
|
switch (typeof r) {
|
|
@@ -1780,7 +1781,7 @@ var he = {
|
|
|
1780
1781
|
case "symbol": return;
|
|
1781
1782
|
case "boolean": if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-") return;
|
|
1782
1783
|
}
|
|
1783
|
-
e.push(j, u(n), M, u(
|
|
1784
|
+
e.push(j, u(n), M, u(w(r)), N);
|
|
1784
1785
|
}
|
|
1785
1786
|
}
|
|
1786
1787
|
}
|
|
@@ -1814,7 +1815,7 @@ var he = {
|
|
|
1814
1815
|
default: P(e, r, a, o);
|
|
1815
1816
|
}
|
|
1816
1817
|
}
|
|
1817
|
-
return e.push(F), ve(e, i, n), typeof n == "string" ? (e.push(u(
|
|
1818
|
+
return e.push(F), ve(e, i, n), typeof n == "string" ? (e.push(u(w(n))), null) : n;
|
|
1818
1819
|
}
|
|
1819
1820
|
var Se = d("\n"), Ce = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, I = /* @__PURE__ */ new Map();
|
|
1820
1821
|
function L(e) {
|
|
@@ -1826,7 +1827,7 @@ var he = {
|
|
|
1826
1827
|
return t;
|
|
1827
1828
|
}
|
|
1828
1829
|
var we = d("<!DOCTYPE html>");
|
|
1829
|
-
function
|
|
1830
|
+
function Te(e, t, r, i, a) {
|
|
1830
1831
|
switch (t) {
|
|
1831
1832
|
case "select":
|
|
1832
1833
|
e.push(L("select"));
|
|
@@ -1865,7 +1866,7 @@ var he = {
|
|
|
1865
1866
|
default: P(e, i, o, m);
|
|
1866
1867
|
}
|
|
1867
1868
|
}
|
|
1868
|
-
if (s != null) if (r = l === null ? ye(c) : "" + l,
|
|
1869
|
+
if (s != null) if (r = l === null ? ye(c) : "" + l, E(s)) {
|
|
1869
1870
|
for (i = 0; i < s.length; i++) if ("" + s[i] === r) {
|
|
1870
1871
|
e.push(be);
|
|
1871
1872
|
break;
|
|
@@ -1889,10 +1890,10 @@ var he = {
|
|
|
1889
1890
|
}
|
|
1890
1891
|
if (o === null && s !== null && (o = s), e.push(F), f != null) {
|
|
1891
1892
|
if (o != null) throw Error(n(92));
|
|
1892
|
-
if (
|
|
1893
|
+
if (E(f) && 1 < f.length) throw Error(n(93));
|
|
1893
1894
|
o = "" + f;
|
|
1894
1895
|
}
|
|
1895
|
-
return typeof o == "string" && o[0] === "\n" && e.push(Se), o !== null && e.push(u(
|
|
1896
|
+
return typeof o == "string" && o[0] === "\n" && e.push(Se), o !== null && e.push(u(w("" + o))), null;
|
|
1896
1897
|
case "input":
|
|
1897
1898
|
for (s in e.push(L("input")), l = f = c = o = null, r) if (p.call(r, s) && (d = r[s], d != null)) switch (s) {
|
|
1898
1899
|
case "children":
|
|
@@ -1988,48 +1989,48 @@ var he = {
|
|
|
1988
1989
|
break;
|
|
1989
1990
|
case "suppressContentEditableWarning":
|
|
1990
1991
|
case "suppressHydrationWarning": break;
|
|
1991
|
-
default: _(d) && typeof c != "function" && typeof c != "symbol" && e.push(j, u(d), M, u(
|
|
1992
|
+
default: _(d) && typeof c != "function" && typeof c != "symbol" && e.push(j, u(d), M, u(w(c)), N);
|
|
1992
1993
|
}
|
|
1993
1994
|
return e.push(F), ve(e, s, o), o;
|
|
1994
1995
|
}
|
|
1995
1996
|
}
|
|
1996
|
-
var
|
|
1997
|
+
var Ee = d("</"), R = d(">"), z = d("<template id=\""), De = d("\"></template>"), Oe = d("<!--$-->"), ke = d("<!--$?--><template id=\""), Ae = d("\"></template>"), je = d("<!--$!-->"), Me = d("<!--/$-->"), Ne = d("<template"), Pe = d("\""), Fe = d(" data-dgst=\"");
|
|
1997
1998
|
d(" data-msg=\""), d(" data-stck=\"");
|
|
1998
|
-
var
|
|
1999
|
-
function
|
|
2000
|
-
if (o(e,
|
|
2001
|
-
return o(e, r), s(e,
|
|
1999
|
+
var Ie = d("></template>");
|
|
2000
|
+
function B(e, t, r) {
|
|
2001
|
+
if (o(e, ke), r === null) throw Error(n(395));
|
|
2002
|
+
return o(e, r), s(e, Ae);
|
|
2002
2003
|
}
|
|
2003
|
-
var
|
|
2004
|
-
function
|
|
2004
|
+
var V = d("<div hidden id=\""), Le = d("\">"), H = d("</div>"), Re = d("<svg aria-hidden=\"true\" style=\"display:none\" id=\""), ze = d("\">"), Be = d("</svg>"), U = d("<math aria-hidden=\"true\" style=\"display:none\" id=\""), Ve = d("\">"), W = d("</math>"), He = d("<table hidden id=\""), G = d("\">"), Ue = d("</table>"), We = d("<table hidden><tbody id=\""), Ge = d("\">"), Ke = d("</tbody></table>"), qe = d("<table hidden><tr id=\""), Je = d("\">"), Ye = d("</tr></table>"), Xe = d("<table hidden><colgroup id=\""), Ze = d("\">"), Qe = d("</colgroup></table>");
|
|
2005
|
+
function $e(e, t, r, i) {
|
|
2005
2006
|
switch (r.insertionMode) {
|
|
2006
2007
|
case 0:
|
|
2007
|
-
case 1: return o(e,
|
|
2008
|
+
case 1: return o(e, V), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Le);
|
|
2008
2009
|
case 2: return o(e, Re), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, ze);
|
|
2009
|
-
case 3: return o(e,
|
|
2010
|
-
case 4: return o(e,
|
|
2010
|
+
case 3: return o(e, U), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Ve);
|
|
2011
|
+
case 4: return o(e, He), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, G);
|
|
2011
2012
|
case 5: return o(e, We), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Ge);
|
|
2012
|
-
case 6: return o(e,
|
|
2013
|
-
case 7: return o(e,
|
|
2013
|
+
case 6: return o(e, qe), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Je);
|
|
2014
|
+
case 7: return o(e, Xe), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Ze);
|
|
2014
2015
|
default: throw Error(n(397));
|
|
2015
2016
|
}
|
|
2016
2017
|
}
|
|
2017
|
-
function
|
|
2018
|
+
function et(e, t) {
|
|
2018
2019
|
switch (t.insertionMode) {
|
|
2019
2020
|
case 0:
|
|
2020
2021
|
case 1: return s(e, H);
|
|
2021
|
-
case 2: return s(e,
|
|
2022
|
-
case 3: return s(e,
|
|
2022
|
+
case 2: return s(e, Be);
|
|
2023
|
+
case 3: return s(e, W);
|
|
2023
2024
|
case 4: return s(e, Ue);
|
|
2024
|
-
case 5: return s(e,
|
|
2025
|
-
case 6: return s(e,
|
|
2026
|
-
case 7: return s(e,
|
|
2025
|
+
case 5: return s(e, Ke);
|
|
2026
|
+
case 6: return s(e, Ye);
|
|
2027
|
+
case 7: return s(e, Qe);
|
|
2027
2028
|
default: throw Error(n(397));
|
|
2028
2029
|
}
|
|
2029
2030
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
2032
|
-
return JSON.stringify(e).replace(
|
|
2031
|
+
var tt = d("function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\""), nt = d("$RS(\""), rt = d("\",\""), it = d("\")<\/script>"), at = d("function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d)if(0===e)break;else e--;else\"$\"!==d&&\"$?\"!==d&&\"$!\"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data=\"$\";a._reactRetry&&a._reactRetry()}};$RC(\""), ot = d("$RC(\""), st = d("\",\""), ct = d("\")<\/script>"), lt = d("function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX(\""), K = d("$RX(\""), ut = d("\""), dt = d(")<\/script>"), ft = d(","), pt = /[<\u2028\u2029]/g;
|
|
2032
|
+
function q(e) {
|
|
2033
|
+
return JSON.stringify(e).replace(pt, function(e) {
|
|
2033
2034
|
switch (e) {
|
|
2034
2035
|
case "<": return "\\u003c";
|
|
2035
2036
|
case "\u2028": return "\\u2028";
|
|
@@ -2038,43 +2039,43 @@ var he = {
|
|
|
2038
2039
|
}
|
|
2039
2040
|
});
|
|
2040
2041
|
}
|
|
2041
|
-
var mt = Object.assign,
|
|
2042
|
-
function
|
|
2042
|
+
var mt = Object.assign, ht = Symbol.for("react.element"), gt = Symbol.for("react.portal"), J = Symbol.for("react.fragment"), _t = Symbol.for("react.strict_mode"), vt = Symbol.for("react.profiler"), yt = Symbol.for("react.provider"), bt = Symbol.for("react.context"), xt = Symbol.for("react.forward_ref"), St = Symbol.for("react.suspense"), Ct = Symbol.for("react.suspense_list"), wt = Symbol.for("react.memo"), Tt = Symbol.for("react.lazy"), Et = Symbol.for("react.scope"), Dt = Symbol.for("react.debug_trace_mode"), Ot = Symbol.for("react.legacy_hidden"), kt = Symbol.for("react.default_value"), At = Symbol.iterator;
|
|
2043
|
+
function jt(e) {
|
|
2043
2044
|
if (e == null) return null;
|
|
2044
2045
|
if (typeof e == "function") return e.displayName || e.name || null;
|
|
2045
2046
|
if (typeof e == "string") return e;
|
|
2046
2047
|
switch (e) {
|
|
2047
|
-
case
|
|
2048
|
-
case
|
|
2049
|
-
case
|
|
2050
|
-
case
|
|
2051
|
-
case
|
|
2052
|
-
case
|
|
2048
|
+
case J: return "Fragment";
|
|
2049
|
+
case gt: return "Portal";
|
|
2050
|
+
case vt: return "Profiler";
|
|
2051
|
+
case _t: return "StrictMode";
|
|
2052
|
+
case St: return "Suspense";
|
|
2053
|
+
case Ct: return "SuspenseList";
|
|
2053
2054
|
}
|
|
2054
2055
|
if (typeof e == "object") switch (e.$$typeof) {
|
|
2055
|
-
case
|
|
2056
|
-
case
|
|
2057
|
-
case
|
|
2056
|
+
case bt: return (e.displayName || "Context") + ".Consumer";
|
|
2057
|
+
case yt: return (e._context.displayName || "Context") + ".Provider";
|
|
2058
|
+
case xt:
|
|
2058
2059
|
var t = e.render;
|
|
2059
2060
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
2060
|
-
case
|
|
2061
|
-
case
|
|
2061
|
+
case wt: return t = e.displayName || null, t === null ? jt(e.type) || "Memo" : t;
|
|
2062
|
+
case Tt:
|
|
2062
2063
|
t = e._payload, e = e._init;
|
|
2063
2064
|
try {
|
|
2064
|
-
return
|
|
2065
|
+
return jt(e(t));
|
|
2065
2066
|
} catch {}
|
|
2066
2067
|
}
|
|
2067
2068
|
return null;
|
|
2068
2069
|
}
|
|
2069
|
-
var
|
|
2070
|
-
function
|
|
2071
|
-
if (e = e.contextTypes, !e) return
|
|
2070
|
+
var Mt = {};
|
|
2071
|
+
function Nt(e, t) {
|
|
2072
|
+
if (e = e.contextTypes, !e) return Mt;
|
|
2072
2073
|
var n = {}, r;
|
|
2073
2074
|
for (r in e) n[r] = t[r];
|
|
2074
2075
|
return n;
|
|
2075
2076
|
}
|
|
2076
|
-
var
|
|
2077
|
-
function
|
|
2077
|
+
var Pt = null;
|
|
2078
|
+
function Ft(e, t) {
|
|
2078
2079
|
if (e !== t) {
|
|
2079
2080
|
e.context._currentValue = e.parentValue, e = e.parent;
|
|
2080
2081
|
var r = t.parent;
|
|
@@ -2082,32 +2083,32 @@ var he = {
|
|
|
2082
2083
|
if (r !== null) throw Error(n(401));
|
|
2083
2084
|
} else {
|
|
2084
2085
|
if (r === null) throw Error(n(401));
|
|
2085
|
-
|
|
2086
|
+
Ft(e, r);
|
|
2086
2087
|
}
|
|
2087
2088
|
t.context._currentValue = t.value;
|
|
2088
2089
|
}
|
|
2089
2090
|
}
|
|
2090
|
-
function
|
|
2091
|
-
e.context._currentValue = e.parentValue, e = e.parent, e !== null &&
|
|
2091
|
+
function It(e) {
|
|
2092
|
+
e.context._currentValue = e.parentValue, e = e.parent, e !== null && It(e);
|
|
2092
2093
|
}
|
|
2093
|
-
function
|
|
2094
|
+
function Lt(e) {
|
|
2094
2095
|
var t = e.parent;
|
|
2095
|
-
t !== null &&
|
|
2096
|
+
t !== null && Lt(t), e.context._currentValue = e.value;
|
|
2096
2097
|
}
|
|
2097
|
-
function
|
|
2098
|
+
function Rt(e, t) {
|
|
2098
2099
|
if (e.context._currentValue = e.parentValue, e = e.parent, e === null) throw Error(n(402));
|
|
2099
|
-
e.depth === t.depth ?
|
|
2100
|
+
e.depth === t.depth ? Ft(e, t) : Rt(e, t);
|
|
2100
2101
|
}
|
|
2101
|
-
function
|
|
2102
|
+
function zt(e, t) {
|
|
2102
2103
|
var r = t.parent;
|
|
2103
2104
|
if (r === null) throw Error(n(402));
|
|
2104
|
-
e.depth === r.depth ?
|
|
2105
|
+
e.depth === r.depth ? Ft(e, r) : zt(e, r), t.context._currentValue = t.value;
|
|
2105
2106
|
}
|
|
2106
|
-
function
|
|
2107
|
-
var t =
|
|
2108
|
-
t !== e && (t === null ?
|
|
2107
|
+
function Bt(e) {
|
|
2108
|
+
var t = Pt;
|
|
2109
|
+
t !== e && (t === null ? Lt(e) : e === null ? It(t) : t.depth === e.depth ? Ft(t, e) : t.depth > e.depth ? Rt(t, e) : zt(t, e), Pt = e);
|
|
2109
2110
|
}
|
|
2110
|
-
var
|
|
2111
|
+
var Vt = {
|
|
2111
2112
|
isMounted: function() {
|
|
2112
2113
|
return !1;
|
|
2113
2114
|
},
|
|
@@ -2119,16 +2120,16 @@ var he = {
|
|
|
2119
2120
|
},
|
|
2120
2121
|
enqueueForceUpdate: function() {}
|
|
2121
2122
|
};
|
|
2122
|
-
function
|
|
2123
|
+
function Ht(e, t, n, r) {
|
|
2123
2124
|
var i = e.state === void 0 ? null : e.state;
|
|
2124
|
-
e.updater =
|
|
2125
|
+
e.updater = Vt, e.props = n, e.state = i;
|
|
2125
2126
|
var a = {
|
|
2126
2127
|
queue: [],
|
|
2127
2128
|
replace: !1
|
|
2128
2129
|
};
|
|
2129
2130
|
e._reactInternals = a;
|
|
2130
2131
|
var o = t.contextType;
|
|
2131
|
-
if (e.context = typeof o == "object" && o ? o._currentValue : r, o = t.getDerivedStateFromProps, typeof o == "function" && (o = o(n, i), i = o == null ? i : mt({}, i, o), e.state = i), typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function" && (typeof e.UNSAFE_componentWillMount == "function" || typeof e.componentWillMount == "function")) if (t = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), t !== e.state &&
|
|
2132
|
+
if (e.context = typeof o == "object" && o ? o._currentValue : r, o = t.getDerivedStateFromProps, typeof o == "function" && (o = o(n, i), i = o == null ? i : mt({}, i, o), e.state = i), typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function" && (typeof e.UNSAFE_componentWillMount == "function" || typeof e.componentWillMount == "function")) if (t = e.state, typeof e.componentWillMount == "function" && e.componentWillMount(), typeof e.UNSAFE_componentWillMount == "function" && e.UNSAFE_componentWillMount(), t !== e.state && Vt.enqueueReplaceState(e, e.state, null), a.queue !== null && 0 < a.queue.length) if (t = a.queue, o = a.replace, a.queue = null, a.replace = !1, o && t.length === 1) e.state = t[0];
|
|
2132
2133
|
else {
|
|
2133
2134
|
for (a = o ? t[0] : e.state, i = !0, o = +!!o; o < t.length; o++) {
|
|
2134
2135
|
var s = t[o];
|
|
@@ -2138,20 +2139,20 @@ var he = {
|
|
|
2138
2139
|
}
|
|
2139
2140
|
else a.queue = null;
|
|
2140
2141
|
}
|
|
2141
|
-
var
|
|
2142
|
+
var Ut = {
|
|
2142
2143
|
id: 1,
|
|
2143
2144
|
overflow: ""
|
|
2144
2145
|
};
|
|
2145
|
-
function
|
|
2146
|
+
function Wt(e, t, n) {
|
|
2146
2147
|
var r = e.id;
|
|
2147
2148
|
e = e.overflow;
|
|
2148
|
-
var i = 32 -
|
|
2149
|
+
var i = 32 - Gt(r) - 1;
|
|
2149
2150
|
r &= ~(1 << i), n += 1;
|
|
2150
|
-
var a = 32 -
|
|
2151
|
+
var a = 32 - Gt(t) + i;
|
|
2151
2152
|
if (30 < a) {
|
|
2152
2153
|
var o = i - i % 5;
|
|
2153
2154
|
return a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, {
|
|
2154
|
-
id: 1 << 32 -
|
|
2155
|
+
id: 1 << 32 - Gt(t) + i | n << i | r,
|
|
2155
2156
|
overflow: a + e
|
|
2156
2157
|
};
|
|
2157
2158
|
}
|
|
@@ -2160,17 +2161,17 @@ var he = {
|
|
|
2160
2161
|
overflow: e
|
|
2161
2162
|
};
|
|
2162
2163
|
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
return e >>>= 0, e === 0 ? 32 : 31 - (
|
|
2164
|
+
var Gt = Math.clz32 ? Math.clz32 : Jt, Kt = Math.log, qt = Math.LN2;
|
|
2165
|
+
function Jt(e) {
|
|
2166
|
+
return e >>>= 0, e === 0 ? 32 : 31 - (Kt(e) / qt | 0) | 0;
|
|
2166
2167
|
}
|
|
2167
|
-
function
|
|
2168
|
+
function Yt(e, t) {
|
|
2168
2169
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
2169
2170
|
}
|
|
2170
|
-
var
|
|
2171
|
+
var Xt = typeof Object.is == "function" ? Object.is : Yt, Y = null, X = null, Zt = null, Z = null, Qt = !1, $t = !1, en = 0, Q = null, tn = 0;
|
|
2171
2172
|
function nn() {
|
|
2172
|
-
if (
|
|
2173
|
-
return
|
|
2173
|
+
if (Y === null) throw Error(n(321));
|
|
2174
|
+
return Y;
|
|
2174
2175
|
}
|
|
2175
2176
|
function rn() {
|
|
2176
2177
|
if (0 < tn) throw Error(n(312));
|
|
@@ -2181,39 +2182,39 @@ var he = {
|
|
|
2181
2182
|
};
|
|
2182
2183
|
}
|
|
2183
2184
|
function an() {
|
|
2184
|
-
return
|
|
2185
|
+
return Z === null ? Zt === null ? (Qt = !1, Zt = Z = rn()) : (Qt = !0, Z = Zt) : Z.next === null ? (Qt = !1, Z = Z.next = rn()) : (Qt = !0, Z = Z.next), Z;
|
|
2185
2186
|
}
|
|
2186
2187
|
function on() {
|
|
2187
|
-
|
|
2188
|
+
X = Y = null, $t = !1, Zt = null, tn = 0, Z = Q = null;
|
|
2188
2189
|
}
|
|
2189
2190
|
function sn(e, t) {
|
|
2190
2191
|
return typeof t == "function" ? t(e) : t;
|
|
2191
2192
|
}
|
|
2192
2193
|
function cn(e, t, n) {
|
|
2193
|
-
if (
|
|
2194
|
-
var r =
|
|
2195
|
-
if (t = r.dispatch,
|
|
2196
|
-
|
|
2194
|
+
if (Y = nn(), Z = an(), Qt) {
|
|
2195
|
+
var r = Z.queue;
|
|
2196
|
+
if (t = r.dispatch, Q !== null && (n = Q.get(r), n !== void 0)) {
|
|
2197
|
+
Q.delete(r), r = Z.memoizedState;
|
|
2197
2198
|
do
|
|
2198
2199
|
r = e(r, n.action), n = n.next;
|
|
2199
2200
|
while (n !== null);
|
|
2200
|
-
return
|
|
2201
|
+
return Z.memoizedState = r, [r, t];
|
|
2201
2202
|
}
|
|
2202
|
-
return [
|
|
2203
|
+
return [Z.memoizedState, t];
|
|
2203
2204
|
}
|
|
2204
|
-
return e = e === sn ? typeof t == "function" ? t() : t : n === void 0 ? t : n(t),
|
|
2205
|
+
return e = e === sn ? typeof t == "function" ? t() : t : n === void 0 ? t : n(t), Z.memoizedState = e, e = Z.queue = {
|
|
2205
2206
|
last: null,
|
|
2206
2207
|
dispatch: null
|
|
2207
|
-
}, e = e.dispatch = un.bind(null,
|
|
2208
|
+
}, e = e.dispatch = un.bind(null, Y, e), [Z.memoizedState, e];
|
|
2208
2209
|
}
|
|
2209
2210
|
function ln(e, t) {
|
|
2210
|
-
if (
|
|
2211
|
-
var n =
|
|
2211
|
+
if (Y = nn(), Z = an(), t = t === void 0 ? null : t, Z !== null) {
|
|
2212
|
+
var n = Z.memoizedState;
|
|
2212
2213
|
if (n !== null && t !== null) {
|
|
2213
2214
|
var r = n[1];
|
|
2214
2215
|
a: if (r === null) r = !1;
|
|
2215
2216
|
else {
|
|
2216
|
-
for (var i = 0; i < r.length && i < t.length; i++) if (!
|
|
2217
|
+
for (var i = 0; i < r.length && i < t.length; i++) if (!Xt(t[i], r[i])) {
|
|
2217
2218
|
r = !1;
|
|
2218
2219
|
break a;
|
|
2219
2220
|
}
|
|
@@ -2222,14 +2223,14 @@ var he = {
|
|
|
2222
2223
|
if (r) return n[0];
|
|
2223
2224
|
}
|
|
2224
2225
|
}
|
|
2225
|
-
return e = e(),
|
|
2226
|
+
return e = e(), Z.memoizedState = [e, t], e;
|
|
2226
2227
|
}
|
|
2227
2228
|
function un(e, t, r) {
|
|
2228
2229
|
if (25 <= tn) throw Error(n(301));
|
|
2229
|
-
if (e ===
|
|
2230
|
+
if (e === Y) if ($t = !0, e = {
|
|
2230
2231
|
action: r,
|
|
2231
2232
|
next: null
|
|
2232
|
-
},
|
|
2233
|
+
}, Q === null && (Q = /* @__PURE__ */ new Map()), r = Q.get(t), r === void 0) Q.set(t, e);
|
|
2233
2234
|
else {
|
|
2234
2235
|
for (t = r; t.next !== null;) t = t.next;
|
|
2235
2236
|
t.next = e;
|
|
@@ -2249,9 +2250,9 @@ var he = {
|
|
|
2249
2250
|
useMemo: ln,
|
|
2250
2251
|
useReducer: cn,
|
|
2251
2252
|
useRef: function(e) {
|
|
2252
|
-
|
|
2253
|
-
var t =
|
|
2254
|
-
return t === null ? (e = { current: e },
|
|
2253
|
+
Y = nn(), Z = an();
|
|
2254
|
+
var t = Z.memoizedState;
|
|
2255
|
+
return t === null ? (e = { current: e }, Z.memoizedState = e) : t;
|
|
2255
2256
|
},
|
|
2256
2257
|
useState: function(e) {
|
|
2257
2258
|
return cn(sn, e);
|
|
@@ -2273,11 +2274,11 @@ var he = {
|
|
|
2273
2274
|
return nn(), [!1, dn];
|
|
2274
2275
|
},
|
|
2275
2276
|
useId: function() {
|
|
2276
|
-
var e =
|
|
2277
|
-
e = e.id, e = (e & ~(1 << 32 -
|
|
2277
|
+
var e = X.treeContext, t = e.overflow;
|
|
2278
|
+
e = e.id, e = (e & ~(1 << 32 - Gt(e) - 1)).toString(32) + t;
|
|
2278
2279
|
var r = mn;
|
|
2279
2280
|
if (r === null) throw Error(n(404));
|
|
2280
|
-
return t =
|
|
2281
|
+
return t = en++, e = ":" + r.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
2281
2282
|
},
|
|
2282
2283
|
useMutableSource: function(e, t) {
|
|
2283
2284
|
return nn(), t(e._source);
|
|
@@ -2313,7 +2314,7 @@ var he = {
|
|
|
2313
2314
|
onShellReady: o === void 0 ? _n : o,
|
|
2314
2315
|
onShellError: s === void 0 ? _n : s,
|
|
2315
2316
|
onFatalError: c === void 0 ? _n : c
|
|
2316
|
-
}, n = bn(t, 0, null, n, !1, !1), n.parentFlushed = !0, e = yn(t, e, null, n, u,
|
|
2317
|
+
}, n = bn(t, 0, null, n, !1, !1), n.parentFlushed = !0, e = yn(t, e, null, n, u, Mt, null, Ut), l.push(e), t;
|
|
2317
2318
|
}
|
|
2318
2319
|
function yn(e, t, n, r, i, a, o, s) {
|
|
2319
2320
|
e.allPendingTasks++, n === null ? e.pendingRootTasks++ : n.pendingTasks++;
|
|
@@ -2355,7 +2356,7 @@ var he = {
|
|
|
2355
2356
|
n(t), n = e.onFatalError, n(t), e.destination === null ? (e.status = 1, e.fatalError = t) : (e.status = 2, f(e.destination, t));
|
|
2356
2357
|
}
|
|
2357
2358
|
function Cn(e, t, n, r, i) {
|
|
2358
|
-
for (
|
|
2359
|
+
for (Y = {}, X = t, en = 0, e = n(r, i); $t;) $t = !1, en = 0, tn += 1, Z = null, e = n(r, i);
|
|
2359
2360
|
return on(), e;
|
|
2360
2361
|
}
|
|
2361
2362
|
function wn(e, t, r, i) {
|
|
@@ -2364,7 +2365,7 @@ var he = {
|
|
|
2364
2365
|
var s = t.legacyContext;
|
|
2365
2366
|
if (typeof r.getChildContext != "function") i = s;
|
|
2366
2367
|
else {
|
|
2367
|
-
for (var c in r = r.getChildContext(), r) if (!(c in o)) throw Error(n(108,
|
|
2368
|
+
for (var c in r = r.getChildContext(), r) if (!(c in o)) throw Error(n(108, jt(i) || "Unknown", c));
|
|
2368
2369
|
i = mt({}, s, r);
|
|
2369
2370
|
}
|
|
2370
2371
|
t.legacyContext = i, $(e, t, a), t.legacyContext = s;
|
|
@@ -2379,15 +2380,15 @@ var he = {
|
|
|
2379
2380
|
}
|
|
2380
2381
|
function En(e, t, r, i, a) {
|
|
2381
2382
|
if (typeof r == "function") if (r.prototype && r.prototype.isReactComponent) {
|
|
2382
|
-
a =
|
|
2383
|
+
a = Nt(r, t.legacyContext);
|
|
2383
2384
|
var o = r.contextType;
|
|
2384
|
-
o = new r(i, typeof o == "object" && o ? o._currentValue : a),
|
|
2385
|
+
o = new r(i, typeof o == "object" && o ? o._currentValue : a), Ht(o, r, i, a), wn(e, t, o, r);
|
|
2385
2386
|
} else {
|
|
2386
|
-
o =
|
|
2387
|
-
var s =
|
|
2388
|
-
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0)
|
|
2387
|
+
o = Nt(r, t.legacyContext), a = Cn(e, t, r, i, o);
|
|
2388
|
+
var s = en !== 0;
|
|
2389
|
+
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0) Ht(a, r, i, o), wn(e, t, a, r);
|
|
2389
2390
|
else if (s) {
|
|
2390
|
-
i = t.treeContext, t.treeContext =
|
|
2391
|
+
i = t.treeContext, t.treeContext = Wt(i, 1, 0);
|
|
2391
2392
|
try {
|
|
2392
2393
|
$(e, t, a);
|
|
2393
2394
|
} finally {
|
|
@@ -2396,7 +2397,7 @@ var he = {
|
|
|
2396
2397
|
} else $(e, t, a);
|
|
2397
2398
|
}
|
|
2398
2399
|
else if (typeof r == "string") {
|
|
2399
|
-
switch (a = t.blockedSegment, o =
|
|
2400
|
+
switch (a = t.blockedSegment, o = Te(a.chunks, r, i, e.responseState, a.formatContext), a.lastPushedText = !1, s = a.formatContext, a.formatContext = A(s, r, i), On(e, t, o), a.formatContext = s, r) {
|
|
2400
2401
|
case "area":
|
|
2401
2402
|
case "base":
|
|
2402
2403
|
case "br":
|
|
@@ -2412,23 +2413,23 @@ var he = {
|
|
|
2412
2413
|
case "source":
|
|
2413
2414
|
case "track":
|
|
2414
2415
|
case "wbr": break;
|
|
2415
|
-
default: a.chunks.push(
|
|
2416
|
+
default: a.chunks.push(Ee, u(r), R);
|
|
2416
2417
|
}
|
|
2417
2418
|
a.lastPushedText = !1;
|
|
2418
2419
|
} else {
|
|
2419
2420
|
switch (r) {
|
|
2421
|
+
case Ot:
|
|
2420
2422
|
case Dt:
|
|
2421
|
-
case Et:
|
|
2422
|
-
case gt:
|
|
2423
2423
|
case _t:
|
|
2424
|
-
case
|
|
2424
|
+
case vt:
|
|
2425
|
+
case J:
|
|
2425
2426
|
$(e, t, i.children);
|
|
2426
2427
|
return;
|
|
2427
|
-
case
|
|
2428
|
+
case Ct:
|
|
2428
2429
|
$(e, t, i.children);
|
|
2429
2430
|
return;
|
|
2430
|
-
case
|
|
2431
|
-
case
|
|
2431
|
+
case Et: throw Error(n(343));
|
|
2432
|
+
case St:
|
|
2432
2433
|
a: {
|
|
2433
2434
|
r = t.blockedBoundary, a = t.blockedSegment, o = i.fallback, i = i.children, s = /* @__PURE__ */ new Set();
|
|
2434
2435
|
var c = {
|
|
@@ -2457,9 +2458,9 @@ var he = {
|
|
|
2457
2458
|
return;
|
|
2458
2459
|
}
|
|
2459
2460
|
if (typeof r == "object" && r) switch (r.$$typeof) {
|
|
2460
|
-
case
|
|
2461
|
-
if (i = Cn(e, t, r.render, i, a),
|
|
2462
|
-
r = t.treeContext, t.treeContext =
|
|
2461
|
+
case xt:
|
|
2462
|
+
if (i = Cn(e, t, r.render, i, a), en !== 0) {
|
|
2463
|
+
r = t.treeContext, t.treeContext = Wt(r, 1, 0);
|
|
2463
2464
|
try {
|
|
2464
2465
|
$(e, t, i);
|
|
2465
2466
|
} finally {
|
|
@@ -2467,23 +2468,23 @@ var he = {
|
|
|
2467
2468
|
}
|
|
2468
2469
|
} else $(e, t, i);
|
|
2469
2470
|
return;
|
|
2470
|
-
case
|
|
2471
|
+
case wt:
|
|
2471
2472
|
r = r.type, i = Tn(r, i), En(e, t, r, i, a);
|
|
2472
2473
|
return;
|
|
2473
|
-
case
|
|
2474
|
-
if (a = i.children, r = r._context, i = i.value, o = r._currentValue, r._currentValue = i, s =
|
|
2474
|
+
case yt:
|
|
2475
|
+
if (a = i.children, r = r._context, i = i.value, o = r._currentValue, r._currentValue = i, s = Pt, Pt = i = {
|
|
2475
2476
|
parent: s,
|
|
2476
2477
|
depth: s === null ? 0 : s.depth + 1,
|
|
2477
2478
|
context: r,
|
|
2478
2479
|
parentValue: o,
|
|
2479
2480
|
value: i
|
|
2480
|
-
}, t.context = i, $(e, t, a), e =
|
|
2481
|
-
i = e.parentValue, e.context._currentValue = i ===
|
|
2481
|
+
}, t.context = i, $(e, t, a), e = Pt, e === null) throw Error(n(403));
|
|
2482
|
+
i = e.parentValue, e.context._currentValue = i === kt ? e.context._defaultValue : i, e = Pt = e.parent, t.context = e;
|
|
2482
2483
|
return;
|
|
2483
|
-
case
|
|
2484
|
+
case bt:
|
|
2484
2485
|
i = i.children, i = i(r._currentValue), $(e, t, i);
|
|
2485
2486
|
return;
|
|
2486
|
-
case
|
|
2487
|
+
case Tt:
|
|
2487
2488
|
a = r._init, r = a(r._payload), i = Tn(r, i), En(e, t, r, i, void 0);
|
|
2488
2489
|
return;
|
|
2489
2490
|
}
|
|
@@ -2493,20 +2494,20 @@ var he = {
|
|
|
2493
2494
|
function $(e, t, r) {
|
|
2494
2495
|
if (t.node = r, typeof r == "object" && r) {
|
|
2495
2496
|
switch (r.$$typeof) {
|
|
2496
|
-
case
|
|
2497
|
+
case ht:
|
|
2497
2498
|
En(e, t, r.type, r.props, r.ref);
|
|
2498
2499
|
return;
|
|
2499
|
-
case
|
|
2500
|
-
case
|
|
2500
|
+
case gt: throw Error(n(257));
|
|
2501
|
+
case Tt:
|
|
2501
2502
|
var i = r._init;
|
|
2502
2503
|
r = i(r._payload), $(e, t, r);
|
|
2503
2504
|
return;
|
|
2504
2505
|
}
|
|
2505
|
-
if (
|
|
2506
|
+
if (E(r)) {
|
|
2506
2507
|
Dn(e, t, r);
|
|
2507
2508
|
return;
|
|
2508
2509
|
}
|
|
2509
|
-
if (typeof r != "object" || !r ? i = null : (i =
|
|
2510
|
+
if (typeof r != "object" || !r ? i = null : (i = At && r[At] || r["@@iterator"], i = typeof i == "function" ? i : null), i &&= i.call(r)) {
|
|
2510
2511
|
if (r = i.next(), !r.done) {
|
|
2511
2512
|
var a = [];
|
|
2512
2513
|
do
|
|
@@ -2523,7 +2524,7 @@ var he = {
|
|
|
2523
2524
|
function Dn(e, t, n) {
|
|
2524
2525
|
for (var r = n.length, i = 0; i < r; i++) {
|
|
2525
2526
|
var a = t.treeContext;
|
|
2526
|
-
t.treeContext =
|
|
2527
|
+
t.treeContext = Wt(a, r, i);
|
|
2527
2528
|
try {
|
|
2528
2529
|
On(e, t, n[i]);
|
|
2529
2530
|
} finally {
|
|
@@ -2539,8 +2540,8 @@ var he = {
|
|
|
2539
2540
|
if (on(), typeof c == "object" && c && typeof c.then == "function") {
|
|
2540
2541
|
n = c;
|
|
2541
2542
|
var o = t.blockedSegment, s = bn(e, o.chunks.length, null, o.formatContext, o.lastPushedText, !0);
|
|
2542
|
-
o.children.push(s), o.lastPushedText = !1, e = yn(e, t.node, t.blockedBoundary, s, t.abortSet, t.legacyContext, t.context, t.treeContext).ping, n.then(e, e), t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a,
|
|
2543
|
-
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a,
|
|
2543
|
+
o.children.push(s), o.lastPushedText = !1, e = yn(e, t.node, t.blockedBoundary, s, t.abortSet, t.legacyContext, t.context, t.treeContext).ping, n.then(e, e), t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, Bt(a);
|
|
2544
|
+
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, Bt(a), c;
|
|
2544
2545
|
}
|
|
2545
2546
|
}
|
|
2546
2547
|
function kn(e) {
|
|
@@ -2571,7 +2572,7 @@ var he = {
|
|
|
2571
2572
|
}
|
|
2572
2573
|
function Nn(e) {
|
|
2573
2574
|
if (e.status !== 2) {
|
|
2574
|
-
var t =
|
|
2575
|
+
var t = Pt, n = hn.current;
|
|
2575
2576
|
hn.current = pn;
|
|
2576
2577
|
var r = mn;
|
|
2577
2578
|
mn = e.responseState;
|
|
@@ -2580,7 +2581,7 @@ var he = {
|
|
|
2580
2581
|
for (a = 0; a < i.length; a++) {
|
|
2581
2582
|
var o = i[a], s = e, c = o.blockedSegment;
|
|
2582
2583
|
if (c.status === 0) {
|
|
2583
|
-
|
|
2584
|
+
Bt(o.context);
|
|
2584
2585
|
try {
|
|
2585
2586
|
$(s, o, o.node), c.lastPushedText && c.textEmbedded && c.chunks.push(le), o.abortSet.delete(o), c.status = 1, Mn(s, o.blockedBoundary, c);
|
|
2586
2587
|
} catch (e) {
|
|
@@ -2602,7 +2603,7 @@ var he = {
|
|
|
2602
2603
|
} catch (t) {
|
|
2603
2604
|
xn(e, t), Sn(e, t);
|
|
2604
2605
|
} finally {
|
|
2605
|
-
mn = r, hn.current = n, n === pn &&
|
|
2606
|
+
mn = r, hn.current = n, n === pn && Bt(t);
|
|
2606
2607
|
}
|
|
2607
2608
|
}
|
|
2608
2609
|
}
|
|
@@ -2610,7 +2611,7 @@ var he = {
|
|
|
2610
2611
|
switch (r.parentFlushed = !0, r.status) {
|
|
2611
2612
|
case 0:
|
|
2612
2613
|
var i = r.id = e.nextSegmentId++;
|
|
2613
|
-
return r.lastPushedText = !1, r.textEmbedded = !1, e = e.responseState, o(t,
|
|
2614
|
+
return r.lastPushedText = !1, r.textEmbedded = !1, e = e.responseState, o(t, z), o(t, e.placeholderPrefix), e = u(i.toString(16)), o(t, e), s(t, De);
|
|
2614
2615
|
case 1:
|
|
2615
2616
|
r.status = 2;
|
|
2616
2617
|
var a = !0;
|
|
@@ -2629,25 +2630,25 @@ var he = {
|
|
|
2629
2630
|
function Fn(e, t, r) {
|
|
2630
2631
|
var i = r.boundary;
|
|
2631
2632
|
if (i === null) return Pn(e, t, r);
|
|
2632
|
-
if (i.parentFlushed = !0, i.forceClientRender) i = i.errorDigest, s(t, je), o(t, Ne), i && (o(t, Fe), o(t, u(
|
|
2633
|
+
if (i.parentFlushed = !0, i.forceClientRender) i = i.errorDigest, s(t, je), o(t, Ne), i && (o(t, Fe), o(t, u(w(i))), o(t, Pe)), s(t, Ie), Pn(e, t, r);
|
|
2633
2634
|
else if (0 < i.pendingTasks) {
|
|
2634
2635
|
i.rootSegmentID = e.nextSegmentId++, 0 < i.completedSegments.length && e.partialBoundaries.push(i);
|
|
2635
2636
|
var a = e.responseState, c = a.nextSuspenseID++;
|
|
2636
|
-
a = d(a.boundaryPrefix + c.toString(16)), i = i.id = a,
|
|
2637
|
-
} else if (i.byteSize > e.progressiveChunkSize) i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i),
|
|
2637
|
+
a = d(a.boundaryPrefix + c.toString(16)), i = i.id = a, B(t, e.responseState, i), Pn(e, t, r);
|
|
2638
|
+
} else if (i.byteSize > e.progressiveChunkSize) i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i), B(t, e.responseState, i.id), Pn(e, t, r);
|
|
2638
2639
|
else {
|
|
2639
|
-
if (s(t,
|
|
2640
|
+
if (s(t, Oe), r = i.completedSegments, r.length !== 1) throw Error(n(391));
|
|
2640
2641
|
Fn(e, t, r[0]);
|
|
2641
2642
|
}
|
|
2642
2643
|
return s(t, Me);
|
|
2643
2644
|
}
|
|
2644
2645
|
function In(e, t, n) {
|
|
2645
|
-
return
|
|
2646
|
+
return $e(t, e.responseState, n.formatContext, n.id), Fn(e, t, n), et(t, n.formatContext);
|
|
2646
2647
|
}
|
|
2647
2648
|
function Ln(e, t, r) {
|
|
2648
2649
|
for (var i = r.completedSegments, a = 0; a < i.length; a++) Rn(e, t, r, i[a]);
|
|
2649
|
-
if (i.length = 0, e = e.responseState, i = r.id, r = r.rootSegmentID, o(t, e.startInlineScript), e.sentCompleteBoundaryFunction ? o(t,
|
|
2650
|
-
return r = u(r.toString(16)), o(t, i), o(t,
|
|
2650
|
+
if (i.length = 0, e = e.responseState, i = r.id, r = r.rootSegmentID, o(t, e.startInlineScript), e.sentCompleteBoundaryFunction ? o(t, ot) : (e.sentCompleteBoundaryFunction = !0, o(t, at)), i === null) throw Error(n(395));
|
|
2651
|
+
return r = u(r.toString(16)), o(t, i), o(t, st), o(t, e.segmentPrefix), o(t, r), s(t, ct);
|
|
2651
2652
|
}
|
|
2652
2653
|
function Rn(e, t, r, i) {
|
|
2653
2654
|
if (i.status === 2) return !0;
|
|
@@ -2656,10 +2657,10 @@ var he = {
|
|
|
2656
2657
|
if ((i.id = r.rootSegmentID) === -1) throw Error(n(392));
|
|
2657
2658
|
return In(e, t, i);
|
|
2658
2659
|
}
|
|
2659
|
-
return In(e, t, i), e = e.responseState, o(t, e.startInlineScript), e.sentCompleteSegmentFunction ? o(t,
|
|
2660
|
+
return In(e, t, i), e = e.responseState, o(t, e.startInlineScript), e.sentCompleteSegmentFunction ? o(t, nt) : (e.sentCompleteSegmentFunction = !0, o(t, tt)), o(t, e.segmentPrefix), a = u(a.toString(16)), o(t, a), o(t, rt), o(t, e.placeholderPrefix), o(t, a), s(t, it);
|
|
2660
2661
|
}
|
|
2661
2662
|
function zn(e, t) {
|
|
2662
|
-
r = new Uint8Array(512), i = 0;
|
|
2663
|
+
r = /* @__PURE__ */ new Uint8Array(512), i = 0;
|
|
2663
2664
|
try {
|
|
2664
2665
|
var a = e.completedRootSegment;
|
|
2665
2666
|
if (a !== null && e.pendingRootTasks === 0) {
|
|
@@ -2673,8 +2674,8 @@ var he = {
|
|
|
2673
2674
|
var p = d[f];
|
|
2674
2675
|
l = t;
|
|
2675
2676
|
var m = e.responseState, h = p.id, g = p.errorDigest, _ = p.errorMessage, v = p.errorComponentStack;
|
|
2676
|
-
if (o(l, m.startInlineScript), m.sentClientRenderFunction ? o(l,
|
|
2677
|
-
if (o(l, h), o(l,
|
|
2677
|
+
if (o(l, m.startInlineScript), m.sentClientRenderFunction ? o(l, K) : (m.sentClientRenderFunction = !0, o(l, lt)), h === null) throw Error(n(395));
|
|
2678
|
+
if (o(l, h), o(l, ut), (g || _ || v) && (o(l, ft), o(l, u(q(g || "")))), (_ || v) && (o(l, ft), o(l, u(q(_ || "")))), v && (o(l, ft), o(l, u(q(v)))), !s(l, dt)) {
|
|
2678
2679
|
e.destination = null, f++, d.splice(0, f);
|
|
2679
2680
|
return;
|
|
2680
2681
|
}
|
|
@@ -2685,7 +2686,7 @@ var he = {
|
|
|
2685
2686
|
e.destination = null, f++, y.splice(0, f);
|
|
2686
2687
|
return;
|
|
2687
2688
|
}
|
|
2688
|
-
y.splice(0, f), c(t), r = new Uint8Array(512), i = 0;
|
|
2689
|
+
y.splice(0, f), c(t), r = /* @__PURE__ */ new Uint8Array(512), i = 0;
|
|
2689
2690
|
var b = e.partialBoundaries;
|
|
2690
2691
|
for (f = 0; f < b.length; f++) {
|
|
2691
2692
|
var x = b[f];
|
|
@@ -2694,23 +2695,23 @@ var he = {
|
|
|
2694
2695
|
var S = x.completedSegments;
|
|
2695
2696
|
for (m = 0; m < S.length; m++) if (!Rn(d, p, x, S[m])) {
|
|
2696
2697
|
m++, S.splice(0, m);
|
|
2697
|
-
var
|
|
2698
|
+
var ee = !1;
|
|
2698
2699
|
break a;
|
|
2699
2700
|
}
|
|
2700
|
-
S.splice(0, m),
|
|
2701
|
+
S.splice(0, m), ee = !0;
|
|
2701
2702
|
}
|
|
2702
|
-
if (!
|
|
2703
|
+
if (!ee) {
|
|
2703
2704
|
e.destination = null, f++, b.splice(0, f);
|
|
2704
2705
|
return;
|
|
2705
2706
|
}
|
|
2706
2707
|
}
|
|
2707
2708
|
b.splice(0, f);
|
|
2708
|
-
var
|
|
2709
|
-
for (f = 0; f <
|
|
2710
|
-
e.destination = null, f++,
|
|
2709
|
+
var C = e.completedBoundaries;
|
|
2710
|
+
for (f = 0; f < C.length; f++) if (!Ln(e, t, C[f])) {
|
|
2711
|
+
e.destination = null, f++, C.splice(0, f);
|
|
2711
2712
|
return;
|
|
2712
2713
|
}
|
|
2713
|
-
|
|
2714
|
+
C.splice(0, f);
|
|
2714
2715
|
} finally {
|
|
2715
2716
|
c(t), e.allPendingTasks === 0 && e.pingedTasks.length === 0 && e.clientRenderedBoundaries.length === 0 && e.completedBoundaries.length === 0 && t.close();
|
|
2716
2717
|
}
|
|
@@ -2729,7 +2730,7 @@ var he = {
|
|
|
2729
2730
|
return new Promise(function(n, r) {
|
|
2730
2731
|
var i, a, o = new Promise(function(e, t) {
|
|
2731
2732
|
a = e, i = t;
|
|
2732
|
-
}), s = vn(e,
|
|
2733
|
+
}), s = vn(e, se(t ? t.identifierPrefix : void 0, t ? t.nonce : void 0, t ? t.bootstrapScriptContent : void 0, t ? t.bootstrapScripts : void 0, t ? t.bootstrapModules : void 0), ce(t ? t.namespaceURI : void 0), t ? t.progressiveChunkSize : void 0, t ? t.onError : void 0, a, function() {
|
|
2733
2734
|
var e = new ReadableStream({
|
|
2734
2735
|
type: "bytes",
|
|
2735
2736
|
pull: function(e) {
|
|
@@ -2760,22 +2761,22 @@ var he = {
|
|
|
2760
2761
|
Nn(s);
|
|
2761
2762
|
});
|
|
2762
2763
|
}, e.version = "18.3.1";
|
|
2763
|
-
})),
|
|
2764
|
-
var t =
|
|
2764
|
+
})), F = /* @__PURE__ */ e(((e) => {
|
|
2765
|
+
var t = ge(), n = P();
|
|
2765
2766
|
e.version = t.version, e.renderToString = t.renderToString, e.renderToStaticMarkup = t.renderToStaticMarkup, e.renderToNodeStream = t.renderToNodeStream, e.renderToStaticNodeStream = t.renderToStaticNodeStream, e.renderToReadableStream = n.renderToReadableStream;
|
|
2766
|
-
})),
|
|
2767
|
+
})), _e = /* @__PURE__ */ t(n(), 1), ve = F(), ye = (0, _e.default)("@pie-lib:text-select:token-select"), be = h("div")(() => ({
|
|
2767
2768
|
backgroundColor: "none",
|
|
2768
2769
|
whiteSpace: "pre",
|
|
2769
|
-
...
|
|
2770
|
+
...y(),
|
|
2770
2771
|
"& p": { whiteSpace: "break-spaces" }
|
|
2771
|
-
})),
|
|
2772
|
+
})), xe = h("div")(() => ({
|
|
2772
2773
|
display: "none",
|
|
2773
2774
|
position: "absolute",
|
|
2774
2775
|
visibility: "hidden",
|
|
2775
2776
|
pointerEvents: "none"
|
|
2776
|
-
})),
|
|
2777
|
+
})), Se = (e = "") => e.replace(/ /gi, "\xA0"), Ce = (e = "") => Se(e).replace(/<\/p>\s*<p[^>]*>/gi, "\n\n").replace(/<br\s*\/?>/gi, "\n").replace(/<\/?(table|tbody|tr|td|p)[^>]*>/gi, ""), I = class extends C.Component {
|
|
2777
2778
|
static propTypes = {
|
|
2778
|
-
tokens: O.default.arrayOf(O.default.shape(
|
|
2779
|
+
tokens: O.default.arrayOf(O.default.shape(M)).isRequired,
|
|
2779
2780
|
className: O.default.string,
|
|
2780
2781
|
onChange: O.default.func.isRequired,
|
|
2781
2782
|
disabled: O.default.bool,
|
|
@@ -2791,10 +2792,10 @@ var he = {
|
|
|
2791
2792
|
selectedCount = () => this.props.tokens.filter((e) => e.selected).length;
|
|
2792
2793
|
canSelectMore = (e) => {
|
|
2793
2794
|
let { maxNoOfSelections: t } = this.props;
|
|
2794
|
-
return t === 1 ? !0 : (
|
|
2795
|
+
return t === 1 ? !0 : (ye("[canSelectMore] maxNoOfSelections: ", t, "selectedCount: ", e), t <= 0 || isFinite(t) && e < t);
|
|
2795
2796
|
};
|
|
2796
2797
|
toggleToken = (e) => {
|
|
2797
|
-
let { target: t } = e, { tokens: n, animationsDisabled: a } = this.props, o = r(n), s = (t.closest?.(`.${
|
|
2798
|
+
let { target: t } = e, { tokens: n, animationsDisabled: a } = this.props, o = r(n), s = (t.closest?.(`.${N.rootClassName}`))?.dataset?.indexkey, c = s === void 0 ? void 0 : o[s];
|
|
2798
2799
|
if (c && c.correct === void 0 && !a && !c.isMissing) {
|
|
2799
2800
|
let { onChange: e, maxNoOfSelections: t } = this.props, r = !c.selected;
|
|
2800
2801
|
if (t === 1 && this.selectedCount() === 1) {
|
|
@@ -2811,7 +2812,7 @@ var he = {
|
|
|
2811
2812
|
a.splice(s, 1, l), e(a);
|
|
2812
2813
|
} else {
|
|
2813
2814
|
if (r && t > 0 && this.selectedCount() >= t) {
|
|
2814
|
-
|
|
2815
|
+
ye("skip toggle max reached");
|
|
2815
2816
|
return;
|
|
2816
2817
|
}
|
|
2817
2818
|
let n = {
|
|
@@ -2826,23 +2827,23 @@ var he = {
|
|
|
2826
2827
|
let { tokens: e, disabled: t, highlightChoices: n, animationsDisabled: r } = this.props, i = this.selectedCount();
|
|
2827
2828
|
return (e || []).reduce((e, a, o) => {
|
|
2828
2829
|
let s = a.selected || a.selectable && this.canSelectMore(i), c = a.correct !== void 0 && (a.selectable || a.selected);
|
|
2829
|
-
return a.text === "\n\n" ? `${e}</p><p>` : a.text === "\n" ? `${e}<br>` : s && !t || c || a.selected || a.isMissing || r && a.predefined ? e + (0,
|
|
2830
|
+
return a.text === "\n\n" ? `${e}</p><p>` : a.text === "\n" ? `${e}<br>` : s && !t || c || a.selected || a.isMissing || r && a.predefined ? e + (0, ve.renderToString)(/* @__PURE__ */ E(N, {
|
|
2830
2831
|
disabled: t,
|
|
2831
2832
|
index: o,
|
|
2832
2833
|
...a,
|
|
2833
|
-
text:
|
|
2834
|
+
text: Ce(a.text),
|
|
2834
2835
|
selectable: s,
|
|
2835
2836
|
highlight: n,
|
|
2836
2837
|
animationsDisabled: r
|
|
2837
|
-
}, o)) : e +
|
|
2838
|
+
}, o)) : e + Se(a.text);
|
|
2838
2839
|
}, "<p>") + "</p>";
|
|
2839
2840
|
};
|
|
2840
2841
|
render() {
|
|
2841
2842
|
let { className: e } = this.props, t = this.generateTokensInHtml();
|
|
2842
|
-
return /* @__PURE__ */ D(
|
|
2843
|
+
return /* @__PURE__ */ D(te, { children: [/* @__PURE__ */ D(xe, {
|
|
2843
2844
|
"aria-hidden": "true",
|
|
2844
2845
|
children: [
|
|
2845
|
-
/* @__PURE__ */ E(
|
|
2846
|
+
/* @__PURE__ */ E(N, {
|
|
2846
2847
|
text: " ",
|
|
2847
2848
|
index: -1,
|
|
2848
2849
|
selectable: !0,
|
|
@@ -2850,7 +2851,7 @@ var he = {
|
|
|
2850
2851
|
highlight: !1,
|
|
2851
2852
|
animationsDisabled: !1
|
|
2852
2853
|
}),
|
|
2853
|
-
/* @__PURE__ */ E(
|
|
2854
|
+
/* @__PURE__ */ E(N, {
|
|
2854
2855
|
text: " ",
|
|
2855
2856
|
index: -1,
|
|
2856
2857
|
selectable: !0,
|
|
@@ -2858,7 +2859,7 @@ var he = {
|
|
|
2858
2859
|
highlight: !0,
|
|
2859
2860
|
animationsDisabled: !1
|
|
2860
2861
|
}),
|
|
2861
|
-
/* @__PURE__ */ E(
|
|
2862
|
+
/* @__PURE__ */ E(N, {
|
|
2862
2863
|
text: " ",
|
|
2863
2864
|
index: -1,
|
|
2864
2865
|
selectable: !0,
|
|
@@ -2867,7 +2868,7 @@ var he = {
|
|
|
2867
2868
|
highlight: !1,
|
|
2868
2869
|
animationsDisabled: !1
|
|
2869
2870
|
}),
|
|
2870
|
-
/* @__PURE__ */ E(
|
|
2871
|
+
/* @__PURE__ */ E(N, {
|
|
2871
2872
|
text: " ",
|
|
2872
2873
|
index: -1,
|
|
2873
2874
|
selectable: !0,
|
|
@@ -2876,7 +2877,7 @@ var he = {
|
|
|
2876
2877
|
highlight: !1,
|
|
2877
2878
|
animationsDisabled: !1
|
|
2878
2879
|
}),
|
|
2879
|
-
/* @__PURE__ */ E(
|
|
2880
|
+
/* @__PURE__ */ E(N, {
|
|
2880
2881
|
text: " ",
|
|
2881
2882
|
index: -1,
|
|
2882
2883
|
selectable: !0,
|
|
@@ -2885,7 +2886,7 @@ var he = {
|
|
|
2885
2886
|
animationsDisabled: !0,
|
|
2886
2887
|
predefined: !0
|
|
2887
2888
|
}),
|
|
2888
|
-
/* @__PURE__ */ E(
|
|
2889
|
+
/* @__PURE__ */ E(N, {
|
|
2889
2890
|
text: " ",
|
|
2890
2891
|
index: -1,
|
|
2891
2892
|
selectable: !0,
|
|
@@ -2895,7 +2896,7 @@ var he = {
|
|
|
2895
2896
|
highlight: !1,
|
|
2896
2897
|
animationsDisabled: !1
|
|
2897
2898
|
}),
|
|
2898
|
-
/* @__PURE__ */ E(
|
|
2899
|
+
/* @__PURE__ */ E(N, {
|
|
2899
2900
|
text: " ",
|
|
2900
2901
|
index: -1,
|
|
2901
2902
|
selectable: !0,
|
|
@@ -2905,7 +2906,7 @@ var he = {
|
|
|
2905
2906
|
highlight: !1,
|
|
2906
2907
|
animationsDisabled: !1
|
|
2907
2908
|
}),
|
|
2908
|
-
/* @__PURE__ */ E(
|
|
2909
|
+
/* @__PURE__ */ E(N, {
|
|
2909
2910
|
text: " ",
|
|
2910
2911
|
index: -1,
|
|
2911
2912
|
isMissing: !0,
|
|
@@ -2914,18 +2915,18 @@ var he = {
|
|
|
2914
2915
|
animationsDisabled: !1
|
|
2915
2916
|
})
|
|
2916
2917
|
]
|
|
2917
|
-
}), /* @__PURE__ */ E(
|
|
2918
|
+
}), /* @__PURE__ */ E(be, {
|
|
2918
2919
|
className: e,
|
|
2919
2920
|
onClick: this.toggleToken,
|
|
2920
2921
|
dangerouslySetInnerHTML: { __html: t }
|
|
2921
2922
|
})] });
|
|
2922
2923
|
}
|
|
2923
|
-
},
|
|
2924
|
+
}, L = (0, _e.default)("@pie-lib:text-select"), we = class extends C.Component {
|
|
2924
2925
|
static propTypes = {
|
|
2925
2926
|
onChange: O.default.func,
|
|
2926
2927
|
disabled: O.default.bool,
|
|
2927
|
-
tokens: O.default.arrayOf(O.default.shape(
|
|
2928
|
-
selectedTokens: O.default.arrayOf(O.default.shape(
|
|
2928
|
+
tokens: O.default.arrayOf(O.default.shape(M)).isRequired,
|
|
2929
|
+
selectedTokens: O.default.arrayOf(O.default.shape(M)).isRequired,
|
|
2929
2930
|
text: O.default.string.isRequired,
|
|
2930
2931
|
className: O.default.string,
|
|
2931
2932
|
highlightChoices: O.default.bool,
|
|
@@ -2940,8 +2941,8 @@ var he = {
|
|
|
2940
2941
|
})));
|
|
2941
2942
|
};
|
|
2942
2943
|
render() {
|
|
2943
|
-
let { text: e, disabled: t, tokens: n, selectedTokens: r, className: i, highlightChoices: a, maxNoOfSelections: o, animationsDisabled: s } = this.props, c =
|
|
2944
|
-
|
|
2944
|
+
let { text: e, disabled: t, tokens: n, selectedTokens: r, className: i, highlightChoices: a, maxNoOfSelections: o, animationsDisabled: s } = this.props, c = b(e, n);
|
|
2945
|
+
L("normalized: ", c);
|
|
2945
2946
|
let l = c.map((e) => {
|
|
2946
2947
|
let n = r.findIndex((t) => t.start === e.start && t.end === e.end) !== -1, i = n ? e.correct : void 0, a = e.isMissing;
|
|
2947
2948
|
return {
|
|
@@ -2952,7 +2953,7 @@ var he = {
|
|
|
2952
2953
|
isMissing: a
|
|
2953
2954
|
};
|
|
2954
2955
|
});
|
|
2955
|
-
return /* @__PURE__ */ E(
|
|
2956
|
+
return /* @__PURE__ */ E(I, {
|
|
2956
2957
|
highlightChoices: !t && a,
|
|
2957
2958
|
className: i,
|
|
2958
2959
|
tokens: l,
|
|
@@ -2962,7 +2963,7 @@ var he = {
|
|
|
2962
2963
|
animationsDisabled: s
|
|
2963
2964
|
});
|
|
2964
2965
|
}
|
|
2965
|
-
},
|
|
2966
|
+
}, Te = {
|
|
2966
2967
|
translation: {
|
|
2967
2968
|
categorize: {
|
|
2968
2969
|
limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
@@ -3051,7 +3052,7 @@ var he = {
|
|
|
3051
3052
|
hideNote: "Hide Note",
|
|
3052
3053
|
cancel: "Cancel"
|
|
3053
3054
|
}
|
|
3054
|
-
},
|
|
3055
|
+
}, Ee = {
|
|
3055
3056
|
translation: {
|
|
3056
3057
|
categorize: {
|
|
3057
3058
|
limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
|
|
@@ -3140,55 +3141,55 @@ var he = {
|
|
|
3140
3141
|
hideNote: "Ocultar Nota",
|
|
3141
3142
|
cancel: "Cancelar"
|
|
3142
3143
|
}
|
|
3143
|
-
}, R = (e) => typeof e == "string",
|
|
3144
|
+
}, R = (e) => typeof e == "string", z = () => {
|
|
3144
3145
|
let e, t, n = new Promise((n, r) => {
|
|
3145
3146
|
e = n, t = r;
|
|
3146
3147
|
});
|
|
3147
3148
|
return n.resolve = e, n.reject = t, n;
|
|
3148
|
-
},
|
|
3149
|
+
}, De = (e) => e == null ? "" : "" + e, Oe = (e, t, n) => {
|
|
3149
3150
|
e.forEach((e) => {
|
|
3150
3151
|
t[e] && (n[e] = t[e]);
|
|
3151
3152
|
});
|
|
3152
|
-
},
|
|
3153
|
+
}, ke = /###/g, Ae = (e) => e && e.indexOf("###") > -1 ? e.replace(ke, ".") : e, je = (e) => !e || R(e), Me = (e, t, n) => {
|
|
3153
3154
|
let r = R(t) ? t.split(".") : t, i = 0;
|
|
3154
3155
|
for (; i < r.length - 1;) {
|
|
3155
|
-
if (
|
|
3156
|
-
let t =
|
|
3156
|
+
if (je(e)) return {};
|
|
3157
|
+
let t = Ae(r[i]);
|
|
3157
3158
|
!e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
|
|
3158
3159
|
}
|
|
3159
|
-
return
|
|
3160
|
+
return je(e) ? {} : {
|
|
3160
3161
|
obj: e,
|
|
3161
|
-
k:
|
|
3162
|
+
k: Ae(r[i])
|
|
3162
3163
|
};
|
|
3163
|
-
},
|
|
3164
|
-
let { obj: r, k: i } =
|
|
3164
|
+
}, Ne = (e, t, n) => {
|
|
3165
|
+
let { obj: r, k: i } = Me(e, t, Object);
|
|
3165
3166
|
if (r !== void 0 || t.length === 1) {
|
|
3166
3167
|
r[i] = n;
|
|
3167
3168
|
return;
|
|
3168
3169
|
}
|
|
3169
|
-
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s =
|
|
3170
|
-
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s =
|
|
3170
|
+
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Me(e, o, Object);
|
|
3171
|
+
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Me(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
|
|
3171
3172
|
s.obj[`${s.k}.${a}`] = n;
|
|
3172
|
-
},
|
|
3173
|
-
let { obj: i, k: a } =
|
|
3173
|
+
}, Pe = (e, t, n, r) => {
|
|
3174
|
+
let { obj: i, k: a } = Me(e, t, Object);
|
|
3174
3175
|
i[a] = i[a] || [], i[a].push(n);
|
|
3175
|
-
},
|
|
3176
|
-
let { obj: n, k: r } =
|
|
3176
|
+
}, Fe = (e, t) => {
|
|
3177
|
+
let { obj: n, k: r } = Me(e, t);
|
|
3177
3178
|
if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
|
|
3178
|
-
},
|
|
3179
|
-
let r =
|
|
3180
|
-
return r === void 0 ?
|
|
3181
|
-
},
|
|
3182
|
-
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? R(e[r]) || e[r] instanceof String || R(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
3179
|
+
}, Ie = (e, t, n) => {
|
|
3180
|
+
let r = Fe(e, n);
|
|
3181
|
+
return r === void 0 ? Fe(t, n) : r;
|
|
3182
|
+
}, B = (e, t, n) => {
|
|
3183
|
+
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? R(e[r]) || e[r] instanceof String || R(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : B(e[r], t[r], n) : e[r] = t[r]);
|
|
3183
3184
|
return e;
|
|
3184
|
-
},
|
|
3185
|
+
}, V = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Le = {
|
|
3185
3186
|
"&": "&",
|
|
3186
3187
|
"<": "<",
|
|
3187
3188
|
">": ">",
|
|
3188
3189
|
"\"": """,
|
|
3189
3190
|
"'": "'",
|
|
3190
3191
|
"/": "/"
|
|
3191
|
-
},
|
|
3192
|
+
}, H = (e) => R(e) ? e.replace(/[&<>"'\/]/g, (e) => Le[e]) : e, Re = class {
|
|
3192
3193
|
constructor(e) {
|
|
3193
3194
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
3194
3195
|
}
|
|
@@ -3198,23 +3199,23 @@ var he = {
|
|
|
3198
3199
|
let n = new RegExp(e);
|
|
3199
3200
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
3200
3201
|
}
|
|
3201
|
-
},
|
|
3202
|
+
}, ze = [
|
|
3202
3203
|
" ",
|
|
3203
3204
|
",",
|
|
3204
3205
|
"?",
|
|
3205
3206
|
"!",
|
|
3206
3207
|
";"
|
|
3207
|
-
],
|
|
3208
|
+
], Be = new Re(20), U = (e, t, n) => {
|
|
3208
3209
|
t ||= "", n ||= "";
|
|
3209
|
-
let r =
|
|
3210
|
+
let r = ze.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
|
|
3210
3211
|
if (r.length === 0) return !0;
|
|
3211
|
-
let i =
|
|
3212
|
+
let i = Be.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
|
|
3212
3213
|
if (!a) {
|
|
3213
3214
|
let t = e.indexOf(n);
|
|
3214
3215
|
t > 0 && !i.test(e.substring(0, t)) && (a = !0);
|
|
3215
3216
|
}
|
|
3216
3217
|
return a;
|
|
3217
|
-
},
|
|
3218
|
+
}, Ve = (e, t, n = ".") => {
|
|
3218
3219
|
if (!e) return;
|
|
3219
3220
|
if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
3220
3221
|
let r = t.split(n), i = e;
|
|
@@ -3233,7 +3234,7 @@ var he = {
|
|
|
3233
3234
|
i = t;
|
|
3234
3235
|
}
|
|
3235
3236
|
return i;
|
|
3236
|
-
}, W = (e) => e?.replace(/_/g, "-"),
|
|
3237
|
+
}, W = (e) => e?.replace(/_/g, "-"), He = {
|
|
3237
3238
|
type: "logger",
|
|
3238
3239
|
log(e) {
|
|
3239
3240
|
this.output("log", e);
|
|
@@ -3252,7 +3253,7 @@ var he = {
|
|
|
3252
3253
|
this.init(e, t);
|
|
3253
3254
|
}
|
|
3254
3255
|
init(e, t = {}) {
|
|
3255
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
3256
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || He, this.options = t, this.debug = t.debug;
|
|
3256
3257
|
}
|
|
3257
3258
|
log(...e) {
|
|
3258
3259
|
return this.forward(e, "log", "", !0);
|
|
@@ -3278,7 +3279,7 @@ var he = {
|
|
|
3278
3279
|
clone(t) {
|
|
3279
3280
|
return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
|
|
3280
3281
|
}
|
|
3281
|
-
}(),
|
|
3282
|
+
}(), Ue = class {
|
|
3282
3283
|
constructor() {
|
|
3283
3284
|
this.observers = {};
|
|
3284
3285
|
}
|
|
@@ -3305,7 +3306,7 @@ var he = {
|
|
|
3305
3306
|
for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
|
|
3306
3307
|
});
|
|
3307
3308
|
}
|
|
3308
|
-
},
|
|
3309
|
+
}, We = class extends Ue {
|
|
3309
3310
|
constructor(e, t = {
|
|
3310
3311
|
ns: ["translation"],
|
|
3311
3312
|
defaultNS: "translation"
|
|
@@ -3322,12 +3323,12 @@ var he = {
|
|
|
3322
3323
|
getResource(e, t, n, r = {}) {
|
|
3323
3324
|
let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
|
|
3324
3325
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : R(n) && i ? o.push(...n.split(i)) : o.push(n)));
|
|
3325
|
-
let s =
|
|
3326
|
-
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !R(n) ? s :
|
|
3326
|
+
let s = Fe(this.data, o);
|
|
3327
|
+
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !R(n) ? s : Ve(this.data?.[e]?.[t], n, i);
|
|
3327
3328
|
}
|
|
3328
3329
|
addResource(e, t, n, r, i = { silent: !1 }) {
|
|
3329
3330
|
let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
|
|
3330
|
-
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t),
|
|
3331
|
+
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ne(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
3331
3332
|
}
|
|
3332
3333
|
addResources(e, t, n, r = { silent: !1 }) {
|
|
3333
3334
|
for (let r in n) (R(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
|
|
@@ -3339,11 +3340,11 @@ var he = {
|
|
|
3339
3340
|
}) {
|
|
3340
3341
|
let o = [e, t];
|
|
3341
3342
|
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
3342
|
-
let s =
|
|
3343
|
-
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ?
|
|
3343
|
+
let s = Fe(this.data, o) || {};
|
|
3344
|
+
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? B(s, n, i) : s = {
|
|
3344
3345
|
...s,
|
|
3345
3346
|
...n
|
|
3346
|
-
},
|
|
3347
|
+
}, Ne(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
3347
3348
|
}
|
|
3348
3349
|
removeResourceBundle(e, t) {
|
|
3349
3350
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -3364,7 +3365,7 @@ var he = {
|
|
|
3364
3365
|
toJSON() {
|
|
3365
3366
|
return this.data;
|
|
3366
3367
|
}
|
|
3367
|
-
},
|
|
3368
|
+
}, Ge = {
|
|
3368
3369
|
processors: {},
|
|
3369
3370
|
addPostProcessor(e) {
|
|
3370
3371
|
this.processors[e.name] = e;
|
|
@@ -3374,22 +3375,22 @@ var he = {
|
|
|
3374
3375
|
t = this.processors[e]?.process(t, n, r, i) ?? t;
|
|
3375
3376
|
}), t;
|
|
3376
3377
|
}
|
|
3377
|
-
},
|
|
3378
|
-
function
|
|
3378
|
+
}, Ke = Symbol("i18next/PATH_KEY");
|
|
3379
|
+
function qe() {
|
|
3379
3380
|
let e = [], t = Object.create(null), n;
|
|
3380
|
-
return t.get = (r, i) => (n?.revoke?.(), i ===
|
|
3381
|
+
return t.get = (r, i) => (n?.revoke?.(), i === Ke ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
|
|
3381
3382
|
}
|
|
3382
|
-
function
|
|
3383
|
-
let { [
|
|
3383
|
+
function Je(e, t) {
|
|
3384
|
+
let { [Ke]: n } = e(qe()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
|
|
3384
3385
|
if (n.length > 1 && i) {
|
|
3385
3386
|
let e = t?.ns, a = Array.isArray(e) ? e : null;
|
|
3386
3387
|
if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
|
|
3387
3388
|
}
|
|
3388
3389
|
return n.join(r);
|
|
3389
3390
|
}
|
|
3390
|
-
var
|
|
3391
|
+
var Ye = {}, Xe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number", Ze = class e extends Ue {
|
|
3391
3392
|
constructor(e, t = {}) {
|
|
3392
|
-
super(),
|
|
3393
|
+
super(), Oe([
|
|
3393
3394
|
"resourceStore",
|
|
3394
3395
|
"languageUtils",
|
|
3395
3396
|
"pluralResolver",
|
|
@@ -3407,13 +3408,13 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3407
3408
|
if (e == null) return !1;
|
|
3408
3409
|
let r = this.resolve(e, n);
|
|
3409
3410
|
if (r?.res === void 0) return !1;
|
|
3410
|
-
let i =
|
|
3411
|
+
let i = Xe(r.res);
|
|
3411
3412
|
return !(n.returnObjects === !1 && i);
|
|
3412
3413
|
}
|
|
3413
3414
|
extractFromKey(e, t) {
|
|
3414
3415
|
let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
|
|
3415
3416
|
n === void 0 && (n = ":");
|
|
3416
|
-
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
3417
|
+
let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !U(e, n, r);
|
|
3417
3418
|
if (a && !o) {
|
|
3418
3419
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
3419
3420
|
if (t && t.length > 0) return {
|
|
@@ -3431,10 +3432,10 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3431
3432
|
translate(t, n, r) {
|
|
3432
3433
|
let i = typeof n == "object" ? { ...n } : n;
|
|
3433
3434
|
if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
|
|
3434
|
-
typeof t == "function" && (t =
|
|
3435
|
+
typeof t == "function" && (t = Je(t, {
|
|
3435
3436
|
...this.options,
|
|
3436
3437
|
...i
|
|
3437
|
-
})), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ?
|
|
3438
|
+
})), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Je(e, {
|
|
3438
3439
|
...this.options,
|
|
3439
3440
|
...i
|
|
3440
3441
|
}) : String(e));
|
|
@@ -3460,42 +3461,42 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3460
3461
|
"[object Number]",
|
|
3461
3462
|
"[object Function]",
|
|
3462
3463
|
"[object RegExp]"
|
|
3463
|
-
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !R(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "",
|
|
3464
|
-
y && !m && x && (
|
|
3465
|
-
let
|
|
3466
|
-
if (y &&
|
|
3464
|
+
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !R(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", ee = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", C = b && !i.ordinal && i.count === 0, w = C && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${ee}`] || i.defaultValue, T = m;
|
|
3465
|
+
y && !m && x && (T = w);
|
|
3466
|
+
let te = Xe(T), E = Object.prototype.toString.apply(T);
|
|
3467
|
+
if (y && T && te && _.indexOf(E) < 0 && !(R(v) && Array.isArray(T))) {
|
|
3467
3468
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
3468
3469
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
3469
|
-
let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h,
|
|
3470
|
+
let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, T, {
|
|
3470
3471
|
...i,
|
|
3471
3472
|
ns: c
|
|
3472
3473
|
}) : `key '${s} (${this.language})' returned an object instead of string.`;
|
|
3473
3474
|
return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
|
|
3474
3475
|
}
|
|
3475
3476
|
if (o) {
|
|
3476
|
-
let e = Array.isArray(
|
|
3477
|
-
for (let e in
|
|
3477
|
+
let e = Array.isArray(T), t = e ? [] : {}, n = e ? g : h;
|
|
3478
|
+
for (let e in T) if (Object.prototype.hasOwnProperty.call(T, e)) {
|
|
3478
3479
|
let r = `${n}${o}${e}`;
|
|
3479
3480
|
x && !m ? t[e] = this.translate(r, {
|
|
3480
3481
|
...i,
|
|
3481
|
-
defaultValue:
|
|
3482
|
+
defaultValue: Xe(w) ? w[e] : void 0,
|
|
3482
3483
|
joinArrays: !1,
|
|
3483
3484
|
ns: c
|
|
3484
3485
|
}) : t[e] = this.translate(r, {
|
|
3485
3486
|
...i,
|
|
3486
3487
|
joinArrays: !1,
|
|
3487
3488
|
ns: c
|
|
3488
|
-
}), t[e] === r && (t[e] =
|
|
3489
|
+
}), t[e] === r && (t[e] = T[e]);
|
|
3489
3490
|
}
|
|
3490
3491
|
m = t;
|
|
3491
3492
|
}
|
|
3492
3493
|
} else if (y && R(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
|
|
3493
3494
|
else {
|
|
3494
3495
|
let e = !1, n = !1;
|
|
3495
|
-
!this.isValidLookup(m) && x && (e = !0, m =
|
|
3496
|
-
let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x &&
|
|
3496
|
+
!this.isValidLookup(m) && x && (e = !0, m = w), this.isValidLookup(m) || (n = !0, m = s);
|
|
3497
|
+
let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && w !== m && this.options.updateMissing;
|
|
3497
3498
|
if (n || e || c) {
|
|
3498
|
-
if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ?
|
|
3499
|
+
if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? w : m), o) {
|
|
3499
3500
|
let e = this.resolve(s, {
|
|
3500
3501
|
...i,
|
|
3501
3502
|
keySeparator: !1
|
|
@@ -3511,10 +3512,10 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3511
3512
|
};
|
|
3512
3513
|
this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
|
|
3513
3514
|
let t = this.pluralResolver.getSuffixes(e, i);
|
|
3514
|
-
|
|
3515
|
-
n([e], s + t, i[`defaultValue${t}`] ||
|
|
3515
|
+
C && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
|
|
3516
|
+
n([e], s + t, i[`defaultValue${t}`] || w);
|
|
3516
3517
|
});
|
|
3517
|
-
}) : n(e, s,
|
|
3518
|
+
}) : n(e, s, w));
|
|
3518
3519
|
}
|
|
3519
3520
|
m = this.extendTranslation(m, t, i, p, r), n && m === s && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${s}`), (n || e) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${s}` : s, e ? m : void 0, i));
|
|
3520
3521
|
}
|
|
@@ -3549,7 +3550,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3549
3550
|
!n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
|
|
3550
3551
|
}
|
|
3551
3552
|
let a = n.postProcess || this.options.postProcess, o = R(a) ? [a] : a;
|
|
3552
|
-
return e != null && o?.length && n.applyPostProcessor !== !1 && (e =
|
|
3553
|
+
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Ge.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
3553
3554
|
i18nResolved: {
|
|
3554
3555
|
...r,
|
|
3555
3556
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -3559,7 +3560,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3559
3560
|
}
|
|
3560
3561
|
resolve(e, t = {}) {
|
|
3561
3562
|
let n, r, i, a, o;
|
|
3562
|
-
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ?
|
|
3563
|
+
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Je(e, {
|
|
3563
3564
|
...this.options,
|
|
3564
3565
|
...t
|
|
3565
3566
|
}) : e)), e.forEach((e) => {
|
|
@@ -3570,7 +3571,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3570
3571
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
3571
3572
|
let u = t.count !== void 0 && !R(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
3572
3573
|
l.forEach((e) => {
|
|
3573
|
-
this.isValidLookup(n) || (o = e, !
|
|
3574
|
+
this.isValidLookup(n) || (o = e, !Ye[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Ye[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
|
|
3574
3575
|
if (this.isValidLookup(n)) return;
|
|
3575
3576
|
a = r;
|
|
3576
3577
|
let o = [c];
|
|
@@ -3633,7 +3634,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3633
3634
|
for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
|
|
3634
3635
|
return !1;
|
|
3635
3636
|
}
|
|
3636
|
-
},
|
|
3637
|
+
}, Qe = class {
|
|
3637
3638
|
constructor(e) {
|
|
3638
3639
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = G.create("languageUtils");
|
|
3639
3640
|
}
|
|
@@ -3693,17 +3694,17 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3693
3694
|
r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
|
|
3694
3695
|
}), r;
|
|
3695
3696
|
}
|
|
3696
|
-
},
|
|
3697
|
+
}, $e = {
|
|
3697
3698
|
zero: 0,
|
|
3698
3699
|
one: 1,
|
|
3699
3700
|
two: 2,
|
|
3700
3701
|
few: 3,
|
|
3701
3702
|
many: 4,
|
|
3702
3703
|
other: 5
|
|
3703
|
-
},
|
|
3704
|
+
}, et = {
|
|
3704
3705
|
select: (e) => e === 1 ? "one" : "other",
|
|
3705
3706
|
resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
|
|
3706
|
-
},
|
|
3707
|
+
}, tt = class {
|
|
3707
3708
|
constructor(e, t = {}) {
|
|
3708
3709
|
this.languageUtils = e, this.options = t, this.logger = G.create("pluralResolver"), this.pluralRulesCache = {};
|
|
3709
3710
|
}
|
|
@@ -3720,8 +3721,8 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3720
3721
|
try {
|
|
3721
3722
|
a = new Intl.PluralRules(n, { type: r });
|
|
3722
3723
|
} catch {
|
|
3723
|
-
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
3724
|
-
if (!e.match(/-|_/)) return
|
|
3724
|
+
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), et;
|
|
3725
|
+
if (!e.match(/-|_/)) return et;
|
|
3725
3726
|
let n = this.languageUtils.getLanguagePartFromCode(e);
|
|
3726
3727
|
a = this.getRule(n, t);
|
|
3727
3728
|
}
|
|
@@ -3736,23 +3737,23 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3736
3737
|
}
|
|
3737
3738
|
getSuffixes(e, t = {}) {
|
|
3738
3739
|
let n = this.getRule(e, t);
|
|
3739
|
-
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) =>
|
|
3740
|
+
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => $e[e] - $e[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
|
|
3740
3741
|
}
|
|
3741
3742
|
getSuffix(e, t, n = {}) {
|
|
3742
3743
|
let r = this.getRule(e, n);
|
|
3743
3744
|
return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
|
|
3744
3745
|
}
|
|
3745
|
-
},
|
|
3746
|
-
let a =
|
|
3747
|
-
return !a && i && R(n) && (a =
|
|
3748
|
-
},
|
|
3746
|
+
}, nt = (e, t, n, r = ".", i = !0) => {
|
|
3747
|
+
let a = Ie(e, t, n);
|
|
3748
|
+
return !a && i && R(n) && (a = Ve(e, n, r), a === void 0 && (a = Ve(t, n, r))), a;
|
|
3749
|
+
}, rt = (e) => e.replace(/\$/g, "$$$$"), it = class {
|
|
3749
3750
|
constructor(e = {}) {
|
|
3750
3751
|
this.logger = G.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
|
|
3751
3752
|
}
|
|
3752
3753
|
init(e = {}) {
|
|
3753
3754
|
e.interpolation ||= { escapeValue: !0 };
|
|
3754
3755
|
let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
|
|
3755
|
-
this.escape = t === void 0 ?
|
|
3756
|
+
this.escape = t === void 0 ? H : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? V(i) : a || "{{", this.suffix = o ? V(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? V(d) : f || V("$t("), this.nestingSuffix = p ? V(p) : m || V(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
|
|
3756
3757
|
}
|
|
3757
3758
|
reset() {
|
|
3758
3759
|
this.options && this.init(this.options);
|
|
@@ -3764,7 +3765,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3764
3765
|
interpolate(e, t, n, r) {
|
|
3765
3766
|
let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
|
|
3766
3767
|
if (e.indexOf(this.formatSeparator) < 0) {
|
|
3767
|
-
let i =
|
|
3768
|
+
let i = nt(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3768
3769
|
return this.alwaysFormat ? this.format(i, void 0, n, {
|
|
3769
3770
|
...r,
|
|
3770
3771
|
...t,
|
|
@@ -3772,7 +3773,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3772
3773
|
}) : i;
|
|
3773
3774
|
}
|
|
3774
3775
|
let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
|
|
3775
|
-
return this.format(
|
|
3776
|
+
return this.format(nt(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
|
|
3776
3777
|
...r,
|
|
3777
3778
|
...t,
|
|
3778
3779
|
interpolationkey: a
|
|
@@ -3782,10 +3783,10 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3782
3783
|
let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
|
|
3783
3784
|
return [{
|
|
3784
3785
|
regex: this.regexpUnescape,
|
|
3785
|
-
safeValue: (e) =>
|
|
3786
|
+
safeValue: (e) => rt(e)
|
|
3786
3787
|
}, {
|
|
3787
3788
|
regex: this.regexp,
|
|
3788
|
-
safeValue: (e) => this.escapeValue ?
|
|
3789
|
+
safeValue: (e) => this.escapeValue ? rt(this.escape(e)) : rt(e)
|
|
3789
3790
|
}].forEach((t) => {
|
|
3790
3791
|
for (o = 0; i = t.regex.exec(e);) {
|
|
3791
3792
|
let n = i[1].trim();
|
|
@@ -3797,7 +3798,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3797
3798
|
a = i[0];
|
|
3798
3799
|
continue;
|
|
3799
3800
|
} else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
|
|
3800
|
-
else !R(a) && !this.useRawValueToEscape && (a =
|
|
3801
|
+
else !R(a) && !this.useRawValueToEscape && (a = De(a));
|
|
3801
3802
|
let s = t.safeValue(a);
|
|
3802
3803
|
if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
|
|
3803
3804
|
}
|
|
@@ -3807,7 +3808,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3807
3808
|
let r, i, a, o = (e, t) => {
|
|
3808
3809
|
let n = this.nestingOptionsSeparator;
|
|
3809
3810
|
if (e.indexOf(n) < 0) return e;
|
|
3810
|
-
let r = e.split(RegExp(`${
|
|
3811
|
+
let r = e.split(RegExp(`${V(n)}[ ]*{`)), i = `{${r[1]}`;
|
|
3811
3812
|
e = r[0], i = this.interpolate(i, a);
|
|
3812
3813
|
let o = i.match(/'/g), s = i.match(/"/g);
|
|
3813
3814
|
((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
|
|
@@ -3826,14 +3827,14 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3826
3827
|
a = { ...n }, a = a.replace && !R(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
3827
3828
|
let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
|
|
3828
3829
|
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !R(i)) return i;
|
|
3829
|
-
R(i) || (i =
|
|
3830
|
+
R(i) || (i = De(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
|
|
3830
3831
|
...n,
|
|
3831
3832
|
interpolationkey: r[1].trim()
|
|
3832
3833
|
}), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
|
|
3833
3834
|
}
|
|
3834
3835
|
return e;
|
|
3835
3836
|
}
|
|
3836
|
-
},
|
|
3837
|
+
}, at = (e) => {
|
|
3837
3838
|
let t = e.toLowerCase().trim(), n = {};
|
|
3838
3839
|
if (e.indexOf("(") > -1) {
|
|
3839
3840
|
let r = e.split("(");
|
|
@@ -3850,7 +3851,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3850
3851
|
formatName: t,
|
|
3851
3852
|
formatOptions: n
|
|
3852
3853
|
};
|
|
3853
|
-
},
|
|
3854
|
+
}, ot = (e) => {
|
|
3854
3855
|
let t = {};
|
|
3855
3856
|
return (n, r, i) => {
|
|
3856
3857
|
let a = i;
|
|
@@ -3861,13 +3862,13 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3861
3862
|
let o = r + JSON.stringify(a), s = t[o];
|
|
3862
3863
|
return s || (s = e(W(r), i), t[o] = s), s(n);
|
|
3863
3864
|
};
|
|
3864
|
-
},
|
|
3865
|
+
}, st = (e) => (t, n, r) => e(W(n), r)(t), ct = class {
|
|
3865
3866
|
constructor(e = {}) {
|
|
3866
3867
|
this.logger = G.create("formatter"), this.options = e, this.init(e);
|
|
3867
3868
|
}
|
|
3868
3869
|
init(e, t = { interpolation: {} }) {
|
|
3869
3870
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3870
|
-
let n = t.cacheInBuiltFormats ?
|
|
3871
|
+
let n = t.cacheInBuiltFormats ? ot : st;
|
|
3871
3872
|
this.formats = {
|
|
3872
3873
|
number: n((e, t) => {
|
|
3873
3874
|
let n = new Intl.NumberFormat(e, { ...t });
|
|
@@ -3898,7 +3899,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3898
3899
|
this.formats[e.toLowerCase().trim()] = t;
|
|
3899
3900
|
}
|
|
3900
3901
|
addCached(e, t) {
|
|
3901
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3902
|
+
this.formats[e.toLowerCase().trim()] = ot(t);
|
|
3902
3903
|
}
|
|
3903
3904
|
format(e, t, n, r = {}) {
|
|
3904
3905
|
let i = t.split(this.formatSeparator);
|
|
@@ -3907,7 +3908,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3907
3908
|
i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
|
|
3908
3909
|
}
|
|
3909
3910
|
return i.reduce((e, t) => {
|
|
3910
|
-
let { formatName: i, formatOptions: a } =
|
|
3911
|
+
let { formatName: i, formatOptions: a } = at(t);
|
|
3911
3912
|
if (this.formats[i]) {
|
|
3912
3913
|
let t = e;
|
|
3913
3914
|
try {
|
|
@@ -3925,9 +3926,9 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3925
3926
|
return e;
|
|
3926
3927
|
}, e);
|
|
3927
3928
|
}
|
|
3928
|
-
},
|
|
3929
|
+
}, lt = (e, t) => {
|
|
3929
3930
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
3930
|
-
},
|
|
3931
|
+
}, K = class extends Ue {
|
|
3931
3932
|
constructor(e, t, n, r = {}) {
|
|
3932
3933
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = G.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
|
|
3933
3934
|
}
|
|
@@ -3957,7 +3958,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
3957
3958
|
t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3958
3959
|
let o = {};
|
|
3959
3960
|
this.queue.forEach((n) => {
|
|
3960
|
-
|
|
3961
|
+
Pe(n.loaded, [i], a), lt(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
|
|
3961
3962
|
o[e] || (o[e] = {});
|
|
3962
3963
|
let t = n.loaded[e];
|
|
3963
3964
|
t.length && t.forEach((t) => {
|
|
@@ -4047,7 +4048,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4047
4048
|
!e || !e[0] || this.store.addResource(e[0], t, n, r);
|
|
4048
4049
|
}
|
|
4049
4050
|
}
|
|
4050
|
-
},
|
|
4051
|
+
}, ut = () => ({
|
|
4051
4052
|
debug: !1,
|
|
4052
4053
|
initAsync: !0,
|
|
4053
4054
|
ns: ["translation"],
|
|
@@ -4104,15 +4105,15 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4104
4105
|
skipOnVariables: !0
|
|
4105
4106
|
},
|
|
4106
4107
|
cacheInBuiltFormats: !0
|
|
4107
|
-
}),
|
|
4108
|
+
}), dt = (e) => (R(e.ns) && (e.ns = [e.ns]), R(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), R(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), ft = () => {}, pt = (e) => {
|
|
4108
4109
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
4109
4110
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
4110
4111
|
});
|
|
4111
|
-
},
|
|
4112
|
-
typeof globalThis < "u" && (globalThis[
|
|
4113
|
-
},
|
|
4112
|
+
}, q = "__i18next_supportNoticeShown", mt = () => !!(typeof globalThis < "u" && globalThis[q] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ht = () => {
|
|
4113
|
+
typeof globalThis < "u" && (globalThis[q] = !0);
|
|
4114
|
+
}, gt = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), J = class e extends Ue {
|
|
4114
4115
|
constructor(e = {}, t) {
|
|
4115
|
-
if (super(), this.options =
|
|
4116
|
+
if (super(), this.options = dt(e), this.services = {}, this.logger = G, this.modules = { external: [] }, pt(this), t && !this.isInitialized && !e.isClone) {
|
|
4116
4117
|
if (!this.options.initAsync) return this.init(e, t), this;
|
|
4117
4118
|
setTimeout(() => {
|
|
4118
4119
|
this.init(e, t);
|
|
@@ -4121,35 +4122,35 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4121
4122
|
}
|
|
4122
4123
|
init(e = {}, t) {
|
|
4123
4124
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (R(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
4124
|
-
let n =
|
|
4125
|
+
let n = ut();
|
|
4125
4126
|
this.options = {
|
|
4126
4127
|
...n,
|
|
4127
4128
|
...this.options,
|
|
4128
|
-
...
|
|
4129
|
+
...dt(e)
|
|
4129
4130
|
}, this.options.interpolation = {
|
|
4130
4131
|
...n.interpolation,
|
|
4131
4132
|
...this.options.interpolation
|
|
4132
|
-
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !
|
|
4133
|
+
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !gt(this) && !mt() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), ht());
|
|
4133
4134
|
let r = (e) => e ? typeof e == "function" ? new e() : e : null;
|
|
4134
4135
|
if (!this.options.isClone) {
|
|
4135
4136
|
this.modules.logger ? G.init(r(this.modules.logger), this.options) : G.init(null, this.options);
|
|
4136
4137
|
let e;
|
|
4137
|
-
e = this.modules.formatter ? this.modules.formatter :
|
|
4138
|
-
let t = new
|
|
4139
|
-
this.store = new
|
|
4138
|
+
e = this.modules.formatter ? this.modules.formatter : ct;
|
|
4139
|
+
let t = new Qe(this.options);
|
|
4140
|
+
this.store = new We(this.options.resources, this.options);
|
|
4140
4141
|
let i = this.services;
|
|
4141
|
-
i.logger = G, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new
|
|
4142
|
+
i.logger = G, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new tt(t, {
|
|
4142
4143
|
prepend: this.options.pluralSeparator,
|
|
4143
4144
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
4144
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new
|
|
4145
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new it(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new K(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
|
|
4145
4146
|
this.emit(e, ...t);
|
|
4146
|
-
}), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new
|
|
4147
|
+
}), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Ze(this.services, this.options), this.translator.on("*", (e, ...t) => {
|
|
4147
4148
|
this.emit(e, ...t);
|
|
4148
4149
|
}), this.modules.external.forEach((e) => {
|
|
4149
4150
|
e.init && e.init(this);
|
|
4150
4151
|
});
|
|
4151
4152
|
}
|
|
4152
|
-
if (this.format = this.options.interpolation.format, t ||=
|
|
4153
|
+
if (this.format = this.options.interpolation.format, t ||= ft, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
4153
4154
|
let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
4154
4155
|
e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
|
|
4155
4156
|
}
|
|
@@ -4168,7 +4169,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4168
4169
|
].forEach((e) => {
|
|
4169
4170
|
this[e] = (...t) => (this.store[e](...t), this);
|
|
4170
4171
|
});
|
|
4171
|
-
let i =
|
|
4172
|
+
let i = z(), a = () => {
|
|
4172
4173
|
let e = (e, n) => {
|
|
4173
4174
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
|
|
4174
4175
|
};
|
|
@@ -4177,7 +4178,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4177
4178
|
};
|
|
4178
4179
|
return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
|
|
4179
4180
|
}
|
|
4180
|
-
loadResources(e, t =
|
|
4181
|
+
loadResources(e, t = ft) {
|
|
4181
4182
|
let n = t, r = R(e) ? e : this.language;
|
|
4182
4183
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
4183
4184
|
if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
@@ -4192,15 +4193,15 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4192
4193
|
} else n(null);
|
|
4193
4194
|
}
|
|
4194
4195
|
reloadResources(e, t, n) {
|
|
4195
|
-
let r =
|
|
4196
|
-
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||=
|
|
4196
|
+
let r = z();
|
|
4197
|
+
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= ft, this.services.backendConnector.reload(e, t, (e) => {
|
|
4197
4198
|
r.resolve(), n(e);
|
|
4198
4199
|
}), r;
|
|
4199
4200
|
}
|
|
4200
4201
|
use(e) {
|
|
4201
4202
|
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
4202
4203
|
if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
4203
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
4204
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ge.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
4204
4205
|
}
|
|
4205
4206
|
setResolvedLanguage(e) {
|
|
4206
4207
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -4216,7 +4217,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4216
4217
|
}
|
|
4217
4218
|
changeLanguage(e, t) {
|
|
4218
4219
|
this.isLanguageChangingTo = e;
|
|
4219
|
-
let n =
|
|
4220
|
+
let n = z();
|
|
4220
4221
|
this.emit("languageChanging", e);
|
|
4221
4222
|
let r = (e) => {
|
|
4222
4223
|
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
|
|
@@ -4239,9 +4240,9 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4239
4240
|
...this.options,
|
|
4240
4241
|
...a
|
|
4241
4242
|
};
|
|
4242
|
-
typeof a.keyPrefix == "function" && (a.keyPrefix =
|
|
4243
|
+
typeof a.keyPrefix == "function" && (a.keyPrefix = Je(a.keyPrefix, o));
|
|
4243
4244
|
let s = this.options.keySeparator || ".", c;
|
|
4244
|
-
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e =
|
|
4245
|
+
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = Je(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = Je(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
|
|
4245
4246
|
};
|
|
4246
4247
|
return R(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
|
|
4247
4248
|
}
|
|
@@ -4270,7 +4271,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4270
4271
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
|
|
4271
4272
|
}
|
|
4272
4273
|
loadNamespaces(e, t) {
|
|
4273
|
-
let n =
|
|
4274
|
+
let n = z();
|
|
4274
4275
|
return this.options.ns ? (R(e) && (e = [e]), e.forEach((e) => {
|
|
4275
4276
|
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
|
|
4276
4277
|
}), this.loadResources((e) => {
|
|
@@ -4278,7 +4279,7 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4278
4279
|
}), n) : (t && t(), Promise.resolve());
|
|
4279
4280
|
}
|
|
4280
4281
|
loadLanguages(e, t) {
|
|
4281
|
-
let n =
|
|
4282
|
+
let n = z();
|
|
4282
4283
|
R(e) && (e = [e]);
|
|
4283
4284
|
let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
|
|
4284
4285
|
return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
|
|
@@ -4294,14 +4295,14 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4294
4295
|
if (e && e.direction) return e.direction;
|
|
4295
4296
|
}
|
|
4296
4297
|
} catch {}
|
|
4297
|
-
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new
|
|
4298
|
+
let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Qe(ut());
|
|
4298
4299
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
4299
4300
|
}
|
|
4300
4301
|
static createInstance(t = {}, n) {
|
|
4301
4302
|
let r = new e(t, n);
|
|
4302
4303
|
return r.createInstance = e.createInstance, r;
|
|
4303
4304
|
}
|
|
4304
|
-
cloneInstance(t = {}, n =
|
|
4305
|
+
cloneInstance(t = {}, n = ft) {
|
|
4305
4306
|
let r = t.forkResourceStore;
|
|
4306
4307
|
r && delete t.forkResourceStore;
|
|
4307
4308
|
let i = {
|
|
@@ -4315,18 +4316,18 @@ var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
4315
4316
|
"language"
|
|
4316
4317
|
].forEach((e) => {
|
|
4317
4318
|
a[e] = this[e];
|
|
4318
|
-
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new
|
|
4319
|
+
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new We(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
|
|
4319
4320
|
let e = {
|
|
4320
|
-
...
|
|
4321
|
+
...ut().interpolation,
|
|
4321
4322
|
...this.options.interpolation,
|
|
4322
4323
|
...t.interpolation
|
|
4323
4324
|
}, n = {
|
|
4324
4325
|
...i,
|
|
4325
4326
|
interpolation: e
|
|
4326
4327
|
};
|
|
4327
|
-
a.services.interpolator = new
|
|
4328
|
+
a.services.interpolator = new it(n);
|
|
4328
4329
|
}
|
|
4329
|
-
return a.translator = new
|
|
4330
|
+
return a.translator = new Ze(a.services, i), a.translator.on("*", (e, ...t) => {
|
|
4330
4331
|
a.emit(e, ...t);
|
|
4331
4332
|
}), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
4332
4333
|
}
|
|
@@ -4347,11 +4348,11 @@ J.createInstance, J.dir, J.init, J.loadResources, J.reloadResources, J.use, J.ch
|
|
|
4347
4348
|
lng: "en",
|
|
4348
4349
|
debug: !0,
|
|
4349
4350
|
resources: {
|
|
4350
|
-
en:
|
|
4351
|
-
es:
|
|
4351
|
+
en: Te,
|
|
4352
|
+
es: Ee
|
|
4352
4353
|
}
|
|
4353
4354
|
});
|
|
4354
|
-
var
|
|
4355
|
+
var _t = {
|
|
4355
4356
|
translator: {
|
|
4356
4357
|
...J,
|
|
4357
4358
|
t: (e, t) => {
|
|
@@ -4382,7 +4383,7 @@ var ht = {
|
|
|
4382
4383
|
value: "es_ES",
|
|
4383
4384
|
label: "Spanish"
|
|
4384
4385
|
}]
|
|
4385
|
-
}, { translator:
|
|
4386
|
+
}, { translator: vt } = _t, yt = h("div")(({ theme: e }) => ({
|
|
4386
4387
|
display: "flex",
|
|
4387
4388
|
flexDirection: "row",
|
|
4388
4389
|
alignItems: "center",
|
|
@@ -4392,50 +4393,50 @@ var ht = {
|
|
|
4392
4393
|
paddingBottom: e.spacing(1),
|
|
4393
4394
|
paddingTop: e.spacing(1),
|
|
4394
4395
|
marginBottom: e.spacing(1)
|
|
4395
|
-
})),
|
|
4396
|
+
})), bt = h("span")(({ theme: e }) => ({
|
|
4396
4397
|
fontSize: "14px",
|
|
4397
4398
|
fontWeight: "bold",
|
|
4398
|
-
color:
|
|
4399
|
+
color: l.black(),
|
|
4399
4400
|
marginLeft: e.spacing(1)
|
|
4400
|
-
})),
|
|
4401
|
+
})), xt = h("div")(() => ({
|
|
4401
4402
|
position: "relative",
|
|
4402
4403
|
padding: "4px",
|
|
4403
4404
|
fontSize: "14px",
|
|
4404
4405
|
borderRadius: "4px"
|
|
4405
|
-
})),
|
|
4406
|
-
color:
|
|
4406
|
+
})), St = h(xt)(() => ({ border: `${l.correctTertiary()} solid 2px` })), Ct = h(xt)(() => ({ border: `${l.incorrectWithIcon()} solid 2px` })), wt = h(xt)(() => ({ border: `${l.incorrectWithIcon()} dashed 2px` })), Tt = {
|
|
4407
|
+
color: l.white(),
|
|
4407
4408
|
position: "absolute",
|
|
4408
4409
|
top: "-8px",
|
|
4409
4410
|
left: "-8px",
|
|
4410
4411
|
borderRadius: "50%",
|
|
4411
4412
|
fontSize: "12px",
|
|
4412
4413
|
padding: "2px"
|
|
4413
|
-
},
|
|
4414
|
-
...
|
|
4415
|
-
backgroundColor:
|
|
4416
|
-
})),
|
|
4417
|
-
...
|
|
4418
|
-
backgroundColor:
|
|
4419
|
-
})),
|
|
4414
|
+
}, Et = h(ee)(() => ({
|
|
4415
|
+
...Tt,
|
|
4416
|
+
backgroundColor: l.correctTertiary()
|
|
4417
|
+
})), Dt = h(oe)(() => ({
|
|
4418
|
+
...Tt,
|
|
4419
|
+
backgroundColor: l.incorrectWithIcon()
|
|
4420
|
+
})), Ot = ({ language: e, showOnlyCorrect: t }) => {
|
|
4420
4421
|
let n = [
|
|
4421
4422
|
{
|
|
4422
|
-
Icon:
|
|
4423
|
-
label:
|
|
4424
|
-
Container:
|
|
4423
|
+
Icon: Et,
|
|
4424
|
+
label: vt.t("selectText.correctAnswerSelected", { lng: e }),
|
|
4425
|
+
Container: St
|
|
4425
4426
|
},
|
|
4426
4427
|
{
|
|
4427
|
-
Icon:
|
|
4428
|
-
label:
|
|
4429
|
-
Container:
|
|
4428
|
+
Icon: Dt,
|
|
4429
|
+
label: vt.t("selectText.incorrectSelection", { lng: e }),
|
|
4430
|
+
Container: Ct
|
|
4430
4431
|
},
|
|
4431
4432
|
{
|
|
4432
|
-
Icon:
|
|
4433
|
-
label:
|
|
4434
|
-
Container:
|
|
4433
|
+
Icon: Dt,
|
|
4434
|
+
label: vt.t("selectText.correctAnswerNotSelected", { lng: e }),
|
|
4435
|
+
Container: wt
|
|
4435
4436
|
}
|
|
4436
4437
|
];
|
|
4437
|
-
return t && n.splice(1, 2), /* @__PURE__ */ D(
|
|
4438
|
-
},
|
|
4438
|
+
return t && n.splice(1, 2), /* @__PURE__ */ D(yt, { children: [/* @__PURE__ */ E(bt, { children: vt.t("selectText.key", { lng: e }) }), n.map(({ Icon: e, label: t, Container: n }, r) => /* @__PURE__ */ D(n, { children: [/* @__PURE__ */ E(e, {}), /* @__PURE__ */ E("span", { children: t })] }, r))] });
|
|
4439
|
+
}, kt = "height ease-in 300ms, opacity ease-in 300ms", At = h("div")(() => ({
|
|
4439
4440
|
position: "relative",
|
|
4440
4441
|
height: 0,
|
|
4441
4442
|
overflow: "hidden",
|
|
@@ -4443,7 +4444,7 @@ var ht = {
|
|
|
4443
4444
|
visibility: "hidden",
|
|
4444
4445
|
width: 0,
|
|
4445
4446
|
"&.enter": {
|
|
4446
|
-
transition:
|
|
4447
|
+
transition: kt,
|
|
4447
4448
|
opacity: 1,
|
|
4448
4449
|
height: "auto",
|
|
4449
4450
|
width: "auto",
|
|
@@ -4457,7 +4458,7 @@ var ht = {
|
|
|
4457
4458
|
minHeight: "25px"
|
|
4458
4459
|
},
|
|
4459
4460
|
"&.exit": {
|
|
4460
|
-
transition:
|
|
4461
|
+
transition: kt,
|
|
4461
4462
|
opacity: 0,
|
|
4462
4463
|
height: 0,
|
|
4463
4464
|
visibility: "visible",
|
|
@@ -4469,9 +4470,9 @@ var ht = {
|
|
|
4469
4470
|
height: 0,
|
|
4470
4471
|
width: 0
|
|
4471
4472
|
}
|
|
4472
|
-
})),
|
|
4473
|
+
})), jt = (e) => {
|
|
4473
4474
|
let { show: t, children: n, className: r } = e, i = w(null);
|
|
4474
|
-
return /* @__PURE__ */ E(
|
|
4475
|
+
return /* @__PURE__ */ E(d, {
|
|
4475
4476
|
nodeRef: i,
|
|
4476
4477
|
in: t,
|
|
4477
4478
|
appear: !0,
|
|
@@ -4483,49 +4484,49 @@ var ht = {
|
|
|
4483
4484
|
exit: "exit",
|
|
4484
4485
|
exitDone: "exit-done"
|
|
4485
4486
|
},
|
|
4486
|
-
children: /* @__PURE__ */ E(
|
|
4487
|
+
children: /* @__PURE__ */ E(At, {
|
|
4487
4488
|
ref: i,
|
|
4488
4489
|
className: r,
|
|
4489
4490
|
children: n
|
|
4490
4491
|
})
|
|
4491
4492
|
});
|
|
4492
4493
|
};
|
|
4493
|
-
|
|
4494
|
+
jt.propTypes = {
|
|
4494
4495
|
show: O.default.bool.isRequired,
|
|
4495
4496
|
className: O.default.string,
|
|
4496
4497
|
children: O.default.oneOfType([O.default.arrayOf(O.default.node), O.default.node]).isRequired
|
|
4497
4498
|
};
|
|
4498
4499
|
//#endregion
|
|
4499
4500
|
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
4500
|
-
function
|
|
4501
|
+
function Mt(e) {
|
|
4501
4502
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
4502
4503
|
}
|
|
4503
|
-
function
|
|
4504
|
-
return !e ||
|
|
4504
|
+
function Nt(e, t) {
|
|
4505
|
+
return !e || Mt(e) ? e : Mt(e.default) ? e.default : t && Mt(e[t]) ? e[t] : t && Mt(e[t]?.default) ? e[t].default : e;
|
|
4505
4506
|
}
|
|
4506
|
-
var
|
|
4507
|
+
var Pt = Nt(m, "Readable") || Nt(Lt.Readable, "Readable"), Ft = _, It = Ft.default, Lt = It && typeof It == "object" ? It : Ft, { translator: Rt } = _t, zt = {
|
|
4507
4508
|
WebkitTouchCallout: "none",
|
|
4508
4509
|
WebkitUserSelect: "none",
|
|
4509
4510
|
KhtmlUserSelect: "none",
|
|
4510
4511
|
MozUserSelect: "none",
|
|
4511
4512
|
msUserSelect: "none",
|
|
4512
4513
|
userSelect: "none"
|
|
4513
|
-
},
|
|
4514
|
+
}, Bt = h("div")(() => ({
|
|
4514
4515
|
width: "100%",
|
|
4515
4516
|
cursor: "pointer"
|
|
4516
|
-
})),
|
|
4517
|
+
})), Vt = h("div")(() => ({
|
|
4517
4518
|
margin: "0 auto",
|
|
4518
4519
|
textAlign: "center",
|
|
4519
4520
|
display: "flex"
|
|
4520
|
-
})),
|
|
4521
|
+
})), Ht = h("div")(() => ({
|
|
4521
4522
|
width: "fit-content",
|
|
4522
4523
|
minWidth: "140px",
|
|
4523
4524
|
alignSelf: "center",
|
|
4524
4525
|
verticalAlign: "middle",
|
|
4525
|
-
color: `var(--correct-answer-toggle-label-color, ${
|
|
4526
|
+
color: `var(--correct-answer-toggle-label-color, ${l.text()})`,
|
|
4526
4527
|
fontWeight: "normal",
|
|
4527
|
-
...
|
|
4528
|
-
})),
|
|
4528
|
+
...zt
|
|
4529
|
+
})), Ut = h("div")(() => ({
|
|
4529
4530
|
position: "absolute",
|
|
4530
4531
|
width: "25px",
|
|
4531
4532
|
"&.enter": { opacity: "0" },
|
|
@@ -4538,12 +4539,12 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4538
4539
|
opacity: "0",
|
|
4539
4540
|
transition: "opacity 0.3s ease-in"
|
|
4540
4541
|
}
|
|
4541
|
-
})),
|
|
4542
|
+
})), Wt = h("div")(() => ({
|
|
4542
4543
|
width: "25px",
|
|
4543
4544
|
marginRight: "5px",
|
|
4544
4545
|
display: "flex",
|
|
4545
4546
|
alignItems: "center"
|
|
4546
|
-
})),
|
|
4547
|
+
})), Gt = class e extends C.Component {
|
|
4547
4548
|
static propTypes = {
|
|
4548
4549
|
onToggle: O.default.func,
|
|
4549
4550
|
toggled: O.default.bool,
|
|
@@ -4562,8 +4563,8 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4562
4563
|
constructor(t) {
|
|
4563
4564
|
super(t), this.state = { show: t.show }, this.openIconRef = C.createRef(), this.closedIconRef = C.createRef(), e.defaultProps = {
|
|
4564
4565
|
...e.defaultProps,
|
|
4565
|
-
showMessage:
|
|
4566
|
-
hideMessage:
|
|
4566
|
+
showMessage: Rt.t("common:showCorrectAnswer", { lng: t.language }),
|
|
4567
|
+
hideMessage: Rt.t("common:hideCorrectAnswer", { lng: t.language })
|
|
4567
4568
|
};
|
|
4568
4569
|
}
|
|
4569
4570
|
onClick() {
|
|
@@ -4575,20 +4576,20 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4575
4576
|
UNSAFE_componentWillReceiveProps(t) {
|
|
4576
4577
|
this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
|
|
4577
4578
|
...e.defaultProps,
|
|
4578
|
-
showMessage:
|
|
4579
|
-
hideMessage:
|
|
4579
|
+
showMessage: Rt.t("common:showCorrectAnswer", { lng: t.language }),
|
|
4580
|
+
hideMessage: Rt.t("common:hideCorrectAnswer", { lng: t.language })
|
|
4580
4581
|
});
|
|
4581
4582
|
}
|
|
4582
4583
|
render() {
|
|
4583
4584
|
let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
|
|
4584
|
-
return /* @__PURE__ */ E(
|
|
4585
|
+
return /* @__PURE__ */ E(Bt, {
|
|
4585
4586
|
className: e,
|
|
4586
|
-
children: /* @__PURE__ */ E(
|
|
4587
|
+
children: /* @__PURE__ */ E(jt, {
|
|
4587
4588
|
show: this.state.show,
|
|
4588
|
-
children: /* @__PURE__ */ D(
|
|
4589
|
+
children: /* @__PURE__ */ D(Vt, {
|
|
4589
4590
|
onClick: this.onClick.bind(this),
|
|
4590
4591
|
onTouchEnd: this.onTouch.bind(this),
|
|
4591
|
-
children: [/* @__PURE__ */ D(
|
|
4592
|
+
children: [/* @__PURE__ */ D(Wt, { children: [/* @__PURE__ */ E(d, {
|
|
4592
4593
|
nodeRef: this.openIconRef,
|
|
4593
4594
|
timeout: 400,
|
|
4594
4595
|
in: t,
|
|
@@ -4599,11 +4600,11 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4599
4600
|
exit: "exit",
|
|
4600
4601
|
exitActive: "exit-active"
|
|
4601
4602
|
},
|
|
4602
|
-
children: /* @__PURE__ */ E(
|
|
4603
|
+
children: /* @__PURE__ */ E(Ut, {
|
|
4603
4604
|
ref: this.openIconRef,
|
|
4604
|
-
children: /* @__PURE__ */ E(
|
|
4605
|
+
children: /* @__PURE__ */ E(ae, { open: t }, "correct-open")
|
|
4605
4606
|
})
|
|
4606
|
-
}), /* @__PURE__ */ E(
|
|
4607
|
+
}), /* @__PURE__ */ E(d, {
|
|
4607
4608
|
nodeRef: this.closedIconRef,
|
|
4608
4609
|
timeout: 5e3,
|
|
4609
4610
|
in: !t,
|
|
@@ -4614,13 +4615,13 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4614
4615
|
exit: "exit",
|
|
4615
4616
|
exitActive: "exit-active"
|
|
4616
4617
|
},
|
|
4617
|
-
children: /* @__PURE__ */ E(
|
|
4618
|
+
children: /* @__PURE__ */ E(Ut, {
|
|
4618
4619
|
ref: this.closedIconRef,
|
|
4619
|
-
children: /* @__PURE__ */ E(
|
|
4620
|
+
children: /* @__PURE__ */ E(ae, { open: t }, "correct-closed")
|
|
4620
4621
|
})
|
|
4621
|
-
})] }), /* @__PURE__ */ E(
|
|
4622
|
+
})] }), /* @__PURE__ */ E(Pt, {
|
|
4622
4623
|
false: !0,
|
|
4623
|
-
children: /* @__PURE__ */ E(
|
|
4624
|
+
children: /* @__PURE__ */ E(Ht, {
|
|
4624
4625
|
"aria-hidden": !this.state.show,
|
|
4625
4626
|
children: t ? n : r
|
|
4626
4627
|
})
|
|
@@ -4629,25 +4630,25 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4629
4630
|
})
|
|
4630
4631
|
});
|
|
4631
4632
|
}
|
|
4632
|
-
},
|
|
4633
|
+
}, Kt = function() {
|
|
4633
4634
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = document.createElement("div");
|
|
4634
4635
|
return t.innerHTML = e.trim(), t;
|
|
4635
|
-
},
|
|
4636
|
+
}, qt = function(e, t) {
|
|
4636
4637
|
return t ? e.innerHTML : `${e.innerHTML}
|
|
4637
4638
|
|
|
4638
4639
|
`;
|
|
4639
|
-
},
|
|
4640
|
+
}, Jt = function(e) {
|
|
4640
4641
|
var t = e.querySelectorAll("div[separator=true]"), n = "";
|
|
4641
4642
|
return t.forEach(function(e, r) {
|
|
4642
|
-
n +=
|
|
4643
|
+
n += qt(e, r === t.length - 1);
|
|
4643
4644
|
}), n || null;
|
|
4644
|
-
},
|
|
4645
|
-
var t =
|
|
4646
|
-
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e :
|
|
4647
|
-
},
|
|
4645
|
+
}, Yt = function(e) {
|
|
4646
|
+
var t = Kt(e), n = document.createElement("div");
|
|
4647
|
+
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e : Jt(t);
|
|
4648
|
+
}, Xt = (e) => {
|
|
4648
4649
|
if (!e) return e;
|
|
4649
|
-
let t =
|
|
4650
|
-
let i =
|
|
4650
|
+
let t = Yt(e.text || ""), n = (e.tokens || []).reduce((n, r = {}) => {
|
|
4651
|
+
let i = Yt((e.text || "").slice(r.start, r.end));
|
|
4651
4652
|
if (!i) return [...n, r];
|
|
4652
4653
|
let a = (e) => {
|
|
4653
4654
|
let n = e;
|
|
@@ -4675,41 +4676,47 @@ var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.defaul
|
|
|
4675
4676
|
};
|
|
4676
4677
|
//#endregion
|
|
4677
4678
|
//#region src/delivery/main.tsx
|
|
4678
|
-
function
|
|
4679
|
+
function Y(e) {
|
|
4679
4680
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
4680
4681
|
}
|
|
4681
|
-
function
|
|
4682
|
-
return !e ||
|
|
4682
|
+
function X(e, t) {
|
|
4683
|
+
return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
|
|
4683
4684
|
}
|
|
4684
|
-
var
|
|
4685
|
-
color:
|
|
4686
|
-
backgroundColor:
|
|
4687
|
-
}),
|
|
4685
|
+
var Zt = X(p, "UiLayout") || X(tn.UiLayout, "UiLayout"), Z = X(f, "PreviewPrompt") || X(tn.PreviewPrompt, "PreviewPrompt"), Qt = X(u, "Collapsible") || X(tn.Collapsible, "Collapsible"), $t = X(s, "Feedback") || X(tn.Feedback, "Feedback"), en = _, Q = en.default, tn = Q && typeof Q == "object" ? Q : en, nn = (0, _e.default)("@pie-ui:select-text"), rn = h(Zt)({
|
|
4686
|
+
color: l.text(),
|
|
4687
|
+
backgroundColor: l.background()
|
|
4688
|
+
}), an = h(we)(({ theme: e }) => ({
|
|
4688
4689
|
marginBottom: e.spacing(1),
|
|
4689
4690
|
marginTop: e.spacing(2),
|
|
4690
4691
|
whiteSpace: "normal"
|
|
4691
|
-
})),
|
|
4692
|
+
})), on = h("div")(({ theme: e }) => ({
|
|
4692
4693
|
verticalAlign: "middle",
|
|
4693
4694
|
marginBottom: e.spacing(1)
|
|
4694
|
-
})),
|
|
4695
|
+
})), sn = h(Qt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), cn = {
|
|
4695
4696
|
model: O.default.object,
|
|
4696
4697
|
session: O.default.object,
|
|
4697
4698
|
onSelectionChange: O.default.func.isRequired
|
|
4698
|
-
},
|
|
4699
|
-
static propTypes =
|
|
4699
|
+
}, ln = class extends C.Component {
|
|
4700
|
+
static propTypes = cn;
|
|
4700
4701
|
static defaultProps = {};
|
|
4701
4702
|
constructor(e) {
|
|
4702
4703
|
super(e), this.state = {
|
|
4703
4704
|
showCorrectAnswer: this.props.model.alwaysShowCorrect || !1,
|
|
4704
|
-
model:
|
|
4705
|
+
model: Xt(e.model)
|
|
4705
4706
|
};
|
|
4706
4707
|
}
|
|
4707
4708
|
UNSAFE_componentWillReceiveProps(e) {
|
|
4708
4709
|
this.setState({
|
|
4709
4710
|
showCorrectAnswer: !!e.model.alwaysShowCorrect,
|
|
4710
|
-
model:
|
|
4711
|
+
model: Xt(e.model)
|
|
4711
4712
|
});
|
|
4712
4713
|
}
|
|
4714
|
+
componentDidMount() {
|
|
4715
|
+
o(T.findDOMNode(this));
|
|
4716
|
+
}
|
|
4717
|
+
componentDidUpdate() {
|
|
4718
|
+
o(T.findDOMNode(this));
|
|
4719
|
+
}
|
|
4713
4720
|
toggleShowCorrect = () => {
|
|
4714
4721
|
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
4715
4722
|
};
|
|
@@ -4718,56 +4725,57 @@ var Z = Jt(d, "UiLayout") || Jt($t.UiLayout, "UiLayout"), Yt = Jt(u, "PreviewPro
|
|
|
4718
4725
|
return e.tokens.filter((e) => e.correct);
|
|
4719
4726
|
};
|
|
4720
4727
|
render() {
|
|
4721
|
-
let { session: e, onSelectionChange: t } = this.props, { showCorrectAnswer: n, model: r } = this.state, { env: i, extraCSSRules: a } = r, { mode: o } = i || {}, s = n ? this.correctAnswer() : e.selectedTokens, c = r.rationale && (
|
|
4722
|
-
return
|
|
4728
|
+
let { session: e, onSelectionChange: t } = this.props, { showCorrectAnswer: n, model: r } = this.state, { env: i, extraCSSRules: a } = r, { mode: o } = i || {}, s = n ? this.correctAnswer() : e.selectedTokens, c = r.rationale && (g(r.rationale) || v(r.rationale)), l = r.teacherInstructions && (g(r.teacherInstructions) || v(r.teacherInstructions));
|
|
4729
|
+
return nn("[render] selectedTokens:", s), /* @__PURE__ */ D(rn, {
|
|
4723
4730
|
extraCSSRules: a,
|
|
4724
4731
|
children: [
|
|
4725
|
-
l && (r.animationsDisabled ? /* @__PURE__ */ E(
|
|
4732
|
+
l && (r.animationsDisabled ? /* @__PURE__ */ E(on, { children: /* @__PURE__ */ E(Z, { prompt: r.teacherInstructions }) }) : /* @__PURE__ */ E(sn, {
|
|
4726
4733
|
labels: {
|
|
4727
4734
|
hidden: "Show Teacher Instructions",
|
|
4728
4735
|
visible: "Hide Teacher Instructions"
|
|
4729
4736
|
},
|
|
4730
|
-
children: /* @__PURE__ */ E(
|
|
4737
|
+
children: /* @__PURE__ */ E(Z, { prompt: r.teacherInstructions })
|
|
4731
4738
|
})),
|
|
4732
|
-
/* @__PURE__ */ E(
|
|
4733
|
-
!r.alwaysShowCorrect && /* @__PURE__ */ E(
|
|
4739
|
+
/* @__PURE__ */ E(on, { children: /* @__PURE__ */ E(Z, { prompt: r.prompt }) }),
|
|
4740
|
+
!r.alwaysShowCorrect && /* @__PURE__ */ E(Gt, {
|
|
4734
4741
|
show: r.disabled && r.incorrect,
|
|
4735
4742
|
toggled: n,
|
|
4736
4743
|
onToggle: this.toggleShowCorrect,
|
|
4737
4744
|
language: r.language
|
|
4738
4745
|
}),
|
|
4739
|
-
/* @__PURE__ */ E(
|
|
4746
|
+
/* @__PURE__ */ E(an, {
|
|
4740
4747
|
disabled: r.disabled,
|
|
4741
4748
|
text: r.text,
|
|
4742
4749
|
tokens: r.tokens,
|
|
4743
4750
|
selectedTokens: s,
|
|
4744
4751
|
onChange: (e) => {
|
|
4745
|
-
|
|
4752
|
+
let n = e.map((e) => r.tokens.find(({ start: t, end: n }) => e.start === t && e.end === n) || e);
|
|
4753
|
+
t(n);
|
|
4746
4754
|
},
|
|
4747
4755
|
highlightChoices: r.highlightChoices,
|
|
4748
4756
|
maxNoOfSelections: r.maxSelections,
|
|
4749
4757
|
animationsDisabled: r.animationsDisabled
|
|
4750
4758
|
}),
|
|
4751
|
-
o === "evaluate" && /* @__PURE__ */ E(
|
|
4759
|
+
o === "evaluate" && /* @__PURE__ */ E(Ot, {
|
|
4752
4760
|
language: r.language,
|
|
4753
4761
|
showOnlyCorrect: n
|
|
4754
4762
|
}),
|
|
4755
|
-
c && (r.animationsDisabled ? /* @__PURE__ */ E(
|
|
4763
|
+
c && (r.animationsDisabled ? /* @__PURE__ */ E(on, { children: /* @__PURE__ */ E(Z, { prompt: r.rationale }) }) : /* @__PURE__ */ E(sn, {
|
|
4756
4764
|
labels: {
|
|
4757
4765
|
hidden: "Show Rationale",
|
|
4758
4766
|
visible: "Hide Rationale"
|
|
4759
4767
|
},
|
|
4760
|
-
children: /* @__PURE__ */ E(
|
|
4768
|
+
children: /* @__PURE__ */ E(Z, { prompt: r.rationale })
|
|
4761
4769
|
})),
|
|
4762
|
-
r.correctness && r.feedback && !n && /* @__PURE__ */ E(
|
|
4770
|
+
r.correctness && r.feedback && !n && /* @__PURE__ */ E($t, {
|
|
4763
4771
|
correctness: r.correctness,
|
|
4764
4772
|
feedback: r.feedback
|
|
4765
4773
|
})
|
|
4766
4774
|
]
|
|
4767
4775
|
});
|
|
4768
4776
|
}
|
|
4769
|
-
},
|
|
4770
|
-
static propTypes =
|
|
4777
|
+
}, un = class extends C.Component {
|
|
4778
|
+
static propTypes = cn;
|
|
4771
4779
|
constructor(e) {
|
|
4772
4780
|
super(e), this.state = {
|
|
4773
4781
|
model: e.model,
|
|
@@ -4791,7 +4799,7 @@ var Z = Jt(d, "UiLayout") || Jt($t.UiLayout, "UiLayout"), Yt = Jt(u, "PreviewPro
|
|
|
4791
4799
|
};
|
|
4792
4800
|
render() {
|
|
4793
4801
|
let { model: e, session: t } = this.state;
|
|
4794
|
-
return /* @__PURE__ */ E(
|
|
4802
|
+
return /* @__PURE__ */ E(ln, {
|
|
4795
4803
|
model: e,
|
|
4796
4804
|
session: t,
|
|
4797
4805
|
onSelectionChange: this.change
|
|
@@ -4799,6 +4807,6 @@ var Z = Jt(d, "UiLayout") || Jt($t.UiLayout, "UiLayout"), Yt = Jt(u, "PreviewPro
|
|
|
4799
4807
|
}
|
|
4800
4808
|
};
|
|
4801
4809
|
//#endregion
|
|
4802
|
-
export {
|
|
4810
|
+
export { Xt as n, un as t };
|
|
4803
4811
|
|
|
4804
|
-
//# sourceMappingURL=main-
|
|
4812
|
+
//# sourceMappingURL=main-DFPODQm1.js.map
|