@pie-element/simple-cloze 0.1.4-next.15 → 0.1.4-next.17

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 (34) hide show
  1. package/dist/author/index.js +346 -315
  2. package/dist/author/index.js.map +1 -1
  3. package/dist/browser/author/index.js +2586 -2563
  4. package/dist/browser/author/index.js.map +1 -1
  5. package/dist/browser/{client-C4zbv8nl.js → client-e4ZTphpa.js} +727 -712
  6. package/dist/browser/client-e4ZTphpa.js.map +1 -0
  7. package/dist/browser/delivery/index.js +2 -2
  8. package/dist/browser/delivery/index.js.map +1 -1
  9. package/dist/browser/editor-runtime/author/index.js +1 -1
  10. package/dist/browser/editor-runtime/author/index.js.map +1 -1
  11. package/dist/browser/editor-runtime/{client-C4zbv8nl.js → client-e4ZTphpa.js} +727 -712
  12. package/dist/browser/editor-runtime/client-e4ZTphpa.js.map +1 -0
  13. package/dist/browser/editor-runtime/delivery/index.js +2 -2
  14. package/dist/browser/editor-runtime/delivery/index.js.map +1 -1
  15. package/dist/browser/editor-runtime/{i18n-gsOjC7sf.js → i18n-C7YV9VIN.js} +291 -217
  16. package/dist/browser/editor-runtime/i18n-C7YV9VIN.js.map +1 -0
  17. package/dist/browser/editor-runtime/print/index.js +2 -2
  18. package/dist/browser/editor-runtime/print/index.js.map +1 -1
  19. package/dist/browser/{i18n-gsOjC7sf.js → i18n-C7YV9VIN.js} +291 -217
  20. package/dist/browser/i18n-C7YV9VIN.js.map +1 -0
  21. package/dist/browser/print/index.js +2 -2
  22. package/dist/browser/print/index.js.map +1 -1
  23. package/dist/delivery/index.js +282 -199
  24. package/dist/delivery/index.js.map +1 -1
  25. package/dist/index.iife.js +4 -4
  26. package/dist/print/index.js +280 -197
  27. package/dist/print/index.js.map +1 -1
  28. package/module/print.js +847 -758
  29. package/module/print.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/browser/client-C4zbv8nl.js.map +0 -1
  32. package/dist/browser/editor-runtime/client-C4zbv8nl.js.map +0 -1
  33. package/dist/browser/editor-runtime/i18n-gsOjC7sf.js.map +0 -1
  34. package/dist/browser/i18n-gsOjC7sf.js.map +0 -1
package/module/print.js CHANGED
@@ -1,7 +1,7 @@
1
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
1
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
2
2
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
3
  //#endregion
4
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
4
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
5
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, ee = () => {};
6
6
  function _(e) {
7
7
  for (var t = 0; t < e.length; t++) e[t]();
@@ -16,46 +16,46 @@ function v() {
16
16
  reject: t
17
17
  };
18
18
  }
19
- var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, se = 65536, ce = 1 << 21, le = 1 << 22, ue = 1 << 23, de = Symbol("$state"), fe = Symbol("component"), pe = Symbol("legacy props"), me = Symbol(""), he = Symbol("attributes"), ge = Symbol("class"), _e = Symbol("style"), ve = Symbol("text"), ye = new class extends Error {
19
+ var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, 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
20
  name = "StaleReactionError";
21
21
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
22
- }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
- function xe() {
22
+ }(), ye = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ function be() {
24
24
  console.warn("https://svelte.dev/e/derived_inert");
25
25
  }
26
- function Se(e) {
26
+ function xe(e) {
27
27
  console.warn("https://svelte.dev/e/hydration_mismatch");
28
28
  }
29
- function Ce() {
29
+ function Se() {
30
30
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
31
31
  }
32
32
  //#endregion
33
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
33
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
34
34
  var C = !1;
35
- function we(e) {
35
+ function Ce(e) {
36
36
  C = e;
37
37
  }
38
38
  var w;
39
39
  function T(t) {
40
- if (t === null) throw Se(), e;
40
+ if (t === null) throw xe(), e;
41
41
  return w = t;
42
42
  }
43
- function Te() {
43
+ function we() {
44
44
  return T(/* @__PURE__ */ F(w));
45
45
  }
46
- function Ee(t) {
46
+ function Te(t) {
47
47
  if (C) {
48
- if (/* @__PURE__ */ F(w) !== null) throw Se(), e;
48
+ if (/* @__PURE__ */ F(w) !== null) throw xe(), e;
49
49
  w = t;
50
50
  }
51
51
  }
52
- function De(e = 1) {
52
+ function Ee(e = 1) {
53
53
  if (C) {
54
54
  for (var t = e, n = w; t--;) n = /* @__PURE__ */ F(n);
55
55
  w = n;
56
56
  }
57
57
  }
58
- function Oe(e = !0) {
58
+ function De(e = !0) {
59
59
  for (var t = 0, n = w;;) {
60
60
  if (n.nodeType === 8) {
61
61
  var r = n.data;
@@ -68,63 +68,63 @@ function Oe(e = !0) {
68
68
  e && n.remove(), n = i;
69
69
  }
70
70
  }
71
- function ke(t) {
72
- if (!t || t.nodeType !== 8) throw Se(), e;
71
+ function Oe(t) {
72
+ if (!t || t.nodeType !== 8) throw xe(), e;
73
73
  return t.data;
74
74
  }
75
75
  //#endregion
76
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
77
- function Ae(e) {
76
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
77
+ function ke(e) {
78
78
  return e === this.v;
79
79
  }
80
- function je(e, t) {
80
+ function Ae(e, t) {
81
81
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
82
82
  }
83
- function Me(e) {
84
- return !je(e, this.v);
83
+ function je(e) {
84
+ return !Ae(e, this.v);
85
85
  }
86
86
  //#endregion
87
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
88
- function Ne() {
87
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
88
+ function Me() {
89
89
  throw Error("https://svelte.dev/e/async_derived_orphan");
90
90
  }
91
- function Pe(e) {
91
+ function Ne(e) {
92
92
  throw Error("https://svelte.dev/e/effect_in_teardown");
93
93
  }
94
- function Fe() {
94
+ function Pe() {
95
95
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
96
96
  }
97
- function Ie(e) {
97
+ function Fe(e) {
98
98
  throw Error("https://svelte.dev/e/effect_orphan");
99
99
  }
100
- function Le() {
100
+ function Ie() {
101
101
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
102
102
  }
103
- function Re() {
103
+ function Le() {
104
104
  throw Error("https://svelte.dev/e/hydration_failed");
105
105
  }
106
- function ze(e) {
106
+ function Re(e) {
107
107
  throw Error("https://svelte.dev/e/props_invalid_value");
108
108
  }
109
- function Be() {
109
+ function ze() {
110
110
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
111
111
  }
112
- function Ve() {
112
+ function Be() {
113
113
  throw Error("https://svelte.dev/e/state_prototype_fixed");
114
114
  }
115
- function He() {
115
+ function Ve() {
116
116
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
117
117
  }
118
- function Ue() {
118
+ function He() {
119
119
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
120
120
  }
121
121
  //#endregion
122
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
122
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
123
123
  var E = null;
124
- function We(e) {
124
+ function Ue(e) {
125
125
  E = e;
126
126
  }
127
- function Ge(e, t = !1, n) {
127
+ function We(e, t = !1, n) {
128
128
  E = {
129
129
  p: E,
130
130
  i: !1,
@@ -136,70 +136,56 @@ function Ge(e, t = !1, n) {
136
136
  l: null
137
137
  };
138
138
  }
139
- function Ke(e) {
139
+ function Ge(e) {
140
140
  var t = E, n = t.e;
141
141
  if (n !== null) {
142
142
  t.e = null;
143
- for (var r of n) mn(r);
143
+ for (var r of n) fn(r);
144
144
  }
145
- return e !== void 0 && (t.x = e), t.i = !0, E = t.p, qe(e);
145
+ return e !== void 0 && (t.x = e), t.i = !0, E = t.p, Ke(e);
146
146
  }
147
- function qe(e = {}) {
148
- return u(e, fe, { value: !0 }), e;
147
+ function Ke(e = {}) {
148
+ return u(e, de, { value: !0 }), e;
149
149
  }
150
- function Je() {
150
+ function qe() {
151
151
  return !0;
152
152
  }
153
153
  //#endregion
154
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
155
- var Ye = [];
156
- function Xe() {
157
- var e = Ye;
158
- Ye = [], _(e);
159
- }
160
- function Ze(e) {
161
- if (Ye.length === 0 && !Ct) {
162
- var t = Ye;
154
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
155
+ var Je = [];
156
+ function Ye() {
157
+ var e = Je;
158
+ Je = [], _(e);
159
+ }
160
+ function Xe(e) {
161
+ if (Je.length === 0 && !yt) {
162
+ var t = Je;
163
163
  queueMicrotask(() => {
164
- t === Ye && Xe();
164
+ t === Je && Ye();
165
165
  });
166
166
  }
167
- Ye.push(e);
167
+ Je.push(e);
168
168
  }
169
- function Qe() {
170
- for (; Ye.length > 0;) Xe();
169
+ function Ze() {
170
+ for (; Je.length > 0;) Ye();
171
171
  }
172
172
  //#endregion
173
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
174
- var $e = ~(b | te | y);
173
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
174
+ var Qe = ~(b | te | y);
175
175
  function D(e, t) {
176
- e.f = e.f & $e | t;
176
+ e.f = e.f & Qe | t;
177
177
  }
178
- function et(e) {
178
+ function $e(e) {
179
179
  e.f & 512 || e.deps === null ? D(e, y) : D(e, te);
180
180
  }
181
181
  //#endregion
182
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
183
- function tt(e) {
184
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= se, tt(t.deps));
185
- }
186
- function nt(e, t, n) {
187
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), tt(e.deps), D(e, y);
182
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
183
+ function et(e, t, n) {
184
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), D(e, y);
188
185
  }
189
186
  //#endregion
190
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
191
- var rt = !1;
192
- function it(e) {
193
- var t = rt;
194
- try {
195
- return rt = !1, [e(), rt];
196
- } finally {
197
- rt = t;
198
- }
199
- }
200
- //#endregion
201
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
202
- function at(e) {
187
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
188
+ function tt(e) {
203
189
  var t = V, n = W;
204
190
  U(null), G(null);
205
191
  try {
@@ -209,15 +195,15 @@ function at(e) {
209
195
  }
210
196
  }
211
197
  //#endregion
212
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
213
- function ot(e, t, n, r) {
214
- let i = Je() ? ut : mt;
198
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
199
+ function nt(e, t, n, r) {
200
+ let i = qe() ? ot : ut;
215
201
  var a = e.filter((e) => !e.settled), o = t.map(i);
216
202
  if (n.length === 0 && a.length === 0) {
217
203
  r(o);
218
204
  return;
219
205
  }
220
- var s = W, c = st(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
206
+ var s = W, c = rt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
221
207
  function u(e) {
222
208
  if (!(s.f & 16384)) {
223
209
  c();
@@ -226,44 +212,44 @@ function ot(e, t, n, r) {
226
212
  } catch (e) {
227
213
  I(e, s);
228
214
  }
229
- ct();
215
+ it();
230
216
  }
231
217
  }
232
- var d = lt();
218
+ var d = at();
233
219
  if (n.length === 0) {
234
220
  l.then(() => u([])).finally(d);
235
221
  return;
236
222
  }
237
223
  function f() {
238
- Promise.all(n.map((e) => /* @__PURE__ */ ft(e))).then(u).catch((e) => I(e, s)).finally(d);
224
+ Promise.all(n.map((e) => /* @__PURE__ */ ct(e))).then(u).catch((e) => I(e, s)).finally(d);
239
225
  }
240
226
  l ? l.then(() => {
241
- c(), f(), ct();
227
+ c(), f(), it();
242
228
  }) : f();
243
229
  }
244
- function st() {
230
+ function rt() {
245
231
  var e = W, t = V, n = E, r = O;
246
232
  return function(i = !0) {
247
- G(e), U(t), We(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
233
+ G(e), U(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
248
234
  };
249
235
  }
250
- function ct(e = !0) {
251
- G(null), U(null), We(null), e && O?.deactivate();
236
+ function it(e = !0) {
237
+ G(null), U(null), Ue(null), e && O?.deactivate();
252
238
  }
253
- function lt() {
239
+ function at() {
254
240
  var e = W, t = e.b, n = O, r = !!t?.is_rendered();
255
241
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
256
242
  t?.update_pending_count(-1, n), n.decrement(r, e);
257
243
  };
258
244
  }
259
245
  /*#__NO_SIDE_EFFECTS__*/
260
- function ut(e) {
246
+ function ot(e) {
261
247
  var n = 2 | b;
262
248
  return W !== null && (W.f |= ae), {
263
249
  ctx: E,
264
250
  deps: null,
265
251
  effects: null,
266
- equals: Ae,
252
+ equals: ke,
267
253
  f: n,
268
254
  fn: e,
269
255
  reactions: null,
@@ -274,35 +260,35 @@ function ut(e) {
274
260
  ac: null
275
261
  };
276
262
  }
277
- var dt = Symbol("obsolete");
263
+ var st = Symbol("obsolete");
278
264
  /*#__NO_SIDE_EFFECTS__*/
279
- function ft(e, n, r) {
265
+ function ct(e, n, r) {
280
266
  let i = W;
281
- i === null && Ne();
282
- var a = void 0, o = Bt(t), s = !V, c = /* @__PURE__ */ new Set();
283
- return vn(() => {
267
+ i === null && Me();
268
+ var a = void 0, o = It(t), s = !V, c = /* @__PURE__ */ new Set();
269
+ return gn(() => {
284
270
  var t = W, n = v();
285
271
  a = n.promise;
286
272
  try {
287
273
  Promise.resolve(e()).then(n.resolve, (e) => {
288
- e !== ye && n.reject(e);
289
- }).finally(ct);
274
+ e !== ve && n.reject(e);
275
+ }).finally(it);
290
276
  } catch (e) {
291
- n.reject(e), ct();
277
+ n.reject(e), it();
292
278
  }
293
279
  var r = O;
294
280
  if (s) {
295
- if (t.f & 32768) var l = lt();
296
- if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(dt);
297
- else for (let e of c.values()) e.reject(dt);
281
+ if (t.f & 32768) var l = at();
282
+ if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(st);
283
+ else for (let e of c.values()) e.reject(st);
298
284
  c.add(n), r.async_deriveds.set(t, n);
299
285
  }
300
286
  let u = (e, t = void 0) => {
301
- l?.(), c.delete(n), t !== dt && (r.activate(), t ? (o.f |= ue, Ht(o, t)) : (o.f & 8388608 && (o.f ^= ue), Ht(o, e)), r.deactivate());
287
+ l?.(), c.delete(n), t !== st && (r.activate(), t ? (o.f |= le, Bt(o, t)) : (o.f & 8388608 && (o.f ^= le), Bt(o, e)), r.deactivate());
302
288
  };
303
289
  n.promise.then(u, (e) => u(null, e || "unknown"));
304
- }), fn(() => {
305
- for (let e of c) e.reject(dt);
290
+ }), un(() => {
291
+ for (let e of c) e.reject(st);
306
292
  }), new Promise((e) => {
307
293
  function t(n) {
308
294
  function r() {
@@ -314,53 +300,53 @@ function ft(e, n, r) {
314
300
  });
315
301
  }
316
302
  /*#__NO_SIDE_EFFECTS__*/
317
- function pt(e) {
318
- let t = /* @__PURE__ */ ut(e);
319
- return Fn(t), t;
303
+ function lt(e) {
304
+ let t = /* @__PURE__ */ ot(e);
305
+ return Nn(t), t;
320
306
  }
321
307
  /*#__NO_SIDE_EFFECTS__*/
322
- function mt(e) {
323
- let t = /* @__PURE__ */ ut(e);
324
- return t.equals = Me, t;
308
+ function ut(e) {
309
+ let t = /* @__PURE__ */ ot(e);
310
+ return t.equals = je, t;
325
311
  }
326
- function ht(e) {
312
+ function dt(e) {
327
313
  var t = e.effects;
328
314
  if (t !== null) {
329
315
  e.effects = null;
330
316
  for (var n = 0; n < t.length; n += 1) z(t[n]);
331
317
  }
332
318
  }
333
- function gt(e) {
319
+ function ft(e) {
334
320
  var n, r = W, i = e.parent;
335
- if (!B && i !== null && e.v !== t && i.f & 24576) return xe(), e.v;
321
+ if (!B && i !== null && e.v !== t && i.f & 24576) return be(), e.v;
336
322
  G(i);
337
323
  try {
338
- e.f &= ~se, ht(e), n = Wn(e);
324
+ dt(e), n = Hn(e);
339
325
  } finally {
340
326
  G(r);
341
327
  }
342
328
  return n;
343
329
  }
344
- function _t(e) {
345
- var t = gt(e);
346
- if (!e.equals(t) && (e.wv = Vn(), (!O?.is_fork || e.deps === null) && (O === null ? e.v = t : (O.capture(e, t, !0), xt?.capture(e, t, !0)), e.deps === null))) {
330
+ function pt(e) {
331
+ var t = ft(e);
332
+ if (!e.equals(t) && (e.wv = zn(), (!O?.is_fork || e.deps === null) && (O === null ? e.v = t : (O.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
347
333
  D(e, y);
348
334
  return;
349
335
  }
350
- B || (k === null ? et(e) : (dn() || O?.is_fork) && k.set(e, t));
336
+ B || (k === null ? $e(e) : (ln() || O?.is_fork) && k.set(e, t));
351
337
  }
352
- function vt(e) {
353
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && at(() => {
354
- t.ac.abort(ye), t.ac = null;
355
- }), t.fn !== null && (t.teardown = ee), qn(t, 0), Cn(t));
338
+ function mt(e) {
339
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
340
+ t.ac.abort(ve), t.ac = null;
341
+ }), t.fn !== null && (t.teardown = ee), Gn(t, 0), xn(t));
356
342
  }
357
- function yt(e) {
358
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Jn(t);
343
+ function ht(e) {
344
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Kn(t);
359
345
  }
360
346
  //#endregion
361
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
362
- var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt = null, Et = null, Dt = 0, Ot = 1, kt = class e {
363
- id = Ot++;
347
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
348
+ var gt = null, O = null, _t = null, k = null, vt = null, yt = !1, bt = !1, xt = null, St = null, Ct = 0, wt = 1, Tt = class e {
349
+ id = wt++;
364
350
  #e = !1;
365
351
  linked = !0;
366
352
  #t = null;
@@ -382,7 +368,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
382
368
  is_fork = !1;
383
369
  #m = !1;
384
370
  constructor() {
385
- bt === null ? bt = this : (bt.#n = this, this.#t = bt), bt = this;
371
+ gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
386
372
  }
387
373
  #h() {
388
374
  if (this.is_fork) return !0;
@@ -414,48 +400,67 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
414
400
  this.#p.add(e);
415
401
  }
416
402
  #g() {
417
- this.#e = !0, Dt++ > 1e3 && (this.#x(), jt());
403
+ var e = [];
404
+ for (let i of this.#c) if (!(i.f & 16384 || !(i.f & 6144))) {
405
+ for (var t = i, n = !1; t.parent !== null;) {
406
+ t = t.parent;
407
+ var r = t.f;
408
+ if (r & 96) {
409
+ if (!(r & 1024)) {
410
+ n = !0;
411
+ break;
412
+ }
413
+ t.f ^= y;
414
+ }
415
+ }
416
+ n || e.push(t);
417
+ }
418
+ return this.#c = [], e;
419
+ }
420
+ #_() {
421
+ this.#e = !0;
418
422
  for (let e of this.#u) this.#d.delete(e), D(e, b), this.schedule(e);
419
423
  for (let e of this.#d) D(e, te), this.schedule(e);
420
- let t = this.#c;
421
- this.#c = [], this.apply();
422
- var n = Tt = [], r = [], i = Et = [];
423
- for (let e of t) try {
424
- this.#_(e, n, r);
425
- } catch (t) {
426
- throw Lt(e), this.#h() || this.discard(), t;
424
+ this.apply();
425
+ for (var t = xt = [], n = [], r = St = []; this.#c.length > 0;) {
426
+ Ct++ > 1e3 && (this.#S(), Dt());
427
+ for (let e of this.#g()) try {
428
+ this.#v(e, t, n);
429
+ } catch (t) {
430
+ throw Nt(e), this.#h() || this.discard(), t;
431
+ }
427
432
  }
428
- if (O = null, i.length > 0) {
429
- var a = e.ensure();
430
- for (let e of i) a.schedule(e);
433
+ if (O = null, r.length > 0) {
434
+ var i = e.ensure();
435
+ for (let e of r) i.schedule(e);
431
436
  }
432
- if (Tt = null, Et = null, this.#h()) {
433
- this.#b(r), this.#b(n);
434
- for (let [e, t] of this.#f) It(e, t);
435
- i.length > 0 && O.#g();
437
+ if (xt = null, St = null, this.#h()) {
438
+ this.#x(n), this.#x(t);
439
+ for (let [e, t] of this.#f) Mt(e, t);
440
+ r.length > 0 && O.#_();
436
441
  return;
437
442
  }
438
- let o = this.#v();
439
- if (o) {
440
- this.#b(r), this.#b(n), o.#y(this);
443
+ let a = this.#y();
444
+ if (a) {
445
+ this.#x(n), this.#x(t), a.#b(this);
441
446
  return;
442
447
  }
443
448
  this.#u.clear(), this.#d.clear();
444
449
  for (let e of this.#r) e(this);
445
- this.#r.clear(), xt = this, Mt(r), Mt(n), xt = null, this.#s?.resolve();
446
- var s = O;
447
- if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) if (s !== null) {
448
- let e = s;
449
- e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
450
- } else s = this;
451
- s !== null && (j.clear(), s.#g());
452
- }
453
- #_(e, t, n) {
450
+ this.#r.clear(), _t = this, Ot(n), Ot(t), _t = null, this.#s?.resolve();
451
+ var o = O;
452
+ if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
453
+ for (let e of this.#c) o.#c.push(e);
454
+ this.#c = [];
455
+ } else o = this;
456
+ o !== null && (j.clear(), o.#_());
457
+ }
458
+ #v(e, t, n) {
454
459
  e.f ^= y;
455
460
  for (var r = e.first; r !== null;) {
456
461
  var i = r.f, a = (i & 96) != 0;
457
462
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
458
- a ? r.f ^= y : i & 4 ? t.push(r) : Hn(r) && (i & 16 && this.#d.add(r), Jn(r));
463
+ a ? r.f ^= y : i & 4 ? t.push(r) : Bn(r) && (i & 16 && this.#d.add(r), Kn(r));
459
464
  var o = r.first;
460
465
  if (o !== null) {
461
466
  r = o;
@@ -472,7 +477,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
472
477
  }
473
478
  }
474
479
  }
475
- #v() {
480
+ #y() {
476
481
  for (var e = this.#t; e !== null;) {
477
482
  if (!e.is_fork) {
478
483
  for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
@@ -481,7 +486,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
481
486
  }
482
487
  return null;
483
488
  }
484
- #y(e) {
489
+ #b(e) {
485
490
  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);
486
491
  for (let [t, n] of e.async_deriveds) {
487
492
  let e = this.async_deriveds.get(t);
@@ -500,10 +505,10 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
500
505
  }
501
506
  };
502
507
  for (let e of this.current.keys()) t(e);
503
- this.oncommit(() => e.discard()), e.#x(), O = this, this.#g();
508
+ this.oncommit(() => e.discard()), e.#S(), O = this, this.#_();
504
509
  }
505
- #b(e) {
506
- for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
510
+ #x(e) {
511
+ for (var t = 0; t < e.length; t += 1) et(e[t], this.#u, this.#d);
507
512
  }
508
513
  capture(e, n, r = !1) {
509
514
  e.v !== t && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [n, r]), k?.set(e, n)), this.is_fork || (e.v = n);
@@ -516,16 +521,16 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
516
521
  }
517
522
  flush() {
518
523
  try {
519
- wt = !0, O = this, this.#g();
524
+ bt = !0, O = this, this.#_();
520
525
  } finally {
521
- Dt = 0, St = null, Tt = null, Et = null, wt = !1, O = null, k = null, j.clear();
526
+ Ct = 0, vt = null, xt = null, St = null, bt = !1, O = null, k = null, j.clear();
522
527
  }
523
528
  }
524
529
  discard() {
525
530
  for (let e of this.#i) e(this);
526
531
  this.#i.clear();
527
- for (let e of this.async_deriveds.values()) e.reject(dt);
528
- this.#x(), this.#s?.resolve();
532
+ for (let e of this.async_deriveds.values()) e.reject(st);
533
+ this.#S(), this.#s?.resolve();
529
534
  }
530
535
  register_created_effect(e) {
531
536
  this.#l.push(e);
@@ -541,7 +546,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
541
546
  let e = this.#o.get(t) ?? 0;
542
547
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
543
548
  }
544
- this.#m || (this.#m = !0, Ze(() => {
549
+ this.#m || (this.#m = !0, Xe(() => {
545
550
  this.#m = !1, this.linked && this.flush();
546
551
  }));
547
552
  }
@@ -562,7 +567,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
562
567
  static ensure() {
563
568
  if (O === null) {
564
569
  let t = O = new e();
565
- !wt && !Ct && Ze(() => {
570
+ !bt && !yt && Xe(() => {
566
571
  t.#e || t.flush();
567
572
  });
568
573
  }
@@ -572,55 +577,46 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
572
577
  k = null;
573
578
  }
574
579
  schedule(e) {
575
- if (St = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
580
+ if (vt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
576
581
  e.b.defer_effect(e);
577
582
  return;
578
583
  }
579
- for (var t = e; t.parent !== null;) {
580
- t = t.parent;
581
- var n = t.f;
582
- if (Tt !== null && t === W && (V === null || !(V.f & 2))) return;
583
- if (n & 96) {
584
- if (!(n & 1024)) return;
585
- t.f ^= y;
586
- }
587
- }
588
- this.#c.push(t);
584
+ this.#c.push(e);
589
585
  }
590
- #x() {
586
+ #S() {
591
587
  if (this.linked) {
592
588
  var e = this.#t, t = this.#n;
593
- e === null || (e.#n = t), t === null ? bt = e : t.#t = e, this.linked = !1;
589
+ e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
594
590
  }
595
591
  }
596
592
  };
597
- function At(e) {
598
- var t = Ct;
599
- Ct = !0;
593
+ function Et(e) {
594
+ var t = yt;
595
+ yt = !0;
600
596
  try {
601
597
  var n;
602
598
  for (e && (O !== null && !O.is_fork && O.flush(), n = e());;) {
603
- if (Qe(), O === null) return n;
599
+ if (Ze(), O === null) return n;
604
600
  O.flush();
605
601
  }
606
602
  } finally {
607
- Ct = t;
603
+ yt = t;
608
604
  }
609
605
  }
610
- function jt() {
606
+ function Dt() {
611
607
  try {
612
- Le();
608
+ Ie();
613
609
  } catch (e) {
614
- I(e, St);
610
+ I(e, vt);
615
611
  }
616
612
  }
617
613
  var A = null;
618
- function Mt(e) {
614
+ function Ot(e) {
619
615
  var t = e.length;
620
616
  if (t !== 0) {
621
617
  for (var n = 0; n < t;) {
622
618
  var r = e[n++];
623
- if (!(r.f & 24576) && Hn(r) && (A = /* @__PURE__ */ new Set(), Jn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && En(r), A?.size > 0)) {
619
+ if (!(r.f & 24576) && Bn(r) && (A = /* @__PURE__ */ new Set(), Kn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), A?.size > 0)) {
624
620
  j.clear();
625
621
  for (let e of A) {
626
622
  if (e.f & 24576) continue;
@@ -628,7 +624,7 @@ function Mt(e) {
628
624
  for (; n !== null;) A.has(n) && (A.delete(n), t.push(n)), n = n.parent;
629
625
  for (let e = t.length - 1; e >= 0; e--) {
630
626
  let n = t[e];
631
- n.f & 24576 || Jn(n);
627
+ n.f & 24576 || Kn(n);
632
628
  }
633
629
  }
634
630
  A.clear();
@@ -637,120 +633,128 @@ function Mt(e) {
637
633
  A = null;
638
634
  }
639
635
  }
640
- function Nt(e, t, n, r) {
636
+ function kt(e, t, n, r) {
641
637
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
642
638
  let e = i.f;
643
- e & 2 ? Nt(i, t, n, r) : e & 4194320 && !(e & 2048) && Pt(i, t, r) && (D(i, b), Ft(i));
639
+ e & 2 ? kt(i, t, n, r) : e & 4194320 && !(e & 2048) && At(i, t, r) && (D(i, b), jt(i));
644
640
  }
645
641
  }
646
- function Pt(e, t, n) {
642
+ function At(e, t, n) {
647
643
  let r = n.get(e);
648
644
  if (r !== void 0) return r;
649
645
  if (e.deps !== null) for (let r of e.deps) {
650
646
  if (s.call(t, r)) return !0;
651
- if (r.f & 2 && Pt(r, t, n)) return n.set(r, !0), !0;
647
+ if (r.f & 2 && At(r, t, n)) return n.set(r, !0), !0;
652
648
  }
653
649
  return n.set(e, !1), !1;
654
650
  }
655
- function Ft(e) {
651
+ function jt(e) {
656
652
  O.schedule(e);
657
653
  }
658
- function It(e, t) {
654
+ function Mt(e, t) {
659
655
  if (!(e.f & 32 && e.f & 1024)) {
660
656
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, y);
661
- for (var n = e.first; n !== null;) It(n, t), n = n.next;
657
+ for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
662
658
  }
663
659
  }
664
- function Lt(e) {
660
+ function Nt(e) {
665
661
  D(e, y);
666
- for (var t = e.first; t !== null;) Lt(t), t = t.next;
662
+ for (var t = e.first; t !== null;) Nt(t), t = t.next;
667
663
  }
668
664
  //#endregion
669
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
670
- var Rt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), zt = !1;
671
- function Bt(e, t) {
665
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
666
+ var Pt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), Ft = !1;
667
+ function It(e, t) {
672
668
  return {
673
669
  f: 0,
674
670
  v: e,
675
671
  reactions: null,
676
- equals: Ae,
672
+ equals: ke,
677
673
  rv: 0,
678
674
  wv: 0
679
675
  };
680
676
  }
681
677
  /*#__NO_SIDE_EFFECTS__*/
682
678
  function M(e, t) {
683
- let n = Bt(e, t);
684
- return Fn(n), n;
679
+ let n = It(e, t);
680
+ return Nn(n), n;
685
681
  }
686
682
  /*#__NO_SIDE_EFFECTS__*/
687
- function Vt(e, t = !1, n = !0) {
688
- let r = Bt(e);
689
- return t || (r.equals = Me), r;
683
+ function Lt(e, t = !1, n = !0) {
684
+ let r = It(e);
685
+ return t || (r.equals = je), r;
690
686
  }
691
687
  function N(e, t, n = !1) {
692
- return V !== null && (!H || V.f & 131072) && Je() && V.f & 4325394 && (K === null || !K.has(e)) && He(), Ht(e, n ? Kt(t) : t, Et);
688
+ return V !== null && (!H || V.f & 131072) && qe() && V.f & 4325394 && (K === null || !K.has(e)) && Ve(), Bt(e, n ? Wt(t) : t, St);
693
689
  }
694
- function Ht(e, t, n = null) {
690
+ var Rt = null, zt = 0;
691
+ function Bt(e, t, n = null) {
695
692
  if (!e.equals(t)) {
696
693
  B ? j.set(e, t) : j.has(e) || j.set(e, e.v);
697
- var r = kt.ensure();
694
+ var r = Tt.ensure();
698
695
  if (r.capture(e, t), e.f & 2) {
699
696
  let t = e;
700
- e.f & 2048 && gt(t), k === null && et(t);
697
+ e.f & 2048 && ft(t), k === null && $e(t);
701
698
  }
702
- e.wv = Vn(), Gt(e, b, n), Je() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? In([e]) : Y.push(e)), !r.is_fork && Rt.size > 0 && !zt && Ut();
699
+ e.wv = zn(), Rt = null, zt = 0, Ut(e, b, n), Rt = null, qe() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? Pn([e]) : Y.push(e)), !r.is_fork && Pt.size > 0 && !Ft && Vt();
703
700
  }
704
701
  return t;
705
702
  }
706
- function Ut() {
707
- zt = !1;
708
- for (let e of Rt) {
703
+ function Vt() {
704
+ Ft = !1;
705
+ for (let e of Pt) {
709
706
  e.f & 1024 && D(e, te);
710
707
  let t;
711
708
  try {
712
- t = Hn(e);
709
+ t = Bn(e);
713
710
  } catch {
714
711
  t = !0;
715
712
  }
716
- t && Jn(e);
713
+ t && Kn(e);
717
714
  }
718
- Rt.clear();
715
+ Pt.clear();
719
716
  }
720
- function Wt(e) {
717
+ function Ht(e) {
721
718
  N(e, e.v + 1);
722
719
  }
723
- function Gt(e, t, n) {
720
+ function Ut(e, t, n) {
724
721
  var r = e.reactions;
725
- if (r !== null) for (var i = Je(), a = r.length, o = 0; o < a; o++) {
726
- var s = r[o], c = s.f;
727
- if (!(!i && s === W)) {
728
- var l = (c & b) === 0;
729
- if (l && D(s, t), c & 131072) Rt.add(s);
730
- else if (c & 2) {
731
- var u = s;
732
- k?.delete(u), c & 65536 || (c & 512 && (W === null || !(W.f & 2097152)) && (s.f |= se), Gt(u, te, n));
733
- } else if (l) {
734
- var d = s;
735
- c & 16 && A !== null && A.add(d), n === null ? Ft(d) : n.push(d);
722
+ if (r !== null) {
723
+ var i = qe(), a = r.length;
724
+ if (zt += a, zt > 1e5 && Rt === null && (Rt = /* @__PURE__ */ new Set()), Rt !== null) {
725
+ if (Rt.has(e)) return;
726
+ Rt.add(e);
727
+ }
728
+ for (var o = 0; o < a; o++) {
729
+ var s = r[o], c = s.f;
730
+ if (!(!i && s === W)) {
731
+ var l = (c & b) === 0;
732
+ if (l && D(s, t), c & 131072) Pt.add(s);
733
+ else if (c & 2) {
734
+ var u = s;
735
+ k?.delete(u), Ut(u, te, n);
736
+ } else if (l) {
737
+ var d = s;
738
+ c & 16 && A !== null && A.add(d), n === null ? jt(d) : n.push(d);
739
+ }
736
740
  }
737
741
  }
738
742
  }
739
743
  }
740
- function Kt(e) {
741
- if (typeof e != "object" || !e || de in e || fe in e) return e;
744
+ function Wt(e) {
745
+ if (typeof e != "object" || !e || ue in e || de in e) return e;
742
746
  let n = h(e);
743
747
  if (n !== p && n !== m) return e;
744
- var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c = zn, l = (e) => {
745
- if (zn === c) return e();
746
- var t = V, n = zn;
747
- U(null), Bn(c);
748
+ var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c = Ln, l = (e) => {
749
+ if (Ln === c) return e();
750
+ var t = V, n = Ln;
751
+ U(null), Rn(c);
748
752
  var r = e();
749
- return U(t), Bn(n), r;
753
+ return U(t), Rn(n), r;
750
754
  };
751
755
  return i && r.set("length", /* @__PURE__ */ M(e.length, s)), new Proxy(e, {
752
756
  defineProperty(e, t, n) {
753
- (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && Be();
757
+ (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && ze();
754
758
  var i = r.get(t);
755
759
  return i === void 0 ? l(() => {
756
760
  var e = /* @__PURE__ */ M(n.value, s);
@@ -762,40 +766,40 @@ function Kt(e) {
762
766
  if (i === void 0) {
763
767
  if (n in e) {
764
768
  let e = l(() => /* @__PURE__ */ M(t, s));
765
- r.set(n, e), Wt(o);
769
+ r.set(n, e), Ht(o);
766
770
  }
767
- } else N(i, t), Wt(o);
771
+ } else N(i, t), Ht(o);
768
772
  return !0;
769
773
  },
770
774
  get(n, i, a) {
771
- if (i === de) return e;
775
+ if (i === ue) return e;
772
776
  var o = r.get(i), c = i in n;
773
- if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Kt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
777
+ if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Wt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
774
778
  var u = X(o);
775
779
  return u === t ? void 0 : u;
776
780
  }
777
781
  return Reflect.get(n, i, a);
778
782
  },
779
783
  getOwnPropertyDescriptor(e, n) {
780
- var i = Reflect.getOwnPropertyDescriptor(e, n);
781
- if (i && "value" in i) {
782
- var a = r.get(n);
783
- a && (i.value = X(a));
784
- } else if (i === void 0) {
785
- var o = r.get(n), s = o?.v;
786
- if (o !== void 0 && s !== t) return {
784
+ this.has?.(e, n);
785
+ var i = Reflect.getOwnPropertyDescriptor(e, n), a = r.get(n);
786
+ if (a !== void 0) {
787
+ var o = X(a);
788
+ if (o === t) return;
789
+ if (i && "value" in i) i.value = o;
790
+ else return {
787
791
  enumerable: !0,
788
792
  configurable: !0,
789
- value: s,
793
+ value: o,
790
794
  writable: !0
791
795
  };
792
796
  }
793
797
  return i;
794
798
  },
795
799
  has(e, n) {
796
- if (n === de) return !0;
800
+ if (n === ue) return !0;
797
801
  var i = r.get(n), a = i !== void 0 && i.v !== t || Reflect.has(e, n);
798
- return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Kt(e[n]) : t, s)), r.set(n, i)), X(i) === t) ? !1 : a;
802
+ return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Wt(e[n]) : t, s)), r.set(n, i)), X(i) === t) ? !1 : a;
799
803
  },
800
804
  set(e, n, a, c) {
801
805
  var u = r.get(n), f = n in e;
@@ -803,10 +807,10 @@ function Kt(e) {
803
807
  var m = r.get(p + "");
804
808
  m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ M(t, s)), r.set(p + "", m)) : N(m, t);
805
809
  }
806
- if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u, Kt(a)), r.set(n, u));
810
+ if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u, Wt(a)), r.set(n, u));
807
811
  else {
808
812
  f = u.v !== t;
809
- var h = l(() => Kt(a));
813
+ var h = l(() => Wt(a));
810
814
  N(u, h);
811
815
  }
812
816
  var g = Reflect.getOwnPropertyDescriptor(e, n);
@@ -815,7 +819,7 @@ function Kt(e) {
815
819
  var ee = r.get("length"), _ = Number(n);
816
820
  Number.isInteger(_) && _ >= ee.v && N(ee, _ + 1);
817
821
  }
818
- Wt(o);
822
+ Ht(o);
819
823
  }
820
824
  return !0;
821
825
  },
@@ -829,88 +833,88 @@ function Kt(e) {
829
833
  return n;
830
834
  },
831
835
  setPrototypeOf() {
832
- Ve();
836
+ Be();
833
837
  }
834
838
  });
835
839
  }
836
- var qt, Jt, Yt, Xt;
837
- function Zt() {
838
- if (qt === void 0) {
839
- qt = window, Jt = /Firefox/.test(navigator.userAgent);
840
+ var Gt, Kt, qt, Jt;
841
+ function Yt() {
842
+ if (Gt === void 0) {
843
+ Gt = window, Kt = /Firefox/.test(navigator.userAgent);
840
844
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
841
- Yt = d(t, "firstChild").get, Xt = d(t, "nextSibling").get, g(e) && (e[ge] = void 0, e[he] = null, e[_e] = void 0, e.__e = void 0), g(n) && (n[ve] = void 0);
845
+ qt = d(t, "firstChild").get, Jt = 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);
842
846
  }
843
847
  }
844
- function Qt(e = "") {
848
+ function Xt(e = "") {
845
849
  return document.createTextNode(e);
846
850
  }
847
851
  /*@__NO_SIDE_EFFECTS__*/
848
852
  function P(e) {
849
- return Yt.call(e);
853
+ return qt.call(e);
850
854
  }
851
855
  /*@__NO_SIDE_EFFECTS__*/
852
856
  function F(e) {
853
- return Xt.call(e);
857
+ return Jt.call(e);
854
858
  }
855
- function $t(e, t) {
859
+ function Zt(e, t) {
856
860
  if (!C) return /* @__PURE__ */ P(e);
857
861
  var n = /* @__PURE__ */ P(w);
858
- if (n === null) n = w.appendChild(Qt());
862
+ if (n === null) n = w.appendChild(Xt());
859
863
  else if (t && n.nodeType !== 3) {
860
- var r = Qt();
864
+ var r = Xt();
861
865
  return n?.before(r), T(r), r;
862
866
  }
863
- return t && sn(n), T(n), n;
867
+ return t && an(n), T(n), n;
864
868
  }
865
- function en(e, t = !1) {
869
+ function Qt(e, t = !1) {
866
870
  if (!C) {
867
871
  var n = /* @__PURE__ */ P(e);
868
872
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ F(n) : n;
869
873
  }
870
874
  if (t) {
871
875
  if (w?.nodeType !== 3) {
872
- var r = Qt();
876
+ var r = Xt();
873
877
  return w?.before(r), T(r), r;
874
878
  }
875
- sn(w);
879
+ an(w);
876
880
  }
877
881
  return w;
878
882
  }
879
- function tn(e, t = !1) {
883
+ function $t(e, t = !1) {
880
884
  if (!C) return /* @__PURE__ */ P(e);
881
- var n = $t(e, t);
882
- return Ee(e), n;
885
+ var n = Zt(e, t);
886
+ return Te(e), n;
883
887
  }
884
- function nn(e, t = 1, n = !1) {
888
+ function en(e, t = 1, n = !1) {
885
889
  let r = C ? w : e;
886
890
  for (var i; t--;) i = r, r = /* @__PURE__ */ F(r);
887
891
  if (!C) return r;
888
892
  if (n) {
889
893
  if (r?.nodeType !== 3) {
890
- var a = Qt();
894
+ var a = Xt();
891
895
  return r === null ? i?.after(a) : r.before(a), T(a), a;
892
896
  }
893
- sn(r);
897
+ an(r);
894
898
  }
895
899
  return T(r), r;
896
900
  }
897
- function rn(e) {
901
+ function tn(e) {
898
902
  e.textContent = "";
899
903
  }
900
- function an() {
904
+ function nn() {
901
905
  return !1;
902
906
  }
903
- function on(e, t, n) {
907
+ function rn(e, t, n) {
904
908
  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);
905
909
  }
906
- function sn(e) {
910
+ function an(e) {
907
911
  if (e.nodeValue.length < 65536) return;
908
912
  let t = e.nextSibling;
909
913
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
910
914
  }
911
- function cn(e) {
915
+ function on(e) {
912
916
  var t = W;
913
- if (t === null) return V.f |= ue, e;
917
+ if (t === null) return V.f |= le, e;
914
918
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
915
919
  I(e, t);
916
920
  }
@@ -932,11 +936,11 @@ function I(e, t) {
932
936
  }
933
937
  }
934
938
  //#endregion
935
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
936
- function ln(e) {
937
- W === null && (V === null && Ie(e), Fe()), B && Pe(e);
939
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
940
+ function sn(e) {
941
+ W === null && (V === null && Fe(e), Pe()), B && Ne(e);
938
942
  }
939
- function un(e, t) {
943
+ function cn(e, t) {
940
944
  var n = t.last;
941
945
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
942
946
  }
@@ -961,103 +965,103 @@ function L(e, t) {
961
965
  };
962
966
  O?.register_created_effect(r);
963
967
  var i = r;
964
- if (e & 4) Tt === null ? kt.ensure().schedule(r) : Tt.push(r);
968
+ if (e & 4) xt === null ? Tt.ensure().schedule(r) : xt.push(r);
965
969
  else if (t !== null) {
966
970
  try {
967
- Jn(r);
971
+ Kn(r);
968
972
  } catch (e) {
969
973
  throw z(r), e;
970
974
  }
971
975
  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 |= ie));
972
976
  }
973
- if (i !== null && (i.parent = n, n !== null && un(i, n), V !== null && V.f & 2 && !(e & 64))) {
977
+ if (i !== null && (i.parent = n, n !== null && cn(i, n), V !== null && V.f & 2 && !(e & 64))) {
974
978
  var a = V;
975
979
  (a.effects ??= []).push(i);
976
980
  }
977
981
  return r;
978
982
  }
979
- function dn() {
983
+ function ln() {
980
984
  return V !== null && !H;
981
985
  }
982
- function fn(e) {
986
+ function un(e) {
983
987
  let t = L(8, null);
984
988
  return D(t, y), t.teardown = e, t;
985
989
  }
986
- function pn(e) {
987
- ln("$effect");
990
+ function dn(e) {
991
+ sn("$effect");
988
992
  var t = W.f;
989
993
  if (!V && t & 32 && E !== null && !E.i) {
990
994
  var n = E;
991
995
  (n.e ??= []).push(e);
992
- } else return mn(e);
996
+ } else return fn(e);
993
997
  }
994
- function mn(e) {
998
+ function fn(e) {
995
999
  return L(4 | oe, e);
996
1000
  }
997
- function hn(e) {
998
- kt.ensure();
1001
+ function pn(e) {
1002
+ Tt.ensure();
999
1003
  let t = L(64 | ae, e);
1000
1004
  return () => {
1001
1005
  z(t);
1002
1006
  };
1003
1007
  }
1004
- function gn(e) {
1005
- kt.ensure();
1008
+ function mn(e) {
1009
+ Tt.ensure();
1006
1010
  let t = L(64 | ae, e);
1007
1011
  return (e = {}) => new Promise((n) => {
1008
- e.outro ? Dn(t, () => {
1012
+ e.outro ? Tn(t, () => {
1009
1013
  z(t), n(void 0);
1010
1014
  }) : (z(t), n(void 0));
1011
1015
  });
1012
1016
  }
1013
- function _n(e) {
1017
+ function hn(e) {
1014
1018
  return L(4, e);
1015
1019
  }
1016
- function vn(e) {
1017
- return L(le | ae, e);
1020
+ function gn(e) {
1021
+ return L(ce | ae, e);
1018
1022
  }
1019
- function yn(e, t = 0) {
1023
+ function _n(e, t = 0) {
1020
1024
  return L(8 | t, e);
1021
1025
  }
1022
- function bn(e, t = [], n = [], r = []) {
1023
- ot(r, t, n, (t) => {
1026
+ function vn(e, t = [], n = [], r = []) {
1027
+ nt(r, t, n, (t) => {
1024
1028
  L(8, () => {
1025
1029
  e(...t.map(X));
1026
1030
  });
1027
1031
  });
1028
1032
  }
1029
- function xn(e, t = 0) {
1033
+ function yn(e, t = 0) {
1030
1034
  return L(16 | t, e);
1031
1035
  }
1032
1036
  function R(e) {
1033
1037
  return L(32 | ae, e);
1034
1038
  }
1035
- function Sn(e) {
1039
+ function bn(e) {
1036
1040
  var t = e.teardown;
1037
1041
  if (t !== null) {
1038
1042
  let n = B, r = V;
1039
- Pn(!0), U(null);
1043
+ Mn(!0), U(null);
1040
1044
  try {
1041
1045
  t.call(null);
1042
1046
  } catch (t) {
1043
1047
  I(t, e.parent);
1044
1048
  } finally {
1045
- Pn(n), U(r);
1049
+ Mn(n), U(r);
1046
1050
  }
1047
1051
  }
1048
1052
  }
1049
- function Cn(e, t = !1) {
1053
+ function xn(e, t = !1) {
1050
1054
  var n = e.first;
1051
1055
  for (e.first = e.last = null; n !== null;) {
1052
1056
  let e = n.ac;
1053
- e !== null && at(() => {
1054
- e.abort(ye);
1057
+ e !== null && tt(() => {
1058
+ e.abort(ve);
1055
1059
  });
1056
1060
  var r = n.next;
1057
1061
  n.f & 64 ? n.parent = null : z(n, t), n = r;
1058
1062
  }
1059
1063
  }
1060
- function wn(e) {
1064
+ function Sn(e) {
1061
1065
  for (var t = e.first; t !== null;) {
1062
1066
  var n = t.next;
1063
1067
  t.f & 32 || z(t), t = n;
@@ -1065,26 +1069,26 @@ function wn(e) {
1065
1069
  }
1066
1070
  function z(e, t = !0) {
1067
1071
  var n = !1;
1068
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Tn(e.nodes.start, e.nodes.end), n = !0), e.f |= S, Cn(e, t && !n), qn(e, 0);
1072
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= S, xn(e, t && !n), Gn(e, 0);
1069
1073
  var r = e.nodes && e.nodes.t;
1070
1074
  if (r !== null) for (let e of r) e.stop();
1071
- Sn(e), e.f ^= S, e.f |= re;
1075
+ bn(e), e.f ^= S, e.f |= re;
1072
1076
  var i = e.parent;
1073
- i !== null && i.first !== null && En(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1077
+ 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;
1074
1078
  }
1075
- function Tn(e, t) {
1079
+ function Cn(e, t) {
1076
1080
  for (; e !== null;) {
1077
1081
  var n = e === t ? null : /* @__PURE__ */ F(e);
1078
1082
  e.remove(), e = n;
1079
1083
  }
1080
1084
  }
1081
- function En(e) {
1085
+ function wn(e) {
1082
1086
  var t = e.parent, n = e.prev, r = e.next;
1083
1087
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1084
1088
  }
1085
- function Dn(e, t, n = !0) {
1089
+ function Tn(e, t, n = !0) {
1086
1090
  var r = [];
1087
- e.f |= 256, On(e, r, !0);
1091
+ e.f |= 256, En(e, r, !0);
1088
1092
  var i = () => {
1089
1093
  n && z(e), t && t();
1090
1094
  }, a = r.length;
@@ -1093,7 +1097,7 @@ function Dn(e, t, n = !0) {
1093
1097
  for (var s of r) s.out(o);
1094
1098
  } else i();
1095
1099
  }
1096
- function On(e, t, n) {
1100
+ function En(e, t, n) {
1097
1101
  if (!(e.f & 8192)) {
1098
1102
  e.f ^= ne;
1099
1103
  var r = e.nodes && e.nodes.t;
@@ -1102,36 +1106,36 @@ function On(e, t, n) {
1102
1106
  var a = i.next;
1103
1107
  if (!(i.f & 64)) {
1104
1108
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1105
- On(i, t, o ? n : !1);
1109
+ En(i, t, o ? n : !1);
1106
1110
  }
1107
1111
  i = a;
1108
1112
  }
1109
1113
  }
1110
1114
  }
1111
- function kn(e) {
1112
- e.f &= -257, An(e, !0);
1115
+ function Dn(e) {
1116
+ e.f &= -257, On(e, !0);
1113
1117
  }
1114
- function An(e, t) {
1118
+ function On(e, t) {
1115
1119
  if (!(e.f & 256) && e.f & 8192) {
1116
- e.f ^= ne, e.f & 1024 || (D(e, b), kt.ensure().schedule(e));
1120
+ e.f ^= ne, e.f & 1024 || (D(e, b), Tt.ensure().schedule(e));
1117
1121
  for (var n = e.first; n !== null;) {
1118
1122
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1119
- An(n, i ? t : !1), n = r;
1123
+ On(n, i ? t : !1), n = r;
1120
1124
  }
1121
1125
  var a = e.nodes && e.nodes.t;
1122
1126
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1123
1127
  }
1124
1128
  }
1125
- function jn(e, t) {
1129
+ function kn(e, t) {
1126
1130
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1127
1131
  var i = n === r ? null : /* @__PURE__ */ F(n);
1128
1132
  t.append(n), n = i;
1129
1133
  }
1130
1134
  }
1131
1135
  //#endregion
1132
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1133
- var Mn = null, Nn = !1, B = !1;
1134
- function Pn(e) {
1136
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
1137
+ var An = null, jn = !1, B = !1;
1138
+ function Mn(e) {
1135
1139
  B = e;
1136
1140
  }
1137
1141
  var V = null, H = !1;
@@ -1143,73 +1147,73 @@ function G(e) {
1143
1147
  W = e;
1144
1148
  }
1145
1149
  var K = null;
1146
- function Fn(e) {
1147
- V !== null && (K ??= /* @__PURE__ */ new Set()).add(e);
1150
+ function Nn(e) {
1151
+ V !== null && (V.f & 2097152 || V.f & 2) && (K ??= /* @__PURE__ */ new Set()).add(e);
1148
1152
  }
1149
1153
  var q = null, J = 0, Y = null;
1150
- function In(e) {
1154
+ function Pn(e) {
1151
1155
  Y = e;
1152
1156
  }
1153
- var Ln = 1, Rn = 0, zn = Rn;
1154
- function Bn(e) {
1155
- zn = e;
1157
+ var Fn = 1, In = 0, Ln = In;
1158
+ function Rn(e) {
1159
+ Ln = e;
1156
1160
  }
1157
- function Vn() {
1158
- return ++Ln;
1161
+ function zn() {
1162
+ return ++Fn;
1159
1163
  }
1160
- function Hn(e) {
1164
+ function Bn(e) {
1161
1165
  var t = e.f;
1162
1166
  if (t & 2048) return !0;
1163
- if (t & 2 && (e.f &= ~se), t & 4096) {
1167
+ if (t & 4096) {
1164
1168
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1165
1169
  var a = n[i];
1166
- if (Hn(a) && _t(a), a.wv > e.wv) return !0;
1170
+ if (Bn(a) && pt(a), a.wv > e.wv) return !0;
1167
1171
  }
1168
1172
  t & 512 && k === null && D(e, y);
1169
1173
  }
1170
1174
  return !1;
1171
1175
  }
1172
- function Un(e, t, n = !0) {
1176
+ function Vn(e, t, n = !0) {
1173
1177
  var r = e.reactions;
1174
1178
  if (r !== null && !(K !== null && K.has(e))) for (var i = 0; i < r.length; i++) {
1175
1179
  var a = r[i];
1176
- a.f & 2 ? Un(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), Ft(a));
1180
+ a.f & 2 ? Vn(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), jt(a));
1177
1181
  }
1178
1182
  }
1179
- function Wn(e) {
1180
- var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c = zn, l = e.f;
1181
- q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, We(e.ctx), H = !1, zn = ++Rn, e.ac !== null && (at(() => {
1182
- e.ac.abort(ye);
1183
+ function Hn(e) {
1184
+ var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c = Ln, l = e.f;
1185
+ q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, Ue(e.ctx), H = !1, Ln = ++In, e.ac !== null && (tt(() => {
1186
+ e.ac.abort(ve);
1183
1187
  }), e.ac = null);
1184
1188
  try {
1185
- e.f |= ce;
1189
+ e.f |= se;
1186
1190
  var u = e.fn, d = u();
1187
1191
  e.f |= x;
1188
- var f = Gn(e);
1189
- if (Je() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Un(Y[p], e);
1192
+ var f = Un(e);
1193
+ if (qe() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Vn(Y[p], e);
1190
1194
  if (i !== null && i !== e) {
1191
- if (Rn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Rn;
1192
- if (t !== null) for (let e of t) e.rv = Rn;
1195
+ if (In++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = In;
1196
+ if (t !== null) for (let e of t) e.rv = In;
1193
1197
  Y !== null && (r === null ? r = Y : r.push(...Y));
1194
1198
  }
1195
- return e.f & 8388608 && (e.f ^= ue), d;
1199
+ return e.f & 8388608 && (e.f ^= le), d;
1196
1200
  } catch (t) {
1197
- return Gn(e), cn(t);
1201
+ return Un(e), on(t);
1198
1202
  } finally {
1199
- e.f ^= ce, q = t, J = n, Y = r, V = i, K = a, We(o), H = s, zn = c;
1203
+ e.f ^= se, q = t, J = n, Y = r, V = i, K = a, Ue(o), H = s, Ln = c;
1200
1204
  }
1201
1205
  }
1202
- function Gn(e) {
1206
+ function Un(e) {
1203
1207
  var t = e.deps, n = O?.is_fork;
1204
1208
  if (q !== null) {
1205
1209
  var r;
1206
- if (n || qn(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[r];
1210
+ if (n || Gn(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[r];
1207
1211
  else e.deps = t = q;
1208
- if (dn() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
1209
- } else !n && t !== null && J < t.length && (qn(e, J), t.length = J);
1212
+ if (ln() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
1213
+ } else !n && t !== null && J < t.length && (Gn(e, J), t.length = J);
1210
1214
  return t;
1211
1215
  }
1212
- function Kn(e, n) {
1216
+ function Wn(e, n) {
1213
1217
  let r = n.reactions;
1214
1218
  if (r !== null) {
1215
1219
  var i = o.call(r, e);
@@ -1220,35 +1224,35 @@ function Kn(e, n) {
1220
1224
  }
1221
1225
  if (r === null && n.f & 2 && (q === null || !s.call(q, n))) {
1222
1226
  var c = n;
1223
- c.f & 512 && (c.f ^= 512, c.f &= ~se), c.v !== t && et(c), c.ac !== null && at(() => {
1224
- c.ac.abort(ye), c.ac = null, D(c, b);
1225
- }), vt(c), qn(c, 0);
1227
+ c.f & 512 && (c.f ^= 512), c.v !== t && $e(c), c.ac !== null && tt(() => {
1228
+ c.ac.abort(ve), c.ac = null, D(c, b);
1229
+ }), mt(c), Gn(c, 0);
1226
1230
  }
1227
1231
  }
1228
- function qn(e, t) {
1232
+ function Gn(e, t) {
1229
1233
  var n = e.deps;
1230
- if (n !== null) for (var r = t; r < n.length; r++) Kn(e, n[r]);
1234
+ if (n !== null) for (var r = t; r < n.length; r++) Wn(e, n[r]);
1231
1235
  }
1232
- function Jn(e) {
1236
+ function Kn(e) {
1233
1237
  var t = e.f;
1234
1238
  if (!(t & 16384)) {
1235
1239
  D(e, y);
1236
- var n = W, r = Nn;
1237
- W = e, Nn = (t & 96) == 0;
1240
+ var n = W, r = jn;
1241
+ W = e, jn = (t & 96) == 0;
1238
1242
  try {
1239
- t & 16777232 ? wn(e) : Cn(e), Sn(e);
1240
- var i = Wn(e);
1241
- e.teardown = typeof i == "function" ? i : null, e.wv = Ln;
1243
+ t & 16777232 ? Sn(e) : xn(e), bn(e);
1244
+ var i = Hn(e);
1245
+ e.teardown = typeof i == "function" ? i : null, e.wv = Fn;
1242
1246
  } finally {
1243
- Nn = r, W = n;
1247
+ jn = r, W = n;
1244
1248
  }
1245
1249
  }
1246
1250
  }
1247
1251
  function X(e) {
1248
1252
  var t = (e.f & 2) != 0;
1249
- if (Mn?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1253
+ if (An?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1250
1254
  var n = V.deps;
1251
- if (V.f & 2097152) e.rv < Rn && (e.rv = Rn, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
1255
+ if (V.f & 2097152) e.rv < In && (e.rv = In, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
1252
1256
  else {
1253
1257
  V.deps ??= [], s.call(V.deps, e) || V.deps.push(e);
1254
1258
  var r = e.reactions;
@@ -1260,25 +1264,25 @@ function X(e) {
1260
1264
  var i = e;
1261
1265
  if (B) {
1262
1266
  var a = i.v;
1263
- return (!(i.f & 1024) && i.reactions !== null || Xn(i)) && (a = gt(i)), j.set(i, a), a;
1267
+ return (!(i.f & 1024) && i.reactions !== null || Jn(i)) && (a = ft(i)), j.set(i, a), a;
1264
1268
  }
1265
- var o = (i.f & 512) == 0 && !H && V !== null && (Nn || (V.f & 512) != 0), c = (i.f & x) === 0;
1266
- Hn(i) && (o && (i.f |= 512), _t(i)), o && !c && (yt(i), Yn(i));
1269
+ var o = (i.f & 512) == 0 && !H && V !== null && (jn || (V.f & 512) != 0), c = (i.f & x) === 0;
1270
+ Bn(i) && (o && (i.f |= 512), pt(i)), o && !c && (ht(i), qn(i));
1267
1271
  }
1268
1272
  if (k?.has(e)) return k.get(e);
1269
1273
  if (e.f & 8388608) throw e.v;
1270
1274
  return e.v;
1271
1275
  }
1272
- function Yn(e) {
1273
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (yt(t), Yn(t));
1276
+ function qn(e) {
1277
+ 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), qn(t));
1274
1278
  }
1275
- function Xn(e) {
1279
+ function Jn(e) {
1276
1280
  if (e.v === t) return !0;
1277
1281
  if (e.deps === null) return !1;
1278
- for (let t of e.deps) if (j.has(t) || t.f & 2 && Xn(t)) return !0;
1282
+ for (let t of e.deps) if (j.has(t) || t.f & 2 && Jn(t)) return !0;
1279
1283
  return !1;
1280
1284
  }
1281
- function Zn(e) {
1285
+ function Yn(e) {
1282
1286
  var t = H;
1283
1287
  try {
1284
1288
  return H = !0, e();
@@ -1287,18 +1291,18 @@ function Zn(e) {
1287
1291
  }
1288
1292
  }
1289
1293
  //#endregion
1290
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1291
- var Qn = Symbol("events"), $n = /* @__PURE__ */ new Set(), er = /* @__PURE__ */ new Set(), tr = null, nr = !1;
1292
- function rr(e) {
1294
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
1295
+ var Xn = Symbol("events"), Zn = /* @__PURE__ */ new Set(), Qn = /* @__PURE__ */ new Set(), $n = null, er = !1;
1296
+ function tr(e) {
1293
1297
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1294
- tr = e, nr || (nr = !0, setTimeout(() => {
1295
- nr = !1, tr = null;
1298
+ $n = e, er || (er = !0, setTimeout(() => {
1299
+ er = !1, $n = null;
1296
1300
  }));
1297
- var o = 0, s = tr === e && e[Qn];
1301
+ var o = 0, s = $n === e && e[Xn];
1298
1302
  if (s) {
1299
1303
  var c = i.indexOf(s);
1300
1304
  if (c !== -1 && (t === document || t === window)) {
1301
- e[Qn] = t;
1305
+ e[Xn] = t;
1302
1306
  return;
1303
1307
  }
1304
1308
  var l = i.indexOf(t);
@@ -1317,7 +1321,7 @@ function rr(e) {
1317
1321
  try {
1318
1322
  for (var p, m = []; a !== null && a !== t;) {
1319
1323
  try {
1320
- var h = a[Qn]?.[r];
1324
+ var h = a[Xn]?.[r];
1321
1325
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1322
1326
  } catch (e) {
1323
1327
  p ? m.push(e) : p = e;
@@ -1332,23 +1336,23 @@ function rr(e) {
1332
1336
  throw p;
1333
1337
  }
1334
1338
  } finally {
1335
- e[Qn] = t, delete e.currentTarget, U(d), G(f);
1339
+ e[Xn] = t, delete e.currentTarget, U(d), G(f);
1336
1340
  }
1337
1341
  }
1338
1342
  }
1339
1343
  //#endregion
1340
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1341
- var ir = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1342
- function ar(e) {
1343
- return ir?.createHTML(e) ?? e;
1344
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
1345
+ var nr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1346
+ function rr(e) {
1347
+ return nr?.createHTML(e) ?? e;
1344
1348
  }
1345
- function or(e) {
1346
- var t = on("template");
1347
- return t.innerHTML = ar(e.replaceAll("<!>", "<!---->")), t.content;
1349
+ function ir(e) {
1350
+ var t = rn("template");
1351
+ return t.innerHTML = rr(e.replaceAll("<!>", "<!---->")), t.content;
1348
1352
  }
1349
1353
  //#endregion
1350
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1351
- function sr(e, t) {
1354
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
1355
+ function ar(e, t) {
1352
1356
  var n = W;
1353
1357
  n.nodes === null && (n.nodes = {
1354
1358
  start: e,
@@ -1358,51 +1362,51 @@ function sr(e, t) {
1358
1362
  });
1359
1363
  }
1360
1364
  /*#__NO_SIDE_EFFECTS__*/
1361
- function cr(e, t) {
1365
+ function or(e, t) {
1362
1366
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1363
1367
  return () => {
1364
- if (C) return sr(w, null), w;
1365
- i === void 0 && (i = or(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1366
- var t = r || Jt ? document.importNode(i, !0) : i.cloneNode(!0);
1368
+ if (C) return ar(w, null), w;
1369
+ i === void 0 && (i = ir(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1370
+ var t = r || Kt ? document.importNode(i, !0) : i.cloneNode(!0);
1367
1371
  if (n) {
1368
1372
  var o = /* @__PURE__ */ P(t), s = t.lastChild;
1369
- sr(o, s);
1370
- } else sr(t, t);
1373
+ ar(o, s);
1374
+ } else ar(t, t);
1371
1375
  return t;
1372
1376
  };
1373
1377
  }
1374
- function lr(e, t) {
1378
+ function sr(e, t) {
1375
1379
  if (C) {
1376
1380
  var n = W;
1377
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), Te();
1381
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), we();
1378
1382
  return;
1379
1383
  }
1380
1384
  e !== null && e.before(t);
1381
1385
  }
1382
1386
  [.../* @__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(".")];
1383
- var ur = ["touchstart", "touchmove"];
1384
- function dr(e) {
1385
- return ur.includes(e);
1387
+ var cr = ["touchstart", "touchmove"];
1388
+ function lr(e) {
1389
+ return cr.includes(e);
1386
1390
  }
1387
1391
  //#endregion
1388
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1389
- function fr(e) {
1390
- let t = 0, n = Bt(0), r;
1392
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
1393
+ function ur(e) {
1394
+ let t = 0, n = It(0), r;
1391
1395
  return () => {
1392
- dn() && (X(n), yn(() => (t === 0 && (r = Zn(() => e(() => Wt(n)))), t += 1, () => {
1393
- Ze(() => {
1394
- --t, t === 0 && (r?.(), r = void 0, Wt(n));
1396
+ ln() && (X(n), _n(() => (t === 0 && (r = Yn(() => e(() => Ht(n)))), t += 1, () => {
1397
+ Xe(() => {
1398
+ --t, t === 0 && (r?.(), r = void 0, Ht(n));
1395
1399
  });
1396
1400
  })));
1397
1401
  };
1398
1402
  }
1399
1403
  //#endregion
1400
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1401
- var pr = ie | ae;
1402
- function mr(e, t, n, r) {
1403
- new hr(e, t, n, r);
1404
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1405
+ var dr = ie | ae;
1406
+ function fr(e, t, n, r) {
1407
+ new pr(e, t, n, r);
1404
1408
  }
1405
- var hr = class {
1409
+ var pr = class {
1406
1410
  parent;
1407
1411
  is_pending = !1;
1408
1412
  transform_error;
@@ -1421,24 +1425,24 @@ var hr = class {
1421
1425
  #f = /* @__PURE__ */ new Set();
1422
1426
  #p = /* @__PURE__ */ new Set();
1423
1427
  #m = null;
1424
- #h = fr(() => (this.#m = Bt(this.#l), () => {
1428
+ #h = ur(() => (this.#m = It(this.#l), () => {
1425
1429
  this.#m = null;
1426
1430
  }));
1427
1431
  constructor(e, t, n, r) {
1428
1432
  this.#e = e, this.#n = t, this.#r = (e) => {
1429
1433
  var t = W;
1430
1434
  t.b = this, t.f |= 128, n(e);
1431
- }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = xn(() => {
1435
+ }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
1432
1436
  if (C) {
1433
1437
  let e = this.#t;
1434
- Te();
1438
+ we();
1435
1439
  let t = e.data === "[!";
1436
1440
  if (e.data.startsWith("[?")) {
1437
1441
  let t = JSON.parse(e.data.slice(2));
1438
1442
  this.#_(t);
1439
1443
  } else t ? this.#y() : this.#g();
1440
1444
  } else this.#b();
1441
- }, pr), C && (this.#e = w);
1445
+ }, dr), C && (this.#e = w);
1442
1446
  }
1443
1447
  #g() {
1444
1448
  try {
@@ -1449,7 +1453,7 @@ var hr = class {
1449
1453
  }
1450
1454
  #_(e) {
1451
1455
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1452
- Ze(r), t && (this.#s = R(() => {
1456
+ Xe(r), t && (this.#s = R(() => {
1453
1457
  t(this.#e, () => e, () => n);
1454
1458
  }));
1455
1459
  }
@@ -1457,10 +1461,10 @@ var hr = class {
1457
1461
  var t = !1, n = !1;
1458
1462
  let r = () => {
1459
1463
  if (t) {
1460
- Ce();
1464
+ Se();
1461
1465
  return;
1462
1466
  }
1463
- t = !0, n && Ue(), this.#s !== null && Dn(this.#s, () => {
1467
+ t = !0, n && He(), this.#s !== null && Tn(this.#s, () => {
1464
1468
  this.#s = null;
1465
1469
  }), this.#S(() => {
1466
1470
  this.#b();
@@ -1479,8 +1483,8 @@ var hr = class {
1479
1483
  }
1480
1484
  #y() {
1481
1485
  let e = this.#n.pending;
1482
- e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Ze(() => {
1483
- var e = this.#c = document.createDocumentFragment(), t = Qt(), n = !1;
1486
+ e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Xe(() => {
1487
+ var e = this.#c = document.createDocumentFragment(), t = Xt(), n = !1;
1484
1488
  if (e.append(t), this.#a = this.#S(() => {
1485
1489
  try {
1486
1490
  return R(() => this.#r(t));
@@ -1496,7 +1500,7 @@ var hr = class {
1496
1500
  this.#c = null, n && this.#x(O);
1497
1501
  return;
1498
1502
  }
1499
- this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
1503
+ this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
1500
1504
  this.#o = null;
1501
1505
  }), this.#x(O));
1502
1506
  }));
@@ -1507,7 +1511,7 @@ var hr = class {
1507
1511
  this.#r(this.#e);
1508
1512
  }), this.#u > 0) {
1509
1513
  var e = this.#c = document.createDocumentFragment();
1510
- jn(this.#a, e);
1514
+ kn(this.#a, e);
1511
1515
  let t = this.#n.pending;
1512
1516
  this.#o = R(() => t(this.#e));
1513
1517
  } else this.#x(O);
@@ -1519,7 +1523,7 @@ var hr = class {
1519
1523
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1520
1524
  }
1521
1525
  defer_effect(e) {
1522
- nt(e, this.#f, this.#p);
1526
+ et(e, this.#f, this.#p);
1523
1527
  }
1524
1528
  is_rendered() {
1525
1529
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1529,11 +1533,11 @@ var hr = class {
1529
1533
  }
1530
1534
  #S(e) {
1531
1535
  var t = W, n = V, r = E;
1532
- G(this.#i), U(this.#i), We(this.#i.ctx);
1536
+ G(this.#i), U(this.#i), Ue(this.#i.ctx);
1533
1537
  try {
1534
- return kt.ensure(), e();
1538
+ return Tt.ensure(), e();
1535
1539
  } finally {
1536
- G(t), U(n), We(r);
1540
+ G(t), U(n), Ue(r);
1537
1541
  }
1538
1542
  }
1539
1543
  #C(e, t) {
@@ -1541,13 +1545,13 @@ var hr = class {
1541
1545
  this.parent && this.parent.#C(e, t);
1542
1546
  return;
1543
1547
  }
1544
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
1548
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
1545
1549
  this.#o = null;
1546
1550
  }), this.#c &&= (this.#e.before(this.#c), null));
1547
1551
  }
1548
1552
  update_pending_count(e, t) {
1549
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ze(() => {
1550
- this.#d = !1, this.#m && Ht(this.#m, this.#l);
1553
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Xe(() => {
1554
+ this.#d = !1, this.#m && Bt(this.#m, this.#l);
1551
1555
  }));
1552
1556
  }
1553
1557
  get_effect_pending() {
@@ -1560,7 +1564,7 @@ var hr = class {
1560
1564
  })) : this.#w(e);
1561
1565
  }
1562
1566
  #w(e) {
1563
- this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t), De(), T(Oe()));
1567
+ this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t), Ee(), T(De()));
1564
1568
  let t = this.#n.failed, n = (e) => {
1565
1569
  let { reset: n, invoke_onerror: r } = this.#v(e);
1566
1570
  r(), t && (this.#s = this.#S(() => {
@@ -1574,7 +1578,7 @@ var hr = class {
1574
1578
  }
1575
1579
  }));
1576
1580
  };
1577
- Ze(() => {
1581
+ Xe(() => {
1578
1582
  var t;
1579
1583
  try {
1580
1584
  t = this.transform_error(e);
@@ -1586,76 +1590,76 @@ var hr = class {
1586
1590
  });
1587
1591
  }
1588
1592
  };
1589
- function gr(e, t) {
1593
+ function mr(e, t) {
1590
1594
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1591
- n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1595
+ n !== (e[_e] ??= e.nodeValue) && (e[_e] = n, e.nodeValue = `${n}`);
1592
1596
  }
1593
- function _r(e, t) {
1594
- return br(e, t);
1597
+ function hr(e, t) {
1598
+ return vr(e, t);
1595
1599
  }
1596
- function vr(t, n) {
1597
- Zt(), n.intro = n.intro ?? !1;
1600
+ function gr(t, n) {
1601
+ Yt(), n.intro = n.intro ?? !1;
1598
1602
  let r = n.target, i = C, a = w;
1599
1603
  try {
1600
1604
  for (var o = /* @__PURE__ */ P(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ F(o);
1601
1605
  if (!o) throw e;
1602
- we(!0), T(o);
1603
- let i = br(t, {
1606
+ Ce(!0), T(o);
1607
+ let i = vr(t, {
1604
1608
  ...n,
1605
1609
  anchor: o
1606
1610
  });
1607
- return we(!1), i;
1611
+ return Ce(!1), i;
1608
1612
  } catch (i) {
1609
1613
  if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
1610
- return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Re(), Zt(), rn(r), we(!1), _r(t, n);
1614
+ return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Le(), Yt(), tn(r), Ce(!1), hr(t, n);
1611
1615
  } finally {
1612
- we(i), T(a);
1616
+ Ce(i), T(a);
1613
1617
  }
1614
1618
  }
1615
- var yr = /* @__PURE__ */ new Map();
1616
- function br(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
1617
- Zt();
1618
- var u = void 0, d = gn(() => {
1619
- var s = r ?? n.appendChild(Qt());
1620
- mr(s, { pending: () => {} }, (n) => {
1621
- Ge({});
1619
+ var _r = /* @__PURE__ */ new Map();
1620
+ function vr(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
1621
+ Yt();
1622
+ var u = void 0, d = mn(() => {
1623
+ var s = r ?? n.appendChild(Xt());
1624
+ fr(s, { pending: () => {} }, (n) => {
1625
+ We({});
1622
1626
  var r = E;
1623
- if (o && (r.c = o), a && (i.$$events = a), C && sr(n, null), u = t(n, i) || qe(), C && (W.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]")) throw Se(), e;
1624
- Ke();
1627
+ if (o && (r.c = o), a && (i.$$events = a), C && ar(n, null), u = t(n, i) || Ke(), C && (W.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]")) throw xe(), e;
1628
+ Ge();
1625
1629
  }, l);
1626
1630
  var d = /* @__PURE__ */ new Set(), f = (e) => {
1627
1631
  for (var t = 0; t < e.length; t++) {
1628
1632
  var r = e[t];
1629
1633
  if (!d.has(r)) {
1630
1634
  d.add(r);
1631
- var i = dr(r);
1635
+ var i = lr(r);
1632
1636
  for (let e of [n, document]) {
1633
- var a = yr.get(e);
1634
- a === void 0 && (a = /* @__PURE__ */ new Map(), yr.set(e, a));
1637
+ var a = _r.get(e);
1638
+ a === void 0 && (a = /* @__PURE__ */ new Map(), _r.set(e, a));
1635
1639
  var o = a.get(r);
1636
- o === void 0 ? (e.addEventListener(r, rr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1640
+ o === void 0 ? (e.addEventListener(r, tr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1637
1641
  }
1638
1642
  }
1639
1643
  }
1640
1644
  };
1641
- return f(c($n)), er.add(f), () => {
1645
+ return f(c(Zn)), Qn.add(f), () => {
1642
1646
  for (var e of d) for (let r of [n, document]) {
1643
- var t = yr.get(r), i = t.get(e);
1644
- --i == 0 ? (r.removeEventListener(e, rr), t.delete(e), t.size === 0 && yr.delete(r)) : t.set(e, i);
1647
+ var t = _r.get(r), i = t.get(e);
1648
+ --i == 0 ? (r.removeEventListener(e, tr), t.delete(e), t.size === 0 && _r.delete(r)) : t.set(e, i);
1645
1649
  }
1646
- er.delete(f), s !== r && s.parentNode?.removeChild(s);
1650
+ Qn.delete(f), s !== r && s.parentNode?.removeChild(s);
1647
1651
  };
1648
1652
  });
1649
- return xr.set(u, d), u;
1653
+ return yr.set(u, d), u;
1650
1654
  }
1651
- var xr = /* @__PURE__ */ new WeakMap();
1652
- function Sr(e, t) {
1653
- let n = xr.get(e);
1654
- return n ? (xr.delete(e), n(t)) : Promise.resolve();
1655
+ var yr = /* @__PURE__ */ new WeakMap();
1656
+ function br(e, t) {
1657
+ let n = yr.get(e);
1658
+ return n ? (yr.delete(e), n(t)) : Promise.resolve();
1655
1659
  }
1656
1660
  //#endregion
1657
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1658
- var Cr = class {
1661
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1662
+ var xr = class {
1659
1663
  anchor;
1660
1664
  #e = /* @__PURE__ */ new Map();
1661
1665
  #t = /* @__PURE__ */ new Map();
@@ -1668,10 +1672,10 @@ var Cr = class {
1668
1672
  #a = (e) => {
1669
1673
  if (this.#e.has(e)) {
1670
1674
  var t = this.#e.get(e), n = this.#t.get(t);
1671
- if (n) kn(n), this.#r.delete(t);
1675
+ if (n) Dn(n), this.#r.delete(t);
1672
1676
  else {
1673
1677
  var r = this.#n.get(t);
1674
- r && (kn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1678
+ 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);
1675
1679
  }
1676
1680
  for (let [t, n] of this.#e) {
1677
1681
  if (this.#e.delete(t), t === e) break;
@@ -1683,14 +1687,14 @@ var Cr = class {
1683
1687
  let i = () => {
1684
1688
  if (Array.from(this.#e.values()).includes(e)) {
1685
1689
  var t = document.createDocumentFragment();
1686
- jn(r, t), t.append(Qt()), this.#n.set(e, {
1690
+ kn(r, t), t.append(Xt()), this.#n.set(e, {
1687
1691
  effect: r,
1688
1692
  fragment: t
1689
1693
  });
1690
1694
  } else z(r);
1691
1695
  this.#r.delete(e), this.#t.delete(e);
1692
1696
  };
1693
- this.#i || !n ? (this.#r.add(e), Dn(r, i, !1)) : i();
1697
+ this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
1694
1698
  }
1695
1699
  }
1696
1700
  };
@@ -1700,9 +1704,9 @@ var Cr = class {
1700
1704
  for (let [e, n] of this.#n) t.includes(e) || (z(n.effect), this.#n.delete(e));
1701
1705
  };
1702
1706
  ensure(e, t) {
1703
- var n = O, r = an();
1707
+ var n = O, r = nn();
1704
1708
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1705
- var i = document.createDocumentFragment(), a = Qt();
1709
+ var i = document.createDocumentFragment(), a = Xt();
1706
1710
  i.append(a), this.#n.set(e, {
1707
1711
  effect: R(() => t(a)),
1708
1712
  fragment: i
@@ -1716,90 +1720,90 @@ var Cr = class {
1716
1720
  }
1717
1721
  };
1718
1722
  //#endregion
1719
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1720
- function wr(e, t, n = !1) {
1723
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
1724
+ function Sr(e, t, n = !1) {
1721
1725
  var r;
1722
- C && (r = w, Te());
1723
- var i = new Cr(e), a = n ? ie : 0;
1726
+ C && (r = w, we());
1727
+ var i = new xr(e), a = n ? ie : 0;
1724
1728
  function o(e, t) {
1725
1729
  if (C) {
1726
- var n = ke(r);
1730
+ var n = Oe(r);
1727
1731
  if (e !== parseInt(n.substring(1))) {
1728
- var a = Oe();
1729
- T(a), i.anchor = a, we(!1), i.ensure(e, t), we(!0);
1732
+ var a = De();
1733
+ T(a), i.anchor = a, Ce(!1), i.ensure(e, t), Ce(!0);
1730
1734
  return;
1731
1735
  }
1732
1736
  }
1733
1737
  i.ensure(e, t);
1734
1738
  }
1735
- xn(() => {
1739
+ yn(() => {
1736
1740
  var e = !1;
1737
1741
  t((t, n = 0) => {
1738
1742
  e = !0, o(n, t);
1739
1743
  }), e || o(-1, null);
1740
1744
  }, a);
1741
1745
  }
1742
- function Tr(t, n, a = !1, o = !1, s = !1, c = !1) {
1746
+ function Cr(t, n, a = !1, o = !1, s = !1, c = !1) {
1743
1747
  var l = t, u = "";
1744
1748
  if (a) {
1745
1749
  var d = t;
1746
1750
  C && (l = T(/* @__PURE__ */ P(d)));
1747
1751
  }
1748
- bn(() => {
1752
+ vn(() => {
1749
1753
  var t = W;
1750
1754
  if (u === (u = n() ?? "")) {
1751
- C && Te();
1755
+ C && we();
1752
1756
  return;
1753
1757
  }
1754
1758
  if (a && !C) {
1755
- t.nodes = null, d.innerHTML = u, u !== "" && sr(/* @__PURE__ */ P(d), d.lastChild);
1759
+ t.nodes = null, d.innerHTML = u, u !== "" && ar(/* @__PURE__ */ P(d), d.lastChild);
1756
1760
  return;
1757
1761
  }
1758
- if (t.nodes !== null && (Tn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1762
+ if (t.nodes !== null && (Cn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1759
1763
  if (C) {
1760
- for (var c = w.data, f = Te(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1761
- if (f === null) throw Se(), e;
1762
- sr(w, p), l = T(f);
1764
+ for (var c = w.data, f = we(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1765
+ if (f === null) throw xe(), e;
1766
+ ar(w, p), l = T(f);
1763
1767
  return;
1764
1768
  }
1765
- var m = on(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1769
+ var m = rn(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1766
1770
  m.innerHTML = u;
1767
1771
  var h = o || s ? m : m.content;
1768
- if (sr(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1772
+ if (ar(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1769
1773
  else l.before(h);
1770
1774
  }
1771
1775
  });
1772
1776
  }
1773
1777
  //#endregion
1774
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1775
- function Er(e, t) {
1776
- _n(() => {
1778
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
1779
+ function wr(e, t) {
1780
+ hn(() => {
1777
1781
  e = W?.parent?.nodes?.start ?? e;
1778
1782
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1779
1783
  if (!r.querySelector("#" + t.hash)) {
1780
- let e = on("style");
1784
+ let e = rn("style");
1781
1785
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1782
1786
  }
1783
1787
  });
1784
1788
  }
1785
1789
  //#endregion
1786
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
1787
- var Dr = Symbol("is custom element"), Or = Symbol("is html"), kr = be ? "link" : "LINK";
1788
- function Ar(e, t, n, r) {
1789
- var i = jr(e);
1790
- C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === kr) || i[t] !== (i[t] = n) && (t === "loading" && (e[me] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Nr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
1791
- }
1792
- function jr(e) {
1793
- return e[he] ??= {
1794
- [Dr]: e.nodeName.includes("-"),
1795
- [Or]: e.namespaceURI === n
1790
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
1791
+ var Tr = Symbol("is custom element"), Er = Symbol("is html"), Dr = ye ? "link" : "LINK";
1792
+ function Or(e, t, n, r) {
1793
+ var i = kr(e);
1794
+ C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Dr) || i[t] !== (i[t] = n) && (t === "loading" && (e[pe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && jr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
1795
+ }
1796
+ function kr(e) {
1797
+ return e[me] ??= {
1798
+ [Tr]: e.nodeName.includes("-"),
1799
+ [Er]: e.namespaceURI === n
1796
1800
  };
1797
1801
  }
1798
- var Mr = /* @__PURE__ */ new Map();
1799
- function Nr(e) {
1800
- var t = e.getAttribute("is") || e.nodeName, n = Mr.get(t);
1802
+ var Ar = /* @__PURE__ */ new Map();
1803
+ function jr(e) {
1804
+ var t = e.getAttribute("is") || e.nodeName, n = Ar.get(t);
1801
1805
  if (n) return n;
1802
- Mr.set(t, n = /* @__PURE__ */ new Set());
1806
+ Ar.set(t, n = /* @__PURE__ */ new Set());
1803
1807
  for (var r, i = e, a = Element.prototype; a !== i;) {
1804
1808
  for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
1805
1809
  i = h(i);
@@ -1807,23 +1811,23 @@ function Nr(e) {
1807
1811
  return n;
1808
1812
  }
1809
1813
  //#endregion
1810
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
1811
- function Pr(e, t) {
1812
- return e === t || e?.[de] === t;
1814
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
1815
+ function Mr(e, t) {
1816
+ return e === t || e?.[ue] === t;
1813
1817
  }
1814
- function Fr(e = qe(), t, n, r) {
1818
+ function Nr(e = Ke(), t, n, r) {
1815
1819
  var i = E.r, a = W;
1816
- return _n(() => {
1820
+ return hn(() => {
1817
1821
  var o, s;
1818
- return yn(() => {
1819
- o = s, s = r?.() || [], Zn(() => {
1820
- Pr(n(...s), e) || (t(e, ...s), o && Pr(n(...o), e) && t(null, ...o));
1822
+ return _n(() => {
1823
+ o = s, s = r?.() || [], Yn(() => {
1824
+ Mr(n(...s), e) || (t(e, ...s), o && Mr(n(...o), e) && t(null, ...o));
1821
1825
  });
1822
1826
  }), () => {
1823
1827
  let r = a;
1824
1828
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
1825
1829
  let o = () => {
1826
- s && Pr(n(...s), e) && t(null, ...s);
1830
+ s && Mr(n(...s), e) && t(null, ...s);
1827
1831
  }, c = r.teardown;
1828
1832
  r.teardown = () => {
1829
1833
  o(), c?.();
@@ -1832,16 +1836,27 @@ function Fr(e = qe(), t, n, r) {
1832
1836
  }), e;
1833
1837
  }
1834
1838
  //#endregion
1835
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
1839
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
1840
+ var Pr = !1;
1841
+ function Fr(e) {
1842
+ var t = Pr;
1843
+ try {
1844
+ return Pr = !1, [e(), Pr];
1845
+ } finally {
1846
+ Pr = t;
1847
+ }
1848
+ }
1849
+ //#endregion
1850
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
1836
1851
  function Ir(e, t, n, r) {
1837
- var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ut(r), X(l)) : (c && (c = !1, s = o ? Zn(r) : r), s);
1852
+ 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), X(l)) : (c && (c = !1, s = o ? Yn(r) : r), s);
1838
1853
  let f;
1839
1854
  if (a) {
1840
- var p = de in e || pe in e;
1855
+ var p = ue in e || fe in e;
1841
1856
  f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
1842
1857
  }
1843
1858
  var m, h = !1;
1844
- a ? [m, h] = it(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && ze(t), f(m)));
1859
+ a ? [m, h] = Fr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Re(t), f(m)));
1845
1860
  var g = i ? () => {
1846
1861
  var n = e[t];
1847
1862
  return n === void 0 ? u() : (c = !0, n);
@@ -1856,19 +1871,19 @@ function Ir(e, t, n, r) {
1856
1871
  return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
1857
1872
  });
1858
1873
  }
1859
- var _ = !1, v = (n & 1 ? ut : mt)(() => (_ = !1, g()));
1874
+ var _ = !1, v = (n & 1 ? ot : ut)(() => (_ = !1, g()));
1860
1875
  a && X(v);
1861
1876
  var y = W;
1862
1877
  return (function(e, t) {
1863
1878
  if (arguments.length > 0) {
1864
- let n = t ? X(v) : i && a ? Kt(e) : e;
1879
+ let n = t ? X(v) : i && a ? Wt(e) : e;
1865
1880
  return N(v, n), _ = !0, s !== void 0 && (s = n), e;
1866
1881
  }
1867
1882
  return B && _ || y.f & 16384 ? v.v : X(v);
1868
1883
  });
1869
1884
  }
1870
1885
  //#endregion
1871
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
1886
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
1872
1887
  function Lr(e) {
1873
1888
  return new Rr(e);
1874
1889
  }
@@ -1877,7 +1892,7 @@ var Rr = class {
1877
1892
  #t;
1878
1893
  constructor(e) {
1879
1894
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
1880
- var r = /* @__PURE__ */ Vt(n, !1, !1);
1895
+ var r = /* @__PURE__ */ Lt(n, !1, !1);
1881
1896
  return t.set(e, r), r;
1882
1897
  };
1883
1898
  let r = new Proxy({
@@ -1888,13 +1903,13 @@ var Rr = class {
1888
1903
  return X(t.get(r) ?? n(r, Reflect.get(e, r)));
1889
1904
  },
1890
1905
  has(e, r) {
1891
- return r === pe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1906
+ return r === fe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1892
1907
  },
1893
1908
  set(e, r, i) {
1894
1909
  return N(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
1895
1910
  }
1896
1911
  });
1897
- this.#t = (e.hydrate ? vr : _r)(e.component, {
1912
+ this.#t = (e.hydrate ? gr : hr)(e.component, {
1898
1913
  target: e.target,
1899
1914
  anchor: e.anchor,
1900
1915
  props: r,
@@ -1902,7 +1917,7 @@ var Rr = class {
1902
1917
  intro: e.intro ?? !1,
1903
1918
  recover: e.recover,
1904
1919
  transformError: e.transformError
1905
- }), (!e?.props?.$$host || e.sync === !1) && At(), this.#e = r.$$events;
1920
+ }), (!e?.props?.$$host || e.sync === !1) && Et(), this.#e = r.$$events;
1906
1921
  for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
1907
1922
  get() {
1908
1923
  return this.#t[e];
@@ -1915,7 +1930,7 @@ var Rr = class {
1915
1930
  this.#t.$set = (e) => {
1916
1931
  Object.assign(r, e);
1917
1932
  }, this.#t.$destroy = () => {
1918
- Sr(this.#t);
1933
+ br(this.#t);
1919
1934
  };
1920
1935
  }
1921
1936
  $set(e) {
@@ -1965,8 +1980,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
1965
1980
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
1966
1981
  function e(e) {
1967
1982
  return (t) => {
1968
- let n = on("slot");
1969
- e !== "default" && (n.name = e), lr(t, n);
1983
+ let n = rn("slot");
1984
+ e !== "default" && (n.name = e), sr(t, n);
1970
1985
  };
1971
1986
  }
1972
1987
  let t = {}, n = Vr(this);
@@ -1984,8 +1999,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
1984
1999
  $$slots: t,
1985
2000
  $$host: this
1986
2001
  }
1987
- }), this.$$me = hn(() => {
1988
- yn(() => {
2002
+ }), this.$$me = pn(() => {
2003
+ _n(() => {
1989
2004
  this.$$r = !0;
1990
2005
  for (let e of l(this.$$c)) {
1991
2006
  if (!this.$$p_d[e]?.reflect) continue;
@@ -2067,38 +2082,64 @@ function Hr(e, t, n, r, i, a) {
2067
2082
  }
2068
2083
  //#endregion
2069
2084
  //#region ../../shared/math-rendering-mathjax/dist/index.js
2070
- var Ur = {
2085
+ var Ur = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Wr = "pie-mathjax-version-conflict", Gr = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
2086
+ function Kr(e, t) {
2087
+ if (typeof window > "u") return;
2088
+ let n = globalThis;
2089
+ n[Gr] ??= {
2090
+ logged: !1,
2091
+ conditions: []
2092
+ };
2093
+ let r = n[Gr];
2094
+ if (r.conditions.includes(e)) return;
2095
+ r.conditions.push(e);
2096
+ let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Ur}`;
2097
+ r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Wr, { detail: {
2098
+ condition: e,
2099
+ message: i,
2100
+ docsUrl: Ur
2101
+ } }));
2102
+ }
2103
+ function qr() {
2104
+ let e = window.MathJax?.version;
2105
+ return typeof e == "string" && e.startsWith("3.") ? e : void 0;
2106
+ }
2107
+ var Jr = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", Yr = {
2071
2108
  parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
2072
2109
  overarc: "\\overparen",
2073
2110
  napprox: "\\not\\approx",
2074
2111
  longdiv: "\\enclose{longdiv}",
2075
2112
  abs: ["\\left|#1\\right|", 1]
2076
- }, Wr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Gr = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Kr = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, qr = /\\embed\{newLine\}\[\]/g, Jr = [
2113
+ }, Xr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Zr = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Qr = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, $r = /\\embed\{newLine\}\[\]/g, ei = [
2077
2114
  ["$$", "$$"],
2078
2115
  ["$", "$"],
2079
2116
  ["\\[", "\\]"],
2080
2117
  ["\\(", "\\)"]
2081
- ], Yr = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading");
2082
- function Xr() {
2118
+ ], ti = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), ni = "PIE-MJX-CHTML-styles", ri = "MJX-CHTML-styles", ii = [ri, "MJX-SVG-styles"], ai = 201;
2119
+ function oi(e) {
2120
+ let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
2121
+ for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
2122
+ }
2123
+ function si() {
2083
2124
  return window.MathJax;
2084
2125
  }
2085
- function Zr(e) {
2126
+ function ci(e) {
2086
2127
  let t = e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e;
2087
- for (let [e, n] of Jr) if (t.startsWith(e) && t.endsWith(n)) return t.substring(e.length, t.length - n.length);
2128
+ for (let [e, n] of ei) if (t.startsWith(e) && t.endsWith(n)) return t.substring(e.length, t.length - n.length);
2088
2129
  return t;
2089
2130
  }
2090
- function Qr(e) {
2131
+ function li(e) {
2091
2132
  for (let t of e.querySelectorAll("[data-latex]")) {
2092
2133
  if (t.dataset.mathHandled || t.closest("mjx-container")) continue;
2093
2134
  let e = t.textContent;
2094
- e && (t.textContent = `\\(${Zr(e)}\\)`.replace(qr, "\\newline "), t.dataset.mathHandled = "true");
2135
+ e && (t.textContent = `\\(${ci(e)}\\)`.replace($r, "\\newline "), t.dataset.mathHandled = "true");
2095
2136
  }
2096
2137
  }
2097
- function $r(e, t) {
2138
+ function ui(e, t) {
2098
2139
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
2099
- return (t ? Kr : Gr).test(e.textContent ?? "");
2140
+ return (t ? Qr : Zr).test(e.textContent ?? "");
2100
2141
  }
2101
- function ei(e) {
2142
+ function di(e) {
2102
2143
  return new Promise((t, n) => {
2103
2144
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
2104
2145
  loader: {
@@ -2108,11 +2149,11 @@ function ei(e) {
2108
2149
  startup: {
2109
2150
  typeset: !1,
2110
2151
  ready: () => {
2111
- let e = Xr()?.startup;
2112
- e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
2152
+ let e = si(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2153
+ i && fi(e), r?.defaultReady?.(), i && pi(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2113
2154
  }
2114
2155
  },
2115
- tex: { macros: { ...Ur } },
2156
+ tex: { macros: { ...Yr } },
2116
2157
  options: {
2117
2158
  enableMenu: i,
2118
2159
  menuOptions: { settings: {
@@ -2122,76 +2163,124 @@ function ei(e) {
2122
2163
  } }
2123
2164
  }
2124
2165
  };
2125
- r && s.tex && (console.warn(Wr), s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
2166
+ r && s.tex && (console.warn(Xr), s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
2126
2167
  let c = document.createElement("script");
2127
- c.src = o || "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2168
+ c.src = o || Jr, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2169
+ });
2170
+ }
2171
+ function fi(e) {
2172
+ let t = e?._?.output?.chtml_ts?.CHTML;
2173
+ t && (t.STYLESHEETID = ni);
2174
+ }
2175
+ function pi(e) {
2176
+ if (!e) return;
2177
+ let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
2178
+ let n = e.typesetRoot;
2179
+ !n || t.has(n) || (oi(n), t.add(n));
2180
+ };
2181
+ e.addRenderAction?.("pie-strip-latex", ai, (e) => {
2182
+ for (let t of e.math ?? []) n(t);
2183
+ return !1;
2184
+ }, (e) => {
2185
+ let t = e.typesetRoot;
2186
+ return t && oi(t), !1;
2128
2187
  });
2188
+ let r = e.outputJax?.chtmlStyles;
2189
+ r?.id === ri && (r.id = ni), gi();
2190
+ }
2191
+ function mi(e) {
2192
+ return e instanceof HTMLStyleElement && ii.includes(e.id);
2129
2193
  }
2130
- function ti(e) {
2194
+ function hi(e) {
2195
+ Kr("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
2196
+ }
2197
+ function gi() {
2198
+ let e = document.head, t = [...e.children].find(mi);
2199
+ if (t) {
2200
+ hi(t);
2201
+ return;
2202
+ }
2203
+ let n = new MutationObserver((e) => {
2204
+ for (let t of e) {
2205
+ let e = [...t.addedNodes].find(mi);
2206
+ if (e) {
2207
+ hi(e), n.disconnect();
2208
+ return;
2209
+ }
2210
+ }
2211
+ });
2212
+ n.observe(e, { childList: !0 });
2213
+ }
2214
+ function _i(e) {
2131
2215
  return new Promise((t, n) => {
2132
2216
  let r = e.startup ?? {};
2133
2217
  e.startup = r;
2134
2218
  let i = r.ready;
2135
2219
  r.ready = () => {
2136
- let e = Xr()?.startup;
2220
+ let e = si()?.startup;
2137
2221
  i ? i.call(r) : e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
2138
2222
  };
2139
2223
  });
2140
2224
  }
2141
- function ni(e) {
2142
- let t = Xr();
2143
- return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : ti(t) : ei(e);
2225
+ function vi(e) {
2226
+ let t = si();
2227
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : _i(t) : di(e);
2144
2228
  }
2145
- function ri(e) {
2146
- return ni(e).then(() => {
2147
- typeof Xr()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2229
+ function yi(e) {
2230
+ return vi(e).then(() => {
2231
+ typeof si()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2148
2232
  });
2149
2233
  }
2150
- function ii(e) {
2151
- let t = globalThis, n = t[Yr];
2152
- return n || (n = ri(e), t[Yr] = n), n;
2234
+ function bi(e) {
2235
+ let t = globalThis, n = t[ti];
2236
+ return n || (n = yi(e), t[ti] = n), n;
2153
2237
  }
2154
- function ai(e = {}) {
2238
+ function xi(e = {}) {
2155
2239
  let t = e.useSingleDollar ?? !1;
2156
2240
  return async (n) => {
2157
2241
  if (typeof window > "u") return;
2158
- Qr(n);
2159
- let r = ii(e);
2160
- if (!$r(n, t)) {
2161
- r.catch(() => {});
2242
+ let r = qr();
2243
+ r && Kr("mathjax-3-global", `window.MathJax is MathJax ${r}`), li(n);
2244
+ let i = bi(e);
2245
+ if (!ui(n, t)) {
2246
+ i.catch(() => {});
2162
2247
  return;
2163
2248
  }
2164
- await r;
2165
- let i = Xr();
2166
- await i?.startup?.promise, typeof i?.typesetPromise == "function" && await i.typesetPromise([n]);
2249
+ await i;
2250
+ let a = si();
2251
+ await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), oi(n));
2167
2252
  };
2168
2253
  }
2169
- var oi = "@pie-lib/math-rendering", si = "@pie-lib/math-rendering@2", ci = null;
2170
- function li() {
2171
- return !!window[si]?.opts?.useSingleDollar;
2254
+ var Si = "@pie-lib/math-rendering", Ci = "@pie-lib/math-rendering@2", wi = null;
2255
+ function Ti() {
2256
+ return !!window[Ci]?.opts?.useSingleDollar;
2172
2257
  }
2173
- function ui() {
2174
- return ci ||= ai({ useSingleDollar: li() }), ci;
2258
+ function Ei() {
2259
+ return wi ||= xi({ useSingleDollar: Ti() }), wi;
2175
2260
  }
2176
- function di() {
2261
+ function Di() {
2177
2262
  if (typeof window > "u") return null;
2178
- let e = window[oi];
2263
+ let e = window[Si];
2179
2264
  return typeof e?.renderMath == "function" ? e : null;
2180
2265
  }
2181
- var fi = async (e) => {
2266
+ function Oi() {
2267
+ let e = qr();
2268
+ e && Kr("legacy-renderer-delegation", `window['${Si}'] renders this element's math with MathJax ${e}`);
2269
+ }
2270
+ var ki = async (e) => {
2182
2271
  if (typeof window > "u") return;
2183
2272
  let t = typeof e == "string", n;
2184
2273
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2185
- let r = di();
2186
- return r ? await r.renderMath?.(n) : await ui()(n), t ? n.innerHTML : void 0;
2187
- }, pi = [
2274
+ let r = Di();
2275
+ return r ? (Oi(), await r.renderMath?.(n)) : await Ei()(n), t ? n.innerHTML : void 0;
2276
+ }, Ai = [
2188
2277
  "nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
2189
2278
  "deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
2190
2279
  "Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
2191
2280
  "ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
2192
2281
  "agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
2193
2282
  "eth ntilde ograve oacute ocirc otilde ouml divide oslash ugrave uacute ucirc uuml yacute thorn yuml"
2194
- ].join(" "), mi = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", hi = new Map(Object.entries({
2283
+ ].join(" "), ji = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", Mi = new Map(Object.entries({
2195
2284
  quot: 34,
2196
2285
  amp: 38,
2197
2286
  apos: 39,
@@ -2222,16 +2311,16 @@ var fi = async (e) => {
2222
2311
  le: 8804,
2223
2312
  ge: 8805
2224
2313
  }));
2225
- for (let [e, t] of pi.split(" ").entries()) hi.set(t, 160 + e);
2226
- for (let [e, t] of mi.split(" ").entries()) hi.set(t, 945 + e), t !== "sigmaf" && hi.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2227
- var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, vi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, yi = (e, t) => {
2314
+ for (let [e, t] of Ai.split(" ").entries()) Mi.set(t, 160 + e);
2315
+ for (let [e, t] of ji.split(" ").entries()) Mi.set(t, 945 + e), t !== "sigmaf" && Mi.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2316
+ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Fi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Ii = (e, t) => {
2228
2317
  if (t[0] === "#") {
2229
2318
  let e = t[1] === "x" || t[1] === "X", n = Number.parseInt(t.slice(e ? 2 : 1), e ? 16 : 10), r = n > 0 && n <= 1114111 && (n < 55296 || n > 57343);
2230
2319
  return String.fromCodePoint(r ? n : 65533);
2231
2320
  }
2232
- let n = hi.get(t);
2321
+ let n = Mi.get(t);
2233
2322
  return n === void 0 ? e : String.fromCodePoint(n);
2234
- }, bi = (e) => typeof e == "string" ? e.replace(gi, " ").replace(_i, "").replace(vi, yi).replace(/\s+/g, " ").trim() : "", xi = {
2323
+ }, Li = (e) => typeof e == "string" ? e.replace(Ni, " ").replace(Pi, "").replace(Fi, Ii).replace(/\s+/g, " ").trim() : "", Ri = {
2235
2324
  translation: {
2236
2325
  categorize: {
2237
2326
  limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
@@ -2371,7 +2460,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2371
2460
  hideNote: "Hide Note",
2372
2461
  cancel: "Cancel"
2373
2462
  }
2374
- }, Si = {
2463
+ }, zi = {
2375
2464
  translation: {
2376
2465
  categorize: {
2377
2466
  limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
@@ -2511,55 +2600,55 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2511
2600
  hideNote: "Ocultar Nota",
2512
2601
  cancel: "Cancelar"
2513
2602
  }
2514
- }, Z = (e) => typeof e == "string", Ci = () => {
2603
+ }, Z = (e) => typeof e == "string", Bi = () => {
2515
2604
  let e, t, n = new Promise((n, r) => {
2516
2605
  e = n, t = r;
2517
2606
  });
2518
2607
  return n.resolve = e, n.reject = t, n;
2519
- }, wi = (e) => e == null ? "" : "" + e, Ti = (e, t, n) => {
2608
+ }, Vi = (e) => e == null ? "" : "" + e, Hi = (e, t, n) => {
2520
2609
  e.forEach((e) => {
2521
2610
  t[e] && (n[e] = t[e]);
2522
2611
  });
2523
- }, Ei = /###/g, Di = (e) => e && e.indexOf("###") > -1 ? e.replace(Ei, ".") : e, Oi = (e) => !e || Z(e), ki = (e, t, n) => {
2612
+ }, Ui = /###/g, Wi = (e) => e && e.indexOf("###") > -1 ? e.replace(Ui, ".") : e, Gi = (e) => !e || Z(e), Ki = (e, t, n) => {
2524
2613
  let r = Z(t) ? t.split(".") : t, i = 0;
2525
2614
  for (; i < r.length - 1;) {
2526
- if (Oi(e)) return {};
2527
- let t = Di(r[i]);
2615
+ if (Gi(e)) return {};
2616
+ let t = Wi(r[i]);
2528
2617
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2529
2618
  }
2530
- return Oi(e) ? {} : {
2619
+ return Gi(e) ? {} : {
2531
2620
  obj: e,
2532
- k: Di(r[i])
2621
+ k: Wi(r[i])
2533
2622
  };
2534
- }, Ai = (e, t, n) => {
2535
- let { obj: r, k: i } = ki(e, t, Object);
2623
+ }, qi = (e, t, n) => {
2624
+ let { obj: r, k: i } = Ki(e, t, Object);
2536
2625
  if (r !== void 0 || t.length === 1) {
2537
2626
  r[i] = n;
2538
2627
  return;
2539
2628
  }
2540
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = ki(e, o, Object);
2541
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = ki(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2629
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Ki(e, o, Object);
2630
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Ki(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2542
2631
  s.obj[`${s.k}.${a}`] = n;
2543
- }, ji = (e, t, n, r) => {
2544
- let { obj: i, k: a } = ki(e, t, Object);
2632
+ }, Ji = (e, t, n, r) => {
2633
+ let { obj: i, k: a } = Ki(e, t, Object);
2545
2634
  i[a] = i[a] || [], i[a].push(n);
2546
- }, Mi = (e, t) => {
2547
- let { obj: n, k: r } = ki(e, t);
2635
+ }, Yi = (e, t) => {
2636
+ let { obj: n, k: r } = Ki(e, t);
2548
2637
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2549
- }, Ni = (e, t, n) => {
2550
- let r = Mi(e, n);
2551
- return r === void 0 ? Mi(t, n) : r;
2552
- }, Pi = (e, t, n) => {
2553
- 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]) : Pi(e[r], t[r], n) : e[r] = t[r]);
2638
+ }, Xi = (e, t, n) => {
2639
+ let r = Yi(e, n);
2640
+ return r === void 0 ? Yi(t, n) : r;
2641
+ }, Zi = (e, t, n) => {
2642
+ 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]) : Zi(e[r], t[r], n) : e[r] = t[r]);
2554
2643
  return e;
2555
- }, Fi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Ii = {
2644
+ }, Qi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), $i = {
2556
2645
  "&": "&amp;",
2557
2646
  "<": "&lt;",
2558
2647
  ">": "&gt;",
2559
2648
  "\"": "&quot;",
2560
2649
  "'": "&#39;",
2561
2650
  "/": "&#x2F;"
2562
- }, Li = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => Ii[e]) : e, Ri = class {
2651
+ }, ea = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => $i[e]) : e, ta = class {
2563
2652
  constructor(e) {
2564
2653
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2565
2654
  }
@@ -2569,23 +2658,23 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2569
2658
  let n = new RegExp(e);
2570
2659
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2571
2660
  }
2572
- }, zi = [
2661
+ }, na = [
2573
2662
  " ",
2574
2663
  ",",
2575
2664
  "?",
2576
2665
  "!",
2577
2666
  ";"
2578
- ], Bi = new Ri(20), Vi = (e, t, n) => {
2667
+ ], ra = new ta(20), ia = (e, t, n) => {
2579
2668
  t ||= "", n ||= "";
2580
- let r = zi.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2669
+ let r = na.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2581
2670
  if (r.length === 0) return !0;
2582
- let i = Bi.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2671
+ let i = ra.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2583
2672
  if (!a) {
2584
2673
  let t = e.indexOf(n);
2585
2674
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2586
2675
  }
2587
2676
  return a;
2588
- }, Hi = (e, t, n = ".") => {
2677
+ }, aa = (e, t, n = ".") => {
2589
2678
  if (!e) return;
2590
2679
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2591
2680
  let r = t.split(n), i = e;
@@ -2604,7 +2693,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2604
2693
  i = t;
2605
2694
  }
2606
2695
  return i;
2607
- }, Ui = (e) => e?.replace(/_/g, "-"), Wi = {
2696
+ }, oa = (e) => e?.replace(/_/g, "-"), sa = {
2608
2697
  type: "logger",
2609
2698
  log(e) {
2610
2699
  this.output("log", e);
@@ -2623,7 +2712,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2623
2712
  this.init(e, t);
2624
2713
  }
2625
2714
  init(e, t = {}) {
2626
- this.prefix = t.prefix || "i18next:", this.logger = e || Wi, this.options = t, this.debug = t.debug;
2715
+ this.prefix = t.prefix || "i18next:", this.logger = e || sa, this.options = t, this.debug = t.debug;
2627
2716
  }
2628
2717
  log(...e) {
2629
2718
  return this.forward(e, "log", "", !0);
@@ -2649,7 +2738,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2649
2738
  clone(t) {
2650
2739
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2651
2740
  }
2652
- }(), Gi = class {
2741
+ }(), ca = class {
2653
2742
  constructor() {
2654
2743
  this.observers = {};
2655
2744
  }
@@ -2676,7 +2765,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2676
2765
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2677
2766
  });
2678
2767
  }
2679
- }, Ki = class extends Gi {
2768
+ }, la = class extends ca {
2680
2769
  constructor(e, t = {
2681
2770
  ns: ["translation"],
2682
2771
  defaultNS: "translation"
@@ -2693,12 +2782,12 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2693
2782
  getResource(e, t, n, r = {}) {
2694
2783
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2695
2784
  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)));
2696
- let s = Mi(this.data, o);
2697
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : Hi(this.data?.[e]?.[t], n, i);
2785
+ let s = Yi(this.data, o);
2786
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : aa(this.data?.[e]?.[t], n, i);
2698
2787
  }
2699
2788
  addResource(e, t, n, r, i = { silent: !1 }) {
2700
2789
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2701
- 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);
2790
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), qi(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2702
2791
  }
2703
2792
  addResources(e, t, n, r = { silent: !1 }) {
2704
2793
  for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
@@ -2710,11 +2799,11 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2710
2799
  }) {
2711
2800
  let o = [e, t];
2712
2801
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2713
- let s = Mi(this.data, o) || {};
2714
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Pi(s, n, i) : s = {
2802
+ let s = Yi(this.data, o) || {};
2803
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Zi(s, n, i) : s = {
2715
2804
  ...s,
2716
2805
  ...n
2717
- }, Ai(this.data, o, s), a.silent || this.emit("added", e, t, n);
2806
+ }, qi(this.data, o, s), a.silent || this.emit("added", e, t, n);
2718
2807
  }
2719
2808
  removeResourceBundle(e, t) {
2720
2809
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2735,7 +2824,7 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2735
2824
  toJSON() {
2736
2825
  return this.data;
2737
2826
  }
2738
- }, qi = {
2827
+ }, ua = {
2739
2828
  processors: {},
2740
2829
  addPostProcessor(e) {
2741
2830
  this.processors[e.name] = e;
@@ -2745,22 +2834,22 @@ var gi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, _i = /<
2745
2834
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2746
2835
  }), t;
2747
2836
  }
2748
- }, Ji = Symbol("i18next/PATH_KEY");
2749
- function Yi() {
2837
+ }, da = Symbol("i18next/PATH_KEY");
2838
+ function fa() {
2750
2839
  let e = [], t = Object.create(null), n;
2751
- return t.get = (r, i) => (n?.revoke?.(), i === Ji ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2840
+ return t.get = (r, i) => (n?.revoke?.(), i === da ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2752
2841
  }
2753
- function Xi(e, t) {
2754
- let { [Ji]: n } = e(Yi()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2842
+ function pa(e, t) {
2843
+ let { [da]: n } = e(fa()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2755
2844
  if (n.length > 1 && i) {
2756
2845
  let e = t?.ns, a = Array.isArray(e) ? e : null;
2757
2846
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2758
2847
  }
2759
2848
  return n.join(r);
2760
2849
  }
2761
- var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", $i = class e extends Gi {
2850
+ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", ga = class e extends ca {
2762
2851
  constructor(e, t = {}) {
2763
- super(), Ti([
2852
+ super(), Hi([
2764
2853
  "resourceStore",
2765
2854
  "languageUtils",
2766
2855
  "pluralResolver",
@@ -2778,13 +2867,13 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2778
2867
  if (e == null) return !1;
2779
2868
  let r = this.resolve(e, n);
2780
2869
  if (r?.res === void 0) return !1;
2781
- let i = Qi(r.res);
2870
+ let i = ha(r.res);
2782
2871
  return !(n.returnObjects === !1 && i);
2783
2872
  }
2784
2873
  extractFromKey(e, t) {
2785
2874
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2786
2875
  n === void 0 && (n = ":");
2787
- 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 && !Vi(e, n, r);
2876
+ 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 && !ia(e, n, r);
2788
2877
  if (a && !o) {
2789
2878
  let t = e.match(this.interpolator.nestingRegexp);
2790
2879
  if (t && t.length > 0) return {
@@ -2802,10 +2891,10 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2802
2891
  translate(t, n, r) {
2803
2892
  let i = typeof n == "object" ? { ...n } : n;
2804
2893
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2805
- typeof t == "function" && (t = Xi(t, {
2894
+ typeof t == "function" && (t = pa(t, {
2806
2895
  ...this.options,
2807
2896
  ...i
2808
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Xi(e, {
2897
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? pa(e, {
2809
2898
  ...this.options,
2810
2899
  ...i
2811
2900
  }) : String(e));
@@ -2833,7 +2922,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2833
2922
  "[object RegExp]"
2834
2923
  ], _ = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, y = i.count !== void 0 && !Z(i.count), b = e.hasDefaultValue(i), te = y ? this.pluralResolver.getSuffix(d, i.count, i) : "", ne = i.ordinal && y ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", re = y && !i.ordinal && i.count === 0, x = re && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${te}`] || i[`defaultValue${ne}`] || i.defaultValue, S = m;
2835
2924
  v && !m && b && (S = x);
2836
- let ie = Qi(S), ae = Object.prototype.toString.apply(S);
2925
+ let ie = ha(S), ae = Object.prototype.toString.apply(S);
2837
2926
  if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
2838
2927
  if (!i.returnObjects && !this.options.returnObjects) {
2839
2928
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -2849,7 +2938,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2849
2938
  let r = `${n}${o}${e}`;
2850
2939
  b && !m ? t[e] = this.translate(r, {
2851
2940
  ...i,
2852
- defaultValue: Qi(x) ? x[e] : void 0,
2941
+ defaultValue: ha(x) ? x[e] : void 0,
2853
2942
  joinArrays: !1,
2854
2943
  ns: c
2855
2944
  }) : t[e] = this.translate(r, {
@@ -2920,7 +3009,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2920
3009
  !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();
2921
3010
  }
2922
3011
  let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
2923
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = qi.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3012
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ua.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2924
3013
  i18nResolved: {
2925
3014
  ...r,
2926
3015
  usedParams: this.getUsedParamsDetails(n)
@@ -2930,7 +3019,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2930
3019
  }
2931
3020
  resolve(e, t = {}) {
2932
3021
  let n, r, i, a, o;
2933
- return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Xi(e, {
3022
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? pa(e, {
2934
3023
  ...this.options,
2935
3024
  ...t
2936
3025
  }) : e)), e.forEach((e) => {
@@ -2941,7 +3030,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2941
3030
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2942
3031
  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);
2943
3032
  l.forEach((e) => {
2944
- this.isValidLookup(n) || (o = e, !Zi[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Zi[`${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) => {
3033
+ this.isValidLookup(n) || (o = e, !ma[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (ma[`${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) => {
2945
3034
  if (this.isValidLookup(n)) return;
2946
3035
  a = r;
2947
3036
  let o = [c];
@@ -3004,17 +3093,17 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3004
3093
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
3005
3094
  return !1;
3006
3095
  }
3007
- }, ea = class {
3096
+ }, _a = class {
3008
3097
  constructor(e) {
3009
3098
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
3010
3099
  }
3011
3100
  getScriptPartFromCode(e) {
3012
- if (e = Ui(e), !e || e.indexOf("-") < 0) return null;
3101
+ if (e = oa(e), !e || e.indexOf("-") < 0) return null;
3013
3102
  let t = e.split("-");
3014
3103
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3015
3104
  }
3016
3105
  getLanguagePartFromCode(e) {
3017
- if (e = Ui(e), !e || e.indexOf("-") < 0) return e;
3106
+ if (e = oa(e), !e || e.indexOf("-") < 0) return e;
3018
3107
  let t = e.split("-");
3019
3108
  return this.formatLanguageCode(t[0]);
3020
3109
  }
@@ -3064,17 +3153,17 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3064
3153
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3065
3154
  }), r;
3066
3155
  }
3067
- }, ta = {
3156
+ }, va = {
3068
3157
  zero: 0,
3069
3158
  one: 1,
3070
3159
  two: 2,
3071
3160
  few: 3,
3072
3161
  many: 4,
3073
3162
  other: 5
3074
- }, na = {
3163
+ }, ya = {
3075
3164
  select: (e) => e === 1 ? "one" : "other",
3076
3165
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3077
- }, ra = class {
3166
+ }, ba = class {
3078
3167
  constructor(e, t = {}) {
3079
3168
  this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3080
3169
  }
@@ -3082,7 +3171,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3082
3171
  this.pluralRulesCache = {};
3083
3172
  }
3084
3173
  getRule(e, t = {}) {
3085
- let n = Ui(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3174
+ let n = oa(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3086
3175
  cleanedCode: n,
3087
3176
  type: r
3088
3177
  });
@@ -3091,8 +3180,8 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3091
3180
  try {
3092
3181
  a = new Intl.PluralRules(n, { type: r });
3093
3182
  } catch {
3094
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), na;
3095
- if (!e.match(/-|_/)) return na;
3183
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), ya;
3184
+ if (!e.match(/-|_/)) return ya;
3096
3185
  let n = this.languageUtils.getLanguagePartFromCode(e);
3097
3186
  a = this.getRule(n, t);
3098
3187
  }
@@ -3107,23 +3196,23 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3107
3196
  }
3108
3197
  getSuffixes(e, t = {}) {
3109
3198
  let n = this.getRule(e, t);
3110
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => ta[e] - ta[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3199
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => va[e] - va[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3111
3200
  }
3112
3201
  getSuffix(e, t, n = {}) {
3113
3202
  let r = this.getRule(e, n);
3114
3203
  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));
3115
3204
  }
3116
- }, ia = (e, t, n, r = ".", i = !0) => {
3117
- let a = Ni(e, t, n);
3118
- return !a && i && Z(n) && (a = Hi(e, n, r), a === void 0 && (a = Hi(t, n, r))), a;
3119
- }, aa = (e) => e.replace(/\$/g, "$$$$"), oa = class {
3205
+ }, xa = (e, t, n, r = ".", i = !0) => {
3206
+ let a = Xi(e, t, n);
3207
+ return !a && i && Z(n) && (a = aa(e, n, r), a === void 0 && (a = aa(t, n, r))), a;
3208
+ }, Sa = (e) => e.replace(/\$/g, "$$$$"), Ca = class {
3120
3209
  constructor(e = {}) {
3121
3210
  this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3122
3211
  }
3123
3212
  init(e = {}) {
3124
3213
  e.interpolation ||= { escapeValue: !0 };
3125
3214
  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: ee } = e.interpolation;
3126
- this.escape = t === void 0 ? Li : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Fi(i) : a || "{{", this.suffix = o ? Fi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Fi(d) : f || Fi("$t("), this.nestingSuffix = p ? Fi(p) : m || Fi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3215
+ this.escape = t === void 0 ? ea : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Qi(i) : a || "{{", this.suffix = o ? Qi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Qi(d) : f || Qi("$t("), this.nestingSuffix = p ? Qi(p) : m || Qi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3127
3216
  }
3128
3217
  reset() {
3129
3218
  this.options && this.init(this.options);
@@ -3135,7 +3224,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3135
3224
  interpolate(e, t, n, r) {
3136
3225
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3137
3226
  if (e.indexOf(this.formatSeparator) < 0) {
3138
- let i = ia(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3227
+ let i = xa(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3139
3228
  return this.alwaysFormat ? this.format(i, void 0, n, {
3140
3229
  ...r,
3141
3230
  ...t,
@@ -3143,7 +3232,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3143
3232
  }) : i;
3144
3233
  }
3145
3234
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3146
- return this.format(ia(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3235
+ return this.format(xa(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3147
3236
  ...r,
3148
3237
  ...t,
3149
3238
  interpolationkey: a
@@ -3153,10 +3242,10 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3153
3242
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3154
3243
  return [{
3155
3244
  regex: this.regexpUnescape,
3156
- safeValue: (e) => aa(e)
3245
+ safeValue: (e) => Sa(e)
3157
3246
  }, {
3158
3247
  regex: this.regexp,
3159
- safeValue: (e) => this.escapeValue ? aa(this.escape(e)) : aa(e)
3248
+ safeValue: (e) => this.escapeValue ? Sa(this.escape(e)) : Sa(e)
3160
3249
  }].forEach((t) => {
3161
3250
  for (o = 0; i = t.regex.exec(e);) {
3162
3251
  let n = i[1].trim();
@@ -3168,7 +3257,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3168
3257
  a = i[0];
3169
3258
  continue;
3170
3259
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3171
- else !Z(a) && !this.useRawValueToEscape && (a = wi(a));
3260
+ else !Z(a) && !this.useRawValueToEscape && (a = Vi(a));
3172
3261
  let s = t.safeValue(a);
3173
3262
  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;
3174
3263
  }
@@ -3178,7 +3267,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3178
3267
  let r, i, a, o = (e, t) => {
3179
3268
  let n = this.nestingOptionsSeparator;
3180
3269
  if (e.indexOf(n) < 0) return e;
3181
- let r = e.split(RegExp(`${Fi(n)}[ ]*{`)), i = `{${r[1]}`;
3270
+ let r = e.split(RegExp(`${Qi(n)}[ ]*{`)), i = `{${r[1]}`;
3182
3271
  e = r[0], i = this.interpolate(i, a);
3183
3272
  let o = i.match(/'/g), s = i.match(/"/g);
3184
3273
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -3197,14 +3286,14 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3197
3286
  a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3198
3287
  let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3199
3288
  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;
3200
- Z(i) || (i = wi(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, {
3289
+ Z(i) || (i = Vi(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, {
3201
3290
  ...n,
3202
3291
  interpolationkey: r[1].trim()
3203
3292
  }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3204
3293
  }
3205
3294
  return e;
3206
3295
  }
3207
- }, sa = (e) => {
3296
+ }, wa = (e) => {
3208
3297
  let t = e.toLowerCase().trim(), n = {};
3209
3298
  if (e.indexOf("(") > -1) {
3210
3299
  let r = e.split("(");
@@ -3221,7 +3310,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3221
3310
  formatName: t,
3222
3311
  formatOptions: n
3223
3312
  };
3224
- }, ca = (e) => {
3313
+ }, Ta = (e) => {
3225
3314
  let t = {};
3226
3315
  return (n, r, i) => {
3227
3316
  let a = i;
@@ -3230,15 +3319,15 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3230
3319
  [i.interpolationkey]: void 0
3231
3320
  });
3232
3321
  let o = r + JSON.stringify(a), s = t[o];
3233
- return s || (s = e(Ui(r), i), t[o] = s), s(n);
3322
+ return s || (s = e(oa(r), i), t[o] = s), s(n);
3234
3323
  };
3235
- }, la = (e) => (t, n, r) => e(Ui(n), r)(t), ua = class {
3324
+ }, Ea = (e) => (t, n, r) => e(oa(n), r)(t), Da = class {
3236
3325
  constructor(e = {}) {
3237
3326
  this.logger = Q.create("formatter"), this.options = e, this.init(e);
3238
3327
  }
3239
3328
  init(e, t = { interpolation: {} }) {
3240
3329
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3241
- let n = t.cacheInBuiltFormats ? ca : la;
3330
+ let n = t.cacheInBuiltFormats ? Ta : Ea;
3242
3331
  this.formats = {
3243
3332
  number: n((e, t) => {
3244
3333
  let n = new Intl.NumberFormat(e, { ...t });
@@ -3269,7 +3358,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3269
3358
  this.formats[e.toLowerCase().trim()] = t;
3270
3359
  }
3271
3360
  addCached(e, t) {
3272
- this.formats[e.toLowerCase().trim()] = ca(t);
3361
+ this.formats[e.toLowerCase().trim()] = Ta(t);
3273
3362
  }
3274
3363
  format(e, t, n, r = {}) {
3275
3364
  let i = t.split(this.formatSeparator);
@@ -3278,7 +3367,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3278
3367
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3279
3368
  }
3280
3369
  return i.reduce((e, t) => {
3281
- let { formatName: i, formatOptions: a } = sa(t);
3370
+ let { formatName: i, formatOptions: a } = wa(t);
3282
3371
  if (this.formats[i]) {
3283
3372
  let t = e;
3284
3373
  try {
@@ -3296,9 +3385,9 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3296
3385
  return e;
3297
3386
  }, e);
3298
3387
  }
3299
- }, da = (e, t) => {
3388
+ }, Oa = (e, t) => {
3300
3389
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3301
- }, fa = class extends Gi {
3390
+ }, ka = class extends ca {
3302
3391
  constructor(e, t, n, r = {}) {
3303
3392
  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);
3304
3393
  }
@@ -3328,7 +3417,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3328
3417
  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);
3329
3418
  let o = {};
3330
3419
  this.queue.forEach((n) => {
3331
- ji(n.loaded, [i], a), da(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3420
+ Ji(n.loaded, [i], a), Oa(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3332
3421
  o[e] || (o[e] = {});
3333
3422
  let t = n.loaded[e];
3334
3423
  t.length && t.forEach((t) => {
@@ -3418,7 +3507,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3418
3507
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
3419
3508
  }
3420
3509
  }
3421
- }, pa = () => ({
3510
+ }, Aa = () => ({
3422
3511
  debug: !1,
3423
3512
  initAsync: !0,
3424
3513
  ns: ["translation"],
@@ -3475,15 +3564,15 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3475
3564
  skipOnVariables: !0
3476
3565
  },
3477
3566
  cacheInBuiltFormats: !0
3478
- }), ma = (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), ha = () => {}, ga = (e) => {
3567
+ }), ja = (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), Ma = () => {}, Na = (e) => {
3479
3568
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3480
3569
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
3481
3570
  });
3482
- }, _a = "__i18next_supportNoticeShown", va = () => !!(typeof globalThis < "u" && globalThis[_a] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ya = () => {
3483
- typeof globalThis < "u" && (globalThis[_a] = !0);
3484
- }, ba = (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 Gi {
3571
+ }, Pa = "__i18next_supportNoticeShown", Fa = () => !!(typeof globalThis < "u" && globalThis[Pa] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Ia = () => {
3572
+ typeof globalThis < "u" && (globalThis[Pa] = !0);
3573
+ }, La = (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 ca {
3485
3574
  constructor(e = {}, t) {
3486
- if (super(), this.options = ma(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, ga(this), t && !this.isInitialized && !e.isClone) {
3575
+ if (super(), this.options = ja(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Na(this), t && !this.isInitialized && !e.isClone) {
3487
3576
  if (!this.options.initAsync) return this.init(e, t), this;
3488
3577
  setTimeout(() => {
3489
3578
  this.init(e, t);
@@ -3492,35 +3581,35 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3492
3581
  }
3493
3582
  init(e = {}, t) {
3494
3583
  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]));
3495
- let n = pa();
3584
+ let n = Aa();
3496
3585
  this.options = {
3497
3586
  ...n,
3498
3587
  ...this.options,
3499
- ...ma(e)
3588
+ ...ja(e)
3500
3589
  }, this.options.interpolation = {
3501
3590
  ...n.interpolation,
3502
3591
  ...this.options.interpolation
3503
- }, 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 && !ba(this) && !va() && (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 💙"), ya());
3592
+ }, 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 && !La(this) && !Fa() && (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 💙"), Ia());
3504
3593
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3505
3594
  if (!this.options.isClone) {
3506
3595
  this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3507
3596
  let e;
3508
- e = this.modules.formatter ? this.modules.formatter : ua;
3509
- let t = new ea(this.options);
3510
- this.store = new Ki(this.options.resources, this.options);
3597
+ e = this.modules.formatter ? this.modules.formatter : Da;
3598
+ let t = new _a(this.options);
3599
+ this.store = new la(this.options.resources, this.options);
3511
3600
  let i = this.services;
3512
- i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ra(t, {
3601
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ba(t, {
3513
3602
  prepend: this.options.pluralSeparator,
3514
3603
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3515
- }), 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 oa(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new fa(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3604
+ }), 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 Ca(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new ka(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3516
3605
  this.emit(e, ...t);
3517
- }), 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 $i(this.services, this.options), this.translator.on("*", (e, ...t) => {
3606
+ }), 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 ga(this.services, this.options), this.translator.on("*", (e, ...t) => {
3518
3607
  this.emit(e, ...t);
3519
3608
  }), this.modules.external.forEach((e) => {
3520
3609
  e.init && e.init(this);
3521
3610
  });
3522
3611
  }
3523
- if (this.format = this.options.interpolation.format, t ||= ha, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3612
+ if (this.format = this.options.interpolation.format, t ||= Ma, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3524
3613
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3525
3614
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3526
3615
  }
@@ -3539,7 +3628,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3539
3628
  ].forEach((e) => {
3540
3629
  this[e] = (...t) => (this.store[e](...t), this);
3541
3630
  });
3542
- let i = Ci(), a = () => {
3631
+ let i = Bi(), a = () => {
3543
3632
  let e = (e, n) => {
3544
3633
  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);
3545
3634
  };
@@ -3548,7 +3637,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3548
3637
  };
3549
3638
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3550
3639
  }
3551
- loadResources(e, t = ha) {
3640
+ loadResources(e, t = Ma) {
3552
3641
  let n = t, r = Z(e) ? e : this.language;
3553
3642
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3554
3643
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -3563,15 +3652,15 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3563
3652
  } else n(null);
3564
3653
  }
3565
3654
  reloadResources(e, t, n) {
3566
- let r = Ci();
3567
- 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 ||= ha, this.services.backendConnector.reload(e, t, (e) => {
3655
+ let r = Bi();
3656
+ 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 ||= Ma, this.services.backendConnector.reload(e, t, (e) => {
3568
3657
  r.resolve(), n(e);
3569
3658
  }), r;
3570
3659
  }
3571
3660
  use(e) {
3572
3661
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3573
3662
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3574
- 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" && qi.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3663
+ 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" && ua.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3575
3664
  }
3576
3665
  setResolvedLanguage(e) {
3577
3666
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -3587,7 +3676,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3587
3676
  }
3588
3677
  changeLanguage(e, t) {
3589
3678
  this.isLanguageChangingTo = e;
3590
- let n = Ci();
3679
+ let n = Bi();
3591
3680
  this.emit("languageChanging", e);
3592
3681
  let r = (e) => {
3593
3682
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -3610,9 +3699,9 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3610
3699
  ...this.options,
3611
3700
  ...a
3612
3701
  };
3613
- typeof a.keyPrefix == "function" && (a.keyPrefix = Xi(a.keyPrefix, o));
3702
+ typeof a.keyPrefix == "function" && (a.keyPrefix = pa(a.keyPrefix, o));
3614
3703
  let s = this.options.keySeparator || ".", c;
3615
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = Xi(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = Xi(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3704
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = pa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = pa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3616
3705
  };
3617
3706
  return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3618
3707
  }
@@ -3641,7 +3730,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3641
3730
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3642
3731
  }
3643
3732
  loadNamespaces(e, t) {
3644
- let n = Ci();
3733
+ let n = Bi();
3645
3734
  return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3646
3735
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3647
3736
  }), this.loadResources((e) => {
@@ -3649,7 +3738,7 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3649
3738
  }), n) : (t && t(), Promise.resolve());
3650
3739
  }
3651
3740
  loadLanguages(e, t) {
3652
- let n = Ci();
3741
+ let n = Bi();
3653
3742
  Z(e) && (e = [e]);
3654
3743
  let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3655
3744
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
@@ -3665,14 +3754,14 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3665
3754
  if (e && e.direction) return e.direction;
3666
3755
  }
3667
3756
  } catch {}
3668
- 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 ea(pa());
3757
+ 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 _a(Aa());
3669
3758
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3670
3759
  }
3671
3760
  static createInstance(t = {}, n) {
3672
3761
  let r = new e(t, n);
3673
3762
  return r.createInstance = e.createInstance, r;
3674
3763
  }
3675
- cloneInstance(t = {}, n = ha) {
3764
+ cloneInstance(t = {}, n = Ma) {
3676
3765
  let r = t.forkResourceStore;
3677
3766
  r && delete t.forkResourceStore;
3678
3767
  let i = {
@@ -3686,18 +3775,18 @@ var Zi = {}, Qi = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3686
3775
  "language"
3687
3776
  ].forEach((e) => {
3688
3777
  a[e] = this[e];
3689
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Ki(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) {
3778
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new la(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) {
3690
3779
  let e = {
3691
- ...pa().interpolation,
3780
+ ...Aa().interpolation,
3692
3781
  ...this.options.interpolation,
3693
3782
  ...t.interpolation
3694
3783
  }, n = {
3695
3784
  ...i,
3696
3785
  interpolation: e
3697
3786
  };
3698
- a.services.interpolator = new oa(n);
3787
+ a.services.interpolator = new Ca(n);
3699
3788
  }
3700
- return a.translator = new $i(a.services, i), a.translator.on("*", (e, ...t) => {
3789
+ return a.translator = new ga(a.services, i), a.translator.on("*", (e, ...t) => {
3701
3790
  a.emit(e, ...t);
3702
3791
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3703
3792
  }
@@ -3718,13 +3807,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
3718
3807
  lng: "en",
3719
3808
  showSupportNotice: !1,
3720
3809
  resources: {
3721
- en: xi,
3722
- es: Si
3810
+ en: Ri,
3811
+ es: zi
3723
3812
  }
3724
3813
  });
3725
3814
  //#endregion
3726
3815
  //#region src/i18n.ts
3727
- var { translator: xa } = {
3816
+ var { translator: Ra } = {
3728
3817
  translator: {
3729
3818
  ...$,
3730
3819
  t: (e, t) => {
@@ -3756,23 +3845,23 @@ var { translator: xa } = {
3756
3845
  label: "Spanish"
3757
3846
  }]
3758
3847
  };
3759
- function Sa(e, t) {
3760
- return xa.t(`translation:simpleCloze:${e}`, { lng: t });
3848
+ function za(e, t) {
3849
+ return Ra.t(`translation:simpleCloze:${e}`, { lng: t });
3761
3850
  }
3762
3851
  //#endregion
3763
3852
  //#region src/print/Print.svelte
3764
- var Ca = /* @__PURE__ */ cr("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), wa = /* @__PURE__ */ cr("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Ta = /* @__PURE__ */ cr("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ea = /* @__PURE__ */ cr("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Da = /* @__PURE__ */ cr("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Oa = {
3853
+ var Ba = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Va = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Ha = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ua = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Wa = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Ga = {
3765
3854
  hash: "svelte-1fx5wwa",
3766
3855
  code: "\n /* Self-contained: print players ship no Tailwind or CSS reset. */.simple-cloze-print.svelte-1fx5wwa {padding:1rem;color:var(--pie-text, black);}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa,\n .simple-cloze-print-prompt.svelte-1fx5wwa {margin-bottom:1rem;}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa p,\n .simple-cloze-print-prompt.svelte-1fx5wwa p {margin:0.5em 0;}.simple-cloze-print-prompt.svelte-1fx5wwa strong {font-weight:600;}.simple-cloze-print-response.svelte-1fx5wwa {display:inline-flex;align-items:baseline;gap:0.5rem;}.simple-cloze-print-key-label.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;font-weight:600;}.simple-cloze-print-blank.svelte-1fx5wwa {display:inline-block;min-width:12rem;min-height:1.5rem;padding:0.5rem 0.75rem;border-bottom:2px solid var(--pie-text, black);}.simple-cloze-print-blank--key.svelte-1fx5wwa {min-width:6rem;font-weight:600;}\n\n @media print {.simple-cloze-print.svelte-1fx5wwa {padding:0;}\n }"
3767
3856
  };
3768
- function ka(e, t) {
3769
- Ge(t, !0), Er(e, Oa);
3770
- let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ pt(() => r()?.role === "instructor"), a = /* @__PURE__ */ pt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ pt(() => bi(n()?.correctAnswer)), s = /* @__PURE__ */ pt(() => X(i) && !!X(o)), c = /* @__PURE__ */ pt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3771
- pn(() => {
3857
+ function Ka(e, t) {
3858
+ We(t, !0), wr(e, Ga);
3859
+ let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Li(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3860
+ dn(() => {
3772
3861
  if (!X(l) || !X(a)) return;
3773
3862
  let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
3774
3863
  try {
3775
- Promise.resolve(fi(X(l))).catch(e);
3864
+ Promise.resolve(ki(X(l))).catch(e);
3776
3865
  } catch (t) {
3777
3866
  e(t);
3778
3867
  }
@@ -3782,49 +3871,49 @@ function ka(e, t) {
3782
3871
  return n();
3783
3872
  },
3784
3873
  set model(e = null) {
3785
- n(e), At();
3874
+ n(e), Et();
3786
3875
  },
3787
3876
  get options() {
3788
3877
  return r();
3789
3878
  },
3790
3879
  set options(e = null) {
3791
- r(e), At();
3880
+ r(e), Et();
3792
3881
  }
3793
- }, d = Da(), f = $t(d), p = (e) => {
3794
- var t = Ca();
3795
- Tr(t, () => X(c), !0), Ee(t), lr(e, t);
3882
+ }, d = Wa(), f = Zt(d), p = (e) => {
3883
+ var t = Ba();
3884
+ Cr(t, () => X(c), !0), Te(t), sr(e, t);
3796
3885
  };
3797
- wr(f, (e) => {
3886
+ Sr(f, (e) => {
3798
3887
  X(c) && e(p);
3799
3888
  });
3800
- var m = nn(f, 2), h = (e) => {
3801
- var t = wa();
3802
- Tr(t, () => X(a), !0), Ee(t), Fr(t, (e) => N(l, e), () => X(l)), lr(e, t);
3889
+ var m = en(f, 2), h = (e) => {
3890
+ var t = Va();
3891
+ Cr(t, () => X(a), !0), Te(t), Nr(t, (e) => N(l, e), () => X(l)), sr(e, t);
3803
3892
  };
3804
- wr(m, (e) => {
3893
+ Sr(m, (e) => {
3805
3894
  X(a) && e(h);
3806
3895
  });
3807
- var g = nn(m, 2), ee = $t(g), _ = (e) => {
3808
- var t = Ta(), r = en(t), i = tn(r, !0), a = tn(nn(r, 2), !0);
3809
- bn((e) => {
3810
- gr(i, e), gr(a, X(o));
3811
- }, [() => Sa("printCorrectAnswer", n()?.language)]), lr(e, t);
3896
+ var g = en(m, 2), ee = Zt(g), _ = (e) => {
3897
+ var t = Ha(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3898
+ vn((e) => {
3899
+ mr(i, e), mr(a, X(o));
3900
+ }, [() => za("printCorrectAnswer", n()?.language)]), sr(e, t);
3812
3901
  }, v = (e) => {
3813
- var t = Ea();
3814
- bn((e) => Ar(t, "aria-label", e), [() => Sa("printAnswerBlank", n()?.language)]), lr(e, t);
3902
+ var t = Ua();
3903
+ vn((e) => Or(t, "aria-label", e), [() => za("printAnswerBlank", n()?.language)]), sr(e, t);
3815
3904
  };
3816
- return wr(ee, (e) => {
3905
+ return Sr(ee, (e) => {
3817
3906
  X(s) ? e(_) : e(v, -1);
3818
- }), Ee(g), Ee(d), lr(e, d), Ke(u);
3907
+ }), Te(g), Te(d), sr(e, d), Ge(u);
3819
3908
  }
3820
- Hr(ka, {
3909
+ Hr(Ka, {
3821
3910
  model: { type: "Object" },
3822
3911
  options: { type: "Object" }
3823
3912
  }, [], []);
3824
3913
  //#endregion
3825
3914
  //#region src/print/index.ts
3826
- var Aa = ka.element;
3915
+ var qa = Ka.element;
3827
3916
  //#endregion
3828
- export { Aa as default };
3917
+ export { qa as default };
3829
3918
 
3830
3919
  //# sourceMappingURL=print.js.map