@pie-element/mc-populated-blank 0.2.13 → 0.3.0-next.10

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 (67) hide show
  1. package/README.md +8 -5
  2. package/author.js +2 -0
  3. package/configure.js +2 -0
  4. package/dist/author/defaults.d.ts +74 -0
  5. package/dist/author/index.d.ts +0 -1
  6. package/dist/author/index.js +1732 -1553
  7. package/dist/author/index.js.map +1 -1
  8. package/dist/browser/author/index.js +41 -0
  9. package/dist/browser/author/index.js.map +1 -0
  10. package/dist/browser/client-6I83eQqA.js +2396 -0
  11. package/dist/browser/client-6I83eQqA.js.map +1 -0
  12. package/dist/browser/controller/index.js +209 -0
  13. package/dist/browser/controller/index.js.map +1 -0
  14. package/dist/browser/delivery/index.js +1131 -0
  15. package/dist/browser/delivery/index.js.map +1 -0
  16. package/dist/browser/i18n-CQZqUmjk.js +1542 -0
  17. package/dist/browser/i18n-CQZqUmjk.js.map +1 -0
  18. package/dist/browser/layoutLimits-Bp17YP2V.js +42 -0
  19. package/dist/browser/layoutLimits-Bp17YP2V.js.map +1 -0
  20. package/dist/browser/print/index.js +151 -0
  21. package/dist/browser/print/index.js.map +1 -0
  22. package/dist/controller/defaults.d.ts +8 -30
  23. package/dist/controller/index.d.ts +79 -63
  24. package/dist/controller/index.js +108 -85
  25. package/dist/controller/index.js.map +1 -1
  26. package/dist/delivery/computeAudioMode.d.ts +0 -1
  27. package/dist/delivery/computeChoiceCorrectness.d.ts +0 -1
  28. package/dist/delivery/computeDisplayState.d.ts +7 -8
  29. package/dist/delivery/computeLayoutProfile.d.ts +0 -1
  30. package/dist/delivery/computeLayoutStyle.d.ts +0 -2
  31. package/dist/delivery/i18n.d.ts +8 -0
  32. package/dist/delivery/index.d.ts +22 -1
  33. package/dist/delivery/index.js +5742 -3222
  34. package/dist/delivery/index.js.map +1 -1
  35. package/dist/delivery/variant-css-map.d.ts +15 -2
  36. package/dist/index.d.ts +0 -1
  37. package/dist/index.iife.d.ts +0 -156
  38. package/dist/index.iife.js +139 -38
  39. package/dist/index.js +5742 -3222
  40. package/dist/index.js.map +1 -1
  41. package/dist/print/index.d.ts +4 -1
  42. package/dist/print/index.js +5418 -2879
  43. package/dist/print/index.js.map +1 -1
  44. package/dist/runtime-support.d.ts +12 -0
  45. package/dist/runtime-support.js +14 -0
  46. package/dist/runtime-support.js.map +1 -0
  47. package/dist/shared/layoutLimits.d.ts +1 -2
  48. package/dist/shared/types.d.ts +20 -19
  49. package/module/print.js +3883 -0
  50. package/module/print.js.map +1 -0
  51. package/package.json +42 -13
  52. package/print.js +2 -0
  53. package/dist/author/index.d.ts.map +0 -1
  54. package/dist/controller/defaults.d.ts.map +0 -1
  55. package/dist/controller/index.d.ts.map +0 -1
  56. package/dist/delivery/computeAudioMode.d.ts.map +0 -1
  57. package/dist/delivery/computeChoiceCorrectness.d.ts.map +0 -1
  58. package/dist/delivery/computeDisplayState.d.ts.map +0 -1
  59. package/dist/delivery/computeLayoutProfile.d.ts.map +0 -1
  60. package/dist/delivery/computeLayoutStyle.d.ts.map +0 -1
  61. package/dist/delivery/index.d.ts.map +0 -1
  62. package/dist/delivery/variant-css-map.d.ts.map +0 -1
  63. package/dist/index.d.ts.map +0 -1
  64. package/dist/index.iife.d.ts.map +0 -1
  65. package/dist/print/index.d.ts.map +0 -1
  66. package/dist/shared/layoutLimits.d.ts.map +0 -1
  67. package/dist/shared/types.d.ts.map +0 -1
@@ -0,0 +1,3883 @@
1
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
+ //#endregion
4
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
5
+ var e = {}, t = Symbol("uninitialized"), n = "http://www.w3.org/1999/xhtml", r = "http://www.w3.org/2000/svg", i = "http://www.w3.org/1998/Math/MathML", a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible, _ = () => {};
6
+ function v(e) {
7
+ for (var t = 0; t < e.length; t++) e[t]();
8
+ }
9
+ function y() {
10
+ var e, t;
11
+ return {
12
+ promise: new Promise((n, r) => {
13
+ e = n, t = r;
14
+ }),
15
+ resolve: e,
16
+ reject: t
17
+ };
18
+ }
19
+ var b = 1024, x = 2048, S = 4096, ee = 8192, te = 16384, C = 32768, w = 1 << 25, ne = 65536, re = 1 << 19, ie = 1 << 20, ae = 1 << 25, oe = 65536, se = 1 << 21, ce = 1 << 22, le = 1 << 23, ue = Symbol("$state"), de = Symbol("component"), fe = Symbol("legacy props"), pe = Symbol(""), me = Symbol("attributes"), he = Symbol("class"), ge = Symbol("style"), _e = Symbol("text"), ve = new class extends Error {
20
+ name = "StaleReactionError";
21
+ message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
22
+ }(), ye = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ function be() {
24
+ console.warn("https://svelte.dev/e/derived_inert");
25
+ }
26
+ function xe(e) {
27
+ console.warn("https://svelte.dev/e/hydration_mismatch");
28
+ }
29
+ function Se() {
30
+ console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
31
+ }
32
+ //#endregion
33
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
34
+ var T = !1;
35
+ function Ce(e) {
36
+ T = e;
37
+ }
38
+ var E;
39
+ function D(t) {
40
+ if (t === null) throw xe(), e;
41
+ return E = t;
42
+ }
43
+ function we() {
44
+ return D(/* @__PURE__ */ F(E));
45
+ }
46
+ function O(t) {
47
+ if (T) {
48
+ if (/* @__PURE__ */ F(E) !== null) throw xe(), e;
49
+ E = t;
50
+ }
51
+ }
52
+ function Te(e = 1) {
53
+ if (T) {
54
+ for (var t = e, n = E; t--;) n = /* @__PURE__ */ F(n);
55
+ E = n;
56
+ }
57
+ }
58
+ function Ee(e = !0) {
59
+ for (var t = 0, n = E;;) {
60
+ if (n.nodeType === 8) {
61
+ var r = n.data;
62
+ if (r === "]") {
63
+ if (t === 0) return n;
64
+ --t;
65
+ } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
66
+ }
67
+ var i = /* @__PURE__ */ F(n);
68
+ e && n.remove(), n = i;
69
+ }
70
+ }
71
+ function De(t) {
72
+ if (!t || t.nodeType !== 8) throw xe(), e;
73
+ return t.data;
74
+ }
75
+ //#endregion
76
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
77
+ function Oe(e) {
78
+ return e === this.v;
79
+ }
80
+ function ke(e, t) {
81
+ return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
82
+ }
83
+ function Ae(e) {
84
+ return !ke(e, this.v);
85
+ }
86
+ //#endregion
87
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
88
+ function je() {
89
+ throw Error("https://svelte.dev/e/async_derived_orphan");
90
+ }
91
+ function Me(e, t, n) {
92
+ throw Error("https://svelte.dev/e/each_key_duplicate");
93
+ }
94
+ function Ne() {
95
+ throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
96
+ }
97
+ function Pe() {
98
+ throw Error("https://svelte.dev/e/hydration_failed");
99
+ }
100
+ function Fe(e) {
101
+ throw Error("https://svelte.dev/e/props_invalid_value");
102
+ }
103
+ function Ie() {
104
+ throw Error("https://svelte.dev/e/state_descriptors_fixed");
105
+ }
106
+ function Le() {
107
+ throw Error("https://svelte.dev/e/state_prototype_fixed");
108
+ }
109
+ function Re() {
110
+ throw Error("https://svelte.dev/e/state_unsafe_mutation");
111
+ }
112
+ function ze() {
113
+ throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
114
+ }
115
+ //#endregion
116
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
117
+ var k = null;
118
+ function Be(e) {
119
+ k = e;
120
+ }
121
+ function Ve(e, t = !1, n) {
122
+ k = {
123
+ p: k,
124
+ i: !1,
125
+ c: null,
126
+ e: null,
127
+ s: e,
128
+ x: null,
129
+ r: H,
130
+ l: null
131
+ };
132
+ }
133
+ function He(e) {
134
+ var t = k, n = t.e;
135
+ if (n !== null) {
136
+ t.e = null;
137
+ for (var r of n) fn(r);
138
+ }
139
+ return e !== void 0 && (t.x = e), t.i = !0, k = t.p, Ue(e);
140
+ }
141
+ function Ue(e = {}) {
142
+ return u(e, de, { value: !0 }), e;
143
+ }
144
+ function We() {
145
+ return !0;
146
+ }
147
+ //#endregion
148
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
149
+ var Ge = [];
150
+ function Ke() {
151
+ var e = Ge;
152
+ Ge = [], v(e);
153
+ }
154
+ function qe(e) {
155
+ if (Ge.length === 0 && !yt) {
156
+ var t = Ge;
157
+ queueMicrotask(() => {
158
+ t === Ge && Ke();
159
+ });
160
+ }
161
+ Ge.push(e);
162
+ }
163
+ function Je() {
164
+ for (; Ge.length > 0;) Ke();
165
+ }
166
+ //#endregion
167
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
168
+ var Ye = ~(x | S | b);
169
+ function A(e, t) {
170
+ e.f = e.f & Ye | t;
171
+ }
172
+ function Xe(e) {
173
+ e.f & 512 || e.deps === null ? A(e, b) : A(e, S);
174
+ }
175
+ //#endregion
176
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
177
+ function Ze(e) {
178
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= oe, Ze(t.deps));
179
+ }
180
+ function Qe(e, t, n) {
181
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ze(e.deps), A(e, b);
182
+ }
183
+ //#endregion
184
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
185
+ var $e = !1;
186
+ function et(e) {
187
+ var t = $e;
188
+ try {
189
+ return $e = !1, [e(), $e];
190
+ } finally {
191
+ $e = t;
192
+ }
193
+ }
194
+ //#endregion
195
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
196
+ function tt(e) {
197
+ var t = z, n = H;
198
+ V(null), U(null);
199
+ try {
200
+ return e();
201
+ } finally {
202
+ V(t), U(n);
203
+ }
204
+ }
205
+ //#endregion
206
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
207
+ function nt(e, t, n, r) {
208
+ let i = We() ? ot : ut;
209
+ var a = e.filter((e) => !e.settled), o = t.map(i);
210
+ if (n.length === 0 && a.length === 0) {
211
+ r(o);
212
+ return;
213
+ }
214
+ var s = H, c = rt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
215
+ function u(e) {
216
+ if (!(s.f & 16384)) {
217
+ c();
218
+ try {
219
+ r([...o, ...e]);
220
+ } catch (e) {
221
+ sn(e, s);
222
+ }
223
+ it();
224
+ }
225
+ }
226
+ var d = at();
227
+ if (n.length === 0) {
228
+ l.then(() => u([])).finally(d);
229
+ return;
230
+ }
231
+ function f() {
232
+ Promise.all(n.map((e) => /* @__PURE__ */ ct(e))).then(u).catch((e) => sn(e, s)).finally(d);
233
+ }
234
+ l ? l.then(() => {
235
+ c(), f(), it();
236
+ }) : f();
237
+ }
238
+ function rt() {
239
+ var e = H, t = z, n = k, r = j;
240
+ return function(i = !0) {
241
+ U(e), V(t), Be(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
242
+ };
243
+ }
244
+ function it(e = !0) {
245
+ U(null), V(null), Be(null), e && j?.deactivate();
246
+ }
247
+ function at() {
248
+ var e = H, t = e.b, n = j, r = !!t?.is_rendered();
249
+ return t?.update_pending_count(1, n), n.increment(r, e), () => {
250
+ t?.update_pending_count(-1, n), n.decrement(r, e);
251
+ };
252
+ }
253
+ /*#__NO_SIDE_EFFECTS__*/
254
+ function ot(e) {
255
+ var n = 2 | x;
256
+ return H !== null && (H.f |= re), {
257
+ ctx: k,
258
+ deps: null,
259
+ effects: null,
260
+ equals: Oe,
261
+ f: n,
262
+ fn: e,
263
+ reactions: null,
264
+ rv: 0,
265
+ v: t,
266
+ wv: 0,
267
+ parent: H,
268
+ ac: null
269
+ };
270
+ }
271
+ var st = Symbol("obsolete");
272
+ /*#__NO_SIDE_EFFECTS__*/
273
+ function ct(e, n, r) {
274
+ let i = H;
275
+ i === null && je();
276
+ var a = void 0, o = Rt(t), s = !z, c = /* @__PURE__ */ new Set();
277
+ return gn(() => {
278
+ var t = H, n = y();
279
+ a = n.promise;
280
+ try {
281
+ Promise.resolve(e()).then(n.resolve, (e) => {
282
+ e !== ve && n.reject(e);
283
+ }).finally(it);
284
+ } catch (e) {
285
+ n.reject(e), it();
286
+ }
287
+ var r = j;
288
+ if (s) {
289
+ if (t.f & 32768) var l = at();
290
+ if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(st);
291
+ else for (let e of c.values()) e.reject(st);
292
+ c.add(n), r.async_deriveds.set(t, n);
293
+ }
294
+ let u = (e, t = void 0) => {
295
+ l?.(), c.delete(n), t !== st && (r.activate(), t ? (o.f |= le, Ht(o, t)) : (o.f & 8388608 && (o.f ^= le), Ht(o, e)), r.deactivate());
296
+ };
297
+ n.promise.then(u, (e) => u(null, e || "unknown"));
298
+ }), dn(() => {
299
+ for (let e of c) e.reject(st);
300
+ }), new Promise((e) => {
301
+ function t(n) {
302
+ function r() {
303
+ n === a ? e(o) : t(a);
304
+ }
305
+ n.then(r, r);
306
+ }
307
+ t(a);
308
+ });
309
+ }
310
+ /*#__NO_SIDE_EFFECTS__*/
311
+ function lt(e) {
312
+ let t = /* @__PURE__ */ ot(e);
313
+ return Fn(t), t;
314
+ }
315
+ /*#__NO_SIDE_EFFECTS__*/
316
+ function ut(e) {
317
+ let t = /* @__PURE__ */ ot(e);
318
+ return t.equals = Ae, t;
319
+ }
320
+ function dt(e) {
321
+ var t = e.effects;
322
+ if (t !== null) {
323
+ e.effects = null;
324
+ for (var n = 0; n < t.length; n += 1) R(t[n]);
325
+ }
326
+ }
327
+ function ft(e) {
328
+ var n, r = H, i = e.parent;
329
+ if (!Mn && i !== null && e.v !== t && i.f & 24576) return be(), e.v;
330
+ U(i);
331
+ try {
332
+ e.f &= ~oe, dt(e), n = Wn(e);
333
+ } finally {
334
+ U(r);
335
+ }
336
+ return n;
337
+ }
338
+ function pt(e) {
339
+ var t = ft(e);
340
+ if (!e.equals(t) && (e.wv = Vn(), (!j?.is_fork || e.deps === null) && (j === null ? e.v = t : (j.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
341
+ A(e, b);
342
+ return;
343
+ }
344
+ Mn || (M === null ? Xe(e) : (un() || j?.is_fork) && M.set(e, t));
345
+ }
346
+ function mt(e) {
347
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
348
+ t.ac.abort(ve), t.ac = null;
349
+ }), t.fn !== null && (t.teardown = _), qn(t, 0), xn(t));
350
+ }
351
+ function ht(e) {
352
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Jn(t);
353
+ }
354
+ //#endregion
355
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
356
+ var gt = null, j = null, _t = null, M = null, vt = null, yt = !1, bt = !1, xt = null, St = null, Ct = 0, wt = 1, Tt = class e {
357
+ id = wt++;
358
+ #e = !1;
359
+ linked = !0;
360
+ #t = null;
361
+ #n = null;
362
+ async_deriveds = /* @__PURE__ */ new Map();
363
+ current = /* @__PURE__ */ new Map();
364
+ previous = /* @__PURE__ */ new Map();
365
+ #r = /* @__PURE__ */ new Set();
366
+ #i = /* @__PURE__ */ new Set();
367
+ #a = 0;
368
+ #o = /* @__PURE__ */ new Map();
369
+ #s = null;
370
+ #c = [];
371
+ #l = [];
372
+ #u = /* @__PURE__ */ new Set();
373
+ #d = /* @__PURE__ */ new Set();
374
+ #f = /* @__PURE__ */ new Map();
375
+ #p = /* @__PURE__ */ new Set();
376
+ is_fork = !1;
377
+ #m = !1;
378
+ constructor() {
379
+ gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
380
+ }
381
+ #h() {
382
+ if (this.is_fork) return !0;
383
+ for (let n of this.#o.keys()) {
384
+ for (var e = n, t = !1; e.parent !== null;) {
385
+ if (this.#f.has(e)) {
386
+ t = !0;
387
+ break;
388
+ }
389
+ e = e.parent;
390
+ }
391
+ if (!t) return !0;
392
+ }
393
+ return !1;
394
+ }
395
+ skip_effect(e) {
396
+ this.#f.has(e) || this.#f.set(e, {
397
+ d: [],
398
+ m: []
399
+ }), this.#p.delete(e);
400
+ }
401
+ unskip_effect(e, t = (e) => this.schedule(e)) {
402
+ var n = this.#f.get(e);
403
+ if (n) {
404
+ this.#f.delete(e);
405
+ for (var r of n.d) A(r, x), t(r);
406
+ for (r of n.m) A(r, S), t(r);
407
+ }
408
+ this.#p.add(e);
409
+ }
410
+ #g() {
411
+ this.#e = !0, Ct++ > 1e3 && (this.#x(), Dt());
412
+ for (let e of this.#u) this.#d.delete(e), A(e, x), this.schedule(e);
413
+ for (let e of this.#d) A(e, S), this.schedule(e);
414
+ let t = this.#c;
415
+ this.#c = [], this.apply();
416
+ var n = xt = [], r = [], i = St = [];
417
+ for (let e of t) try {
418
+ this.#_(e, n, r);
419
+ } catch (t) {
420
+ throw Pt(e), this.#h() || this.discard(), t;
421
+ }
422
+ if (j = null, i.length > 0) {
423
+ var a = e.ensure();
424
+ for (let e of i) a.schedule(e);
425
+ }
426
+ if (xt = null, St = null, this.#h()) {
427
+ this.#b(r), this.#b(n);
428
+ for (let [e, t] of this.#f) Nt(e, t);
429
+ i.length > 0 && j.#g();
430
+ return;
431
+ }
432
+ let o = this.#v();
433
+ if (o) {
434
+ this.#b(r), this.#b(n), o.#y(this);
435
+ return;
436
+ }
437
+ this.#u.clear(), this.#d.clear();
438
+ for (let e of this.#r) e(this);
439
+ this.#r.clear(), _t = this, kt(r), kt(n), _t = null, this.#s?.resolve();
440
+ var s = j;
441
+ if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) if (s !== null) {
442
+ let e = s;
443
+ e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
444
+ } else s = this;
445
+ s !== null && (It.clear(), s.#g());
446
+ }
447
+ #_(e, t, n) {
448
+ e.f ^= b;
449
+ for (var r = e.first; r !== null;) {
450
+ var i = r.f, a = (i & 96) != 0;
451
+ if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
452
+ a ? r.f ^= b : i & 4 ? t.push(r) : Hn(r) && (i & 16 && this.#d.add(r), Jn(r));
453
+ var o = r.first;
454
+ if (o !== null) {
455
+ r = o;
456
+ continue;
457
+ }
458
+ }
459
+ for (; r !== null;) {
460
+ var s = r.next;
461
+ if (s !== null) {
462
+ r = s;
463
+ break;
464
+ }
465
+ r = r.parent;
466
+ }
467
+ }
468
+ }
469
+ #v() {
470
+ for (var e = this.#t; e !== null;) {
471
+ if (!e.is_fork) {
472
+ for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
473
+ }
474
+ e = e.#t;
475
+ }
476
+ return null;
477
+ }
478
+ #y(e) {
479
+ for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
480
+ for (let [t, n] of e.async_deriveds) {
481
+ let e = this.async_deriveds.get(t);
482
+ e && n.promise.then(e.resolve).catch(e.reject);
483
+ }
484
+ e.async_deriveds.clear(), this.transfer_effects(e.#u, e.#d);
485
+ let t = (e) => {
486
+ var n = e.reactions;
487
+ if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
488
+ var r = e.f;
489
+ if (r & 2) t(e);
490
+ else {
491
+ var i = e;
492
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), A(i, x), this.schedule(i));
493
+ }
494
+ }
495
+ };
496
+ for (let e of this.current.keys()) t(e);
497
+ this.oncommit(() => e.discard()), e.#x(), j = this, this.#g();
498
+ }
499
+ #b(e) {
500
+ for (var t = 0; t < e.length; t += 1) Qe(e[t], this.#u, this.#d);
501
+ }
502
+ capture(e, n, r = !1) {
503
+ e.v !== t && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [n, r]), M?.set(e, n)), this.is_fork || (e.v = n);
504
+ }
505
+ activate() {
506
+ j = this;
507
+ }
508
+ deactivate() {
509
+ j = null, M = null;
510
+ }
511
+ flush() {
512
+ try {
513
+ bt = !0, j = this, this.#g();
514
+ } finally {
515
+ Ct = 0, vt = null, xt = null, St = null, bt = !1, j = null, M = null, It.clear();
516
+ }
517
+ }
518
+ discard() {
519
+ for (let e of this.#i) e(this);
520
+ this.#i.clear();
521
+ for (let e of this.async_deriveds.values()) e.reject(st);
522
+ this.#x(), this.#s?.resolve();
523
+ }
524
+ register_created_effect(e) {
525
+ this.#l.push(e);
526
+ }
527
+ increment(e, t) {
528
+ if (this.#a += 1, e) {
529
+ let e = this.#o.get(t) ?? 0;
530
+ this.#o.set(t, e + 1);
531
+ }
532
+ }
533
+ decrement(e, t) {
534
+ if (--this.#a, e) {
535
+ let e = this.#o.get(t) ?? 0;
536
+ e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
537
+ }
538
+ this.#m || (this.#m = !0, qe(() => {
539
+ this.#m = !1, this.linked && this.flush();
540
+ }));
541
+ }
542
+ transfer_effects(e, t) {
543
+ for (let t of e) this.#u.add(t);
544
+ for (let e of t) this.#d.add(e);
545
+ e.clear(), t.clear();
546
+ }
547
+ oncommit(e) {
548
+ this.#r.add(e);
549
+ }
550
+ ondiscard(e) {
551
+ this.#i.add(e);
552
+ }
553
+ settled() {
554
+ return (this.#s ??= y()).promise;
555
+ }
556
+ static ensure() {
557
+ if (j === null) {
558
+ let t = j = new e();
559
+ !bt && !yt && qe(() => {
560
+ t.#e || t.flush();
561
+ });
562
+ }
563
+ return j;
564
+ }
565
+ apply() {
566
+ M = null;
567
+ }
568
+ schedule(e) {
569
+ if (vt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
570
+ e.b.defer_effect(e);
571
+ return;
572
+ }
573
+ for (var t = e; t.parent !== null;) {
574
+ t = t.parent;
575
+ var n = t.f;
576
+ if (xt !== null && t === H && (z === null || !(z.f & 2))) return;
577
+ if (n & 96) {
578
+ if (!(n & 1024)) return;
579
+ t.f ^= b;
580
+ }
581
+ }
582
+ this.#c.push(t);
583
+ }
584
+ #x() {
585
+ if (this.linked) {
586
+ var e = this.#t, t = this.#n;
587
+ e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
588
+ }
589
+ }
590
+ };
591
+ function Et(e) {
592
+ var t = yt;
593
+ yt = !0;
594
+ try {
595
+ var n;
596
+ for (e && (j !== null && !j.is_fork && j.flush(), n = e());;) {
597
+ if (Je(), j === null) return n;
598
+ j.flush();
599
+ }
600
+ } finally {
601
+ yt = t;
602
+ }
603
+ }
604
+ function Dt() {
605
+ try {
606
+ Ne();
607
+ } catch (e) {
608
+ sn(e, vt);
609
+ }
610
+ }
611
+ var Ot = null;
612
+ function kt(e) {
613
+ var t = e.length;
614
+ if (t !== 0) {
615
+ for (var n = 0; n < t;) {
616
+ var r = e[n++];
617
+ if (!(r.f & 24576) && Hn(r) && (Ot = /* @__PURE__ */ new Set(), Jn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), Ot?.size > 0)) {
618
+ It.clear();
619
+ for (let e of Ot) {
620
+ if (e.f & 24576) continue;
621
+ let t = [e], n = e.parent;
622
+ for (; n !== null;) Ot.has(n) && (Ot.delete(n), t.push(n)), n = n.parent;
623
+ for (let e = t.length - 1; e >= 0; e--) {
624
+ let n = t[e];
625
+ n.f & 24576 || Jn(n);
626
+ }
627
+ }
628
+ Ot.clear();
629
+ }
630
+ }
631
+ Ot = null;
632
+ }
633
+ }
634
+ function At(e, t, n, r) {
635
+ if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
636
+ let e = i.f;
637
+ e & 2 ? At(i, t, n, r) : e & 4194320 && !(e & 2048) && jt(i, t, r) && (A(i, x), Mt(i));
638
+ }
639
+ }
640
+ function jt(e, t, n) {
641
+ let r = n.get(e);
642
+ if (r !== void 0) return r;
643
+ if (e.deps !== null) for (let r of e.deps) {
644
+ if (s.call(t, r)) return !0;
645
+ if (r.f & 2 && jt(r, t, n)) return n.set(r, !0), !0;
646
+ }
647
+ return n.set(e, !1), !1;
648
+ }
649
+ function Mt(e) {
650
+ j.schedule(e);
651
+ }
652
+ function Nt(e, t) {
653
+ if (!(e.f & 32 && e.f & 1024)) {
654
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), A(e, b);
655
+ for (var n = e.first; n !== null;) Nt(n, t), n = n.next;
656
+ }
657
+ }
658
+ function Pt(e) {
659
+ A(e, b);
660
+ for (var t = e.first; t !== null;) Pt(t), t = t.next;
661
+ }
662
+ //#endregion
663
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
664
+ var Ft = /* @__PURE__ */ new Set(), It = /* @__PURE__ */ new Map(), Lt = !1;
665
+ function Rt(e, t) {
666
+ return {
667
+ f: 0,
668
+ v: e,
669
+ reactions: null,
670
+ equals: Oe,
671
+ rv: 0,
672
+ wv: 0
673
+ };
674
+ }
675
+ /*#__NO_SIDE_EFFECTS__*/
676
+ function zt(e, t) {
677
+ let n = Rt(e, t);
678
+ return Fn(n), n;
679
+ }
680
+ /*#__NO_SIDE_EFFECTS__*/
681
+ function Bt(e, t = !1, n = !0) {
682
+ let r = Rt(e);
683
+ return t || (r.equals = Ae), r;
684
+ }
685
+ function Vt(e, t, n = !1) {
686
+ return z !== null && (!B || z.f & 131072) && We() && z.f & 4325394 && (Pn === null || !Pn.has(e)) && Re(), Ht(e, n ? Kt(t) : t, St);
687
+ }
688
+ function Ht(e, t, n = null) {
689
+ if (!e.equals(t)) {
690
+ Mn ? It.set(e, t) : It.has(e) || It.set(e, e.v);
691
+ var r = Tt.ensure();
692
+ if (r.capture(e, t), e.f & 2) {
693
+ let t = e;
694
+ e.f & 2048 && ft(t), M === null && Xe(t);
695
+ }
696
+ e.wv = Vn(), Gt(e, x, n), We() && H !== null && H.f & 1024 && !(H.f & 96) && (K === null ? In([e]) : K.push(e)), !r.is_fork && Ft.size > 0 && !Lt && Ut();
697
+ }
698
+ return t;
699
+ }
700
+ function Ut() {
701
+ Lt = !1;
702
+ for (let e of Ft) {
703
+ e.f & 1024 && A(e, S);
704
+ let t;
705
+ try {
706
+ t = Hn(e);
707
+ } catch {
708
+ t = !0;
709
+ }
710
+ t && Jn(e);
711
+ }
712
+ Ft.clear();
713
+ }
714
+ function Wt(e) {
715
+ Vt(e, e.v + 1);
716
+ }
717
+ function Gt(e, t, n) {
718
+ var r = e.reactions;
719
+ if (r !== null) for (var i = We(), a = r.length, o = 0; o < a; o++) {
720
+ var s = r[o], c = s.f;
721
+ if (!(!i && s === H)) {
722
+ var l = (c & x) === 0;
723
+ if (l && A(s, t), c & 131072) Ft.add(s);
724
+ else if (c & 2) {
725
+ var u = s;
726
+ M?.delete(u), c & 65536 || (c & 512 && (H === null || !(H.f & 2097152)) && (s.f |= oe), Gt(u, S, n));
727
+ } else if (l) {
728
+ var d = s;
729
+ c & 16 && Ot !== null && Ot.add(d), n === null ? Mt(d) : n.push(d);
730
+ }
731
+ }
732
+ }
733
+ }
734
+ function Kt(e) {
735
+ if (typeof e != "object" || !e || ue in e || de in e) return e;
736
+ let n = h(e);
737
+ if (n !== p && n !== m) return e;
738
+ var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ zt(0), s = null, c = zn, l = (e) => {
739
+ if (zn === c) return e();
740
+ var t = z, n = zn;
741
+ V(null), Bn(c);
742
+ var r = e();
743
+ return V(t), Bn(n), r;
744
+ };
745
+ return i && r.set("length", /* @__PURE__ */ zt(e.length, s)), new Proxy(e, {
746
+ defineProperty(e, t, n) {
747
+ (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && Ie();
748
+ var i = r.get(t);
749
+ return i === void 0 ? l(() => {
750
+ var e = /* @__PURE__ */ zt(n.value, s);
751
+ return r.set(t, e), e;
752
+ }) : Vt(i, n.value, !0), !0;
753
+ },
754
+ deleteProperty(e, n) {
755
+ var i = r.get(n);
756
+ if (i === void 0) {
757
+ if (n in e) {
758
+ let e = l(() => /* @__PURE__ */ zt(t, s));
759
+ r.set(n, e), Wt(o);
760
+ }
761
+ } else Vt(i, t), Wt(o);
762
+ return !0;
763
+ },
764
+ get(n, i, a) {
765
+ if (i === ue) return e;
766
+ var o = r.get(i), c = i in n;
767
+ if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ zt(Kt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
768
+ var u = q(o);
769
+ return u === t ? void 0 : u;
770
+ }
771
+ return Reflect.get(n, i, a);
772
+ },
773
+ getOwnPropertyDescriptor(e, n) {
774
+ var i = Reflect.getOwnPropertyDescriptor(e, n);
775
+ if (i && "value" in i) {
776
+ var a = r.get(n);
777
+ a && (i.value = q(a));
778
+ } else if (i === void 0) {
779
+ var o = r.get(n), s = o?.v;
780
+ if (o !== void 0 && s !== t) return {
781
+ enumerable: !0,
782
+ configurable: !0,
783
+ value: s,
784
+ writable: !0
785
+ };
786
+ }
787
+ return i;
788
+ },
789
+ has(e, n) {
790
+ if (n === ue) return !0;
791
+ var i = r.get(n), a = i !== void 0 && i.v !== t || Reflect.has(e, n);
792
+ return (i !== void 0 || H !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ zt(a ? Kt(e[n]) : t, s)), r.set(n, i)), q(i) === t) ? !1 : a;
793
+ },
794
+ set(e, n, a, c) {
795
+ var u = r.get(n), f = n in e;
796
+ if (i && n === "length") for (var p = a; p < u.v; p += 1) {
797
+ var m = r.get(p + "");
798
+ m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ zt(t, s)), r.set(p + "", m)) : Vt(m, t);
799
+ }
800
+ if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ zt(void 0, s)), Vt(u, Kt(a)), r.set(n, u));
801
+ else {
802
+ f = u.v !== t;
803
+ var h = l(() => Kt(a));
804
+ Vt(u, h);
805
+ }
806
+ var g = Reflect.getOwnPropertyDescriptor(e, n);
807
+ if (g?.set && g.set.call(c, a), !f) {
808
+ if (i && typeof n == "string") {
809
+ var _ = r.get("length"), v = Number(n);
810
+ Number.isInteger(v) && v >= _.v && Vt(_, v + 1);
811
+ }
812
+ Wt(o);
813
+ }
814
+ return !0;
815
+ },
816
+ ownKeys(e) {
817
+ q(o);
818
+ var n = Reflect.ownKeys(e).filter((e) => {
819
+ var n = r.get(e);
820
+ return n === void 0 || n.v !== t;
821
+ });
822
+ for (var [i, a] of r) a.v !== t && !(i in e) && n.push(i);
823
+ return n;
824
+ },
825
+ setPrototypeOf() {
826
+ Le();
827
+ }
828
+ });
829
+ }
830
+ var qt, Jt, Yt, Xt;
831
+ function Zt() {
832
+ if (qt === void 0) {
833
+ qt = window, Jt = /Firefox/.test(navigator.userAgent);
834
+ var e = Element.prototype, t = Node.prototype, n = Text.prototype;
835
+ Yt = d(t, "firstChild").get, Xt = d(t, "nextSibling").get, g(e) && (e[he] = void 0, e[me] = null, e[ge] = void 0, e.__e = void 0), g(n) && (n[_e] = void 0);
836
+ }
837
+ }
838
+ function N(e = "") {
839
+ return document.createTextNode(e);
840
+ }
841
+ /*@__NO_SIDE_EFFECTS__*/
842
+ function P(e) {
843
+ return Yt.call(e);
844
+ }
845
+ /*@__NO_SIDE_EFFECTS__*/
846
+ function F(e) {
847
+ return Xt.call(e);
848
+ }
849
+ function Qt(e, t) {
850
+ if (!T) return /* @__PURE__ */ P(e);
851
+ var n = /* @__PURE__ */ P(E);
852
+ if (n === null) n = E.appendChild(N());
853
+ else if (t && n.nodeType !== 3) {
854
+ var r = N();
855
+ return n?.before(r), D(r), r;
856
+ }
857
+ return t && an(n), D(n), n;
858
+ }
859
+ function $t(e, t = !1) {
860
+ if (!T) {
861
+ var n = /* @__PURE__ */ P(e);
862
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ F(n) : n;
863
+ }
864
+ if (t) {
865
+ if (E?.nodeType !== 3) {
866
+ var r = N();
867
+ return E?.before(r), D(r), r;
868
+ }
869
+ an(E);
870
+ }
871
+ return E;
872
+ }
873
+ function en(e, t = !1) {
874
+ if (!T) return /* @__PURE__ */ P(e);
875
+ var n = Qt(e, t);
876
+ return O(e), n;
877
+ }
878
+ function I(e, t = 1, n = !1) {
879
+ let r = T ? E : e;
880
+ for (var i; t--;) i = r, r = /* @__PURE__ */ F(r);
881
+ if (!T) return r;
882
+ if (n) {
883
+ if (r?.nodeType !== 3) {
884
+ var a = N();
885
+ return r === null ? i?.after(a) : r.before(a), D(a), a;
886
+ }
887
+ an(r);
888
+ }
889
+ return D(r), r;
890
+ }
891
+ function tn(e) {
892
+ e.textContent = "";
893
+ }
894
+ function nn() {
895
+ return !1;
896
+ }
897
+ function rn(e, t, n) {
898
+ return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
899
+ }
900
+ function an(e) {
901
+ if (e.nodeValue.length < 65536) return;
902
+ let t = e.nextSibling;
903
+ for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
904
+ }
905
+ function on(e) {
906
+ var t = H;
907
+ if (t === null) return z.f |= le, e;
908
+ if (!(t.f & 32768) && !(t.f & 4)) throw e;
909
+ sn(e, t);
910
+ }
911
+ function sn(e, t) {
912
+ if (!(t !== null && t.f & 16384)) {
913
+ for (; t !== null;) {
914
+ if (t.f & 128 && !(t.f & 33570816)) {
915
+ if (!(t.f & 32768)) throw e;
916
+ try {
917
+ t.b.error(e);
918
+ return;
919
+ } catch (t) {
920
+ e = t;
921
+ }
922
+ }
923
+ t = t.parent;
924
+ }
925
+ throw e;
926
+ }
927
+ }
928
+ //#endregion
929
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
930
+ function cn(e, t) {
931
+ var n = t.last;
932
+ n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
933
+ }
934
+ function ln(e, t) {
935
+ var n = H;
936
+ n !== null && n.f & 8192 && (e |= ee);
937
+ var r = {
938
+ ctx: k,
939
+ deps: null,
940
+ nodes: null,
941
+ f: e | x | 512,
942
+ first: null,
943
+ fn: t,
944
+ last: null,
945
+ next: null,
946
+ parent: n,
947
+ b: n && n.b,
948
+ prev: null,
949
+ teardown: null,
950
+ wv: 0,
951
+ ac: null
952
+ };
953
+ j?.register_created_effect(r);
954
+ var i = r;
955
+ if (e & 4) xt === null ? Tt.ensure().schedule(r) : xt.push(r);
956
+ else if (t !== null) {
957
+ try {
958
+ Jn(r);
959
+ } catch (e) {
960
+ throw R(r), e;
961
+ }
962
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ne));
963
+ }
964
+ if (i !== null && (i.parent = n, n !== null && cn(i, n), z !== null && z.f & 2 && !(e & 64))) {
965
+ var a = z;
966
+ (a.effects ??= []).push(i);
967
+ }
968
+ return r;
969
+ }
970
+ function un() {
971
+ return z !== null && !B;
972
+ }
973
+ function dn(e) {
974
+ let t = ln(8, null);
975
+ return A(t, b), t.teardown = e, t;
976
+ }
977
+ function fn(e) {
978
+ return ln(4 | ie, e);
979
+ }
980
+ function pn(e) {
981
+ Tt.ensure();
982
+ let t = ln(64 | re, e);
983
+ return () => {
984
+ R(t);
985
+ };
986
+ }
987
+ function mn(e) {
988
+ Tt.ensure();
989
+ let t = ln(64 | re, e);
990
+ return (e = {}) => new Promise((n) => {
991
+ e.outro ? Tn(t, () => {
992
+ R(t), n(void 0);
993
+ }) : (R(t), n(void 0));
994
+ });
995
+ }
996
+ function hn(e) {
997
+ return ln(4, e);
998
+ }
999
+ function gn(e) {
1000
+ return ln(ce | re, e);
1001
+ }
1002
+ function _n(e, t = 0) {
1003
+ return ln(8 | t, e);
1004
+ }
1005
+ function vn(e, t = [], n = [], r = []) {
1006
+ nt(r, t, n, (t) => {
1007
+ ln(8, () => {
1008
+ e(...t.map(q));
1009
+ });
1010
+ });
1011
+ }
1012
+ function yn(e, t = 0) {
1013
+ return ln(16 | t, e);
1014
+ }
1015
+ function L(e) {
1016
+ return ln(32 | re, e);
1017
+ }
1018
+ function bn(e) {
1019
+ var t = e.teardown;
1020
+ if (t !== null) {
1021
+ let n = Mn, r = z;
1022
+ Nn(!0), V(null);
1023
+ try {
1024
+ t.call(null);
1025
+ } catch (t) {
1026
+ sn(t, e.parent);
1027
+ } finally {
1028
+ Nn(n), V(r);
1029
+ }
1030
+ }
1031
+ }
1032
+ function xn(e, t = !1) {
1033
+ var n = e.first;
1034
+ for (e.first = e.last = null; n !== null;) {
1035
+ let e = n.ac;
1036
+ e !== null && tt(() => {
1037
+ e.abort(ve);
1038
+ });
1039
+ var r = n.next;
1040
+ n.f & 64 ? n.parent = null : R(n, t), n = r;
1041
+ }
1042
+ }
1043
+ function Sn(e) {
1044
+ for (var t = e.first; t !== null;) {
1045
+ var n = t.next;
1046
+ t.f & 32 || R(t), t = n;
1047
+ }
1048
+ }
1049
+ function R(e, t = !0) {
1050
+ var n = !1;
1051
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= w, xn(e, t && !n), qn(e, 0);
1052
+ var r = e.nodes && e.nodes.t;
1053
+ if (r !== null) for (let e of r) e.stop();
1054
+ bn(e), e.f ^= w, e.f |= te;
1055
+ var i = e.parent;
1056
+ i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1057
+ }
1058
+ function Cn(e, t) {
1059
+ for (; e !== null;) {
1060
+ var n = e === t ? null : /* @__PURE__ */ F(e);
1061
+ e.remove(), e = n;
1062
+ }
1063
+ }
1064
+ function wn(e) {
1065
+ var t = e.parent, n = e.prev, r = e.next;
1066
+ n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1067
+ }
1068
+ function Tn(e, t, n = !0) {
1069
+ var r = [];
1070
+ e.f |= 256, En(e, r, !0);
1071
+ var i = () => {
1072
+ n && R(e), t && t();
1073
+ }, a = r.length;
1074
+ if (a > 0) {
1075
+ var o = () => --a || i();
1076
+ for (var s of r) s.out(o);
1077
+ } else i();
1078
+ }
1079
+ function En(e, t, n) {
1080
+ if (!(e.f & 8192)) {
1081
+ e.f ^= ee;
1082
+ var r = e.nodes && e.nodes.t;
1083
+ if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1084
+ for (var i = e.first; i !== null;) {
1085
+ var a = i.next;
1086
+ if (!(i.f & 64)) {
1087
+ var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1088
+ En(i, t, o ? n : !1);
1089
+ }
1090
+ i = a;
1091
+ }
1092
+ }
1093
+ }
1094
+ function Dn(e) {
1095
+ e.f &= -257, On(e, !0);
1096
+ }
1097
+ function On(e, t) {
1098
+ if (!(e.f & 256) && e.f & 8192) {
1099
+ e.f ^= ee, e.f & 1024 || (A(e, x), Tt.ensure().schedule(e));
1100
+ for (var n = e.first; n !== null;) {
1101
+ var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1102
+ On(n, i ? t : !1), n = r;
1103
+ }
1104
+ var a = e.nodes && e.nodes.t;
1105
+ if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1106
+ }
1107
+ }
1108
+ function kn(e, t) {
1109
+ if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1110
+ var i = n === r ? null : /* @__PURE__ */ F(n);
1111
+ t.append(n), n = i;
1112
+ }
1113
+ }
1114
+ //#endregion
1115
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1116
+ var An = null, jn = !1, Mn = !1;
1117
+ function Nn(e) {
1118
+ Mn = e;
1119
+ }
1120
+ var z = null, B = !1;
1121
+ function V(e) {
1122
+ z = e;
1123
+ }
1124
+ var H = null;
1125
+ function U(e) {
1126
+ H = e;
1127
+ }
1128
+ var Pn = null;
1129
+ function Fn(e) {
1130
+ z !== null && (Pn ??= /* @__PURE__ */ new Set()).add(e);
1131
+ }
1132
+ var W = null, G = 0, K = null;
1133
+ function In(e) {
1134
+ K = e;
1135
+ }
1136
+ var Ln = 1, Rn = 0, zn = Rn;
1137
+ function Bn(e) {
1138
+ zn = e;
1139
+ }
1140
+ function Vn() {
1141
+ return ++Ln;
1142
+ }
1143
+ function Hn(e) {
1144
+ var t = e.f;
1145
+ if (t & 2048) return !0;
1146
+ if (t & 2 && (e.f &= ~oe), t & 4096) {
1147
+ for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1148
+ var a = n[i];
1149
+ if (Hn(a) && pt(a), a.wv > e.wv) return !0;
1150
+ }
1151
+ t & 512 && M === null && A(e, b);
1152
+ }
1153
+ return !1;
1154
+ }
1155
+ function Un(e, t, n = !0) {
1156
+ var r = e.reactions;
1157
+ if (r !== null && !(Pn !== null && Pn.has(e))) for (var i = 0; i < r.length; i++) {
1158
+ var a = r[i];
1159
+ a.f & 2 ? Un(a, t, !1) : t === a && (n ? A(a, x) : a.f & 1024 && A(a, S), Mt(a));
1160
+ }
1161
+ }
1162
+ function Wn(e) {
1163
+ var t = W, n = G, r = K, i = z, a = Pn, o = k, s = B, c = zn, l = e.f;
1164
+ W = null, G = 0, K = null, z = l & 96 ? null : e, Pn = null, Be(e.ctx), B = !1, zn = ++Rn, e.ac !== null && (tt(() => {
1165
+ e.ac.abort(ve);
1166
+ }), e.ac = null);
1167
+ try {
1168
+ e.f |= se;
1169
+ var u = e.fn, d = u();
1170
+ e.f |= C;
1171
+ var f = Gn(e);
1172
+ if (We() && K !== null && !B && f !== null && !(e.f & 6146)) for (var p = 0; p < K.length; p++) Un(K[p], e);
1173
+ if (i !== null && i !== e) {
1174
+ if (Rn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Rn;
1175
+ if (t !== null) for (let e of t) e.rv = Rn;
1176
+ K !== null && (r === null ? r = K : r.push(...K));
1177
+ }
1178
+ return e.f & 8388608 && (e.f ^= le), d;
1179
+ } catch (t) {
1180
+ return Gn(e), on(t);
1181
+ } finally {
1182
+ e.f ^= se, W = t, G = n, K = r, z = i, Pn = a, Be(o), B = s, zn = c;
1183
+ }
1184
+ }
1185
+ function Gn(e) {
1186
+ var t = e.deps, n = j?.is_fork;
1187
+ if (W !== null) {
1188
+ var r;
1189
+ if (n || qn(e, G), t !== null && G > 0) for (t.length = G + W.length, r = 0; r < W.length; r++) t[G + r] = W[r];
1190
+ else e.deps = t = W;
1191
+ if (un() && e.f & 512) for (r = G; r < t.length; r++) (t[r].reactions ??= []).push(e);
1192
+ } else !n && t !== null && G < t.length && (qn(e, G), t.length = G);
1193
+ return t;
1194
+ }
1195
+ function Kn(e, n) {
1196
+ let r = n.reactions;
1197
+ if (r !== null) {
1198
+ var i = o.call(r, e);
1199
+ if (i !== -1) {
1200
+ var a = r.length - 1;
1201
+ a === 0 ? r = n.reactions = null : (r[i] = r[a], r.pop());
1202
+ }
1203
+ }
1204
+ if (r === null && n.f & 2 && (W === null || !s.call(W, n))) {
1205
+ var c = n;
1206
+ c.f & 512 && (c.f ^= 512, c.f &= ~oe), c.v !== t && Xe(c), c.ac !== null && tt(() => {
1207
+ c.ac.abort(ve), c.ac = null, A(c, x);
1208
+ }), mt(c), qn(c, 0);
1209
+ }
1210
+ }
1211
+ function qn(e, t) {
1212
+ var n = e.deps;
1213
+ if (n !== null) for (var r = t; r < n.length; r++) Kn(e, n[r]);
1214
+ }
1215
+ function Jn(e) {
1216
+ var t = e.f;
1217
+ if (!(t & 16384)) {
1218
+ A(e, b);
1219
+ var n = H, r = jn;
1220
+ H = e, jn = (t & 96) == 0;
1221
+ try {
1222
+ t & 16777232 ? Sn(e) : xn(e), bn(e);
1223
+ var i = Wn(e);
1224
+ e.teardown = typeof i == "function" ? i : null, e.wv = Ln;
1225
+ } finally {
1226
+ jn = r, H = n;
1227
+ }
1228
+ }
1229
+ }
1230
+ function q(e) {
1231
+ var t = (e.f & 2) != 0;
1232
+ if (An?.add(e), z !== null && !B && !(H !== null && H.f & 16384) && (Pn === null || !Pn.has(e))) {
1233
+ var n = z.deps;
1234
+ if (z.f & 2097152) e.rv < Rn && (e.rv = Rn, W === null && n !== null && n[G] === e ? G++ : W === null ? W = [e] : W.push(e));
1235
+ else {
1236
+ z.deps ??= [], s.call(z.deps, e) || z.deps.push(e);
1237
+ var r = e.reactions;
1238
+ r === null ? e.reactions = [z] : s.call(r, z) || r.push(z);
1239
+ }
1240
+ }
1241
+ if (Mn && It.has(e)) return It.get(e);
1242
+ if (t) {
1243
+ var i = e;
1244
+ if (Mn) {
1245
+ var a = i.v;
1246
+ return (!(i.f & 1024) && i.reactions !== null || Xn(i)) && (a = ft(i)), It.set(i, a), a;
1247
+ }
1248
+ var o = (i.f & 512) == 0 && !B && z !== null && (jn || (z.f & 512) != 0), c = (i.f & C) === 0;
1249
+ Hn(i) && (o && (i.f |= 512), pt(i)), o && !c && (ht(i), Yn(i));
1250
+ }
1251
+ if (M?.has(e)) return M.get(e);
1252
+ if (e.f & 8388608) throw e.v;
1253
+ return e.v;
1254
+ }
1255
+ function Yn(e) {
1256
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ht(t), Yn(t));
1257
+ }
1258
+ function Xn(e) {
1259
+ if (e.v === t) return !0;
1260
+ if (e.deps === null) return !1;
1261
+ for (let t of e.deps) if (It.has(t) || t.f & 2 && Xn(t)) return !0;
1262
+ return !1;
1263
+ }
1264
+ function Zn(e) {
1265
+ var t = B;
1266
+ try {
1267
+ return B = !0, e();
1268
+ } finally {
1269
+ B = t;
1270
+ }
1271
+ }
1272
+ //#endregion
1273
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1274
+ var Qn = Symbol("events"), $n = /* @__PURE__ */ new Set(), er = /* @__PURE__ */ new Set(), tr = null, nr = !1;
1275
+ function rr(e) {
1276
+ var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1277
+ tr = e, nr || (nr = !0, setTimeout(() => {
1278
+ nr = !1, tr = null;
1279
+ }));
1280
+ var o = 0, s = tr === e && e[Qn];
1281
+ if (s) {
1282
+ var c = i.indexOf(s);
1283
+ if (c !== -1 && (t === document || t === window)) {
1284
+ e[Qn] = t;
1285
+ return;
1286
+ }
1287
+ var l = i.indexOf(t);
1288
+ if (l === -1) return;
1289
+ c <= l && (o = c);
1290
+ }
1291
+ if (a = i[o] || e.target, a !== t) {
1292
+ u(e, "currentTarget", {
1293
+ configurable: !0,
1294
+ get() {
1295
+ return a || n;
1296
+ }
1297
+ });
1298
+ var d = z, f = H;
1299
+ V(null), U(null);
1300
+ try {
1301
+ for (var p, m = []; a !== null && a !== t;) {
1302
+ try {
1303
+ var h = a[Qn]?.[r];
1304
+ h != null && (!a.disabled || e.target === a) && h.call(a, e);
1305
+ } catch (e) {
1306
+ p ? m.push(e) : p = e;
1307
+ }
1308
+ if (e.cancelBubble) break;
1309
+ o++, a = o < i.length ? i[o] : null;
1310
+ }
1311
+ if (p) {
1312
+ for (let e of m) queueMicrotask(() => {
1313
+ throw e;
1314
+ });
1315
+ throw p;
1316
+ }
1317
+ } finally {
1318
+ e[Qn] = t, delete e.currentTarget, V(d), U(f);
1319
+ }
1320
+ }
1321
+ }
1322
+ //#endregion
1323
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1324
+ var ir = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1325
+ function ar(e) {
1326
+ return ir?.createHTML(e) ?? e;
1327
+ }
1328
+ function or(e) {
1329
+ var t = rn("template");
1330
+ return t.innerHTML = ar(e.replaceAll("<!>", "<!---->")), t.content;
1331
+ }
1332
+ //#endregion
1333
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1334
+ function J(e, t) {
1335
+ var n = H;
1336
+ n.nodes === null && (n.nodes = {
1337
+ start: e,
1338
+ end: t,
1339
+ a: null,
1340
+ t: null
1341
+ });
1342
+ }
1343
+ /*#__NO_SIDE_EFFECTS__*/
1344
+ function sr(e, t) {
1345
+ var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1346
+ return () => {
1347
+ if (T) return J(E, null), E;
1348
+ i === void 0 && (i = or(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1349
+ var t = r || Jt ? document.importNode(i, !0) : i.cloneNode(!0);
1350
+ if (n) {
1351
+ var o = /* @__PURE__ */ P(t), s = t.lastChild;
1352
+ J(o, s);
1353
+ } else J(t, t);
1354
+ return t;
1355
+ };
1356
+ }
1357
+ function cr(e = "") {
1358
+ if (!T) {
1359
+ var t = N(e + "");
1360
+ return J(t, t), t;
1361
+ }
1362
+ var n = E;
1363
+ return n.nodeType === 3 ? an(n) : (n.before(n = N()), D(n)), J(n, n), n;
1364
+ }
1365
+ function lr() {
1366
+ if (T) return J(E, null), E;
1367
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = N();
1368
+ return e.append(t, n), J(t, n), e;
1369
+ }
1370
+ function Y(e, t) {
1371
+ if (T) {
1372
+ var n = H;
1373
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = E), we();
1374
+ return;
1375
+ }
1376
+ e !== null && e.before(t);
1377
+ }
1378
+ [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
1379
+ var ur = ["touchstart", "touchmove"];
1380
+ function dr(e) {
1381
+ return ur.includes(e);
1382
+ }
1383
+ //#endregion
1384
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1385
+ function fr(e) {
1386
+ let t = 0, n = Rt(0), r;
1387
+ return () => {
1388
+ un() && (q(n), _n(() => (t === 0 && (r = Zn(() => e(() => Wt(n)))), t += 1, () => {
1389
+ qe(() => {
1390
+ --t, t === 0 && (r?.(), r = void 0, Wt(n));
1391
+ });
1392
+ })));
1393
+ };
1394
+ }
1395
+ //#endregion
1396
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1397
+ var pr = ne | re;
1398
+ function mr(e, t, n, r) {
1399
+ new hr(e, t, n, r);
1400
+ }
1401
+ var hr = class {
1402
+ parent;
1403
+ is_pending = !1;
1404
+ transform_error;
1405
+ #e;
1406
+ #t = T ? E : null;
1407
+ #n;
1408
+ #r;
1409
+ #i;
1410
+ #a = null;
1411
+ #o = null;
1412
+ #s = null;
1413
+ #c = null;
1414
+ #l = 0;
1415
+ #u = 0;
1416
+ #d = !1;
1417
+ #f = /* @__PURE__ */ new Set();
1418
+ #p = /* @__PURE__ */ new Set();
1419
+ #m = null;
1420
+ #h = fr(() => (this.#m = Rt(this.#l), () => {
1421
+ this.#m = null;
1422
+ }));
1423
+ constructor(e, t, n, r) {
1424
+ this.#e = e, this.#n = t, this.#r = (e) => {
1425
+ var t = H;
1426
+ t.b = this, t.f |= 128, n(e);
1427
+ }, this.parent = H.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
1428
+ if (T) {
1429
+ let e = this.#t;
1430
+ we();
1431
+ let t = e.data === "[!";
1432
+ if (e.data.startsWith("[?")) {
1433
+ let t = JSON.parse(e.data.slice(2));
1434
+ this.#_(t);
1435
+ } else t ? this.#y() : this.#g();
1436
+ } else this.#b();
1437
+ }, pr), T && (this.#e = E);
1438
+ }
1439
+ #g() {
1440
+ try {
1441
+ this.#a = L(() => this.#r(this.#e));
1442
+ } catch (e) {
1443
+ this.error(e);
1444
+ }
1445
+ }
1446
+ #_(e) {
1447
+ let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1448
+ qe(r), t && (this.#s = L(() => {
1449
+ t(this.#e, () => e, () => n);
1450
+ }));
1451
+ }
1452
+ #v(e) {
1453
+ var t = !1, n = !1;
1454
+ let r = () => {
1455
+ if (t) {
1456
+ Se();
1457
+ return;
1458
+ }
1459
+ t = !0, n && ze(), this.#s !== null && Tn(this.#s, () => {
1460
+ this.#s = null;
1461
+ }), this.#S(() => {
1462
+ this.#b();
1463
+ });
1464
+ };
1465
+ return {
1466
+ reset: r,
1467
+ invoke_onerror: () => {
1468
+ try {
1469
+ n = !0, this.#n.onerror?.(e, r), n = !1;
1470
+ } catch (e) {
1471
+ sn(e, this.#i && this.#i.parent);
1472
+ }
1473
+ }
1474
+ };
1475
+ }
1476
+ #y() {
1477
+ let e = this.#n.pending;
1478
+ e && (this.is_pending = !0, this.#o = L(() => e(this.#e)), qe(() => {
1479
+ var e = this.#c = document.createDocumentFragment(), t = N(), n = !1;
1480
+ if (e.append(t), this.#a = this.#S(() => {
1481
+ try {
1482
+ return L(() => this.#r(t));
1483
+ } catch (e) {
1484
+ try {
1485
+ this.error(e), n = !0;
1486
+ } catch (e) {
1487
+ sn(e, this.#i.parent);
1488
+ }
1489
+ return null;
1490
+ }
1491
+ }), this.#a === null) {
1492
+ this.#c = null, n && this.#x(j);
1493
+ return;
1494
+ }
1495
+ this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
1496
+ this.#o = null;
1497
+ }), this.#x(j));
1498
+ }));
1499
+ }
1500
+ #b() {
1501
+ try {
1502
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = L(() => {
1503
+ this.#r(this.#e);
1504
+ }), this.#u > 0) {
1505
+ var e = this.#c = document.createDocumentFragment();
1506
+ kn(this.#a, e);
1507
+ let t = this.#n.pending;
1508
+ this.#o = L(() => t(this.#e));
1509
+ } else this.#x(j);
1510
+ } catch (e) {
1511
+ this.error(e);
1512
+ }
1513
+ }
1514
+ #x(e) {
1515
+ this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1516
+ }
1517
+ defer_effect(e) {
1518
+ Qe(e, this.#f, this.#p);
1519
+ }
1520
+ is_rendered() {
1521
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
1522
+ }
1523
+ has_pending_snippet() {
1524
+ return !!this.#n.pending;
1525
+ }
1526
+ #S(e) {
1527
+ var t = H, n = z, r = k;
1528
+ U(this.#i), V(this.#i), Be(this.#i.ctx);
1529
+ try {
1530
+ return Tt.ensure(), e();
1531
+ } finally {
1532
+ U(t), V(n), Be(r);
1533
+ }
1534
+ }
1535
+ #C(e, t) {
1536
+ if (!this.has_pending_snippet()) {
1537
+ this.parent && this.parent.#C(e, t);
1538
+ return;
1539
+ }
1540
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
1541
+ this.#o = null;
1542
+ }), this.#c &&= (this.#e.before(this.#c), null));
1543
+ }
1544
+ update_pending_count(e, t) {
1545
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, qe(() => {
1546
+ this.#d = !1, this.#m && Ht(this.#m, this.#l);
1547
+ }));
1548
+ }
1549
+ get_effect_pending() {
1550
+ return this.#h(), q(this.#m);
1551
+ }
1552
+ error(e) {
1553
+ if (!this.#n.onerror && !this.#n.failed) throw e;
1554
+ j?.is_fork ? (this.#a && j.skip_effect(this.#a), this.#o && j.skip_effect(this.#o), this.#s && j.skip_effect(this.#s), j.oncommit(() => {
1555
+ this.#w(e);
1556
+ })) : this.#w(e);
1557
+ }
1558
+ #w(e) {
1559
+ this.#a &&= (R(this.#a), null), this.#o &&= (R(this.#o), null), this.#s &&= (R(this.#s), null), T && (D(this.#t), Te(), D(Ee()));
1560
+ let t = this.#n.failed, n = (e) => {
1561
+ let { reset: n, invoke_onerror: r } = this.#v(e);
1562
+ r(), t && (this.#s = this.#S(() => {
1563
+ try {
1564
+ return L(() => {
1565
+ var r = H;
1566
+ r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1567
+ });
1568
+ } catch (e) {
1569
+ return sn(e, this.#i.parent), null;
1570
+ }
1571
+ }));
1572
+ };
1573
+ qe(() => {
1574
+ var t;
1575
+ try {
1576
+ t = this.transform_error(e);
1577
+ } catch (e) {
1578
+ sn(e, this.#i && this.#i.parent);
1579
+ return;
1580
+ }
1581
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => sn(e, this.#i && this.#i.parent)) : n(t);
1582
+ });
1583
+ }
1584
+ };
1585
+ function gr(e, t) {
1586
+ var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1587
+ n !== (e[_e] ??= e.nodeValue) && (e[_e] = n, e.nodeValue = `${n}`);
1588
+ }
1589
+ function _r(e, t) {
1590
+ return br(e, t);
1591
+ }
1592
+ function vr(t, n) {
1593
+ Zt(), n.intro = n.intro ?? !1;
1594
+ let r = n.target, i = T, a = E;
1595
+ try {
1596
+ for (var o = /* @__PURE__ */ P(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ F(o);
1597
+ if (!o) throw e;
1598
+ Ce(!0), D(o);
1599
+ let i = br(t, {
1600
+ ...n,
1601
+ anchor: o
1602
+ });
1603
+ return Ce(!1), i;
1604
+ } catch (i) {
1605
+ if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
1606
+ return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Pe(), Zt(), tn(r), Ce(!1), _r(t, n);
1607
+ } finally {
1608
+ Ce(i), D(a);
1609
+ }
1610
+ }
1611
+ var yr = /* @__PURE__ */ new Map();
1612
+ function br(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
1613
+ Zt();
1614
+ var u = void 0, d = mn(() => {
1615
+ var s = r ?? n.appendChild(N());
1616
+ mr(s, { pending: () => {} }, (n) => {
1617
+ Ve({});
1618
+ var r = k;
1619
+ if (o && (r.c = o), a && (i.$$events = a), T && J(n, null), u = t(n, i) || Ue(), T && (H.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]")) throw xe(), e;
1620
+ He();
1621
+ }, l);
1622
+ var d = /* @__PURE__ */ new Set(), f = (e) => {
1623
+ for (var t = 0; t < e.length; t++) {
1624
+ var r = e[t];
1625
+ if (!d.has(r)) {
1626
+ d.add(r);
1627
+ var i = dr(r);
1628
+ for (let e of [n, document]) {
1629
+ var a = yr.get(e);
1630
+ a === void 0 && (a = /* @__PURE__ */ new Map(), yr.set(e, a));
1631
+ var o = a.get(r);
1632
+ o === void 0 ? (e.addEventListener(r, rr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1633
+ }
1634
+ }
1635
+ }
1636
+ };
1637
+ return f(c($n)), er.add(f), () => {
1638
+ for (var e of d) for (let r of [n, document]) {
1639
+ var t = yr.get(r), i = t.get(e);
1640
+ --i == 0 ? (r.removeEventListener(e, rr), t.delete(e), t.size === 0 && yr.delete(r)) : t.set(e, i);
1641
+ }
1642
+ er.delete(f), s !== r && s.parentNode?.removeChild(s);
1643
+ };
1644
+ });
1645
+ return xr.set(u, d), u;
1646
+ }
1647
+ var xr = /* @__PURE__ */ new WeakMap();
1648
+ function Sr(e, t) {
1649
+ let n = xr.get(e);
1650
+ return n ? (xr.delete(e), n(t)) : Promise.resolve();
1651
+ }
1652
+ //#endregion
1653
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1654
+ var Cr = class {
1655
+ anchor;
1656
+ #e = /* @__PURE__ */ new Map();
1657
+ #t = /* @__PURE__ */ new Map();
1658
+ #n = /* @__PURE__ */ new Map();
1659
+ #r = /* @__PURE__ */ new Set();
1660
+ #i = !0;
1661
+ constructor(e, t = !0) {
1662
+ this.anchor = e, this.#i = t;
1663
+ }
1664
+ #a = (e) => {
1665
+ if (this.#e.has(e)) {
1666
+ var t = this.#e.get(e), n = this.#t.get(t);
1667
+ if (n) Dn(n), this.#r.delete(t);
1668
+ else {
1669
+ var r = this.#n.get(t);
1670
+ r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1671
+ }
1672
+ for (let [t, n] of this.#e) {
1673
+ if (this.#e.delete(t), t === e) break;
1674
+ let r = this.#n.get(n);
1675
+ r && (R(r.effect), this.#n.delete(n));
1676
+ }
1677
+ for (let [e, r] of this.#t) {
1678
+ if (e === t || this.#r.has(e)) continue;
1679
+ let i = () => {
1680
+ if (Array.from(this.#e.values()).includes(e)) {
1681
+ var t = document.createDocumentFragment();
1682
+ kn(r, t), t.append(N()), this.#n.set(e, {
1683
+ effect: r,
1684
+ fragment: t
1685
+ });
1686
+ } else R(r);
1687
+ this.#r.delete(e), this.#t.delete(e);
1688
+ };
1689
+ this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
1690
+ }
1691
+ }
1692
+ };
1693
+ #o = (e) => {
1694
+ this.#e.delete(e);
1695
+ let t = Array.from(this.#e.values());
1696
+ for (let [e, n] of this.#n) t.includes(e) || (R(n.effect), this.#n.delete(e));
1697
+ };
1698
+ ensure(e, t) {
1699
+ var n = j, r = nn();
1700
+ if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1701
+ var i = document.createDocumentFragment(), a = N();
1702
+ i.append(a), this.#n.set(e, {
1703
+ effect: L(() => t(a)),
1704
+ fragment: i
1705
+ });
1706
+ } else this.#t.set(e, L(() => t(this.anchor)));
1707
+ if (this.#e.set(n, e), r) {
1708
+ for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1709
+ for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1710
+ n.oncommit(this.#a), n.ondiscard(this.#o);
1711
+ } else T && (this.anchor = E), this.#a(n);
1712
+ }
1713
+ };
1714
+ //#endregion
1715
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1716
+ function X(e, t, n = !1) {
1717
+ var r;
1718
+ T && (r = E, we());
1719
+ var i = new Cr(e), a = n ? ne : 0;
1720
+ function o(e, t) {
1721
+ if (T) {
1722
+ var n = De(r);
1723
+ if (e !== parseInt(n.substring(1))) {
1724
+ var a = Ee();
1725
+ D(a), i.anchor = a, Ce(!1), i.ensure(e, t), Ce(!0);
1726
+ return;
1727
+ }
1728
+ }
1729
+ i.ensure(e, t);
1730
+ }
1731
+ yn(() => {
1732
+ var e = !1;
1733
+ t((t, n = 0) => {
1734
+ e = !0, o(n, t);
1735
+ }), e || o(-1, null);
1736
+ }, a);
1737
+ }
1738
+ //#endregion
1739
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
1740
+ function wr(e, t) {
1741
+ return t;
1742
+ }
1743
+ function Tr(e, t, n) {
1744
+ for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1745
+ let n = t[s];
1746
+ Tn(n, () => {
1747
+ if (a) {
1748
+ if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1749
+ var t = e.outrogroups;
1750
+ Er(e, c(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1751
+ }
1752
+ } else --o;
1753
+ }, !1);
1754
+ }
1755
+ if (o === 0) {
1756
+ var l = r.length === 0 && n !== null && e.pending.size === 0;
1757
+ if (l) {
1758
+ var u = n, d = u.parentNode;
1759
+ tn(d), d.append(u), e.items.clear();
1760
+ }
1761
+ Er(e, t, !l);
1762
+ } else a = {
1763
+ pending: new Set(t),
1764
+ done: /* @__PURE__ */ new Set()
1765
+ }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1766
+ }
1767
+ function Er(e, t, n = !0) {
1768
+ var r;
1769
+ if (e.pending.size > 0) {
1770
+ r = /* @__PURE__ */ new Set();
1771
+ for (let t of e.pending.values()) for (let n of t) r.add(e.items.get(n).e);
1772
+ }
1773
+ for (var i = 0; i < t.length; i++) {
1774
+ var a = t[i];
1775
+ r?.has(a) ? (a.f |= ae, kn(a, document.createDocumentFragment())) : R(t[i], n);
1776
+ }
1777
+ }
1778
+ var Dr;
1779
+ function Or(e, t, n, r, i, o = null) {
1780
+ var s = e, l = /* @__PURE__ */ new Map();
1781
+ if (t & 4) {
1782
+ var u = e;
1783
+ s = T ? D(/* @__PURE__ */ P(u)) : u.appendChild(N());
1784
+ }
1785
+ T && we();
1786
+ var d = null, f = /* @__PURE__ */ ut(() => {
1787
+ var e = n();
1788
+ return a(e) ? e : e == null ? [] : c(e);
1789
+ }), p, m = /* @__PURE__ */ new Map(), h = !0;
1790
+ function g(e) {
1791
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = d, Ar(v, p, s, t, r), d !== null && (p.length === 0 ? d.f & 33554432 ? (d.f ^= ae, Mr(d, null, s)) : Dn(d) : Tn(d, () => {
1792
+ d = null;
1793
+ })));
1794
+ }
1795
+ function _(e) {
1796
+ v.pending.delete(e);
1797
+ }
1798
+ var v = {
1799
+ effect: yn(() => {
1800
+ p = q(f);
1801
+ var e = p.length;
1802
+ let a = !1;
1803
+ T && De(s) === "[!" != (e === 0) && (s = Ee(), D(s), Ce(!1), a = !0);
1804
+ for (var c = /* @__PURE__ */ new Set(), u = j, v = nn(), y = 0; y < e; y += 1) {
1805
+ T && E.nodeType === 8 && E.data === "]" && (s = E, a = !0, Ce(!1));
1806
+ var b = p[y], x = r(b, y), S = h ? null : l.get(x);
1807
+ S ? (S.v && Ht(S.v, b), S.i && Ht(S.i, y), v && u.unskip_effect(S.e)) : (S = jr(l, h ? s : Dr ??= N(), b, x, y, i, t, n), h || (S.e.f |= ae), l.set(x, S)), c.add(x);
1808
+ }
1809
+ if (e === 0 && o && !d && (h ? d = L(() => o(s)) : (d = L(() => o(Dr ??= N())), d.f |= ae)), e > c.size && Me("", "", ""), T && e > 0 && D(Ee()), !h) if (m.set(u, c), v) {
1810
+ for (let [e, t] of l) c.has(e) || u.skip_effect(t.e);
1811
+ u.oncommit(g), u.ondiscard(_);
1812
+ } else g(u);
1813
+ a && Ce(!0), q(f);
1814
+ }),
1815
+ flags: t,
1816
+ items: l,
1817
+ pending: m,
1818
+ outrogroups: null,
1819
+ fallback: d
1820
+ };
1821
+ h = !1, T && (s = E);
1822
+ }
1823
+ function kr(e) {
1824
+ for (; e !== null && !(e.f & 32);) e = e.next;
1825
+ return e;
1826
+ }
1827
+ function Ar(e, t, n, r, i) {
1828
+ var a = (r & 8) != 0, o = t.length, s = e.items, l = kr(e.effect.first), u, d = null, f, p = [], m = [], h, g, _, v;
1829
+ if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (f ??= /* @__PURE__ */ new Set()).add(_));
1830
+ for (v = 0; v < o; v += 1) {
1831
+ if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1832
+ if (_.f & 8192 && (Dn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= ae, _ === l) Mr(_, null, n);
1833
+ else {
1834
+ var y = d ? d.next : l;
1835
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Nr(e, d, _), Nr(e, _, y), Mr(_, y, n), d = _, p = [], m = [], l = kr(d.next);
1836
+ continue;
1837
+ }
1838
+ if (_ !== l) {
1839
+ if (u !== void 0 && u.has(_)) {
1840
+ if (p.length < m.length) {
1841
+ var b = m[0], x;
1842
+ d = b.prev;
1843
+ var S = p[0], ee = p[p.length - 1];
1844
+ for (x = 0; x < p.length; x += 1) Mr(p[x], b, n);
1845
+ for (x = 0; x < m.length; x += 1) u.delete(m[x]);
1846
+ Nr(e, S.prev, ee.next), Nr(e, d, S), Nr(e, ee, b), l = b, d = ee, --v, p = [], m = [];
1847
+ } else u.delete(_), Mr(_, l, n), Nr(e, _.prev, _.next), Nr(e, _, d === null ? e.effect.first : d.next), Nr(e, d, _), d = _;
1848
+ continue;
1849
+ }
1850
+ for (p = [], m = []; l !== null && l !== _;) (u ??= /* @__PURE__ */ new Set()).add(l), m.push(l), l = kr(l.next);
1851
+ if (l === null) continue;
1852
+ }
1853
+ _.f & 33554432 || p.push(_), d = _, l = kr(_.next);
1854
+ }
1855
+ if (e.outrogroups !== null) {
1856
+ for (let t of e.outrogroups) t.pending.size === 0 && (Er(e, c(t.done)), e.outrogroups?.delete(t));
1857
+ e.outrogroups.size === 0 && (e.outrogroups = null);
1858
+ }
1859
+ if (l !== null || u !== void 0) {
1860
+ var te = [];
1861
+ if (u !== void 0) for (_ of u) _.f & 8192 || te.push(_);
1862
+ for (; l !== null;) !(l.f & 8192) && l !== e.fallback && te.push(l), l = kr(l.next);
1863
+ var C = te.length;
1864
+ if (C > 0) {
1865
+ var w = r & 4 && o === 0 ? n : null;
1866
+ if (a) {
1867
+ for (v = 0; v < C; v += 1) te[v].nodes?.a?.measure();
1868
+ for (v = 0; v < C; v += 1) te[v].nodes?.a?.fix();
1869
+ }
1870
+ Tr(e, te, w);
1871
+ }
1872
+ }
1873
+ a && qe(() => {
1874
+ if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
1875
+ });
1876
+ }
1877
+ function jr(e, t, n, r, i, a, o, s) {
1878
+ var c = o & 1 ? o & 16 ? Rt(n) : /* @__PURE__ */ Bt(n, !1, !1) : null, l = o & 2 ? Rt(i) : null;
1879
+ return {
1880
+ v: c,
1881
+ i: l,
1882
+ e: L(() => (a(t, c ?? n, l ?? i, s), () => {
1883
+ e.delete(r);
1884
+ }))
1885
+ };
1886
+ }
1887
+ function Mr(e, t, n) {
1888
+ if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1889
+ var o = /* @__PURE__ */ F(r);
1890
+ if (a.before(r), r === i) return;
1891
+ r = o;
1892
+ }
1893
+ }
1894
+ function Nr(e, t, n) {
1895
+ t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1896
+ }
1897
+ function Pr(t, n, a = !1, o = !1, s = !1, c = !1) {
1898
+ var l = t, u = "";
1899
+ if (a) {
1900
+ var d = t;
1901
+ T && (l = D(/* @__PURE__ */ P(d)));
1902
+ }
1903
+ vn(() => {
1904
+ var t = H;
1905
+ if (u === (u = n() ?? "")) {
1906
+ T && we();
1907
+ return;
1908
+ }
1909
+ if (a && !T) {
1910
+ t.nodes = null, d.innerHTML = u, u !== "" && J(/* @__PURE__ */ P(d), d.lastChild);
1911
+ return;
1912
+ }
1913
+ if (t.nodes !== null && (Cn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1914
+ if (T) {
1915
+ for (var c = E.data, f = we(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1916
+ if (f === null) throw xe(), e;
1917
+ J(E, p), l = D(f);
1918
+ return;
1919
+ }
1920
+ var m = rn(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1921
+ m.innerHTML = u;
1922
+ var h = o || s ? m : m.content;
1923
+ if (J(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1924
+ else l.before(h);
1925
+ }
1926
+ });
1927
+ }
1928
+ //#endregion
1929
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1930
+ function Fr(e, t) {
1931
+ hn(() => {
1932
+ e = H?.parent?.nodes?.start ?? e;
1933
+ var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1934
+ if (!r.querySelector("#" + t.hash)) {
1935
+ let e = rn("style");
1936
+ e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1937
+ }
1938
+ });
1939
+ }
1940
+ //#endregion
1941
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
1942
+ var Ir = Symbol("is custom element"), Lr = Symbol("is html"), Rr = ye ? "link" : "LINK";
1943
+ function zr(e, t, n, r) {
1944
+ var i = Br(e);
1945
+ T && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Rr) || i[t] !== (i[t] = n) && (t === "loading" && (e[pe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Hr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
1946
+ }
1947
+ function Br(e) {
1948
+ return e[me] ??= {
1949
+ [Ir]: e.nodeName.includes("-"),
1950
+ [Lr]: e.namespaceURI === n
1951
+ };
1952
+ }
1953
+ var Vr = /* @__PURE__ */ new Map();
1954
+ function Hr(e) {
1955
+ var t = e.getAttribute("is") || e.nodeName, n = Vr.get(t);
1956
+ if (n) return n;
1957
+ Vr.set(t, n = /* @__PURE__ */ new Set());
1958
+ for (var r, i = e, a = Element.prototype; a !== i;) {
1959
+ for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
1960
+ i = h(i);
1961
+ }
1962
+ return n;
1963
+ }
1964
+ //#endregion
1965
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
1966
+ function Ur(e, t, n, r) {
1967
+ var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ot(r), q(l)) : (c && (c = !1, s = o ? Zn(r) : r), s);
1968
+ let f;
1969
+ if (a) {
1970
+ var p = ue in e || fe in e;
1971
+ f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
1972
+ }
1973
+ var m, h = !1;
1974
+ a ? [m, h] = et(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Fe(t), f(m)));
1975
+ var g = i ? () => {
1976
+ var n = e[t];
1977
+ return n === void 0 ? u() : (c = !0, n);
1978
+ } : () => {
1979
+ var n = e[t];
1980
+ return n !== void 0 && (s = void 0), n === void 0 ? s : n;
1981
+ };
1982
+ if (i && !(n & 4)) return g;
1983
+ if (f) {
1984
+ var _ = e.$$legacy;
1985
+ return (function(e, t) {
1986
+ return arguments.length > 0 ? ((!i || !t || _ || h) && f(t ? g() : e), e) : g();
1987
+ });
1988
+ }
1989
+ var v = !1, y = (n & 1 ? ot : ut)(() => (v = !1, g()));
1990
+ a && q(y);
1991
+ var b = H;
1992
+ return (function(e, t) {
1993
+ if (arguments.length > 0) {
1994
+ let n = t ? q(y) : i && a ? Kt(e) : e;
1995
+ return Vt(y, n), v = !0, s !== void 0 && (s = n), e;
1996
+ }
1997
+ return Mn && v || b.f & 16384 ? y.v : q(y);
1998
+ });
1999
+ }
2000
+ //#endregion
2001
+ //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
2002
+ function Wr(e) {
2003
+ return new Gr(e);
2004
+ }
2005
+ var Gr = class {
2006
+ #e;
2007
+ #t;
2008
+ constructor(e) {
2009
+ var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2010
+ var r = /* @__PURE__ */ Bt(n, !1, !1);
2011
+ return t.set(e, r), r;
2012
+ };
2013
+ let r = new Proxy({
2014
+ ...e.props || {},
2015
+ $$events: {}
2016
+ }, {
2017
+ get(e, r) {
2018
+ return q(t.get(r) ?? n(r, Reflect.get(e, r)));
2019
+ },
2020
+ has(e, r) {
2021
+ return r === fe ? !0 : (q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2022
+ },
2023
+ set(e, r, i) {
2024
+ return Vt(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2025
+ }
2026
+ });
2027
+ this.#t = (e.hydrate ? vr : _r)(e.component, {
2028
+ target: e.target,
2029
+ anchor: e.anchor,
2030
+ props: r,
2031
+ context: e.context,
2032
+ intro: e.intro ?? !1,
2033
+ recover: e.recover,
2034
+ transformError: e.transformError
2035
+ }), (!e?.props?.$$host || e.sync === !1) && Et(), this.#e = r.$$events;
2036
+ for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
2037
+ get() {
2038
+ return this.#t[e];
2039
+ },
2040
+ set(t) {
2041
+ this.#t[e] = t;
2042
+ },
2043
+ enumerable: !0
2044
+ });
2045
+ this.#t.$set = (e) => {
2046
+ Object.assign(r, e);
2047
+ }, this.#t.$destroy = () => {
2048
+ Sr(this.#t);
2049
+ };
2050
+ }
2051
+ $set(e) {
2052
+ this.#t.$set(e);
2053
+ }
2054
+ $on(e, t) {
2055
+ this.#e[e] = this.#e[e] || [];
2056
+ let n = (...e) => t.call(this, ...e);
2057
+ return this.#e[e].push(n), () => {
2058
+ this.#e[e] = this.#e[e].filter((e) => e !== n);
2059
+ };
2060
+ }
2061
+ $destroy() {
2062
+ this.#t.$destroy();
2063
+ }
2064
+ }, Kr;
2065
+ typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
2066
+ $$ctor;
2067
+ $$s;
2068
+ $$c;
2069
+ $$cn = !1;
2070
+ $$d = {};
2071
+ $$r = !1;
2072
+ $$p_d = {};
2073
+ $$l = {};
2074
+ $$l_u = /* @__PURE__ */ new Map();
2075
+ $$me;
2076
+ $$shadowRoot = null;
2077
+ constructor(e, t, n) {
2078
+ super(), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2079
+ }
2080
+ addEventListener(e, t, n) {
2081
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
2082
+ let n = this.$$c.$on(e, t);
2083
+ this.$$l_u.set(t, n);
2084
+ }
2085
+ super.addEventListener(e, t, n);
2086
+ }
2087
+ removeEventListener(e, t, n) {
2088
+ if (super.removeEventListener(e, t, n), this.$$c) {
2089
+ let e = this.$$l_u.get(t);
2090
+ e && (e(), this.$$l_u.delete(t));
2091
+ }
2092
+ }
2093
+ async connectedCallback() {
2094
+ if (this.$$cn = !0, !this.$$c) {
2095
+ if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2096
+ function e(e) {
2097
+ return (t) => {
2098
+ let n = rn("slot");
2099
+ e !== "default" && (n.name = e), Y(t, n);
2100
+ };
2101
+ }
2102
+ let t = {}, n = Jr(this);
2103
+ for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2104
+ for (let e of this.attributes) {
2105
+ let t = this.$$g_p(e.name);
2106
+ t in this.$$d || (this.$$d[t] = qr(t, e.value, this.$$p_d, "toProp"));
2107
+ }
2108
+ for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2109
+ this.$$c = Wr({
2110
+ component: this.$$ctor,
2111
+ target: this.$$shadowRoot || this,
2112
+ props: {
2113
+ ...this.$$d,
2114
+ $$slots: t,
2115
+ $$host: this
2116
+ }
2117
+ }), this.$$me = pn(() => {
2118
+ _n(() => {
2119
+ this.$$r = !0;
2120
+ for (let e of l(this.$$c)) {
2121
+ if (!this.$$p_d[e]?.reflect) continue;
2122
+ this.$$d[e] = this.$$c[e];
2123
+ let t = qr(e, this.$$d[e], this.$$p_d, "toAttribute");
2124
+ t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2125
+ }
2126
+ this.$$r = !1;
2127
+ });
2128
+ });
2129
+ for (let e in this.$$l) for (let t of this.$$l[e]) {
2130
+ let n = this.$$c.$on(e, t);
2131
+ this.$$l_u.set(t, n);
2132
+ }
2133
+ this.$$l = {};
2134
+ }
2135
+ }
2136
+ attributeChangedCallback(e, t, n) {
2137
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = qr(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2138
+ }
2139
+ disconnectedCallback() {
2140
+ this.$$cn = !1, Promise.resolve().then(() => {
2141
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
2142
+ });
2143
+ }
2144
+ $$g_p(e) {
2145
+ return l(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2146
+ }
2147
+ });
2148
+ function qr(e, t, n, r) {
2149
+ let i = n[e]?.type;
2150
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2151
+ if (r === "toAttribute") switch (i) {
2152
+ case "Object":
2153
+ case "Array": return t == null ? null : JSON.stringify(t);
2154
+ case "Boolean": return t ? "" : null;
2155
+ case "Number": return t ?? null;
2156
+ default: return t;
2157
+ }
2158
+ else switch (i) {
2159
+ case "Object":
2160
+ case "Array": return t && JSON.parse(t);
2161
+ case "Boolean": return t;
2162
+ case "Number": return t == null ? t : +t;
2163
+ default: return t;
2164
+ }
2165
+ }
2166
+ function Jr(e) {
2167
+ let t = {};
2168
+ return e.childNodes.forEach((e) => {
2169
+ t[e.slot || "default"] = !0;
2170
+ }), t;
2171
+ }
2172
+ function Yr(e, t, n, r, i, a) {
2173
+ let o = class extends Kr {
2174
+ constructor() {
2175
+ super(e, n, i), this.$$p_d = t;
2176
+ }
2177
+ static get observedAttributes() {
2178
+ return l(t).map((e) => (t[e].attribute || e).toLowerCase());
2179
+ }
2180
+ };
2181
+ return l(t).forEach((e) => {
2182
+ u(o.prototype, e, {
2183
+ get() {
2184
+ return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2185
+ },
2186
+ set(n) {
2187
+ n = qr(e, n, t), this.$$d[e] = n;
2188
+ var r = this.$$c;
2189
+ r && (d(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2190
+ }
2191
+ });
2192
+ }), r.forEach((e) => {
2193
+ u(o.prototype, e, { get() {
2194
+ return this.$$c?.[e];
2195
+ } });
2196
+ }), a && (o = a(o)), e.element = o, o;
2197
+ }
2198
+ //#endregion
2199
+ //#region ../../shared/translator/dist/en.js
2200
+ var Xr = {
2201
+ translation: {
2202
+ categorize: {
2203
+ limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
2204
+ maxChoicesPerCategoryRestriction: "To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."
2205
+ },
2206
+ ebsr: { part: "Part {{index}}" },
2207
+ numberLine: {
2208
+ addElementLimit_one: "You can only add {{count}} element",
2209
+ addElementLimit_other: "You can only add {{count}} elements",
2210
+ clearAll: "Clear all"
2211
+ },
2212
+ imageClozeAssociation: {
2213
+ reachedLimit_one: "You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",
2214
+ reachedLimit_other: "Full"
2215
+ },
2216
+ drawingResponse: {
2217
+ fillColor: "Fill color",
2218
+ outlineColor: "Outline color",
2219
+ noFill: "No fill",
2220
+ lightblue: "Light blue",
2221
+ lightyellow: "Light yellow",
2222
+ red: "Red",
2223
+ orange: "Orange",
2224
+ yellow: "Yellow",
2225
+ violet: "Violet",
2226
+ blue: "Blue",
2227
+ green: "Green",
2228
+ white: "White",
2229
+ black: "Black",
2230
+ onDoubleClick: "Double click to edit this text. Press Enter to submit."
2231
+ },
2232
+ charting: {
2233
+ addCategory: "Add category",
2234
+ actions: "Actions",
2235
+ add: "Add",
2236
+ delete: "Delete",
2237
+ newLabel: "New label",
2238
+ reachedLimit_other: "There can't be more than {{count}} categories.",
2239
+ keyLegend: {
2240
+ incorrectAnswer: "Student incorrect answer",
2241
+ correctAnswer: "Student correct answer",
2242
+ correctKeyAnswer: "Answer key correct"
2243
+ }
2244
+ },
2245
+ graphing: {
2246
+ point: "Point",
2247
+ circle: "Circle",
2248
+ line: "Line",
2249
+ parabola: "Parabola",
2250
+ absolute: "Absolute Value",
2251
+ exponential: "Exponential",
2252
+ polygon: "Polygon",
2253
+ ray: "Ray",
2254
+ segment: "Segment",
2255
+ sine: "Sine",
2256
+ vector: "Vector",
2257
+ label: "Label",
2258
+ redo: "Redo",
2259
+ reset: "Reset"
2260
+ },
2261
+ 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." },
2262
+ mcPopulatedBlank: {
2263
+ answerChoices: "Answer choices",
2264
+ blankLabel: "blank",
2265
+ emptyBlank: "(blank)",
2266
+ blankPreSelectionHint: "The answer you choose will appear on the blank line above.",
2267
+ correctAnswerSelected: "Correct answer selected",
2268
+ incorrectAnswerSelected: "Incorrect answer selected",
2269
+ selectedAnswerImage: "Selected answer image",
2270
+ choiceImage: "Choice {{id}}",
2271
+ clickToEnableAutoplay: "Click to enable audio autoplay",
2272
+ audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured.",
2273
+ listen: "Listen",
2274
+ listenSilentAlt: "Repeat instructions",
2275
+ listenPlayingAlt: "Instructions are playing",
2276
+ printAudio: "Audio:",
2277
+ printTranscript: "Transcript:",
2278
+ printKey: "(key)"
2279
+ },
2280
+ multipleChoice: {
2281
+ minSelections: "Select at least {{minSelections}}.",
2282
+ maxSelections_one: "Only {{maxSelections}} answer is allowed.",
2283
+ maxSelections_other: "Only {{maxSelections}} answers are allowed.",
2284
+ minmaxSelections_equal: "Select {{minSelections}}.",
2285
+ minmaxSelections_range: "Select between {{minSelections}} and {{maxSelections}}."
2286
+ },
2287
+ selectText: {
2288
+ correctAnswerSelected: "Correct",
2289
+ correctAnswerNotSelected: "Correct Answer Not Selected",
2290
+ incorrectSelection: "Incorrect Selection",
2291
+ key: "Key"
2292
+ },
2293
+ simpleCloze: {
2294
+ correctAnswerShown: "Correct answer",
2295
+ correct: "Correct",
2296
+ incorrect: "Incorrect",
2297
+ unanswered: "No answer",
2298
+ placeholder: "Enter your answer...",
2299
+ answerInput: "Your answer",
2300
+ printCorrectAnswer: "Correct answer:",
2301
+ printAnswerBlank: "Answer blank"
2302
+ },
2303
+ vennClassification: {
2304
+ tray: "Tiles to classify",
2305
+ unknownTarget: "unknown",
2306
+ cancelled: "Cancelled",
2307
+ returnedToTray: "{{name}} returned to tray",
2308
+ placedIn: "{{name}} placed in {{target}}",
2309
+ pickedUp: "Picked up {{name}}",
2310
+ pickedUpWithKeyboard: "Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.",
2311
+ dropTarget: "Drop target: {{target}}",
2312
+ unsupportedCircles_one: "This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.",
2313
+ unsupportedCircles_other: "This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.",
2314
+ setNumber: "Set {{number}}",
2315
+ regionOnly: "{{set}} only",
2316
+ regionNeither: "Neither {{first}} nor {{second}}",
2317
+ regionNoneOf: "None of {{sets}}",
2318
+ regionAndSeparator: " and ",
2319
+ tileFallbackName: "Tile",
2320
+ tileNotPlaced: "not placed",
2321
+ tileInRegion: "in {{region}}",
2322
+ tileCorrect: "correct",
2323
+ tileIncorrect: "incorrect"
2324
+ }
2325
+ },
2326
+ common: {
2327
+ undo: "Undo",
2328
+ clearAll: "Clear all",
2329
+ correct: "Correct",
2330
+ incorrect: "Incorrect",
2331
+ showCorrectAnswer: "Show correct answer",
2332
+ hideCorrectAnswer: "Hide correct answer",
2333
+ showTeacherInstructions: "Show Teacher Instructions",
2334
+ hideTeacherInstructions: "Hide Teacher Instructions",
2335
+ 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.",
2336
+ warning: "Warning",
2337
+ showNote: "Show Note",
2338
+ hideNote: "Hide Note",
2339
+ cancel: "Cancel"
2340
+ }
2341
+ }, Zr = {
2342
+ translation: {
2343
+ categorize: {
2344
+ limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
2345
+ maxChoicesPerCategoryRestriction: "Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"
2346
+ },
2347
+ ebsr: { part: "Parte {{index}}" },
2348
+ numberLine: {
2349
+ addElementLimit_one: "Solo puedes agregar {{count}} elemento",
2350
+ addElementLimit_other: "Solo puedes agregar {{count}} elementos",
2351
+ clearAll: "Borrar todo"
2352
+ },
2353
+ imageClozeAssociation: {
2354
+ reachedLimit_one: "Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
2355
+ reachedLimit_other: "Lleno"
2356
+ },
2357
+ drawingResponse: {
2358
+ fillColor: "Color de relleno",
2359
+ outlineColor: "Color del contorno",
2360
+ noFill: "Sin relleno",
2361
+ lightblue: "Azul claro",
2362
+ lightyellow: "Amarillo claro",
2363
+ red: "Rojo",
2364
+ orange: "Naranja",
2365
+ yellow: "Amarillo",
2366
+ violet: "Violeta",
2367
+ blue: "Azul",
2368
+ green: "Verde",
2369
+ white: "Blanco",
2370
+ black: "Negro",
2371
+ onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
2372
+ },
2373
+ charting: {
2374
+ addCategory: "Añadir categoría",
2375
+ actions: "Acciones",
2376
+ add: "Añadir",
2377
+ delete: "Eliminar",
2378
+ newLabel: "Nueva etiqueta",
2379
+ reachedLimit_other: "No puede haber más de {{count}} categorías.",
2380
+ keyLegend: {
2381
+ incorrectAnswer: "Respuesta incorrecta del estudiante",
2382
+ correctAnswer: "Respuesta correcta del estudiante",
2383
+ correctKeyAnswer: "Clave de respuesta correcta"
2384
+ }
2385
+ },
2386
+ graphing: {
2387
+ point: "Punto",
2388
+ circle: "Circulo",
2389
+ line: "Línea",
2390
+ parabola: "Parábola",
2391
+ absolute: "Valor absoluto",
2392
+ exponential: "Exponencial",
2393
+ polygon: "Polígono",
2394
+ ray: "Semirrecta",
2395
+ segment: "Segmento ",
2396
+ sine: "Seno",
2397
+ vector: "Vector",
2398
+ label: "Etiqueta",
2399
+ redo: "Rehacer",
2400
+ reset: "Reiniciar"
2401
+ },
2402
+ 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." },
2403
+ mcPopulatedBlank: {
2404
+ answerChoices: "Opciones de respuesta",
2405
+ blankLabel: "espacio en blanco",
2406
+ emptyBlank: "(en blanco)",
2407
+ blankPreSelectionHint: "La respuesta que elijas aparecerá en la línea en blanco de arriba.",
2408
+ correctAnswerSelected: "Respuesta correcta seleccionada",
2409
+ incorrectAnswerSelected: "Respuesta incorrecta seleccionada",
2410
+ selectedAnswerImage: "Imagen de la respuesta seleccionada",
2411
+ choiceImage: "Opción {{id}}",
2412
+ clickToEnableAutoplay: "Haz clic para activar la reproducción automática del audio",
2413
+ audioResourceUnavailable: "El audio está activado, pero no hay una URL de audio reproducible configurada.",
2414
+ listen: "Escuchar",
2415
+ listenSilentAlt: "Escuchar. Repetir las instrucciones.",
2416
+ listenPlayingAlt: "Escuchar. Estas son las instrucciones.",
2417
+ printAudio: "Audio:",
2418
+ printTranscript: "Transcripción:",
2419
+ printKey: "(clave)"
2420
+ },
2421
+ multipleChoice: {
2422
+ minSelections: "Seleccione al menos {{minSelections}}.",
2423
+ maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
2424
+ maxSelections_other: "Sólo se permiten {{maxSelections}} respuestas.",
2425
+ minmaxSelections_equal: "Seleccione {{minSelections}}.",
2426
+ minmaxSelections_range: "Seleccione entre {{minSelections}} y {{maxSelections}}."
2427
+ },
2428
+ selectText: {
2429
+ correctAnswerSelected: "Respuesta Correcta",
2430
+ correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
2431
+ incorrectSelection: "Selección Incorrecta",
2432
+ key: "Clave"
2433
+ },
2434
+ simpleCloze: {
2435
+ correctAnswerShown: "Respuesta correcta",
2436
+ correct: "Correcto",
2437
+ incorrect: "Incorrecto",
2438
+ unanswered: "Sin respuesta",
2439
+ placeholder: "Escribe tu respuesta...",
2440
+ answerInput: "Tu respuesta",
2441
+ printCorrectAnswer: "Respuesta correcta:",
2442
+ printAnswerBlank: "Espacio para la respuesta"
2443
+ },
2444
+ vennClassification: {
2445
+ tray: "Fichas para clasificar",
2446
+ unknownTarget: "desconocido",
2447
+ cancelled: "Cancelado",
2448
+ returnedToTray: "Se devolvió {{name}} a la bandeja",
2449
+ placedIn: "Se colocó {{name}} en {{target}}",
2450
+ pickedUp: "Se tomó {{name}}",
2451
+ pickedUpWithKeyboard: "Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.",
2452
+ dropTarget: "Destino: {{target}}",
2453
+ unsupportedCircles_one: "No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.",
2454
+ unsupportedCircles_other: "No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.",
2455
+ setNumber: "Conjunto {{number}}",
2456
+ regionOnly: "Solo {{set}}",
2457
+ regionNeither: "Ni {{first}} ni {{second}}",
2458
+ regionNoneOf: "Ninguno de {{sets}}",
2459
+ regionAndSeparator: " y ",
2460
+ tileFallbackName: "Ficha",
2461
+ tileNotPlaced: "sin colocar",
2462
+ tileInRegion: "en {{region}}",
2463
+ tileCorrect: "correcta",
2464
+ tileIncorrect: "incorrecta"
2465
+ }
2466
+ },
2467
+ common: {
2468
+ undo: "Deshacer",
2469
+ clearAll: "Borrar todo",
2470
+ correct: "Correcto",
2471
+ incorrect: "Incorrecto",
2472
+ showCorrectAnswer: "Mostrar respuesta correcta",
2473
+ hideCorrectAnswer: "Ocultar respuesta correcta",
2474
+ showTeacherInstructions: "Mostrar instrucciones para el maestro",
2475
+ hideTeacherInstructions: "Ocultar instrucciones para el maestro",
2476
+ 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.",
2477
+ warning: "Advertencia",
2478
+ showNote: "Mostrar Nota",
2479
+ hideNote: "Ocultar Nota",
2480
+ cancel: "Cancelar"
2481
+ }
2482
+ }, Z = (e) => typeof e == "string", Qr = () => {
2483
+ let e, t, n = new Promise((n, r) => {
2484
+ e = n, t = r;
2485
+ });
2486
+ return n.resolve = e, n.reject = t, n;
2487
+ }, $r = (e) => e == null ? "" : "" + e, ei = (e, t, n) => {
2488
+ e.forEach((e) => {
2489
+ t[e] && (n[e] = t[e]);
2490
+ });
2491
+ }, ti = /###/g, ni = (e) => e && e.indexOf("###") > -1 ? e.replace(ti, ".") : e, ri = (e) => !e || Z(e), ii = (e, t, n) => {
2492
+ let r = Z(t) ? t.split(".") : t, i = 0;
2493
+ for (; i < r.length - 1;) {
2494
+ if (ri(e)) return {};
2495
+ let t = ni(r[i]);
2496
+ !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2497
+ }
2498
+ return ri(e) ? {} : {
2499
+ obj: e,
2500
+ k: ni(r[i])
2501
+ };
2502
+ }, ai = (e, t, n) => {
2503
+ let { obj: r, k: i } = ii(e, t, Object);
2504
+ if (r !== void 0 || t.length === 1) {
2505
+ r[i] = n;
2506
+ return;
2507
+ }
2508
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = ii(e, o, Object);
2509
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = ii(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2510
+ s.obj[`${s.k}.${a}`] = n;
2511
+ }, oi = (e, t, n, r) => {
2512
+ let { obj: i, k: a } = ii(e, t, Object);
2513
+ i[a] = i[a] || [], i[a].push(n);
2514
+ }, si = (e, t) => {
2515
+ let { obj: n, k: r } = ii(e, t);
2516
+ if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2517
+ }, ci = (e, t, n) => {
2518
+ let r = si(e, n);
2519
+ return r === void 0 ? si(t, n) : r;
2520
+ }, li = (e, t, n) => {
2521
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : li(e[r], t[r], n) : e[r] = t[r]);
2522
+ return e;
2523
+ }, ui = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), di = {
2524
+ "&": "&amp;",
2525
+ "<": "&lt;",
2526
+ ">": "&gt;",
2527
+ "\"": "&quot;",
2528
+ "'": "&#39;",
2529
+ "/": "&#x2F;"
2530
+ }, fi = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => di[e]) : e, pi = class {
2531
+ constructor(e) {
2532
+ this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2533
+ }
2534
+ getRegExp(e) {
2535
+ let t = this.regExpMap.get(e);
2536
+ if (t !== void 0) return t;
2537
+ let n = new RegExp(e);
2538
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2539
+ }
2540
+ }, mi = [
2541
+ " ",
2542
+ ",",
2543
+ "?",
2544
+ "!",
2545
+ ";"
2546
+ ], hi = new pi(20), gi = (e, t, n) => {
2547
+ t ||= "", n ||= "";
2548
+ let r = mi.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2549
+ if (r.length === 0) return !0;
2550
+ let i = hi.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2551
+ if (!a) {
2552
+ let t = e.indexOf(n);
2553
+ t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2554
+ }
2555
+ return a;
2556
+ }, _i = (e, t, n = ".") => {
2557
+ if (!e) return;
2558
+ if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2559
+ let r = t.split(n), i = e;
2560
+ for (let e = 0; e < r.length;) {
2561
+ if (!i || typeof i != "object") return;
2562
+ let t, a = "";
2563
+ for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
2564
+ if ([
2565
+ "string",
2566
+ "number",
2567
+ "boolean"
2568
+ ].indexOf(typeof t) > -1 && o < r.length - 1) continue;
2569
+ e += o - e + 1;
2570
+ break;
2571
+ }
2572
+ i = t;
2573
+ }
2574
+ return i;
2575
+ }, vi = (e) => e?.replace(/_/g, "-"), yi = {
2576
+ type: "logger",
2577
+ log(e) {
2578
+ this.output("log", e);
2579
+ },
2580
+ warn(e) {
2581
+ this.output("warn", e);
2582
+ },
2583
+ error(e) {
2584
+ this.output("error", e);
2585
+ },
2586
+ output(e, t) {
2587
+ console?.[e]?.apply?.(console, t);
2588
+ }
2589
+ }, Q = new class e {
2590
+ constructor(e, t = {}) {
2591
+ this.init(e, t);
2592
+ }
2593
+ init(e, t = {}) {
2594
+ this.prefix = t.prefix || "i18next:", this.logger = e || yi, this.options = t, this.debug = t.debug;
2595
+ }
2596
+ log(...e) {
2597
+ return this.forward(e, "log", "", !0);
2598
+ }
2599
+ warn(...e) {
2600
+ return this.forward(e, "warn", "", !0);
2601
+ }
2602
+ error(...e) {
2603
+ return this.forward(e, "error", "");
2604
+ }
2605
+ deprecate(...e) {
2606
+ return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
2607
+ }
2608
+ forward(e, t, n, r) {
2609
+ return r && !this.debug ? null : (Z(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2610
+ }
2611
+ create(t) {
2612
+ return new e(this.logger, {
2613
+ prefix: `${this.prefix}:${t}:`,
2614
+ ...this.options
2615
+ });
2616
+ }
2617
+ clone(t) {
2618
+ return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2619
+ }
2620
+ }(), bi = class {
2621
+ constructor() {
2622
+ this.observers = {};
2623
+ }
2624
+ on(e, t) {
2625
+ return e.split(" ").forEach((e) => {
2626
+ this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
2627
+ let n = this.observers[e].get(t) || 0;
2628
+ this.observers[e].set(t, n + 1);
2629
+ }), this;
2630
+ }
2631
+ off(e, t) {
2632
+ if (this.observers[e]) {
2633
+ if (!t) {
2634
+ delete this.observers[e];
2635
+ return;
2636
+ }
2637
+ this.observers[e].delete(t);
2638
+ }
2639
+ }
2640
+ emit(e, ...t) {
2641
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
2642
+ for (let r = 0; r < n; r++) e(...t);
2643
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
2644
+ for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2645
+ });
2646
+ }
2647
+ }, xi = class extends bi {
2648
+ constructor(e, t = {
2649
+ ns: ["translation"],
2650
+ defaultNS: "translation"
2651
+ }) {
2652
+ super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
2653
+ }
2654
+ addNamespaces(e) {
2655
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
2656
+ }
2657
+ removeNamespaces(e) {
2658
+ let t = this.options.ns.indexOf(e);
2659
+ t > -1 && this.options.ns.splice(t, 1);
2660
+ }
2661
+ getResource(e, t, n, r = {}) {
2662
+ let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2663
+ e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : Z(n) && i ? o.push(...n.split(i)) : o.push(n)));
2664
+ let s = si(this.data, o);
2665
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : _i(this.data?.[e]?.[t], n, i);
2666
+ }
2667
+ addResource(e, t, n, r, i = { silent: !1 }) {
2668
+ let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2669
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), ai(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2670
+ }
2671
+ addResources(e, t, n, r = { silent: !1 }) {
2672
+ for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
2673
+ r.silent || this.emit("added", e, t, n);
2674
+ }
2675
+ addResourceBundle(e, t, n, r, i, a = {
2676
+ silent: !1,
2677
+ skipCopy: !1
2678
+ }) {
2679
+ let o = [e, t];
2680
+ e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2681
+ let s = si(this.data, o) || {};
2682
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? li(s, n, i) : s = {
2683
+ ...s,
2684
+ ...n
2685
+ }, ai(this.data, o, s), a.silent || this.emit("added", e, t, n);
2686
+ }
2687
+ removeResourceBundle(e, t) {
2688
+ this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
2689
+ }
2690
+ hasResourceBundle(e, t) {
2691
+ return this.getResource(e, t) !== void 0;
2692
+ }
2693
+ getResourceBundle(e, t) {
2694
+ return t ||= this.options.defaultNS, this.getResource(e, t);
2695
+ }
2696
+ getDataByLanguage(e) {
2697
+ return this.data[e];
2698
+ }
2699
+ hasLanguageSomeTranslations(e) {
2700
+ let t = this.getDataByLanguage(e);
2701
+ return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
2702
+ }
2703
+ toJSON() {
2704
+ return this.data;
2705
+ }
2706
+ }, Si = {
2707
+ processors: {},
2708
+ addPostProcessor(e) {
2709
+ this.processors[e.name] = e;
2710
+ },
2711
+ handle(e, t, n, r, i) {
2712
+ return e.forEach((e) => {
2713
+ t = this.processors[e]?.process(t, n, r, i) ?? t;
2714
+ }), t;
2715
+ }
2716
+ }, Ci = Symbol("i18next/PATH_KEY");
2717
+ function wi() {
2718
+ let e = [], t = Object.create(null), n;
2719
+ return t.get = (r, i) => (n?.revoke?.(), i === Ci ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2720
+ }
2721
+ function Ti(e, t) {
2722
+ let { [Ci]: n } = e(wi()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2723
+ if (n.length > 1 && i) {
2724
+ let e = t?.ns, a = Array.isArray(e) ? e : null;
2725
+ if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2726
+ }
2727
+ return n.join(r);
2728
+ }
2729
+ var Ei = {}, Di = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", Oi = class e extends bi {
2730
+ constructor(e, t = {}) {
2731
+ super(), ei([
2732
+ "resourceStore",
2733
+ "languageUtils",
2734
+ "pluralResolver",
2735
+ "interpolator",
2736
+ "backendConnector",
2737
+ "i18nFormat",
2738
+ "utils"
2739
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator");
2740
+ }
2741
+ changeLanguage(e) {
2742
+ e && (this.language = e);
2743
+ }
2744
+ exists(e, t = { interpolation: {} }) {
2745
+ let n = { ...t };
2746
+ if (e == null) return !1;
2747
+ let r = this.resolve(e, n);
2748
+ if (r?.res === void 0) return !1;
2749
+ let i = Di(r.res);
2750
+ return !(n.returnObjects === !1 && i);
2751
+ }
2752
+ extractFromKey(e, t) {
2753
+ let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2754
+ n === void 0 && (n = ":");
2755
+ 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 && !gi(e, n, r);
2756
+ if (a && !o) {
2757
+ let t = e.match(this.interpolator.nestingRegexp);
2758
+ if (t && t.length > 0) return {
2759
+ key: e,
2760
+ namespaces: Z(i) ? [i] : i
2761
+ };
2762
+ let a = e.split(n);
2763
+ (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
2764
+ }
2765
+ return {
2766
+ key: e,
2767
+ namespaces: Z(i) ? [i] : i
2768
+ };
2769
+ }
2770
+ translate(t, n, r) {
2771
+ let i = typeof n == "object" ? { ...n } : n;
2772
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2773
+ typeof t == "function" && (t = Ti(t, {
2774
+ ...this.options,
2775
+ ...i
2776
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Ti(e, {
2777
+ ...this.options,
2778
+ ...i
2779
+ }) : String(e));
2780
+ 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;
2781
+ u === void 0 && (u = ":");
2782
+ let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2783
+ if (d?.toLowerCase() === "cimode") return f ? a ? {
2784
+ res: `${l}${u}${s}`,
2785
+ usedKey: s,
2786
+ exactUsedKey: s,
2787
+ usedLng: d,
2788
+ usedNS: l,
2789
+ usedParams: this.getUsedParamsDetails(i)
2790
+ } : `${l}${u}${s}` : a ? {
2791
+ res: s,
2792
+ usedKey: s,
2793
+ exactUsedKey: s,
2794
+ usedLng: d,
2795
+ usedNS: l,
2796
+ usedParams: this.getUsedParamsDetails(i)
2797
+ } : s;
2798
+ let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, g = p?.exactUsedKey || s, _ = [
2799
+ "[object Number]",
2800
+ "[object Function]",
2801
+ "[object RegExp]"
2802
+ ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !Z(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 }) : "", te = b && !i.ordinal && i.count === 0, C = te && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${ee}`] || i.defaultValue, w = m;
2803
+ y && !m && x && (w = C);
2804
+ let ne = Di(w), re = Object.prototype.toString.apply(w);
2805
+ if (y && w && ne && _.indexOf(re) < 0 && !(Z(v) && Array.isArray(w))) {
2806
+ if (!i.returnObjects && !this.options.returnObjects) {
2807
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2808
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, w, {
2809
+ ...i,
2810
+ ns: c
2811
+ }) : `key '${s} (${this.language})' returned an object instead of string.`;
2812
+ return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
2813
+ }
2814
+ if (o) {
2815
+ let e = Array.isArray(w), t = e ? [] : {}, n = e ? g : h;
2816
+ for (let e in w) if (Object.prototype.hasOwnProperty.call(w, e)) {
2817
+ let r = `${n}${o}${e}`;
2818
+ x && !m ? t[e] = this.translate(r, {
2819
+ ...i,
2820
+ defaultValue: Di(C) ? C[e] : void 0,
2821
+ joinArrays: !1,
2822
+ ns: c
2823
+ }) : t[e] = this.translate(r, {
2824
+ ...i,
2825
+ joinArrays: !1,
2826
+ ns: c
2827
+ }), t[e] === r && (t[e] = w[e]);
2828
+ }
2829
+ m = t;
2830
+ }
2831
+ } else if (y && Z(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
2832
+ else {
2833
+ let e = !1, n = !1;
2834
+ !this.isValidLookup(m) && x && (e = !0, m = C), this.isValidLookup(m) || (n = !0, m = s);
2835
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && C !== m && this.options.updateMissing;
2836
+ if (n || e || c) {
2837
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? C : m), o) {
2838
+ let e = this.resolve(s, {
2839
+ ...i,
2840
+ keySeparator: !1
2841
+ });
2842
+ 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.");
2843
+ }
2844
+ let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
2845
+ if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
2846
+ else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
2847
+ let n = (e, t, n) => {
2848
+ let r = x && n !== m ? n : a;
2849
+ 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);
2850
+ };
2851
+ this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
2852
+ let t = this.pluralResolver.getSuffixes(e, i);
2853
+ te && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
2854
+ n([e], s + t, i[`defaultValue${t}`] || C);
2855
+ });
2856
+ }) : n(e, s, C));
2857
+ }
2858
+ 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));
2859
+ }
2860
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
2861
+ }
2862
+ extendTranslation(e, t, n, r, i) {
2863
+ if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
2864
+ ...this.options.interpolation.defaultVariables,
2865
+ ...n
2866
+ }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
2867
+ else if (!n.skipInterpolation) {
2868
+ n.interpolation && this.interpolator.init({
2869
+ ...n,
2870
+ interpolation: {
2871
+ ...this.options.interpolation,
2872
+ ...n.interpolation
2873
+ }
2874
+ });
2875
+ let a = Z(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
2876
+ if (a) {
2877
+ let t = e.match(this.interpolator.nestingRegexp);
2878
+ o = t && t.length;
2879
+ }
2880
+ let s = n.replace && !Z(n.replace) ? n.replace : n;
2881
+ if (this.options.interpolation.defaultVariables && (s = {
2882
+ ...this.options.interpolation.defaultVariables,
2883
+ ...s
2884
+ }), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
2885
+ let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
2886
+ o < r && (n.nest = !1);
2887
+ }
2888
+ !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();
2889
+ }
2890
+ let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
2891
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Si.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2892
+ i18nResolved: {
2893
+ ...r,
2894
+ usedParams: this.getUsedParamsDetails(n)
2895
+ },
2896
+ ...n
2897
+ } : n, this)), e;
2898
+ }
2899
+ resolve(e, t = {}) {
2900
+ let n, r, i, a, o;
2901
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Ti(e, {
2902
+ ...this.options,
2903
+ ...t
2904
+ }) : e)), e.forEach((e) => {
2905
+ if (this.isValidLookup(n)) return;
2906
+ let s = this.extractFromKey(e, t), c = s.key;
2907
+ r = c;
2908
+ let l = s.namespaces;
2909
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2910
+ let u = t.count !== void 0 && !Z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (Z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2911
+ l.forEach((e) => {
2912
+ this.isValidLookup(n) || (o = e, !Ei[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Ei[`${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) => {
2913
+ if (this.isValidLookup(n)) return;
2914
+ a = r;
2915
+ let o = [c];
2916
+ if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
2917
+ else {
2918
+ let e;
2919
+ u && (e = this.pluralResolver.getSuffix(r, t.count, t));
2920
+ let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2921
+ 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) {
2922
+ let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
2923
+ 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));
2924
+ }
2925
+ }
2926
+ let s;
2927
+ for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
2928
+ }));
2929
+ });
2930
+ }), {
2931
+ res: n,
2932
+ usedKey: r,
2933
+ exactUsedKey: i,
2934
+ usedLng: a,
2935
+ usedNS: o
2936
+ };
2937
+ }
2938
+ isValidLookup(e) {
2939
+ return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
2940
+ }
2941
+ getResource(e, t, n, r = {}) {
2942
+ return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
2943
+ }
2944
+ getUsedParamsDetails(e = {}) {
2945
+ let t = [
2946
+ "defaultValue",
2947
+ "ordinal",
2948
+ "context",
2949
+ "replace",
2950
+ "lng",
2951
+ "lngs",
2952
+ "fallbackLng",
2953
+ "ns",
2954
+ "keySeparator",
2955
+ "nsSeparator",
2956
+ "returnObjects",
2957
+ "returnDetails",
2958
+ "joinArrays",
2959
+ "postProcess",
2960
+ "interpolation"
2961
+ ], n = e.replace && !Z(e.replace), r = n ? e.replace : e;
2962
+ if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
2963
+ ...this.options.interpolation.defaultVariables,
2964
+ ...r
2965
+ }), !n) {
2966
+ r = { ...r };
2967
+ for (let e of t) delete r[e];
2968
+ }
2969
+ return r;
2970
+ }
2971
+ static hasDefaultValue(e) {
2972
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
2973
+ return !1;
2974
+ }
2975
+ }, ki = class {
2976
+ constructor(e) {
2977
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
2978
+ }
2979
+ getScriptPartFromCode(e) {
2980
+ if (e = vi(e), !e || e.indexOf("-") < 0) return null;
2981
+ let t = e.split("-");
2982
+ return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2983
+ }
2984
+ getLanguagePartFromCode(e) {
2985
+ if (e = vi(e), !e || e.indexOf("-") < 0) return e;
2986
+ let t = e.split("-");
2987
+ return this.formatLanguageCode(t[0]);
2988
+ }
2989
+ formatLanguageCode(e) {
2990
+ if (Z(e) && e.indexOf("-") > -1) {
2991
+ let t;
2992
+ try {
2993
+ t = Intl.getCanonicalLocales(e)[0];
2994
+ } catch {}
2995
+ return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
2996
+ }
2997
+ return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
2998
+ }
2999
+ isSupportedCode(e) {
3000
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
3001
+ }
3002
+ getBestMatchFromCodes(e) {
3003
+ if (!e) return null;
3004
+ let t;
3005
+ return e.forEach((e) => {
3006
+ if (t) return;
3007
+ let n = this.formatLanguageCode(e);
3008
+ (!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
3009
+ }), !t && this.options.supportedLngs && e.forEach((e) => {
3010
+ if (t) return;
3011
+ let n = this.getScriptPartFromCode(e);
3012
+ if (this.isSupportedCode(n)) return t = n;
3013
+ let r = this.getLanguagePartFromCode(e);
3014
+ if (this.isSupportedCode(r)) return t = r;
3015
+ t = this.options.supportedLngs.find((e) => {
3016
+ 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;
3017
+ });
3018
+ }), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
3019
+ }
3020
+ getFallbackCodes(e, t) {
3021
+ if (!e) return [];
3022
+ if (typeof e == "function" && (e = e(t)), Z(e) && (e = [e]), Array.isArray(e)) return e;
3023
+ if (!t) return e.default || [];
3024
+ let n = e[t];
3025
+ return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
3026
+ }
3027
+ toResolveHierarchy(e, t) {
3028
+ let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
3029
+ e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
3030
+ };
3031
+ return Z(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))) : Z(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
3032
+ r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3033
+ }), r;
3034
+ }
3035
+ }, Ai = {
3036
+ zero: 0,
3037
+ one: 1,
3038
+ two: 2,
3039
+ few: 3,
3040
+ many: 4,
3041
+ other: 5
3042
+ }, ji = {
3043
+ select: (e) => e === 1 ? "one" : "other",
3044
+ resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3045
+ }, Mi = class {
3046
+ constructor(e, t = {}) {
3047
+ this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3048
+ }
3049
+ clearCache() {
3050
+ this.pluralRulesCache = {};
3051
+ }
3052
+ getRule(e, t = {}) {
3053
+ let n = vi(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3054
+ cleanedCode: n,
3055
+ type: r
3056
+ });
3057
+ if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
3058
+ let a;
3059
+ try {
3060
+ a = new Intl.PluralRules(n, { type: r });
3061
+ } catch {
3062
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), ji;
3063
+ if (!e.match(/-|_/)) return ji;
3064
+ let n = this.languageUtils.getLanguagePartFromCode(e);
3065
+ a = this.getRule(n, t);
3066
+ }
3067
+ return this.pluralRulesCache[i] = a, a;
3068
+ }
3069
+ needsPlural(e, t = {}) {
3070
+ let n = this.getRule(e, t);
3071
+ return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
3072
+ }
3073
+ getPluralFormsOfKey(e, t, n = {}) {
3074
+ return this.getSuffixes(e, n).map((e) => `${t}${e}`);
3075
+ }
3076
+ getSuffixes(e, t = {}) {
3077
+ let n = this.getRule(e, t);
3078
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Ai[e] - Ai[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3079
+ }
3080
+ getSuffix(e, t, n = {}) {
3081
+ let r = this.getRule(e, n);
3082
+ 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));
3083
+ }
3084
+ }, Ni = (e, t, n, r = ".", i = !0) => {
3085
+ let a = ci(e, t, n);
3086
+ return !a && i && Z(n) && (a = _i(e, n, r), a === void 0 && (a = _i(t, n, r))), a;
3087
+ }, Pi = (e) => e.replace(/\$/g, "$$$$"), Fi = class {
3088
+ constructor(e = {}) {
3089
+ this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3090
+ }
3091
+ init(e = {}) {
3092
+ e.interpolation ||= { escapeValue: !0 };
3093
+ 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;
3094
+ this.escape = t === void 0 ? fi : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? ui(i) : a || "{{", this.suffix = o ? ui(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? ui(d) : f || ui("$t("), this.nestingSuffix = p ? ui(p) : m || ui(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ !== void 0 && _, this.resetRegExp();
3095
+ }
3096
+ reset() {
3097
+ this.options && this.init(this.options);
3098
+ }
3099
+ resetRegExp() {
3100
+ let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
3101
+ 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}`);
3102
+ }
3103
+ interpolate(e, t, n, r) {
3104
+ let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3105
+ if (e.indexOf(this.formatSeparator) < 0) {
3106
+ let i = Ni(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3107
+ return this.alwaysFormat ? this.format(i, void 0, n, {
3108
+ ...r,
3109
+ ...t,
3110
+ interpolationkey: e
3111
+ }) : i;
3112
+ }
3113
+ let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3114
+ return this.format(Ni(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3115
+ ...r,
3116
+ ...t,
3117
+ interpolationkey: a
3118
+ });
3119
+ };
3120
+ this.resetRegExp();
3121
+ let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3122
+ return [{
3123
+ regex: this.regexpUnescape,
3124
+ safeValue: (e) => Pi(e)
3125
+ }, {
3126
+ regex: this.regexp,
3127
+ safeValue: (e) => this.escapeValue ? Pi(this.escape(e)) : Pi(e)
3128
+ }].forEach((t) => {
3129
+ for (o = 0; i = t.regex.exec(e);) {
3130
+ let n = i[1].trim();
3131
+ if (a = c(n), a === void 0) if (typeof l == "function") {
3132
+ let t = l(e, i, r);
3133
+ a = Z(t) ? t : "";
3134
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
3135
+ else if (u) {
3136
+ a = i[0];
3137
+ continue;
3138
+ } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3139
+ else !Z(a) && !this.useRawValueToEscape && (a = $r(a));
3140
+ let s = t.safeValue(a);
3141
+ 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;
3142
+ }
3143
+ }), e;
3144
+ }
3145
+ nest(e, t, n = {}) {
3146
+ let r, i, a, o = (e, t) => {
3147
+ let n = this.nestingOptionsSeparator;
3148
+ if (e.indexOf(n) < 0) return e;
3149
+ let r = e.split(RegExp(`${ui(n)}[ ]*{`)), i = `{${r[1]}`;
3150
+ e = r[0], i = this.interpolate(i, a);
3151
+ let o = i.match(/'/g), s = i.match(/"/g);
3152
+ ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
3153
+ try {
3154
+ a = JSON.parse(i), t && (a = {
3155
+ ...t,
3156
+ ...a
3157
+ });
3158
+ } catch (t) {
3159
+ return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
3160
+ }
3161
+ return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, e;
3162
+ };
3163
+ for (; r = this.nestingRegexp.exec(e);) {
3164
+ let s = [];
3165
+ a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3166
+ let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3167
+ 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 && !Z(i)) return i;
3168
+ Z(i) || (i = $r(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, {
3169
+ ...n,
3170
+ interpolationkey: r[1].trim()
3171
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3172
+ }
3173
+ return e;
3174
+ }
3175
+ }, Ii = (e) => {
3176
+ let t = e.toLowerCase().trim(), n = {};
3177
+ if (e.indexOf("(") > -1) {
3178
+ let r = e.split("(");
3179
+ t = r[0].toLowerCase().trim();
3180
+ let i = r[1].substring(0, r[1].length - 1);
3181
+ t === "currency" && i.indexOf(":") < 0 ? n.currency ||= i.trim() : t === "relativetime" && i.indexOf(":") < 0 ? n.range ||= i.trim() : i.split(";").forEach((e) => {
3182
+ if (e) {
3183
+ let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
3184
+ n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
3185
+ }
3186
+ });
3187
+ }
3188
+ return {
3189
+ formatName: t,
3190
+ formatOptions: n
3191
+ };
3192
+ }, Li = (e) => {
3193
+ let t = {};
3194
+ return (n, r, i) => {
3195
+ let a = i;
3196
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
3197
+ ...a,
3198
+ [i.interpolationkey]: void 0
3199
+ });
3200
+ let o = r + JSON.stringify(a), s = t[o];
3201
+ return s || (s = e(vi(r), i), t[o] = s), s(n);
3202
+ };
3203
+ }, Ri = (e) => (t, n, r) => e(vi(n), r)(t), zi = class {
3204
+ constructor(e = {}) {
3205
+ this.logger = Q.create("formatter"), this.options = e, this.init(e);
3206
+ }
3207
+ init(e, t = { interpolation: {} }) {
3208
+ this.formatSeparator = t.interpolation.formatSeparator || ",";
3209
+ let n = t.cacheInBuiltFormats ? Li : Ri;
3210
+ this.formats = {
3211
+ number: n((e, t) => {
3212
+ let n = new Intl.NumberFormat(e, { ...t });
3213
+ return (e) => n.format(e);
3214
+ }),
3215
+ currency: n((e, t) => {
3216
+ let n = new Intl.NumberFormat(e, {
3217
+ ...t,
3218
+ style: "currency"
3219
+ });
3220
+ return (e) => n.format(e);
3221
+ }),
3222
+ datetime: n((e, t) => {
3223
+ let n = new Intl.DateTimeFormat(e, { ...t });
3224
+ return (e) => n.format(e);
3225
+ }),
3226
+ relativetime: n((e, t) => {
3227
+ let n = new Intl.RelativeTimeFormat(e, { ...t });
3228
+ return (e) => n.format(e, t.range || "day");
3229
+ }),
3230
+ list: n((e, t) => {
3231
+ let n = new Intl.ListFormat(e, { ...t });
3232
+ return (e) => n.format(e);
3233
+ })
3234
+ };
3235
+ }
3236
+ add(e, t) {
3237
+ this.formats[e.toLowerCase().trim()] = t;
3238
+ }
3239
+ addCached(e, t) {
3240
+ this.formats[e.toLowerCase().trim()] = Li(t);
3241
+ }
3242
+ format(e, t, n, r = {}) {
3243
+ let i = t.split(this.formatSeparator);
3244
+ if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((e) => e.indexOf(")") > -1)) {
3245
+ let e = i.findIndex((e) => e.indexOf(")") > -1);
3246
+ i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3247
+ }
3248
+ return i.reduce((e, t) => {
3249
+ let { formatName: i, formatOptions: a } = Ii(t);
3250
+ if (this.formats[i]) {
3251
+ let t = e;
3252
+ try {
3253
+ let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
3254
+ t = this.formats[i](e, s, {
3255
+ ...a,
3256
+ ...r,
3257
+ ...o
3258
+ });
3259
+ } catch (e) {
3260
+ this.logger.warn(e);
3261
+ }
3262
+ return t;
3263
+ } else this.logger.warn(`there was no format function for ${i}`);
3264
+ return e;
3265
+ }, e);
3266
+ }
3267
+ }, Bi = (e, t) => {
3268
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3269
+ }, Vi = class extends bi {
3270
+ constructor(e, t, n, r = {}) {
3271
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.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);
3272
+ }
3273
+ queueLoad(e, t, n, r) {
3274
+ let i = {}, a = {}, o = {}, s = {};
3275
+ return e.forEach((e) => {
3276
+ let r = !0;
3277
+ t.forEach((t) => {
3278
+ let o = `${e}|${t}`;
3279
+ !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)));
3280
+ }), r || (o[e] = !0);
3281
+ }), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
3282
+ pending: a,
3283
+ pendingCount: Object.keys(a).length,
3284
+ loaded: {},
3285
+ errors: [],
3286
+ callback: r
3287
+ }), {
3288
+ toLoad: Object.keys(i),
3289
+ pending: Object.keys(a),
3290
+ toLoadLanguages: Object.keys(o),
3291
+ toLoadNamespaces: Object.keys(s)
3292
+ };
3293
+ }
3294
+ loaded(e, t, n) {
3295
+ let r = e.split("|"), i = r[0], a = r[1];
3296
+ 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);
3297
+ let o = {};
3298
+ this.queue.forEach((n) => {
3299
+ oi(n.loaded, [i], a), Bi(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3300
+ o[e] || (o[e] = {});
3301
+ let t = n.loaded[e];
3302
+ t.length && t.forEach((t) => {
3303
+ o[e][t] === void 0 && (o[e][t] = !0);
3304
+ });
3305
+ }), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
3306
+ }), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
3307
+ }
3308
+ read(e, t, n, r = 0, i = this.retryTimeout, a) {
3309
+ if (!e.length) return a(null, {});
3310
+ if (this.readingCalls >= this.maxParallelReads) {
3311
+ this.waitingReads.push({
3312
+ lng: e,
3313
+ ns: t,
3314
+ fcName: n,
3315
+ tried: r,
3316
+ wait: i,
3317
+ callback: a
3318
+ });
3319
+ return;
3320
+ }
3321
+ this.readingCalls++;
3322
+ let o = (o, s) => {
3323
+ if (this.readingCalls--, this.waitingReads.length > 0) {
3324
+ let e = this.waitingReads.shift();
3325
+ this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
3326
+ }
3327
+ if (o && s && r < this.maxRetries) {
3328
+ setTimeout(() => {
3329
+ this.read.call(this, e, t, n, r + 1, i * 2, a);
3330
+ }, i);
3331
+ return;
3332
+ }
3333
+ a(o, s);
3334
+ }, s = this.backend[n].bind(this.backend);
3335
+ if (s.length === 2) {
3336
+ try {
3337
+ let n = s(e, t);
3338
+ n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
3339
+ } catch (e) {
3340
+ o(e);
3341
+ }
3342
+ return;
3343
+ }
3344
+ return s(e, t, o);
3345
+ }
3346
+ prepareLoading(e, t, n = {}, r) {
3347
+ if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
3348
+ Z(e) && (e = this.languageUtils.toResolveHierarchy(e)), Z(t) && (t = [t]);
3349
+ let i = this.queueLoad(e, t, n, r);
3350
+ if (!i.toLoad.length) return i.pending.length || r(), null;
3351
+ i.toLoad.forEach((e) => {
3352
+ this.loadOne(e);
3353
+ });
3354
+ }
3355
+ load(e, t, n) {
3356
+ this.prepareLoading(e, t, {}, n);
3357
+ }
3358
+ reload(e, t, n) {
3359
+ this.prepareLoading(e, t, { reload: !0 }, n);
3360
+ }
3361
+ loadOne(e, t = "") {
3362
+ let n = e.split("|"), r = n[0], i = n[1];
3363
+ this.read(r, i, "read", void 0, void 0, (n, a) => {
3364
+ 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);
3365
+ });
3366
+ }
3367
+ saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
3368
+ if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
3369
+ 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!!!");
3370
+ return;
3371
+ }
3372
+ if (!(n == null || n === "")) {
3373
+ if (this.backend?.create) {
3374
+ let s = {
3375
+ ...a,
3376
+ isUpdate: i
3377
+ }, c = this.backend.create.bind(this.backend);
3378
+ if (c.length < 6) try {
3379
+ let i;
3380
+ 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);
3381
+ } catch (e) {
3382
+ o(e);
3383
+ }
3384
+ else c(e, t, n, r, o, s);
3385
+ }
3386
+ !e || !e[0] || this.store.addResource(e[0], t, n, r);
3387
+ }
3388
+ }
3389
+ }, Hi = () => ({
3390
+ debug: !1,
3391
+ initAsync: !0,
3392
+ ns: ["translation"],
3393
+ defaultNS: ["translation"],
3394
+ fallbackLng: ["dev"],
3395
+ fallbackNS: !1,
3396
+ supportedLngs: !1,
3397
+ nonExplicitSupportedLngs: !1,
3398
+ load: "all",
3399
+ preload: !1,
3400
+ simplifyPluralSuffix: !0,
3401
+ keySeparator: ".",
3402
+ nsSeparator: ":",
3403
+ pluralSeparator: "_",
3404
+ contextSeparator: "_",
3405
+ partialBundledLanguages: !1,
3406
+ saveMissing: !1,
3407
+ updateMissing: !1,
3408
+ saveMissingTo: "fallback",
3409
+ saveMissingPlurals: !0,
3410
+ missingKeyHandler: !1,
3411
+ missingInterpolationHandler: !1,
3412
+ postProcess: !1,
3413
+ postProcessPassResolved: !1,
3414
+ returnNull: !1,
3415
+ returnEmptyString: !0,
3416
+ returnObjects: !1,
3417
+ joinArrays: !1,
3418
+ returnedObjectHandler: !1,
3419
+ parseMissingKeyHandler: !1,
3420
+ appendNamespaceToMissingKey: !1,
3421
+ appendNamespaceToCIMode: !1,
3422
+ overloadTranslationOptionHandler: (e) => {
3423
+ let t = {};
3424
+ if (typeof e[1] == "object" && (t = e[1]), Z(e[1]) && (t.defaultValue = e[1]), Z(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
3425
+ let n = e[3] || e[2];
3426
+ Object.keys(n).forEach((e) => {
3427
+ t[e] = n[e];
3428
+ });
3429
+ }
3430
+ return t;
3431
+ },
3432
+ interpolation: {
3433
+ escapeValue: !0,
3434
+ format: (e) => e,
3435
+ prefix: "{{",
3436
+ suffix: "}}",
3437
+ formatSeparator: ",",
3438
+ unescapePrefix: "-",
3439
+ nestingPrefix: "$t(",
3440
+ nestingSuffix: ")",
3441
+ nestingOptionsSeparator: ",",
3442
+ maxReplaces: 1e3,
3443
+ skipOnVariables: !0
3444
+ },
3445
+ cacheInBuiltFormats: !0
3446
+ }), Ui = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(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), Wi = () => {}, Gi = (e) => {
3447
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3448
+ typeof e[t] == "function" && (e[t] = e[t].bind(e));
3449
+ });
3450
+ }, Ki = "__i18next_supportNoticeShown", qi = () => !!(typeof globalThis < "u" && globalThis[Ki] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Ji = () => {
3451
+ typeof globalThis < "u" && (globalThis[Ki] = !0);
3452
+ }, Yi = (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)), $ = class e extends bi {
3453
+ constructor(e = {}, t) {
3454
+ if (super(), this.options = Ui(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Gi(this), t && !this.isInitialized && !e.isClone) {
3455
+ if (!this.options.initAsync) return this.init(e, t), this;
3456
+ setTimeout(() => {
3457
+ this.init(e, t);
3458
+ }, 0);
3459
+ }
3460
+ }
3461
+ init(e = {}, t) {
3462
+ this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3463
+ let n = Hi();
3464
+ this.options = {
3465
+ ...n,
3466
+ ...this.options,
3467
+ ...Ui(e)
3468
+ }, this.options.interpolation = {
3469
+ ...n.interpolation,
3470
+ ...this.options.interpolation
3471
+ }, 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 && !Yi(this) && !qi() && (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 💙"), Ji());
3472
+ let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3473
+ if (!this.options.isClone) {
3474
+ this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3475
+ let e;
3476
+ e = this.modules.formatter ? this.modules.formatter : zi;
3477
+ let t = new ki(this.options);
3478
+ this.store = new xi(this.options.resources, this.options);
3479
+ let i = this.services;
3480
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Mi(t, {
3481
+ prepend: this.options.pluralSeparator,
3482
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
3483
+ }), 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 Fi(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Vi(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3484
+ this.emit(e, ...t);
3485
+ }), 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 Oi(this.services, this.options), this.translator.on("*", (e, ...t) => {
3486
+ this.emit(e, ...t);
3487
+ }), this.modules.external.forEach((e) => {
3488
+ e.init && e.init(this);
3489
+ });
3490
+ }
3491
+ if (this.format = this.options.interpolation.format, t ||= Wi, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3492
+ let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3493
+ e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3494
+ }
3495
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
3496
+ "getResource",
3497
+ "hasResourceBundle",
3498
+ "getResourceBundle",
3499
+ "getDataByLanguage"
3500
+ ].forEach((e) => {
3501
+ this[e] = (...t) => this.store[e](...t);
3502
+ }), [
3503
+ "addResource",
3504
+ "addResources",
3505
+ "addResourceBundle",
3506
+ "removeResourceBundle"
3507
+ ].forEach((e) => {
3508
+ this[e] = (...t) => (this.store[e](...t), this);
3509
+ });
3510
+ let i = Qr(), a = () => {
3511
+ let e = (e, n) => {
3512
+ 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);
3513
+ };
3514
+ if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
3515
+ this.changeLanguage(this.options.lng, e);
3516
+ };
3517
+ return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3518
+ }
3519
+ loadResources(e, t = Wi) {
3520
+ let n = t, r = Z(e) ? e : this.language;
3521
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3522
+ if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3523
+ let e = [], t = (t) => {
3524
+ t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
3525
+ t !== "cimode" && e.indexOf(t) < 0 && e.push(t);
3526
+ });
3527
+ };
3528
+ 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) => {
3529
+ !e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
3530
+ });
3531
+ } else n(null);
3532
+ }
3533
+ reloadResources(e, t, n) {
3534
+ let r = Qr();
3535
+ 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 ||= Wi, this.services.backendConnector.reload(e, t, (e) => {
3536
+ r.resolve(), n(e);
3537
+ }), r;
3538
+ }
3539
+ use(e) {
3540
+ if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3541
+ if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3542
+ 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" && Si.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3543
+ }
3544
+ setResolvedLanguage(e) {
3545
+ if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
3546
+ for (let e = 0; e < this.languages.length; e++) {
3547
+ let t = this.languages[e];
3548
+ if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
3549
+ this.resolvedLanguage = t;
3550
+ break;
3551
+ }
3552
+ }
3553
+ !this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
3554
+ }
3555
+ }
3556
+ changeLanguage(e, t) {
3557
+ this.isLanguageChangingTo = e;
3558
+ let n = Qr();
3559
+ this.emit("languageChanging", e);
3560
+ let r = (e) => {
3561
+ this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
3562
+ }, i = (i, a) => {
3563
+ 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));
3564
+ }, a = (t) => {
3565
+ !e && !t && this.services.languageDetector && (t = []);
3566
+ let n = Z(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(Z(t) ? [t] : t);
3567
+ a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
3568
+ i(e, a);
3569
+ });
3570
+ };
3571
+ 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;
3572
+ }
3573
+ getFixedT(e, t, n) {
3574
+ let r = (e, t, ...i) => {
3575
+ let a;
3576
+ 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);
3577
+ let o = {
3578
+ ...this.options,
3579
+ ...a
3580
+ };
3581
+ typeof a.keyPrefix == "function" && (a.keyPrefix = Ti(a.keyPrefix, o));
3582
+ let s = this.options.keySeparator || ".", c;
3583
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = Ti(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = Ti(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3584
+ };
3585
+ return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3586
+ }
3587
+ t(...e) {
3588
+ return this.translator?.translate(...e);
3589
+ }
3590
+ exists(...e) {
3591
+ return this.translator?.exists(...e);
3592
+ }
3593
+ setDefaultNamespace(e) {
3594
+ this.options.defaultNS = e;
3595
+ }
3596
+ hasLoadedNamespace(e, t = {}) {
3597
+ if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
3598
+ if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3599
+ let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
3600
+ if (n.toLowerCase() === "cimode") return !0;
3601
+ let a = (e, t) => {
3602
+ let n = this.services.backendConnector.state[`${e}|${t}`];
3603
+ return n === -1 || n === 0 || n === 2;
3604
+ };
3605
+ if (t.precheck) {
3606
+ let e = t.precheck(this, a);
3607
+ if (e !== void 0) return e;
3608
+ }
3609
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3610
+ }
3611
+ loadNamespaces(e, t) {
3612
+ let n = Qr();
3613
+ return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3614
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3615
+ }), this.loadResources((e) => {
3616
+ n.resolve(), t && t(e);
3617
+ }), n) : (t && t(), Promise.resolve());
3618
+ }
3619
+ loadLanguages(e, t) {
3620
+ let n = Qr();
3621
+ Z(e) && (e = [e]);
3622
+ let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3623
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
3624
+ n.resolve(), t && t(e);
3625
+ }), n) : (t && t(), Promise.resolve());
3626
+ }
3627
+ dir(e) {
3628
+ if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
3629
+ try {
3630
+ let t = new Intl.Locale(e);
3631
+ if (t && t.getTextInfo) {
3632
+ let e = t.getTextInfo();
3633
+ if (e && e.direction) return e.direction;
3634
+ }
3635
+ } catch {}
3636
+ 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 ki(Hi());
3637
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3638
+ }
3639
+ static createInstance(t = {}, n) {
3640
+ let r = new e(t, n);
3641
+ return r.createInstance = e.createInstance, r;
3642
+ }
3643
+ cloneInstance(t = {}, n = Wi) {
3644
+ let r = t.forkResourceStore;
3645
+ r && delete t.forkResourceStore;
3646
+ let i = {
3647
+ ...this.options,
3648
+ ...t,
3649
+ isClone: !0
3650
+ }, a = new e(i);
3651
+ if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
3652
+ "store",
3653
+ "services",
3654
+ "language"
3655
+ ].forEach((e) => {
3656
+ a[e] = this[e];
3657
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new xi(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) {
3658
+ let e = {
3659
+ ...Hi().interpolation,
3660
+ ...this.options.interpolation,
3661
+ ...t.interpolation
3662
+ }, n = {
3663
+ ...i,
3664
+ interpolation: e
3665
+ };
3666
+ a.services.interpolator = new Fi(n);
3667
+ }
3668
+ return a.translator = new Oi(a.services, i), a.translator.on("*", (e, ...t) => {
3669
+ a.emit(e, ...t);
3670
+ }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3671
+ }
3672
+ toJSON() {
3673
+ return {
3674
+ options: this.options,
3675
+ store: this.store,
3676
+ language: this.language,
3677
+ languages: this.languages,
3678
+ resolvedLanguage: this.resolvedLanguage
3679
+ };
3680
+ }
3681
+ }.createInstance();
3682
+ //#endregion
3683
+ //#region ../../shared/translator/dist/index.js
3684
+ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.changeLanguage, $.getFixedT, $.t, $.exists, $.setDefaultNamespace, $.hasLoadedNamespace, $.loadNamespaces, $.loadLanguages, $.init({
3685
+ fallbackLng: "en",
3686
+ lng: "en",
3687
+ showSupportNotice: !1,
3688
+ resources: {
3689
+ en: Xr,
3690
+ es: Zr
3691
+ }
3692
+ });
3693
+ //#endregion
3694
+ //#region src/delivery/i18n.ts
3695
+ var { translator: Xi } = {
3696
+ translator: {
3697
+ ...$,
3698
+ t: (e, t) => {
3699
+ let { lng: n } = t;
3700
+ switch (n) {
3701
+ case "en_US":
3702
+ case "en-US":
3703
+ t.lng = "en";
3704
+ break;
3705
+ case "es_ES":
3706
+ case "es-ES":
3707
+ case "es_MX":
3708
+ case "es-MX":
3709
+ t.lng = "es";
3710
+ break;
3711
+ default: break;
3712
+ }
3713
+ return $.t(e, {
3714
+ lng: n,
3715
+ ...t
3716
+ });
3717
+ }
3718
+ },
3719
+ languageOptions: [{
3720
+ value: "en_US",
3721
+ label: "English (US)"
3722
+ }, {
3723
+ value: "es_ES",
3724
+ label: "Spanish"
3725
+ }]
3726
+ };
3727
+ function Zi(e, t, n = {}) {
3728
+ return Xi.t(`translation:mcPopulatedBlank:${e}`, {
3729
+ lng: t,
3730
+ ...n,
3731
+ interpolation: { escapeValue: !1 }
3732
+ });
3733
+ }
3734
+ //#endregion
3735
+ //#region src/print/Print.svelte
3736
+ var Qi = /* @__PURE__ */ sr("<div class=\"mpb-print-block mpb-print-prose mpb-print-teacher-instructions svelte-1fx5wwa\"></div>"), $i = /* @__PURE__ */ sr("<div class=\"mpb-print-block mpb-print-prose svelte-1fx5wwa\"></div>"), ea = /* @__PURE__ */ sr("<div class=\"mpb-print-sentence mpb-print-prose svelte-1fx5wwa\"></div>"), ta = /* @__PURE__ */ sr("<img class=\"mpb-print-choice-image svelte-1fx5wwa\"/>"), na = /* @__PURE__ */ sr("<div class=\"mpb-print-block mpb-print-prose svelte-1fx5wwa\"><!> <span class=\"mpb-print-blank svelte-1fx5wwa\"><!></span> <!></div>"), ra = /* @__PURE__ */ sr("<div><strong> </strong> </div>"), ia = /* @__PURE__ */ sr("<div class=\"mpb-print-block mpb-print-small svelte-1fx5wwa\"><!> <!></div>"), aa = /* @__PURE__ */ sr("<span class=\"mpb-print-key svelte-1fx5wwa\"> </span>"), oa = /* @__PURE__ */ sr("<li><!> <!></li>"), sa = /* @__PURE__ */ sr("<div class=\"mpb-print svelte-1fx5wwa\"><!> <!> <!> <!> <!> <ul class=\"mpb-print-choices mpb-print-small svelte-1fx5wwa\"></ul></div>"), ca = {
3737
+ hash: "svelte-1fx5wwa",
3738
+ code: ".mpb-print.svelte-1fx5wwa {padding:1rem;}.mpb-print-block.svelte-1fx5wwa {margin-bottom:1rem;}.mpb-print-sentence.svelte-1fx5wwa {margin-bottom:0.5rem;}.mpb-print-prose.svelte-1fx5wwa {font-size:0.875rem;line-height:1.7142857;}.mpb-print-prose.svelte-1fx5wwa p {margin:0.5em 0;}.mpb-print-prose.svelte-1fx5wwa strong {font-weight:600;}.mpb-print-small.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;}.mpb-print-blank.svelte-1fx5wwa {display:inline-block;min-width:6rem;padding:0 0.25rem;border-bottom:2px solid var(--pie-text, #4b5563);}.mpb-print-choice-image.svelte-1fx5wwa {max-height:3.5rem;object-fit:contain;vertical-align:middle;}.mpb-print-choices.svelte-1fx5wwa {margin:0;padding-left:1.25rem;list-style:disc;}.mpb-print-key.svelte-1fx5wwa {font-weight:500;}\n\n @media print {.mpb-print.svelte-1fx5wwa {padding:0;}.mpb-print-blank.svelte-1fx5wwa {border-bottom-color:#000;}\n }"
3739
+ };
3740
+ function la(e, t) {
3741
+ Ve(t, !0), Fr(e, ca);
3742
+ let n = Ur(t, "model", 7, null), r = Ur(t, "options", 7, null), i = (e) => Zi(e, n()?.language || n()?.locale || void 0), a = /* @__PURE__ */ lt(() => n()?.promptEnabled === !1 ? "" : n()?.prompt || ""), o = /* @__PURE__ */ lt(() => n()?.template || ""), s = /* @__PURE__ */ lt(() => {
3743
+ let e = q(o).indexOf("{{blank}}");
3744
+ return e < 0 ? {
3745
+ before: q(o),
3746
+ after: ""
3747
+ } : {
3748
+ before: q(o).slice(0, e),
3749
+ after: q(o).slice(e + 9)
3750
+ };
3751
+ }), c = /* @__PURE__ */ lt(() => Array.isArray(n()?.choices) ? n().choices : []), l = /* @__PURE__ */ lt(() => q(c).find((e) => e?.id === n()?.correctChoiceId)), u = /* @__PURE__ */ lt(() => n()?.choiceMode || "text"), d = /* @__PURE__ */ lt(() => n()?.interactionMode === "audio_mc_only"), f = /* @__PURE__ */ lt(() => r()?.role === "instructor"), p = /* @__PURE__ */ lt(() => q(f) && n()?.printAnswerKey !== !1), m = /* @__PURE__ */ lt(() => q(f) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || "");
3752
+ var h = {
3753
+ get model() {
3754
+ return n();
3755
+ },
3756
+ set model(e = null) {
3757
+ n(e), Et();
3758
+ },
3759
+ get options() {
3760
+ return r();
3761
+ },
3762
+ set options(e = null) {
3763
+ r(e), Et();
3764
+ }
3765
+ }, g = sa(), _ = Qt(g), v = (e) => {
3766
+ var t = Qi();
3767
+ Pr(t, () => q(m), !0), O(t), Y(e, t);
3768
+ };
3769
+ X(_, (e) => {
3770
+ q(m) && e(v);
3771
+ });
3772
+ var y = I(_, 2), b = (e) => {
3773
+ var t = $i();
3774
+ Pr(t, () => q(a), !0), O(t), Y(e, t);
3775
+ };
3776
+ X(y, (e) => {
3777
+ q(a) && e(b);
3778
+ });
3779
+ var x = I(y, 2), S = (e) => {
3780
+ var t = ea();
3781
+ Pr(t, () => n().sentenceHtml, !0), O(t), Y(e, t);
3782
+ };
3783
+ X(x, (e) => {
3784
+ n()?.sentenceHtml && e(S);
3785
+ });
3786
+ var ee = I(x, 2), te = (e) => {
3787
+ var t = na(), n = Qt(t);
3788
+ Pr(n, () => q(s).before);
3789
+ var r = I(n, 2), i = Qt(r), a = (e) => {
3790
+ var t = ta();
3791
+ vn(() => {
3792
+ zr(t, "src", q(l).imageUrl), zr(t, "alt", q(l).imageAlt || "");
3793
+ }), Y(e, t);
3794
+ }, o = (e) => {
3795
+ var t = lr();
3796
+ Pr($t(t), () => q(l).labelHtml), Y(e, t);
3797
+ }, c = (e) => {
3798
+ Y(e, cr("________"));
3799
+ };
3800
+ X(i, (e) => {
3801
+ q(p) && q(u) === "image" && q(l)?.imageUrl ? e(a) : q(p) && q(l)?.labelHtml ? e(o, 1) : e(c, -1);
3802
+ }), O(r), Pr(I(r, 2), () => q(s).after), O(t), Y(e, t);
3803
+ };
3804
+ X(ee, (e) => {
3805
+ q(d) || e(te);
3806
+ });
3807
+ var C = I(ee, 2), w = (e) => {
3808
+ var t = ia(), r = Qt(t), a = (e) => {
3809
+ var t = ra(), r = Qt(t), a = en(r, !0), o = I(r);
3810
+ O(t), vn((e) => {
3811
+ gr(a, e), gr(o, ` ${n().audioUrl ?? ""}`);
3812
+ }, [() => i("printAudio")]), Y(e, t);
3813
+ };
3814
+ X(r, (e) => {
3815
+ n()?.audioUrl && e(a);
3816
+ });
3817
+ var o = I(r, 2), s = (e) => {
3818
+ var t = ra(), r = Qt(t), a = en(r, !0), o = I(r);
3819
+ O(t), vn((e) => {
3820
+ gr(a, e), gr(o, ` ${n().audioTranscript ?? ""}`);
3821
+ }, [() => i("printTranscript")]), Y(e, t);
3822
+ };
3823
+ X(o, (e) => {
3824
+ n()?.audioTranscript && e(s);
3825
+ }), O(t), Y(e, t);
3826
+ };
3827
+ X(C, (e) => {
3828
+ n()?.hasAudio && e(w);
3829
+ });
3830
+ var ne = I(C, 2);
3831
+ return Or(ne, 21, () => q(c), wr, (e, t) => {
3832
+ var r = oa(), a = Qt(r), o = (e) => {
3833
+ var n = lr(), r = $t(n), i = (e) => {
3834
+ var n = ta();
3835
+ vn(() => {
3836
+ zr(n, "src", q(t).imageUrl), zr(n, "alt", q(t).imageAlt || "");
3837
+ }), Y(e, n);
3838
+ };
3839
+ X(r, (e) => {
3840
+ q(t).imageUrl && e(i);
3841
+ }), Y(e, n);
3842
+ }, s = (e) => {
3843
+ var n = lr();
3844
+ Pr($t(n), () => q(t).labelHtml || ""), Y(e, n);
3845
+ };
3846
+ X(a, (e) => {
3847
+ q(u) === "image" ? e(o) : e(s, -1);
3848
+ });
3849
+ var c = I(a, 2), l = (e) => {
3850
+ var t = aa(), n = en(t, !0);
3851
+ vn((e) => gr(n, e), [() => i("printKey")]), Y(e, t);
3852
+ };
3853
+ X(c, (e) => {
3854
+ q(p) && q(t).id === n()?.correctChoiceId && e(l);
3855
+ }), O(r), Y(e, r);
3856
+ }), O(ne), O(g), Y(e, g), He(h);
3857
+ }
3858
+ Yr(la, {
3859
+ model: { type: "Object" },
3860
+ options: { type: "Object" }
3861
+ }, [], []);
3862
+ //#endregion
3863
+ //#region src/print/index.ts
3864
+ var ua = la.element, da = class extends ua {
3865
+ _model = null;
3866
+ _options = null;
3867
+ set model(e) {
3868
+ this._model = e, super.model = e;
3869
+ }
3870
+ get model() {
3871
+ return this._model;
3872
+ }
3873
+ set options(e) {
3874
+ this._options = e, super.options = e;
3875
+ }
3876
+ get options() {
3877
+ return this._options;
3878
+ }
3879
+ };
3880
+ //#endregion
3881
+ export { da as default };
3882
+
3883
+ //# sourceMappingURL=print.js.map