@pie-element/select-text 13.1.2-next.5 → 13.1.3
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/CHANGELOG.json +1422 -0
- package/CHANGELOG.md +2294 -0
- package/LICENSE.md +5 -0
- package/README.md +5 -0
- package/configure/CHANGELOG.json +1032 -0
- package/configure/CHANGELOG.md +2029 -0
- package/configure/lib/defaultConfiguration.js +177 -0
- package/configure/lib/defaultConfiguration.js.map +1 -0
- package/configure/lib/design.js +406 -0
- package/configure/lib/design.js.map +1 -0
- package/configure/lib/index.js +128 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/utils.js +92 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +25 -0
- package/controller/CHANGELOG.json +442 -0
- package/controller/CHANGELOG.md +1468 -0
- package/controller/lib/defaults.js +25 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +258 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/package.json +16 -0
- package/docs/config-schema.json +2135 -0
- package/docs/config-schema.json.md +1579 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +823 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +24 -0
- package/docs/pie-schema.json +1248 -0
- package/docs/pie-schema.json.md +711 -0
- package/lib/index.js +103 -0
- package/lib/index.js.map +1 -0
- package/lib/main.js +191 -0
- package/lib/main.js.map +1 -0
- package/lib/print.js +87 -0
- package/lib/print.js.map +1 -0
- package/lib/utils.js +80 -0
- package/lib/utils.js.map +1 -0
- package/package.json +21 -90
- package/configure.js +0 -2
- package/controller.js +0 -1
- package/dist/author/defaultConfiguration.d.ts +0 -179
- package/dist/author/defaultConfiguration.js +0 -141
- package/dist/author/design.d.ts +0 -38
- package/dist/author/design.js +0 -263
- package/dist/author/index.d.ts +0 -27
- package/dist/author/index.js +0 -74
- package/dist/author/utils.d.ts +0 -10
- package/dist/author/utils.js +0 -50
- package/dist/browser/Check-hYJSLKBP.js +0 -9261
- package/dist/browser/Check-hYJSLKBP.js.map +0 -1
- package/dist/browser/author/index.js +0 -47032
- package/dist/browser/author/index.js.map +0 -1
- package/dist/browser/controller/index.js +0 -194
- package/dist/browser/controller/index.js.map +0 -1
- package/dist/browser/delivery/index.js +0 -89
- package/dist/browser/delivery/index.js.map +0 -1
- package/dist/browser/dist-NxgaOEGc.js +0 -323
- package/dist/browser/dist-NxgaOEGc.js.map +0 -1
- package/dist/browser/main-nEorTqht.js +0 -4804
- package/dist/browser/main-nEorTqht.js.map +0 -1
- package/dist/browser/print/index.js +0 -41
- package/dist/browser/print/index.js.map +0 -1
- package/dist/browser/select-text.css +0 -2
- package/dist/controller/defaults.d.ts +0 -27
- package/dist/controller/defaults.js +0 -21
- package/dist/controller/index.d.ts +0 -25
- package/dist/controller/index.js +0 -121
- package/dist/delivery/index.d.ts +0 -19
- package/dist/delivery/index.js +0 -60
- package/dist/delivery/main.d.ts +0 -34
- package/dist/delivery/main.js +0 -136
- package/dist/delivery/utils.d.ts +0 -10
- package/dist/delivery/utils.js +0 -47
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -167
- package/dist/index.js +0 -2
- package/dist/print/index.d.ts +0 -15
- package/dist/print/index.js +0 -41
- package/dist/runtime-support.d.ts +0 -12
- package/dist/runtime-support.js +0 -12
|
@@ -1,4804 +0,0 @@
|
|
|
1
|
-
import { _ as e, b as t, g as n, s as r, t as i, y as a } from "./dist-NxgaOEGc.js";
|
|
2
|
-
import { F as o, I as s, S as c, Z as l, _ as u, b as d, g as f, h as p, l as m, m as h, n as g, o as _, pt as v, r as y, t as b, vt as x, zt as S } from "./Check-hYJSLKBP.js";
|
|
3
|
-
import C, { useRef as w } from "react";
|
|
4
|
-
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
6
|
-
var O = /* @__PURE__ */ t(S(), 1), ee = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ D("svg", {
|
|
7
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
8
|
-
version: "1.1",
|
|
9
|
-
viewBox: "-283 359 34 35",
|
|
10
|
-
style: { enableBackground: "new -283 359 34 35" },
|
|
11
|
-
children: [
|
|
12
|
-
/* @__PURE__ */ E("circle", {
|
|
13
|
-
cx: "-266",
|
|
14
|
-
cy: "375.9",
|
|
15
|
-
r: "14",
|
|
16
|
-
fill: e
|
|
17
|
-
}),
|
|
18
|
-
/* @__PURE__ */ E("path", {
|
|
19
|
-
d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z",
|
|
20
|
-
fill: e
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ E("polygon", {
|
|
23
|
-
points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6",
|
|
24
|
-
fill: t
|
|
25
|
-
})
|
|
26
|
-
]
|
|
27
|
-
});
|
|
28
|
-
ee.propTypes = {
|
|
29
|
-
bgFill: O.default.string.isRequired,
|
|
30
|
-
fgFill: O.default.string.isRequired
|
|
31
|
-
};
|
|
32
|
-
var k = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ D("svg", {
|
|
33
|
-
preserveAspectRatio: "xMinYMin meet",
|
|
34
|
-
version: "1.1",
|
|
35
|
-
viewBox: "-129.5 127 34 35",
|
|
36
|
-
style: { enableBackground: "new -129.5 127 34 35" },
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ E("path", {
|
|
39
|
-
style: {
|
|
40
|
-
fill: "#D0CAC5",
|
|
41
|
-
stroke: "#E6E3E0",
|
|
42
|
-
strokeWidth: .75,
|
|
43
|
-
strokeMiterlimit: 10
|
|
44
|
-
},
|
|
45
|
-
d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\n C-97.4,153.5-104.3,160.4-112.9,160.4z"
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ E("path", {
|
|
48
|
-
style: {
|
|
49
|
-
fill: "#B3ABA4",
|
|
50
|
-
stroke: "#CDC7C2",
|
|
51
|
-
strokeWidth: .5,
|
|
52
|
-
strokeMiterlimit: 10
|
|
53
|
-
},
|
|
54
|
-
d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ E("circle", {
|
|
57
|
-
cx: "-114.2",
|
|
58
|
-
cy: "143.5",
|
|
59
|
-
r: "14",
|
|
60
|
-
fill: e
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ E("path", {
|
|
63
|
-
d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z",
|
|
64
|
-
fill: n
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ E("polygon", {
|
|
67
|
-
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
|
|
68
|
-
fill: t
|
|
69
|
-
})
|
|
70
|
-
]
|
|
71
|
-
});
|
|
72
|
-
k.propTypes = {
|
|
73
|
-
bgFill: O.default.string.isRequired,
|
|
74
|
-
fgFill: O.default.string.isRequired,
|
|
75
|
-
borderFill: O.default.string.isRequired
|
|
76
|
-
};
|
|
77
|
-
var te = x("div")(({ size: e }) => ({
|
|
78
|
-
width: e || "25px",
|
|
79
|
-
height: e || "25px"
|
|
80
|
-
})), ne = ({ open: e, size: t }) => /* @__PURE__ */ E(te, {
|
|
81
|
-
size: t,
|
|
82
|
-
children: e ? /* @__PURE__ */ E(ee, {
|
|
83
|
-
bgFill: "#bce2ff",
|
|
84
|
-
fgFill: "#1a9cff"
|
|
85
|
-
}) : /* @__PURE__ */ E(k, {
|
|
86
|
-
bgFill: "white",
|
|
87
|
-
fgFill: "#1a9cff",
|
|
88
|
-
borderFill: "#bce2ff"
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
ne.propTypes = {
|
|
92
|
-
open: O.default.bool,
|
|
93
|
-
size: O.default.string
|
|
94
|
-
}, ne.defaultProps = { open: !1 };
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Close.js
|
|
97
|
-
var re = v(/*#__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"), ie = 3.2, ae = 3.4, oe = 2, A = x("span")(({ theme: e }) => ({
|
|
98
|
-
cursor: "pointer",
|
|
99
|
-
textIndent: 0,
|
|
100
|
-
"&.disabled": {
|
|
101
|
-
cursor: "inherit",
|
|
102
|
-
color: s.disabled()
|
|
103
|
-
},
|
|
104
|
-
"&.disabledBlack": {
|
|
105
|
-
cursor: "inherit",
|
|
106
|
-
pointerEvents: "none"
|
|
107
|
-
},
|
|
108
|
-
"&.disabledAndSelected": { backgroundColor: s.blueGrey100() },
|
|
109
|
-
[`@media (min-width: ${e.breakpoints.values.md}px)`]: { "&.selectable:hover": {
|
|
110
|
-
backgroundColor: s.blueGrey300(),
|
|
111
|
-
color: e.palette.common.black,
|
|
112
|
-
"& > *": { backgroundColor: s.blueGrey300() }
|
|
113
|
-
} },
|
|
114
|
-
"&.selected": {
|
|
115
|
-
backgroundColor: s.blueGrey100(),
|
|
116
|
-
color: e.palette.common.black,
|
|
117
|
-
lineHeight: `${parseFloat(e.spacing(1)) * ie}px`,
|
|
118
|
-
border: `solid 2px ${s.blueGrey900()}`,
|
|
119
|
-
borderRadius: "4px",
|
|
120
|
-
"& > *": { backgroundColor: s.blueGrey100() }
|
|
121
|
-
},
|
|
122
|
-
"&.highlight": {
|
|
123
|
-
border: `dashed 2px ${s.blueGrey600()}`,
|
|
124
|
-
borderRadius: "4px",
|
|
125
|
-
lineHeight: `${parseFloat(e.spacing(1)) * ie}px`
|
|
126
|
-
},
|
|
127
|
-
"&.print": {
|
|
128
|
-
border: `dashed 2px ${s.blueGrey600()}`,
|
|
129
|
-
borderRadius: "4px",
|
|
130
|
-
lineHeight: `${parseFloat(e.spacing(1)) * ie}px`,
|
|
131
|
-
color: s.text()
|
|
132
|
-
},
|
|
133
|
-
"&.custom": { display: "initial" }
|
|
134
|
-
})), se = x("span")(({ theme: e }) => ({
|
|
135
|
-
position: "relative",
|
|
136
|
-
borderRadius: "4px",
|
|
137
|
-
color: e.palette.common.black,
|
|
138
|
-
lineHeight: `${parseFloat(e.spacing(1)) * ae + oe}px`,
|
|
139
|
-
padding: `${oe}px`
|
|
140
|
-
})), ce = x(se)(() => ({ border: `${s.correctTertiary()} solid 2px` })), le = x(se)(() => ({ border: `${s.incorrectWithIcon()} solid 2px` })), ue = x(se)(() => ({ border: `${s.incorrectWithIcon()} dashed 2px` })), de = {
|
|
141
|
-
color: s.white(),
|
|
142
|
-
position: "absolute",
|
|
143
|
-
top: "-8px",
|
|
144
|
-
left: "-8px",
|
|
145
|
-
borderRadius: "50%",
|
|
146
|
-
fontSize: "12px",
|
|
147
|
-
padding: "2px",
|
|
148
|
-
display: "inline-block"
|
|
149
|
-
}, fe = x(b)(() => ({
|
|
150
|
-
...de,
|
|
151
|
-
backgroundColor: s.correctTertiary()
|
|
152
|
-
})), pe = x(re)(() => ({
|
|
153
|
-
...de,
|
|
154
|
-
backgroundColor: s.incorrectWithIcon()
|
|
155
|
-
})), me = ({ useWrapper: e, children: t, Container: n, Icon: r }) => e ? /* @__PURE__ */ D(n, { children: [t, r ? /* @__PURE__ */ E(r, {}) : null] }) : t;
|
|
156
|
-
me.propTypes = {
|
|
157
|
-
useWrapper: O.default.bool,
|
|
158
|
-
Container: O.default.elementType,
|
|
159
|
-
Icon: O.default.elementType,
|
|
160
|
-
children: O.default.node
|
|
161
|
-
};
|
|
162
|
-
var he = {
|
|
163
|
-
text: O.default.string,
|
|
164
|
-
selectable: O.default.bool
|
|
165
|
-
}, j = class e extends C.Component {
|
|
166
|
-
static rootClassName = "tokenRootClass";
|
|
167
|
-
static propTypes = {
|
|
168
|
-
...he,
|
|
169
|
-
text: O.default.string.isRequired,
|
|
170
|
-
className: O.default.string,
|
|
171
|
-
disabled: O.default.bool,
|
|
172
|
-
highlight: O.default.bool,
|
|
173
|
-
correct: O.default.bool
|
|
174
|
-
};
|
|
175
|
-
static defaultProps = {
|
|
176
|
-
selectable: !1,
|
|
177
|
-
text: ""
|
|
178
|
-
};
|
|
179
|
-
getClassAndIconConfig = () => {
|
|
180
|
-
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
|
-
if (o === void 0 && n && i) return {
|
|
182
|
-
className: y(u, "selected", "disabledBlack", r),
|
|
183
|
-
Component: A
|
|
184
|
-
};
|
|
185
|
-
if (o !== void 0) {
|
|
186
|
-
let e = o === !0;
|
|
187
|
-
return {
|
|
188
|
-
className: y(u, "custom", r),
|
|
189
|
-
Component: A,
|
|
190
|
-
Container: e ? ce : le,
|
|
191
|
-
Icon: e ? fe : pe
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
return c ? {
|
|
195
|
-
className: y(u, "custom", "missing", r),
|
|
196
|
-
Component: A,
|
|
197
|
-
Container: ue,
|
|
198
|
-
Icon: pe
|
|
199
|
-
} : {
|
|
200
|
-
className: y(u, i && "disabled", t && !i && !l && "selectable", n && !i && "selected", n && i && "disabledAndSelected", a && t && !i && !n && "highlight", s && "print", r),
|
|
201
|
-
Component: A,
|
|
202
|
-
Container: void 0,
|
|
203
|
-
Icon: void 0
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
render() {
|
|
207
|
-
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(me, {
|
|
209
|
-
useWrapper: n !== void 0 || r,
|
|
210
|
-
Container: o,
|
|
211
|
-
Icon: s,
|
|
212
|
-
children: /* @__PURE__ */ E(a || A, {
|
|
213
|
-
className: i,
|
|
214
|
-
dangerouslySetInnerHTML: { __html: (e || "").replace(/\n/g, "<br>") },
|
|
215
|
-
"data-indexkey": t
|
|
216
|
-
})
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}, M = /* @__PURE__ */ e(((e) => {
|
|
220
|
-
var t = a("react");
|
|
221
|
-
function n(e) {
|
|
222
|
-
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
223
|
-
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
224
|
-
}
|
|
225
|
-
var r = Object.prototype.hasOwnProperty, i = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, o = {}, s = {};
|
|
226
|
-
function c(e) {
|
|
227
|
-
return r.call(s, e) ? !0 : r.call(o, e) ? !1 : i.test(e) ? s[e] = !0 : (o[e] = !0, !1);
|
|
228
|
-
}
|
|
229
|
-
function l(e, t, n, r, i, a, o) {
|
|
230
|
-
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString = o;
|
|
231
|
-
}
|
|
232
|
-
var u = {};
|
|
233
|
-
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
234
|
-
u[e] = new l(e, 0, !1, e, null, !1, !1);
|
|
235
|
-
}), [
|
|
236
|
-
["acceptCharset", "accept-charset"],
|
|
237
|
-
["className", "class"],
|
|
238
|
-
["htmlFor", "for"],
|
|
239
|
-
["httpEquiv", "http-equiv"]
|
|
240
|
-
].forEach(function(e) {
|
|
241
|
-
var t = e[0];
|
|
242
|
-
u[t] = new l(t, 1, !1, e[1], null, !1, !1);
|
|
243
|
-
}), [
|
|
244
|
-
"contentEditable",
|
|
245
|
-
"draggable",
|
|
246
|
-
"spellCheck",
|
|
247
|
-
"value"
|
|
248
|
-
].forEach(function(e) {
|
|
249
|
-
u[e] = new l(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
250
|
-
}), [
|
|
251
|
-
"autoReverse",
|
|
252
|
-
"externalResourcesRequired",
|
|
253
|
-
"focusable",
|
|
254
|
-
"preserveAlpha"
|
|
255
|
-
].forEach(function(e) {
|
|
256
|
-
u[e] = new l(e, 2, !1, e, null, !1, !1);
|
|
257
|
-
}), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
258
|
-
u[e] = new l(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
259
|
-
}), [
|
|
260
|
-
"checked",
|
|
261
|
-
"multiple",
|
|
262
|
-
"muted",
|
|
263
|
-
"selected"
|
|
264
|
-
].forEach(function(e) {
|
|
265
|
-
u[e] = new l(e, 3, !0, e, null, !1, !1);
|
|
266
|
-
}), ["capture", "download"].forEach(function(e) {
|
|
267
|
-
u[e] = new l(e, 4, !1, e, null, !1, !1);
|
|
268
|
-
}), [
|
|
269
|
-
"cols",
|
|
270
|
-
"rows",
|
|
271
|
-
"size",
|
|
272
|
-
"span"
|
|
273
|
-
].forEach(function(e) {
|
|
274
|
-
u[e] = new l(e, 6, !1, e, null, !1, !1);
|
|
275
|
-
}), ["rowSpan", "start"].forEach(function(e) {
|
|
276
|
-
u[e] = new l(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
277
|
-
});
|
|
278
|
-
var d = /[\-:]([a-z])/g;
|
|
279
|
-
function f(e) {
|
|
280
|
-
return e[1].toUpperCase();
|
|
281
|
-
}
|
|
282
|
-
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e) {
|
|
283
|
-
var t = e.replace(d, f);
|
|
284
|
-
u[t] = new l(t, 1, !1, e, null, !1, !1);
|
|
285
|
-
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
286
|
-
var t = e.replace(d, f);
|
|
287
|
-
u[t] = new l(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
288
|
-
}), [
|
|
289
|
-
"xml:base",
|
|
290
|
-
"xml:lang",
|
|
291
|
-
"xml:space"
|
|
292
|
-
].forEach(function(e) {
|
|
293
|
-
var t = e.replace(d, f);
|
|
294
|
-
u[t] = new l(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
295
|
-
}), ["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
296
|
-
u[e] = new l(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
297
|
-
}), u.xlinkHref = new l("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [
|
|
298
|
-
"src",
|
|
299
|
-
"href",
|
|
300
|
-
"action",
|
|
301
|
-
"formAction"
|
|
302
|
-
].forEach(function(e) {
|
|
303
|
-
u[e] = new l(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
304
|
-
});
|
|
305
|
-
var p = {
|
|
306
|
-
animationIterationCount: !0,
|
|
307
|
-
aspectRatio: !0,
|
|
308
|
-
borderImageOutset: !0,
|
|
309
|
-
borderImageSlice: !0,
|
|
310
|
-
borderImageWidth: !0,
|
|
311
|
-
boxFlex: !0,
|
|
312
|
-
boxFlexGroup: !0,
|
|
313
|
-
boxOrdinalGroup: !0,
|
|
314
|
-
columnCount: !0,
|
|
315
|
-
columns: !0,
|
|
316
|
-
flex: !0,
|
|
317
|
-
flexGrow: !0,
|
|
318
|
-
flexPositive: !0,
|
|
319
|
-
flexShrink: !0,
|
|
320
|
-
flexNegative: !0,
|
|
321
|
-
flexOrder: !0,
|
|
322
|
-
gridArea: !0,
|
|
323
|
-
gridRow: !0,
|
|
324
|
-
gridRowEnd: !0,
|
|
325
|
-
gridRowSpan: !0,
|
|
326
|
-
gridRowStart: !0,
|
|
327
|
-
gridColumn: !0,
|
|
328
|
-
gridColumnEnd: !0,
|
|
329
|
-
gridColumnSpan: !0,
|
|
330
|
-
gridColumnStart: !0,
|
|
331
|
-
fontWeight: !0,
|
|
332
|
-
lineClamp: !0,
|
|
333
|
-
lineHeight: !0,
|
|
334
|
-
opacity: !0,
|
|
335
|
-
order: !0,
|
|
336
|
-
orphans: !0,
|
|
337
|
-
tabSize: !0,
|
|
338
|
-
widows: !0,
|
|
339
|
-
zIndex: !0,
|
|
340
|
-
zoom: !0,
|
|
341
|
-
fillOpacity: !0,
|
|
342
|
-
floodOpacity: !0,
|
|
343
|
-
stopOpacity: !0,
|
|
344
|
-
strokeDasharray: !0,
|
|
345
|
-
strokeDashoffset: !0,
|
|
346
|
-
strokeMiterlimit: !0,
|
|
347
|
-
strokeOpacity: !0,
|
|
348
|
-
strokeWidth: !0
|
|
349
|
-
}, m = [
|
|
350
|
-
"Webkit",
|
|
351
|
-
"ms",
|
|
352
|
-
"Moz",
|
|
353
|
-
"O"
|
|
354
|
-
];
|
|
355
|
-
Object.keys(p).forEach(function(e) {
|
|
356
|
-
m.forEach(function(t) {
|
|
357
|
-
t = t + e.charAt(0).toUpperCase() + e.substring(1), p[t] = p[e];
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
var h = /["'&<>]/;
|
|
361
|
-
function g(e) {
|
|
362
|
-
if (typeof e == "boolean" || typeof e == "number") return "" + e;
|
|
363
|
-
e = "" + e;
|
|
364
|
-
var t = h.exec(e);
|
|
365
|
-
if (t) {
|
|
366
|
-
var n = "", r, i = 0;
|
|
367
|
-
for (r = t.index; r < e.length; r++) {
|
|
368
|
-
switch (e.charCodeAt(r)) {
|
|
369
|
-
case 34:
|
|
370
|
-
t = """;
|
|
371
|
-
break;
|
|
372
|
-
case 38:
|
|
373
|
-
t = "&";
|
|
374
|
-
break;
|
|
375
|
-
case 39:
|
|
376
|
-
t = "'";
|
|
377
|
-
break;
|
|
378
|
-
case 60:
|
|
379
|
-
t = "<";
|
|
380
|
-
break;
|
|
381
|
-
case 62:
|
|
382
|
-
t = ">";
|
|
383
|
-
break;
|
|
384
|
-
default: continue;
|
|
385
|
-
}
|
|
386
|
-
i !== r && (n += e.substring(i, r)), i = r + 1, n += t;
|
|
387
|
-
}
|
|
388
|
-
e = i === r ? n : n + e.substring(i, r);
|
|
389
|
-
}
|
|
390
|
-
return e;
|
|
391
|
-
}
|
|
392
|
-
var _ = /([A-Z])/g, v = /^ms-/, y = Array.isArray;
|
|
393
|
-
function b(e, t) {
|
|
394
|
-
return {
|
|
395
|
-
insertionMode: e,
|
|
396
|
-
selectedValue: t
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
function x(e, t, n) {
|
|
400
|
-
switch (t) {
|
|
401
|
-
case "select": return b(1, n.value == null ? n.defaultValue : n.value);
|
|
402
|
-
case "svg": return b(2, null);
|
|
403
|
-
case "math": return b(3, null);
|
|
404
|
-
case "foreignObject": return b(1, null);
|
|
405
|
-
case "table": return b(4, null);
|
|
406
|
-
case "thead":
|
|
407
|
-
case "tbody":
|
|
408
|
-
case "tfoot": return b(5, null);
|
|
409
|
-
case "colgroup": return b(7, null);
|
|
410
|
-
case "tr": return b(6, null);
|
|
411
|
-
}
|
|
412
|
-
return 4 <= e.insertionMode || e.insertionMode === 0 ? b(1, null) : e;
|
|
413
|
-
}
|
|
414
|
-
var S = /* @__PURE__ */ new Map();
|
|
415
|
-
function C(e, t, i) {
|
|
416
|
-
if (typeof i != "object") throw Error(n(62));
|
|
417
|
-
for (var a in t = !0, i) if (r.call(i, a)) {
|
|
418
|
-
var o = i[a];
|
|
419
|
-
if (o != null && typeof o != "boolean" && o !== "") {
|
|
420
|
-
if (a.indexOf("--") === 0) {
|
|
421
|
-
var s = g(a);
|
|
422
|
-
o = g(("" + o).trim());
|
|
423
|
-
} else {
|
|
424
|
-
s = a;
|
|
425
|
-
var c = S.get(s);
|
|
426
|
-
c === void 0 ? (c = g(s.replace(_, "-$1").toLowerCase().replace(v, "-ms-")), S.set(s, c), s = c) : s = c, o = typeof o == "number" ? o === 0 || r.call(p, a) ? "" + o : o + "px" : g(("" + o).trim());
|
|
427
|
-
}
|
|
428
|
-
t ? (t = !1, e.push(" style=\"", s, ":", o)) : e.push(";", s, ":", o);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
t || e.push("\"");
|
|
432
|
-
}
|
|
433
|
-
function w(e, t, n, r) {
|
|
434
|
-
switch (n) {
|
|
435
|
-
case "style":
|
|
436
|
-
C(e, t, r);
|
|
437
|
-
return;
|
|
438
|
-
case "defaultValue":
|
|
439
|
-
case "defaultChecked":
|
|
440
|
-
case "innerHTML":
|
|
441
|
-
case "suppressContentEditableWarning":
|
|
442
|
-
case "suppressHydrationWarning": return;
|
|
443
|
-
}
|
|
444
|
-
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
445
|
-
if (t = u.hasOwnProperty(n) ? u[n] : null, t !== null) {
|
|
446
|
-
switch (typeof r) {
|
|
447
|
-
case "function":
|
|
448
|
-
case "symbol": return;
|
|
449
|
-
case "boolean": if (!t.acceptsBooleans) return;
|
|
450
|
-
}
|
|
451
|
-
switch (n = t.attributeName, t.type) {
|
|
452
|
-
case 3:
|
|
453
|
-
r && e.push(" ", n, "=\"\"");
|
|
454
|
-
break;
|
|
455
|
-
case 4:
|
|
456
|
-
!0 === r ? e.push(" ", n, "=\"\"") : !1 !== r && e.push(" ", n, "=\"", g(r), "\"");
|
|
457
|
-
break;
|
|
458
|
-
case 5:
|
|
459
|
-
isNaN(r) || e.push(" ", n, "=\"", g(r), "\"");
|
|
460
|
-
break;
|
|
461
|
-
case 6:
|
|
462
|
-
!isNaN(r) && 1 <= r && e.push(" ", n, "=\"", g(r), "\"");
|
|
463
|
-
break;
|
|
464
|
-
default: t.sanitizeURL && (r = "" + r), e.push(" ", n, "=\"", g(r), "\"");
|
|
465
|
-
}
|
|
466
|
-
} else if (c(n)) {
|
|
467
|
-
switch (typeof r) {
|
|
468
|
-
case "function":
|
|
469
|
-
case "symbol": return;
|
|
470
|
-
case "boolean": if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-") return;
|
|
471
|
-
}
|
|
472
|
-
e.push(" ", n, "=\"", g(r), "\"");
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
function T(e, t, r) {
|
|
477
|
-
if (t != null) {
|
|
478
|
-
if (r != null) throw Error(n(60));
|
|
479
|
-
if (typeof t != "object" || !("__html" in t)) throw Error(n(61));
|
|
480
|
-
t = t.__html, t != null && e.push("" + t);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
function E(e) {
|
|
484
|
-
var n = "";
|
|
485
|
-
return t.Children.forEach(e, function(e) {
|
|
486
|
-
e != null && (n += e);
|
|
487
|
-
}), n;
|
|
488
|
-
}
|
|
489
|
-
function D(e, t, n, i) {
|
|
490
|
-
e.push(k(n));
|
|
491
|
-
var a = n = null, o;
|
|
492
|
-
for (o in t) if (r.call(t, o)) {
|
|
493
|
-
var s = t[o];
|
|
494
|
-
if (s != null) switch (o) {
|
|
495
|
-
case "children":
|
|
496
|
-
n = s;
|
|
497
|
-
break;
|
|
498
|
-
case "dangerouslySetInnerHTML":
|
|
499
|
-
a = s;
|
|
500
|
-
break;
|
|
501
|
-
default: w(e, i, o, s);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
return e.push(">"), T(e, a, n), typeof n == "string" ? (e.push(g(n)), null) : n;
|
|
505
|
-
}
|
|
506
|
-
var O = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, ee = /* @__PURE__ */ new Map();
|
|
507
|
-
function k(e) {
|
|
508
|
-
var t = ee.get(e);
|
|
509
|
-
if (t === void 0) {
|
|
510
|
-
if (!O.test(e)) throw Error(n(65, e));
|
|
511
|
-
t = "<" + e, ee.set(e, t);
|
|
512
|
-
}
|
|
513
|
-
return t;
|
|
514
|
-
}
|
|
515
|
-
function te(e, t, i, a, o) {
|
|
516
|
-
switch (t) {
|
|
517
|
-
case "select":
|
|
518
|
-
e.push(k("select"));
|
|
519
|
-
var s = null, l = null;
|
|
520
|
-
for (p in i) if (r.call(i, p)) {
|
|
521
|
-
var u = i[p];
|
|
522
|
-
if (u != null) switch (p) {
|
|
523
|
-
case "children":
|
|
524
|
-
s = u;
|
|
525
|
-
break;
|
|
526
|
-
case "dangerouslySetInnerHTML":
|
|
527
|
-
l = u;
|
|
528
|
-
break;
|
|
529
|
-
case "defaultValue":
|
|
530
|
-
case "value": break;
|
|
531
|
-
default: w(e, a, p, u);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
return e.push(">"), T(e, l, s), s;
|
|
535
|
-
case "option":
|
|
536
|
-
l = o.selectedValue, e.push(k("option"));
|
|
537
|
-
var d = u = null, f = null, p = null;
|
|
538
|
-
for (s in i) if (r.call(i, s)) {
|
|
539
|
-
var m = i[s];
|
|
540
|
-
if (m != null) switch (s) {
|
|
541
|
-
case "children":
|
|
542
|
-
u = m;
|
|
543
|
-
break;
|
|
544
|
-
case "selected":
|
|
545
|
-
f = m;
|
|
546
|
-
break;
|
|
547
|
-
case "dangerouslySetInnerHTML":
|
|
548
|
-
p = m;
|
|
549
|
-
break;
|
|
550
|
-
case "value": d = m;
|
|
551
|
-
default: w(e, a, s, m);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
if (l != null) if (i = d === null ? E(u) : "" + d, y(l)) {
|
|
555
|
-
for (a = 0; a < l.length; a++) if ("" + l[a] === i) {
|
|
556
|
-
e.push(" selected=\"\"");
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
} else "" + l === i && e.push(" selected=\"\"");
|
|
560
|
-
else f && e.push(" selected=\"\"");
|
|
561
|
-
return e.push(">"), T(e, p, u), u;
|
|
562
|
-
case "textarea":
|
|
563
|
-
for (u in e.push(k("textarea")), p = l = s = null, i) if (r.call(i, u) && (d = i[u], d != null)) switch (u) {
|
|
564
|
-
case "children":
|
|
565
|
-
p = d;
|
|
566
|
-
break;
|
|
567
|
-
case "value":
|
|
568
|
-
s = d;
|
|
569
|
-
break;
|
|
570
|
-
case "defaultValue":
|
|
571
|
-
l = d;
|
|
572
|
-
break;
|
|
573
|
-
case "dangerouslySetInnerHTML": throw Error(n(91));
|
|
574
|
-
default: w(e, a, u, d);
|
|
575
|
-
}
|
|
576
|
-
if (s === null && l !== null && (s = l), e.push(">"), p != null) {
|
|
577
|
-
if (s != null) throw Error(n(92));
|
|
578
|
-
if (y(p) && 1 < p.length) throw Error(n(93));
|
|
579
|
-
s = "" + p;
|
|
580
|
-
}
|
|
581
|
-
return typeof s == "string" && s[0] === "\n" && e.push("\n"), s !== null && e.push(g("" + s)), null;
|
|
582
|
-
case "input":
|
|
583
|
-
for (l in e.push(k("input")), d = p = u = s = null, i) if (r.call(i, l) && (f = i[l], f != null)) switch (l) {
|
|
584
|
-
case "children":
|
|
585
|
-
case "dangerouslySetInnerHTML": throw Error(n(399, "input"));
|
|
586
|
-
case "defaultChecked":
|
|
587
|
-
d = f;
|
|
588
|
-
break;
|
|
589
|
-
case "defaultValue":
|
|
590
|
-
u = f;
|
|
591
|
-
break;
|
|
592
|
-
case "checked":
|
|
593
|
-
p = f;
|
|
594
|
-
break;
|
|
595
|
-
case "value":
|
|
596
|
-
s = f;
|
|
597
|
-
break;
|
|
598
|
-
default: w(e, a, l, f);
|
|
599
|
-
}
|
|
600
|
-
return p === null ? d !== null && w(e, a, "checked", d) : w(e, a, "checked", p), s === null ? u !== null && w(e, a, "value", u) : w(e, a, "value", s), e.push("/>"), null;
|
|
601
|
-
case "menuitem":
|
|
602
|
-
for (var h in e.push(k("menuitem")), i) if (r.call(i, h) && (s = i[h], s != null)) switch (h) {
|
|
603
|
-
case "children":
|
|
604
|
-
case "dangerouslySetInnerHTML": throw Error(n(400));
|
|
605
|
-
default: w(e, a, h, s);
|
|
606
|
-
}
|
|
607
|
-
return e.push(">"), null;
|
|
608
|
-
case "title":
|
|
609
|
-
for (m in e.push(k("title")), s = null, i) if (r.call(i, m) && (l = i[m], l != null)) switch (m) {
|
|
610
|
-
case "children":
|
|
611
|
-
s = l;
|
|
612
|
-
break;
|
|
613
|
-
case "dangerouslySetInnerHTML": throw Error(n(434));
|
|
614
|
-
default: w(e, a, m, l);
|
|
615
|
-
}
|
|
616
|
-
return e.push(">"), s;
|
|
617
|
-
case "listing":
|
|
618
|
-
case "pre":
|
|
619
|
-
for (d in e.push(k(t)), l = s = null, i) if (r.call(i, d) && (u = i[d], u != null)) switch (d) {
|
|
620
|
-
case "children":
|
|
621
|
-
s = u;
|
|
622
|
-
break;
|
|
623
|
-
case "dangerouslySetInnerHTML":
|
|
624
|
-
l = u;
|
|
625
|
-
break;
|
|
626
|
-
default: w(e, a, d, u);
|
|
627
|
-
}
|
|
628
|
-
if (e.push(">"), l != null) {
|
|
629
|
-
if (s != null) throw Error(n(60));
|
|
630
|
-
if (typeof l != "object" || !("__html" in l)) throw Error(n(61));
|
|
631
|
-
i = l.__html, i != null && (typeof i == "string" && 0 < i.length && i[0] === "\n" ? e.push("\n", i) : e.push("" + i));
|
|
632
|
-
}
|
|
633
|
-
return typeof s == "string" && s[0] === "\n" && e.push("\n"), s;
|
|
634
|
-
case "area":
|
|
635
|
-
case "base":
|
|
636
|
-
case "br":
|
|
637
|
-
case "col":
|
|
638
|
-
case "embed":
|
|
639
|
-
case "hr":
|
|
640
|
-
case "img":
|
|
641
|
-
case "keygen":
|
|
642
|
-
case "link":
|
|
643
|
-
case "meta":
|
|
644
|
-
case "param":
|
|
645
|
-
case "source":
|
|
646
|
-
case "track":
|
|
647
|
-
case "wbr":
|
|
648
|
-
for (var _ in e.push(k(t)), i) if (r.call(i, _) && (s = i[_], s != null)) switch (_) {
|
|
649
|
-
case "children":
|
|
650
|
-
case "dangerouslySetInnerHTML": throw Error(n(399, t));
|
|
651
|
-
default: w(e, a, _, s);
|
|
652
|
-
}
|
|
653
|
-
return e.push("/>"), null;
|
|
654
|
-
case "annotation-xml":
|
|
655
|
-
case "color-profile":
|
|
656
|
-
case "font-face":
|
|
657
|
-
case "font-face-src":
|
|
658
|
-
case "font-face-uri":
|
|
659
|
-
case "font-face-format":
|
|
660
|
-
case "font-face-name":
|
|
661
|
-
case "missing-glyph": return D(e, i, t, a);
|
|
662
|
-
case "html": return o.insertionMode === 0 && e.push("<!DOCTYPE html>"), D(e, i, t, a);
|
|
663
|
-
default:
|
|
664
|
-
if (t.indexOf("-") === -1 && typeof i.is != "string") return D(e, i, t, a);
|
|
665
|
-
for (f in e.push(k(t)), l = s = null, i) if (r.call(i, f) && (u = i[f], u != null)) switch (f) {
|
|
666
|
-
case "children":
|
|
667
|
-
s = u;
|
|
668
|
-
break;
|
|
669
|
-
case "dangerouslySetInnerHTML":
|
|
670
|
-
l = u;
|
|
671
|
-
break;
|
|
672
|
-
case "style":
|
|
673
|
-
C(e, a, u);
|
|
674
|
-
break;
|
|
675
|
-
case "suppressContentEditableWarning":
|
|
676
|
-
case "suppressHydrationWarning": break;
|
|
677
|
-
default: c(f) && typeof u != "function" && typeof u != "symbol" && e.push(" ", f, "=\"", g(u), "\"");
|
|
678
|
-
}
|
|
679
|
-
return e.push(">"), T(e, l, s), s;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
function ne(e, t, r) {
|
|
683
|
-
if (e.push("<!--$?--><template id=\""), r === null) throw Error(n(395));
|
|
684
|
-
return e.push(r), e.push("\"></template>");
|
|
685
|
-
}
|
|
686
|
-
function re(e, t, r, i) {
|
|
687
|
-
switch (r.insertionMode) {
|
|
688
|
-
case 0:
|
|
689
|
-
case 1: return e.push("<div hidden id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
690
|
-
case 2: return e.push("<svg aria-hidden=\"true\" style=\"display:none\" id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
691
|
-
case 3: return e.push("<math aria-hidden=\"true\" style=\"display:none\" id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
692
|
-
case 4: return e.push("<table hidden id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
693
|
-
case 5: return e.push("<table hidden><tbody id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
694
|
-
case 6: return e.push("<table hidden><tr id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
695
|
-
case 7: return e.push("<table hidden><colgroup id=\""), e.push(t.segmentPrefix), t = i.toString(16), e.push(t), e.push("\">");
|
|
696
|
-
default: throw Error(n(397));
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
function ie(e, t) {
|
|
700
|
-
switch (t.insertionMode) {
|
|
701
|
-
case 0:
|
|
702
|
-
case 1: return e.push("</div>");
|
|
703
|
-
case 2: return e.push("</svg>");
|
|
704
|
-
case 3: return e.push("</math>");
|
|
705
|
-
case 4: return e.push("</table>");
|
|
706
|
-
case 5: return e.push("</tbody></table>");
|
|
707
|
-
case 6: return e.push("</tr></table>");
|
|
708
|
-
case 7: return e.push("</colgroup></table>");
|
|
709
|
-
default: throw Error(n(397));
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
var ae = /[<\u2028\u2029]/g;
|
|
713
|
-
function oe(e) {
|
|
714
|
-
return JSON.stringify(e).replace(ae, function(e) {
|
|
715
|
-
switch (e) {
|
|
716
|
-
case "<": return "\\u003c";
|
|
717
|
-
case "\u2028": return "\\u2028";
|
|
718
|
-
case "\u2029": return "\\u2029";
|
|
719
|
-
default: throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
function A(e, t) {
|
|
724
|
-
return t = t === void 0 ? "" : t, {
|
|
725
|
-
bootstrapChunks: [],
|
|
726
|
-
startInlineScript: "<script>",
|
|
727
|
-
placeholderPrefix: t + "P:",
|
|
728
|
-
segmentPrefix: t + "S:",
|
|
729
|
-
boundaryPrefix: t + "B:",
|
|
730
|
-
idPrefix: t,
|
|
731
|
-
nextSuspenseID: 0,
|
|
732
|
-
sentCompleteSegmentFunction: !1,
|
|
733
|
-
sentCompleteBoundaryFunction: !1,
|
|
734
|
-
sentClientRenderFunction: !1,
|
|
735
|
-
generateStaticMarkup: e
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
function se(e, t, n, r) {
|
|
739
|
-
return n.generateStaticMarkup ? (e.push(g(t)), !1) : (t === "" ? e = r : (r && e.push("<!-- -->"), e.push(g(t)), e = !0), e);
|
|
740
|
-
}
|
|
741
|
-
var ce = 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
|
-
function xe(e) {
|
|
743
|
-
if (e == null) return null;
|
|
744
|
-
if (typeof e == "function") return e.displayName || e.name || null;
|
|
745
|
-
if (typeof e == "string") return e;
|
|
746
|
-
switch (e) {
|
|
747
|
-
case de: return "Fragment";
|
|
748
|
-
case ue: return "Portal";
|
|
749
|
-
case pe: return "Profiler";
|
|
750
|
-
case fe: return "StrictMode";
|
|
751
|
-
case M: return "Suspense";
|
|
752
|
-
case N: return "SuspenseList";
|
|
753
|
-
}
|
|
754
|
-
if (typeof e == "object") switch (e.$$typeof) {
|
|
755
|
-
case he: return (e.displayName || "Context") + ".Consumer";
|
|
756
|
-
case me: return (e._context.displayName || "Context") + ".Provider";
|
|
757
|
-
case j:
|
|
758
|
-
var t = e.render;
|
|
759
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
760
|
-
case ge: return t = e.displayName || null, t === null ? xe(e.type) || "Memo" : t;
|
|
761
|
-
case P:
|
|
762
|
-
t = e._payload, e = e._init;
|
|
763
|
-
try {
|
|
764
|
-
return xe(e(t));
|
|
765
|
-
} catch {}
|
|
766
|
-
}
|
|
767
|
-
return null;
|
|
768
|
-
}
|
|
769
|
-
var Se = {};
|
|
770
|
-
function Ce(e, t) {
|
|
771
|
-
if (e = e.contextTypes, !e) return Se;
|
|
772
|
-
var n = {}, r;
|
|
773
|
-
for (r in e) n[r] = t[r];
|
|
774
|
-
return n;
|
|
775
|
-
}
|
|
776
|
-
var I = null;
|
|
777
|
-
function L(e, t) {
|
|
778
|
-
if (e !== t) {
|
|
779
|
-
e.context._currentValue2 = e.parentValue, e = e.parent;
|
|
780
|
-
var r = t.parent;
|
|
781
|
-
if (e === null) {
|
|
782
|
-
if (r !== null) throw Error(n(401));
|
|
783
|
-
} else {
|
|
784
|
-
if (r === null) throw Error(n(401));
|
|
785
|
-
L(e, r);
|
|
786
|
-
}
|
|
787
|
-
t.context._currentValue2 = t.value;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
function we(e) {
|
|
791
|
-
e.context._currentValue2 = e.parentValue, e = e.parent, e !== null && we(e);
|
|
792
|
-
}
|
|
793
|
-
function R(e) {
|
|
794
|
-
var t = e.parent;
|
|
795
|
-
t !== null && R(t), e.context._currentValue2 = e.value;
|
|
796
|
-
}
|
|
797
|
-
function Te(e, t) {
|
|
798
|
-
if (e.context._currentValue2 = e.parentValue, e = e.parent, e === null) throw Error(n(402));
|
|
799
|
-
e.depth === t.depth ? L(e, t) : Te(e, t);
|
|
800
|
-
}
|
|
801
|
-
function Ee(e, t) {
|
|
802
|
-
var r = t.parent;
|
|
803
|
-
if (r === null) throw Error(n(402));
|
|
804
|
-
e.depth === r.depth ? L(e, r) : Ee(e, r), t.context._currentValue2 = t.value;
|
|
805
|
-
}
|
|
806
|
-
function De(e) {
|
|
807
|
-
var t = I;
|
|
808
|
-
t !== e && (t === null ? R(e) : e === null ? we(t) : t.depth === e.depth ? L(t, e) : t.depth > e.depth ? Te(t, e) : Ee(t, e), I = e);
|
|
809
|
-
}
|
|
810
|
-
var Oe = {
|
|
811
|
-
isMounted: function() {
|
|
812
|
-
return !1;
|
|
813
|
-
},
|
|
814
|
-
enqueueSetState: function(e, t) {
|
|
815
|
-
e = e._reactInternals, e.queue !== null && e.queue.push(t);
|
|
816
|
-
},
|
|
817
|
-
enqueueReplaceState: function(e, t) {
|
|
818
|
-
e = e._reactInternals, e.replace = !0, e.queue = [t];
|
|
819
|
-
},
|
|
820
|
-
enqueueForceUpdate: function() {}
|
|
821
|
-
};
|
|
822
|
-
function ke(e, t, n, r) {
|
|
823
|
-
var i = e.state === void 0 ? null : e.state;
|
|
824
|
-
e.updater = Oe, e.props = n, e.state = i;
|
|
825
|
-
var a = {
|
|
826
|
-
queue: [],
|
|
827
|
-
replace: !1
|
|
828
|
-
};
|
|
829
|
-
e._reactInternals = a;
|
|
830
|
-
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 : ce({}, 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 && Oe.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
|
-
else {
|
|
833
|
-
for (a = o ? t[0] : e.state, i = !0, o = +!!o; o < t.length; o++) {
|
|
834
|
-
var s = t[o];
|
|
835
|
-
s = typeof s == "function" ? s.call(e, a, n, r) : s, s != null && (i ? (i = !1, a = ce({}, a, s)) : ce(a, s));
|
|
836
|
-
}
|
|
837
|
-
e.state = a;
|
|
838
|
-
}
|
|
839
|
-
else a.queue = null;
|
|
840
|
-
}
|
|
841
|
-
var Ae = {
|
|
842
|
-
id: 1,
|
|
843
|
-
overflow: ""
|
|
844
|
-
};
|
|
845
|
-
function z(e, t, n) {
|
|
846
|
-
var r = e.id;
|
|
847
|
-
e = e.overflow;
|
|
848
|
-
var i = 32 - je(r) - 1;
|
|
849
|
-
r &= ~(1 << i), n += 1;
|
|
850
|
-
var a = 32 - je(t) + i;
|
|
851
|
-
if (30 < a) {
|
|
852
|
-
var o = i - i % 5;
|
|
853
|
-
return a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, {
|
|
854
|
-
id: 1 << 32 - je(t) + i | n << i | r,
|
|
855
|
-
overflow: a + e
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
return {
|
|
859
|
-
id: 1 << a | n << i | r,
|
|
860
|
-
overflow: e
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
var je = Math.clz32 ? Math.clz32 : Pe, Me = Math.log, Ne = Math.LN2;
|
|
864
|
-
function Pe(e) {
|
|
865
|
-
return e >>>= 0, e === 0 ? 32 : 31 - (Me(e) / Ne | 0) | 0;
|
|
866
|
-
}
|
|
867
|
-
function Fe(e, t) {
|
|
868
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
869
|
-
}
|
|
870
|
-
var B = typeof Object.is == "function" ? Object.is : Fe, V = null, Ie = null, Le = null, H = null, Re = !1, ze = !1, U = 0, W = null, Be = 0;
|
|
871
|
-
function G() {
|
|
872
|
-
if (V === null) throw Error(n(321));
|
|
873
|
-
return V;
|
|
874
|
-
}
|
|
875
|
-
function Ve() {
|
|
876
|
-
if (0 < Be) throw Error(n(312));
|
|
877
|
-
return {
|
|
878
|
-
memoizedState: null,
|
|
879
|
-
queue: null,
|
|
880
|
-
next: null
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
function He() {
|
|
884
|
-
return H === null ? Le === null ? (Re = !1, Le = H = Ve()) : (Re = !0, H = Le) : H.next === null ? (Re = !1, H = H.next = Ve()) : (Re = !0, H = H.next), H;
|
|
885
|
-
}
|
|
886
|
-
function Ue() {
|
|
887
|
-
Ie = V = null, ze = !1, Le = null, Be = 0, H = W = null;
|
|
888
|
-
}
|
|
889
|
-
function We(e, t) {
|
|
890
|
-
return typeof t == "function" ? t(e) : t;
|
|
891
|
-
}
|
|
892
|
-
function Ge(e, t, n) {
|
|
893
|
-
if (V = G(), H = He(), Re) {
|
|
894
|
-
var r = H.queue;
|
|
895
|
-
if (t = r.dispatch, W !== null && (n = W.get(r), n !== void 0)) {
|
|
896
|
-
W.delete(r), r = H.memoizedState;
|
|
897
|
-
do
|
|
898
|
-
r = e(r, n.action), n = n.next;
|
|
899
|
-
while (n !== null);
|
|
900
|
-
return H.memoizedState = r, [r, t];
|
|
901
|
-
}
|
|
902
|
-
return [H.memoizedState, t];
|
|
903
|
-
}
|
|
904
|
-
return e = e === We ? typeof t == "function" ? t() : t : n === void 0 ? t : n(t), H.memoizedState = e, e = H.queue = {
|
|
905
|
-
last: null,
|
|
906
|
-
dispatch: null
|
|
907
|
-
}, e = e.dispatch = Ke.bind(null, V, e), [H.memoizedState, e];
|
|
908
|
-
}
|
|
909
|
-
function K(e, t) {
|
|
910
|
-
if (V = G(), H = He(), t = t === void 0 ? null : t, H !== null) {
|
|
911
|
-
var n = H.memoizedState;
|
|
912
|
-
if (n !== null && t !== null) {
|
|
913
|
-
var r = n[1];
|
|
914
|
-
a: if (r === null) r = !1;
|
|
915
|
-
else {
|
|
916
|
-
for (var i = 0; i < r.length && i < t.length; i++) if (!B(t[i], r[i])) {
|
|
917
|
-
r = !1;
|
|
918
|
-
break a;
|
|
919
|
-
}
|
|
920
|
-
r = !0;
|
|
921
|
-
}
|
|
922
|
-
if (r) return n[0];
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
return e = e(), H.memoizedState = [e, t], e;
|
|
926
|
-
}
|
|
927
|
-
function Ke(e, t, r) {
|
|
928
|
-
if (25 <= Be) throw Error(n(301));
|
|
929
|
-
if (e === V) if (ze = !0, e = {
|
|
930
|
-
action: r,
|
|
931
|
-
next: null
|
|
932
|
-
}, W === null && (W = /* @__PURE__ */ new Map()), r = W.get(t), r === void 0) W.set(t, e);
|
|
933
|
-
else {
|
|
934
|
-
for (t = r; t.next !== null;) t = t.next;
|
|
935
|
-
t.next = e;
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
function qe() {
|
|
939
|
-
throw Error(n(394));
|
|
940
|
-
}
|
|
941
|
-
function Je() {}
|
|
942
|
-
var Ye = {
|
|
943
|
-
readContext: function(e) {
|
|
944
|
-
return e._currentValue2;
|
|
945
|
-
},
|
|
946
|
-
useContext: function(e) {
|
|
947
|
-
return G(), e._currentValue2;
|
|
948
|
-
},
|
|
949
|
-
useMemo: K,
|
|
950
|
-
useReducer: Ge,
|
|
951
|
-
useRef: function(e) {
|
|
952
|
-
V = G(), H = He();
|
|
953
|
-
var t = H.memoizedState;
|
|
954
|
-
return t === null ? (e = { current: e }, H.memoizedState = e) : t;
|
|
955
|
-
},
|
|
956
|
-
useState: function(e) {
|
|
957
|
-
return Ge(We, e);
|
|
958
|
-
},
|
|
959
|
-
useInsertionEffect: Je,
|
|
960
|
-
useLayoutEffect: function() {},
|
|
961
|
-
useCallback: function(e, t) {
|
|
962
|
-
return K(function() {
|
|
963
|
-
return e;
|
|
964
|
-
}, t);
|
|
965
|
-
},
|
|
966
|
-
useImperativeHandle: Je,
|
|
967
|
-
useEffect: Je,
|
|
968
|
-
useDebugValue: Je,
|
|
969
|
-
useDeferredValue: function(e) {
|
|
970
|
-
return G(), e;
|
|
971
|
-
},
|
|
972
|
-
useTransition: function() {
|
|
973
|
-
return G(), [!1, qe];
|
|
974
|
-
},
|
|
975
|
-
useId: function() {
|
|
976
|
-
var e = Ie.treeContext, t = e.overflow;
|
|
977
|
-
e = e.id, e = (e & ~(1 << 32 - je(e) - 1)).toString(32) + t;
|
|
978
|
-
var r = Xe;
|
|
979
|
-
if (r === null) throw Error(n(404));
|
|
980
|
-
return t = U++, e = ":" + r.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
981
|
-
},
|
|
982
|
-
useMutableSource: function(e, t) {
|
|
983
|
-
return G(), t(e._source);
|
|
984
|
-
},
|
|
985
|
-
useSyncExternalStore: function(e, t, r) {
|
|
986
|
-
if (r === void 0) throw Error(n(407));
|
|
987
|
-
return r();
|
|
988
|
-
}
|
|
989
|
-
}, Xe = null, Ze = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
|
|
990
|
-
function Qe(e) {
|
|
991
|
-
return console.error(e), null;
|
|
992
|
-
}
|
|
993
|
-
function $e() {}
|
|
994
|
-
function et(e, t, n, r, i, a, o, s, c) {
|
|
995
|
-
var l = [], u = /* @__PURE__ */ new Set();
|
|
996
|
-
return t = {
|
|
997
|
-
destination: null,
|
|
998
|
-
responseState: t,
|
|
999
|
-
progressiveChunkSize: r === void 0 ? 12800 : r,
|
|
1000
|
-
status: 0,
|
|
1001
|
-
fatalError: null,
|
|
1002
|
-
nextSegmentId: 0,
|
|
1003
|
-
allPendingTasks: 0,
|
|
1004
|
-
pendingRootTasks: 0,
|
|
1005
|
-
completedRootSegment: null,
|
|
1006
|
-
abortableTasks: u,
|
|
1007
|
-
pingedTasks: l,
|
|
1008
|
-
clientRenderedBoundaries: [],
|
|
1009
|
-
completedBoundaries: [],
|
|
1010
|
-
partialBoundaries: [],
|
|
1011
|
-
onError: i === void 0 ? Qe : i,
|
|
1012
|
-
onAllReady: a === void 0 ? $e : a,
|
|
1013
|
-
onShellReady: o === void 0 ? $e : o,
|
|
1014
|
-
onShellError: s === void 0 ? $e : s,
|
|
1015
|
-
onFatalError: c === void 0 ? $e : c
|
|
1016
|
-
}, n = nt(t, 0, null, n, !1, !1), n.parentFlushed = !0, e = tt(t, e, null, n, u, Se, null, Ae), l.push(e), t;
|
|
1017
|
-
}
|
|
1018
|
-
function tt(e, t, n, r, i, a, o, s) {
|
|
1019
|
-
e.allPendingTasks++, n === null ? e.pendingRootTasks++ : n.pendingTasks++;
|
|
1020
|
-
var c = {
|
|
1021
|
-
node: t,
|
|
1022
|
-
ping: function() {
|
|
1023
|
-
var t = e.pingedTasks;
|
|
1024
|
-
t.push(c), t.length === 1 && J(e);
|
|
1025
|
-
},
|
|
1026
|
-
blockedBoundary: n,
|
|
1027
|
-
blockedSegment: r,
|
|
1028
|
-
abortSet: i,
|
|
1029
|
-
legacyContext: a,
|
|
1030
|
-
context: o,
|
|
1031
|
-
treeContext: s
|
|
1032
|
-
};
|
|
1033
|
-
return i.add(c), c;
|
|
1034
|
-
}
|
|
1035
|
-
function nt(e, t, n, r, i, a) {
|
|
1036
|
-
return {
|
|
1037
|
-
status: 0,
|
|
1038
|
-
id: -1,
|
|
1039
|
-
index: t,
|
|
1040
|
-
parentFlushed: !1,
|
|
1041
|
-
chunks: [],
|
|
1042
|
-
children: [],
|
|
1043
|
-
formatContext: r,
|
|
1044
|
-
boundary: n,
|
|
1045
|
-
lastPushedText: i,
|
|
1046
|
-
textEmbedded: a
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
function rt(e, t) {
|
|
1050
|
-
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
|
-
return e;
|
|
1052
|
-
}
|
|
1053
|
-
function it(e, t) {
|
|
1054
|
-
var n = e.onShellError;
|
|
1055
|
-
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
|
-
function at(e, t, n, r, i) {
|
|
1058
|
-
for (V = {}, Ie = t, U = 0, e = n(r, i); ze;) ze = !1, U = 0, Be += 1, H = null, e = n(r, i);
|
|
1059
|
-
return Ue(), e;
|
|
1060
|
-
}
|
|
1061
|
-
function ot(e, t, r, i) {
|
|
1062
|
-
var a = r.render(), o = i.childContextTypes;
|
|
1063
|
-
if (o != null) {
|
|
1064
|
-
var s = t.legacyContext;
|
|
1065
|
-
if (typeof r.getChildContext != "function") i = s;
|
|
1066
|
-
else {
|
|
1067
|
-
for (var c in r = r.getChildContext(), r) if (!(c in o)) throw Error(n(108, xe(i) || "Unknown", c));
|
|
1068
|
-
i = ce({}, s, r);
|
|
1069
|
-
}
|
|
1070
|
-
t.legacyContext = i, q(e, t, a), t.legacyContext = s;
|
|
1071
|
-
} else q(e, t, a);
|
|
1072
|
-
}
|
|
1073
|
-
function st(e, t) {
|
|
1074
|
-
if (e && e.defaultProps) {
|
|
1075
|
-
for (var n in t = ce({}, t), e = e.defaultProps, e) t[n] === void 0 && (t[n] = e[n]);
|
|
1076
|
-
return t;
|
|
1077
|
-
}
|
|
1078
|
-
return t;
|
|
1079
|
-
}
|
|
1080
|
-
function ct(e, t, r, i, a) {
|
|
1081
|
-
if (typeof r == "function") if (r.prototype && r.prototype.isReactComponent) {
|
|
1082
|
-
a = Ce(r, t.legacyContext);
|
|
1083
|
-
var o = r.contextType;
|
|
1084
|
-
o = new r(i, typeof o == "object" && o ? o._currentValue2 : a), ke(o, r, i, a), ot(e, t, o, r);
|
|
1085
|
-
} else {
|
|
1086
|
-
o = Ce(r, t.legacyContext), a = at(e, t, r, i, o);
|
|
1087
|
-
var s = U !== 0;
|
|
1088
|
-
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0) ke(a, r, i, o), ot(e, t, a, r);
|
|
1089
|
-
else if (s) {
|
|
1090
|
-
i = t.treeContext, t.treeContext = z(i, 1, 0);
|
|
1091
|
-
try {
|
|
1092
|
-
q(e, t, a);
|
|
1093
|
-
} finally {
|
|
1094
|
-
t.treeContext = i;
|
|
1095
|
-
}
|
|
1096
|
-
} else q(e, t, a);
|
|
1097
|
-
}
|
|
1098
|
-
else if (typeof r == "string") {
|
|
1099
|
-
switch (a = t.blockedSegment, o = te(a.chunks, r, i, e.responseState, a.formatContext), a.lastPushedText = !1, s = a.formatContext, a.formatContext = x(s, r, i), ut(e, t, o), a.formatContext = s, r) {
|
|
1100
|
-
case "area":
|
|
1101
|
-
case "base":
|
|
1102
|
-
case "br":
|
|
1103
|
-
case "col":
|
|
1104
|
-
case "embed":
|
|
1105
|
-
case "hr":
|
|
1106
|
-
case "img":
|
|
1107
|
-
case "input":
|
|
1108
|
-
case "keygen":
|
|
1109
|
-
case "link":
|
|
1110
|
-
case "meta":
|
|
1111
|
-
case "param":
|
|
1112
|
-
case "source":
|
|
1113
|
-
case "track":
|
|
1114
|
-
case "wbr": break;
|
|
1115
|
-
default: a.chunks.push("</", r, ">");
|
|
1116
|
-
}
|
|
1117
|
-
a.lastPushedText = !1;
|
|
1118
|
-
} else {
|
|
1119
|
-
switch (r) {
|
|
1120
|
-
case ve:
|
|
1121
|
-
case _e:
|
|
1122
|
-
case fe:
|
|
1123
|
-
case pe:
|
|
1124
|
-
case de:
|
|
1125
|
-
q(e, t, i.children);
|
|
1126
|
-
return;
|
|
1127
|
-
case N:
|
|
1128
|
-
q(e, t, i.children);
|
|
1129
|
-
return;
|
|
1130
|
-
case F: throw Error(n(343));
|
|
1131
|
-
case M:
|
|
1132
|
-
a: {
|
|
1133
|
-
r = t.blockedBoundary, a = t.blockedSegment, o = i.fallback, i = i.children, s = /* @__PURE__ */ new Set();
|
|
1134
|
-
var c = {
|
|
1135
|
-
id: null,
|
|
1136
|
-
rootSegmentID: -1,
|
|
1137
|
-
parentFlushed: !1,
|
|
1138
|
-
pendingTasks: 0,
|
|
1139
|
-
forceClientRender: !1,
|
|
1140
|
-
completedSegments: [],
|
|
1141
|
-
byteSize: 0,
|
|
1142
|
-
fallbackAbortableTasks: s,
|
|
1143
|
-
errorDigest: null
|
|
1144
|
-
}, l = nt(e, a.chunks.length, c, a.formatContext, !1, !1);
|
|
1145
|
-
a.children.push(l), a.lastPushedText = !1;
|
|
1146
|
-
var u = nt(e, 0, null, a.formatContext, !1, !1);
|
|
1147
|
-
u.parentFlushed = !0, t.blockedBoundary = c, t.blockedSegment = u;
|
|
1148
|
-
try {
|
|
1149
|
-
if (ut(e, t, i), e.responseState.generateStaticMarkup || u.lastPushedText && u.textEmbedded && u.chunks.push("<!-- -->"), u.status = 1, pt(c, u), c.pendingTasks === 0) break a;
|
|
1150
|
-
} catch (t) {
|
|
1151
|
-
u.status = 4, c.forceClientRender = !0, c.errorDigest = rt(e, t);
|
|
1152
|
-
} finally {
|
|
1153
|
-
t.blockedBoundary = r, t.blockedSegment = a;
|
|
1154
|
-
}
|
|
1155
|
-
t = tt(e, o, r, l, s, t.legacyContext, t.context, t.treeContext), e.pingedTasks.push(t);
|
|
1156
|
-
}
|
|
1157
|
-
return;
|
|
1158
|
-
}
|
|
1159
|
-
if (typeof r == "object" && r) switch (r.$$typeof) {
|
|
1160
|
-
case j:
|
|
1161
|
-
if (i = at(e, t, r.render, i, a), U !== 0) {
|
|
1162
|
-
r = t.treeContext, t.treeContext = z(r, 1, 0);
|
|
1163
|
-
try {
|
|
1164
|
-
q(e, t, i);
|
|
1165
|
-
} finally {
|
|
1166
|
-
t.treeContext = r;
|
|
1167
|
-
}
|
|
1168
|
-
} else q(e, t, i);
|
|
1169
|
-
return;
|
|
1170
|
-
case ge:
|
|
1171
|
-
r = r.type, i = st(r, i), ct(e, t, r, i, a);
|
|
1172
|
-
return;
|
|
1173
|
-
case me:
|
|
1174
|
-
if (a = i.children, r = r._context, i = i.value, o = r._currentValue2, r._currentValue2 = i, s = I, I = i = {
|
|
1175
|
-
parent: s,
|
|
1176
|
-
depth: s === null ? 0 : s.depth + 1,
|
|
1177
|
-
context: r,
|
|
1178
|
-
parentValue: o,
|
|
1179
|
-
value: i
|
|
1180
|
-
}, t.context = i, q(e, t, a), e = I, e === null) throw Error(n(403));
|
|
1181
|
-
i = e.parentValue, e.context._currentValue2 = i === ye ? e.context._defaultValue : i, e = I = e.parent, t.context = e;
|
|
1182
|
-
return;
|
|
1183
|
-
case he:
|
|
1184
|
-
i = i.children, i = i(r._currentValue2), q(e, t, i);
|
|
1185
|
-
return;
|
|
1186
|
-
case P:
|
|
1187
|
-
a = r._init, r = a(r._payload), i = st(r, i), ct(e, t, r, i, void 0);
|
|
1188
|
-
return;
|
|
1189
|
-
}
|
|
1190
|
-
throw Error(n(130, r == null ? r : typeof r, ""));
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
function q(e, t, r) {
|
|
1194
|
-
if (t.node = r, typeof r == "object" && r) {
|
|
1195
|
-
switch (r.$$typeof) {
|
|
1196
|
-
case le:
|
|
1197
|
-
ct(e, t, r.type, r.props, r.ref);
|
|
1198
|
-
return;
|
|
1199
|
-
case ue: throw Error(n(257));
|
|
1200
|
-
case P:
|
|
1201
|
-
var i = r._init;
|
|
1202
|
-
r = i(r._payload), q(e, t, r);
|
|
1203
|
-
return;
|
|
1204
|
-
}
|
|
1205
|
-
if (y(r)) {
|
|
1206
|
-
lt(e, t, r);
|
|
1207
|
-
return;
|
|
1208
|
-
}
|
|
1209
|
-
if (typeof r != "object" || !r ? i = null : (i = be && r[be] || r["@@iterator"], i = typeof i == "function" ? i : null), i &&= i.call(r)) {
|
|
1210
|
-
if (r = i.next(), !r.done) {
|
|
1211
|
-
var a = [];
|
|
1212
|
-
do
|
|
1213
|
-
a.push(r.value), r = i.next();
|
|
1214
|
-
while (!r.done);
|
|
1215
|
-
lt(e, t, a);
|
|
1216
|
-
}
|
|
1217
|
-
return;
|
|
1218
|
-
}
|
|
1219
|
-
throw e = Object.prototype.toString.call(r), Error(n(31, e === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : e));
|
|
1220
|
-
}
|
|
1221
|
-
typeof r == "string" ? (i = t.blockedSegment, i.lastPushedText = se(t.blockedSegment.chunks, r, e.responseState, i.lastPushedText)) : typeof r == "number" && (i = t.blockedSegment, i.lastPushedText = se(t.blockedSegment.chunks, "" + r, e.responseState, i.lastPushedText));
|
|
1222
|
-
}
|
|
1223
|
-
function lt(e, t, n) {
|
|
1224
|
-
for (var r = n.length, i = 0; i < r; i++) {
|
|
1225
|
-
var a = t.treeContext;
|
|
1226
|
-
t.treeContext = z(a, r, i);
|
|
1227
|
-
try {
|
|
1228
|
-
ut(e, t, n[i]);
|
|
1229
|
-
} finally {
|
|
1230
|
-
t.treeContext = a;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
function ut(e, t, n) {
|
|
1235
|
-
var r = t.blockedSegment.formatContext, i = t.legacyContext, a = t.context;
|
|
1236
|
-
try {
|
|
1237
|
-
return q(e, t, n);
|
|
1238
|
-
} catch (c) {
|
|
1239
|
-
if (Ue(), typeof c == "object" && c && typeof c.then == "function") {
|
|
1240
|
-
n = c;
|
|
1241
|
-
var o = t.blockedSegment, s = nt(e, o.chunks.length, null, o.formatContext, o.lastPushedText, !0);
|
|
1242
|
-
o.children.push(s), o.lastPushedText = !1, e = tt(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, De(a);
|
|
1243
|
-
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, De(a), c;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
function dt(e) {
|
|
1247
|
-
var t = e.blockedBoundary;
|
|
1248
|
-
e = e.blockedSegment, e.status = 3, mt(this, t, e);
|
|
1249
|
-
}
|
|
1250
|
-
function ft(e, t, r) {
|
|
1251
|
-
var i = e.blockedBoundary;
|
|
1252
|
-
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 ft(e, t, r);
|
|
1254
|
-
}), i.fallbackAbortableTasks.clear(), t.allPendingTasks--, t.allPendingTasks === 0 && (i = t.onAllReady, i()));
|
|
1255
|
-
}
|
|
1256
|
-
function pt(e, t) {
|
|
1257
|
-
if (t.chunks.length === 0 && t.children.length === 1 && t.children[0].boundary === null) {
|
|
1258
|
-
var n = t.children[0];
|
|
1259
|
-
n.id = t.id, n.parentFlushed = !0, n.status === 1 && pt(e, n);
|
|
1260
|
-
} else e.completedSegments.push(t);
|
|
1261
|
-
}
|
|
1262
|
-
function mt(e, t, r) {
|
|
1263
|
-
if (t === null) {
|
|
1264
|
-
if (r.parentFlushed) {
|
|
1265
|
-
if (e.completedRootSegment !== null) throw Error(n(389));
|
|
1266
|
-
e.completedRootSegment = r;
|
|
1267
|
-
}
|
|
1268
|
-
e.pendingRootTasks--, e.pendingRootTasks === 0 && (e.onShellError = $e, t = e.onShellReady, t());
|
|
1269
|
-
} else t.pendingTasks--, t.forceClientRender || (t.pendingTasks === 0 ? (r.parentFlushed && r.status === 1 && pt(t, r), t.parentFlushed && e.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(dt, e), t.fallbackAbortableTasks.clear()) : r.parentFlushed && r.status === 1 && (pt(t, r), t.completedSegments.length === 1 && t.parentFlushed && e.partialBoundaries.push(t)));
|
|
1270
|
-
e.allPendingTasks--, e.allPendingTasks === 0 && (e = e.onAllReady, e());
|
|
1271
|
-
}
|
|
1272
|
-
function J(e) {
|
|
1273
|
-
if (e.status !== 2) {
|
|
1274
|
-
var t = I, n = Ze.current;
|
|
1275
|
-
Ze.current = Ye;
|
|
1276
|
-
var r = Xe;
|
|
1277
|
-
Xe = e.responseState;
|
|
1278
|
-
try {
|
|
1279
|
-
var i = e.pingedTasks, a;
|
|
1280
|
-
for (a = 0; a < i.length; a++) {
|
|
1281
|
-
var o = i[a], s = e, c = o.blockedSegment;
|
|
1282
|
-
if (c.status === 0) {
|
|
1283
|
-
De(o.context);
|
|
1284
|
-
try {
|
|
1285
|
-
q(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
|
-
} catch (e) {
|
|
1287
|
-
if (Ue(), typeof e == "object" && e && typeof e.then == "function") {
|
|
1288
|
-
var l = o.ping;
|
|
1289
|
-
e.then(l, l);
|
|
1290
|
-
} else {
|
|
1291
|
-
o.abortSet.delete(o), c.status = 4;
|
|
1292
|
-
var u = o.blockedBoundary, d = e, f = rt(s, d);
|
|
1293
|
-
if (u === null ? it(s, d) : (u.pendingTasks--, u.forceClientRender || (u.forceClientRender = !0, u.errorDigest = f, u.parentFlushed && s.clientRenderedBoundaries.push(u))), s.allPendingTasks--, s.allPendingTasks === 0) {
|
|
1294
|
-
var p = s.onAllReady;
|
|
1295
|
-
p();
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
i.splice(0, a), e.destination !== null && yt(e, e.destination);
|
|
1302
|
-
} catch (t) {
|
|
1303
|
-
rt(e, t), it(e, t);
|
|
1304
|
-
} finally {
|
|
1305
|
-
Xe = r, Ze.current = n, n === Ye && De(t);
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
function ht(e, t, r) {
|
|
1310
|
-
switch (r.parentFlushed = !0, r.status) {
|
|
1311
|
-
case 0:
|
|
1312
|
-
var i = r.id = e.nextSegmentId++;
|
|
1313
|
-
return r.lastPushedText = !1, r.textEmbedded = !1, e = e.responseState, t.push("<template id=\""), t.push(e.placeholderPrefix), e = i.toString(16), t.push(e), t.push("\"></template>");
|
|
1314
|
-
case 1:
|
|
1315
|
-
r.status = 2;
|
|
1316
|
-
var a = !0;
|
|
1317
|
-
i = r.chunks;
|
|
1318
|
-
var o = 0;
|
|
1319
|
-
r = r.children;
|
|
1320
|
-
for (var s = 0; s < r.length; s++) {
|
|
1321
|
-
for (a = r[s]; o < a.index; o++) t.push(i[o]);
|
|
1322
|
-
a = Y(e, t, a);
|
|
1323
|
-
}
|
|
1324
|
-
for (; o < i.length - 1; o++) t.push(i[o]);
|
|
1325
|
-
return o < i.length && (a = t.push(i[o])), a;
|
|
1326
|
-
default: throw Error(n(390));
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
function Y(e, t, r) {
|
|
1330
|
-
var i = r.boundary;
|
|
1331
|
-
if (i === null) return ht(e, t, r);
|
|
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>")), ht(e, t, r), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
1333
|
-
if (0 < i.pendingTasks) {
|
|
1334
|
-
i.rootSegmentID = e.nextSegmentId++, 0 < i.completedSegments.length && e.partialBoundaries.push(i);
|
|
1335
|
-
var a = e.responseState, o = a.nextSuspenseID++;
|
|
1336
|
-
return a = a.boundaryPrefix + o.toString(16), i = i.id = a, ne(t, e.responseState, i), ht(e, t, r), t.push("<!--/$-->");
|
|
1337
|
-
}
|
|
1338
|
-
if (i.byteSize > e.progressiveChunkSize) return i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i), ne(t, e.responseState, i.id), ht(e, t, r), t.push("<!--/$-->");
|
|
1339
|
-
if (e.responseState.generateStaticMarkup || t.push("<!--$-->"), r = i.completedSegments, r.length !== 1) throw Error(n(391));
|
|
1340
|
-
return Y(e, t, r[0]), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
1341
|
-
}
|
|
1342
|
-
function gt(e, t, n) {
|
|
1343
|
-
return re(t, e.responseState, n.formatContext, n.id), Y(e, t, n), ie(t, n.formatContext);
|
|
1344
|
-
}
|
|
1345
|
-
function _t(e, t, r) {
|
|
1346
|
-
for (var i = r.completedSegments, a = 0; a < i.length; a++) vt(e, t, r, i[a]);
|
|
1347
|
-
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
|
-
return r = r.toString(16), t.push(i), t.push("\",\""), t.push(e.segmentPrefix), t.push(r), t.push("\")<\/script>");
|
|
1349
|
-
}
|
|
1350
|
-
function vt(e, t, r, i) {
|
|
1351
|
-
if (i.status === 2) return !0;
|
|
1352
|
-
var a = i.id;
|
|
1353
|
-
if (a === -1) {
|
|
1354
|
-
if ((i.id = r.rootSegmentID) === -1) throw Error(n(392));
|
|
1355
|
-
return gt(e, t, i);
|
|
1356
|
-
}
|
|
1357
|
-
return gt(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
|
-
function yt(e, t) {
|
|
1360
|
-
try {
|
|
1361
|
-
var r = e.completedRootSegment;
|
|
1362
|
-
if (r !== null && e.pendingRootTasks === 0) {
|
|
1363
|
-
Y(e, t, r), e.completedRootSegment = null;
|
|
1364
|
-
var i = e.responseState.bootstrapChunks;
|
|
1365
|
-
for (r = 0; r < i.length - 1; r++) t.push(i[r]);
|
|
1366
|
-
r < i.length && t.push(i[r]);
|
|
1367
|
-
}
|
|
1368
|
-
var a = e.clientRenderedBoundaries, o;
|
|
1369
|
-
for (o = 0; o < a.length; o++) {
|
|
1370
|
-
var s = a[o];
|
|
1371
|
-
i = t;
|
|
1372
|
-
var c = e.responseState, l = s.id, u = s.errorDigest, d = s.errorMessage, f = s.errorComponentStack;
|
|
1373
|
-
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
|
-
if (i.push(l), i.push("\""), u || d || f) {
|
|
1375
|
-
i.push(",");
|
|
1376
|
-
var p = oe(u || "");
|
|
1377
|
-
i.push(p);
|
|
1378
|
-
}
|
|
1379
|
-
if (d || f) {
|
|
1380
|
-
i.push(",");
|
|
1381
|
-
var m = oe(d || "");
|
|
1382
|
-
i.push(m);
|
|
1383
|
-
}
|
|
1384
|
-
if (f) {
|
|
1385
|
-
i.push(",");
|
|
1386
|
-
var h = oe(f);
|
|
1387
|
-
i.push(h);
|
|
1388
|
-
}
|
|
1389
|
-
if (!i.push(")<\/script>")) {
|
|
1390
|
-
e.destination = null, o++, a.splice(0, o);
|
|
1391
|
-
return;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
a.splice(0, o);
|
|
1395
|
-
var g = e.completedBoundaries;
|
|
1396
|
-
for (o = 0; o < g.length; o++) if (!_t(e, t, g[o])) {
|
|
1397
|
-
e.destination = null, o++, g.splice(0, o);
|
|
1398
|
-
return;
|
|
1399
|
-
}
|
|
1400
|
-
g.splice(0, o);
|
|
1401
|
-
var _ = e.partialBoundaries;
|
|
1402
|
-
for (o = 0; o < _.length; o++) {
|
|
1403
|
-
var v = _[o];
|
|
1404
|
-
a: {
|
|
1405
|
-
a = e, s = t;
|
|
1406
|
-
var y = v.completedSegments;
|
|
1407
|
-
for (c = 0; c < y.length; c++) if (!vt(a, s, v, y[c])) {
|
|
1408
|
-
c++, y.splice(0, c);
|
|
1409
|
-
var b = !1;
|
|
1410
|
-
break a;
|
|
1411
|
-
}
|
|
1412
|
-
y.splice(0, c), b = !0;
|
|
1413
|
-
}
|
|
1414
|
-
if (!b) {
|
|
1415
|
-
e.destination = null, o++, _.splice(0, o);
|
|
1416
|
-
return;
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
_.splice(0, o);
|
|
1420
|
-
var x = e.completedBoundaries;
|
|
1421
|
-
for (o = 0; o < x.length; o++) if (!_t(e, t, x[o])) {
|
|
1422
|
-
e.destination = null, o++, x.splice(0, o);
|
|
1423
|
-
return;
|
|
1424
|
-
}
|
|
1425
|
-
x.splice(0, o);
|
|
1426
|
-
} finally {
|
|
1427
|
-
e.allPendingTasks === 0 && e.pingedTasks.length === 0 && e.clientRenderedBoundaries.length === 0 && e.completedBoundaries.length === 0 && t.push(null);
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
function bt(e, t) {
|
|
1431
|
-
try {
|
|
1432
|
-
var n = e.abortableTasks;
|
|
1433
|
-
n.forEach(function(n) {
|
|
1434
|
-
return ft(n, e, t);
|
|
1435
|
-
}), n.clear(), e.destination !== null && yt(e, e.destination);
|
|
1436
|
-
} catch (t) {
|
|
1437
|
-
rt(e, t), it(e, t);
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
function xt() {}
|
|
1441
|
-
function St(e, t, r, i) {
|
|
1442
|
-
var a = !1, o = null, s = "", c = {
|
|
1443
|
-
push: function(e) {
|
|
1444
|
-
return e !== null && (s += e), !0;
|
|
1445
|
-
},
|
|
1446
|
-
destroy: function(e) {
|
|
1447
|
-
a = !0, o = e;
|
|
1448
|
-
}
|
|
1449
|
-
}, l = !1;
|
|
1450
|
-
if (e = et(e, A(r, t ? t.identifierPrefix : void 0), {
|
|
1451
|
-
insertionMode: 1,
|
|
1452
|
-
selectedValue: null
|
|
1453
|
-
}, Infinity, xt, void 0, function() {
|
|
1454
|
-
l = !0;
|
|
1455
|
-
}, void 0, void 0), J(e), bt(e, i), e.status === 1) e.status = 2, c.destroy(e.fatalError);
|
|
1456
|
-
else if (e.status !== 2 && e.destination === null) {
|
|
1457
|
-
e.destination = c;
|
|
1458
|
-
try {
|
|
1459
|
-
yt(e, c);
|
|
1460
|
-
} catch (t) {
|
|
1461
|
-
rt(e, t), it(e, t);
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
if (a) throw o;
|
|
1465
|
-
if (!l) throw Error(n(426));
|
|
1466
|
-
return s;
|
|
1467
|
-
}
|
|
1468
|
-
e.renderToNodeStream = function() {
|
|
1469
|
-
throw Error(n(207));
|
|
1470
|
-
}, e.renderToStaticMarkup = function(e, t) {
|
|
1471
|
-
return St(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
|
-
}, e.renderToStaticNodeStream = function() {
|
|
1473
|
-
throw Error(n(208));
|
|
1474
|
-
}, e.renderToString = function(e, t) {
|
|
1475
|
-
return St(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
|
-
}, e.version = "18.3.1";
|
|
1477
|
-
})), N = /* @__PURE__ */ e(((e) => {
|
|
1478
|
-
var t = a("react");
|
|
1479
|
-
function n(e) {
|
|
1480
|
-
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
1481
|
-
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
1482
|
-
}
|
|
1483
|
-
var r = null, i = 0;
|
|
1484
|
-
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
|
-
else {
|
|
1487
|
-
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
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
function s(e, t) {
|
|
1492
|
-
return o(e, t), !0;
|
|
1493
|
-
}
|
|
1494
|
-
function c(e) {
|
|
1495
|
-
r && 0 < i && (e.enqueue(new Uint8Array(r.buffer, 0, i)), r = null, i = 0);
|
|
1496
|
-
}
|
|
1497
|
-
var l = new TextEncoder();
|
|
1498
|
-
function u(e) {
|
|
1499
|
-
return l.encode(e);
|
|
1500
|
-
}
|
|
1501
|
-
function d(e) {
|
|
1502
|
-
return l.encode(e);
|
|
1503
|
-
}
|
|
1504
|
-
function f(e, t) {
|
|
1505
|
-
typeof e.error == "function" ? e.error(t) : e.close();
|
|
1506
|
-
}
|
|
1507
|
-
var p = Object.prototype.hasOwnProperty, m = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, h = {}, g = {};
|
|
1508
|
-
function _(e) {
|
|
1509
|
-
return p.call(g, e) ? !0 : p.call(h, e) ? !1 : m.test(e) ? g[e] = !0 : (h[e] = !0, !1);
|
|
1510
|
-
}
|
|
1511
|
-
function v(e, t, n, r, i, a, o) {
|
|
1512
|
-
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString = o;
|
|
1513
|
-
}
|
|
1514
|
-
var y = {};
|
|
1515
|
-
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
1516
|
-
y[e] = new v(e, 0, !1, e, null, !1, !1);
|
|
1517
|
-
}), [
|
|
1518
|
-
["acceptCharset", "accept-charset"],
|
|
1519
|
-
["className", "class"],
|
|
1520
|
-
["htmlFor", "for"],
|
|
1521
|
-
["httpEquiv", "http-equiv"]
|
|
1522
|
-
].forEach(function(e) {
|
|
1523
|
-
var t = e[0];
|
|
1524
|
-
y[t] = new v(t, 1, !1, e[1], null, !1, !1);
|
|
1525
|
-
}), [
|
|
1526
|
-
"contentEditable",
|
|
1527
|
-
"draggable",
|
|
1528
|
-
"spellCheck",
|
|
1529
|
-
"value"
|
|
1530
|
-
].forEach(function(e) {
|
|
1531
|
-
y[e] = new v(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
1532
|
-
}), [
|
|
1533
|
-
"autoReverse",
|
|
1534
|
-
"externalResourcesRequired",
|
|
1535
|
-
"focusable",
|
|
1536
|
-
"preserveAlpha"
|
|
1537
|
-
].forEach(function(e) {
|
|
1538
|
-
y[e] = new v(e, 2, !1, e, null, !1, !1);
|
|
1539
|
-
}), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
1540
|
-
y[e] = new v(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
1541
|
-
}), [
|
|
1542
|
-
"checked",
|
|
1543
|
-
"multiple",
|
|
1544
|
-
"muted",
|
|
1545
|
-
"selected"
|
|
1546
|
-
].forEach(function(e) {
|
|
1547
|
-
y[e] = new v(e, 3, !0, e, null, !1, !1);
|
|
1548
|
-
}), ["capture", "download"].forEach(function(e) {
|
|
1549
|
-
y[e] = new v(e, 4, !1, e, null, !1, !1);
|
|
1550
|
-
}), [
|
|
1551
|
-
"cols",
|
|
1552
|
-
"rows",
|
|
1553
|
-
"size",
|
|
1554
|
-
"span"
|
|
1555
|
-
].forEach(function(e) {
|
|
1556
|
-
y[e] = new v(e, 6, !1, e, null, !1, !1);
|
|
1557
|
-
}), ["rowSpan", "start"].forEach(function(e) {
|
|
1558
|
-
y[e] = new v(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
1559
|
-
});
|
|
1560
|
-
var b = /[\-:]([a-z])/g;
|
|
1561
|
-
function x(e) {
|
|
1562
|
-
return e[1].toUpperCase();
|
|
1563
|
-
}
|
|
1564
|
-
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e) {
|
|
1565
|
-
var t = e.replace(b, x);
|
|
1566
|
-
y[t] = new v(t, 1, !1, e, null, !1, !1);
|
|
1567
|
-
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
1568
|
-
var t = e.replace(b, x);
|
|
1569
|
-
y[t] = new v(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
1570
|
-
}), [
|
|
1571
|
-
"xml:base",
|
|
1572
|
-
"xml:lang",
|
|
1573
|
-
"xml:space"
|
|
1574
|
-
].forEach(function(e) {
|
|
1575
|
-
var t = e.replace(b, x);
|
|
1576
|
-
y[t] = new v(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
1577
|
-
}), ["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
1578
|
-
y[e] = new v(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
1579
|
-
}), y.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [
|
|
1580
|
-
"src",
|
|
1581
|
-
"href",
|
|
1582
|
-
"action",
|
|
1583
|
-
"formAction"
|
|
1584
|
-
].forEach(function(e) {
|
|
1585
|
-
y[e] = new v(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
1586
|
-
});
|
|
1587
|
-
var S = {
|
|
1588
|
-
animationIterationCount: !0,
|
|
1589
|
-
aspectRatio: !0,
|
|
1590
|
-
borderImageOutset: !0,
|
|
1591
|
-
borderImageSlice: !0,
|
|
1592
|
-
borderImageWidth: !0,
|
|
1593
|
-
boxFlex: !0,
|
|
1594
|
-
boxFlexGroup: !0,
|
|
1595
|
-
boxOrdinalGroup: !0,
|
|
1596
|
-
columnCount: !0,
|
|
1597
|
-
columns: !0,
|
|
1598
|
-
flex: !0,
|
|
1599
|
-
flexGrow: !0,
|
|
1600
|
-
flexPositive: !0,
|
|
1601
|
-
flexShrink: !0,
|
|
1602
|
-
flexNegative: !0,
|
|
1603
|
-
flexOrder: !0,
|
|
1604
|
-
gridArea: !0,
|
|
1605
|
-
gridRow: !0,
|
|
1606
|
-
gridRowEnd: !0,
|
|
1607
|
-
gridRowSpan: !0,
|
|
1608
|
-
gridRowStart: !0,
|
|
1609
|
-
gridColumn: !0,
|
|
1610
|
-
gridColumnEnd: !0,
|
|
1611
|
-
gridColumnSpan: !0,
|
|
1612
|
-
gridColumnStart: !0,
|
|
1613
|
-
fontWeight: !0,
|
|
1614
|
-
lineClamp: !0,
|
|
1615
|
-
lineHeight: !0,
|
|
1616
|
-
opacity: !0,
|
|
1617
|
-
order: !0,
|
|
1618
|
-
orphans: !0,
|
|
1619
|
-
tabSize: !0,
|
|
1620
|
-
widows: !0,
|
|
1621
|
-
zIndex: !0,
|
|
1622
|
-
zoom: !0,
|
|
1623
|
-
fillOpacity: !0,
|
|
1624
|
-
floodOpacity: !0,
|
|
1625
|
-
stopOpacity: !0,
|
|
1626
|
-
strokeDasharray: !0,
|
|
1627
|
-
strokeDashoffset: !0,
|
|
1628
|
-
strokeMiterlimit: !0,
|
|
1629
|
-
strokeOpacity: !0,
|
|
1630
|
-
strokeWidth: !0
|
|
1631
|
-
}, C = [
|
|
1632
|
-
"Webkit",
|
|
1633
|
-
"ms",
|
|
1634
|
-
"Moz",
|
|
1635
|
-
"O"
|
|
1636
|
-
];
|
|
1637
|
-
Object.keys(S).forEach(function(e) {
|
|
1638
|
-
C.forEach(function(t) {
|
|
1639
|
-
t = t + e.charAt(0).toUpperCase() + e.substring(1), S[t] = S[e];
|
|
1640
|
-
});
|
|
1641
|
-
});
|
|
1642
|
-
var w = /["'&<>]/;
|
|
1643
|
-
function T(e) {
|
|
1644
|
-
if (typeof e == "boolean" || typeof e == "number") return "" + e;
|
|
1645
|
-
e = "" + e;
|
|
1646
|
-
var t = w.exec(e);
|
|
1647
|
-
if (t) {
|
|
1648
|
-
var n = "", r, i = 0;
|
|
1649
|
-
for (r = t.index; r < e.length; r++) {
|
|
1650
|
-
switch (e.charCodeAt(r)) {
|
|
1651
|
-
case 34:
|
|
1652
|
-
t = """;
|
|
1653
|
-
break;
|
|
1654
|
-
case 38:
|
|
1655
|
-
t = "&";
|
|
1656
|
-
break;
|
|
1657
|
-
case 39:
|
|
1658
|
-
t = "'";
|
|
1659
|
-
break;
|
|
1660
|
-
case 60:
|
|
1661
|
-
t = "<";
|
|
1662
|
-
break;
|
|
1663
|
-
case 62:
|
|
1664
|
-
t = ">";
|
|
1665
|
-
break;
|
|
1666
|
-
default: continue;
|
|
1667
|
-
}
|
|
1668
|
-
i !== r && (n += e.substring(i, r)), i = r + 1, n += t;
|
|
1669
|
-
}
|
|
1670
|
-
e = i === r ? n : n + e.substring(i, r);
|
|
1671
|
-
}
|
|
1672
|
-
return e;
|
|
1673
|
-
}
|
|
1674
|
-
var E = /([A-Z])/g, D = /^ms-/, O = Array.isArray, ee = d("<script>"), k = d("<\/script>"), te = d("<script src=\""), ne = d("<script type=\"module\" src=\""), re = d("\" async=\"\"><\/script>"), ie = /(<\/|<)(s)(cript)/gi;
|
|
1675
|
-
function ae(e, t, n, r) {
|
|
1676
|
-
return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r;
|
|
1677
|
-
}
|
|
1678
|
-
function oe(e, t, n, r, i) {
|
|
1679
|
-
e = e === void 0 ? "" : e, t = t === void 0 ? ee : d("<script nonce=\"" + T(t) + "\">");
|
|
1680
|
-
var a = [];
|
|
1681
|
-
if (n !== void 0 && a.push(t, u(("" + n).replace(ie, ae)), k), r !== void 0) for (n = 0; n < r.length; n++) a.push(te, u(T(r[n])), re);
|
|
1682
|
-
if (i !== void 0) for (r = 0; r < i.length; r++) a.push(ne, u(T(i[r])), re);
|
|
1683
|
-
return {
|
|
1684
|
-
bootstrapChunks: a,
|
|
1685
|
-
startInlineScript: t,
|
|
1686
|
-
placeholderPrefix: d(e + "P:"),
|
|
1687
|
-
segmentPrefix: d(e + "S:"),
|
|
1688
|
-
boundaryPrefix: e + "B:",
|
|
1689
|
-
idPrefix: e,
|
|
1690
|
-
nextSuspenseID: 0,
|
|
1691
|
-
sentCompleteSegmentFunction: !1,
|
|
1692
|
-
sentCompleteBoundaryFunction: !1,
|
|
1693
|
-
sentClientRenderFunction: !1
|
|
1694
|
-
};
|
|
1695
|
-
}
|
|
1696
|
-
function A(e, t) {
|
|
1697
|
-
return {
|
|
1698
|
-
insertionMode: e,
|
|
1699
|
-
selectedValue: t
|
|
1700
|
-
};
|
|
1701
|
-
}
|
|
1702
|
-
function se(e) {
|
|
1703
|
-
return A(e === "http://www.w3.org/2000/svg" ? 2 : e === "http://www.w3.org/1998/Math/MathML" ? 3 : 0, null);
|
|
1704
|
-
}
|
|
1705
|
-
function ce(e, t, n) {
|
|
1706
|
-
switch (t) {
|
|
1707
|
-
case "select": return A(1, n.value == null ? n.defaultValue : n.value);
|
|
1708
|
-
case "svg": return A(2, null);
|
|
1709
|
-
case "math": return A(3, null);
|
|
1710
|
-
case "foreignObject": return A(1, null);
|
|
1711
|
-
case "table": return A(4, null);
|
|
1712
|
-
case "thead":
|
|
1713
|
-
case "tbody":
|
|
1714
|
-
case "tfoot": return A(5, null);
|
|
1715
|
-
case "colgroup": return A(7, null);
|
|
1716
|
-
case "tr": return A(6, null);
|
|
1717
|
-
}
|
|
1718
|
-
return 4 <= e.insertionMode || e.insertionMode === 0 ? A(1, null) : e;
|
|
1719
|
-
}
|
|
1720
|
-
var le = d("<!-- -->");
|
|
1721
|
-
function ue(e, t, n, r) {
|
|
1722
|
-
return t === "" ? r : (r && e.push(le), e.push(u(T(t))), !0);
|
|
1723
|
-
}
|
|
1724
|
-
var de = /* @__PURE__ */ new Map(), fe = d(" style=\""), pe = d(":"), me = d(";");
|
|
1725
|
-
function he(e, t, r) {
|
|
1726
|
-
if (typeof r != "object") throw Error(n(62));
|
|
1727
|
-
for (var i in t = !0, r) if (p.call(r, i)) {
|
|
1728
|
-
var a = r[i];
|
|
1729
|
-
if (a != null && typeof a != "boolean" && a !== "") {
|
|
1730
|
-
if (i.indexOf("--") === 0) {
|
|
1731
|
-
var o = u(T(i));
|
|
1732
|
-
a = u(T(("" + a).trim()));
|
|
1733
|
-
} else {
|
|
1734
|
-
o = i;
|
|
1735
|
-
var s = de.get(o);
|
|
1736
|
-
s === void 0 ? (s = d(T(o.replace(E, "-$1").toLowerCase().replace(D, "-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(T(("" + a).trim()));
|
|
1737
|
-
}
|
|
1738
|
-
t ? (t = !1, e.push(fe, o, pe, a)) : e.push(me, o, pe, a);
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
t || e.push(N);
|
|
1742
|
-
}
|
|
1743
|
-
var j = d(" "), M = d("=\""), N = d("\""), ge = d("=\"\"");
|
|
1744
|
-
function P(e, t, n, r) {
|
|
1745
|
-
switch (n) {
|
|
1746
|
-
case "style":
|
|
1747
|
-
he(e, t, r);
|
|
1748
|
-
return;
|
|
1749
|
-
case "defaultValue":
|
|
1750
|
-
case "defaultChecked":
|
|
1751
|
-
case "innerHTML":
|
|
1752
|
-
case "suppressContentEditableWarning":
|
|
1753
|
-
case "suppressHydrationWarning": return;
|
|
1754
|
-
}
|
|
1755
|
-
if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") {
|
|
1756
|
-
if (t = y.hasOwnProperty(n) ? y[n] : null, t !== null) {
|
|
1757
|
-
switch (typeof r) {
|
|
1758
|
-
case "function":
|
|
1759
|
-
case "symbol": return;
|
|
1760
|
-
case "boolean": if (!t.acceptsBooleans) return;
|
|
1761
|
-
}
|
|
1762
|
-
switch (n = u(t.attributeName), t.type) {
|
|
1763
|
-
case 3:
|
|
1764
|
-
r && e.push(j, n, ge);
|
|
1765
|
-
break;
|
|
1766
|
-
case 4:
|
|
1767
|
-
!0 === r ? e.push(j, n, ge) : !1 !== r && e.push(j, n, M, u(T(r)), N);
|
|
1768
|
-
break;
|
|
1769
|
-
case 5:
|
|
1770
|
-
isNaN(r) || e.push(j, n, M, u(T(r)), N);
|
|
1771
|
-
break;
|
|
1772
|
-
case 6:
|
|
1773
|
-
!isNaN(r) && 1 <= r && e.push(j, n, M, u(T(r)), N);
|
|
1774
|
-
break;
|
|
1775
|
-
default: t.sanitizeURL && (r = "" + r), e.push(j, n, M, u(T(r)), N);
|
|
1776
|
-
}
|
|
1777
|
-
} else if (_(n)) {
|
|
1778
|
-
switch (typeof r) {
|
|
1779
|
-
case "function":
|
|
1780
|
-
case "symbol": return;
|
|
1781
|
-
case "boolean": if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-") return;
|
|
1782
|
-
}
|
|
1783
|
-
e.push(j, u(n), M, u(T(r)), N);
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
var F = d(">"), _e = d("/>");
|
|
1788
|
-
function ve(e, t, r) {
|
|
1789
|
-
if (t != null) {
|
|
1790
|
-
if (r != null) throw Error(n(60));
|
|
1791
|
-
if (typeof t != "object" || !("__html" in t)) throw Error(n(61));
|
|
1792
|
-
t = t.__html, t != null && e.push(u("" + t));
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
function ye(e) {
|
|
1796
|
-
var n = "";
|
|
1797
|
-
return t.Children.forEach(e, function(e) {
|
|
1798
|
-
e != null && (n += e);
|
|
1799
|
-
}), n;
|
|
1800
|
-
}
|
|
1801
|
-
var be = d(" selected=\"\"");
|
|
1802
|
-
function xe(e, t, n, r) {
|
|
1803
|
-
e.push(L(n));
|
|
1804
|
-
var i = n = null, a;
|
|
1805
|
-
for (a in t) if (p.call(t, a)) {
|
|
1806
|
-
var o = t[a];
|
|
1807
|
-
if (o != null) switch (a) {
|
|
1808
|
-
case "children":
|
|
1809
|
-
n = o;
|
|
1810
|
-
break;
|
|
1811
|
-
case "dangerouslySetInnerHTML":
|
|
1812
|
-
i = o;
|
|
1813
|
-
break;
|
|
1814
|
-
default: P(e, r, a, o);
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
return e.push(F), ve(e, i, n), typeof n == "string" ? (e.push(u(T(n))), null) : n;
|
|
1818
|
-
}
|
|
1819
|
-
var Se = d("\n"), Ce = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, I = /* @__PURE__ */ new Map();
|
|
1820
|
-
function L(e) {
|
|
1821
|
-
var t = I.get(e);
|
|
1822
|
-
if (t === void 0) {
|
|
1823
|
-
if (!Ce.test(e)) throw Error(n(65, e));
|
|
1824
|
-
t = d("<" + e), I.set(e, t);
|
|
1825
|
-
}
|
|
1826
|
-
return t;
|
|
1827
|
-
}
|
|
1828
|
-
var we = d("<!DOCTYPE html>");
|
|
1829
|
-
function R(e, t, r, i, a) {
|
|
1830
|
-
switch (t) {
|
|
1831
|
-
case "select":
|
|
1832
|
-
e.push(L("select"));
|
|
1833
|
-
var o = null, s = null;
|
|
1834
|
-
for (f in r) if (p.call(r, f)) {
|
|
1835
|
-
var c = r[f];
|
|
1836
|
-
if (c != null) switch (f) {
|
|
1837
|
-
case "children":
|
|
1838
|
-
o = c;
|
|
1839
|
-
break;
|
|
1840
|
-
case "dangerouslySetInnerHTML":
|
|
1841
|
-
s = c;
|
|
1842
|
-
break;
|
|
1843
|
-
case "defaultValue":
|
|
1844
|
-
case "value": break;
|
|
1845
|
-
default: P(e, i, f, c);
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
return e.push(F), ve(e, s, o), o;
|
|
1849
|
-
case "option":
|
|
1850
|
-
s = a.selectedValue, e.push(L("option"));
|
|
1851
|
-
var l = c = null, d = null, f = null;
|
|
1852
|
-
for (o in r) if (p.call(r, o)) {
|
|
1853
|
-
var m = r[o];
|
|
1854
|
-
if (m != null) switch (o) {
|
|
1855
|
-
case "children":
|
|
1856
|
-
c = m;
|
|
1857
|
-
break;
|
|
1858
|
-
case "selected":
|
|
1859
|
-
d = m;
|
|
1860
|
-
break;
|
|
1861
|
-
case "dangerouslySetInnerHTML":
|
|
1862
|
-
f = m;
|
|
1863
|
-
break;
|
|
1864
|
-
case "value": l = m;
|
|
1865
|
-
default: P(e, i, o, m);
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
if (s != null) if (r = l === null ? ye(c) : "" + l, O(s)) {
|
|
1869
|
-
for (i = 0; i < s.length; i++) if ("" + s[i] === r) {
|
|
1870
|
-
e.push(be);
|
|
1871
|
-
break;
|
|
1872
|
-
}
|
|
1873
|
-
} else "" + s === r && e.push(be);
|
|
1874
|
-
else d && e.push(be);
|
|
1875
|
-
return e.push(F), ve(e, f, c), c;
|
|
1876
|
-
case "textarea":
|
|
1877
|
-
for (c in e.push(L("textarea")), f = s = o = null, r) if (p.call(r, c) && (l = r[c], l != null)) switch (c) {
|
|
1878
|
-
case "children":
|
|
1879
|
-
f = l;
|
|
1880
|
-
break;
|
|
1881
|
-
case "value":
|
|
1882
|
-
o = l;
|
|
1883
|
-
break;
|
|
1884
|
-
case "defaultValue":
|
|
1885
|
-
s = l;
|
|
1886
|
-
break;
|
|
1887
|
-
case "dangerouslySetInnerHTML": throw Error(n(91));
|
|
1888
|
-
default: P(e, i, c, l);
|
|
1889
|
-
}
|
|
1890
|
-
if (o === null && s !== null && (o = s), e.push(F), f != null) {
|
|
1891
|
-
if (o != null) throw Error(n(92));
|
|
1892
|
-
if (O(f) && 1 < f.length) throw Error(n(93));
|
|
1893
|
-
o = "" + f;
|
|
1894
|
-
}
|
|
1895
|
-
return typeof o == "string" && o[0] === "\n" && e.push(Se), o !== null && e.push(u(T("" + o))), null;
|
|
1896
|
-
case "input":
|
|
1897
|
-
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
|
-
case "children":
|
|
1899
|
-
case "dangerouslySetInnerHTML": throw Error(n(399, "input"));
|
|
1900
|
-
case "defaultChecked":
|
|
1901
|
-
l = d;
|
|
1902
|
-
break;
|
|
1903
|
-
case "defaultValue":
|
|
1904
|
-
c = d;
|
|
1905
|
-
break;
|
|
1906
|
-
case "checked":
|
|
1907
|
-
f = d;
|
|
1908
|
-
break;
|
|
1909
|
-
case "value":
|
|
1910
|
-
o = d;
|
|
1911
|
-
break;
|
|
1912
|
-
default: P(e, i, s, d);
|
|
1913
|
-
}
|
|
1914
|
-
return f === null ? l !== null && P(e, i, "checked", l) : P(e, i, "checked", f), o === null ? c !== null && P(e, i, "value", c) : P(e, i, "value", o), e.push(_e), null;
|
|
1915
|
-
case "menuitem":
|
|
1916
|
-
for (var h in e.push(L("menuitem")), r) if (p.call(r, h) && (o = r[h], o != null)) switch (h) {
|
|
1917
|
-
case "children":
|
|
1918
|
-
case "dangerouslySetInnerHTML": throw Error(n(400));
|
|
1919
|
-
default: P(e, i, h, o);
|
|
1920
|
-
}
|
|
1921
|
-
return e.push(F), null;
|
|
1922
|
-
case "title":
|
|
1923
|
-
for (m in e.push(L("title")), o = null, r) if (p.call(r, m) && (s = r[m], s != null)) switch (m) {
|
|
1924
|
-
case "children":
|
|
1925
|
-
o = s;
|
|
1926
|
-
break;
|
|
1927
|
-
case "dangerouslySetInnerHTML": throw Error(n(434));
|
|
1928
|
-
default: P(e, i, m, s);
|
|
1929
|
-
}
|
|
1930
|
-
return e.push(F), o;
|
|
1931
|
-
case "listing":
|
|
1932
|
-
case "pre":
|
|
1933
|
-
for (l in e.push(L(t)), s = o = null, r) if (p.call(r, l) && (c = r[l], c != null)) switch (l) {
|
|
1934
|
-
case "children":
|
|
1935
|
-
o = c;
|
|
1936
|
-
break;
|
|
1937
|
-
case "dangerouslySetInnerHTML":
|
|
1938
|
-
s = c;
|
|
1939
|
-
break;
|
|
1940
|
-
default: P(e, i, l, c);
|
|
1941
|
-
}
|
|
1942
|
-
if (e.push(F), s != null) {
|
|
1943
|
-
if (o != null) throw Error(n(60));
|
|
1944
|
-
if (typeof s != "object" || !("__html" in s)) throw Error(n(61));
|
|
1945
|
-
r = s.__html, r != null && (typeof r == "string" && 0 < r.length && r[0] === "\n" ? e.push(Se, u(r)) : e.push(u("" + r)));
|
|
1946
|
-
}
|
|
1947
|
-
return typeof o == "string" && o[0] === "\n" && e.push(Se), o;
|
|
1948
|
-
case "area":
|
|
1949
|
-
case "base":
|
|
1950
|
-
case "br":
|
|
1951
|
-
case "col":
|
|
1952
|
-
case "embed":
|
|
1953
|
-
case "hr":
|
|
1954
|
-
case "img":
|
|
1955
|
-
case "keygen":
|
|
1956
|
-
case "link":
|
|
1957
|
-
case "meta":
|
|
1958
|
-
case "param":
|
|
1959
|
-
case "source":
|
|
1960
|
-
case "track":
|
|
1961
|
-
case "wbr":
|
|
1962
|
-
for (var g in e.push(L(t)), r) if (p.call(r, g) && (o = r[g], o != null)) switch (g) {
|
|
1963
|
-
case "children":
|
|
1964
|
-
case "dangerouslySetInnerHTML": throw Error(n(399, t));
|
|
1965
|
-
default: P(e, i, g, o);
|
|
1966
|
-
}
|
|
1967
|
-
return e.push(_e), null;
|
|
1968
|
-
case "annotation-xml":
|
|
1969
|
-
case "color-profile":
|
|
1970
|
-
case "font-face":
|
|
1971
|
-
case "font-face-src":
|
|
1972
|
-
case "font-face-uri":
|
|
1973
|
-
case "font-face-format":
|
|
1974
|
-
case "font-face-name":
|
|
1975
|
-
case "missing-glyph": return xe(e, r, t, i);
|
|
1976
|
-
case "html": return a.insertionMode === 0 && e.push(we), xe(e, r, t, i);
|
|
1977
|
-
default:
|
|
1978
|
-
if (t.indexOf("-") === -1 && typeof r.is != "string") return xe(e, r, t, i);
|
|
1979
|
-
for (d in e.push(L(t)), s = o = null, r) if (p.call(r, d) && (c = r[d], c != null)) switch (d) {
|
|
1980
|
-
case "children":
|
|
1981
|
-
o = c;
|
|
1982
|
-
break;
|
|
1983
|
-
case "dangerouslySetInnerHTML":
|
|
1984
|
-
s = c;
|
|
1985
|
-
break;
|
|
1986
|
-
case "style":
|
|
1987
|
-
he(e, i, c);
|
|
1988
|
-
break;
|
|
1989
|
-
case "suppressContentEditableWarning":
|
|
1990
|
-
case "suppressHydrationWarning": break;
|
|
1991
|
-
default: _(d) && typeof c != "function" && typeof c != "symbol" && e.push(j, u(d), M, u(T(c)), N);
|
|
1992
|
-
}
|
|
1993
|
-
return e.push(F), ve(e, s, o), o;
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
var Te = d("</"), Ee = d(">"), De = d("<template id=\""), Oe = d("\"></template>"), ke = d("<!--$-->"), Ae = d("<!--$?--><template id=\""), z = d("\"></template>"), je = d("<!--$!-->"), Me = d("<!--/$-->"), Ne = d("<template"), Pe = d("\""), Fe = d(" data-dgst=\"");
|
|
1997
|
-
d(" data-msg=\""), d(" data-stck=\"");
|
|
1998
|
-
var B = d("></template>");
|
|
1999
|
-
function V(e, t, r) {
|
|
2000
|
-
if (o(e, Ae), r === null) throw Error(n(395));
|
|
2001
|
-
return o(e, r), s(e, z);
|
|
2002
|
-
}
|
|
2003
|
-
var Ie = d("<div hidden id=\""), Le = d("\">"), H = d("</div>"), Re = d("<svg aria-hidden=\"true\" style=\"display:none\" id=\""), ze = d("\">"), U = d("</svg>"), W = d("<math aria-hidden=\"true\" style=\"display:none\" id=\""), Be = d("\">"), G = d("</math>"), Ve = d("<table hidden id=\""), He = d("\">"), Ue = d("</table>"), We = d("<table hidden><tbody id=\""), Ge = d("\">"), K = d("</tbody></table>"), Ke = d("<table hidden><tr id=\""), qe = d("\">"), Je = d("</tr></table>"), Ye = d("<table hidden><colgroup id=\""), Xe = d("\">"), Ze = d("</colgroup></table>");
|
|
2004
|
-
function Qe(e, t, r, i) {
|
|
2005
|
-
switch (r.insertionMode) {
|
|
2006
|
-
case 0:
|
|
2007
|
-
case 1: return o(e, Ie), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Le);
|
|
2008
|
-
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, W), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Be);
|
|
2010
|
-
case 4: return o(e, Ve), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, He);
|
|
2011
|
-
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, Ke), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, qe);
|
|
2013
|
-
case 7: return o(e, Ye), o(e, t.segmentPrefix), o(e, u(i.toString(16))), s(e, Xe);
|
|
2014
|
-
default: throw Error(n(397));
|
|
2015
|
-
}
|
|
2016
|
-
}
|
|
2017
|
-
function $e(e, t) {
|
|
2018
|
-
switch (t.insertionMode) {
|
|
2019
|
-
case 0:
|
|
2020
|
-
case 1: return s(e, H);
|
|
2021
|
-
case 2: return s(e, U);
|
|
2022
|
-
case 3: return s(e, G);
|
|
2023
|
-
case 4: return s(e, Ue);
|
|
2024
|
-
case 5: return s(e, K);
|
|
2025
|
-
case 6: return s(e, Je);
|
|
2026
|
-
case 7: return s(e, Ze);
|
|
2027
|
-
default: throw Error(n(397));
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
var et = 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(\""), tt = d("$RS(\""), nt = d("\",\""), rt = d("\")<\/script>"), it = 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(\""), at = d("$RC(\""), ot = d("\",\""), st = d("\")<\/script>"), ct = 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(\""), q = d("$RX(\""), lt = d("\""), ut = d(")<\/script>"), dt = d(","), ft = /[<\u2028\u2029]/g;
|
|
2031
|
-
function pt(e) {
|
|
2032
|
-
return JSON.stringify(e).replace(ft, function(e) {
|
|
2033
|
-
switch (e) {
|
|
2034
|
-
case "<": return "\\u003c";
|
|
2035
|
-
case "\u2028": return "\\u2028";
|
|
2036
|
-
case "\u2029": return "\\u2029";
|
|
2037
|
-
default: throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");
|
|
2038
|
-
}
|
|
2039
|
-
});
|
|
2040
|
-
}
|
|
2041
|
-
var mt = Object.assign, J = Symbol.for("react.element"), ht = Symbol.for("react.portal"), Y = Symbol.for("react.fragment"), gt = Symbol.for("react.strict_mode"), _t = Symbol.for("react.profiler"), vt = Symbol.for("react.provider"), yt = Symbol.for("react.context"), bt = Symbol.for("react.forward_ref"), xt = Symbol.for("react.suspense"), St = Symbol.for("react.suspense_list"), Ct = Symbol.for("react.memo"), wt = Symbol.for("react.lazy"), Tt = Symbol.for("react.scope"), Et = Symbol.for("react.debug_trace_mode"), Dt = Symbol.for("react.legacy_hidden"), Ot = Symbol.for("react.default_value"), kt = Symbol.iterator;
|
|
2042
|
-
function At(e) {
|
|
2043
|
-
if (e == null) return null;
|
|
2044
|
-
if (typeof e == "function") return e.displayName || e.name || null;
|
|
2045
|
-
if (typeof e == "string") return e;
|
|
2046
|
-
switch (e) {
|
|
2047
|
-
case Y: return "Fragment";
|
|
2048
|
-
case ht: return "Portal";
|
|
2049
|
-
case _t: return "Profiler";
|
|
2050
|
-
case gt: return "StrictMode";
|
|
2051
|
-
case xt: return "Suspense";
|
|
2052
|
-
case St: return "SuspenseList";
|
|
2053
|
-
}
|
|
2054
|
-
if (typeof e == "object") switch (e.$$typeof) {
|
|
2055
|
-
case yt: return (e.displayName || "Context") + ".Consumer";
|
|
2056
|
-
case vt: return (e._context.displayName || "Context") + ".Provider";
|
|
2057
|
-
case bt:
|
|
2058
|
-
var t = e.render;
|
|
2059
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
2060
|
-
case Ct: return t = e.displayName || null, t === null ? At(e.type) || "Memo" : t;
|
|
2061
|
-
case wt:
|
|
2062
|
-
t = e._payload, e = e._init;
|
|
2063
|
-
try {
|
|
2064
|
-
return At(e(t));
|
|
2065
|
-
} catch {}
|
|
2066
|
-
}
|
|
2067
|
-
return null;
|
|
2068
|
-
}
|
|
2069
|
-
var jt = {};
|
|
2070
|
-
function Mt(e, t) {
|
|
2071
|
-
if (e = e.contextTypes, !e) return jt;
|
|
2072
|
-
var n = {}, r;
|
|
2073
|
-
for (r in e) n[r] = t[r];
|
|
2074
|
-
return n;
|
|
2075
|
-
}
|
|
2076
|
-
var X = null;
|
|
2077
|
-
function Nt(e, t) {
|
|
2078
|
-
if (e !== t) {
|
|
2079
|
-
e.context._currentValue = e.parentValue, e = e.parent;
|
|
2080
|
-
var r = t.parent;
|
|
2081
|
-
if (e === null) {
|
|
2082
|
-
if (r !== null) throw Error(n(401));
|
|
2083
|
-
} else {
|
|
2084
|
-
if (r === null) throw Error(n(401));
|
|
2085
|
-
Nt(e, r);
|
|
2086
|
-
}
|
|
2087
|
-
t.context._currentValue = t.value;
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
function Pt(e) {
|
|
2091
|
-
e.context._currentValue = e.parentValue, e = e.parent, e !== null && Pt(e);
|
|
2092
|
-
}
|
|
2093
|
-
function Ft(e) {
|
|
2094
|
-
var t = e.parent;
|
|
2095
|
-
t !== null && Ft(t), e.context._currentValue = e.value;
|
|
2096
|
-
}
|
|
2097
|
-
function It(e, t) {
|
|
2098
|
-
if (e.context._currentValue = e.parentValue, e = e.parent, e === null) throw Error(n(402));
|
|
2099
|
-
e.depth === t.depth ? Nt(e, t) : It(e, t);
|
|
2100
|
-
}
|
|
2101
|
-
function Lt(e, t) {
|
|
2102
|
-
var r = t.parent;
|
|
2103
|
-
if (r === null) throw Error(n(402));
|
|
2104
|
-
e.depth === r.depth ? Nt(e, r) : Lt(e, r), t.context._currentValue = t.value;
|
|
2105
|
-
}
|
|
2106
|
-
function Rt(e) {
|
|
2107
|
-
var t = X;
|
|
2108
|
-
t !== e && (t === null ? Ft(e) : e === null ? Pt(t) : t.depth === e.depth ? Nt(t, e) : t.depth > e.depth ? It(t, e) : Lt(t, e), X = e);
|
|
2109
|
-
}
|
|
2110
|
-
var zt = {
|
|
2111
|
-
isMounted: function() {
|
|
2112
|
-
return !1;
|
|
2113
|
-
},
|
|
2114
|
-
enqueueSetState: function(e, t) {
|
|
2115
|
-
e = e._reactInternals, e.queue !== null && e.queue.push(t);
|
|
2116
|
-
},
|
|
2117
|
-
enqueueReplaceState: function(e, t) {
|
|
2118
|
-
e = e._reactInternals, e.replace = !0, e.queue = [t];
|
|
2119
|
-
},
|
|
2120
|
-
enqueueForceUpdate: function() {}
|
|
2121
|
-
};
|
|
2122
|
-
function Bt(e, t, n, r) {
|
|
2123
|
-
var i = e.state === void 0 ? null : e.state;
|
|
2124
|
-
e.updater = zt, e.props = n, e.state = i;
|
|
2125
|
-
var a = {
|
|
2126
|
-
queue: [],
|
|
2127
|
-
replace: !1
|
|
2128
|
-
};
|
|
2129
|
-
e._reactInternals = a;
|
|
2130
|
-
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 && zt.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
|
-
else {
|
|
2133
|
-
for (a = o ? t[0] : e.state, i = !0, o = +!!o; o < t.length; o++) {
|
|
2134
|
-
var s = t[o];
|
|
2135
|
-
s = typeof s == "function" ? s.call(e, a, n, r) : s, s != null && (i ? (i = !1, a = mt({}, a, s)) : mt(a, s));
|
|
2136
|
-
}
|
|
2137
|
-
e.state = a;
|
|
2138
|
-
}
|
|
2139
|
-
else a.queue = null;
|
|
2140
|
-
}
|
|
2141
|
-
var Vt = {
|
|
2142
|
-
id: 1,
|
|
2143
|
-
overflow: ""
|
|
2144
|
-
};
|
|
2145
|
-
function Ht(e, t, n) {
|
|
2146
|
-
var r = e.id;
|
|
2147
|
-
e = e.overflow;
|
|
2148
|
-
var i = 32 - Ut(r) - 1;
|
|
2149
|
-
r &= ~(1 << i), n += 1;
|
|
2150
|
-
var a = 32 - Ut(t) + i;
|
|
2151
|
-
if (30 < a) {
|
|
2152
|
-
var o = i - i % 5;
|
|
2153
|
-
return a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, {
|
|
2154
|
-
id: 1 << 32 - Ut(t) + i | n << i | r,
|
|
2155
|
-
overflow: a + e
|
|
2156
|
-
};
|
|
2157
|
-
}
|
|
2158
|
-
return {
|
|
2159
|
-
id: 1 << a | n << i | r,
|
|
2160
|
-
overflow: e
|
|
2161
|
-
};
|
|
2162
|
-
}
|
|
2163
|
-
var Ut = Math.clz32 ? Math.clz32 : Kt, Wt = Math.log, Gt = Math.LN2;
|
|
2164
|
-
function Kt(e) {
|
|
2165
|
-
return e >>>= 0, e === 0 ? 32 : 31 - (Wt(e) / Gt | 0) | 0;
|
|
2166
|
-
}
|
|
2167
|
-
function qt(e, t) {
|
|
2168
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
2169
|
-
}
|
|
2170
|
-
var Jt = typeof Object.is == "function" ? Object.is : qt, Z = null, Yt = null, Xt = null, Q = null, Zt = !1, Qt = !1, $t = 0, en = null, tn = 0;
|
|
2171
|
-
function nn() {
|
|
2172
|
-
if (Z === null) throw Error(n(321));
|
|
2173
|
-
return Z;
|
|
2174
|
-
}
|
|
2175
|
-
function rn() {
|
|
2176
|
-
if (0 < tn) throw Error(n(312));
|
|
2177
|
-
return {
|
|
2178
|
-
memoizedState: null,
|
|
2179
|
-
queue: null,
|
|
2180
|
-
next: null
|
|
2181
|
-
};
|
|
2182
|
-
}
|
|
2183
|
-
function an() {
|
|
2184
|
-
return Q === null ? Xt === null ? (Zt = !1, Xt = Q = rn()) : (Zt = !0, Q = Xt) : Q.next === null ? (Zt = !1, Q = Q.next = rn()) : (Zt = !0, Q = Q.next), Q;
|
|
2185
|
-
}
|
|
2186
|
-
function on() {
|
|
2187
|
-
Yt = Z = null, Qt = !1, Xt = null, tn = 0, Q = en = null;
|
|
2188
|
-
}
|
|
2189
|
-
function sn(e, t) {
|
|
2190
|
-
return typeof t == "function" ? t(e) : t;
|
|
2191
|
-
}
|
|
2192
|
-
function cn(e, t, n) {
|
|
2193
|
-
if (Z = nn(), Q = an(), Zt) {
|
|
2194
|
-
var r = Q.queue;
|
|
2195
|
-
if (t = r.dispatch, en !== null && (n = en.get(r), n !== void 0)) {
|
|
2196
|
-
en.delete(r), r = Q.memoizedState;
|
|
2197
|
-
do
|
|
2198
|
-
r = e(r, n.action), n = n.next;
|
|
2199
|
-
while (n !== null);
|
|
2200
|
-
return Q.memoizedState = r, [r, t];
|
|
2201
|
-
}
|
|
2202
|
-
return [Q.memoizedState, t];
|
|
2203
|
-
}
|
|
2204
|
-
return e = e === sn ? typeof t == "function" ? t() : t : n === void 0 ? t : n(t), Q.memoizedState = e, e = Q.queue = {
|
|
2205
|
-
last: null,
|
|
2206
|
-
dispatch: null
|
|
2207
|
-
}, e = e.dispatch = un.bind(null, Z, e), [Q.memoizedState, e];
|
|
2208
|
-
}
|
|
2209
|
-
function ln(e, t) {
|
|
2210
|
-
if (Z = nn(), Q = an(), t = t === void 0 ? null : t, Q !== null) {
|
|
2211
|
-
var n = Q.memoizedState;
|
|
2212
|
-
if (n !== null && t !== null) {
|
|
2213
|
-
var r = n[1];
|
|
2214
|
-
a: if (r === null) r = !1;
|
|
2215
|
-
else {
|
|
2216
|
-
for (var i = 0; i < r.length && i < t.length; i++) if (!Jt(t[i], r[i])) {
|
|
2217
|
-
r = !1;
|
|
2218
|
-
break a;
|
|
2219
|
-
}
|
|
2220
|
-
r = !0;
|
|
2221
|
-
}
|
|
2222
|
-
if (r) return n[0];
|
|
2223
|
-
}
|
|
2224
|
-
}
|
|
2225
|
-
return e = e(), Q.memoizedState = [e, t], e;
|
|
2226
|
-
}
|
|
2227
|
-
function un(e, t, r) {
|
|
2228
|
-
if (25 <= tn) throw Error(n(301));
|
|
2229
|
-
if (e === Z) if (Qt = !0, e = {
|
|
2230
|
-
action: r,
|
|
2231
|
-
next: null
|
|
2232
|
-
}, en === null && (en = /* @__PURE__ */ new Map()), r = en.get(t), r === void 0) en.set(t, e);
|
|
2233
|
-
else {
|
|
2234
|
-
for (t = r; t.next !== null;) t = t.next;
|
|
2235
|
-
t.next = e;
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
function dn() {
|
|
2239
|
-
throw Error(n(394));
|
|
2240
|
-
}
|
|
2241
|
-
function fn() {}
|
|
2242
|
-
var pn = {
|
|
2243
|
-
readContext: function(e) {
|
|
2244
|
-
return e._currentValue;
|
|
2245
|
-
},
|
|
2246
|
-
useContext: function(e) {
|
|
2247
|
-
return nn(), e._currentValue;
|
|
2248
|
-
},
|
|
2249
|
-
useMemo: ln,
|
|
2250
|
-
useReducer: cn,
|
|
2251
|
-
useRef: function(e) {
|
|
2252
|
-
Z = nn(), Q = an();
|
|
2253
|
-
var t = Q.memoizedState;
|
|
2254
|
-
return t === null ? (e = { current: e }, Q.memoizedState = e) : t;
|
|
2255
|
-
},
|
|
2256
|
-
useState: function(e) {
|
|
2257
|
-
return cn(sn, e);
|
|
2258
|
-
},
|
|
2259
|
-
useInsertionEffect: fn,
|
|
2260
|
-
useLayoutEffect: function() {},
|
|
2261
|
-
useCallback: function(e, t) {
|
|
2262
|
-
return ln(function() {
|
|
2263
|
-
return e;
|
|
2264
|
-
}, t);
|
|
2265
|
-
},
|
|
2266
|
-
useImperativeHandle: fn,
|
|
2267
|
-
useEffect: fn,
|
|
2268
|
-
useDebugValue: fn,
|
|
2269
|
-
useDeferredValue: function(e) {
|
|
2270
|
-
return nn(), e;
|
|
2271
|
-
},
|
|
2272
|
-
useTransition: function() {
|
|
2273
|
-
return nn(), [!1, dn];
|
|
2274
|
-
},
|
|
2275
|
-
useId: function() {
|
|
2276
|
-
var e = Yt.treeContext, t = e.overflow;
|
|
2277
|
-
e = e.id, e = (e & ~(1 << 32 - Ut(e) - 1)).toString(32) + t;
|
|
2278
|
-
var r = mn;
|
|
2279
|
-
if (r === null) throw Error(n(404));
|
|
2280
|
-
return t = $t++, e = ":" + r.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
2281
|
-
},
|
|
2282
|
-
useMutableSource: function(e, t) {
|
|
2283
|
-
return nn(), t(e._source);
|
|
2284
|
-
},
|
|
2285
|
-
useSyncExternalStore: function(e, t, r) {
|
|
2286
|
-
if (r === void 0) throw Error(n(407));
|
|
2287
|
-
return r();
|
|
2288
|
-
}
|
|
2289
|
-
}, mn = null, hn = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
|
|
2290
|
-
function gn(e) {
|
|
2291
|
-
return console.error(e), null;
|
|
2292
|
-
}
|
|
2293
|
-
function _n() {}
|
|
2294
|
-
function vn(e, t, n, r, i, a, o, s, c) {
|
|
2295
|
-
var l = [], u = /* @__PURE__ */ new Set();
|
|
2296
|
-
return t = {
|
|
2297
|
-
destination: null,
|
|
2298
|
-
responseState: t,
|
|
2299
|
-
progressiveChunkSize: r === void 0 ? 12800 : r,
|
|
2300
|
-
status: 0,
|
|
2301
|
-
fatalError: null,
|
|
2302
|
-
nextSegmentId: 0,
|
|
2303
|
-
allPendingTasks: 0,
|
|
2304
|
-
pendingRootTasks: 0,
|
|
2305
|
-
completedRootSegment: null,
|
|
2306
|
-
abortableTasks: u,
|
|
2307
|
-
pingedTasks: l,
|
|
2308
|
-
clientRenderedBoundaries: [],
|
|
2309
|
-
completedBoundaries: [],
|
|
2310
|
-
partialBoundaries: [],
|
|
2311
|
-
onError: i === void 0 ? gn : i,
|
|
2312
|
-
onAllReady: a === void 0 ? _n : a,
|
|
2313
|
-
onShellReady: o === void 0 ? _n : o,
|
|
2314
|
-
onShellError: s === void 0 ? _n : s,
|
|
2315
|
-
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, jt, null, Vt), l.push(e), t;
|
|
2317
|
-
}
|
|
2318
|
-
function yn(e, t, n, r, i, a, o, s) {
|
|
2319
|
-
e.allPendingTasks++, n === null ? e.pendingRootTasks++ : n.pendingTasks++;
|
|
2320
|
-
var c = {
|
|
2321
|
-
node: t,
|
|
2322
|
-
ping: function() {
|
|
2323
|
-
var t = e.pingedTasks;
|
|
2324
|
-
t.push(c), t.length === 1 && Nn(e);
|
|
2325
|
-
},
|
|
2326
|
-
blockedBoundary: n,
|
|
2327
|
-
blockedSegment: r,
|
|
2328
|
-
abortSet: i,
|
|
2329
|
-
legacyContext: a,
|
|
2330
|
-
context: o,
|
|
2331
|
-
treeContext: s
|
|
2332
|
-
};
|
|
2333
|
-
return i.add(c), c;
|
|
2334
|
-
}
|
|
2335
|
-
function bn(e, t, n, r, i, a) {
|
|
2336
|
-
return {
|
|
2337
|
-
status: 0,
|
|
2338
|
-
id: -1,
|
|
2339
|
-
index: t,
|
|
2340
|
-
parentFlushed: !1,
|
|
2341
|
-
chunks: [],
|
|
2342
|
-
children: [],
|
|
2343
|
-
formatContext: r,
|
|
2344
|
-
boundary: n,
|
|
2345
|
-
lastPushedText: i,
|
|
2346
|
-
textEmbedded: a
|
|
2347
|
-
};
|
|
2348
|
-
}
|
|
2349
|
-
function xn(e, t) {
|
|
2350
|
-
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");
|
|
2351
|
-
return e;
|
|
2352
|
-
}
|
|
2353
|
-
function Sn(e, t) {
|
|
2354
|
-
var n = e.onShellError;
|
|
2355
|
-
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
|
-
function Cn(e, t, n, r, i) {
|
|
2358
|
-
for (Z = {}, Yt = t, $t = 0, e = n(r, i); Qt;) Qt = !1, $t = 0, tn += 1, Q = null, e = n(r, i);
|
|
2359
|
-
return on(), e;
|
|
2360
|
-
}
|
|
2361
|
-
function wn(e, t, r, i) {
|
|
2362
|
-
var a = r.render(), o = i.childContextTypes;
|
|
2363
|
-
if (o != null) {
|
|
2364
|
-
var s = t.legacyContext;
|
|
2365
|
-
if (typeof r.getChildContext != "function") i = s;
|
|
2366
|
-
else {
|
|
2367
|
-
for (var c in r = r.getChildContext(), r) if (!(c in o)) throw Error(n(108, At(i) || "Unknown", c));
|
|
2368
|
-
i = mt({}, s, r);
|
|
2369
|
-
}
|
|
2370
|
-
t.legacyContext = i, $(e, t, a), t.legacyContext = s;
|
|
2371
|
-
} else $(e, t, a);
|
|
2372
|
-
}
|
|
2373
|
-
function Tn(e, t) {
|
|
2374
|
-
if (e && e.defaultProps) {
|
|
2375
|
-
for (var n in t = mt({}, t), e = e.defaultProps, e) t[n] === void 0 && (t[n] = e[n]);
|
|
2376
|
-
return t;
|
|
2377
|
-
}
|
|
2378
|
-
return t;
|
|
2379
|
-
}
|
|
2380
|
-
function En(e, t, r, i, a) {
|
|
2381
|
-
if (typeof r == "function") if (r.prototype && r.prototype.isReactComponent) {
|
|
2382
|
-
a = Mt(r, t.legacyContext);
|
|
2383
|
-
var o = r.contextType;
|
|
2384
|
-
o = new r(i, typeof o == "object" && o ? o._currentValue : a), Bt(o, r, i, a), wn(e, t, o, r);
|
|
2385
|
-
} else {
|
|
2386
|
-
o = Mt(r, t.legacyContext), a = Cn(e, t, r, i, o);
|
|
2387
|
-
var s = $t !== 0;
|
|
2388
|
-
if (typeof a == "object" && a && typeof a.render == "function" && a.$$typeof === void 0) Bt(a, r, i, o), wn(e, t, a, r);
|
|
2389
|
-
else if (s) {
|
|
2390
|
-
i = t.treeContext, t.treeContext = Ht(i, 1, 0);
|
|
2391
|
-
try {
|
|
2392
|
-
$(e, t, a);
|
|
2393
|
-
} finally {
|
|
2394
|
-
t.treeContext = i;
|
|
2395
|
-
}
|
|
2396
|
-
} else $(e, t, a);
|
|
2397
|
-
}
|
|
2398
|
-
else if (typeof r == "string") {
|
|
2399
|
-
switch (a = t.blockedSegment, o = R(a.chunks, r, i, e.responseState, a.formatContext), a.lastPushedText = !1, s = a.formatContext, a.formatContext = ce(s, r, i), On(e, t, o), a.formatContext = s, r) {
|
|
2400
|
-
case "area":
|
|
2401
|
-
case "base":
|
|
2402
|
-
case "br":
|
|
2403
|
-
case "col":
|
|
2404
|
-
case "embed":
|
|
2405
|
-
case "hr":
|
|
2406
|
-
case "img":
|
|
2407
|
-
case "input":
|
|
2408
|
-
case "keygen":
|
|
2409
|
-
case "link":
|
|
2410
|
-
case "meta":
|
|
2411
|
-
case "param":
|
|
2412
|
-
case "source":
|
|
2413
|
-
case "track":
|
|
2414
|
-
case "wbr": break;
|
|
2415
|
-
default: a.chunks.push(Te, u(r), Ee);
|
|
2416
|
-
}
|
|
2417
|
-
a.lastPushedText = !1;
|
|
2418
|
-
} else {
|
|
2419
|
-
switch (r) {
|
|
2420
|
-
case Dt:
|
|
2421
|
-
case Et:
|
|
2422
|
-
case gt:
|
|
2423
|
-
case _t:
|
|
2424
|
-
case Y:
|
|
2425
|
-
$(e, t, i.children);
|
|
2426
|
-
return;
|
|
2427
|
-
case St:
|
|
2428
|
-
$(e, t, i.children);
|
|
2429
|
-
return;
|
|
2430
|
-
case Tt: throw Error(n(343));
|
|
2431
|
-
case xt:
|
|
2432
|
-
a: {
|
|
2433
|
-
r = t.blockedBoundary, a = t.blockedSegment, o = i.fallback, i = i.children, s = /* @__PURE__ */ new Set();
|
|
2434
|
-
var c = {
|
|
2435
|
-
id: null,
|
|
2436
|
-
rootSegmentID: -1,
|
|
2437
|
-
parentFlushed: !1,
|
|
2438
|
-
pendingTasks: 0,
|
|
2439
|
-
forceClientRender: !1,
|
|
2440
|
-
completedSegments: [],
|
|
2441
|
-
byteSize: 0,
|
|
2442
|
-
fallbackAbortableTasks: s,
|
|
2443
|
-
errorDigest: null
|
|
2444
|
-
}, l = bn(e, a.chunks.length, c, a.formatContext, !1, !1);
|
|
2445
|
-
a.children.push(l), a.lastPushedText = !1;
|
|
2446
|
-
var d = bn(e, 0, null, a.formatContext, !1, !1);
|
|
2447
|
-
d.parentFlushed = !0, t.blockedBoundary = c, t.blockedSegment = d;
|
|
2448
|
-
try {
|
|
2449
|
-
if (On(e, t, i), d.lastPushedText && d.textEmbedded && d.chunks.push(le), d.status = 1, jn(c, d), c.pendingTasks === 0) break a;
|
|
2450
|
-
} catch (t) {
|
|
2451
|
-
d.status = 4, c.forceClientRender = !0, c.errorDigest = xn(e, t);
|
|
2452
|
-
} finally {
|
|
2453
|
-
t.blockedBoundary = r, t.blockedSegment = a;
|
|
2454
|
-
}
|
|
2455
|
-
t = yn(e, o, r, l, s, t.legacyContext, t.context, t.treeContext), e.pingedTasks.push(t);
|
|
2456
|
-
}
|
|
2457
|
-
return;
|
|
2458
|
-
}
|
|
2459
|
-
if (typeof r == "object" && r) switch (r.$$typeof) {
|
|
2460
|
-
case bt:
|
|
2461
|
-
if (i = Cn(e, t, r.render, i, a), $t !== 0) {
|
|
2462
|
-
r = t.treeContext, t.treeContext = Ht(r, 1, 0);
|
|
2463
|
-
try {
|
|
2464
|
-
$(e, t, i);
|
|
2465
|
-
} finally {
|
|
2466
|
-
t.treeContext = r;
|
|
2467
|
-
}
|
|
2468
|
-
} else $(e, t, i);
|
|
2469
|
-
return;
|
|
2470
|
-
case Ct:
|
|
2471
|
-
r = r.type, i = Tn(r, i), En(e, t, r, i, a);
|
|
2472
|
-
return;
|
|
2473
|
-
case vt:
|
|
2474
|
-
if (a = i.children, r = r._context, i = i.value, o = r._currentValue, r._currentValue = i, s = X, X = i = {
|
|
2475
|
-
parent: s,
|
|
2476
|
-
depth: s === null ? 0 : s.depth + 1,
|
|
2477
|
-
context: r,
|
|
2478
|
-
parentValue: o,
|
|
2479
|
-
value: i
|
|
2480
|
-
}, t.context = i, $(e, t, a), e = X, e === null) throw Error(n(403));
|
|
2481
|
-
i = e.parentValue, e.context._currentValue = i === Ot ? e.context._defaultValue : i, e = X = e.parent, t.context = e;
|
|
2482
|
-
return;
|
|
2483
|
-
case yt:
|
|
2484
|
-
i = i.children, i = i(r._currentValue), $(e, t, i);
|
|
2485
|
-
return;
|
|
2486
|
-
case wt:
|
|
2487
|
-
a = r._init, r = a(r._payload), i = Tn(r, i), En(e, t, r, i, void 0);
|
|
2488
|
-
return;
|
|
2489
|
-
}
|
|
2490
|
-
throw Error(n(130, r == null ? r : typeof r, ""));
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
function $(e, t, r) {
|
|
2494
|
-
if (t.node = r, typeof r == "object" && r) {
|
|
2495
|
-
switch (r.$$typeof) {
|
|
2496
|
-
case J:
|
|
2497
|
-
En(e, t, r.type, r.props, r.ref);
|
|
2498
|
-
return;
|
|
2499
|
-
case ht: throw Error(n(257));
|
|
2500
|
-
case wt:
|
|
2501
|
-
var i = r._init;
|
|
2502
|
-
r = i(r._payload), $(e, t, r);
|
|
2503
|
-
return;
|
|
2504
|
-
}
|
|
2505
|
-
if (O(r)) {
|
|
2506
|
-
Dn(e, t, r);
|
|
2507
|
-
return;
|
|
2508
|
-
}
|
|
2509
|
-
if (typeof r != "object" || !r ? i = null : (i = kt && r[kt] || r["@@iterator"], i = typeof i == "function" ? i : null), i &&= i.call(r)) {
|
|
2510
|
-
if (r = i.next(), !r.done) {
|
|
2511
|
-
var a = [];
|
|
2512
|
-
do
|
|
2513
|
-
a.push(r.value), r = i.next();
|
|
2514
|
-
while (!r.done);
|
|
2515
|
-
Dn(e, t, a);
|
|
2516
|
-
}
|
|
2517
|
-
return;
|
|
2518
|
-
}
|
|
2519
|
-
throw e = Object.prototype.toString.call(r), Error(n(31, e === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : e));
|
|
2520
|
-
}
|
|
2521
|
-
typeof r == "string" ? (i = t.blockedSegment, i.lastPushedText = ue(t.blockedSegment.chunks, r, e.responseState, i.lastPushedText)) : typeof r == "number" && (i = t.blockedSegment, i.lastPushedText = ue(t.blockedSegment.chunks, "" + r, e.responseState, i.lastPushedText));
|
|
2522
|
-
}
|
|
2523
|
-
function Dn(e, t, n) {
|
|
2524
|
-
for (var r = n.length, i = 0; i < r; i++) {
|
|
2525
|
-
var a = t.treeContext;
|
|
2526
|
-
t.treeContext = Ht(a, r, i);
|
|
2527
|
-
try {
|
|
2528
|
-
On(e, t, n[i]);
|
|
2529
|
-
} finally {
|
|
2530
|
-
t.treeContext = a;
|
|
2531
|
-
}
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
function On(e, t, n) {
|
|
2535
|
-
var r = t.blockedSegment.formatContext, i = t.legacyContext, a = t.context;
|
|
2536
|
-
try {
|
|
2537
|
-
return $(e, t, n);
|
|
2538
|
-
} catch (c) {
|
|
2539
|
-
if (on(), typeof c == "object" && c && typeof c.then == "function") {
|
|
2540
|
-
n = c;
|
|
2541
|
-
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, Rt(a);
|
|
2543
|
-
} else throw t.blockedSegment.formatContext = r, t.legacyContext = i, t.context = a, Rt(a), c;
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
function kn(e) {
|
|
2547
|
-
var t = e.blockedBoundary;
|
|
2548
|
-
e = e.blockedSegment, e.status = 3, Mn(this, t, e);
|
|
2549
|
-
}
|
|
2550
|
-
function An(e, t, r) {
|
|
2551
|
-
var i = e.blockedBoundary;
|
|
2552
|
-
e.blockedSegment.status = 3, i === null ? (t.allPendingTasks--, t.status !== 2 && (t.status = 2, t.destination !== null && t.destination.close())) : (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) {
|
|
2553
|
-
return An(e, t, r);
|
|
2554
|
-
}), i.fallbackAbortableTasks.clear(), t.allPendingTasks--, t.allPendingTasks === 0 && (i = t.onAllReady, i()));
|
|
2555
|
-
}
|
|
2556
|
-
function jn(e, t) {
|
|
2557
|
-
if (t.chunks.length === 0 && t.children.length === 1 && t.children[0].boundary === null) {
|
|
2558
|
-
var n = t.children[0];
|
|
2559
|
-
n.id = t.id, n.parentFlushed = !0, n.status === 1 && jn(e, n);
|
|
2560
|
-
} else e.completedSegments.push(t);
|
|
2561
|
-
}
|
|
2562
|
-
function Mn(e, t, r) {
|
|
2563
|
-
if (t === null) {
|
|
2564
|
-
if (r.parentFlushed) {
|
|
2565
|
-
if (e.completedRootSegment !== null) throw Error(n(389));
|
|
2566
|
-
e.completedRootSegment = r;
|
|
2567
|
-
}
|
|
2568
|
-
e.pendingRootTasks--, e.pendingRootTasks === 0 && (e.onShellError = _n, t = e.onShellReady, t());
|
|
2569
|
-
} else t.pendingTasks--, t.forceClientRender || (t.pendingTasks === 0 ? (r.parentFlushed && r.status === 1 && jn(t, r), t.parentFlushed && e.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(kn, e), t.fallbackAbortableTasks.clear()) : r.parentFlushed && r.status === 1 && (jn(t, r), t.completedSegments.length === 1 && t.parentFlushed && e.partialBoundaries.push(t)));
|
|
2570
|
-
e.allPendingTasks--, e.allPendingTasks === 0 && (e = e.onAllReady, e());
|
|
2571
|
-
}
|
|
2572
|
-
function Nn(e) {
|
|
2573
|
-
if (e.status !== 2) {
|
|
2574
|
-
var t = X, n = hn.current;
|
|
2575
|
-
hn.current = pn;
|
|
2576
|
-
var r = mn;
|
|
2577
|
-
mn = e.responseState;
|
|
2578
|
-
try {
|
|
2579
|
-
var i = e.pingedTasks, a;
|
|
2580
|
-
for (a = 0; a < i.length; a++) {
|
|
2581
|
-
var o = i[a], s = e, c = o.blockedSegment;
|
|
2582
|
-
if (c.status === 0) {
|
|
2583
|
-
Rt(o.context);
|
|
2584
|
-
try {
|
|
2585
|
-
$(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
|
-
} catch (e) {
|
|
2587
|
-
if (on(), typeof e == "object" && e && typeof e.then == "function") {
|
|
2588
|
-
var l = o.ping;
|
|
2589
|
-
e.then(l, l);
|
|
2590
|
-
} else {
|
|
2591
|
-
o.abortSet.delete(o), c.status = 4;
|
|
2592
|
-
var u = o.blockedBoundary, d = e, f = xn(s, d);
|
|
2593
|
-
if (u === null ? Sn(s, d) : (u.pendingTasks--, u.forceClientRender || (u.forceClientRender = !0, u.errorDigest = f, u.parentFlushed && s.clientRenderedBoundaries.push(u))), s.allPendingTasks--, s.allPendingTasks === 0) {
|
|
2594
|
-
var p = s.onAllReady;
|
|
2595
|
-
p();
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
}
|
|
2601
|
-
i.splice(0, a), e.destination !== null && zn(e, e.destination);
|
|
2602
|
-
} catch (t) {
|
|
2603
|
-
xn(e, t), Sn(e, t);
|
|
2604
|
-
} finally {
|
|
2605
|
-
mn = r, hn.current = n, n === pn && Rt(t);
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
}
|
|
2609
|
-
function Pn(e, t, r) {
|
|
2610
|
-
switch (r.parentFlushed = !0, r.status) {
|
|
2611
|
-
case 0:
|
|
2612
|
-
var i = r.id = e.nextSegmentId++;
|
|
2613
|
-
return r.lastPushedText = !1, r.textEmbedded = !1, e = e.responseState, o(t, De), o(t, e.placeholderPrefix), e = u(i.toString(16)), o(t, e), s(t, Oe);
|
|
2614
|
-
case 1:
|
|
2615
|
-
r.status = 2;
|
|
2616
|
-
var a = !0;
|
|
2617
|
-
i = r.chunks;
|
|
2618
|
-
var c = 0;
|
|
2619
|
-
r = r.children;
|
|
2620
|
-
for (var l = 0; l < r.length; l++) {
|
|
2621
|
-
for (a = r[l]; c < a.index; c++) o(t, i[c]);
|
|
2622
|
-
a = Fn(e, t, a);
|
|
2623
|
-
}
|
|
2624
|
-
for (; c < i.length - 1; c++) o(t, i[c]);
|
|
2625
|
-
return c < i.length && (a = s(t, i[c])), a;
|
|
2626
|
-
default: throw Error(n(390));
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
function Fn(e, t, r) {
|
|
2630
|
-
var i = r.boundary;
|
|
2631
|
-
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(T(i))), o(t, Pe)), s(t, B), Pn(e, t, r);
|
|
2633
|
-
else if (0 < i.pendingTasks) {
|
|
2634
|
-
i.rootSegmentID = e.nextSegmentId++, 0 < i.completedSegments.length && e.partialBoundaries.push(i);
|
|
2635
|
-
var a = e.responseState, c = a.nextSuspenseID++;
|
|
2636
|
-
a = d(a.boundaryPrefix + c.toString(16)), i = i.id = a, V(t, e.responseState, i), Pn(e, t, r);
|
|
2637
|
-
} else if (i.byteSize > e.progressiveChunkSize) i.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(i), V(t, e.responseState, i.id), Pn(e, t, r);
|
|
2638
|
-
else {
|
|
2639
|
-
if (s(t, ke), r = i.completedSegments, r.length !== 1) throw Error(n(391));
|
|
2640
|
-
Fn(e, t, r[0]);
|
|
2641
|
-
}
|
|
2642
|
-
return s(t, Me);
|
|
2643
|
-
}
|
|
2644
|
-
function In(e, t, n) {
|
|
2645
|
-
return Qe(t, e.responseState, n.formatContext, n.id), Fn(e, t, n), $e(t, n.formatContext);
|
|
2646
|
-
}
|
|
2647
|
-
function Ln(e, t, r) {
|
|
2648
|
-
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, at) : (e.sentCompleteBoundaryFunction = !0, o(t, it)), i === null) throw Error(n(395));
|
|
2650
|
-
return r = u(r.toString(16)), o(t, i), o(t, ot), o(t, e.segmentPrefix), o(t, r), s(t, st);
|
|
2651
|
-
}
|
|
2652
|
-
function Rn(e, t, r, i) {
|
|
2653
|
-
if (i.status === 2) return !0;
|
|
2654
|
-
var a = i.id;
|
|
2655
|
-
if (a === -1) {
|
|
2656
|
-
if ((i.id = r.rootSegmentID) === -1) throw Error(n(392));
|
|
2657
|
-
return In(e, t, i);
|
|
2658
|
-
}
|
|
2659
|
-
return In(e, t, i), e = e.responseState, o(t, e.startInlineScript), e.sentCompleteSegmentFunction ? o(t, tt) : (e.sentCompleteSegmentFunction = !0, o(t, et)), o(t, e.segmentPrefix), a = u(a.toString(16)), o(t, a), o(t, nt), o(t, e.placeholderPrefix), o(t, a), s(t, rt);
|
|
2660
|
-
}
|
|
2661
|
-
function zn(e, t) {
|
|
2662
|
-
r = new Uint8Array(512), i = 0;
|
|
2663
|
-
try {
|
|
2664
|
-
var a = e.completedRootSegment;
|
|
2665
|
-
if (a !== null && e.pendingRootTasks === 0) {
|
|
2666
|
-
Fn(e, t, a), e.completedRootSegment = null;
|
|
2667
|
-
var l = e.responseState.bootstrapChunks;
|
|
2668
|
-
for (a = 0; a < l.length - 1; a++) o(t, l[a]);
|
|
2669
|
-
a < l.length && s(t, l[a]);
|
|
2670
|
-
}
|
|
2671
|
-
var d = e.clientRenderedBoundaries, f;
|
|
2672
|
-
for (f = 0; f < d.length; f++) {
|
|
2673
|
-
var p = d[f];
|
|
2674
|
-
l = t;
|
|
2675
|
-
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, q) : (m.sentClientRenderFunction = !0, o(l, ct)), h === null) throw Error(n(395));
|
|
2677
|
-
if (o(l, h), o(l, lt), (g || _ || v) && (o(l, dt), o(l, u(pt(g || "")))), (_ || v) && (o(l, dt), o(l, u(pt(_ || "")))), v && (o(l, dt), o(l, u(pt(v)))), !s(l, ut)) {
|
|
2678
|
-
e.destination = null, f++, d.splice(0, f);
|
|
2679
|
-
return;
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
d.splice(0, f);
|
|
2683
|
-
var y = e.completedBoundaries;
|
|
2684
|
-
for (f = 0; f < y.length; f++) if (!Ln(e, t, y[f])) {
|
|
2685
|
-
e.destination = null, f++, y.splice(0, f);
|
|
2686
|
-
return;
|
|
2687
|
-
}
|
|
2688
|
-
y.splice(0, f), c(t), r = new Uint8Array(512), i = 0;
|
|
2689
|
-
var b = e.partialBoundaries;
|
|
2690
|
-
for (f = 0; f < b.length; f++) {
|
|
2691
|
-
var x = b[f];
|
|
2692
|
-
a: {
|
|
2693
|
-
d = e, p = t;
|
|
2694
|
-
var S = x.completedSegments;
|
|
2695
|
-
for (m = 0; m < S.length; m++) if (!Rn(d, p, x, S[m])) {
|
|
2696
|
-
m++, S.splice(0, m);
|
|
2697
|
-
var C = !1;
|
|
2698
|
-
break a;
|
|
2699
|
-
}
|
|
2700
|
-
S.splice(0, m), C = !0;
|
|
2701
|
-
}
|
|
2702
|
-
if (!C) {
|
|
2703
|
-
e.destination = null, f++, b.splice(0, f);
|
|
2704
|
-
return;
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
b.splice(0, f);
|
|
2708
|
-
var w = e.completedBoundaries;
|
|
2709
|
-
for (f = 0; f < w.length; f++) if (!Ln(e, t, w[f])) {
|
|
2710
|
-
e.destination = null, f++, w.splice(0, f);
|
|
2711
|
-
return;
|
|
2712
|
-
}
|
|
2713
|
-
w.splice(0, f);
|
|
2714
|
-
} finally {
|
|
2715
|
-
c(t), e.allPendingTasks === 0 && e.pingedTasks.length === 0 && e.clientRenderedBoundaries.length === 0 && e.completedBoundaries.length === 0 && t.close();
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
function Bn(e, t) {
|
|
2719
|
-
try {
|
|
2720
|
-
var n = e.abortableTasks;
|
|
2721
|
-
n.forEach(function(n) {
|
|
2722
|
-
return An(n, e, t);
|
|
2723
|
-
}), n.clear(), e.destination !== null && zn(e, e.destination);
|
|
2724
|
-
} catch (t) {
|
|
2725
|
-
xn(e, t), Sn(e, t);
|
|
2726
|
-
}
|
|
2727
|
-
}
|
|
2728
|
-
e.renderToReadableStream = function(e, t) {
|
|
2729
|
-
return new Promise(function(n, r) {
|
|
2730
|
-
var i, a, o = new Promise(function(e, t) {
|
|
2731
|
-
a = e, i = t;
|
|
2732
|
-
}), s = vn(e, oe(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), se(t ? t.namespaceURI : void 0), t ? t.progressiveChunkSize : void 0, t ? t.onError : void 0, a, function() {
|
|
2733
|
-
var e = new ReadableStream({
|
|
2734
|
-
type: "bytes",
|
|
2735
|
-
pull: function(e) {
|
|
2736
|
-
if (s.status === 1) s.status = 2, f(e, s.fatalError);
|
|
2737
|
-
else if (s.status !== 2 && s.destination === null) {
|
|
2738
|
-
s.destination = e;
|
|
2739
|
-
try {
|
|
2740
|
-
zn(s, e);
|
|
2741
|
-
} catch (e) {
|
|
2742
|
-
xn(s, e), Sn(s, e);
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
},
|
|
2746
|
-
cancel: function() {
|
|
2747
|
-
Bn(s);
|
|
2748
|
-
}
|
|
2749
|
-
}, { highWaterMark: 0 });
|
|
2750
|
-
e.allReady = o, n(e);
|
|
2751
|
-
}, function(e) {
|
|
2752
|
-
o.catch(function() {}), r(e);
|
|
2753
|
-
}, i);
|
|
2754
|
-
if (t && t.signal) {
|
|
2755
|
-
var c = t.signal, l = function() {
|
|
2756
|
-
Bn(s, c.reason), c.removeEventListener("abort", l);
|
|
2757
|
-
};
|
|
2758
|
-
c.addEventListener("abort", l);
|
|
2759
|
-
}
|
|
2760
|
-
Nn(s);
|
|
2761
|
-
});
|
|
2762
|
-
}, e.version = "18.3.1";
|
|
2763
|
-
})), ge = /* @__PURE__ */ e(((e) => {
|
|
2764
|
-
var t = M(), n = N();
|
|
2765
|
-
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
|
-
})), P = /* @__PURE__ */ t(n(), 1), F = ge(), _e = (0, P.default)("@pie-lib:text-select:token-select"), ve = x("div")(() => ({
|
|
2767
|
-
backgroundColor: "none",
|
|
2768
|
-
whiteSpace: "pre",
|
|
2769
|
-
...g(),
|
|
2770
|
-
"& p": { whiteSpace: "break-spaces" }
|
|
2771
|
-
})), ye = x("div")(() => ({
|
|
2772
|
-
display: "none",
|
|
2773
|
-
position: "absolute",
|
|
2774
|
-
visibility: "hidden",
|
|
2775
|
-
pointerEvents: "none"
|
|
2776
|
-
})), be = (e = "") => e.replace(/ /gi, "\xA0"), xe = (e = "") => be(e).replace(/<\/p>\s*<p[^>]*>/gi, "\n\n").replace(/<br\s*\/?>/gi, "\n").replace(/<\/?(table|tbody|tr|td|p)[^>]*>/gi, ""), Se = class extends C.Component {
|
|
2777
|
-
static propTypes = {
|
|
2778
|
-
tokens: O.default.arrayOf(O.default.shape(he)).isRequired,
|
|
2779
|
-
className: O.default.string,
|
|
2780
|
-
onChange: O.default.func.isRequired,
|
|
2781
|
-
disabled: O.default.bool,
|
|
2782
|
-
highlightChoices: O.default.bool,
|
|
2783
|
-
animationsDisabled: O.default.bool,
|
|
2784
|
-
maxNoOfSelections: O.default.number
|
|
2785
|
-
};
|
|
2786
|
-
static defaultProps = {
|
|
2787
|
-
highlightChoices: !1,
|
|
2788
|
-
maxNoOfSelections: 0,
|
|
2789
|
-
tokens: []
|
|
2790
|
-
};
|
|
2791
|
-
selectedCount = () => this.props.tokens.filter((e) => e.selected).length;
|
|
2792
|
-
canSelectMore = (e) => {
|
|
2793
|
-
let { maxNoOfSelections: t } = this.props;
|
|
2794
|
-
return t === 1 ? !0 : (_e("[canSelectMore] maxNoOfSelections: ", t, "selectedCount: ", e), t <= 0 || isFinite(t) && e < t);
|
|
2795
|
-
};
|
|
2796
|
-
toggleToken = (e) => {
|
|
2797
|
-
let { target: t } = e, { tokens: n, animationsDisabled: a } = this.props, o = r(n), s = (t.closest?.(`.${j.rootClassName}`))?.dataset?.indexkey, c = s === void 0 ? void 0 : o[s];
|
|
2798
|
-
if (c && c.correct === void 0 && !a && !c.isMissing) {
|
|
2799
|
-
let { onChange: e, maxNoOfSelections: t } = this.props, r = !c.selected;
|
|
2800
|
-
if (t === 1 && this.selectedCount() === 1) {
|
|
2801
|
-
let t = (n || []).filter((e) => e.selected), a = o.map((e) => i(e, t[0]) ? {
|
|
2802
|
-
...e,
|
|
2803
|
-
selected: !1
|
|
2804
|
-
} : {
|
|
2805
|
-
...e,
|
|
2806
|
-
selectable: !0
|
|
2807
|
-
}), l = {
|
|
2808
|
-
...c,
|
|
2809
|
-
selected: r
|
|
2810
|
-
};
|
|
2811
|
-
a.splice(s, 1, l), e(a);
|
|
2812
|
-
} else {
|
|
2813
|
-
if (r && t > 0 && this.selectedCount() >= t) {
|
|
2814
|
-
_e("skip toggle max reached");
|
|
2815
|
-
return;
|
|
2816
|
-
}
|
|
2817
|
-
let n = {
|
|
2818
|
-
...c,
|
|
2819
|
-
selected: r
|
|
2820
|
-
};
|
|
2821
|
-
o.splice(s, 1, n), e(o);
|
|
2822
|
-
}
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
|
-
generateTokensInHtml = () => {
|
|
2826
|
-
let { tokens: e, disabled: t, highlightChoices: n, animationsDisabled: r } = this.props, i = this.selectedCount();
|
|
2827
|
-
return (e || []).reduce((e, a, o) => {
|
|
2828
|
-
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, F.renderToString)(/* @__PURE__ */ E(j, {
|
|
2830
|
-
disabled: t,
|
|
2831
|
-
index: o,
|
|
2832
|
-
...a,
|
|
2833
|
-
text: xe(a.text),
|
|
2834
|
-
selectable: s,
|
|
2835
|
-
highlight: n,
|
|
2836
|
-
animationsDisabled: r
|
|
2837
|
-
}, o)) : e + be(a.text);
|
|
2838
|
-
}, "<p>") + "</p>";
|
|
2839
|
-
};
|
|
2840
|
-
render() {
|
|
2841
|
-
let { className: e } = this.props, t = this.generateTokensInHtml();
|
|
2842
|
-
return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D(ye, {
|
|
2843
|
-
"aria-hidden": "true",
|
|
2844
|
-
children: [
|
|
2845
|
-
/* @__PURE__ */ E(j, {
|
|
2846
|
-
text: " ",
|
|
2847
|
-
index: -1,
|
|
2848
|
-
selectable: !0,
|
|
2849
|
-
disabled: !1,
|
|
2850
|
-
highlight: !1,
|
|
2851
|
-
animationsDisabled: !1
|
|
2852
|
-
}),
|
|
2853
|
-
/* @__PURE__ */ E(j, {
|
|
2854
|
-
text: " ",
|
|
2855
|
-
index: -1,
|
|
2856
|
-
selectable: !0,
|
|
2857
|
-
disabled: !1,
|
|
2858
|
-
highlight: !0,
|
|
2859
|
-
animationsDisabled: !1
|
|
2860
|
-
}),
|
|
2861
|
-
/* @__PURE__ */ E(j, {
|
|
2862
|
-
text: " ",
|
|
2863
|
-
index: -1,
|
|
2864
|
-
selectable: !0,
|
|
2865
|
-
selected: !0,
|
|
2866
|
-
disabled: !1,
|
|
2867
|
-
highlight: !1,
|
|
2868
|
-
animationsDisabled: !1
|
|
2869
|
-
}),
|
|
2870
|
-
/* @__PURE__ */ E(j, {
|
|
2871
|
-
text: " ",
|
|
2872
|
-
index: -1,
|
|
2873
|
-
selectable: !0,
|
|
2874
|
-
selected: !0,
|
|
2875
|
-
disabled: !0,
|
|
2876
|
-
highlight: !1,
|
|
2877
|
-
animationsDisabled: !1
|
|
2878
|
-
}),
|
|
2879
|
-
/* @__PURE__ */ E(j, {
|
|
2880
|
-
text: " ",
|
|
2881
|
-
index: -1,
|
|
2882
|
-
selectable: !0,
|
|
2883
|
-
disabled: !1,
|
|
2884
|
-
highlight: !1,
|
|
2885
|
-
animationsDisabled: !0,
|
|
2886
|
-
predefined: !0
|
|
2887
|
-
}),
|
|
2888
|
-
/* @__PURE__ */ E(j, {
|
|
2889
|
-
text: " ",
|
|
2890
|
-
index: -1,
|
|
2891
|
-
selectable: !0,
|
|
2892
|
-
selected: !0,
|
|
2893
|
-
correct: !0,
|
|
2894
|
-
disabled: !1,
|
|
2895
|
-
highlight: !1,
|
|
2896
|
-
animationsDisabled: !1
|
|
2897
|
-
}),
|
|
2898
|
-
/* @__PURE__ */ E(j, {
|
|
2899
|
-
text: " ",
|
|
2900
|
-
index: -1,
|
|
2901
|
-
selectable: !0,
|
|
2902
|
-
selected: !0,
|
|
2903
|
-
correct: !1,
|
|
2904
|
-
disabled: !1,
|
|
2905
|
-
highlight: !1,
|
|
2906
|
-
animationsDisabled: !1
|
|
2907
|
-
}),
|
|
2908
|
-
/* @__PURE__ */ E(j, {
|
|
2909
|
-
text: " ",
|
|
2910
|
-
index: -1,
|
|
2911
|
-
isMissing: !0,
|
|
2912
|
-
disabled: !1,
|
|
2913
|
-
highlight: !1,
|
|
2914
|
-
animationsDisabled: !1
|
|
2915
|
-
})
|
|
2916
|
-
]
|
|
2917
|
-
}), /* @__PURE__ */ E(ve, {
|
|
2918
|
-
className: e,
|
|
2919
|
-
onClick: this.toggleToken,
|
|
2920
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
2921
|
-
})] });
|
|
2922
|
-
}
|
|
2923
|
-
}, Ce = (0, P.default)("@pie-lib:text-select"), I = class extends C.Component {
|
|
2924
|
-
static propTypes = {
|
|
2925
|
-
onChange: O.default.func,
|
|
2926
|
-
disabled: O.default.bool,
|
|
2927
|
-
tokens: O.default.arrayOf(O.default.shape(he)).isRequired,
|
|
2928
|
-
selectedTokens: O.default.arrayOf(O.default.shape(he)).isRequired,
|
|
2929
|
-
text: O.default.string.isRequired,
|
|
2930
|
-
className: O.default.string,
|
|
2931
|
-
highlightChoices: O.default.bool,
|
|
2932
|
-
animationsDisabled: O.default.bool,
|
|
2933
|
-
maxNoOfSelections: O.default.number
|
|
2934
|
-
};
|
|
2935
|
-
change = (e) => {
|
|
2936
|
-
let { onChange: t } = this.props;
|
|
2937
|
-
t && t(e.filter((e) => e.selected).map((e) => ({
|
|
2938
|
-
start: e.start,
|
|
2939
|
-
end: e.end
|
|
2940
|
-
})));
|
|
2941
|
-
};
|
|
2942
|
-
render() {
|
|
2943
|
-
let { text: e, disabled: t, tokens: n, selectedTokens: r, className: i, highlightChoices: a, maxNoOfSelections: o, animationsDisabled: s } = this.props, c = _(e, n);
|
|
2944
|
-
Ce("normalized: ", c);
|
|
2945
|
-
let l = c.map((e) => {
|
|
2946
|
-
let n = r.findIndex((t) => t.start === e.start && t.end === e.end) !== -1, i = n ? e.correct : void 0, a = e.isMissing;
|
|
2947
|
-
return {
|
|
2948
|
-
...e,
|
|
2949
|
-
selectable: !t && e.predefined,
|
|
2950
|
-
selected: n,
|
|
2951
|
-
correct: i,
|
|
2952
|
-
isMissing: a
|
|
2953
|
-
};
|
|
2954
|
-
});
|
|
2955
|
-
return /* @__PURE__ */ E(Se, {
|
|
2956
|
-
highlightChoices: !t && a,
|
|
2957
|
-
className: i,
|
|
2958
|
-
tokens: l,
|
|
2959
|
-
disabled: t,
|
|
2960
|
-
onChange: this.change,
|
|
2961
|
-
maxNoOfSelections: o,
|
|
2962
|
-
animationsDisabled: s
|
|
2963
|
-
});
|
|
2964
|
-
}
|
|
2965
|
-
}, L = {
|
|
2966
|
-
translation: {
|
|
2967
|
-
categorize: {
|
|
2968
|
-
limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
2969
|
-
maxChoicesPerCategoryRestriction: "To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."
|
|
2970
|
-
},
|
|
2971
|
-
ebsr: { part: "Part {{index}}" },
|
|
2972
|
-
numberLine: {
|
|
2973
|
-
addElementLimit_one: "You can only add {{count}} element",
|
|
2974
|
-
addElementLimit_other: "You can only add {{count}} elements",
|
|
2975
|
-
clearAll: "Clear all"
|
|
2976
|
-
},
|
|
2977
|
-
imageClozeAssociation: {
|
|
2978
|
-
reachedLimit_one: "You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",
|
|
2979
|
-
reachedLimit_other: "Full"
|
|
2980
|
-
},
|
|
2981
|
-
drawingResponse: {
|
|
2982
|
-
fillColor: "Fill color",
|
|
2983
|
-
outlineColor: "Outline color",
|
|
2984
|
-
noFill: "No fill",
|
|
2985
|
-
lightblue: "Light blue",
|
|
2986
|
-
lightyellow: "Light yellow",
|
|
2987
|
-
red: "Red",
|
|
2988
|
-
orange: "Orange",
|
|
2989
|
-
yellow: "Yellow",
|
|
2990
|
-
violet: "Violet",
|
|
2991
|
-
blue: "Blue",
|
|
2992
|
-
green: "Green",
|
|
2993
|
-
white: "White",
|
|
2994
|
-
black: "Black",
|
|
2995
|
-
onDoubleClick: "Double click to edit this text. Press Enter to submit."
|
|
2996
|
-
},
|
|
2997
|
-
charting: {
|
|
2998
|
-
addCategory: "Add category",
|
|
2999
|
-
actions: "Actions",
|
|
3000
|
-
add: "Add",
|
|
3001
|
-
delete: "Delete",
|
|
3002
|
-
newLabel: "New label",
|
|
3003
|
-
reachedLimit_other: "There can't be more than {{count}} categories.",
|
|
3004
|
-
keyLegend: {
|
|
3005
|
-
incorrectAnswer: "Student incorrect answer",
|
|
3006
|
-
correctAnswer: "Student correct answer",
|
|
3007
|
-
correctKeyAnswer: "Answer key correct"
|
|
3008
|
-
}
|
|
3009
|
-
},
|
|
3010
|
-
graphing: {
|
|
3011
|
-
point: "Point",
|
|
3012
|
-
circle: "Circle",
|
|
3013
|
-
line: "Line",
|
|
3014
|
-
parabola: "Parabola",
|
|
3015
|
-
absolute: "Absolute Value",
|
|
3016
|
-
exponential: "Exponential",
|
|
3017
|
-
polygon: "Polygon",
|
|
3018
|
-
ray: "Ray",
|
|
3019
|
-
segment: "Segment",
|
|
3020
|
-
sine: "Sine",
|
|
3021
|
-
vector: "Vector",
|
|
3022
|
-
label: "Label",
|
|
3023
|
-
redo: "Redo",
|
|
3024
|
-
reset: "Reset"
|
|
3025
|
-
},
|
|
3026
|
-
mathInline: { primaryCorrectWithAlternates: "Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct." },
|
|
3027
|
-
multipleChoice: {
|
|
3028
|
-
minSelections: "Select at least {{minSelections}}.",
|
|
3029
|
-
maxSelections_one: "Only {{maxSelections}} answer is allowed.",
|
|
3030
|
-
maxSelections_other: "Only {{maxSelections}} answers are allowed.",
|
|
3031
|
-
minmaxSelections_equal: "Select {{minSelections}}.",
|
|
3032
|
-
minmaxSelections_range: "Select between {{minSelections}} and {{maxSelections}}."
|
|
3033
|
-
},
|
|
3034
|
-
selectText: {
|
|
3035
|
-
correctAnswerSelected: "Correct",
|
|
3036
|
-
correctAnswerNotSelected: "Correct Answer Not Selected",
|
|
3037
|
-
incorrectSelection: "Incorrect Selection",
|
|
3038
|
-
key: "Key"
|
|
3039
|
-
}
|
|
3040
|
-
},
|
|
3041
|
-
common: {
|
|
3042
|
-
undo: "Undo",
|
|
3043
|
-
clearAll: "Clear all",
|
|
3044
|
-
correct: "Correct",
|
|
3045
|
-
incorrect: "Incorrect",
|
|
3046
|
-
showCorrectAnswer: "Show correct answer",
|
|
3047
|
-
hideCorrectAnswer: "Hide correct answer",
|
|
3048
|
-
commonCorrectAnswerWithAlternates: "Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",
|
|
3049
|
-
warning: "Warning",
|
|
3050
|
-
showNote: "Show Note",
|
|
3051
|
-
hideNote: "Hide Note",
|
|
3052
|
-
cancel: "Cancel"
|
|
3053
|
-
}
|
|
3054
|
-
}, we = {
|
|
3055
|
-
translation: {
|
|
3056
|
-
categorize: {
|
|
3057
|
-
limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
|
|
3058
|
-
maxChoicesPerCategoryRestriction: "Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"
|
|
3059
|
-
},
|
|
3060
|
-
ebsr: { part: "Parte {{index}}" },
|
|
3061
|
-
numberLine: {
|
|
3062
|
-
addElementLimit_one: "Solo puedes agregar {{count}} elemento",
|
|
3063
|
-
addElementLimit_other: "Solo puedes agregar {{count}} elementos",
|
|
3064
|
-
clearAll: "Borrar todo"
|
|
3065
|
-
},
|
|
3066
|
-
imageClozeAssociation: {
|
|
3067
|
-
reachedLimit_one: "Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
|
|
3068
|
-
reachedLimit_other: "Lleno"
|
|
3069
|
-
},
|
|
3070
|
-
drawingResponse: {
|
|
3071
|
-
fillColor: "Color de relleno",
|
|
3072
|
-
outlineColor: "Color del contorno",
|
|
3073
|
-
noFill: "Sin relleno",
|
|
3074
|
-
lightblue: "Azul claro",
|
|
3075
|
-
lightyellow: "Amarillo claro",
|
|
3076
|
-
red: "Rojo",
|
|
3077
|
-
orange: "Naranja",
|
|
3078
|
-
yellow: "Amarillo",
|
|
3079
|
-
violet: "Violeta",
|
|
3080
|
-
blue: "Azul",
|
|
3081
|
-
green: "Verde",
|
|
3082
|
-
white: "Blanco",
|
|
3083
|
-
black: "Negro",
|
|
3084
|
-
onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
|
|
3085
|
-
},
|
|
3086
|
-
charting: {
|
|
3087
|
-
addCategory: "Añadir categoría",
|
|
3088
|
-
actions: "Acciones",
|
|
3089
|
-
add: "Añadir",
|
|
3090
|
-
delete: "Eliminar",
|
|
3091
|
-
newLabel: "Nueva etiqueta",
|
|
3092
|
-
reachedLimit_other: "No puede haber más de {{count}} categorías.",
|
|
3093
|
-
keyLegend: {
|
|
3094
|
-
incorrectAnswer: "Respuesta incorrecta del estudiante",
|
|
3095
|
-
correctAnswer: "Respuesta correcta del estudiante",
|
|
3096
|
-
correctKeyAnswer: "Clave de respuesta correcta"
|
|
3097
|
-
}
|
|
3098
|
-
},
|
|
3099
|
-
graphing: {
|
|
3100
|
-
point: "Punto",
|
|
3101
|
-
circle: "Circulo",
|
|
3102
|
-
line: "Línea",
|
|
3103
|
-
parabola: "Parábola",
|
|
3104
|
-
absolute: "Valor absoluto",
|
|
3105
|
-
exponential: "Exponencial",
|
|
3106
|
-
polygon: "Polígono",
|
|
3107
|
-
ray: "Semirrecta",
|
|
3108
|
-
segment: "Segmento ",
|
|
3109
|
-
sine: "Seno",
|
|
3110
|
-
vector: "Vector",
|
|
3111
|
-
label: "Etiqueta",
|
|
3112
|
-
redo: "Rehacer",
|
|
3113
|
-
reset: "Reiniciar"
|
|
3114
|
-
},
|
|
3115
|
-
mathInline: { primaryCorrectWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas." },
|
|
3116
|
-
multipleChoice: {
|
|
3117
|
-
minSelections: "Seleccione al menos {{minSelections}}.",
|
|
3118
|
-
maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
|
|
3119
|
-
maxSelections_other: "Sólo se permiten {{maxSelections}} respuestas.",
|
|
3120
|
-
minmaxSelections_equal: "Seleccione {{minSelections}}.",
|
|
3121
|
-
minmaxSelections_range: "Seleccione entre {{minSelections}} y {{maxSelections}}."
|
|
3122
|
-
},
|
|
3123
|
-
selectText: {
|
|
3124
|
-
correctAnswerSelected: "Respuesta Correcta",
|
|
3125
|
-
correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
|
|
3126
|
-
incorrectSelection: "Selección Incorrecta",
|
|
3127
|
-
key: "Clave"
|
|
3128
|
-
}
|
|
3129
|
-
},
|
|
3130
|
-
common: {
|
|
3131
|
-
undo: "Deshacer",
|
|
3132
|
-
clearAll: "Borrar todo",
|
|
3133
|
-
correct: "Correct",
|
|
3134
|
-
incorrect: "Incorrect",
|
|
3135
|
-
showCorrectAnswer: "Mostrar respuesta correcta",
|
|
3136
|
-
hideCorrectAnswer: "Ocultar respuesta correcta",
|
|
3137
|
-
commonCorrectAnswerWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",
|
|
3138
|
-
warning: "Advertencia",
|
|
3139
|
-
showNote: "Mostrar Nota",
|
|
3140
|
-
hideNote: "Ocultar Nota",
|
|
3141
|
-
cancel: "Cancelar"
|
|
3142
|
-
}
|
|
3143
|
-
}, R = (e) => typeof e == "string", Te = () => {
|
|
3144
|
-
let e, t, n = new Promise((n, r) => {
|
|
3145
|
-
e = n, t = r;
|
|
3146
|
-
});
|
|
3147
|
-
return n.resolve = e, n.reject = t, n;
|
|
3148
|
-
}, Ee = (e) => e == null ? "" : "" + e, De = (e, t, n) => {
|
|
3149
|
-
e.forEach((e) => {
|
|
3150
|
-
t[e] && (n[e] = t[e]);
|
|
3151
|
-
});
|
|
3152
|
-
}, Oe = /###/g, ke = (e) => e && e.indexOf("###") > -1 ? e.replace(Oe, ".") : e, Ae = (e) => !e || R(e), z = (e, t, n) => {
|
|
3153
|
-
let r = R(t) ? t.split(".") : t, i = 0;
|
|
3154
|
-
for (; i < r.length - 1;) {
|
|
3155
|
-
if (Ae(e)) return {};
|
|
3156
|
-
let t = ke(r[i]);
|
|
3157
|
-
!e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
|
|
3158
|
-
}
|
|
3159
|
-
return Ae(e) ? {} : {
|
|
3160
|
-
obj: e,
|
|
3161
|
-
k: ke(r[i])
|
|
3162
|
-
};
|
|
3163
|
-
}, je = (e, t, n) => {
|
|
3164
|
-
let { obj: r, k: i } = z(e, t, Object);
|
|
3165
|
-
if (r !== void 0 || t.length === 1) {
|
|
3166
|
-
r[i] = n;
|
|
3167
|
-
return;
|
|
3168
|
-
}
|
|
3169
|
-
let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = z(e, o, Object);
|
|
3170
|
-
for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = z(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
|
|
3171
|
-
s.obj[`${s.k}.${a}`] = n;
|
|
3172
|
-
}, Me = (e, t, n, r) => {
|
|
3173
|
-
let { obj: i, k: a } = z(e, t, Object);
|
|
3174
|
-
i[a] = i[a] || [], i[a].push(n);
|
|
3175
|
-
}, Ne = (e, t) => {
|
|
3176
|
-
let { obj: n, k: r } = z(e, t);
|
|
3177
|
-
if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
|
|
3178
|
-
}, Pe = (e, t, n) => {
|
|
3179
|
-
let r = Ne(e, n);
|
|
3180
|
-
return r === void 0 ? Ne(t, n) : r;
|
|
3181
|
-
}, Fe = (e, t, n) => {
|
|
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]) : Fe(e[r], t[r], n) : e[r] = t[r]);
|
|
3183
|
-
return e;
|
|
3184
|
-
}, B = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), V = {
|
|
3185
|
-
"&": "&",
|
|
3186
|
-
"<": "<",
|
|
3187
|
-
">": ">",
|
|
3188
|
-
"\"": """,
|
|
3189
|
-
"'": "'",
|
|
3190
|
-
"/": "/"
|
|
3191
|
-
}, Ie = (e) => R(e) ? e.replace(/[&<>"'\/]/g, (e) => V[e]) : e, Le = class {
|
|
3192
|
-
constructor(e) {
|
|
3193
|
-
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
3194
|
-
}
|
|
3195
|
-
getRegExp(e) {
|
|
3196
|
-
let t = this.regExpMap.get(e);
|
|
3197
|
-
if (t !== void 0) return t;
|
|
3198
|
-
let n = new RegExp(e);
|
|
3199
|
-
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
3200
|
-
}
|
|
3201
|
-
}, H = [
|
|
3202
|
-
" ",
|
|
3203
|
-
",",
|
|
3204
|
-
"?",
|
|
3205
|
-
"!",
|
|
3206
|
-
";"
|
|
3207
|
-
], Re = new Le(20), ze = (e, t, n) => {
|
|
3208
|
-
t ||= "", n ||= "";
|
|
3209
|
-
let r = H.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
|
|
3210
|
-
if (r.length === 0) return !0;
|
|
3211
|
-
let i = Re.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
|
|
3212
|
-
if (!a) {
|
|
3213
|
-
let t = e.indexOf(n);
|
|
3214
|
-
t > 0 && !i.test(e.substring(0, t)) && (a = !0);
|
|
3215
|
-
}
|
|
3216
|
-
return a;
|
|
3217
|
-
}, U = (e, t, n = ".") => {
|
|
3218
|
-
if (!e) return;
|
|
3219
|
-
if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
3220
|
-
let r = t.split(n), i = e;
|
|
3221
|
-
for (let e = 0; e < r.length;) {
|
|
3222
|
-
if (!i || typeof i != "object") return;
|
|
3223
|
-
let t, a = "";
|
|
3224
|
-
for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
|
|
3225
|
-
if ([
|
|
3226
|
-
"string",
|
|
3227
|
-
"number",
|
|
3228
|
-
"boolean"
|
|
3229
|
-
].indexOf(typeof t) > -1 && o < r.length - 1) continue;
|
|
3230
|
-
e += o - e + 1;
|
|
3231
|
-
break;
|
|
3232
|
-
}
|
|
3233
|
-
i = t;
|
|
3234
|
-
}
|
|
3235
|
-
return i;
|
|
3236
|
-
}, W = (e) => e?.replace(/_/g, "-"), Be = {
|
|
3237
|
-
type: "logger",
|
|
3238
|
-
log(e) {
|
|
3239
|
-
this.output("log", e);
|
|
3240
|
-
},
|
|
3241
|
-
warn(e) {
|
|
3242
|
-
this.output("warn", e);
|
|
3243
|
-
},
|
|
3244
|
-
error(e) {
|
|
3245
|
-
this.output("error", e);
|
|
3246
|
-
},
|
|
3247
|
-
output(e, t) {
|
|
3248
|
-
console?.[e]?.apply?.(console, t);
|
|
3249
|
-
}
|
|
3250
|
-
}, G = new class e {
|
|
3251
|
-
constructor(e, t = {}) {
|
|
3252
|
-
this.init(e, t);
|
|
3253
|
-
}
|
|
3254
|
-
init(e, t = {}) {
|
|
3255
|
-
this.prefix = t.prefix || "i18next:", this.logger = e || Be, this.options = t, this.debug = t.debug;
|
|
3256
|
-
}
|
|
3257
|
-
log(...e) {
|
|
3258
|
-
return this.forward(e, "log", "", !0);
|
|
3259
|
-
}
|
|
3260
|
-
warn(...e) {
|
|
3261
|
-
return this.forward(e, "warn", "", !0);
|
|
3262
|
-
}
|
|
3263
|
-
error(...e) {
|
|
3264
|
-
return this.forward(e, "error", "");
|
|
3265
|
-
}
|
|
3266
|
-
deprecate(...e) {
|
|
3267
|
-
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
3268
|
-
}
|
|
3269
|
-
forward(e, t, n, r) {
|
|
3270
|
-
return r && !this.debug ? null : (R(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
3271
|
-
}
|
|
3272
|
-
create(t) {
|
|
3273
|
-
return new e(this.logger, {
|
|
3274
|
-
prefix: `${this.prefix}:${t}:`,
|
|
3275
|
-
...this.options
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
clone(t) {
|
|
3279
|
-
return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
|
|
3280
|
-
}
|
|
3281
|
-
}(), Ve = class {
|
|
3282
|
-
constructor() {
|
|
3283
|
-
this.observers = {};
|
|
3284
|
-
}
|
|
3285
|
-
on(e, t) {
|
|
3286
|
-
return e.split(" ").forEach((e) => {
|
|
3287
|
-
this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
|
|
3288
|
-
let n = this.observers[e].get(t) || 0;
|
|
3289
|
-
this.observers[e].set(t, n + 1);
|
|
3290
|
-
}), this;
|
|
3291
|
-
}
|
|
3292
|
-
off(e, t) {
|
|
3293
|
-
if (this.observers[e]) {
|
|
3294
|
-
if (!t) {
|
|
3295
|
-
delete this.observers[e];
|
|
3296
|
-
return;
|
|
3297
|
-
}
|
|
3298
|
-
this.observers[e].delete(t);
|
|
3299
|
-
}
|
|
3300
|
-
}
|
|
3301
|
-
emit(e, ...t) {
|
|
3302
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
|
|
3303
|
-
for (let r = 0; r < n; r++) e(...t);
|
|
3304
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
|
|
3305
|
-
for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
|
|
3306
|
-
});
|
|
3307
|
-
}
|
|
3308
|
-
}, He = class extends Ve {
|
|
3309
|
-
constructor(e, t = {
|
|
3310
|
-
ns: ["translation"],
|
|
3311
|
-
defaultNS: "translation"
|
|
3312
|
-
}) {
|
|
3313
|
-
super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
|
|
3314
|
-
}
|
|
3315
|
-
addNamespaces(e) {
|
|
3316
|
-
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
|
|
3317
|
-
}
|
|
3318
|
-
removeNamespaces(e) {
|
|
3319
|
-
let t = this.options.ns.indexOf(e);
|
|
3320
|
-
t > -1 && this.options.ns.splice(t, 1);
|
|
3321
|
-
}
|
|
3322
|
-
getResource(e, t, n, r = {}) {
|
|
3323
|
-
let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
|
|
3324
|
-
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 = Ne(this.data, o);
|
|
3326
|
-
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !R(n) ? s : U(this.data?.[e]?.[t], n, i);
|
|
3327
|
-
}
|
|
3328
|
-
addResource(e, t, n, r, i = { silent: !1 }) {
|
|
3329
|
-
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), je(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
3331
|
-
}
|
|
3332
|
-
addResources(e, t, n, r = { silent: !1 }) {
|
|
3333
|
-
for (let r in n) (R(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
|
|
3334
|
-
r.silent || this.emit("added", e, t, n);
|
|
3335
|
-
}
|
|
3336
|
-
addResourceBundle(e, t, n, r, i, a = {
|
|
3337
|
-
silent: !1,
|
|
3338
|
-
skipCopy: !1
|
|
3339
|
-
}) {
|
|
3340
|
-
let o = [e, t];
|
|
3341
|
-
e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
3342
|
-
let s = Ne(this.data, o) || {};
|
|
3343
|
-
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Fe(s, n, i) : s = {
|
|
3344
|
-
...s,
|
|
3345
|
-
...n
|
|
3346
|
-
}, je(this.data, o, s), a.silent || this.emit("added", e, t, n);
|
|
3347
|
-
}
|
|
3348
|
-
removeResourceBundle(e, t) {
|
|
3349
|
-
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
3350
|
-
}
|
|
3351
|
-
hasResourceBundle(e, t) {
|
|
3352
|
-
return this.getResource(e, t) !== void 0;
|
|
3353
|
-
}
|
|
3354
|
-
getResourceBundle(e, t) {
|
|
3355
|
-
return t ||= this.options.defaultNS, this.getResource(e, t);
|
|
3356
|
-
}
|
|
3357
|
-
getDataByLanguage(e) {
|
|
3358
|
-
return this.data[e];
|
|
3359
|
-
}
|
|
3360
|
-
hasLanguageSomeTranslations(e) {
|
|
3361
|
-
let t = this.getDataByLanguage(e);
|
|
3362
|
-
return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
|
|
3363
|
-
}
|
|
3364
|
-
toJSON() {
|
|
3365
|
-
return this.data;
|
|
3366
|
-
}
|
|
3367
|
-
}, Ue = {
|
|
3368
|
-
processors: {},
|
|
3369
|
-
addPostProcessor(e) {
|
|
3370
|
-
this.processors[e.name] = e;
|
|
3371
|
-
},
|
|
3372
|
-
handle(e, t, n, r, i) {
|
|
3373
|
-
return e.forEach((e) => {
|
|
3374
|
-
t = this.processors[e]?.process(t, n, r, i) ?? t;
|
|
3375
|
-
}), t;
|
|
3376
|
-
}
|
|
3377
|
-
}, We = Symbol("i18next/PATH_KEY");
|
|
3378
|
-
function Ge() {
|
|
3379
|
-
let e = [], t = Object.create(null), n;
|
|
3380
|
-
return t.get = (r, i) => (n?.revoke?.(), i === We ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
|
|
3381
|
-
}
|
|
3382
|
-
function K(e, t) {
|
|
3383
|
-
let { [We]: n } = e(Ge()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
|
|
3384
|
-
if (n.length > 1 && i) {
|
|
3385
|
-
let e = t?.ns, a = Array.isArray(e) ? e : null;
|
|
3386
|
-
if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
|
|
3387
|
-
}
|
|
3388
|
-
return n.join(r);
|
|
3389
|
-
}
|
|
3390
|
-
var Ke = {}, qe = (e) => !R(e) && typeof e != "boolean" && typeof e != "number", Je = class e extends Ve {
|
|
3391
|
-
constructor(e, t = {}) {
|
|
3392
|
-
super(), De([
|
|
3393
|
-
"resourceStore",
|
|
3394
|
-
"languageUtils",
|
|
3395
|
-
"pluralResolver",
|
|
3396
|
-
"interpolator",
|
|
3397
|
-
"backendConnector",
|
|
3398
|
-
"i18nFormat",
|
|
3399
|
-
"utils"
|
|
3400
|
-
], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = G.create("translator");
|
|
3401
|
-
}
|
|
3402
|
-
changeLanguage(e) {
|
|
3403
|
-
e && (this.language = e);
|
|
3404
|
-
}
|
|
3405
|
-
exists(e, t = { interpolation: {} }) {
|
|
3406
|
-
let n = { ...t };
|
|
3407
|
-
if (e == null) return !1;
|
|
3408
|
-
let r = this.resolve(e, n);
|
|
3409
|
-
if (r?.res === void 0) return !1;
|
|
3410
|
-
let i = qe(r.res);
|
|
3411
|
-
return !(n.returnObjects === !1 && i);
|
|
3412
|
-
}
|
|
3413
|
-
extractFromKey(e, t) {
|
|
3414
|
-
let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
|
|
3415
|
-
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 && !ze(e, n, r);
|
|
3417
|
-
if (a && !o) {
|
|
3418
|
-
let t = e.match(this.interpolator.nestingRegexp);
|
|
3419
|
-
if (t && t.length > 0) return {
|
|
3420
|
-
key: e,
|
|
3421
|
-
namespaces: R(i) ? [i] : i
|
|
3422
|
-
};
|
|
3423
|
-
let a = e.split(n);
|
|
3424
|
-
(n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
|
|
3425
|
-
}
|
|
3426
|
-
return {
|
|
3427
|
-
key: e,
|
|
3428
|
-
namespaces: R(i) ? [i] : i
|
|
3429
|
-
};
|
|
3430
|
-
}
|
|
3431
|
-
translate(t, n, r) {
|
|
3432
|
-
let i = typeof n == "object" ? { ...n } : n;
|
|
3433
|
-
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 = K(t, {
|
|
3435
|
-
...this.options,
|
|
3436
|
-
...i
|
|
3437
|
-
})), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? K(e, {
|
|
3438
|
-
...this.options,
|
|
3439
|
-
...i
|
|
3440
|
-
}) : String(e));
|
|
3441
|
-
let a = i.returnDetails === void 0 ? this.options.returnDetails : i.returnDetails, o = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, { key: s, namespaces: c } = this.extractFromKey(t[t.length - 1], i), l = c[c.length - 1], u = i.nsSeparator === void 0 ? this.options.nsSeparator : i.nsSeparator;
|
|
3442
|
-
u === void 0 && (u = ":");
|
|
3443
|
-
let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
3444
|
-
if (d?.toLowerCase() === "cimode") return f ? a ? {
|
|
3445
|
-
res: `${l}${u}${s}`,
|
|
3446
|
-
usedKey: s,
|
|
3447
|
-
exactUsedKey: s,
|
|
3448
|
-
usedLng: d,
|
|
3449
|
-
usedNS: l,
|
|
3450
|
-
usedParams: this.getUsedParamsDetails(i)
|
|
3451
|
-
} : `${l}${u}${s}` : a ? {
|
|
3452
|
-
res: s,
|
|
3453
|
-
usedKey: s,
|
|
3454
|
-
exactUsedKey: s,
|
|
3455
|
-
usedLng: d,
|
|
3456
|
-
usedNS: l,
|
|
3457
|
-
usedParams: this.getUsedParamsDetails(i)
|
|
3458
|
-
} : s;
|
|
3459
|
-
let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, g = p?.exactUsedKey || s, _ = [
|
|
3460
|
-
"[object Number]",
|
|
3461
|
-
"[object Function]",
|
|
3462
|
-
"[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) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
|
|
3464
|
-
y && !m && x && (E = T);
|
|
3465
|
-
let D = qe(E), O = Object.prototype.toString.apply(E);
|
|
3466
|
-
if (y && E && D && _.indexOf(O) < 0 && !(R(v) && Array.isArray(E))) {
|
|
3467
|
-
if (!i.returnObjects && !this.options.returnObjects) {
|
|
3468
|
-
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, E, {
|
|
3470
|
-
...i,
|
|
3471
|
-
ns: c
|
|
3472
|
-
}) : `key '${s} (${this.language})' returned an object instead of string.`;
|
|
3473
|
-
return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
|
|
3474
|
-
}
|
|
3475
|
-
if (o) {
|
|
3476
|
-
let e = Array.isArray(E), t = e ? [] : {}, n = e ? g : h;
|
|
3477
|
-
for (let e in E) if (Object.prototype.hasOwnProperty.call(E, e)) {
|
|
3478
|
-
let r = `${n}${o}${e}`;
|
|
3479
|
-
x && !m ? t[e] = this.translate(r, {
|
|
3480
|
-
...i,
|
|
3481
|
-
defaultValue: qe(T) ? T[e] : void 0,
|
|
3482
|
-
joinArrays: !1,
|
|
3483
|
-
ns: c
|
|
3484
|
-
}) : t[e] = this.translate(r, {
|
|
3485
|
-
...i,
|
|
3486
|
-
joinArrays: !1,
|
|
3487
|
-
ns: c
|
|
3488
|
-
}), t[e] === r && (t[e] = E[e]);
|
|
3489
|
-
}
|
|
3490
|
-
m = t;
|
|
3491
|
-
}
|
|
3492
|
-
} else if (y && R(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
|
|
3493
|
-
else {
|
|
3494
|
-
let e = !1, n = !1;
|
|
3495
|
-
!this.isValidLookup(m) && x && (e = !0, m = T), this.isValidLookup(m) || (n = !0, m = s);
|
|
3496
|
-
let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && T !== m && this.options.updateMissing;
|
|
3497
|
-
if (n || e || c) {
|
|
3498
|
-
if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? T : m), o) {
|
|
3499
|
-
let e = this.resolve(s, {
|
|
3500
|
-
...i,
|
|
3501
|
-
keySeparator: !1
|
|
3502
|
-
});
|
|
3503
|
-
e && e.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
3504
|
-
}
|
|
3505
|
-
let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
|
|
3506
|
-
if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
|
|
3507
|
-
else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
|
|
3508
|
-
let n = (e, t, n) => {
|
|
3509
|
-
let r = x && n !== m ? n : a;
|
|
3510
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, r, c, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(e, l, t, r, c, i), this.emit("missingKey", e, l, t, m);
|
|
3511
|
-
};
|
|
3512
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
|
|
3513
|
-
let t = this.pluralResolver.getSuffixes(e, i);
|
|
3514
|
-
w && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
|
|
3515
|
-
n([e], s + t, i[`defaultValue${t}`] || T);
|
|
3516
|
-
});
|
|
3517
|
-
}) : n(e, s, T));
|
|
3518
|
-
}
|
|
3519
|
-
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
|
-
return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
|
|
3522
|
-
}
|
|
3523
|
-
extendTranslation(e, t, n, r, i) {
|
|
3524
|
-
if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
|
|
3525
|
-
...this.options.interpolation.defaultVariables,
|
|
3526
|
-
...n
|
|
3527
|
-
}, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
|
|
3528
|
-
else if (!n.skipInterpolation) {
|
|
3529
|
-
n.interpolation && this.interpolator.init({
|
|
3530
|
-
...n,
|
|
3531
|
-
interpolation: {
|
|
3532
|
-
...this.options.interpolation,
|
|
3533
|
-
...n.interpolation
|
|
3534
|
-
}
|
|
3535
|
-
});
|
|
3536
|
-
let a = R(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
|
|
3537
|
-
if (a) {
|
|
3538
|
-
let t = e.match(this.interpolator.nestingRegexp);
|
|
3539
|
-
o = t && t.length;
|
|
3540
|
-
}
|
|
3541
|
-
let s = n.replace && !R(n.replace) ? n.replace : n;
|
|
3542
|
-
if (this.options.interpolation.defaultVariables && (s = {
|
|
3543
|
-
...this.options.interpolation.defaultVariables,
|
|
3544
|
-
...s
|
|
3545
|
-
}), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
|
|
3546
|
-
let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
|
|
3547
|
-
o < r && (n.nest = !1);
|
|
3548
|
-
}
|
|
3549
|
-
!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
|
-
let a = n.postProcess || this.options.postProcess, o = R(a) ? [a] : a;
|
|
3552
|
-
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Ue.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
3553
|
-
i18nResolved: {
|
|
3554
|
-
...r,
|
|
3555
|
-
usedParams: this.getUsedParamsDetails(n)
|
|
3556
|
-
},
|
|
3557
|
-
...n
|
|
3558
|
-
} : n, this)), e;
|
|
3559
|
-
}
|
|
3560
|
-
resolve(e, t = {}) {
|
|
3561
|
-
let n, r, i, a, o;
|
|
3562
|
-
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? K(e, {
|
|
3563
|
-
...this.options,
|
|
3564
|
-
...t
|
|
3565
|
-
}) : e)), e.forEach((e) => {
|
|
3566
|
-
if (this.isValidLookup(n)) return;
|
|
3567
|
-
let s = this.extractFromKey(e, t), c = s.key;
|
|
3568
|
-
r = c;
|
|
3569
|
-
let l = s.namespaces;
|
|
3570
|
-
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
3571
|
-
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
|
-
l.forEach((e) => {
|
|
3573
|
-
this.isValidLookup(n) || (o = e, !Ke[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Ke[`${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
|
-
if (this.isValidLookup(n)) return;
|
|
3575
|
-
a = r;
|
|
3576
|
-
let o = [c];
|
|
3577
|
-
if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
|
|
3578
|
-
else {
|
|
3579
|
-
let e;
|
|
3580
|
-
u && (e = this.pluralResolver.getSuffix(r, t.count, t));
|
|
3581
|
-
let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3582
|
-
if (u && (t.ordinal && e.indexOf(i) === 0 && o.push(c + e.replace(i, this.options.pluralSeparator)), o.push(c + e), d && o.push(c + n)), f) {
|
|
3583
|
-
let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
|
|
3584
|
-
o.push(r), u && (t.ordinal && e.indexOf(i) === 0 && o.push(r + e.replace(i, this.options.pluralSeparator)), o.push(r + e), d && o.push(r + n));
|
|
3585
|
-
}
|
|
3586
|
-
}
|
|
3587
|
-
let s;
|
|
3588
|
-
for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
|
|
3589
|
-
}));
|
|
3590
|
-
});
|
|
3591
|
-
}), {
|
|
3592
|
-
res: n,
|
|
3593
|
-
usedKey: r,
|
|
3594
|
-
exactUsedKey: i,
|
|
3595
|
-
usedLng: a,
|
|
3596
|
-
usedNS: o
|
|
3597
|
-
};
|
|
3598
|
-
}
|
|
3599
|
-
isValidLookup(e) {
|
|
3600
|
-
return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
|
|
3601
|
-
}
|
|
3602
|
-
getResource(e, t, n, r = {}) {
|
|
3603
|
-
return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
|
|
3604
|
-
}
|
|
3605
|
-
getUsedParamsDetails(e = {}) {
|
|
3606
|
-
let t = [
|
|
3607
|
-
"defaultValue",
|
|
3608
|
-
"ordinal",
|
|
3609
|
-
"context",
|
|
3610
|
-
"replace",
|
|
3611
|
-
"lng",
|
|
3612
|
-
"lngs",
|
|
3613
|
-
"fallbackLng",
|
|
3614
|
-
"ns",
|
|
3615
|
-
"keySeparator",
|
|
3616
|
-
"nsSeparator",
|
|
3617
|
-
"returnObjects",
|
|
3618
|
-
"returnDetails",
|
|
3619
|
-
"joinArrays",
|
|
3620
|
-
"postProcess",
|
|
3621
|
-
"interpolation"
|
|
3622
|
-
], n = e.replace && !R(e.replace), r = n ? e.replace : e;
|
|
3623
|
-
if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
|
|
3624
|
-
...this.options.interpolation.defaultVariables,
|
|
3625
|
-
...r
|
|
3626
|
-
}), !n) {
|
|
3627
|
-
r = { ...r };
|
|
3628
|
-
for (let e of t) delete r[e];
|
|
3629
|
-
}
|
|
3630
|
-
return r;
|
|
3631
|
-
}
|
|
3632
|
-
static hasDefaultValue(e) {
|
|
3633
|
-
for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
|
|
3634
|
-
return !1;
|
|
3635
|
-
}
|
|
3636
|
-
}, Ye = class {
|
|
3637
|
-
constructor(e) {
|
|
3638
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = G.create("languageUtils");
|
|
3639
|
-
}
|
|
3640
|
-
getScriptPartFromCode(e) {
|
|
3641
|
-
if (e = W(e), !e || e.indexOf("-") < 0) return null;
|
|
3642
|
-
let t = e.split("-");
|
|
3643
|
-
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
3644
|
-
}
|
|
3645
|
-
getLanguagePartFromCode(e) {
|
|
3646
|
-
if (e = W(e), !e || e.indexOf("-") < 0) return e;
|
|
3647
|
-
let t = e.split("-");
|
|
3648
|
-
return this.formatLanguageCode(t[0]);
|
|
3649
|
-
}
|
|
3650
|
-
formatLanguageCode(e) {
|
|
3651
|
-
if (R(e) && e.indexOf("-") > -1) {
|
|
3652
|
-
let t;
|
|
3653
|
-
try {
|
|
3654
|
-
t = Intl.getCanonicalLocales(e)[0];
|
|
3655
|
-
} catch {}
|
|
3656
|
-
return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
|
|
3657
|
-
}
|
|
3658
|
-
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
3659
|
-
}
|
|
3660
|
-
isSupportedCode(e) {
|
|
3661
|
-
return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
|
|
3662
|
-
}
|
|
3663
|
-
getBestMatchFromCodes(e) {
|
|
3664
|
-
if (!e) return null;
|
|
3665
|
-
let t;
|
|
3666
|
-
return e.forEach((e) => {
|
|
3667
|
-
if (t) return;
|
|
3668
|
-
let n = this.formatLanguageCode(e);
|
|
3669
|
-
(!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
|
|
3670
|
-
}), !t && this.options.supportedLngs && e.forEach((e) => {
|
|
3671
|
-
if (t) return;
|
|
3672
|
-
let n = this.getScriptPartFromCode(e);
|
|
3673
|
-
if (this.isSupportedCode(n)) return t = n;
|
|
3674
|
-
let r = this.getLanguagePartFromCode(e);
|
|
3675
|
-
if (this.isSupportedCode(r)) return t = r;
|
|
3676
|
-
t = this.options.supportedLngs.find((e) => {
|
|
3677
|
-
if (e === r || !(e.indexOf("-") < 0 && r.indexOf("-") < 0) && (e.indexOf("-") > 0 && r.indexOf("-") < 0 && e.substring(0, e.indexOf("-")) === r || e.indexOf(r) === 0 && r.length > 1)) return e;
|
|
3678
|
-
});
|
|
3679
|
-
}), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
|
|
3680
|
-
}
|
|
3681
|
-
getFallbackCodes(e, t) {
|
|
3682
|
-
if (!e) return [];
|
|
3683
|
-
if (typeof e == "function" && (e = e(t)), R(e) && (e = [e]), Array.isArray(e)) return e;
|
|
3684
|
-
if (!t) return e.default || [];
|
|
3685
|
-
let n = e[t];
|
|
3686
|
-
return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
|
|
3687
|
-
}
|
|
3688
|
-
toResolveHierarchy(e, t) {
|
|
3689
|
-
let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
|
|
3690
|
-
e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
|
|
3691
|
-
};
|
|
3692
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : R(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
|
|
3693
|
-
r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
|
|
3694
|
-
}), r;
|
|
3695
|
-
}
|
|
3696
|
-
}, Xe = {
|
|
3697
|
-
zero: 0,
|
|
3698
|
-
one: 1,
|
|
3699
|
-
two: 2,
|
|
3700
|
-
few: 3,
|
|
3701
|
-
many: 4,
|
|
3702
|
-
other: 5
|
|
3703
|
-
}, Ze = {
|
|
3704
|
-
select: (e) => e === 1 ? "one" : "other",
|
|
3705
|
-
resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
|
|
3706
|
-
}, Qe = class {
|
|
3707
|
-
constructor(e, t = {}) {
|
|
3708
|
-
this.languageUtils = e, this.options = t, this.logger = G.create("pluralResolver"), this.pluralRulesCache = {};
|
|
3709
|
-
}
|
|
3710
|
-
clearCache() {
|
|
3711
|
-
this.pluralRulesCache = {};
|
|
3712
|
-
}
|
|
3713
|
-
getRule(e, t = {}) {
|
|
3714
|
-
let n = W(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
|
|
3715
|
-
cleanedCode: n,
|
|
3716
|
-
type: r
|
|
3717
|
-
});
|
|
3718
|
-
if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
|
|
3719
|
-
let a;
|
|
3720
|
-
try {
|
|
3721
|
-
a = new Intl.PluralRules(n, { type: r });
|
|
3722
|
-
} catch {
|
|
3723
|
-
if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Ze;
|
|
3724
|
-
if (!e.match(/-|_/)) return Ze;
|
|
3725
|
-
let n = this.languageUtils.getLanguagePartFromCode(e);
|
|
3726
|
-
a = this.getRule(n, t);
|
|
3727
|
-
}
|
|
3728
|
-
return this.pluralRulesCache[i] = a, a;
|
|
3729
|
-
}
|
|
3730
|
-
needsPlural(e, t = {}) {
|
|
3731
|
-
let n = this.getRule(e, t);
|
|
3732
|
-
return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
|
|
3733
|
-
}
|
|
3734
|
-
getPluralFormsOfKey(e, t, n = {}) {
|
|
3735
|
-
return this.getSuffixes(e, n).map((e) => `${t}${e}`);
|
|
3736
|
-
}
|
|
3737
|
-
getSuffixes(e, t = {}) {
|
|
3738
|
-
let n = this.getRule(e, t);
|
|
3739
|
-
return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Xe[e] - Xe[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
|
|
3740
|
-
}
|
|
3741
|
-
getSuffix(e, t, n = {}) {
|
|
3742
|
-
let r = this.getRule(e, n);
|
|
3743
|
-
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
|
-
}, $e = (e, t, n, r = ".", i = !0) => {
|
|
3746
|
-
let a = Pe(e, t, n);
|
|
3747
|
-
return !a && i && R(n) && (a = U(e, n, r), a === void 0 && (a = U(t, n, r))), a;
|
|
3748
|
-
}, et = (e) => e.replace(/\$/g, "$$$$"), tt = class {
|
|
3749
|
-
constructor(e = {}) {
|
|
3750
|
-
this.logger = G.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
|
|
3751
|
-
}
|
|
3752
|
-
init(e = {}) {
|
|
3753
|
-
e.interpolation ||= { escapeValue: !0 };
|
|
3754
|
-
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 ? Ie : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? B(i) : a || "{{", this.suffix = o ? B(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? B(d) : f || B("$t("), this.nestingSuffix = p ? B(p) : m || B(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
|
|
3756
|
-
}
|
|
3757
|
-
reset() {
|
|
3758
|
-
this.options && this.init(this.options);
|
|
3759
|
-
}
|
|
3760
|
-
resetRegExp() {
|
|
3761
|
-
let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
|
|
3762
|
-
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
|
|
3763
|
-
}
|
|
3764
|
-
interpolate(e, t, n, r) {
|
|
3765
|
-
let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
|
|
3766
|
-
if (e.indexOf(this.formatSeparator) < 0) {
|
|
3767
|
-
let i = $e(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3768
|
-
return this.alwaysFormat ? this.format(i, void 0, n, {
|
|
3769
|
-
...r,
|
|
3770
|
-
...t,
|
|
3771
|
-
interpolationkey: e
|
|
3772
|
-
}) : i;
|
|
3773
|
-
}
|
|
3774
|
-
let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
|
|
3775
|
-
return this.format($e(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
|
|
3776
|
-
...r,
|
|
3777
|
-
...t,
|
|
3778
|
-
interpolationkey: a
|
|
3779
|
-
});
|
|
3780
|
-
};
|
|
3781
|
-
this.resetRegExp();
|
|
3782
|
-
let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
|
|
3783
|
-
return [{
|
|
3784
|
-
regex: this.regexpUnescape,
|
|
3785
|
-
safeValue: (e) => et(e)
|
|
3786
|
-
}, {
|
|
3787
|
-
regex: this.regexp,
|
|
3788
|
-
safeValue: (e) => this.escapeValue ? et(this.escape(e)) : et(e)
|
|
3789
|
-
}].forEach((t) => {
|
|
3790
|
-
for (o = 0; i = t.regex.exec(e);) {
|
|
3791
|
-
let n = i[1].trim();
|
|
3792
|
-
if (a = c(n), a === void 0) if (typeof l == "function") {
|
|
3793
|
-
let t = l(e, i, r);
|
|
3794
|
-
a = R(t) ? t : "";
|
|
3795
|
-
} else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
|
|
3796
|
-
else if (u) {
|
|
3797
|
-
a = i[0];
|
|
3798
|
-
continue;
|
|
3799
|
-
} else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
|
|
3800
|
-
else !R(a) && !this.useRawValueToEscape && (a = Ee(a));
|
|
3801
|
-
let s = t.safeValue(a);
|
|
3802
|
-
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
|
-
}), e;
|
|
3805
|
-
}
|
|
3806
|
-
nest(e, t, n = {}) {
|
|
3807
|
-
let r, i, a, o = (e, t) => {
|
|
3808
|
-
let n = this.nestingOptionsSeparator;
|
|
3809
|
-
if (e.indexOf(n) < 0) return e;
|
|
3810
|
-
let r = e.split(RegExp(`${B(n)}[ ]*{`)), i = `{${r[1]}`;
|
|
3811
|
-
e = r[0], i = this.interpolate(i, a);
|
|
3812
|
-
let o = i.match(/'/g), s = i.match(/"/g);
|
|
3813
|
-
((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
|
|
3814
|
-
try {
|
|
3815
|
-
a = JSON.parse(i), t && (a = {
|
|
3816
|
-
...t,
|
|
3817
|
-
...a
|
|
3818
|
-
});
|
|
3819
|
-
} catch (t) {
|
|
3820
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
|
|
3821
|
-
}
|
|
3822
|
-
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, e;
|
|
3823
|
-
};
|
|
3824
|
-
for (; r = this.nestingRegexp.exec(e);) {
|
|
3825
|
-
let s = [];
|
|
3826
|
-
a = { ...n }, a = a.replace && !R(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
3827
|
-
let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
|
|
3828
|
-
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 = Ee(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
|
-
...n,
|
|
3831
|
-
interpolationkey: r[1].trim()
|
|
3832
|
-
}), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
|
|
3833
|
-
}
|
|
3834
|
-
return e;
|
|
3835
|
-
}
|
|
3836
|
-
}, nt = (e) => {
|
|
3837
|
-
let t = e.toLowerCase().trim(), n = {};
|
|
3838
|
-
if (e.indexOf("(") > -1) {
|
|
3839
|
-
let r = e.split("(");
|
|
3840
|
-
t = r[0].toLowerCase().trim();
|
|
3841
|
-
let i = r[1].substring(0, r[1].length - 1);
|
|
3842
|
-
t === "currency" && i.indexOf(":") < 0 ? n.currency ||= i.trim() : t === "relativetime" && i.indexOf(":") < 0 ? n.range ||= i.trim() : i.split(";").forEach((e) => {
|
|
3843
|
-
if (e) {
|
|
3844
|
-
let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
|
|
3845
|
-
n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
|
|
3846
|
-
}
|
|
3847
|
-
});
|
|
3848
|
-
}
|
|
3849
|
-
return {
|
|
3850
|
-
formatName: t,
|
|
3851
|
-
formatOptions: n
|
|
3852
|
-
};
|
|
3853
|
-
}, rt = (e) => {
|
|
3854
|
-
let t = {};
|
|
3855
|
-
return (n, r, i) => {
|
|
3856
|
-
let a = i;
|
|
3857
|
-
i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
|
|
3858
|
-
...a,
|
|
3859
|
-
[i.interpolationkey]: void 0
|
|
3860
|
-
});
|
|
3861
|
-
let o = r + JSON.stringify(a), s = t[o];
|
|
3862
|
-
return s || (s = e(W(r), i), t[o] = s), s(n);
|
|
3863
|
-
};
|
|
3864
|
-
}, it = (e) => (t, n, r) => e(W(n), r)(t), at = class {
|
|
3865
|
-
constructor(e = {}) {
|
|
3866
|
-
this.logger = G.create("formatter"), this.options = e, this.init(e);
|
|
3867
|
-
}
|
|
3868
|
-
init(e, t = { interpolation: {} }) {
|
|
3869
|
-
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3870
|
-
let n = t.cacheInBuiltFormats ? rt : it;
|
|
3871
|
-
this.formats = {
|
|
3872
|
-
number: n((e, t) => {
|
|
3873
|
-
let n = new Intl.NumberFormat(e, { ...t });
|
|
3874
|
-
return (e) => n.format(e);
|
|
3875
|
-
}),
|
|
3876
|
-
currency: n((e, t) => {
|
|
3877
|
-
let n = new Intl.NumberFormat(e, {
|
|
3878
|
-
...t,
|
|
3879
|
-
style: "currency"
|
|
3880
|
-
});
|
|
3881
|
-
return (e) => n.format(e);
|
|
3882
|
-
}),
|
|
3883
|
-
datetime: n((e, t) => {
|
|
3884
|
-
let n = new Intl.DateTimeFormat(e, { ...t });
|
|
3885
|
-
return (e) => n.format(e);
|
|
3886
|
-
}),
|
|
3887
|
-
relativetime: n((e, t) => {
|
|
3888
|
-
let n = new Intl.RelativeTimeFormat(e, { ...t });
|
|
3889
|
-
return (e) => n.format(e, t.range || "day");
|
|
3890
|
-
}),
|
|
3891
|
-
list: n((e, t) => {
|
|
3892
|
-
let n = new Intl.ListFormat(e, { ...t });
|
|
3893
|
-
return (e) => n.format(e);
|
|
3894
|
-
})
|
|
3895
|
-
};
|
|
3896
|
-
}
|
|
3897
|
-
add(e, t) {
|
|
3898
|
-
this.formats[e.toLowerCase().trim()] = t;
|
|
3899
|
-
}
|
|
3900
|
-
addCached(e, t) {
|
|
3901
|
-
this.formats[e.toLowerCase().trim()] = rt(t);
|
|
3902
|
-
}
|
|
3903
|
-
format(e, t, n, r = {}) {
|
|
3904
|
-
let i = t.split(this.formatSeparator);
|
|
3905
|
-
if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((e) => e.indexOf(")") > -1)) {
|
|
3906
|
-
let e = i.findIndex((e) => e.indexOf(")") > -1);
|
|
3907
|
-
i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
|
|
3908
|
-
}
|
|
3909
|
-
return i.reduce((e, t) => {
|
|
3910
|
-
let { formatName: i, formatOptions: a } = nt(t);
|
|
3911
|
-
if (this.formats[i]) {
|
|
3912
|
-
let t = e;
|
|
3913
|
-
try {
|
|
3914
|
-
let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
|
|
3915
|
-
t = this.formats[i](e, s, {
|
|
3916
|
-
...a,
|
|
3917
|
-
...r,
|
|
3918
|
-
...o
|
|
3919
|
-
});
|
|
3920
|
-
} catch (e) {
|
|
3921
|
-
this.logger.warn(e);
|
|
3922
|
-
}
|
|
3923
|
-
return t;
|
|
3924
|
-
} else this.logger.warn(`there was no format function for ${i}`);
|
|
3925
|
-
return e;
|
|
3926
|
-
}, e);
|
|
3927
|
-
}
|
|
3928
|
-
}, ot = (e, t) => {
|
|
3929
|
-
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
3930
|
-
}, st = class extends Ve {
|
|
3931
|
-
constructor(e, t, n, r = {}) {
|
|
3932
|
-
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
|
-
queueLoad(e, t, n, r) {
|
|
3935
|
-
let i = {}, a = {}, o = {}, s = {};
|
|
3936
|
-
return e.forEach((e) => {
|
|
3937
|
-
let r = !0;
|
|
3938
|
-
t.forEach((t) => {
|
|
3939
|
-
let o = `${e}|${t}`;
|
|
3940
|
-
!n.reload && this.store.hasResourceBundle(e, t) ? this.state[o] = 2 : this.state[o] < 0 || (this.state[o] === 1 ? a[o] === void 0 && (a[o] = !0) : (this.state[o] = 1, r = !1, a[o] === void 0 && (a[o] = !0), i[o] === void 0 && (i[o] = !0), s[t] === void 0 && (s[t] = !0)));
|
|
3941
|
-
}), r || (o[e] = !0);
|
|
3942
|
-
}), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
|
|
3943
|
-
pending: a,
|
|
3944
|
-
pendingCount: Object.keys(a).length,
|
|
3945
|
-
loaded: {},
|
|
3946
|
-
errors: [],
|
|
3947
|
-
callback: r
|
|
3948
|
-
}), {
|
|
3949
|
-
toLoad: Object.keys(i),
|
|
3950
|
-
pending: Object.keys(a),
|
|
3951
|
-
toLoadLanguages: Object.keys(o),
|
|
3952
|
-
toLoadNamespaces: Object.keys(s)
|
|
3953
|
-
};
|
|
3954
|
-
}
|
|
3955
|
-
loaded(e, t, n) {
|
|
3956
|
-
let r = e.split("|"), i = r[0], a = r[1];
|
|
3957
|
-
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
|
-
let o = {};
|
|
3959
|
-
this.queue.forEach((n) => {
|
|
3960
|
-
Me(n.loaded, [i], a), ot(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
|
|
3961
|
-
o[e] || (o[e] = {});
|
|
3962
|
-
let t = n.loaded[e];
|
|
3963
|
-
t.length && t.forEach((t) => {
|
|
3964
|
-
o[e][t] === void 0 && (o[e][t] = !0);
|
|
3965
|
-
});
|
|
3966
|
-
}), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
|
|
3967
|
-
}), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
|
|
3968
|
-
}
|
|
3969
|
-
read(e, t, n, r = 0, i = this.retryTimeout, a) {
|
|
3970
|
-
if (!e.length) return a(null, {});
|
|
3971
|
-
if (this.readingCalls >= this.maxParallelReads) {
|
|
3972
|
-
this.waitingReads.push({
|
|
3973
|
-
lng: e,
|
|
3974
|
-
ns: t,
|
|
3975
|
-
fcName: n,
|
|
3976
|
-
tried: r,
|
|
3977
|
-
wait: i,
|
|
3978
|
-
callback: a
|
|
3979
|
-
});
|
|
3980
|
-
return;
|
|
3981
|
-
}
|
|
3982
|
-
this.readingCalls++;
|
|
3983
|
-
let o = (o, s) => {
|
|
3984
|
-
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
3985
|
-
let e = this.waitingReads.shift();
|
|
3986
|
-
this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
|
|
3987
|
-
}
|
|
3988
|
-
if (o && s && r < this.maxRetries) {
|
|
3989
|
-
setTimeout(() => {
|
|
3990
|
-
this.read.call(this, e, t, n, r + 1, i * 2, a);
|
|
3991
|
-
}, i);
|
|
3992
|
-
return;
|
|
3993
|
-
}
|
|
3994
|
-
a(o, s);
|
|
3995
|
-
}, s = this.backend[n].bind(this.backend);
|
|
3996
|
-
if (s.length === 2) {
|
|
3997
|
-
try {
|
|
3998
|
-
let n = s(e, t);
|
|
3999
|
-
n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
|
|
4000
|
-
} catch (e) {
|
|
4001
|
-
o(e);
|
|
4002
|
-
}
|
|
4003
|
-
return;
|
|
4004
|
-
}
|
|
4005
|
-
return s(e, t, o);
|
|
4006
|
-
}
|
|
4007
|
-
prepareLoading(e, t, n = {}, r) {
|
|
4008
|
-
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
|
|
4009
|
-
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
4010
|
-
let i = this.queueLoad(e, t, n, r);
|
|
4011
|
-
if (!i.toLoad.length) return i.pending.length || r(), null;
|
|
4012
|
-
i.toLoad.forEach((e) => {
|
|
4013
|
-
this.loadOne(e);
|
|
4014
|
-
});
|
|
4015
|
-
}
|
|
4016
|
-
load(e, t, n) {
|
|
4017
|
-
this.prepareLoading(e, t, {}, n);
|
|
4018
|
-
}
|
|
4019
|
-
reload(e, t, n) {
|
|
4020
|
-
this.prepareLoading(e, t, { reload: !0 }, n);
|
|
4021
|
-
}
|
|
4022
|
-
loadOne(e, t = "") {
|
|
4023
|
-
let n = e.split("|"), r = n[0], i = n[1];
|
|
4024
|
-
this.read(r, i, "read", void 0, void 0, (n, a) => {
|
|
4025
|
-
n && this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`, n), !n && a && this.logger.log(`${t}loaded namespace ${i} for language ${r}`, a), this.loaded(e, n, a);
|
|
4026
|
-
});
|
|
4027
|
-
}
|
|
4028
|
-
saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
|
|
4029
|
-
if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
|
|
4030
|
-
this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");
|
|
4031
|
-
return;
|
|
4032
|
-
}
|
|
4033
|
-
if (!(n == null || n === "")) {
|
|
4034
|
-
if (this.backend?.create) {
|
|
4035
|
-
let s = {
|
|
4036
|
-
...a,
|
|
4037
|
-
isUpdate: i
|
|
4038
|
-
}, c = this.backend.create.bind(this.backend);
|
|
4039
|
-
if (c.length < 6) try {
|
|
4040
|
-
let i;
|
|
4041
|
-
i = c.length === 5 ? c(e, t, n, r, s) : c(e, t, n, r), i && typeof i.then == "function" ? i.then((e) => o(null, e)).catch(o) : o(null, i);
|
|
4042
|
-
} catch (e) {
|
|
4043
|
-
o(e);
|
|
4044
|
-
}
|
|
4045
|
-
else c(e, t, n, r, o, s);
|
|
4046
|
-
}
|
|
4047
|
-
!e || !e[0] || this.store.addResource(e[0], t, n, r);
|
|
4048
|
-
}
|
|
4049
|
-
}
|
|
4050
|
-
}, ct = () => ({
|
|
4051
|
-
debug: !1,
|
|
4052
|
-
initAsync: !0,
|
|
4053
|
-
ns: ["translation"],
|
|
4054
|
-
defaultNS: ["translation"],
|
|
4055
|
-
fallbackLng: ["dev"],
|
|
4056
|
-
fallbackNS: !1,
|
|
4057
|
-
supportedLngs: !1,
|
|
4058
|
-
nonExplicitSupportedLngs: !1,
|
|
4059
|
-
load: "all",
|
|
4060
|
-
preload: !1,
|
|
4061
|
-
simplifyPluralSuffix: !0,
|
|
4062
|
-
keySeparator: ".",
|
|
4063
|
-
nsSeparator: ":",
|
|
4064
|
-
pluralSeparator: "_",
|
|
4065
|
-
contextSeparator: "_",
|
|
4066
|
-
partialBundledLanguages: !1,
|
|
4067
|
-
saveMissing: !1,
|
|
4068
|
-
updateMissing: !1,
|
|
4069
|
-
saveMissingTo: "fallback",
|
|
4070
|
-
saveMissingPlurals: !0,
|
|
4071
|
-
missingKeyHandler: !1,
|
|
4072
|
-
missingInterpolationHandler: !1,
|
|
4073
|
-
postProcess: !1,
|
|
4074
|
-
postProcessPassResolved: !1,
|
|
4075
|
-
returnNull: !1,
|
|
4076
|
-
returnEmptyString: !0,
|
|
4077
|
-
returnObjects: !1,
|
|
4078
|
-
joinArrays: !1,
|
|
4079
|
-
returnedObjectHandler: !1,
|
|
4080
|
-
parseMissingKeyHandler: !1,
|
|
4081
|
-
appendNamespaceToMissingKey: !1,
|
|
4082
|
-
appendNamespaceToCIMode: !1,
|
|
4083
|
-
overloadTranslationOptionHandler: (e) => {
|
|
4084
|
-
let t = {};
|
|
4085
|
-
if (typeof e[1] == "object" && (t = e[1]), R(e[1]) && (t.defaultValue = e[1]), R(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
4086
|
-
let n = e[3] || e[2];
|
|
4087
|
-
Object.keys(n).forEach((e) => {
|
|
4088
|
-
t[e] = n[e];
|
|
4089
|
-
});
|
|
4090
|
-
}
|
|
4091
|
-
return t;
|
|
4092
|
-
},
|
|
4093
|
-
interpolation: {
|
|
4094
|
-
escapeValue: !0,
|
|
4095
|
-
format: (e) => e,
|
|
4096
|
-
prefix: "{{",
|
|
4097
|
-
suffix: "}}",
|
|
4098
|
-
formatSeparator: ",",
|
|
4099
|
-
unescapePrefix: "-",
|
|
4100
|
-
nestingPrefix: "$t(",
|
|
4101
|
-
nestingSuffix: ")",
|
|
4102
|
-
nestingOptionsSeparator: ",",
|
|
4103
|
-
maxReplaces: 1e3,
|
|
4104
|
-
skipOnVariables: !0
|
|
4105
|
-
},
|
|
4106
|
-
cacheInBuiltFormats: !0
|
|
4107
|
-
}), q = (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), lt = () => {}, ut = (e) => {
|
|
4108
|
-
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
4109
|
-
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
4110
|
-
});
|
|
4111
|
-
}, dt = "__i18next_supportNoticeShown", ft = () => !!(typeof globalThis < "u" && globalThis[dt] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), pt = () => {
|
|
4112
|
-
typeof globalThis < "u" && (globalThis[dt] = !0);
|
|
4113
|
-
}, mt = (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 Ve {
|
|
4114
|
-
constructor(e = {}, t) {
|
|
4115
|
-
if (super(), this.options = q(e), this.services = {}, this.logger = G, this.modules = { external: [] }, ut(this), t && !this.isInitialized && !e.isClone) {
|
|
4116
|
-
if (!this.options.initAsync) return this.init(e, t), this;
|
|
4117
|
-
setTimeout(() => {
|
|
4118
|
-
this.init(e, t);
|
|
4119
|
-
}, 0);
|
|
4120
|
-
}
|
|
4121
|
-
}
|
|
4122
|
-
init(e = {}, t) {
|
|
4123
|
-
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 = ct();
|
|
4125
|
-
this.options = {
|
|
4126
|
-
...n,
|
|
4127
|
-
...this.options,
|
|
4128
|
-
...q(e)
|
|
4129
|
-
}, this.options.interpolation = {
|
|
4130
|
-
...n.interpolation,
|
|
4131
|
-
...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 && !mt(this) && !ft() && (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 💙"), pt());
|
|
4133
|
-
let r = (e) => e ? typeof e == "function" ? new e() : e : null;
|
|
4134
|
-
if (!this.options.isClone) {
|
|
4135
|
-
this.modules.logger ? G.init(r(this.modules.logger), this.options) : G.init(null, this.options);
|
|
4136
|
-
let e;
|
|
4137
|
-
e = this.modules.formatter ? this.modules.formatter : at;
|
|
4138
|
-
let t = new Ye(this.options);
|
|
4139
|
-
this.store = new He(this.options.resources, this.options);
|
|
4140
|
-
let i = this.services;
|
|
4141
|
-
i.logger = G, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Qe(t, {
|
|
4142
|
-
prepend: this.options.pluralSeparator,
|
|
4143
|
-
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 tt(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new st(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
|
|
4145
|
-
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 Je(this.services, this.options), this.translator.on("*", (e, ...t) => {
|
|
4147
|
-
this.emit(e, ...t);
|
|
4148
|
-
}), this.modules.external.forEach((e) => {
|
|
4149
|
-
e.init && e.init(this);
|
|
4150
|
-
});
|
|
4151
|
-
}
|
|
4152
|
-
if (this.format = this.options.interpolation.format, t ||= lt, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
4153
|
-
let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
4154
|
-
e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
|
|
4155
|
-
}
|
|
4156
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
|
|
4157
|
-
"getResource",
|
|
4158
|
-
"hasResourceBundle",
|
|
4159
|
-
"getResourceBundle",
|
|
4160
|
-
"getDataByLanguage"
|
|
4161
|
-
].forEach((e) => {
|
|
4162
|
-
this[e] = (...t) => this.store[e](...t);
|
|
4163
|
-
}), [
|
|
4164
|
-
"addResource",
|
|
4165
|
-
"addResources",
|
|
4166
|
-
"addResourceBundle",
|
|
4167
|
-
"removeResourceBundle"
|
|
4168
|
-
].forEach((e) => {
|
|
4169
|
-
this[e] = (...t) => (this.store[e](...t), this);
|
|
4170
|
-
});
|
|
4171
|
-
let i = Te(), a = () => {
|
|
4172
|
-
let e = (e, n) => {
|
|
4173
|
-
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
|
-
if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
|
|
4176
|
-
this.changeLanguage(this.options.lng, e);
|
|
4177
|
-
};
|
|
4178
|
-
return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
|
|
4179
|
-
}
|
|
4180
|
-
loadResources(e, t = lt) {
|
|
4181
|
-
let n = t, r = R(e) ? e : this.language;
|
|
4182
|
-
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
4183
|
-
if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
4184
|
-
let e = [], t = (t) => {
|
|
4185
|
-
t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
|
|
4186
|
-
t !== "cimode" && e.indexOf(t) < 0 && e.push(t);
|
|
4187
|
-
});
|
|
4188
|
-
};
|
|
4189
|
-
r ? t(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => t(e)), this.options.preload?.forEach?.((e) => t(e)), this.services.backendConnector.load(e, this.options.ns, (e) => {
|
|
4190
|
-
!e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
|
|
4191
|
-
});
|
|
4192
|
-
} else n(null);
|
|
4193
|
-
}
|
|
4194
|
-
reloadResources(e, t, n) {
|
|
4195
|
-
let r = Te();
|
|
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 ||= lt, this.services.backendConnector.reload(e, t, (e) => {
|
|
4197
|
-
r.resolve(), n(e);
|
|
4198
|
-
}), r;
|
|
4199
|
-
}
|
|
4200
|
-
use(e) {
|
|
4201
|
-
if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
4202
|
-
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" && Ue.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
4204
|
-
}
|
|
4205
|
-
setResolvedLanguage(e) {
|
|
4206
|
-
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
4207
|
-
for (let e = 0; e < this.languages.length; e++) {
|
|
4208
|
-
let t = this.languages[e];
|
|
4209
|
-
if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
|
|
4210
|
-
this.resolvedLanguage = t;
|
|
4211
|
-
break;
|
|
4212
|
-
}
|
|
4213
|
-
}
|
|
4214
|
-
!this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4217
|
-
changeLanguage(e, t) {
|
|
4218
|
-
this.isLanguageChangingTo = e;
|
|
4219
|
-
let n = Te();
|
|
4220
|
-
this.emit("languageChanging", e);
|
|
4221
|
-
let r = (e) => {
|
|
4222
|
-
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
|
|
4223
|
-
}, i = (i, a) => {
|
|
4224
|
-
a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
|
|
4225
|
-
}, a = (t) => {
|
|
4226
|
-
!e && !t && this.services.languageDetector && (t = []);
|
|
4227
|
-
let n = R(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(R(t) ? [t] : t);
|
|
4228
|
-
a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
|
|
4229
|
-
i(e, a);
|
|
4230
|
-
});
|
|
4231
|
-
};
|
|
4232
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
|
|
4233
|
-
}
|
|
4234
|
-
getFixedT(e, t, n) {
|
|
4235
|
-
let r = (e, t, ...i) => {
|
|
4236
|
-
let a;
|
|
4237
|
-
a = typeof t == "object" ? { ...t } : this.options.overloadTranslationOptionHandler([e, t].concat(i)), a.lng = a.lng || r.lng, a.lngs = a.lngs || r.lngs, a.ns = a.ns || r.ns, a.keyPrefix !== "" && (a.keyPrefix = a.keyPrefix || n || r.keyPrefix);
|
|
4238
|
-
let o = {
|
|
4239
|
-
...this.options,
|
|
4240
|
-
...a
|
|
4241
|
-
};
|
|
4242
|
-
typeof a.keyPrefix == "function" && (a.keyPrefix = K(a.keyPrefix, o));
|
|
4243
|
-
let s = this.options.keySeparator || ".", c;
|
|
4244
|
-
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = K(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = K(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
|
|
4245
|
-
};
|
|
4246
|
-
return R(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
|
|
4247
|
-
}
|
|
4248
|
-
t(...e) {
|
|
4249
|
-
return this.translator?.translate(...e);
|
|
4250
|
-
}
|
|
4251
|
-
exists(...e) {
|
|
4252
|
-
return this.translator?.exists(...e);
|
|
4253
|
-
}
|
|
4254
|
-
setDefaultNamespace(e) {
|
|
4255
|
-
this.options.defaultNS = e;
|
|
4256
|
-
}
|
|
4257
|
-
hasLoadedNamespace(e, t = {}) {
|
|
4258
|
-
if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
4259
|
-
if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
4260
|
-
let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
|
|
4261
|
-
if (n.toLowerCase() === "cimode") return !0;
|
|
4262
|
-
let a = (e, t) => {
|
|
4263
|
-
let n = this.services.backendConnector.state[`${e}|${t}`];
|
|
4264
|
-
return n === -1 || n === 0 || n === 2;
|
|
4265
|
-
};
|
|
4266
|
-
if (t.precheck) {
|
|
4267
|
-
let e = t.precheck(this, a);
|
|
4268
|
-
if (e !== void 0) return e;
|
|
4269
|
-
}
|
|
4270
|
-
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
|
|
4271
|
-
}
|
|
4272
|
-
loadNamespaces(e, t) {
|
|
4273
|
-
let n = Te();
|
|
4274
|
-
return this.options.ns ? (R(e) && (e = [e]), e.forEach((e) => {
|
|
4275
|
-
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
|
|
4276
|
-
}), this.loadResources((e) => {
|
|
4277
|
-
n.resolve(), t && t(e);
|
|
4278
|
-
}), n) : (t && t(), Promise.resolve());
|
|
4279
|
-
}
|
|
4280
|
-
loadLanguages(e, t) {
|
|
4281
|
-
let n = Te();
|
|
4282
|
-
R(e) && (e = [e]);
|
|
4283
|
-
let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
|
|
4284
|
-
return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
|
|
4285
|
-
n.resolve(), t && t(e);
|
|
4286
|
-
}), n) : (t && t(), Promise.resolve());
|
|
4287
|
-
}
|
|
4288
|
-
dir(e) {
|
|
4289
|
-
if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
|
|
4290
|
-
try {
|
|
4291
|
-
let t = new Intl.Locale(e);
|
|
4292
|
-
if (t && t.getTextInfo) {
|
|
4293
|
-
let e = t.getTextInfo();
|
|
4294
|
-
if (e && e.direction) return e.direction;
|
|
4295
|
-
}
|
|
4296
|
-
} 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 Ye(ct());
|
|
4298
|
-
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
4299
|
-
}
|
|
4300
|
-
static createInstance(t = {}, n) {
|
|
4301
|
-
let r = new e(t, n);
|
|
4302
|
-
return r.createInstance = e.createInstance, r;
|
|
4303
|
-
}
|
|
4304
|
-
cloneInstance(t = {}, n = lt) {
|
|
4305
|
-
let r = t.forkResourceStore;
|
|
4306
|
-
r && delete t.forkResourceStore;
|
|
4307
|
-
let i = {
|
|
4308
|
-
...this.options,
|
|
4309
|
-
...t,
|
|
4310
|
-
isClone: !0
|
|
4311
|
-
}, a = new e(i);
|
|
4312
|
-
if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
|
|
4313
|
-
"store",
|
|
4314
|
-
"services",
|
|
4315
|
-
"language"
|
|
4316
|
-
].forEach((e) => {
|
|
4317
|
-
a[e] = this[e];
|
|
4318
|
-
}), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new He(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
|
-
let e = {
|
|
4320
|
-
...ct().interpolation,
|
|
4321
|
-
...this.options.interpolation,
|
|
4322
|
-
...t.interpolation
|
|
4323
|
-
}, n = {
|
|
4324
|
-
...i,
|
|
4325
|
-
interpolation: e
|
|
4326
|
-
};
|
|
4327
|
-
a.services.interpolator = new tt(n);
|
|
4328
|
-
}
|
|
4329
|
-
return a.translator = new Je(a.services, i), a.translator.on("*", (e, ...t) => {
|
|
4330
|
-
a.emit(e, ...t);
|
|
4331
|
-
}), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
|
|
4332
|
-
}
|
|
4333
|
-
toJSON() {
|
|
4334
|
-
return {
|
|
4335
|
-
options: this.options,
|
|
4336
|
-
store: this.store,
|
|
4337
|
-
language: this.language,
|
|
4338
|
-
languages: this.languages,
|
|
4339
|
-
resolvedLanguage: this.resolvedLanguage
|
|
4340
|
-
};
|
|
4341
|
-
}
|
|
4342
|
-
}.createInstance();
|
|
4343
|
-
//#endregion
|
|
4344
|
-
//#region ../../lib-react/translator/dist/index.js
|
|
4345
|
-
J.createInstance, J.dir, J.init, J.loadResources, J.reloadResources, J.use, J.changeLanguage, J.getFixedT, J.t, J.exists, J.setDefaultNamespace, J.hasLoadedNamespace, J.loadNamespaces, J.loadLanguages, J.init({
|
|
4346
|
-
fallbackLng: "en",
|
|
4347
|
-
lng: "en",
|
|
4348
|
-
debug: !0,
|
|
4349
|
-
resources: {
|
|
4350
|
-
en: L,
|
|
4351
|
-
es: we
|
|
4352
|
-
}
|
|
4353
|
-
});
|
|
4354
|
-
var ht = {
|
|
4355
|
-
translator: {
|
|
4356
|
-
...J,
|
|
4357
|
-
t: (e, t) => {
|
|
4358
|
-
let { lng: n } = t;
|
|
4359
|
-
switch (n) {
|
|
4360
|
-
case "en_US":
|
|
4361
|
-
case "en-US":
|
|
4362
|
-
t.lng = "en";
|
|
4363
|
-
break;
|
|
4364
|
-
case "es_ES":
|
|
4365
|
-
case "es-ES":
|
|
4366
|
-
case "es_MX":
|
|
4367
|
-
case "es-MX":
|
|
4368
|
-
t.lng = "es";
|
|
4369
|
-
break;
|
|
4370
|
-
default: break;
|
|
4371
|
-
}
|
|
4372
|
-
return J.t(e, {
|
|
4373
|
-
lng: n,
|
|
4374
|
-
...t
|
|
4375
|
-
});
|
|
4376
|
-
}
|
|
4377
|
-
},
|
|
4378
|
-
languageOptions: [{
|
|
4379
|
-
value: "en_US",
|
|
4380
|
-
label: "English (US)"
|
|
4381
|
-
}, {
|
|
4382
|
-
value: "es_ES",
|
|
4383
|
-
label: "Spanish"
|
|
4384
|
-
}]
|
|
4385
|
-
}, { translator: Y } = ht, gt = x("div")(({ theme: e }) => ({
|
|
4386
|
-
display: "flex",
|
|
4387
|
-
flexDirection: "row",
|
|
4388
|
-
alignItems: "center",
|
|
4389
|
-
gap: e.spacing(2),
|
|
4390
|
-
borderBottom: "1px solid lightgrey",
|
|
4391
|
-
borderTop: "1px solid lightgrey",
|
|
4392
|
-
paddingBottom: e.spacing(1),
|
|
4393
|
-
paddingTop: e.spacing(1),
|
|
4394
|
-
marginBottom: e.spacing(1)
|
|
4395
|
-
})), _t = x("span")(({ theme: e }) => ({
|
|
4396
|
-
fontSize: "14px",
|
|
4397
|
-
fontWeight: "bold",
|
|
4398
|
-
color: s.black(),
|
|
4399
|
-
marginLeft: e.spacing(1)
|
|
4400
|
-
})), vt = x("div")(() => ({
|
|
4401
|
-
position: "relative",
|
|
4402
|
-
padding: "4px",
|
|
4403
|
-
fontSize: "14px",
|
|
4404
|
-
borderRadius: "4px"
|
|
4405
|
-
})), yt = x(vt)(() => ({ border: `${s.correctTertiary()} solid 2px` })), bt = x(vt)(() => ({ border: `${s.incorrectWithIcon()} solid 2px` })), xt = x(vt)(() => ({ border: `${s.incorrectWithIcon()} dashed 2px` })), St = {
|
|
4406
|
-
color: s.white(),
|
|
4407
|
-
position: "absolute",
|
|
4408
|
-
top: "-8px",
|
|
4409
|
-
left: "-8px",
|
|
4410
|
-
borderRadius: "50%",
|
|
4411
|
-
fontSize: "12px",
|
|
4412
|
-
padding: "2px"
|
|
4413
|
-
}, Ct = x(b)(() => ({
|
|
4414
|
-
...St,
|
|
4415
|
-
backgroundColor: s.correctTertiary()
|
|
4416
|
-
})), wt = x(re)(() => ({
|
|
4417
|
-
...St,
|
|
4418
|
-
backgroundColor: s.incorrectWithIcon()
|
|
4419
|
-
})), Tt = ({ language: e, showOnlyCorrect: t }) => {
|
|
4420
|
-
let n = [
|
|
4421
|
-
{
|
|
4422
|
-
Icon: Ct,
|
|
4423
|
-
label: Y.t("selectText.correctAnswerSelected", { lng: e }),
|
|
4424
|
-
Container: yt
|
|
4425
|
-
},
|
|
4426
|
-
{
|
|
4427
|
-
Icon: wt,
|
|
4428
|
-
label: Y.t("selectText.incorrectSelection", { lng: e }),
|
|
4429
|
-
Container: bt
|
|
4430
|
-
},
|
|
4431
|
-
{
|
|
4432
|
-
Icon: wt,
|
|
4433
|
-
label: Y.t("selectText.correctAnswerNotSelected", { lng: e }),
|
|
4434
|
-
Container: xt
|
|
4435
|
-
}
|
|
4436
|
-
];
|
|
4437
|
-
return t && n.splice(1, 2), /* @__PURE__ */ D(gt, { children: [/* @__PURE__ */ E(_t, { children: Y.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))] });
|
|
4438
|
-
}, Et = "height ease-in 300ms, opacity ease-in 300ms", Dt = x("div")(() => ({
|
|
4439
|
-
position: "relative",
|
|
4440
|
-
height: 0,
|
|
4441
|
-
overflow: "hidden",
|
|
4442
|
-
display: "flex",
|
|
4443
|
-
visibility: "hidden",
|
|
4444
|
-
width: 0,
|
|
4445
|
-
"&.enter": {
|
|
4446
|
-
transition: Et,
|
|
4447
|
-
opacity: 1,
|
|
4448
|
-
height: "auto",
|
|
4449
|
-
width: "auto",
|
|
4450
|
-
visibility: "visible",
|
|
4451
|
-
minHeight: "25px"
|
|
4452
|
-
},
|
|
4453
|
-
"&.enter-done": {
|
|
4454
|
-
height: "auto",
|
|
4455
|
-
visibility: "visible",
|
|
4456
|
-
width: "auto",
|
|
4457
|
-
minHeight: "25px"
|
|
4458
|
-
},
|
|
4459
|
-
"&.exit": {
|
|
4460
|
-
transition: Et,
|
|
4461
|
-
opacity: 0,
|
|
4462
|
-
height: 0,
|
|
4463
|
-
visibility: "visible",
|
|
4464
|
-
width: 0
|
|
4465
|
-
},
|
|
4466
|
-
"&.exit-done": {
|
|
4467
|
-
opacity: 0,
|
|
4468
|
-
visibility: "hidden",
|
|
4469
|
-
height: 0,
|
|
4470
|
-
width: 0
|
|
4471
|
-
}
|
|
4472
|
-
})), Ot = (e) => {
|
|
4473
|
-
let { show: t, children: n, className: r } = e, i = w(null);
|
|
4474
|
-
return /* @__PURE__ */ E(l, {
|
|
4475
|
-
nodeRef: i,
|
|
4476
|
-
in: t,
|
|
4477
|
-
appear: !0,
|
|
4478
|
-
mountOnEnter: !1,
|
|
4479
|
-
timeout: 300,
|
|
4480
|
-
classNames: {
|
|
4481
|
-
enter: "enter",
|
|
4482
|
-
enterDone: "enter-done",
|
|
4483
|
-
exit: "exit",
|
|
4484
|
-
exitDone: "exit-done"
|
|
4485
|
-
},
|
|
4486
|
-
children: /* @__PURE__ */ E(Dt, {
|
|
4487
|
-
ref: i,
|
|
4488
|
-
className: r,
|
|
4489
|
-
children: n
|
|
4490
|
-
})
|
|
4491
|
-
});
|
|
4492
|
-
};
|
|
4493
|
-
Ot.propTypes = {
|
|
4494
|
-
show: O.default.bool.isRequired,
|
|
4495
|
-
className: O.default.string,
|
|
4496
|
-
children: O.default.oneOfType([O.default.arrayOf(O.default.node), O.default.node]).isRequired
|
|
4497
|
-
};
|
|
4498
|
-
//#endregion
|
|
4499
|
-
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
4500
|
-
function kt(e) {
|
|
4501
|
-
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
4502
|
-
}
|
|
4503
|
-
function At(e, t) {
|
|
4504
|
-
return !e || kt(e) ? e : kt(e.default) ? e.default : t && kt(e[t]) ? e[t] : t && kt(e[t]?.default) ? e[t].default : e;
|
|
4505
|
-
}
|
|
4506
|
-
var jt = At(f, "Readable") || At(Nt.Readable, "Readable"), Mt = m, X = Mt.default, Nt = X && typeof X == "object" ? X : Mt, { translator: Pt } = ht, Ft = {
|
|
4507
|
-
WebkitTouchCallout: "none",
|
|
4508
|
-
WebkitUserSelect: "none",
|
|
4509
|
-
KhtmlUserSelect: "none",
|
|
4510
|
-
MozUserSelect: "none",
|
|
4511
|
-
msUserSelect: "none",
|
|
4512
|
-
userSelect: "none"
|
|
4513
|
-
}, It = x("div")(() => ({
|
|
4514
|
-
width: "100%",
|
|
4515
|
-
cursor: "pointer"
|
|
4516
|
-
})), Lt = x("div")(() => ({
|
|
4517
|
-
margin: "0 auto",
|
|
4518
|
-
textAlign: "center",
|
|
4519
|
-
display: "flex"
|
|
4520
|
-
})), Rt = x("div")(() => ({
|
|
4521
|
-
width: "fit-content",
|
|
4522
|
-
minWidth: "140px",
|
|
4523
|
-
alignSelf: "center",
|
|
4524
|
-
verticalAlign: "middle",
|
|
4525
|
-
color: `var(--correct-answer-toggle-label-color, ${s.text()})`,
|
|
4526
|
-
fontWeight: "normal",
|
|
4527
|
-
...Ft
|
|
4528
|
-
})), zt = x("div")(() => ({
|
|
4529
|
-
position: "absolute",
|
|
4530
|
-
width: "25px",
|
|
4531
|
-
"&.enter": { opacity: "0" },
|
|
4532
|
-
"&.enter-active": {
|
|
4533
|
-
opacity: "1",
|
|
4534
|
-
transition: "opacity 0.3s ease-in"
|
|
4535
|
-
},
|
|
4536
|
-
"&.exit": { opacity: "1" },
|
|
4537
|
-
"&.exit-active": {
|
|
4538
|
-
opacity: "0",
|
|
4539
|
-
transition: "opacity 0.3s ease-in"
|
|
4540
|
-
}
|
|
4541
|
-
})), Bt = x("div")(() => ({
|
|
4542
|
-
width: "25px",
|
|
4543
|
-
marginRight: "5px",
|
|
4544
|
-
display: "flex",
|
|
4545
|
-
alignItems: "center"
|
|
4546
|
-
})), Vt = class e extends C.Component {
|
|
4547
|
-
static propTypes = {
|
|
4548
|
-
onToggle: O.default.func,
|
|
4549
|
-
toggled: O.default.bool,
|
|
4550
|
-
show: O.default.bool,
|
|
4551
|
-
hideMessage: O.default.string,
|
|
4552
|
-
showMessage: O.default.string,
|
|
4553
|
-
className: O.default.string,
|
|
4554
|
-
language: O.default.string
|
|
4555
|
-
};
|
|
4556
|
-
static defaultProps = {
|
|
4557
|
-
showMessage: "Show correct answer",
|
|
4558
|
-
hideMessage: "Hide correct answer",
|
|
4559
|
-
show: !1,
|
|
4560
|
-
toggled: !1
|
|
4561
|
-
};
|
|
4562
|
-
constructor(t) {
|
|
4563
|
-
super(t), this.state = { show: t.show }, this.openIconRef = C.createRef(), this.closedIconRef = C.createRef(), e.defaultProps = {
|
|
4564
|
-
...e.defaultProps,
|
|
4565
|
-
showMessage: Pt.t("common:showCorrectAnswer", { lng: t.language }),
|
|
4566
|
-
hideMessage: Pt.t("common:hideCorrectAnswer", { lng: t.language })
|
|
4567
|
-
};
|
|
4568
|
-
}
|
|
4569
|
-
onClick() {
|
|
4570
|
-
this.props.onToggle(!this.props.toggled);
|
|
4571
|
-
}
|
|
4572
|
-
onTouch(e) {
|
|
4573
|
-
e.preventDefault(), this.props.onToggle(!this.props.toggled);
|
|
4574
|
-
}
|
|
4575
|
-
UNSAFE_componentWillReceiveProps(t) {
|
|
4576
|
-
this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
|
|
4577
|
-
...e.defaultProps,
|
|
4578
|
-
showMessage: Pt.t("common:showCorrectAnswer", { lng: t.language }),
|
|
4579
|
-
hideMessage: Pt.t("common:hideCorrectAnswer", { lng: t.language })
|
|
4580
|
-
});
|
|
4581
|
-
}
|
|
4582
|
-
render() {
|
|
4583
|
-
let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
|
|
4584
|
-
return /* @__PURE__ */ E(It, {
|
|
4585
|
-
className: e,
|
|
4586
|
-
children: /* @__PURE__ */ E(Ot, {
|
|
4587
|
-
show: this.state.show,
|
|
4588
|
-
children: /* @__PURE__ */ D(Lt, {
|
|
4589
|
-
onClick: this.onClick.bind(this),
|
|
4590
|
-
onTouchEnd: this.onTouch.bind(this),
|
|
4591
|
-
children: [/* @__PURE__ */ D(Bt, { children: [/* @__PURE__ */ E(l, {
|
|
4592
|
-
nodeRef: this.openIconRef,
|
|
4593
|
-
timeout: 400,
|
|
4594
|
-
in: t,
|
|
4595
|
-
exit: !t,
|
|
4596
|
-
classNames: {
|
|
4597
|
-
enter: "enter",
|
|
4598
|
-
enterActive: "enter-active",
|
|
4599
|
-
exit: "exit",
|
|
4600
|
-
exitActive: "exit-active"
|
|
4601
|
-
},
|
|
4602
|
-
children: /* @__PURE__ */ E(zt, {
|
|
4603
|
-
ref: this.openIconRef,
|
|
4604
|
-
children: /* @__PURE__ */ E(ne, { open: t }, "correct-open")
|
|
4605
|
-
})
|
|
4606
|
-
}), /* @__PURE__ */ E(l, {
|
|
4607
|
-
nodeRef: this.closedIconRef,
|
|
4608
|
-
timeout: 5e3,
|
|
4609
|
-
in: !t,
|
|
4610
|
-
exit: t,
|
|
4611
|
-
classNames: {
|
|
4612
|
-
enter: "enter",
|
|
4613
|
-
enterActive: "enter-active",
|
|
4614
|
-
exit: "exit",
|
|
4615
|
-
exitActive: "exit-active"
|
|
4616
|
-
},
|
|
4617
|
-
children: /* @__PURE__ */ E(zt, {
|
|
4618
|
-
ref: this.closedIconRef,
|
|
4619
|
-
children: /* @__PURE__ */ E(ne, { open: t }, "correct-closed")
|
|
4620
|
-
})
|
|
4621
|
-
})] }), /* @__PURE__ */ E(jt, {
|
|
4622
|
-
false: !0,
|
|
4623
|
-
children: /* @__PURE__ */ E(Rt, {
|
|
4624
|
-
"aria-hidden": !this.state.show,
|
|
4625
|
-
children: t ? n : r
|
|
4626
|
-
})
|
|
4627
|
-
})]
|
|
4628
|
-
})
|
|
4629
|
-
})
|
|
4630
|
-
});
|
|
4631
|
-
}
|
|
4632
|
-
}, Ht = function() {
|
|
4633
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = document.createElement("div");
|
|
4634
|
-
return t.innerHTML = e.trim(), t;
|
|
4635
|
-
}, Ut = function(e, t) {
|
|
4636
|
-
return t ? e.innerHTML : `${e.innerHTML}
|
|
4637
|
-
|
|
4638
|
-
`;
|
|
4639
|
-
}, Wt = function(e) {
|
|
4640
|
-
var t = e.querySelectorAll("div[separator=true]"), n = "";
|
|
4641
|
-
return t.forEach(function(e, r) {
|
|
4642
|
-
n += Ut(e, r === t.length - 1);
|
|
4643
|
-
}), n || null;
|
|
4644
|
-
}, Gt = function(e) {
|
|
4645
|
-
var t = Ht(e), n = document.createElement("div");
|
|
4646
|
-
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e : Wt(t);
|
|
4647
|
-
}, Kt = (e) => {
|
|
4648
|
-
if (!e) return e;
|
|
4649
|
-
let t = Gt(e.text || ""), n = (e.tokens || []).reduce((n, r = {}) => {
|
|
4650
|
-
let i = Gt((e.text || "").slice(r.start, r.end));
|
|
4651
|
-
if (!i) return [...n, r];
|
|
4652
|
-
let a = (e) => {
|
|
4653
|
-
let n = e;
|
|
4654
|
-
for (; n >= 0;) {
|
|
4655
|
-
let e = t.slice(n).indexOf(i);
|
|
4656
|
-
if (e >= 0) return e + n;
|
|
4657
|
-
n--;
|
|
4658
|
-
}
|
|
4659
|
-
return 0;
|
|
4660
|
-
}, o = n[n.length - 1], s = a(o ? o.end : r.start), c = s + i.length;
|
|
4661
|
-
return [...n, {
|
|
4662
|
-
...r,
|
|
4663
|
-
text: i,
|
|
4664
|
-
start: s,
|
|
4665
|
-
end: c,
|
|
4666
|
-
oldStart: r.start,
|
|
4667
|
-
oldEnd: r.end
|
|
4668
|
-
}];
|
|
4669
|
-
}, []);
|
|
4670
|
-
return {
|
|
4671
|
-
...e,
|
|
4672
|
-
tokens: n,
|
|
4673
|
-
text: t
|
|
4674
|
-
};
|
|
4675
|
-
};
|
|
4676
|
-
//#endregion
|
|
4677
|
-
//#region src/delivery/main.tsx
|
|
4678
|
-
function qt(e) {
|
|
4679
|
-
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
4680
|
-
}
|
|
4681
|
-
function Jt(e, t) {
|
|
4682
|
-
return !e || qt(e) ? e : qt(e.default) ? e.default : t && qt(e[t]) ? e[t] : t && qt(e[t]?.default) ? e[t].default : e;
|
|
4683
|
-
}
|
|
4684
|
-
var Z = Jt(d, "UiLayout") || Jt($t.UiLayout, "UiLayout"), Yt = Jt(u, "PreviewPrompt") || Jt($t.PreviewPrompt, "PreviewPrompt"), Xt = Jt(c, "Collapsible") || Jt($t.Collapsible, "Collapsible"), Q = Jt(o, "Feedback") || Jt($t.Feedback, "Feedback"), Zt = m, Qt = Zt.default, $t = Qt && typeof Qt == "object" ? Qt : Zt, en = (0, P.default)("@pie-ui:select-text"), tn = x(Z)({
|
|
4685
|
-
color: s.text(),
|
|
4686
|
-
backgroundColor: s.background()
|
|
4687
|
-
}), nn = x(I)(({ theme: e }) => ({
|
|
4688
|
-
marginBottom: e.spacing(1),
|
|
4689
|
-
marginTop: e.spacing(2),
|
|
4690
|
-
whiteSpace: "normal"
|
|
4691
|
-
})), rn = x("div")(({ theme: e }) => ({
|
|
4692
|
-
verticalAlign: "middle",
|
|
4693
|
-
marginBottom: e.spacing(1)
|
|
4694
|
-
})), an = x(Xt)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), on = {
|
|
4695
|
-
model: O.default.object,
|
|
4696
|
-
session: O.default.object,
|
|
4697
|
-
onSelectionChange: O.default.func.isRequired
|
|
4698
|
-
}, sn = class extends C.Component {
|
|
4699
|
-
static propTypes = on;
|
|
4700
|
-
static defaultProps = {};
|
|
4701
|
-
constructor(e) {
|
|
4702
|
-
super(e), this.state = {
|
|
4703
|
-
showCorrectAnswer: this.props.model.alwaysShowCorrect || !1,
|
|
4704
|
-
model: Kt(e.model)
|
|
4705
|
-
};
|
|
4706
|
-
}
|
|
4707
|
-
UNSAFE_componentWillReceiveProps(e) {
|
|
4708
|
-
this.setState({
|
|
4709
|
-
showCorrectAnswer: !!e.model.alwaysShowCorrect,
|
|
4710
|
-
model: Kt(e.model)
|
|
4711
|
-
});
|
|
4712
|
-
}
|
|
4713
|
-
toggleShowCorrect = () => {
|
|
4714
|
-
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
4715
|
-
};
|
|
4716
|
-
correctAnswer = () => {
|
|
4717
|
-
let { model: e } = this.state;
|
|
4718
|
-
return e.tokens.filter((e) => e.correct);
|
|
4719
|
-
};
|
|
4720
|
-
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 && (p(r.rationale) || h(r.rationale)), l = r.teacherInstructions && (p(r.teacherInstructions) || h(r.teacherInstructions));
|
|
4722
|
-
return en("[render] selectedTokens:", s), /* @__PURE__ */ D(tn, {
|
|
4723
|
-
extraCSSRules: a,
|
|
4724
|
-
children: [
|
|
4725
|
-
l && (r.animationsDisabled ? /* @__PURE__ */ E(rn, { children: /* @__PURE__ */ E(Yt, { prompt: r.teacherInstructions }) }) : /* @__PURE__ */ E(an, {
|
|
4726
|
-
labels: {
|
|
4727
|
-
hidden: "Show Teacher Instructions",
|
|
4728
|
-
visible: "Hide Teacher Instructions"
|
|
4729
|
-
},
|
|
4730
|
-
children: /* @__PURE__ */ E(Yt, { prompt: r.teacherInstructions })
|
|
4731
|
-
})),
|
|
4732
|
-
/* @__PURE__ */ E(rn, { children: /* @__PURE__ */ E(Yt, { prompt: r.prompt }) }),
|
|
4733
|
-
!r.alwaysShowCorrect && /* @__PURE__ */ E(Vt, {
|
|
4734
|
-
show: r.disabled && r.incorrect,
|
|
4735
|
-
toggled: n,
|
|
4736
|
-
onToggle: this.toggleShowCorrect,
|
|
4737
|
-
language: r.language
|
|
4738
|
-
}),
|
|
4739
|
-
/* @__PURE__ */ E(nn, {
|
|
4740
|
-
disabled: r.disabled,
|
|
4741
|
-
text: r.text,
|
|
4742
|
-
tokens: r.tokens,
|
|
4743
|
-
selectedTokens: s,
|
|
4744
|
-
onChange: (e) => {
|
|
4745
|
-
t(e.map((e) => r.tokens.find(({ start: t, end: n }) => e.start === t && e.end === n) || e));
|
|
4746
|
-
},
|
|
4747
|
-
highlightChoices: r.highlightChoices,
|
|
4748
|
-
maxNoOfSelections: r.maxSelections,
|
|
4749
|
-
animationsDisabled: r.animationsDisabled
|
|
4750
|
-
}),
|
|
4751
|
-
o === "evaluate" && /* @__PURE__ */ E(Tt, {
|
|
4752
|
-
language: r.language,
|
|
4753
|
-
showOnlyCorrect: n
|
|
4754
|
-
}),
|
|
4755
|
-
c && (r.animationsDisabled ? /* @__PURE__ */ E(rn, { children: /* @__PURE__ */ E(Yt, { prompt: r.rationale }) }) : /* @__PURE__ */ E(an, {
|
|
4756
|
-
labels: {
|
|
4757
|
-
hidden: "Show Rationale",
|
|
4758
|
-
visible: "Hide Rationale"
|
|
4759
|
-
},
|
|
4760
|
-
children: /* @__PURE__ */ E(Yt, { prompt: r.rationale })
|
|
4761
|
-
})),
|
|
4762
|
-
r.correctness && r.feedback && !n && /* @__PURE__ */ E(Q, {
|
|
4763
|
-
correctness: r.correctness,
|
|
4764
|
-
feedback: r.feedback
|
|
4765
|
-
})
|
|
4766
|
-
]
|
|
4767
|
-
});
|
|
4768
|
-
}
|
|
4769
|
-
}, cn = class extends C.Component {
|
|
4770
|
-
static propTypes = on;
|
|
4771
|
-
constructor(e) {
|
|
4772
|
-
super(e), this.state = {
|
|
4773
|
-
model: e.model,
|
|
4774
|
-
session: e.session
|
|
4775
|
-
};
|
|
4776
|
-
}
|
|
4777
|
-
UNSAFE_componentWillReceiveProps(e) {
|
|
4778
|
-
this.setState({
|
|
4779
|
-
model: e.model,
|
|
4780
|
-
session: e.session
|
|
4781
|
-
});
|
|
4782
|
-
}
|
|
4783
|
-
change = (e) => {
|
|
4784
|
-
let t = {
|
|
4785
|
-
...this.state.session,
|
|
4786
|
-
selectedTokens: e
|
|
4787
|
-
};
|
|
4788
|
-
this.setState({ session: t }, () => {
|
|
4789
|
-
this.props.onSelectionChange(this.state.session.selectedTokens);
|
|
4790
|
-
});
|
|
4791
|
-
};
|
|
4792
|
-
render() {
|
|
4793
|
-
let { model: e, session: t } = this.state;
|
|
4794
|
-
return /* @__PURE__ */ E(sn, {
|
|
4795
|
-
model: e,
|
|
4796
|
-
session: t,
|
|
4797
|
-
onSelectionChange: this.change
|
|
4798
|
-
});
|
|
4799
|
-
}
|
|
4800
|
-
};
|
|
4801
|
-
//#endregion
|
|
4802
|
-
export { Kt as n, cn as t };
|
|
4803
|
-
|
|
4804
|
-
//# sourceMappingURL=main-nEorTqht.js.map
|