@pie-element/select-text 13.4.0-beta.7 → 14.0.0-next.20261002094057

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