@pie-players/pie-tool-tts-inline 0.3.68 → 0.3.69

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.
@@ -1,8 +1,8 @@
1
1
  import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, catalogOwnerContextFor as t, connectToolRegionScopeContext as n, connectToolRuntimeContext as r, connectToolShellContext as i, normalizeTTSSpeedControlOptions as a } from "@pie-players/pie-assessment-toolkit";
2
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/disclose-version.js
2
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/disclose-version.js
3
3
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
4
4
  //#endregion
5
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/constants.js
5
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/constants.js
6
6
  var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf, b = Object.isExtensible, x = () => {};
7
7
  function S(e) {
8
8
  for (var t = 0; t < e.length; t++) e[t]();
@@ -22,7 +22,7 @@ var C = 1024, w = 2048, te = 4096, T = 8192, E = 16384, ne = 32768, re = 1 << 25
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
23
  }(), pe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
24
  //#endregion
25
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/errors.js
25
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/errors.js
26
26
  function me() {
27
27
  throw Error("https://svelte.dev/e/async_derived_orphan");
28
28
  }
@@ -69,7 +69,7 @@ function Oe() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
71
  //#endregion
72
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/hydration.js
72
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/hydration.js
73
73
  var P = !1;
74
74
  function F(e) {
75
75
  P = e;
@@ -80,17 +80,17 @@ function L(e) {
80
80
  return I = e;
81
81
  }
82
82
  function ke() {
83
- return L(/* @__PURE__ */ Qt(I));
83
+ return L(/* @__PURE__ */ Zt(I));
84
84
  }
85
85
  function Ae(e) {
86
86
  if (P) {
87
- if (/* @__PURE__ */ Qt(I) !== null) throw De(), o;
87
+ if (/* @__PURE__ */ Zt(I) !== null) throw De(), o;
88
88
  I = e;
89
89
  }
90
90
  }
91
91
  function je(e = 1) {
92
92
  if (P) {
93
- for (var t = e, n = I; t--;) n = /* @__PURE__ */ Qt(n);
93
+ for (var t = e, n = I; t--;) n = /* @__PURE__ */ Zt(n);
94
94
  I = n;
95
95
  }
96
96
  }
@@ -103,7 +103,7 @@ function Me(e = !0) {
103
103
  --t;
104
104
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
105
105
  }
106
- var i = /* @__PURE__ */ Qt(n);
106
+ var i = /* @__PURE__ */ Zt(n);
107
107
  e && n.remove(), n = i;
108
108
  }
109
109
  }
@@ -112,7 +112,7 @@ function Ne(e) {
112
112
  return e.data;
113
113
  }
114
114
  //#endregion
115
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/equality.js
115
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/equality.js
116
116
  function Pe(e) {
117
117
  return e === this.v;
118
118
  }
@@ -123,7 +123,7 @@ function Ie(e) {
123
123
  return !Fe(e, this.v);
124
124
  }
125
125
  //#endregion
126
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/context.js
126
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/context.js
127
127
  var R = null;
128
128
  function Le(e) {
129
129
  R = e;
@@ -136,7 +136,7 @@ function Re(e, t = !1, n) {
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
- r: q,
139
+ r: J,
140
140
  l: null
141
141
  };
142
142
  }
@@ -144,7 +144,7 @@ function ze(e) {
144
144
  var t = R, n = t.e;
145
145
  if (n !== null) {
146
146
  t.e = null;
147
- for (var r of n) pn(r);
147
+ for (var r of n) fn(r);
148
148
  }
149
149
  return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
150
150
  }
@@ -152,14 +152,14 @@ function Be() {
152
152
  return !0;
153
153
  }
154
154
  //#endregion
155
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/task.js
155
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/task.js
156
156
  var Ve = [];
157
157
  function He() {
158
158
  var e = Ve;
159
159
  Ve = [], S(e);
160
160
  }
161
- function Ue(e) {
162
- if (Ve.length === 0 && !xt) {
161
+ function z(e) {
162
+ if (Ve.length === 0 && !bt) {
163
163
  var t = Ve;
164
164
  queueMicrotask(() => {
165
165
  t === Ve && He();
@@ -167,16 +167,16 @@ function Ue(e) {
167
167
  }
168
168
  Ve.push(e);
169
169
  }
170
- function We() {
170
+ function Ue() {
171
171
  for (; Ve.length > 0;) He();
172
172
  }
173
- function Ge(e) {
174
- var t = q;
175
- if (t === null) return G.f |= se, e;
173
+ function We(e) {
174
+ var t = J;
175
+ if (t === null) return K.f |= se, e;
176
176
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
177
- Ke(e, t);
177
+ Ge(e, t);
178
178
  }
179
- function Ke(e, t) {
179
+ function Ge(e, t) {
180
180
  if (!(t !== null && t.f & 16384)) {
181
181
  for (; t !== null;) {
182
182
  if (t.f & 128) {
@@ -194,63 +194,63 @@ function Ke(e, t) {
194
194
  }
195
195
  }
196
196
  //#endregion
197
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/status.js
198
- var qe = ~(w | te | C);
199
- function z(e, t) {
200
- e.f = e.f & qe | t;
197
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/status.js
198
+ var Ke = ~(w | te | C);
199
+ function B(e, t) {
200
+ e.f = e.f & Ke | t;
201
201
  }
202
- function Je(e) {
203
- e.f & 512 || e.deps === null ? z(e, C) : z(e, te);
202
+ function qe(e) {
203
+ e.f & 512 || e.deps === null ? B(e, C) : B(e, te);
204
204
  }
205
205
  //#endregion
206
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/utils.js
207
- function Ye(e) {
208
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Ye(t.deps));
206
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/utils.js
207
+ function Je(e) {
208
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Je(t.deps));
209
209
  }
210
- function Xe(e, t, n) {
211
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ye(e.deps), z(e, C);
210
+ function Ye(e, t, n) {
211
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Je(e.deps), B(e, C);
212
212
  }
213
213
  //#endregion
214
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/store.js
215
- var Ze = !1;
216
- function Qe(e) {
217
- var t = Ze;
214
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/store.js
215
+ var Xe = !1;
216
+ function Ze(e) {
217
+ var t = Xe;
218
218
  try {
219
- return Ze = !1, [e(), Ze];
219
+ return Xe = !1, [e(), Xe];
220
220
  } finally {
221
- Ze = t;
221
+ Xe = t;
222
222
  }
223
223
  }
224
224
  //#endregion
225
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
226
- function $e(e) {
227
- var t = G, n = q;
228
- K(null), Ln(null);
225
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
226
+ function Qe(e) {
227
+ var t = K, n = J;
228
+ q(null), In(null);
229
229
  try {
230
230
  return e();
231
231
  } finally {
232
- K(t), Ln(n);
232
+ q(t), In(n);
233
233
  }
234
234
  }
235
235
  //#endregion
236
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/reactivity/create-subscriber.js
237
- function et(e) {
238
- let t = 0, n = Rt(0), r;
236
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/reactivity/create-subscriber.js
237
+ function $e(e) {
238
+ let t = 0, n = Lt(0), r;
239
239
  return () => {
240
- un() && (X(n), vn(() => (t === 0 && (r = tr(() => e(() => Ht(n)))), t += 1, () => {
241
- Ue(() => {
242
- --t, t === 0 && (r?.(), r = void 0, Ht(n));
240
+ ln() && (Z(n), _n(() => (t === 0 && (r = er(() => e(() => Vt(n)))), t += 1, () => {
241
+ z(() => {
242
+ --t, t === 0 && (r?.(), r = void 0, Vt(n));
243
243
  });
244
244
  })));
245
245
  };
246
246
  }
247
247
  //#endregion
248
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
249
- var tt = D | O;
250
- function nt(e, t, n, r) {
251
- new rt(e, t, n, r);
248
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
249
+ var et = D | O;
250
+ function tt(e, t, n, r) {
251
+ new nt(e, t, n, r);
252
252
  }
253
- var rt = class {
253
+ var nt = class {
254
254
  parent;
255
255
  is_pending = !1;
256
256
  transform_error;
@@ -269,14 +269,14 @@ var rt = class {
269
269
  #f = /* @__PURE__ */ new Set();
270
270
  #p = /* @__PURE__ */ new Set();
271
271
  #m = null;
272
- #h = et(() => (this.#m = Rt(this.#l), () => {
272
+ #h = $e(() => (this.#m = Lt(this.#l), () => {
273
273
  this.#m = null;
274
274
  }));
275
275
  constructor(e, t, n, r) {
276
276
  this.#e = e, this.#n = t, this.#r = (e) => {
277
- var t = q;
277
+ var t = J;
278
278
  t.b = this, t.f |= 128, n(e);
279
- }, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
279
+ }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
280
280
  if (P) {
281
281
  let e = this.#t;
282
282
  ke();
@@ -286,18 +286,18 @@ var rt = class {
286
286
  this.#_(t);
287
287
  } else t ? this.#y() : this.#g();
288
288
  } else this.#b();
289
- }, tt), P && (this.#e = I);
289
+ }, et), P && (this.#e = I);
290
290
  }
291
291
  #g() {
292
292
  try {
293
- this.#a = xn(() => this.#r(this.#e));
293
+ this.#a = bn(() => this.#r(this.#e));
294
294
  } catch (e) {
295
295
  this.error(e);
296
296
  }
297
297
  }
298
298
  #_(e) {
299
299
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
300
- Ue(r), t && (this.#s = xn(() => {
300
+ z(r), t && (this.#s = bn(() => {
301
301
  t(this.#e, () => e, () => n);
302
302
  }));
303
303
  }
@@ -308,7 +308,7 @@ var rt = class {
308
308
  Oe();
309
309
  return;
310
310
  }
311
- t = !0, n && Te(), this.#s !== null && Dn(this.#s, () => {
311
+ t = !0, n && Te(), this.#s !== null && En(this.#s, () => {
312
312
  this.#s = null;
313
313
  }), this.#S(() => {
314
314
  this.#b();
@@ -320,30 +320,30 @@ var rt = class {
320
320
  try {
321
321
  n = !0, this.#n.onerror?.(e, r), n = !1;
322
322
  } catch (e) {
323
- Ke(e, this.#i && this.#i.parent);
323
+ Ge(e, this.#i && this.#i.parent);
324
324
  }
325
325
  }
326
326
  };
327
327
  }
328
328
  #y() {
329
329
  let e = this.#n.pending;
330
- e && (this.is_pending = !0, this.#o = xn(() => e(this.#e)), Ue(() => {
331
- var e = this.#c = document.createDocumentFragment(), t = Xt();
332
- e.append(t), this.#a = this.#S(() => xn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
330
+ e && (this.is_pending = !0, this.#o = bn(() => e(this.#e)), z(() => {
331
+ var e = this.#c = document.createDocumentFragment(), t = Yt();
332
+ e.append(t), this.#a = this.#S(() => bn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
333
333
  this.#o = null;
334
- }), this.#x(V));
334
+ }), this.#x(H));
335
335
  }));
336
336
  }
337
337
  #b() {
338
338
  try {
339
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = xn(() => {
339
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = bn(() => {
340
340
  this.#r(this.#e);
341
341
  }), this.#u > 0) {
342
342
  var e = this.#c = document.createDocumentFragment();
343
- jn(this.#a, e);
343
+ An(this.#a, e);
344
344
  let t = this.#n.pending;
345
- this.#o = xn(() => t(this.#e));
346
- } else this.#x(V);
345
+ this.#o = bn(() => t(this.#e));
346
+ } else this.#x(H);
347
347
  } catch (e) {
348
348
  this.error(e);
349
349
  }
@@ -352,7 +352,7 @@ var rt = class {
352
352
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
353
353
  }
354
354
  defer_effect(e) {
355
- Xe(e, this.#f, this.#p);
355
+ Ye(e, this.#f, this.#p);
356
356
  }
357
357
  is_rendered() {
358
358
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -361,14 +361,14 @@ var rt = class {
361
361
  return !!this.#n.pending;
362
362
  }
363
363
  #S(e) {
364
- var t = q, n = G, r = R;
365
- Ln(this.#i), K(this.#i), Le(this.#i.ctx);
364
+ var t = J, n = K, r = R;
365
+ In(this.#i), q(this.#i), Le(this.#i.ctx);
366
366
  try {
367
- return Dt.ensure(), e();
367
+ return Et.ensure(), e();
368
368
  } catch (e) {
369
- return Ge(e), null;
369
+ return We(e), null;
370
370
  } finally {
371
- Ln(t), K(n), Le(r);
371
+ In(t), q(n), Le(r);
372
372
  }
373
373
  }
374
374
  #C(e, t) {
@@ -376,103 +376,103 @@ var rt = class {
376
376
  this.parent && this.parent.#C(e, t);
377
377
  return;
378
378
  }
379
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
379
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
380
380
  this.#o = null;
381
381
  }), this.#c &&= (this.#e.before(this.#c), null));
382
382
  }
383
383
  update_pending_count(e, t) {
384
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ue(() => {
385
- this.#d = !1, this.#m && Bt(this.#m, this.#l);
384
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, z(() => {
385
+ this.#d = !1, this.#m && zt(this.#m, this.#l);
386
386
  }));
387
387
  }
388
388
  get_effect_pending() {
389
- return this.#h(), X(this.#m);
389
+ return this.#h(), Z(this.#m);
390
390
  }
391
391
  error(e) {
392
392
  if (!this.#n.onerror && !this.#n.failed) throw e;
393
- V?.is_fork ? (this.#a && V.skip_effect(this.#a), this.#o && V.skip_effect(this.#o), this.#s && V.skip_effect(this.#s), V.oncommit(() => {
393
+ H?.is_fork ? (this.#a && H.skip_effect(this.#a), this.#o && H.skip_effect(this.#o), this.#s && H.skip_effect(this.#s), H.oncommit(() => {
394
394
  this.#w(e);
395
395
  })) : this.#w(e);
396
396
  }
397
397
  #w(e) {
398
- this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), P && (L(this.#t), je(), L(Me()));
398
+ this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), P && (L(this.#t), je(), L(Me()));
399
399
  let t = this.#n.failed, n = (e) => {
400
400
  let { reset: n, invoke_onerror: r } = this.#v(e);
401
401
  r(), t && (this.#s = this.#S(() => {
402
402
  try {
403
- return xn(() => {
404
- var r = q;
403
+ return bn(() => {
404
+ var r = J;
405
405
  r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
406
406
  });
407
407
  } catch (e) {
408
- return Ke(e, this.#i.parent), null;
408
+ return Ge(e, this.#i.parent), null;
409
409
  }
410
410
  }));
411
411
  };
412
- Ue(() => {
412
+ z(() => {
413
413
  var t;
414
414
  try {
415
415
  t = this.transform_error(e);
416
416
  } catch (e) {
417
- Ke(e, this.#i && this.#i.parent);
417
+ Ge(e, this.#i && this.#i.parent);
418
418
  return;
419
419
  }
420
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Ke(e, this.#i && this.#i.parent)) : n(t);
420
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Ge(e, this.#i && this.#i.parent)) : n(t);
421
421
  });
422
422
  }
423
423
  };
424
424
  //#endregion
425
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/async.js
426
- function it(e, t, n, r) {
427
- let i = Be() ? ct : dt;
425
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/async.js
426
+ function rt(e, t, n, r) {
427
+ let i = Be() ? st : ut;
428
428
  var a = e.filter((e) => !e.settled), o = t.map(i);
429
429
  if (n.length === 0 && a.length === 0) {
430
430
  r(o);
431
431
  return;
432
432
  }
433
- var s = q, c = at(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
433
+ var s = J, c = it(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
434
434
  function u(e) {
435
435
  if (!(s.f & 16384)) {
436
436
  c();
437
437
  try {
438
438
  r([...o, ...e]);
439
439
  } catch (e) {
440
- Ke(e, s);
440
+ Ge(e, s);
441
441
  }
442
- ot();
442
+ at();
443
443
  }
444
444
  }
445
- var d = st();
445
+ var d = ot();
446
446
  if (n.length === 0) {
447
447
  l.then(() => u([])).finally(d);
448
448
  return;
449
449
  }
450
450
  function f() {
451
- Promise.all(n.map((e) => /* @__PURE__ */ ut(e))).then(u).catch((e) => Ke(e, s)).finally(d);
451
+ Promise.all(n.map((e) => /* @__PURE__ */ lt(e))).then(u).catch((e) => Ge(e, s)).finally(d);
452
452
  }
453
453
  l ? l.then(() => {
454
- c(), f(), ot();
454
+ c(), f(), at();
455
455
  }) : f();
456
456
  }
457
- function at() {
458
- var e = q, t = G, n = R, r = V;
457
+ function it() {
458
+ var e = J, t = K, n = R, r = H;
459
459
  return function(i = !0) {
460
- Ln(e), K(t), Le(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
460
+ In(e), q(t), Le(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
461
461
  };
462
462
  }
463
- function ot(e = !0) {
464
- Ln(null), K(null), Le(null), e && V?.deactivate();
463
+ function at(e = !0) {
464
+ In(null), q(null), Le(null), e && H?.deactivate();
465
465
  }
466
- function st() {
467
- var e = q, t = e.b, n = V, r = !!t?.is_rendered();
466
+ function ot() {
467
+ var e = J, t = e.b, n = H, r = !!t?.is_rendered();
468
468
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
469
469
  t?.update_pending_count(-1, n), n.decrement(r, e);
470
470
  };
471
471
  }
472
472
  /*#__NO_SIDE_EFFECTS__*/
473
- function ct(e) {
473
+ function st(e) {
474
474
  var t = 2 | w;
475
- return q !== null && (q.f |= O), {
475
+ return J !== null && (J.f |= O), {
476
476
  ctx: R,
477
477
  deps: null,
478
478
  effects: null,
@@ -483,39 +483,39 @@ function ct(e) {
483
483
  rv: 0,
484
484
  v: s,
485
485
  wv: 0,
486
- parent: q,
486
+ parent: J,
487
487
  ac: null
488
488
  };
489
489
  }
490
- var lt = Symbol("obsolete");
490
+ var ct = Symbol("obsolete");
491
491
  /*#__NO_SIDE_EFFECTS__*/
492
- function ut(e, t, n) {
493
- let r = q;
492
+ function lt(e, t, n) {
493
+ let r = J;
494
494
  r === null && me();
495
- var i = void 0, a = Rt(s), o = !G, c = /* @__PURE__ */ new Set();
496
- return _n(() => {
497
- var t = q, n = ee();
495
+ var i = void 0, a = Lt(s), o = !K, c = /* @__PURE__ */ new Set();
496
+ return gn(() => {
497
+ var t = J, n = ee();
498
498
  i = n.promise;
499
499
  try {
500
500
  Promise.resolve(e()).then(n.resolve, (e) => {
501
501
  e !== fe && n.reject(e);
502
- }).finally(ot);
502
+ }).finally(at);
503
503
  } catch (e) {
504
- n.reject(e), ot();
504
+ n.reject(e), at();
505
505
  }
506
- var s = V;
506
+ var s = H;
507
507
  if (o) {
508
- if (t.f & 32768) var l = st();
509
- if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(lt);
510
- else for (let e of c.values()) e.reject(lt);
508
+ if (t.f & 32768) var l = ot();
509
+ if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(ct);
510
+ else for (let e of c.values()) e.reject(ct);
511
511
  c.add(n), s.async_deriveds.set(t, n);
512
512
  }
513
513
  let u = (e, t = void 0) => {
514
- l?.(), c.delete(n), t !== lt && (s.activate(), t ? (a.f |= se, Bt(a, t)) : (a.f & 8388608 && (a.f ^= se), Bt(a, e)), s.deactivate());
514
+ l?.(), c.delete(n), t !== ct && (s.activate(), t ? (a.f |= se, zt(a, t)) : (a.f & 8388608 && (a.f ^= se), zt(a, e)), s.deactivate());
515
515
  };
516
516
  n.promise.then(u, (e) => u(null, e || "unknown"));
517
- }), dn(() => {
518
- for (let e of c) e.reject(lt);
517
+ }), un(() => {
518
+ for (let e of c) e.reject(ct);
519
519
  }), new Promise((e) => {
520
520
  function t(n) {
521
521
  function r() {
@@ -527,53 +527,53 @@ function ut(e, t, n) {
527
527
  });
528
528
  }
529
529
  /*#__NO_SIDE_EFFECTS__*/
530
- function B(e) {
531
- let t = /* @__PURE__ */ ct(e);
532
- return zn(t), t;
530
+ function V(e) {
531
+ let t = /* @__PURE__ */ st(e);
532
+ return Rn(t), t;
533
533
  }
534
534
  /*#__NO_SIDE_EFFECTS__*/
535
- function dt(e) {
536
- let t = /* @__PURE__ */ ct(e);
535
+ function ut(e) {
536
+ let t = /* @__PURE__ */ st(e);
537
537
  return t.equals = Ie, t;
538
538
  }
539
- function ft(e) {
539
+ function dt(e) {
540
540
  var t = e.effects;
541
541
  if (t !== null) {
542
542
  e.effects = null;
543
- for (var n = 0; n < t.length; n += 1) W(t[n]);
543
+ for (var n = 0; n < t.length; n += 1) G(t[n]);
544
544
  }
545
545
  }
546
- function pt(e) {
547
- var t, n = q, r = e.parent;
548
- if (!Pn && r !== null && e.v !== s && r.f & 24576) return Ee(), e.v;
549
- Ln(r);
546
+ function ft(e) {
547
+ var t, n = J, r = e.parent;
548
+ if (!Nn && r !== null && e.v !== s && r.f & 24576) return Ee(), e.v;
549
+ In(r);
550
550
  try {
551
- e.f &= ~ae, ft(e), t = Yn(e);
551
+ e.f &= ~ae, dt(e), t = Jn(e);
552
552
  } finally {
553
- Ln(n);
553
+ In(n);
554
554
  }
555
555
  return t;
556
556
  }
557
- function mt(e) {
558
- var t = pt(e);
559
- if (!e.equals(t) && (e.wv = Kn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), vt?.capture(e, t, !0)), e.deps === null))) {
560
- z(e, C);
557
+ function pt(e) {
558
+ var t = ft(e);
559
+ if (!e.equals(t) && (e.wv = Gn(), (!H?.is_fork || e.deps === null) && (H === null ? e.v = t : (H.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
560
+ B(e, C);
561
561
  return;
562
562
  }
563
- Pn || (yt === null ? Je(e) : (un() || V?.is_fork) && yt.set(e, t));
563
+ Nn || (vt === null ? qe(e) : (ln() || H?.is_fork) && vt.set(e, t));
564
564
  }
565
- function ht(e) {
566
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $e(() => {
565
+ function mt(e) {
566
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Qe(() => {
567
567
  t.ac.abort(fe), t.ac = null;
568
- }), t.fn !== null && (t.teardown = x), Zn(t, 0), Cn(t));
568
+ }), t.fn !== null && (t.teardown = x), Xn(t, 0), Sn(t));
569
569
  }
570
- function gt(e) {
571
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Qn(t);
570
+ function ht(e) {
571
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Zn(t);
572
572
  }
573
573
  //#endregion
574
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/batch.js
575
- var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct = null, wt = null, Tt = 0, Et = 1, Dt = class e {
576
- id = Et++;
574
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/batch.js
575
+ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St = null, Ct = null, wt = 0, Tt = 1, Et = class e {
576
+ id = Tt++;
577
577
  #e = !1;
578
578
  linked = !0;
579
579
  #t = null;
@@ -595,7 +595,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
595
595
  is_fork = !1;
596
596
  #m = !1;
597
597
  constructor() {
598
- _t === null ? _t = this : (_t.#n = this, this.#t = _t), _t = this;
598
+ gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
599
599
  }
600
600
  #h() {
601
601
  if (this.is_fork) return !0;
@@ -621,31 +621,31 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
621
621
  var n = this.#f.get(e);
622
622
  if (n) {
623
623
  this.#f.delete(e);
624
- for (var r of n.d) z(r, w), t(r);
625
- for (r of n.m) z(r, te), t(r);
624
+ for (var r of n.d) B(r, w), t(r);
625
+ for (r of n.m) B(r, te), t(r);
626
626
  }
627
627
  this.#p.add(e);
628
628
  }
629
629
  #g() {
630
- this.#e = !0, Tt++ > 1e3 && (this.#x(), kt());
631
- for (let e of this.#u) this.#d.delete(e), z(e, w), this.schedule(e);
632
- for (let e of this.#d) z(e, te), this.schedule(e);
630
+ this.#e = !0, wt++ > 1e3 && (this.#x(), Ot());
631
+ for (let e of this.#u) this.#d.delete(e), B(e, w), this.schedule(e);
632
+ for (let e of this.#d) B(e, te), this.schedule(e);
633
633
  let t = this.#c;
634
634
  this.#c = [], this.apply();
635
- var n = Ct = [], r = [], i = wt = [];
635
+ var n = St = [], r = [], i = Ct = [];
636
636
  for (let e of t) try {
637
637
  this.#_(e, n, r);
638
638
  } catch (t) {
639
- throw Pt(e), this.#h() || this.discard(), t;
639
+ throw Nt(e), this.#h() || this.discard(), t;
640
640
  }
641
- if (V = null, i.length > 0) {
641
+ if (H = null, i.length > 0) {
642
642
  var a = e.ensure();
643
643
  for (let e of i) a.schedule(e);
644
644
  }
645
- if (Ct = null, wt = null, this.#h()) {
645
+ if (St = null, Ct = null, this.#h()) {
646
646
  this.#b(r), this.#b(n);
647
- for (let [e, t] of this.#f) Nt(e, t);
648
- i.length > 0 && V.#g();
647
+ for (let [e, t] of this.#f) Mt(e, t);
648
+ i.length > 0 && H.#g();
649
649
  return;
650
650
  }
651
651
  let o = this.#v();
@@ -655,22 +655,22 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
655
655
  }
656
656
  this.#u.clear(), this.#d.clear();
657
657
  for (let e of this.#r) e(this);
658
- this.#r.clear(), vt = this, jt(r), jt(n), vt = null, this.#s?.resolve();
659
- var s = V;
658
+ this.#r.clear(), _t = this, At(r), At(n), _t = null, this.#s?.resolve();
659
+ var s = H;
660
660
  if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
661
661
  if (s !== null) {
662
662
  let e = s;
663
663
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
664
664
  } else s = this;
665
665
  }
666
- s !== null && s.#g();
666
+ s !== null && (Ft.clear(), s.#g());
667
667
  }
668
668
  #_(e, t, n) {
669
669
  e.f ^= C;
670
670
  for (var r = e.first; r !== null;) {
671
671
  var i = r.f, a = !!(i & 96);
672
672
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
673
- a ? r.f ^= C : i & 4 ? t.push(r) : qn(r) && (i & 16 && this.#d.add(r), Qn(r));
673
+ a ? r.f ^= C : i & 4 ? t.push(r) : Kn(r) && (i & 16 && this.#d.add(r), Zn(r));
674
674
  var o = r.first;
675
675
  if (o !== null) {
676
676
  r = o;
@@ -710,36 +710,36 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
710
710
  if (r & 2) t(e);
711
711
  else {
712
712
  var i = e;
713
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, w), this.schedule(i));
713
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), B(i, w), this.schedule(i));
714
714
  }
715
715
  }
716
716
  };
717
717
  for (let e of this.current.keys()) t(e);
718
- this.oncommit(() => e.discard()), e.#x(), V = this, this.#g();
718
+ this.oncommit(() => e.discard()), e.#x(), H = this, this.#g();
719
719
  }
720
720
  #b(e) {
721
- for (var t = 0; t < e.length; t += 1) Xe(e[t], this.#u, this.#d);
721
+ for (var t = 0; t < e.length; t += 1) Ye(e[t], this.#u, this.#d);
722
722
  }
723
723
  capture(e, t, n = !1) {
724
- e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), yt?.set(e, t)), this.is_fork || (e.v = t);
724
+ e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), vt?.set(e, t)), this.is_fork || (e.v = t);
725
725
  }
726
726
  activate() {
727
- V = this;
727
+ H = this;
728
728
  }
729
729
  deactivate() {
730
- V = null, yt = null;
730
+ H = null, vt = null;
731
731
  }
732
732
  flush() {
733
733
  try {
734
- St = !0, V = this, this.#g();
734
+ xt = !0, H = this, this.#g();
735
735
  } finally {
736
- Tt = 0, bt = null, Ct = null, wt = null, St = !1, V = null, yt = null, It.clear();
736
+ wt = 0, yt = null, St = null, Ct = null, xt = !1, H = null, vt = null, Ft.clear();
737
737
  }
738
738
  }
739
739
  discard() {
740
740
  for (let e of this.#i) e(this);
741
741
  this.#i.clear();
742
- for (let e of this.async_deriveds.values()) e.reject(lt);
742
+ for (let e of this.async_deriveds.values()) e.reject(ct);
743
743
  this.#x(), this.#s?.resolve();
744
744
  }
745
745
  register_created_effect(e) {
@@ -756,7 +756,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
756
756
  let e = this.#o.get(t) ?? 0;
757
757
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
758
758
  }
759
- this.#m || (this.#m = !0, Ue(() => {
759
+ this.#m || (this.#m = !0, z(() => {
760
760
  this.#m = !1, this.linked && this.flush();
761
761
  }));
762
762
  }
@@ -775,26 +775,26 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
775
775
  return (this.#s ??= ee()).promise;
776
776
  }
777
777
  static ensure() {
778
- if (V === null) {
779
- let t = V = new e();
780
- !St && !xt && Ue(() => {
778
+ if (H === null) {
779
+ let t = H = new e();
780
+ !xt && !bt && z(() => {
781
781
  t.#e || t.flush();
782
782
  });
783
783
  }
784
- return V;
784
+ return H;
785
785
  }
786
786
  apply() {
787
- yt = null;
787
+ vt = null;
788
788
  }
789
789
  schedule(e) {
790
- if (bt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
790
+ if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
791
791
  e.b.defer_effect(e);
792
792
  return;
793
793
  }
794
794
  for (var t = e; t.parent !== null;) {
795
795
  t = t.parent;
796
796
  var n = t.f;
797
- if (Ct !== null && t === q && (G === null || !(G.f & 2))) return;
797
+ if (St !== null && t === J && (K === null || !(K.f & 2))) return;
798
798
  if (n & 96) {
799
799
  if (!(n & 1024)) return;
800
800
  t.f ^= C;
@@ -805,70 +805,70 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
805
805
  #x() {
806
806
  if (this.linked) {
807
807
  var e = this.#t, t = this.#n;
808
- e === null || (e.#n = t), t === null ? _t = e : t.#t = e, this.linked = !1;
808
+ e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
809
809
  }
810
810
  }
811
811
  };
812
- function Ot(e) {
813
- var t = xt;
814
- xt = !0;
812
+ function Dt(e) {
813
+ var t = bt;
814
+ bt = !0;
815
815
  try {
816
816
  var n;
817
- for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
818
- if (We(), V === null) return n;
819
- V.flush();
817
+ for (e && (H !== null && !H.is_fork && H.flush(), n = e());;) {
818
+ if (Ue(), H === null) return n;
819
+ H.flush();
820
820
  }
821
821
  } finally {
822
- xt = t;
822
+ bt = t;
823
823
  }
824
824
  }
825
- function kt() {
825
+ function Ot() {
826
826
  try {
827
827
  ye();
828
828
  } catch (e) {
829
- Ke(e, bt);
829
+ Ge(e, yt);
830
830
  }
831
831
  }
832
- var At = null;
833
- function jt(e) {
832
+ var kt = null;
833
+ function At(e) {
834
834
  var t = e.length;
835
835
  if (t !== 0) {
836
836
  for (var n = 0; n < t;) {
837
837
  var r = e[n++];
838
- if (!(r.f & 24576) && qn(r) && (At = /* @__PURE__ */ new Set(), Qn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && En(r), At?.size > 0)) {
839
- It.clear();
840
- for (let e of At) {
838
+ if (!(r.f & 24576) && Kn(r) && (kt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), kt?.size > 0)) {
839
+ Ft.clear();
840
+ for (let e of kt) {
841
841
  if (e.f & 24576) continue;
842
842
  let t = [e], n = e.parent;
843
- for (; n !== null;) At.has(n) && (At.delete(n), t.push(n)), n = n.parent;
843
+ for (; n !== null;) kt.has(n) && (kt.delete(n), t.push(n)), n = n.parent;
844
844
  for (let e = t.length - 1; e >= 0; e--) {
845
845
  let n = t[e];
846
- n.f & 24576 || Qn(n);
846
+ n.f & 24576 || Zn(n);
847
847
  }
848
848
  }
849
- At.clear();
849
+ kt.clear();
850
850
  }
851
851
  }
852
- At = null;
852
+ kt = null;
853
853
  }
854
854
  }
855
- function Mt(e) {
856
- V.schedule(e);
855
+ function jt(e) {
856
+ H.schedule(e);
857
857
  }
858
- function Nt(e, t) {
858
+ function Mt(e, t) {
859
859
  if (!(e.f & 32 && e.f & 1024)) {
860
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, C);
861
- for (var n = e.first; n !== null;) Nt(n, t), n = n.next;
860
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), B(e, C);
861
+ for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
862
862
  }
863
863
  }
864
- function Pt(e) {
865
- z(e, C);
866
- for (var t = e.first; t !== null;) Pt(t), t = t.next;
864
+ function Nt(e) {
865
+ B(e, C);
866
+ for (var t = e.first; t !== null;) Nt(t), t = t.next;
867
867
  }
868
868
  //#endregion
869
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/sources.js
870
- var Ft = /* @__PURE__ */ new Set(), It = /* @__PURE__ */ new Map(), Lt = !1;
871
- function Rt(e, t) {
869
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/sources.js
870
+ var Pt = /* @__PURE__ */ new Set(), Ft = /* @__PURE__ */ new Map(), It = !1;
871
+ function Lt(e, t) {
872
872
  return {
873
873
  f: 0,
874
874
  v: e,
@@ -879,99 +879,99 @@ function Rt(e, t) {
879
879
  };
880
880
  }
881
881
  /*#__NO_SIDE_EFFECTS__*/
882
- function H(e, t) {
883
- let n = Rt(e, t);
884
- return zn(n), n;
882
+ function U(e, t) {
883
+ let n = Lt(e, t);
884
+ return Rn(n), n;
885
885
  }
886
886
  /*#__NO_SIDE_EFFECTS__*/
887
- function zt(e, t = !1, n = !0) {
888
- let r = Rt(e);
887
+ function Rt(e, t = !1, n = !0) {
888
+ let r = Lt(e);
889
889
  return t || (r.equals = Ie), r;
890
890
  }
891
- function U(e, t, n = !1) {
892
- return G !== null && (!In || G.f & 131072) && Be() && G.f & 4325394 && (Rn === null || !Rn.has(e)) && we(), Bt(e, n ? Wt(t) : t, wt);
891
+ function W(e, t, n = !1) {
892
+ return K !== null && (!Fn || K.f & 131072) && Be() && K.f & 4325394 && (Ln === null || !Ln.has(e)) && we(), zt(e, n ? Ut(t) : t, Ct);
893
893
  }
894
- function Bt(e, t, n = null) {
894
+ function zt(e, t, n = null) {
895
895
  if (!e.equals(t)) {
896
- It.set(e, Pn ? t : e.v);
897
- var r = Dt.ensure();
896
+ Nn ? Ft.set(e, t) : Ft.has(e) || Ft.set(e, e.v);
897
+ var r = Et.ensure();
898
898
  if (r.capture(e, t), e.f & 2) {
899
899
  let t = e;
900
- e.f & 2048 && pt(t), yt === null && Je(t);
900
+ e.f & 2048 && ft(t), vt === null && qe(t);
901
901
  }
902
- e.wv = Kn(), Ut(e, w, n), Be() && q !== null && q.f & 1024 && !(q.f & 96) && (Bn === null ? Vn([e]) : Bn.push(e)), !r.is_fork && Ft.size > 0 && !Lt && Vt();
902
+ e.wv = Gn(), Ht(e, w, n), Be() && J !== null && J.f & 1024 && !(J.f & 96) && (zn === null ? Bn([e]) : zn.push(e)), !r.is_fork && Pt.size > 0 && !It && Bt();
903
903
  }
904
904
  return t;
905
905
  }
906
- function Vt() {
907
- Lt = !1;
908
- for (let e of Ft) {
909
- e.f & 1024 && z(e, te);
906
+ function Bt() {
907
+ It = !1;
908
+ for (let e of Pt) {
909
+ e.f & 1024 && B(e, te);
910
910
  let t;
911
911
  try {
912
- t = qn(e);
912
+ t = Kn(e);
913
913
  } catch {
914
914
  t = !0;
915
915
  }
916
- t && Qn(e);
916
+ t && Zn(e);
917
917
  }
918
- Ft.clear();
918
+ Pt.clear();
919
919
  }
920
- function Ht(e) {
921
- U(e, e.v + 1);
920
+ function Vt(e) {
921
+ W(e, e.v + 1);
922
922
  }
923
- function Ut(e, t, n) {
923
+ function Ht(e, t, n) {
924
924
  var r = e.reactions;
925
925
  if (r !== null) for (var i = Be(), a = r.length, o = 0; o < a; o++) {
926
926
  var s = r[o], c = s.f;
927
- if (!(!i && s === q)) {
927
+ if (!(!i && s === J)) {
928
928
  var l = (c & w) === 0;
929
- if (l && z(s, t), c & 131072) Ft.add(s);
929
+ if (l && B(s, t), c & 131072) Pt.add(s);
930
930
  else if (c & 2) {
931
931
  var u = s;
932
- yt?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |= ae), Ut(u, te, n));
932
+ vt?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Ht(u, te, n));
933
933
  } else if (l) {
934
934
  var d = s;
935
- c & 16 && At !== null && At.add(d), n === null ? Mt(d) : n.push(d);
935
+ c & 16 && kt !== null && kt.add(d), n === null ? jt(d) : n.push(d);
936
936
  }
937
937
  }
938
938
  }
939
939
  }
940
- function Wt(e) {
940
+ function Ut(e) {
941
941
  if (typeof e != "object" || !e || j in e) return e;
942
942
  let t = y(e);
943
943
  if (t !== _ && t !== v) return e;
944
- var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ H(0), a = null, o = Wn, c = (e) => {
945
- if (Wn === o) return e();
946
- var t = G, n = Wn;
947
- K(null), Gn(o);
944
+ var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ U(0), a = null, o = Un, c = (e) => {
945
+ if (Un === o) return e();
946
+ var t = K, n = Un;
947
+ q(null), Wn(o);
948
948
  var r = e();
949
- return K(t), Gn(n), r;
949
+ return q(t), Wn(n), r;
950
950
  };
951
- return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
951
+ return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
952
952
  defineProperty(e, t, r) {
953
953
  (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Se();
954
954
  var i = n.get(t);
955
955
  return i === void 0 ? c(() => {
956
- var e = /* @__PURE__ */ H(r.value, a);
956
+ var e = /* @__PURE__ */ U(r.value, a);
957
957
  return n.set(t, e), e;
958
- }) : U(i, r.value, !0), !0;
958
+ }) : W(i, r.value, !0), !0;
959
959
  },
960
960
  deleteProperty(e, t) {
961
961
  var r = n.get(t);
962
962
  if (r === void 0) {
963
963
  if (t in e) {
964
- let e = c(() => /* @__PURE__ */ H(s, a));
965
- n.set(t, e), Ht(i);
964
+ let e = c(() => /* @__PURE__ */ U(s, a));
965
+ n.set(t, e), Vt(i);
966
966
  }
967
- } else U(r, s), Ht(i);
967
+ } else W(r, s), Vt(i);
968
968
  return !0;
969
969
  },
970
970
  get(t, r, i) {
971
971
  if (r === j) return e;
972
972
  var o = n.get(r), l = r in t;
973
- if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ H(Wt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
974
- var u = X(o);
973
+ if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ U(Ut(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
974
+ var u = Z(o);
975
975
  return u === s ? void 0 : u;
976
976
  }
977
977
  return Reflect.get(t, r, i);
@@ -980,7 +980,7 @@ function Wt(e) {
980
980
  var r = Reflect.getOwnPropertyDescriptor(e, t);
981
981
  if (r && "value" in r) {
982
982
  var i = n.get(t);
983
- i && (r.value = X(i));
983
+ i && (r.value = Z(i));
984
984
  } else if (r === void 0) {
985
985
  var a = n.get(t), o = a?.v;
986
986
  if (a !== void 0 && o !== s) return {
@@ -995,32 +995,32 @@ function Wt(e) {
995
995
  has(e, t) {
996
996
  if (t === j) return !0;
997
997
  var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
998
- return (r !== void 0 || q !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ H(i ? Wt(e[t]) : s, a)), n.set(t, r)), X(r) === s) ? !1 : i;
998
+ return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ U(i ? Ut(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
999
999
  },
1000
1000
  set(e, t, o, l) {
1001
1001
  var u = n.get(t), d = t in e;
1002
1002
  if (r && t === "length") for (var f = o; f < u.v; f += 1) {
1003
1003
  var p = n.get(f + "");
1004
- p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ H(s, a)), n.set(f + "", p)) : U(p, s);
1004
+ p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ U(s, a)), n.set(f + "", p)) : W(p, s);
1005
1005
  }
1006
- if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ H(void 0, a)), U(u, Wt(o)), n.set(t, u));
1006
+ if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ U(void 0, a)), W(u, Ut(o)), n.set(t, u));
1007
1007
  else {
1008
1008
  d = u.v !== s;
1009
- var m = c(() => Wt(o));
1010
- U(u, m);
1009
+ var m = c(() => Ut(o));
1010
+ W(u, m);
1011
1011
  }
1012
1012
  var g = Reflect.getOwnPropertyDescriptor(e, t);
1013
1013
  if (g?.set && g.set.call(l, o), !d) {
1014
1014
  if (r && typeof t == "string") {
1015
1015
  var _ = n.get("length"), v = Number(t);
1016
- Number.isInteger(v) && v >= _.v && U(_, v + 1);
1016
+ Number.isInteger(v) && v >= _.v && W(_, v + 1);
1017
1017
  }
1018
- Ht(i);
1018
+ Vt(i);
1019
1019
  }
1020
1020
  return !0;
1021
1021
  },
1022
1022
  ownKeys(e) {
1023
- X(i);
1023
+ Z(i);
1024
1024
  var t = Reflect.ownKeys(e).filter((e) => {
1025
1025
  var t = n.get(e);
1026
1026
  return t === void 0 || t.v !== s;
@@ -1033,87 +1033,87 @@ function Wt(e) {
1033
1033
  }
1034
1034
  });
1035
1035
  }
1036
- var Gt, Kt, qt, Jt;
1037
- function Yt() {
1038
- if (Gt === void 0) {
1039
- Gt = window, Kt = /Firefox/.test(navigator.userAgent);
1036
+ var Wt, Gt, Kt, qt;
1037
+ function Jt() {
1038
+ if (Wt === void 0) {
1039
+ Wt = window, Gt = /Firefox/.test(navigator.userAgent);
1040
1040
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1041
- qt = h(t, "firstChild").get, Jt = h(t, "nextSibling").get, b(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), b(n) && (n[de] = void 0);
1041
+ Kt = h(t, "firstChild").get, qt = h(t, "nextSibling").get, b(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), b(n) && (n[de] = void 0);
1042
1042
  }
1043
1043
  }
1044
- function Xt(e = "") {
1044
+ function Yt(e = "") {
1045
1045
  return document.createTextNode(e);
1046
1046
  }
1047
1047
  /*@__NO_SIDE_EFFECTS__*/
1048
- function Zt(e) {
1049
- return qt.call(e);
1048
+ function Xt(e) {
1049
+ return Kt.call(e);
1050
1050
  }
1051
1051
  /*@__NO_SIDE_EFFECTS__*/
1052
- function Qt(e) {
1053
- return Jt.call(e);
1052
+ function Zt(e) {
1053
+ return qt.call(e);
1054
1054
  }
1055
- function $t(e, t) {
1056
- if (!P) return /* @__PURE__ */ Zt(e);
1057
- var n = /* @__PURE__ */ Zt(I);
1058
- if (n === null) n = I.appendChild(Xt());
1055
+ function Qt(e, t) {
1056
+ if (!P) return /* @__PURE__ */ Xt(e);
1057
+ var n = /* @__PURE__ */ Xt(I);
1058
+ if (n === null) n = I.appendChild(Yt());
1059
1059
  else if (t && n.nodeType !== 3) {
1060
- var r = Xt();
1060
+ var r = Yt();
1061
1061
  return n?.before(r), L(r), r;
1062
1062
  }
1063
- return t && on(n), L(n), n;
1063
+ return t && an(n), L(n), n;
1064
1064
  }
1065
- function en(e, t = !1) {
1065
+ function $t(e, t = !1) {
1066
1066
  if (!P) {
1067
- var n = /* @__PURE__ */ Zt(e);
1068
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
1067
+ var n = /* @__PURE__ */ Xt(e);
1068
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Zt(n) : n;
1069
1069
  }
1070
1070
  if (t) {
1071
1071
  if (I?.nodeType !== 3) {
1072
- var r = Xt();
1072
+ var r = Yt();
1073
1073
  return I?.before(r), L(r), r;
1074
1074
  }
1075
- on(I);
1075
+ an(I);
1076
1076
  }
1077
1077
  return I;
1078
1078
  }
1079
- function tn(e, t = 1, n = !1) {
1079
+ function en(e, t = 1, n = !1) {
1080
1080
  let r = P ? I : e;
1081
- for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
1081
+ for (var i; t--;) i = r, r = /* @__PURE__ */ Zt(r);
1082
1082
  if (!P) return r;
1083
1083
  if (n) {
1084
1084
  if (r?.nodeType !== 3) {
1085
- var a = Xt();
1085
+ var a = Yt();
1086
1086
  return r === null ? i?.after(a) : r.before(a), L(a), a;
1087
1087
  }
1088
- on(r);
1088
+ an(r);
1089
1089
  }
1090
1090
  return L(r), r;
1091
1091
  }
1092
- function nn(e) {
1092
+ function tn(e) {
1093
1093
  e.textContent = "";
1094
1094
  }
1095
- function rn() {
1095
+ function nn() {
1096
1096
  return !1;
1097
1097
  }
1098
- function an(e, t, n) {
1098
+ function rn(e, t, n) {
1099
1099
  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);
1100
1100
  }
1101
- function on(e) {
1101
+ function an(e) {
1102
1102
  if (e.nodeValue.length < 65536) return;
1103
1103
  let t = e.nextSibling;
1104
1104
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1105
1105
  }
1106
1106
  //#endregion
1107
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/effects.js
1108
- function sn(e) {
1109
- q === null && (G === null && ve(e), _e()), Pn && ge(e);
1107
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/effects.js
1108
+ function on(e) {
1109
+ J === null && (K === null && ve(e), _e()), Nn && ge(e);
1110
1110
  }
1111
- function cn(e, t) {
1111
+ function sn(e, t) {
1112
1112
  var n = t.last;
1113
1113
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1114
1114
  }
1115
- function ln(e, t) {
1116
- var n = q;
1115
+ function cn(e, t) {
1116
+ var n = J;
1117
1117
  n !== null && n.f & 8192 && (e |= T);
1118
1118
  var r = {
1119
1119
  ctx: R,
@@ -1131,139 +1131,139 @@ function ln(e, t) {
1131
1131
  wv: 0,
1132
1132
  ac: null
1133
1133
  };
1134
- V?.register_created_effect(r);
1134
+ H?.register_created_effect(r);
1135
1135
  var i = r;
1136
- if (e & 4) Ct === null ? Dt.ensure().schedule(r) : Ct.push(r);
1136
+ if (e & 4) St === null ? Et.ensure().schedule(r) : St.push(r);
1137
1137
  else if (t !== null) {
1138
1138
  try {
1139
- Qn(r);
1139
+ Zn(r);
1140
1140
  } catch (e) {
1141
- throw W(r), e;
1141
+ throw G(r), e;
1142
1142
  }
1143
1143
  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 |= D));
1144
1144
  }
1145
- if (i !== null && (i.parent = n, n !== null && cn(i, n), G !== null && G.f & 2 && !(e & 64))) {
1146
- var a = G;
1145
+ if (i !== null && (i.parent = n, n !== null && sn(i, n), K !== null && K.f & 2 && !(e & 64))) {
1146
+ var a = K;
1147
1147
  (a.effects ??= []).push(i);
1148
1148
  }
1149
1149
  return r;
1150
1150
  }
1151
- function un() {
1152
- return G !== null && !In;
1151
+ function ln() {
1152
+ return K !== null && !Fn;
1153
1153
  }
1154
- function dn(e) {
1155
- let t = ln(8, null);
1156
- return z(t, C), t.teardown = e, t;
1154
+ function un(e) {
1155
+ let t = cn(8, null);
1156
+ return B(t, C), t.teardown = e, t;
1157
1157
  }
1158
- function fn(e) {
1159
- sn("$effect");
1160
- var t = q.f;
1161
- if (!G && t & 32 && R !== null && !R.i) {
1158
+ function dn(e) {
1159
+ on("$effect");
1160
+ var t = J.f;
1161
+ if (!K && t & 32 && R !== null && !R.i) {
1162
1162
  var n = R;
1163
1163
  (n.e ??= []).push(e);
1164
- } else return pn(e);
1164
+ } else return fn(e);
1165
1165
  }
1166
- function pn(e) {
1167
- return ln(4 | ie, e);
1166
+ function fn(e) {
1167
+ return cn(4 | ie, e);
1168
1168
  }
1169
- function mn(e) {
1170
- Dt.ensure();
1171
- let t = ln(64 | O, e);
1169
+ function pn(e) {
1170
+ Et.ensure();
1171
+ let t = cn(64 | O, e);
1172
1172
  return () => {
1173
- W(t);
1173
+ G(t);
1174
1174
  };
1175
1175
  }
1176
- function hn(e) {
1177
- Dt.ensure();
1178
- let t = ln(64 | O, e);
1176
+ function mn(e) {
1177
+ Et.ensure();
1178
+ let t = cn(64 | O, e);
1179
1179
  return (e = {}) => new Promise((n) => {
1180
- e.outro ? Dn(t, () => {
1181
- W(t), n(void 0);
1182
- }) : (W(t), n(void 0));
1180
+ e.outro ? En(t, () => {
1181
+ G(t), n(void 0);
1182
+ }) : (G(t), n(void 0));
1183
1183
  });
1184
1184
  }
1185
- function gn(e) {
1186
- return ln(4, e);
1185
+ function hn(e) {
1186
+ return cn(4, e);
1187
1187
  }
1188
- function _n(e) {
1189
- return ln(A | O, e);
1188
+ function gn(e) {
1189
+ return cn(A | O, e);
1190
1190
  }
1191
- function vn(e, t = 0) {
1192
- return ln(8 | t, e);
1191
+ function _n(e, t = 0) {
1192
+ return cn(8 | t, e);
1193
1193
  }
1194
- function yn(e, t = [], n = [], r = []) {
1195
- it(r, t, n, (t) => {
1196
- ln(8, () => {
1197
- e(...t.map(X));
1194
+ function vn(e, t = [], n = [], r = []) {
1195
+ rt(r, t, n, (t) => {
1196
+ cn(8, () => {
1197
+ e(...t.map(Z));
1198
1198
  });
1199
1199
  });
1200
1200
  }
1201
- function bn(e, t = 0) {
1202
- return ln(16 | t, e);
1201
+ function yn(e, t = 0) {
1202
+ return cn(16 | t, e);
1203
1203
  }
1204
- function xn(e) {
1205
- return ln(32 | O, e);
1204
+ function bn(e) {
1205
+ return cn(32 | O, e);
1206
1206
  }
1207
- function Sn(e) {
1207
+ function xn(e) {
1208
1208
  var t = e.teardown;
1209
1209
  if (t !== null) {
1210
- let e = Pn, n = G;
1211
- Fn(!0), K(null);
1210
+ let e = Nn, n = K;
1211
+ Pn(!0), q(null);
1212
1212
  try {
1213
1213
  t.call(null);
1214
1214
  } finally {
1215
- Fn(e), K(n);
1215
+ Pn(e), q(n);
1216
1216
  }
1217
1217
  }
1218
1218
  }
1219
- function Cn(e, t = !1) {
1219
+ function Sn(e, t = !1) {
1220
1220
  var n = e.first;
1221
1221
  for (e.first = e.last = null; n !== null;) {
1222
1222
  let e = n.ac;
1223
- e !== null && $e(() => {
1223
+ e !== null && Qe(() => {
1224
1224
  e.abort(fe);
1225
1225
  });
1226
1226
  var r = n.next;
1227
- n.f & 64 ? n.parent = null : W(n, t), n = r;
1227
+ n.f & 64 ? n.parent = null : G(n, t), n = r;
1228
1228
  }
1229
1229
  }
1230
- function wn(e) {
1230
+ function Cn(e) {
1231
1231
  for (var t = e.first; t !== null;) {
1232
1232
  var n = t.next;
1233
- t.f & 32 || W(t), t = n;
1233
+ t.f & 32 || G(t), t = n;
1234
1234
  }
1235
1235
  }
1236
- function W(e, t = !0) {
1236
+ function G(e, t = !0) {
1237
1237
  var n = !1;
1238
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Tn(e.nodes.start, e.nodes.end), n = !0), e.f |= re, Cn(e, t && !n), Zn(e, 0);
1238
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= re, Sn(e, t && !n), Xn(e, 0);
1239
1239
  var r = e.nodes && e.nodes.t;
1240
1240
  if (r !== null) for (let e of r) e.stop();
1241
- Sn(e), e.f ^= re, e.f |= E;
1241
+ xn(e), e.f ^= re, e.f |= E;
1242
1242
  var i = e.parent;
1243
- 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;
1243
+ i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1244
1244
  }
1245
- function Tn(e, t) {
1245
+ function wn(e, t) {
1246
1246
  for (; e !== null;) {
1247
- var n = e === t ? null : /* @__PURE__ */ Qt(e);
1247
+ var n = e === t ? null : /* @__PURE__ */ Zt(e);
1248
1248
  e.remove(), e = n;
1249
1249
  }
1250
1250
  }
1251
- function En(e) {
1251
+ function Tn(e) {
1252
1252
  var t = e.parent, n = e.prev, r = e.next;
1253
1253
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1254
1254
  }
1255
- function Dn(e, t, n = !0) {
1255
+ function En(e, t, n = !0) {
1256
1256
  var r = [];
1257
- On(e, r, !0);
1257
+ Dn(e, r, !0);
1258
1258
  var i = () => {
1259
- n && W(e), t && t();
1259
+ n && G(e), t && t();
1260
1260
  }, a = r.length;
1261
1261
  if (a > 0) {
1262
1262
  var o = () => --a || i();
1263
1263
  for (var s of r) s.out(o);
1264
1264
  } else i();
1265
1265
  }
1266
- function On(e, t, n) {
1266
+ function Dn(e, t, n) {
1267
1267
  if (!(e.f & 8192)) {
1268
1268
  e.f ^= T;
1269
1269
  var r = e.nodes && e.nodes.t;
@@ -1272,110 +1272,110 @@ function On(e, t, n) {
1272
1272
  var a = i.next;
1273
1273
  if (!(i.f & 64)) {
1274
1274
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1275
- On(i, t, o ? n : !1);
1275
+ Dn(i, t, o ? n : !1);
1276
1276
  }
1277
1277
  i = a;
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
- function kn(e) {
1282
- An(e, !0);
1281
+ function On(e) {
1282
+ kn(e, !0);
1283
1283
  }
1284
- function An(e, t) {
1284
+ function kn(e, t) {
1285
1285
  if (e.f & 8192) {
1286
- e.f ^= T, e.f & 1024 || (z(e, w), Dt.ensure().schedule(e));
1286
+ e.f ^= T, e.f & 1024 || (B(e, w), Et.ensure().schedule(e));
1287
1287
  for (var n = e.first; n !== null;) {
1288
1288
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1289
- An(n, i ? t : !1), n = r;
1289
+ kn(n, i ? t : !1), n = r;
1290
1290
  }
1291
1291
  var a = e.nodes && e.nodes.t;
1292
1292
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1293
1293
  }
1294
1294
  }
1295
- function jn(e, t) {
1295
+ function An(e, t) {
1296
1296
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1297
- var i = n === r ? null : /* @__PURE__ */ Qt(n);
1297
+ var i = n === r ? null : /* @__PURE__ */ Zt(n);
1298
1298
  t.append(n), n = i;
1299
1299
  }
1300
1300
  }
1301
1301
  //#endregion
1302
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/legacy.js
1303
- var Mn = null, Nn = !1, Pn = !1;
1304
- function Fn(e) {
1305
- Pn = e;
1302
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/legacy.js
1303
+ var jn = null, Mn = !1, Nn = !1;
1304
+ function Pn(e) {
1305
+ Nn = e;
1306
1306
  }
1307
- var G = null, In = !1;
1308
- function K(e) {
1309
- G = e;
1307
+ var K = null, Fn = !1;
1308
+ function q(e) {
1309
+ K = e;
1310
1310
  }
1311
- var q = null;
1312
- function Ln(e) {
1313
- q = e;
1311
+ var J = null;
1312
+ function In(e) {
1313
+ J = e;
1314
1314
  }
1315
- var Rn = null;
1316
- function zn(e) {
1317
- G !== null && (Rn ??= /* @__PURE__ */ new Set()).add(e);
1315
+ var Ln = null;
1316
+ function Rn(e) {
1317
+ K !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1318
1318
  }
1319
- var J = null, Y = 0, Bn = null;
1320
- function Vn(e) {
1321
- Bn = e;
1319
+ var Y = null, X = 0, zn = null;
1320
+ function Bn(e) {
1321
+ zn = e;
1322
1322
  }
1323
- var Hn = 1, Un = 0, Wn = Un;
1324
- function Gn(e) {
1325
- Wn = e;
1323
+ var Vn = 1, Hn = 0, Un = Hn;
1324
+ function Wn(e) {
1325
+ Un = e;
1326
1326
  }
1327
- function Kn() {
1328
- return ++Hn;
1327
+ function Gn() {
1328
+ return ++Vn;
1329
1329
  }
1330
- function qn(e) {
1330
+ function Kn(e) {
1331
1331
  var t = e.f;
1332
1332
  if (t & 2048) return !0;
1333
1333
  if (t & 2 && (e.f &= ~ae), t & 4096) {
1334
1334
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1335
1335
  var a = n[i];
1336
- if (qn(a) && mt(a), a.wv > e.wv) return !0;
1336
+ if (Kn(a) && pt(a), a.wv > e.wv) return !0;
1337
1337
  }
1338
- t & 512 && yt === null && z(e, C);
1338
+ t & 512 && vt === null && B(e, C);
1339
1339
  }
1340
1340
  return !1;
1341
1341
  }
1342
- function Jn(e, t, n = !0) {
1342
+ function qn(e, t, n = !0) {
1343
1343
  var r = e.reactions;
1344
- if (r !== null && !(Rn !== null && Rn.has(e))) for (var i = 0; i < r.length; i++) {
1344
+ if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
1345
1345
  var a = r[i];
1346
- a.f & 2 ? Jn(a, t, !1) : t === a && (n ? z(a, w) : a.f & 1024 && z(a, te), Mt(a));
1346
+ a.f & 2 ? qn(a, t, !1) : t === a && (n ? B(a, w) : a.f & 1024 && B(a, te), jt(a));
1347
1347
  }
1348
1348
  }
1349
- function Yn(e) {
1350
- var t = J, n = Y, r = Bn, i = G, a = Rn, o = R, s = In, c = Wn, l = e.f;
1351
- J = null, Y = 0, Bn = null, G = l & 96 ? null : e, Rn = null, Le(e.ctx), In = !1, Wn = ++Un, e.ac !== null && ($e(() => {
1349
+ function Jn(e) {
1350
+ var t = Y, n = X, r = zn, i = K, a = Ln, o = R, s = Fn, c = Un, l = e.f;
1351
+ Y = null, X = 0, zn = null, K = l & 96 ? null : e, Ln = null, Le(e.ctx), Fn = !1, Un = ++Hn, e.ac !== null && (Qe(() => {
1352
1352
  e.ac.abort(fe);
1353
1353
  }), e.ac = null);
1354
1354
  try {
1355
1355
  e.f |= oe;
1356
1356
  var u = e.fn, d = u();
1357
1357
  e.f |= ne;
1358
- var f = e.deps, p = V?.is_fork;
1359
- if (J !== null) {
1358
+ var f = e.deps, p = H?.is_fork;
1359
+ if (Y !== null) {
1360
1360
  var m;
1361
- if (p || Zn(e, Y), f !== null && Y > 0) for (f.length = Y + J.length, m = 0; m < J.length; m++) f[Y + m] = J[m];
1362
- else e.deps = f = J;
1363
- if (un() && e.f & 512) for (m = Y; m < f.length; m++) (f[m].reactions ??= []).push(e);
1364
- } else !p && f !== null && Y < f.length && (Zn(e, Y), f.length = Y);
1365
- if (Be() && Bn !== null && !In && f !== null && !(e.f & 6146)) for (m = 0; m < Bn.length; m++) Jn(Bn[m], e);
1361
+ if (p || Xn(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
1362
+ else e.deps = f = Y;
1363
+ if (ln() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
1364
+ } else !p && f !== null && X < f.length && (Xn(e, X), f.length = X);
1365
+ if (Be() && zn !== null && !Fn && f !== null && !(e.f & 6146)) for (m = 0; m < zn.length; m++) qn(zn[m], e);
1366
1366
  if (i !== null && i !== e) {
1367
- if (Un++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Un;
1368
- if (t !== null) for (let e of t) e.rv = Un;
1369
- Bn !== null && (r === null ? r = Bn : r.push(...Bn));
1367
+ if (Hn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Hn;
1368
+ if (t !== null) for (let e of t) e.rv = Hn;
1369
+ zn !== null && (r === null ? r = zn : r.push(...zn));
1370
1370
  }
1371
1371
  return e.f & 8388608 && (e.f ^= se), d;
1372
1372
  } catch (e) {
1373
- return Ge(e);
1373
+ return We(e);
1374
1374
  } finally {
1375
- e.f ^= oe, J = t, Y = n, Bn = r, G = i, Rn = a, Le(o), In = s, Wn = c;
1375
+ e.f ^= oe, Y = t, X = n, zn = r, K = i, Ln = a, Le(o), Fn = s, Un = c;
1376
1376
  }
1377
1377
  }
1378
- function Xn(e, t) {
1378
+ function Yn(e, t) {
1379
1379
  let n = t.reactions;
1380
1380
  if (n !== null) {
1381
1381
  var r = u.call(n, e);
@@ -1384,88 +1384,88 @@ function Xn(e, t) {
1384
1384
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1385
1385
  }
1386
1386
  }
1387
- if (n === null && t.f & 2 && (J === null || !d.call(J, t))) {
1387
+ if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
1388
1388
  var a = t;
1389
- a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== s && Je(a), a.ac !== null && $e(() => {
1390
- a.ac.abort(fe), a.ac = null, z(a, w);
1391
- }), ht(a), Zn(a, 0);
1389
+ a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== s && qe(a), a.ac !== null && Qe(() => {
1390
+ a.ac.abort(fe), a.ac = null, B(a, w);
1391
+ }), mt(a), Xn(a, 0);
1392
1392
  }
1393
1393
  }
1394
- function Zn(e, t) {
1394
+ function Xn(e, t) {
1395
1395
  var n = e.deps;
1396
- if (n !== null) for (var r = t; r < n.length; r++) Xn(e, n[r]);
1396
+ if (n !== null) for (var r = t; r < n.length; r++) Yn(e, n[r]);
1397
1397
  }
1398
- function Qn(e) {
1398
+ function Zn(e) {
1399
1399
  var t = e.f;
1400
1400
  if (!(t & 16384)) {
1401
- z(e, C);
1402
- var n = q, r = Nn;
1403
- q = e, Nn = !(t & 96);
1401
+ B(e, C);
1402
+ var n = J, r = Mn;
1403
+ J = e, Mn = !(t & 96);
1404
1404
  try {
1405
- t & 16777232 ? wn(e) : Cn(e), Sn(e);
1406
- var i = Yn(e);
1407
- e.teardown = typeof i == "function" ? i : null, e.wv = Hn;
1405
+ t & 16777232 ? Cn(e) : Sn(e), xn(e);
1406
+ var i = Jn(e);
1407
+ e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
1408
1408
  } finally {
1409
- Nn = r, q = n;
1409
+ Mn = r, J = n;
1410
1410
  }
1411
1411
  }
1412
1412
  }
1413
- function X(e) {
1413
+ function Z(e) {
1414
1414
  var t = !!(e.f & 2);
1415
- if (Mn?.add(e), G !== null && !In && !(q !== null && q.f & 16384) && (Rn === null || !Rn.has(e))) {
1416
- var n = G.deps;
1417
- if (G.f & 2097152) e.rv < Un && (e.rv = Un, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
1415
+ if (jn?.add(e), K !== null && !Fn && !(J !== null && J.f & 16384) && (Ln === null || !Ln.has(e))) {
1416
+ var n = K.deps;
1417
+ if (K.f & 2097152) e.rv < Hn && (e.rv = Hn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1418
1418
  else {
1419
- G.deps ??= [], d.call(G.deps, e) || G.deps.push(e);
1419
+ K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
1420
1420
  var r = e.reactions;
1421
- r === null ? e.reactions = [G] : d.call(r, G) || r.push(G);
1421
+ r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
1422
1422
  }
1423
1423
  }
1424
- if (Pn && It.has(e)) return It.get(e);
1424
+ if (Nn && Ft.has(e)) return Ft.get(e);
1425
1425
  if (t) {
1426
1426
  var i = e;
1427
- if (Pn) {
1427
+ if (Nn) {
1428
1428
  var a = i.v;
1429
- return (!(i.f & 1024) && i.reactions !== null || er(i)) && (a = pt(i)), It.set(i, a), a;
1429
+ return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = ft(i)), Ft.set(i, a), a;
1430
1430
  }
1431
- var o = !(i.f & 512) && !In && G !== null && (Nn || !!(G.f & 512)), s = (i.f & ne) === 0;
1432
- qn(i) && (o && (i.f |= 512), mt(i)), o && !s && (gt(i), $n(i));
1431
+ var o = !(i.f & 512) && !Fn && K !== null && (Mn || !!(K.f & 512)), s = (i.f & ne) === 0;
1432
+ Kn(i) && (o && (i.f |= 512), pt(i)), o && !s && (ht(i), Qn(i));
1433
1433
  }
1434
- if (yt?.has(e)) return yt.get(e);
1434
+ if (vt?.has(e)) return vt.get(e);
1435
1435
  if (e.f & 8388608) throw e.v;
1436
1436
  return e.v;
1437
1437
  }
1438
- function $n(e) {
1439
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (gt(t), $n(t));
1438
+ function Qn(e) {
1439
+ 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));
1440
1440
  }
1441
- function er(e) {
1441
+ function $n(e) {
1442
1442
  if (e.v === s) return !0;
1443
1443
  if (e.deps === null) return !1;
1444
- for (let t of e.deps) if (It.has(t) || t.f & 2 && er(t)) return !0;
1444
+ for (let t of e.deps) if (Ft.has(t) || t.f & 2 && $n(t)) return !0;
1445
1445
  return !1;
1446
1446
  }
1447
- function tr(e) {
1448
- var t = In;
1447
+ function er(e) {
1448
+ var t = Fn;
1449
1449
  try {
1450
- return In = !0, e();
1450
+ return Fn = !0, e();
1451
1451
  } finally {
1452
- In = t;
1452
+ Fn = t;
1453
1453
  }
1454
1454
  }
1455
- function nr(e) {
1455
+ function tr(e) {
1456
1456
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1457
- if (j in e) rr(e);
1457
+ if (j in e) nr(e);
1458
1458
  else if (!Array.isArray(e)) for (let t in e) {
1459
1459
  let n = e[t];
1460
- typeof n == "object" && n && j in n && rr(n);
1460
+ typeof n == "object" && n && j in n && nr(n);
1461
1461
  }
1462
1462
  }
1463
1463
  }
1464
- function rr(e, t = /* @__PURE__ */ new Set()) {
1464
+ function nr(e, t = /* @__PURE__ */ new Set()) {
1465
1465
  if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1466
1466
  t.add(e), e instanceof Date && e.getTime();
1467
1467
  for (let n in e) try {
1468
- rr(e[n], t);
1468
+ nr(e[n], t);
1469
1469
  } catch {}
1470
1470
  let n = y(e);
1471
1471
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
@@ -1480,24 +1480,26 @@ function rr(e, t = /* @__PURE__ */ new Set()) {
1480
1480
  }
1481
1481
  }
1482
1482
  //#endregion
1483
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/events.js
1484
- var ir = Symbol("events"), ar = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
1485
- function sr(e, t, n) {
1486
- (t[ir] ??= {})[e] = n;
1483
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/events.js
1484
+ var rr = Symbol("events"), ir = /* @__PURE__ */ new Set(), ar = /* @__PURE__ */ new Set();
1485
+ function or(e, t, n) {
1486
+ (t[rr] ??= {})[e] = n;
1487
1487
  }
1488
- function cr(e) {
1489
- for (var t = 0; t < e.length; t++) ar.add(e[t]);
1490
- for (var n of or) n(e);
1488
+ function sr(e) {
1489
+ for (var t = 0; t < e.length; t++) ir.add(e[t]);
1490
+ for (var n of ar) n(e);
1491
1491
  }
1492
- var lr = null;
1492
+ var cr = null, lr = !1;
1493
1493
  function ur(e) {
1494
1494
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1495
- lr = e;
1496
- var o = 0, s = lr === e && e[ir];
1495
+ cr = e, lr || (lr = !0, setTimeout(() => {
1496
+ lr = !1, cr = null;
1497
+ }));
1498
+ var o = 0, s = cr === e && e[rr];
1497
1499
  if (s) {
1498
1500
  var c = i.indexOf(s);
1499
1501
  if (c !== -1 && (t === document || t === window)) {
1500
- e[ir] = t;
1502
+ e[rr] = t;
1501
1503
  return;
1502
1504
  }
1503
1505
  var l = i.indexOf(t);
@@ -1511,12 +1513,12 @@ function ur(e) {
1511
1513
  return a || n;
1512
1514
  }
1513
1515
  });
1514
- var u = G, d = q;
1515
- K(null), Ln(null);
1516
+ var u = K, d = J;
1517
+ q(null), In(null);
1516
1518
  try {
1517
1519
  for (var f, p = []; a !== null && a !== t;) {
1518
1520
  try {
1519
- var h = a[ir]?.[r];
1521
+ var h = a[rr]?.[r];
1520
1522
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1521
1523
  } catch (e) {
1522
1524
  f ? p.push(e) : f = e;
@@ -1531,24 +1533,24 @@ function ur(e) {
1531
1533
  throw f;
1532
1534
  }
1533
1535
  } finally {
1534
- e[ir] = t, delete e.currentTarget, K(u), Ln(d);
1536
+ e[rr] = t, delete e.currentTarget, q(u), In(d);
1535
1537
  }
1536
1538
  }
1537
1539
  }
1538
1540
  //#endregion
1539
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/reconciler.js
1541
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/reconciler.js
1540
1542
  var dr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1541
1543
  function fr(e) {
1542
1544
  return dr?.createHTML(e) ?? e;
1543
1545
  }
1544
1546
  function pr(e) {
1545
- var t = an("template");
1547
+ var t = rn("template");
1546
1548
  return t.innerHTML = fr(e.replaceAll("<!>", "<!---->")), t.content;
1547
1549
  }
1548
1550
  //#endregion
1549
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/template.js
1551
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/template.js
1550
1552
  function mr(e, t) {
1551
- var n = q;
1553
+ var n = J;
1552
1554
  n.nodes === null && (n.nodes = {
1553
1555
  start: e,
1554
1556
  end: t,
@@ -1561,10 +1563,10 @@ function hr(e, t) {
1561
1563
  var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
1562
1564
  return () => {
1563
1565
  if (P) return mr(I, null), I;
1564
- i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(i)));
1565
- var t = r || Kt ? document.importNode(i, !0) : i.cloneNode(!0);
1566
+ i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Xt(i)));
1567
+ var t = r || Gt ? document.importNode(i, !0) : i.cloneNode(!0);
1566
1568
  if (n) {
1567
- var o = /* @__PURE__ */ Zt(t), s = t.lastChild;
1569
+ var o = /* @__PURE__ */ Xt(t), s = t.lastChild;
1568
1570
  mr(o, s);
1569
1571
  } else mr(t, t);
1570
1572
  return t;
@@ -1572,57 +1574,57 @@ function hr(e, t) {
1572
1574
  }
1573
1575
  function gr() {
1574
1576
  if (P) return mr(I, null), I;
1575
- var e = document.createDocumentFragment(), t = document.createComment(""), n = Xt();
1577
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = Yt();
1576
1578
  return e.append(t, n), mr(t, n), e;
1577
1579
  }
1578
- function Z(e, t) {
1580
+ function _r(e, t) {
1579
1581
  if (P) {
1580
- var n = q;
1582
+ var n = J;
1581
1583
  (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), ke();
1582
1584
  return;
1583
1585
  }
1584
1586
  e !== null && e.before(t);
1585
1587
  }
1586
1588
  [.../* @__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(".")];
1587
- var _r = ["touchstart", "touchmove"];
1588
- function vr(e) {
1589
- return _r.includes(e);
1589
+ var vr = ["touchstart", "touchmove"];
1590
+ function yr(e) {
1591
+ return vr.includes(e);
1590
1592
  }
1591
- function yr(e, t) {
1593
+ function br(e, t) {
1592
1594
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1593
1595
  n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
1594
1596
  }
1595
- function br(e, t) {
1596
- return Cr(e, t);
1597
- }
1598
1597
  function xr(e, t) {
1599
- Yt(), t.intro = t.intro ?? !1;
1598
+ return wr(e, t);
1599
+ }
1600
+ function Sr(e, t) {
1601
+ Jt(), t.intro = t.intro ?? !1;
1600
1602
  let n = t.target, r = P, i = I;
1601
1603
  try {
1602
- for (var a = /* @__PURE__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
1604
+ for (var a = /* @__PURE__ */ Xt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Zt(a);
1603
1605
  if (!a) throw o;
1604
1606
  F(!0), L(a);
1605
- let r = Cr(e, {
1607
+ let r = wr(e, {
1606
1608
  ...t,
1607
1609
  anchor: a
1608
1610
  });
1609
1611
  return F(!1), r;
1610
1612
  } catch (r) {
1611
1613
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1612
- return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && be(), Yt(), nn(n), F(!1), br(e, t);
1614
+ return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && be(), Jt(), tn(n), F(!1), xr(e, t);
1613
1615
  } finally {
1614
1616
  F(r), L(i);
1615
1617
  }
1616
1618
  }
1617
- var Sr = /* @__PURE__ */ new Map();
1618
- function Cr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1619
- Yt();
1620
- var l = void 0, u = hn(() => {
1621
- var s = n ?? t.appendChild(Xt());
1622
- nt(s, { pending: () => {} }, (t) => {
1619
+ var Cr = /* @__PURE__ */ new Map();
1620
+ function wr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1621
+ Jt();
1622
+ var l = void 0, u = mn(() => {
1623
+ var s = n ?? t.appendChild(Yt());
1624
+ tt(s, { pending: () => {} }, (t) => {
1623
1625
  Re({});
1624
1626
  var n = R;
1625
- if (a && (n.c = a), i && (r.$$events = i), P && mr(t, null), l = e(t, r) || {}, P && (q.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw De(), o;
1627
+ if (a && (n.c = a), i && (r.$$events = i), P && mr(t, null), l = e(t, r) || {}, P && (J.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw De(), o;
1626
1628
  ze();
1627
1629
  }, c);
1628
1630
  var u = /* @__PURE__ */ new Set(), d = (e) => {
@@ -1630,34 +1632,34 @@ function Cr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, int
1630
1632
  var r = e[n];
1631
1633
  if (!u.has(r)) {
1632
1634
  u.add(r);
1633
- var i = vr(r);
1635
+ var i = yr(r);
1634
1636
  for (let e of [t, document]) {
1635
- var a = Sr.get(e);
1636
- a === void 0 && (a = /* @__PURE__ */ new Map(), Sr.set(e, a));
1637
+ var a = Cr.get(e);
1638
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Cr.set(e, a));
1637
1639
  var o = a.get(r);
1638
1640
  o === void 0 ? (e.addEventListener(r, ur, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1639
1641
  }
1640
1642
  }
1641
1643
  }
1642
1644
  };
1643
- return d(f(ar)), or.add(d), () => {
1645
+ return d(f(ir)), ar.add(d), () => {
1644
1646
  for (var e of u) for (let n of [t, document]) {
1645
- var r = Sr.get(n), i = r.get(e);
1646
- --i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Sr.delete(n)) : r.set(e, i);
1647
+ var r = Cr.get(n), i = r.get(e);
1648
+ --i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Cr.delete(n)) : r.set(e, i);
1647
1649
  }
1648
- or.delete(d), s !== n && s.parentNode?.removeChild(s);
1650
+ ar.delete(d), s !== n && s.parentNode?.removeChild(s);
1649
1651
  };
1650
1652
  });
1651
- return wr.set(l, u), l;
1653
+ return Tr.set(l, u), l;
1652
1654
  }
1653
- var wr = /* @__PURE__ */ new WeakMap();
1654
- function Tr(e, t) {
1655
- let n = wr.get(e);
1656
- return n ? (wr.delete(e), n(t)) : Promise.resolve();
1655
+ var Tr = /* @__PURE__ */ new WeakMap();
1656
+ function Er(e, t) {
1657
+ let n = Tr.get(e);
1658
+ return n ? (Tr.delete(e), n(t)) : Promise.resolve();
1657
1659
  }
1658
1660
  //#endregion
1659
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1660
- var Er = class {
1661
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1662
+ var Dr = class {
1661
1663
  anchor;
1662
1664
  #e = /* @__PURE__ */ new Map();
1663
1665
  #t = /* @__PURE__ */ new Map();
@@ -1670,47 +1672,47 @@ var Er = class {
1670
1672
  #a = (e) => {
1671
1673
  if (this.#e.has(e)) {
1672
1674
  var t = this.#e.get(e), n = this.#t.get(t);
1673
- if (n) kn(n), this.#r.delete(t);
1675
+ if (n) On(n), this.#r.delete(t);
1674
1676
  else {
1675
1677
  var r = this.#n.get(t);
1676
- 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 && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1677
1679
  }
1678
1680
  for (let [t, n] of this.#e) {
1679
1681
  if (this.#e.delete(t), t === e) break;
1680
1682
  let r = this.#n.get(n);
1681
- r && (W(r.effect), this.#n.delete(n));
1683
+ r && (G(r.effect), this.#n.delete(n));
1682
1684
  }
1683
1685
  for (let [e, r] of this.#t) {
1684
1686
  if (e === t || this.#r.has(e)) continue;
1685
1687
  let i = () => {
1686
1688
  if (Array.from(this.#e.values()).includes(e)) {
1687
1689
  var t = document.createDocumentFragment();
1688
- jn(r, t), t.append(Xt()), this.#n.set(e, {
1690
+ An(r, t), t.append(Yt()), this.#n.set(e, {
1689
1691
  effect: r,
1690
1692
  fragment: t
1691
1693
  });
1692
- } else W(r);
1694
+ } else G(r);
1693
1695
  this.#r.delete(e), this.#t.delete(e);
1694
1696
  };
1695
- this.#i || !n ? (this.#r.add(e), Dn(r, i, !1)) : i();
1697
+ this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
1696
1698
  }
1697
1699
  }
1698
1700
  };
1699
1701
  #o = (e) => {
1700
1702
  this.#e.delete(e);
1701
1703
  let t = Array.from(this.#e.values());
1702
- for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
1704
+ for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1703
1705
  };
1704
1706
  ensure(e, t) {
1705
- var n = V, r = rn();
1707
+ var n = H, r = nn();
1706
1708
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1707
1709
  if (r) {
1708
- var i = document.createDocumentFragment(), a = Xt();
1710
+ var i = document.createDocumentFragment(), a = Yt();
1709
1711
  i.append(a), this.#n.set(e, {
1710
- effect: xn(() => t(a)),
1712
+ effect: bn(() => t(a)),
1711
1713
  fragment: i
1712
1714
  });
1713
- } else this.#t.set(e, xn(() => t(this.anchor)));
1715
+ } else this.#t.set(e, bn(() => t(this.anchor)));
1714
1716
  }
1715
1717
  if (this.#e.set(n, e), r) {
1716
1718
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
@@ -1720,11 +1722,11 @@ var Er = class {
1720
1722
  }
1721
1723
  };
1722
1724
  //#endregion
1723
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/if.js
1724
- function Dr(e, t, n = !1) {
1725
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/if.js
1726
+ function Or(e, t, n = !1) {
1725
1727
  var r;
1726
1728
  P && (r = I, ke());
1727
- var i = new Er(e), a = n ? D : 0;
1729
+ var i = new Dr(e), a = n ? D : 0;
1728
1730
  function o(e, t) {
1729
1731
  if (P) {
1730
1732
  var n = Ne(r);
@@ -1736,7 +1738,7 @@ function Dr(e, t, n = !1) {
1736
1738
  }
1737
1739
  i.ensure(e, t);
1738
1740
  }
1739
- bn(() => {
1741
+ yn(() => {
1740
1742
  var e = !1;
1741
1743
  t((t, n = 0) => {
1742
1744
  e = !0, o(n, t);
@@ -1744,32 +1746,32 @@ function Dr(e, t, n = !1) {
1744
1746
  }, a);
1745
1747
  }
1746
1748
  //#endregion
1747
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/each.js
1748
- function Or(e, t, n) {
1749
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/each.js
1750
+ function kr(e, t, n) {
1749
1751
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1750
1752
  let n = t[s];
1751
- Dn(n, () => {
1753
+ En(n, () => {
1752
1754
  if (a) {
1753
1755
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1754
1756
  var t = e.outrogroups;
1755
- kr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1757
+ Ar(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1756
1758
  }
1757
1759
  } else --o;
1758
1760
  }, !1);
1759
1761
  }
1760
1762
  if (o === 0) {
1761
- var c = r.length === 0 && n !== null;
1763
+ var c = r.length === 0 && n !== null && e.pending.size === 0;
1762
1764
  if (c) {
1763
1765
  var l = n, u = l.parentNode;
1764
- nn(u), u.append(l), e.items.clear();
1766
+ tn(u), u.append(l), e.items.clear();
1765
1767
  }
1766
- kr(e, t, !c);
1768
+ Ar(e, t, !c);
1767
1769
  } else a = {
1768
1770
  pending: new Set(t),
1769
1771
  done: /* @__PURE__ */ new Set()
1770
1772
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1771
1773
  }
1772
- function kr(e, t, n = !0) {
1774
+ function Ar(e, t, n = !0) {
1773
1775
  var r;
1774
1776
  if (e.pending.size > 0) {
1775
1777
  r = /* @__PURE__ */ new Set();
@@ -1777,23 +1779,23 @@ function kr(e, t, n = !0) {
1777
1779
  }
1778
1780
  for (var i = 0; i < t.length; i++) {
1779
1781
  var a = t[i];
1780
- r?.has(a) ? (a.f |= k, jn(a, document.createDocumentFragment())) : W(t[i], n);
1782
+ r?.has(a) ? (a.f |= k, An(a, document.createDocumentFragment())) : G(t[i], n);
1781
1783
  }
1782
1784
  }
1783
- var Ar;
1784
- function jr(e, t, n, r, i, a = null) {
1785
+ var jr;
1786
+ function Mr(e, t, n, r, i, a = null) {
1785
1787
  var o = e, s = /* @__PURE__ */ new Map();
1786
1788
  if (t & 4) {
1787
1789
  var c = e;
1788
- o = P ? L(/* @__PURE__ */ Zt(c)) : c.appendChild(Xt());
1790
+ o = P ? L(/* @__PURE__ */ Xt(c)) : c.appendChild(Yt());
1789
1791
  }
1790
1792
  P && ke();
1791
- var u = null, d = /* @__PURE__ */ dt(() => {
1793
+ var u = null, d = /* @__PURE__ */ ut(() => {
1792
1794
  var e = n();
1793
1795
  return l(e) ? e : e == null ? [] : f(e);
1794
1796
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1795
1797
  function g(e) {
1796
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Nr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Fr(u, null, o)) : kn(u) : Dn(u, () => {
1798
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Pr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Ir(u, null, o)) : On(u) : En(u, () => {
1797
1799
  u = null;
1798
1800
  })));
1799
1801
  }
@@ -1801,23 +1803,23 @@ function jr(e, t, n, r, i, a = null) {
1801
1803
  v.pending.delete(e);
1802
1804
  }
1803
1805
  var v = {
1804
- effect: bn(() => {
1805
- p = X(d);
1806
+ effect: yn(() => {
1807
+ p = Z(d);
1806
1808
  var e = p.length;
1807
1809
  let c = !1;
1808
1810
  P && Ne(o) === "[!" != (e === 0) && (o = Me(), L(o), F(!1), c = !0);
1809
- for (var l = /* @__PURE__ */ new Set(), f = V, v = rn(), y = 0; y < e; y += 1) {
1811
+ for (var l = /* @__PURE__ */ new Set(), f = H, v = nn(), y = 0; y < e; y += 1) {
1810
1812
  P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
1811
1813
  var b = p[y], x = r(b, y), S = h ? null : s.get(x);
1812
- S ? (S.v && Bt(S.v, b), S.i && Bt(S.i, y), v && f.unskip_effect(S.e)) : (S = Pr(s, h ? o : Ar ??= Xt(), b, x, y, i, t, n), h || (S.e.f |= k), s.set(x, S)), l.add(x);
1814
+ S ? (S.v && zt(S.v, b), S.i && zt(S.i, y), v && f.unskip_effect(S.e)) : (S = Fr(s, h ? o : jr ??= Yt(), b, x, y, i, t, n), h || (S.e.f |= k), s.set(x, S)), l.add(x);
1813
1815
  }
1814
- if (e === 0 && a && !u && (h ? u = xn(() => a(o)) : (u = xn(() => a(Ar ??= Xt())), u.f |= k)), e > l.size && he("", "", ""), P && e > 0 && L(Me()), !h) {
1816
+ if (e === 0 && a && !u && (h ? u = bn(() => a(o)) : (u = bn(() => a(jr ??= Yt())), u.f |= k)), e > l.size && he("", "", ""), P && e > 0 && L(Me()), !h) {
1815
1817
  if (m.set(f, l), v) {
1816
1818
  for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
1817
1819
  f.oncommit(g), f.ondiscard(_);
1818
1820
  } else g(f);
1819
1821
  }
1820
- c && F(!0), X(d);
1822
+ c && F(!0), Z(d);
1821
1823
  }),
1822
1824
  flags: t,
1823
1825
  items: s,
@@ -1827,20 +1829,20 @@ function jr(e, t, n, r, i, a = null) {
1827
1829
  };
1828
1830
  h = !1, P && (o = I);
1829
1831
  }
1830
- function Mr(e) {
1832
+ function Nr(e) {
1831
1833
  for (; e !== null && !(e.f & 32);) e = e.next;
1832
1834
  return e;
1833
1835
  }
1834
- function Nr(e, t, n, r, i) {
1835
- var a = !!(r & 8), o = t.length, s = e.items, c = Mr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
1836
+ function Pr(e, t, n, r, i) {
1837
+ var a = !!(r & 8), o = t.length, s = e.items, c = Nr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
1836
1838
  if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
1837
1839
  for (v = 0; v < o; v += 1) {
1838
1840
  if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1839
- if (_.f & 8192 && (kn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1840
- if (_.f ^= k, _ === c) Fr(_, null, n);
1841
+ if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1842
+ if (_.f ^= k, _ === c) Ir(_, null, n);
1841
1843
  else {
1842
1844
  var y = u ? u.next : c;
1843
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Ir(e, u, _), Ir(e, _, y), Fr(_, y, n), u = _, p = [], m = [], c = Mr(u.next);
1845
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Lr(e, u, _), Lr(e, _, y), Ir(_, y, n), u = _, p = [], m = [], c = Nr(u.next);
1844
1846
  continue;
1845
1847
  }
1846
1848
  }
@@ -1850,25 +1852,25 @@ function Nr(e, t, n, r, i) {
1850
1852
  var b = m[0], x;
1851
1853
  u = b.prev;
1852
1854
  var S = p[0], ee = p[p.length - 1];
1853
- for (x = 0; x < p.length; x += 1) Fr(p[x], b, n);
1855
+ for (x = 0; x < p.length; x += 1) Ir(p[x], b, n);
1854
1856
  for (x = 0; x < m.length; x += 1) l.delete(m[x]);
1855
- Ir(e, S.prev, ee.next), Ir(e, u, S), Ir(e, ee, b), c = b, u = ee, --v, p = [], m = [];
1856
- } else l.delete(_), Fr(_, c, n), Ir(e, _.prev, _.next), Ir(e, _, u === null ? e.effect.first : u.next), Ir(e, u, _), u = _;
1857
+ Lr(e, S.prev, ee.next), Lr(e, u, S), Lr(e, ee, b), c = b, u = ee, --v, p = [], m = [];
1858
+ } else l.delete(_), Ir(_, c, n), Lr(e, _.prev, _.next), Lr(e, _, u === null ? e.effect.first : u.next), Lr(e, u, _), u = _;
1857
1859
  continue;
1858
1860
  }
1859
- for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Mr(c.next);
1861
+ for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Nr(c.next);
1860
1862
  if (c === null) continue;
1861
1863
  }
1862
- _.f & 33554432 || p.push(_), u = _, c = Mr(_.next);
1864
+ _.f & 33554432 || p.push(_), u = _, c = Nr(_.next);
1863
1865
  }
1864
1866
  if (e.outrogroups !== null) {
1865
- for (let t of e.outrogroups) t.pending.size === 0 && (kr(e, f(t.done)), e.outrogroups?.delete(t));
1867
+ for (let t of e.outrogroups) t.pending.size === 0 && (Ar(e, f(t.done)), e.outrogroups?.delete(t));
1866
1868
  e.outrogroups.size === 0 && (e.outrogroups = null);
1867
1869
  }
1868
1870
  if (c !== null || l !== void 0) {
1869
1871
  var C = [];
1870
1872
  if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
1871
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Mr(c.next);
1873
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Nr(c.next);
1872
1874
  var w = C.length;
1873
1875
  if (w > 0) {
1874
1876
  var te = r & 4 && o === 0 ? n : null;
@@ -1876,74 +1878,75 @@ function Nr(e, t, n, r, i) {
1876
1878
  for (v = 0; v < w; v += 1) C[v].nodes?.a?.measure();
1877
1879
  for (v = 0; v < w; v += 1) C[v].nodes?.a?.fix();
1878
1880
  }
1879
- Or(e, C, te);
1881
+ kr(e, C, te);
1880
1882
  }
1881
1883
  }
1882
- a && Ue(() => {
1884
+ a && z(() => {
1883
1885
  if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
1884
1886
  });
1885
1887
  }
1886
- function Pr(e, t, n, r, i, a, o, s) {
1887
- var c = o & 1 ? o & 16 ? Rt(n) : /* @__PURE__ */ zt(n, !1, !1) : null, l = o & 2 ? Rt(i) : null;
1888
+ function Fr(e, t, n, r, i, a, o, s) {
1889
+ var c = o & 1 ? o & 16 ? Lt(n) : /* @__PURE__ */ Rt(n, !1, !1) : null, l = o & 2 ? Lt(i) : null;
1888
1890
  return {
1889
1891
  v: c,
1890
1892
  i: l,
1891
- e: xn(() => (a(t, c ?? n, l ?? i, s), () => {
1893
+ e: bn(() => (a(t, c ?? n, l ?? i, s), () => {
1892
1894
  e.delete(r);
1893
1895
  }))
1894
1896
  };
1895
1897
  }
1896
- function Fr(e, t, n) {
1898
+ function Ir(e, t, n) {
1897
1899
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1898
- var o = /* @__PURE__ */ Qt(r);
1900
+ var o = /* @__PURE__ */ Zt(r);
1899
1901
  if (a.before(r), r === i) return;
1900
1902
  r = o;
1901
1903
  }
1902
1904
  }
1903
- function Ir(e, t, n) {
1905
+ function Lr(e, t, n) {
1904
1906
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1905
1907
  }
1906
1908
  //#endregion
1907
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/css.js
1908
- function Lr(e, t) {
1909
- gn(() => {
1909
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/css.js
1910
+ function Rr(e, t) {
1911
+ hn(() => {
1912
+ e = J?.parent?.nodes?.start ?? e;
1910
1913
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1911
1914
  if (!r.querySelector("#" + t.hash)) {
1912
- let e = an("style");
1915
+ let e = rn("style");
1913
1916
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1914
1917
  }
1915
1918
  });
1916
1919
  }
1917
1920
  //#endregion
1918
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/actions.js
1919
- function Rr(e, t, n) {
1920
- gn(() => {
1921
- var r = tr(() => t(e, n?.()) || {});
1921
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/actions.js
1922
+ function zr(e, t, n) {
1923
+ hn(() => {
1924
+ var r = er(() => t(e, n?.()) || {});
1922
1925
  if (n && r?.update) {
1923
1926
  var i = !1, a = {};
1924
- vn(() => {
1927
+ _n(() => {
1925
1928
  var e = n();
1926
- nr(e), i && Fe(a, e) && (a = e, r.update(e));
1929
+ tr(e), i && Fe(a, e) && (a = e, r.update(e));
1927
1930
  }), i = !0;
1928
1931
  }
1929
1932
  if (r?.destroy) return () => r.destroy();
1930
1933
  });
1931
1934
  }
1932
1935
  //#endregion
1933
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/shared/attributes.js
1934
- var zr = [..." \n\r\f\xA0\v"];
1935
- function Br(e, t, n) {
1936
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/shared/attributes.js
1937
+ var Br = [..." \n\r\f\xA0\v"];
1938
+ function Vr(e, t, n) {
1936
1939
  var r = e == null ? "" : "" + e;
1937
1940
  if (t && (r = r ? r + " " + t : t), n) {
1938
1941
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1939
1942
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1940
1943
  var s = o + a;
1941
- (o === 0 || zr.includes(r[o - 1])) && (s === r.length || zr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1944
+ (o === 0 || Br.includes(r[o - 1])) && (s === r.length || Br.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1942
1945
  }
1943
1946
  }
1944
1947
  return r === "" ? null : r;
1945
1948
  }
1946
- function Vr(e, t = !1) {
1949
+ function Hr(e, t = !1) {
1947
1950
  var n = t ? " !important;" : ";", r = "";
1948
1951
  for (var i of Object.keys(e)) {
1949
1952
  var a = e[i];
@@ -1951,16 +1954,16 @@ function Vr(e, t = !1) {
1951
1954
  }
1952
1955
  return r;
1953
1956
  }
1954
- function Hr(e) {
1957
+ function Ur(e) {
1955
1958
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1956
1959
  }
1957
- function Ur(e, t) {
1960
+ function Wr(e, t) {
1958
1961
  if (t) {
1959
1962
  var n = "", r, i;
1960
1963
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
1961
- e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1964
+ e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
1962
1965
  var a = !1, o = 0, s = !1, c = [];
1963
- r && c.push(...Object.keys(r).map(Hr)), i && c.push(...Object.keys(i).map(Hr));
1966
+ r && c.push(...Object.keys(r).map(Ur)), i && c.push(...Object.keys(i).map(Ur));
1964
1967
  var l = 0, u = -1;
1965
1968
  let t = e.length;
1966
1969
  for (var d = 0; d < t; d++) {
@@ -1969,7 +1972,7 @@ function Ur(e, t) {
1969
1972
  if (f === ":" && u === -1) u = d;
1970
1973
  else if (f === ";" || d === t - 1) {
1971
1974
  if (u !== -1) {
1972
- var p = Hr(e.substring(l, u).trim());
1975
+ var p = Ur(e.substring(l, u).trim());
1973
1976
  if (!c.includes(p)) {
1974
1977
  f !== ";" && d++;
1975
1978
  var m = e.substring(l, d).trim();
@@ -1981,16 +1984,16 @@ function Ur(e, t) {
1981
1984
  }
1982
1985
  }
1983
1986
  }
1984
- return r && (n += Vr(r)), i && (n += Vr(i, !0)), n = n.trim(), n === "" ? null : n;
1987
+ return r && (n += Hr(r)), i && (n += Hr(i, !0)), n = n.trim(), n === "" ? null : n;
1985
1988
  }
1986
1989
  return e == null ? null : String(e);
1987
1990
  }
1988
1991
  //#endregion
1989
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/class.js
1990
- function Wr(e, t, n, r, i, a) {
1992
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/class.js
1993
+ function Gr(e, t, n, r, i, a) {
1991
1994
  var o = e[le];
1992
1995
  if (P || o !== n || o === void 0) {
1993
- var s = Br(n, r, a);
1996
+ var s = Vr(n, r, a);
1994
1997
  (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[le] = n;
1995
1998
  } else if (a && i !== a) for (var c in a) {
1996
1999
  var l = !!a[c];
@@ -1999,49 +2002,49 @@ function Wr(e, t, n, r, i, a) {
1999
2002
  return a;
2000
2003
  }
2001
2004
  //#endregion
2002
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/style.js
2003
- function Gr(e, t = {}, n, r) {
2005
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/style.js
2006
+ function Kr(e, t = {}, n, r) {
2004
2007
  for (var i in n) {
2005
2008
  var a = n[i];
2006
2009
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2007
2010
  }
2008
2011
  }
2009
- function Kr(e, t, n, r) {
2012
+ function qr(e, t, n, r) {
2010
2013
  var i = e[ue];
2011
2014
  if (P || i !== t) {
2012
- var a = Ur(t, r);
2015
+ var a = Wr(t, r);
2013
2016
  (!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ue] = t;
2014
- } else r && (Array.isArray(r) ? (Gr(e, n?.[0], r[0]), Gr(e, n?.[1], r[1], "important")) : Gr(e, n, r));
2017
+ } else r && (Array.isArray(r) ? (Kr(e, n?.[0], r[0]), Kr(e, n?.[1], r[1], "important")) : Kr(e, n, r));
2015
2018
  return r;
2016
2019
  }
2017
2020
  //#endregion
2018
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2019
- var qr = Symbol("is custom element"), Jr = Symbol("is html"), Yr = pe ? "link" : "LINK";
2021
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2022
+ var Jr = Symbol("is custom element"), Yr = Symbol("is html"), Xr = pe ? "link" : "LINK";
2020
2023
  function Q(e, t, n, r) {
2021
- var i = Zr(e);
2022
- P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Yr) || i[t] !== (i[t] = n) && (t === "loading" && (e[N] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && $r(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2024
+ var i = Qr(e);
2025
+ P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Xr) || i[t] !== (i[t] = n) && (t === "loading" && (e[N] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ei(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2023
2026
  }
2024
- function Xr(e, t, n) {
2025
- var r = G, i = q;
2027
+ function Zr(e, t, n) {
2028
+ var r = K, i = J;
2026
2029
  let a = P;
2027
- P && F(!1), K(null), Ln(null);
2030
+ P && F(!1), q(null), In(null);
2028
2031
  try {
2029
- t !== "style" && (Qr.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? $r(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2032
+ t !== "style" && ($r.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ei(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2030
2033
  } finally {
2031
- K(r), Ln(i), a && F(!0);
2034
+ q(r), In(i), a && F(!0);
2032
2035
  }
2033
2036
  }
2034
- function Zr(e) {
2037
+ function Qr(e) {
2035
2038
  return e[ce] ??= {
2036
- [qr]: e.nodeName.includes("-"),
2037
- [Jr]: e.namespaceURI === c
2039
+ [Jr]: e.nodeName.includes("-"),
2040
+ [Yr]: e.namespaceURI === c
2038
2041
  };
2039
2042
  }
2040
- var Qr = /* @__PURE__ */ new Map();
2041
- function $r(e) {
2042
- var t = e.getAttribute("is") || e.nodeName, n = Qr.get(t);
2043
+ var $r = /* @__PURE__ */ new Map();
2044
+ function ei(e) {
2045
+ var t = e.getAttribute("is") || e.nodeName, n = $r.get(t);
2043
2046
  if (n) return n;
2044
- Qr.set(t, n = []);
2047
+ $r.set(t, n = []);
2045
2048
  for (var r, i = e, a = Element.prototype; a !== i;) {
2046
2049
  for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2047
2050
  i = y(i);
@@ -2049,23 +2052,23 @@ function $r(e) {
2049
2052
  return n;
2050
2053
  }
2051
2054
  //#endregion
2052
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2053
- function ei(e, t) {
2055
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2056
+ function ti(e, t) {
2054
2057
  return e === t || e?.[j] === t;
2055
2058
  }
2056
- function ti(e = {}, t, n, r) {
2057
- var i = R.r, a = q;
2058
- return gn(() => {
2059
+ function ni(e = {}, t, n, r) {
2060
+ var i = R.r, a = J;
2061
+ return hn(() => {
2059
2062
  var o, s;
2060
- return vn(() => {
2061
- o = s, s = r?.() || [], tr(() => {
2062
- ei(n(...s), e) || (t(e, ...s), o && ei(n(...o), e) && t(null, ...o));
2063
+ return _n(() => {
2064
+ o = s, s = r?.() || [], er(() => {
2065
+ ti(n(...s), e) || (t(e, ...s), o && ti(n(...o), e) && t(null, ...o));
2063
2066
  });
2064
2067
  }), () => {
2065
2068
  let r = a;
2066
2069
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2067
2070
  let o = () => {
2068
- s && ei(n(...s), e) && t(null, ...s);
2071
+ s && ti(n(...s), e) && t(null, ...s);
2069
2072
  }, c = r.teardown;
2070
2073
  r.teardown = () => {
2071
2074
  o(), c?.();
@@ -2074,16 +2077,16 @@ function ti(e = {}, t, n, r) {
2074
2077
  }), e;
2075
2078
  }
2076
2079
  //#endregion
2077
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/props.js
2078
- function ni(e, t, n, r) {
2079
- var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ct(r), X(l)) : (c && (c = !1, s = o ? tr(r) : r), s);
2080
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/props.js
2081
+ function ri(e, t, n, r) {
2082
+ var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ st(r), Z(l)) : (c && (c = !1, s = o ? er(r) : r), s);
2080
2083
  let d;
2081
2084
  if (a) {
2082
2085
  var f = j in e || M in e;
2083
2086
  d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2084
2087
  }
2085
2088
  var p, m = !1;
2086
- a ? [p, m] = Qe(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xe(t), d(p)));
2089
+ a ? [p, m] = Ze(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xe(t), d(p)));
2087
2090
  var g = i ? () => {
2088
2091
  var n = e[t];
2089
2092
  return n === void 0 ? u() : (c = !0, n);
@@ -2098,28 +2101,28 @@ function ni(e, t, n, r) {
2098
2101
  return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
2099
2102
  });
2100
2103
  }
2101
- var v = !1, y = (n & 1 ? ct : dt)(() => (v = !1, g()));
2102
- a && X(y);
2103
- var b = q;
2104
+ var v = !1, y = (n & 1 ? st : ut)(() => (v = !1, g()));
2105
+ a && Z(y);
2106
+ var b = J;
2104
2107
  return (function(e, t) {
2105
2108
  if (arguments.length > 0) {
2106
- let n = t ? X(y) : i && a ? Wt(e) : e;
2107
- return U(y, n), v = !0, s !== void 0 && (s = n), e;
2109
+ let n = t ? Z(y) : i && a ? Ut(e) : e;
2110
+ return W(y, n), v = !0, s !== void 0 && (s = n), e;
2108
2111
  }
2109
- return Pn && v || b.f & 16384 ? y.v : X(y);
2112
+ return Nn && v || b.f & 16384 ? y.v : Z(y);
2110
2113
  });
2111
2114
  }
2112
2115
  //#endregion
2113
- //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/legacy/legacy-client.js
2114
- function ri(e) {
2115
- return new ii(e);
2116
+ //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/legacy/legacy-client.js
2117
+ function ii(e) {
2118
+ return new ai(e);
2116
2119
  }
2117
- var ii = class {
2120
+ var ai = class {
2118
2121
  #e;
2119
2122
  #t;
2120
2123
  constructor(e) {
2121
2124
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2122
- var r = /* @__PURE__ */ zt(n, !1, !1);
2125
+ var r = /* @__PURE__ */ Rt(n, !1, !1);
2123
2126
  return t.set(e, r), r;
2124
2127
  };
2125
2128
  let r = new Proxy({
@@ -2127,16 +2130,16 @@ var ii = class {
2127
2130
  $$events: {}
2128
2131
  }, {
2129
2132
  get(e, r) {
2130
- return X(t.get(r) ?? n(r, Reflect.get(e, r)));
2133
+ return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
2131
2134
  },
2132
2135
  has(e, r) {
2133
- return r === M || (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2136
+ return r === M || (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2134
2137
  },
2135
2138
  set(e, r, i) {
2136
- return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2139
+ return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2137
2140
  }
2138
2141
  });
2139
- this.#t = (e.hydrate ? xr : br)(e.component, {
2142
+ this.#t = (e.hydrate ? Sr : xr)(e.component, {
2140
2143
  target: e.target,
2141
2144
  anchor: e.anchor,
2142
2145
  props: r,
@@ -2144,7 +2147,7 @@ var ii = class {
2144
2147
  intro: e.intro ?? !1,
2145
2148
  recover: e.recover,
2146
2149
  transformError: e.transformError
2147
- }), (!e?.props?.$$host || e.sync === !1) && Ot(), this.#e = r.$$events;
2150
+ }), (!e?.props?.$$host || e.sync === !1) && Dt(), this.#e = r.$$events;
2148
2151
  for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && m(this, e, {
2149
2152
  get() {
2150
2153
  return this.#t[e];
@@ -2157,7 +2160,7 @@ var ii = class {
2157
2160
  this.#t.$set = (e) => {
2158
2161
  Object.assign(r, e);
2159
2162
  }, this.#t.$destroy = () => {
2160
- Tr(this.#t);
2163
+ Er(this.#t);
2161
2164
  };
2162
2165
  }
2163
2166
  $set(e) {
@@ -2173,8 +2176,8 @@ var ii = class {
2173
2176
  $destroy() {
2174
2177
  this.#t.$destroy();
2175
2178
  }
2176
- }, ai;
2177
- typeof HTMLElement == "function" && (ai = class extends HTMLElement {
2179
+ }, oi;
2180
+ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2178
2181
  $$ctor;
2179
2182
  $$s;
2180
2183
  $$c;
@@ -2207,18 +2210,18 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
2207
2210
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2208
2211
  function e(e) {
2209
2212
  return (t) => {
2210
- let n = an("slot");
2211
- e !== "default" && (n.name = e), Z(t, n);
2213
+ let n = rn("slot");
2214
+ e !== "default" && (n.name = e), _r(t, n);
2212
2215
  };
2213
2216
  }
2214
- let t = {}, n = si(this);
2217
+ let t = {}, n = ci(this);
2215
2218
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2216
2219
  for (let e of this.attributes) {
2217
2220
  let t = this.$$g_p(e.name);
2218
- t in this.$$d || (this.$$d[t] = oi(t, e.value, this.$$p_d, "toProp"));
2221
+ t in this.$$d || (this.$$d[t] = si(t, e.value, this.$$p_d, "toProp"));
2219
2222
  }
2220
2223
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2221
- this.$$c = ri({
2224
+ this.$$c = ii({
2222
2225
  component: this.$$ctor,
2223
2226
  target: this.$$shadowRoot || this,
2224
2227
  props: {
@@ -2226,13 +2229,13 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
2226
2229
  $$slots: t,
2227
2230
  $$host: this
2228
2231
  }
2229
- }), this.$$me = mn(() => {
2230
- vn(() => {
2232
+ }), this.$$me = pn(() => {
2233
+ _n(() => {
2231
2234
  this.$$r = !0;
2232
2235
  for (let e of p(this.$$c)) {
2233
2236
  if (!this.$$p_d[e]?.reflect) continue;
2234
2237
  this.$$d[e] = this.$$c[e];
2235
- let t = oi(e, this.$$d[e], this.$$p_d, "toAttribute");
2238
+ let t = si(e, this.$$d[e], this.$$p_d, "toAttribute");
2236
2239
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2237
2240
  }
2238
2241
  this.$$r = !1;
@@ -2246,7 +2249,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
2246
2249
  }
2247
2250
  }
2248
2251
  attributeChangedCallback(e, t, n) {
2249
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = oi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2252
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = si(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2250
2253
  }
2251
2254
  disconnectedCallback() {
2252
2255
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2257,7 +2260,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
2257
2260
  return p(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2258
2261
  }
2259
2262
  });
2260
- function oi(e, t, n, r) {
2263
+ function si(e, t, n, r) {
2261
2264
  let i = n[e]?.type;
2262
2265
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2263
2266
  if (r === "toAttribute") switch (i) {
@@ -2275,14 +2278,14 @@ function oi(e, t, n, r) {
2275
2278
  default: return t;
2276
2279
  }
2277
2280
  }
2278
- function si(e) {
2281
+ function ci(e) {
2279
2282
  let t = {};
2280
2283
  return e.childNodes.forEach((e) => {
2281
2284
  t[e.slot || "default"] = !0;
2282
2285
  }), t;
2283
2286
  }
2284
- function ci(e, t, n, r, i, a) {
2285
- let o = class extends ai {
2287
+ function li(e, t, n, r, i, a) {
2288
+ let o = class extends oi {
2286
2289
  constructor() {
2287
2290
  super(e, n, i), this.$$p_d = t;
2288
2291
  }
@@ -2296,7 +2299,7 @@ function ci(e, t, n, r, i, a) {
2296
2299
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2297
2300
  },
2298
2301
  set(n) {
2299
- n = oi(e, n, t), this.$$d[e] = n;
2302
+ n = si(e, n, t), this.$$d[e] = n;
2300
2303
  var r = this.$$c;
2301
2304
  r && (h(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2302
2305
  }
@@ -2309,37 +2312,37 @@ function ci(e, t, n, r, i, a) {
2309
2312
  }
2310
2313
  //#endregion
2311
2314
  //#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
2312
- var li = globalThis, ui = li.ShadowRoot && (li.ShadyCSS === void 0 || li.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, di = Symbol(), fi = /* @__PURE__ */ new WeakMap(), pi = class {
2315
+ var ui = globalThis, di = ui.ShadowRoot && (ui.ShadyCSS === void 0 || ui.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = Symbol(), pi = /* @__PURE__ */ new WeakMap(), mi = class {
2313
2316
  constructor(e, t, n) {
2314
- if (this._$cssResult$ = !0, n !== di) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2317
+ if (this._$cssResult$ = !0, n !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2315
2318
  this.cssText = e, this.t = t;
2316
2319
  }
2317
2320
  get styleSheet() {
2318
2321
  let e = this.o, t = this.t;
2319
- if (ui && e === void 0) {
2322
+ if (di && e === void 0) {
2320
2323
  let n = t !== void 0 && t.length === 1;
2321
- n && (e = fi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && fi.set(t, e));
2324
+ n && (e = pi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && pi.set(t, e));
2322
2325
  }
2323
2326
  return e;
2324
2327
  }
2325
2328
  toString() {
2326
2329
  return this.cssText;
2327
2330
  }
2328
- }, mi = (e) => new pi(typeof e == "string" ? e : e + "", void 0, di), hi = (e, t) => {
2329
- if (ui) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2331
+ }, hi = (e) => new mi(typeof e == "string" ? e : e + "", void 0, fi), gi = (e, t) => {
2332
+ if (di) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2330
2333
  else for (let n of t) {
2331
- let t = document.createElement("style"), r = li.litNonce;
2334
+ let t = document.createElement("style"), r = ui.litNonce;
2332
2335
  r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
2333
2336
  }
2334
- }, gi = ui ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2337
+ }, _i = di ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2335
2338
  let t = "";
2336
2339
  for (let n of e.cssRules) t += n.cssText;
2337
- return mi(t);
2338
- })(e) : e, { is: _i, defineProperty: vi, getOwnPropertyDescriptor: yi, getOwnPropertyNames: bi, getOwnPropertySymbols: xi, getPrototypeOf: Si } = Object, Ci = globalThis, wi = Ci.trustedTypes, Ti = wi ? wi.emptyScript : "", Ei = Ci.reactiveElementPolyfillSupport, Di = (e, t) => e, Oi = {
2340
+ return hi(t);
2341
+ })(e) : e, { is: vi, defineProperty: yi, getOwnPropertyDescriptor: bi, getOwnPropertyNames: xi, getOwnPropertySymbols: Si, getPrototypeOf: Ci } = Object, wi = globalThis, Ti = wi.trustedTypes, Ei = Ti ? Ti.emptyScript : "", Di = wi.reactiveElementPolyfillSupport, Oi = (e, t) => e, ki = {
2339
2342
  toAttribute(e, t) {
2340
2343
  switch (t) {
2341
2344
  case Boolean:
2342
- e = e ? Ti : null;
2345
+ e = e ? Ei : null;
2343
2346
  break;
2344
2347
  case Object:
2345
2348
  case Array: e = e == null ? e : JSON.stringify(e);
@@ -2364,30 +2367,30 @@ var li = globalThis, ui = li.ShadowRoot && (li.ShadyCSS === void 0 || li.ShadyCS
2364
2367
  }
2365
2368
  return n;
2366
2369
  }
2367
- }, ki = (e, t) => !_i(e, t), Ai = {
2370
+ }, Ai = (e, t) => !vi(e, t), ji = {
2368
2371
  attribute: !0,
2369
2372
  type: String,
2370
- converter: Oi,
2373
+ converter: ki,
2371
2374
  reflect: !1,
2372
2375
  useDefault: !1,
2373
- hasChanged: ki
2376
+ hasChanged: Ai
2374
2377
  };
2375
- Symbol.metadata ??= Symbol("metadata"), Ci.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2376
- var ji = class extends HTMLElement {
2378
+ Symbol.metadata ??= Symbol("metadata"), wi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2379
+ var Mi = class extends HTMLElement {
2377
2380
  static addInitializer(e) {
2378
2381
  this._$Ei(), (this.l ??= []).push(e);
2379
2382
  }
2380
2383
  static get observedAttributes() {
2381
2384
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2382
2385
  }
2383
- static createProperty(e, t = Ai) {
2386
+ static createProperty(e, t = ji) {
2384
2387
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
2385
2388
  let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
2386
- r !== void 0 && vi(this.prototype, e, r);
2389
+ r !== void 0 && yi(this.prototype, e, r);
2387
2390
  }
2388
2391
  }
2389
2392
  static getPropertyDescriptor(e, t, n) {
2390
- let { get: r, set: i } = yi(this.prototype, e) ?? {
2393
+ let { get: r, set: i } = bi(this.prototype, e) ?? {
2391
2394
  get() {
2392
2395
  return this[t];
2393
2396
  },
@@ -2406,17 +2409,17 @@ var ji = class extends HTMLElement {
2406
2409
  };
2407
2410
  }
2408
2411
  static getPropertyOptions(e) {
2409
- return this.elementProperties.get(e) ?? Ai;
2412
+ return this.elementProperties.get(e) ?? ji;
2410
2413
  }
2411
2414
  static _$Ei() {
2412
- if (this.hasOwnProperty(Di("elementProperties"))) return;
2413
- let e = Si(this);
2415
+ if (this.hasOwnProperty(Oi("elementProperties"))) return;
2416
+ let e = Ci(this);
2414
2417
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
2415
2418
  }
2416
2419
  static finalize() {
2417
- if (this.hasOwnProperty(Di("finalized"))) return;
2418
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Di("properties"))) {
2419
- let e = this.properties, t = [...bi(e), ...xi(e)];
2420
+ if (this.hasOwnProperty(Oi("finalized"))) return;
2421
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Oi("properties"))) {
2422
+ let e = this.properties, t = [...xi(e), ...Si(e)];
2420
2423
  for (let n of t) this.createProperty(n, e[n]);
2421
2424
  }
2422
2425
  let e = this[Symbol.metadata];
@@ -2435,8 +2438,8 @@ var ji = class extends HTMLElement {
2435
2438
  let t = [];
2436
2439
  if (Array.isArray(e)) {
2437
2440
  let n = new Set(e.flat(1 / 0).reverse());
2438
- for (let e of n) t.unshift(gi(e));
2439
- } else e !== void 0 && t.push(gi(e));
2441
+ for (let e of n) t.unshift(_i(e));
2442
+ } else e !== void 0 && t.push(_i(e));
2440
2443
  return t;
2441
2444
  }
2442
2445
  static _$Eu(e, t) {
@@ -2462,7 +2465,7 @@ var ji = class extends HTMLElement {
2462
2465
  }
2463
2466
  createRenderRoot() {
2464
2467
  let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
2465
- return hi(e, this.constructor.elementStyles), e;
2468
+ return gi(e, this.constructor.elementStyles), e;
2466
2469
  }
2467
2470
  connectedCallback() {
2468
2471
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
@@ -2477,14 +2480,14 @@ var ji = class extends HTMLElement {
2477
2480
  _$ET(e, t) {
2478
2481
  let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
2479
2482
  if (r !== void 0 && n.reflect === !0) {
2480
- let i = (n.converter?.toAttribute === void 0 ? Oi : n.converter).toAttribute(t, n.type);
2483
+ let i = (n.converter?.toAttribute === void 0 ? ki : n.converter).toAttribute(t, n.type);
2481
2484
  this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
2482
2485
  }
2483
2486
  }
2484
2487
  _$AK(e, t) {
2485
2488
  let n = this.constructor, r = n._$Eh.get(e);
2486
2489
  if (r !== void 0 && this._$Em !== r) {
2487
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Oi : e.converter;
2490
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? ki : e.converter;
2488
2491
  this._$Em = r;
2489
2492
  let a = i.fromAttribute(t, e.type);
2490
2493
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
@@ -2493,7 +2496,7 @@ var ji = class extends HTMLElement {
2493
2496
  requestUpdate(e, t, n) {
2494
2497
  if (e !== void 0) {
2495
2498
  let r = this.constructor, i = this[e];
2496
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? ki)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2499
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Ai)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2497
2500
  this.C(e, t, n);
2498
2501
  }
2499
2502
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -2557,88 +2560,88 @@ var ji = class extends HTMLElement {
2557
2560
  updated(e) {}
2558
2561
  firstUpdated(e) {}
2559
2562
  };
2560
- ji.elementStyles = [], ji.shadowRootOptions = { mode: "open" }, ji[Di("elementProperties")] = /* @__PURE__ */ new Map(), ji[Di("finalized")] = /* @__PURE__ */ new Map(), Ei?.({ ReactiveElement: ji }), (Ci.reactiveElementVersions ??= []).push("2.1.1");
2561
- var Mi = globalThis, Ni = Mi.trustedTypes, Pi = Ni ? Ni.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Fi = "$lit$", Ii = `lit$${Math.random().toFixed(9).slice(2)}$`, Li = "?" + Ii, Ri = `<${Li}>`, zi = document, Bi = () => zi.createComment(""), Vi = (e) => e === null || typeof e != "object" && typeof e != "function", Hi = Array.isArray, Ui = (e) => Hi(e) || typeof e?.[Symbol.iterator] == "function", Wi = "[ \n\f\r]", Gi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ki = /-->/g, qi = />/g, Ji = RegExp(`>|${Wi}(?:([^\\s"'>=/]+)(${Wi}*=${Wi}*(?:[^
2562
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Yi = /'/g, Xi = /"/g, Zi = /^(?:script|style|textarea|title)$/i, Qi = ((e) => (t, ...n) => ({
2563
+ Mi.elementStyles = [], Mi.shadowRootOptions = { mode: "open" }, Mi[Oi("elementProperties")] = /* @__PURE__ */ new Map(), Mi[Oi("finalized")] = /* @__PURE__ */ new Map(), Di?.({ ReactiveElement: Mi }), (wi.reactiveElementVersions ??= []).push("2.1.1");
2564
+ var Ni = globalThis, Pi = Ni.trustedTypes, Fi = Pi ? Pi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ii = "$lit$", Li = `lit$${Math.random().toFixed(9).slice(2)}$`, Ri = "?" + Li, zi = `<${Ri}>`, Bi = document, Vi = () => Bi.createComment(""), Hi = (e) => e === null || typeof e != "object" && typeof e != "function", Ui = Array.isArray, Wi = (e) => Ui(e) || typeof e?.[Symbol.iterator] == "function", Gi = "[ \n\f\r]", Ki = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qi = /-->/g, Ji = />/g, Yi = RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
2565
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xi = /'/g, Zi = /"/g, Qi = /^(?:script|style|textarea|title)$/i, $i = ((e) => (t, ...n) => ({
2563
2566
  _$litType$: e,
2564
2567
  strings: t,
2565
2568
  values: n
2566
- }))(1), $i = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ea = /* @__PURE__ */ new WeakMap(), ta = zi.createTreeWalker(zi, 129);
2567
- function na(e, t) {
2568
- if (!Hi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2569
- return Pi === void 0 ? t : Pi.createHTML(t);
2569
+ }))(1), ea = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ta = /* @__PURE__ */ new WeakMap(), na = Bi.createTreeWalker(Bi, 129);
2570
+ function ra(e, t) {
2571
+ if (!Ui(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2572
+ return Fi === void 0 ? t : Fi.createHTML(t);
2570
2573
  }
2571
- var ra = (e, t) => {
2572
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Gi;
2574
+ var ia = (e, t) => {
2575
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Ki;
2573
2576
  for (let t = 0; t < n; t++) {
2574
2577
  let n = e[t], s, c, l = -1, u = 0;
2575
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Gi ? c[1] === "!--" ? o = Ki : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Ji) : (Zi.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Ji) : o = qi : o === Ji ? c[0] === ">" ? (o = i ?? Gi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Ji : c[3] === "\"" ? Xi : Yi) : o === Xi || o === Yi ? o = Ji : o === Ki || o === qi ? o = Gi : (o = Ji, i = void 0);
2576
- let d = o === Ji && e[t + 1].startsWith("/>") ? " " : "";
2577
- a += o === Gi ? n + Ri : l >= 0 ? (r.push(s), n.slice(0, l) + Fi + n.slice(l) + Ii + d) : n + Ii + (l === -2 ? t : d);
2578
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Ki ? c[1] === "!--" ? o = qi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Yi) : (Qi.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Yi) : o = Ji : o === Yi ? c[0] === ">" ? (o = i ?? Ki, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Yi : c[3] === "\"" ? Zi : Xi) : o === Zi || o === Xi ? o = Yi : o === qi || o === Ji ? o = Ki : (o = Yi, i = void 0);
2579
+ let d = o === Yi && e[t + 1].startsWith("/>") ? " " : "";
2580
+ a += o === Ki ? n + zi : l >= 0 ? (r.push(s), n.slice(0, l) + Ii + n.slice(l) + Li + d) : n + Li + (l === -2 ? t : d);
2578
2581
  }
2579
- return [na(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2580
- }, ia = class e {
2582
+ return [ra(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2583
+ }, aa = class e {
2581
2584
  constructor({ strings: t, _$litType$: n }, r) {
2582
2585
  let i;
2583
2586
  this.parts = [];
2584
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ra(t, n);
2585
- if (this.el = e.createElement(l, r), ta.currentNode = this.el.content, n === 2 || n === 3) {
2587
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ia(t, n);
2588
+ if (this.el = e.createElement(l, r), na.currentNode = this.el.content, n === 2 || n === 3) {
2586
2589
  let e = this.el.content.firstChild;
2587
2590
  e.replaceWith(...e.childNodes);
2588
2591
  }
2589
- for (; (i = ta.nextNode()) !== null && c.length < s;) {
2592
+ for (; (i = na.nextNode()) !== null && c.length < s;) {
2590
2593
  if (i.nodeType === 1) {
2591
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Fi)) {
2592
- let t = u[o++], n = i.getAttribute(e).split(Ii), r = /([.?@])?(.*)/.exec(t);
2594
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Ii)) {
2595
+ let t = u[o++], n = i.getAttribute(e).split(Li), r = /([.?@])?(.*)/.exec(t);
2593
2596
  c.push({
2594
2597
  type: 1,
2595
2598
  index: a,
2596
2599
  name: r[2],
2597
2600
  strings: n,
2598
- ctor: r[1] === "." ? la : r[1] === "?" ? ua : r[1] === "@" ? da : ca
2601
+ ctor: r[1] === "." ? ua : r[1] === "?" ? da : r[1] === "@" ? fa : la
2599
2602
  }), i.removeAttribute(e);
2600
- } else e.startsWith(Ii) && (c.push({
2603
+ } else e.startsWith(Li) && (c.push({
2601
2604
  type: 6,
2602
2605
  index: a
2603
2606
  }), i.removeAttribute(e));
2604
- if (Zi.test(i.tagName)) {
2605
- let e = i.textContent.split(Ii), t = e.length - 1;
2607
+ if (Qi.test(i.tagName)) {
2608
+ let e = i.textContent.split(Li), t = e.length - 1;
2606
2609
  if (t > 0) {
2607
- i.textContent = Ni ? Ni.emptyScript : "";
2608
- for (let n = 0; n < t; n++) i.append(e[n], Bi()), ta.nextNode(), c.push({
2610
+ i.textContent = Pi ? Pi.emptyScript : "";
2611
+ for (let n = 0; n < t; n++) i.append(e[n], Vi()), na.nextNode(), c.push({
2609
2612
  type: 2,
2610
2613
  index: ++a
2611
2614
  });
2612
- i.append(e[t], Bi());
2615
+ i.append(e[t], Vi());
2613
2616
  }
2614
2617
  }
2615
2618
  } else if (i.nodeType === 8) {
2616
- if (i.data === Li) c.push({
2619
+ if (i.data === Ri) c.push({
2617
2620
  type: 2,
2618
2621
  index: a
2619
2622
  });
2620
2623
  else {
2621
2624
  let e = -1;
2622
- for (; (e = i.data.indexOf(Ii, e + 1)) !== -1;) c.push({
2625
+ for (; (e = i.data.indexOf(Li, e + 1)) !== -1;) c.push({
2623
2626
  type: 7,
2624
2627
  index: a
2625
- }), e += Ii.length - 1;
2628
+ }), e += Li.length - 1;
2626
2629
  }
2627
2630
  }
2628
2631
  a++;
2629
2632
  }
2630
2633
  }
2631
2634
  static createElement(e, t) {
2632
- let n = zi.createElement("template");
2635
+ let n = Bi.createElement("template");
2633
2636
  return n.innerHTML = e, n;
2634
2637
  }
2635
2638
  };
2636
- function aa(e, t, n = e, r) {
2637
- if (t === $i) return t;
2638
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Vi(t) ? void 0 : t._$litDirective$;
2639
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = aa(e, i._$AS(e, t.values), i, r)), t;
2639
+ function oa(e, t, n = e, r) {
2640
+ if (t === ea) return t;
2641
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Hi(t) ? void 0 : t._$litDirective$;
2642
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = oa(e, i._$AS(e, t.values), i, r)), t;
2640
2643
  }
2641
- var oa = class {
2644
+ var sa = class {
2642
2645
  constructor(e, t) {
2643
2646
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
2644
2647
  }
@@ -2649,23 +2652,23 @@ var oa = class {
2649
2652
  return this._$AM._$AU;
2650
2653
  }
2651
2654
  u(e) {
2652
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? zi).importNode(t, !0);
2653
- ta.currentNode = r;
2654
- let i = ta.nextNode(), a = 0, o = 0, s = n[0];
2655
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Bi).importNode(t, !0);
2656
+ na.currentNode = r;
2657
+ let i = na.nextNode(), a = 0, o = 0, s = n[0];
2655
2658
  for (; s !== void 0;) {
2656
2659
  if (a === s.index) {
2657
2660
  let t;
2658
- s.type === 2 ? t = new sa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new fa(i, this, e)), this._$AV.push(t), s = n[++o];
2661
+ s.type === 2 ? t = new ca(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new pa(i, this, e)), this._$AV.push(t), s = n[++o];
2659
2662
  }
2660
- a !== s?.index && (i = ta.nextNode(), a++);
2663
+ a !== s?.index && (i = na.nextNode(), a++);
2661
2664
  }
2662
- return ta.currentNode = zi, r;
2665
+ return na.currentNode = Bi, r;
2663
2666
  }
2664
2667
  p(e) {
2665
2668
  let t = 0;
2666
2669
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
2667
2670
  }
2668
- }, sa = class e {
2671
+ }, ca = class e {
2669
2672
  get _$AU() {
2670
2673
  return this._$AM?._$AU ?? this._$Cv;
2671
2674
  }
@@ -2683,7 +2686,7 @@ var oa = class {
2683
2686
  return this._$AB;
2684
2687
  }
2685
2688
  _$AI(e, t = this) {
2686
- e = aa(this, e, t), Vi(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== $i && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ui(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2689
+ e = oa(this, e, t), Hi(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ea && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Wi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2687
2690
  }
2688
2691
  O(e) {
2689
2692
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2692,24 +2695,24 @@ var oa = class {
2692
2695
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2693
2696
  }
2694
2697
  _(e) {
2695
- this._$AH !== $ && Vi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(zi.createTextNode(e)), this._$AH = e;
2698
+ this._$AH !== $ && Hi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Bi.createTextNode(e)), this._$AH = e;
2696
2699
  }
2697
2700
  $(e) {
2698
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = ia.createElement(na(n.h, n.h[0]), this.options)), n);
2701
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = aa.createElement(ra(n.h, n.h[0]), this.options)), n);
2699
2702
  if (this._$AH?._$AD === r) this._$AH.p(t);
2700
2703
  else {
2701
- let e = new oa(r, this), n = e.u(this.options);
2704
+ let e = new sa(r, this), n = e.u(this.options);
2702
2705
  e.p(t), this.T(n), this._$AH = e;
2703
2706
  }
2704
2707
  }
2705
2708
  _$AC(e) {
2706
- let t = ea.get(e.strings);
2707
- return t === void 0 && ea.set(e.strings, t = new ia(e)), t;
2709
+ let t = ta.get(e.strings);
2710
+ return t === void 0 && ta.set(e.strings, t = new aa(e)), t;
2708
2711
  }
2709
2712
  k(t) {
2710
- Hi(this._$AH) || (this._$AH = [], this._$AR());
2713
+ Ui(this._$AH) || (this._$AH = [], this._$AR());
2711
2714
  let n = this._$AH, r, i = 0;
2712
- for (let a of t) i === n.length ? n.push(r = new e(this.O(Bi()), this.O(Bi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2715
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(Vi()), this.O(Vi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2713
2716
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
2714
2717
  }
2715
2718
  _$AR(e = this._$AA.nextSibling, t) {
@@ -2721,7 +2724,7 @@ var oa = class {
2721
2724
  setConnected(e) {
2722
2725
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
2723
2726
  }
2724
- }, ca = class {
2727
+ }, la = class {
2725
2728
  get tagName() {
2726
2729
  return this.element.tagName;
2727
2730
  }
@@ -2733,43 +2736,43 @@ var oa = class {
2733
2736
  }
2734
2737
  _$AI(e, t = this, n, r) {
2735
2738
  let i = this.strings, a = !1;
2736
- if (i === void 0) e = aa(this, e, t, 0), a = !Vi(e) || e !== this._$AH && e !== $i, a && (this._$AH = e);
2739
+ if (i === void 0) e = oa(this, e, t, 0), a = !Hi(e) || e !== this._$AH && e !== ea, a && (this._$AH = e);
2737
2740
  else {
2738
2741
  let r = e, o, s;
2739
- for (e = i[0], o = 0; o < i.length - 1; o++) s = aa(this, r[n + o], t, o), s === $i && (s = this._$AH[o]), a ||= !Vi(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2742
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = oa(this, r[n + o], t, o), s === ea && (s = this._$AH[o]), a ||= !Hi(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2740
2743
  }
2741
2744
  a && !r && this.j(e);
2742
2745
  }
2743
2746
  j(e) {
2744
2747
  e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2745
2748
  }
2746
- }, la = class extends ca {
2749
+ }, ua = class extends la {
2747
2750
  constructor() {
2748
2751
  super(...arguments), this.type = 3;
2749
2752
  }
2750
2753
  j(e) {
2751
2754
  this.element[this.name] = e === $ ? void 0 : e;
2752
2755
  }
2753
- }, ua = class extends ca {
2756
+ }, da = class extends la {
2754
2757
  constructor() {
2755
2758
  super(...arguments), this.type = 4;
2756
2759
  }
2757
2760
  j(e) {
2758
2761
  this.element.toggleAttribute(this.name, !!e && e !== $);
2759
2762
  }
2760
- }, da = class extends ca {
2763
+ }, fa = class extends la {
2761
2764
  constructor(e, t, n, r, i) {
2762
2765
  super(e, t, n, r, i), this.type = 5;
2763
2766
  }
2764
2767
  _$AI(e, t = this) {
2765
- if ((e = aa(this, e, t, 0) ?? $) === $i) return;
2768
+ if ((e = oa(this, e, t, 0) ?? $) === ea) return;
2766
2769
  let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
2767
2770
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
2768
2771
  }
2769
2772
  handleEvent(e) {
2770
2773
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
2771
2774
  }
2772
- }, fa = class {
2775
+ }, pa = class {
2773
2776
  constructor(e, t, n) {
2774
2777
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
2775
2778
  }
@@ -2777,18 +2780,18 @@ var oa = class {
2777
2780
  return this._$AM._$AU;
2778
2781
  }
2779
2782
  _$AI(e) {
2780
- aa(this, e);
2783
+ oa(this, e);
2781
2784
  }
2782
- }, pa = Mi.litHtmlPolyfillSupport;
2783
- pa?.(ia, sa), (Mi.litHtmlVersions ??= []).push("3.3.1");
2784
- var ma = (e, t, n) => {
2785
+ }, ma = Ni.litHtmlPolyfillSupport;
2786
+ ma?.(aa, ca), (Ni.litHtmlVersions ??= []).push("3.3.1");
2787
+ var ha = (e, t, n) => {
2785
2788
  let r = n?.renderBefore ?? t, i = r._$litPart$;
2786
2789
  if (i === void 0) {
2787
2790
  let e = n?.renderBefore ?? null;
2788
- r._$litPart$ = i = new sa(t.insertBefore(Bi(), e), e, void 0, n ?? {});
2791
+ r._$litPart$ = i = new ca(t.insertBefore(Vi(), e), e, void 0, n ?? {});
2789
2792
  }
2790
2793
  return i._$AI(e), i;
2791
- }, ha = globalThis, ga = class extends ji {
2794
+ }, ga = globalThis, _a = class extends Mi {
2792
2795
  constructor() {
2793
2796
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2794
2797
  }
@@ -2798,7 +2801,7 @@ var ma = (e, t, n) => {
2798
2801
  }
2799
2802
  update(e) {
2800
2803
  let t = this.render();
2801
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ma(t, this.renderRoot, this.renderOptions);
2804
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ha(t, this.renderRoot, this.renderOptions);
2802
2805
  }
2803
2806
  connectedCallback() {
2804
2807
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -2807,23 +2810,23 @@ var ma = (e, t, n) => {
2807
2810
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
2808
2811
  }
2809
2812
  render() {
2810
- return $i;
2813
+ return ea;
2811
2814
  }
2812
2815
  };
2813
- ga._$litElement$ = !0, ga.finalized = !0, ha.litElementHydrateSupport?.({ LitElement: ga });
2814
- var _a = ha.litElementPolyfillSupport;
2815
- _a?.({ LitElement: ga }), (ha.litElementVersions ??= []).push("4.2.1");
2816
- var va = (e) => (t, n) => {
2816
+ _a._$litElement$ = !0, _a.finalized = !0, ga.litElementHydrateSupport?.({ LitElement: _a });
2817
+ var va = ga.litElementPolyfillSupport;
2818
+ va?.({ LitElement: _a }), (ga.litElementVersions ??= []).push("4.2.1");
2819
+ var ya = (e) => (t, n) => {
2817
2820
  n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
2818
2821
  customElements.get(e) || customElements.define(e, t);
2819
2822
  }));
2820
- }, ya = {
2823
+ }, ba = {
2821
2824
  attribute: !0,
2822
2825
  type: String,
2823
- converter: Oi,
2826
+ converter: ki,
2824
2827
  reflect: !1,
2825
- hasChanged: ki
2826
- }, ba = (e = ya, t, n) => {
2828
+ hasChanged: Ai
2829
+ }, xa = (e = ba, t, n) => {
2827
2830
  let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
2828
2831
  if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
2829
2832
  let { name: r } = n;
@@ -2846,16 +2849,16 @@ var va = (e) => (t, n) => {
2846
2849
  }
2847
2850
  throw Error("Unsupported decorator location: " + r);
2848
2851
  };
2849
- function xa(e) {
2850
- return (t, n) => typeof n == "object" ? ba(e, t, n) : ((e, t, n) => {
2852
+ function Sa(e) {
2853
+ return (t, n) => typeof n == "object" ? xa(e, t, n) : ((e, t, n) => {
2851
2854
  let r = t.hasOwnProperty(n);
2852
2855
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
2853
2856
  })(e, t, n);
2854
2857
  }
2855
- var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t, n, r) => {
2856
- for (var i = r > 1 ? void 0 : r ? Ca(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2857
- return r && i && Sa(t, n, i), i;
2858
- }, Ta = class extends ga {
2858
+ var Ca = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Ta = (e, t, n, r) => {
2859
+ for (var i = r > 1 ? void 0 : r ? wa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2860
+ return r && i && Ca(t, n, i), i;
2861
+ }, Ea = class extends _a {
2859
2862
  constructor() {
2860
2863
  super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
2861
2864
  }
@@ -2896,7 +2899,7 @@ var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t
2896
2899
  }));
2897
2900
  }
2898
2901
  render() {
2899
- return Qi`
2902
+ return $i`
2900
2903
  <style>
2901
2904
  nds-icon-button {
2902
2905
  display: inline-block;
@@ -3090,46 +3093,46 @@ var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t
3090
3093
  `;
3091
3094
  }
3092
3095
  };
3093
- wa([xa()], Ta.prototype, "variant", 2), wa([xa()], Ta.prototype, "size", 2), wa([xa()], Ta.prototype, "type", 2), wa([xa()], Ta.prototype, "state", 2), wa([xa({ attribute: "icon-name" })], Ta.prototype, "iconName", 2), wa([xa({ type: Boolean })], Ta.prototype, "disabled", 2), wa([xa({ attribute: "button-aria-label" })], Ta.prototype, "buttonAriaLabel", 2), wa([xa()], Ta.prototype, "shape", 1), Ta = wa([va("nds-icon-button")], Ta);
3096
+ Ta([Sa()], Ea.prototype, "variant", 2), Ta([Sa()], Ea.prototype, "size", 2), Ta([Sa()], Ea.prototype, "type", 2), Ta([Sa()], Ea.prototype, "state", 2), Ta([Sa({ attribute: "icon-name" })], Ea.prototype, "iconName", 2), Ta([Sa({ type: Boolean })], Ea.prototype, "disabled", 2), Ta([Sa({ attribute: "button-aria-label" })], Ea.prototype, "buttonAriaLabel", 2), Ta([Sa()], Ea.prototype, "shape", 1), Ea = Ta([ya("nds-icon-button")], Ea);
3094
3097
  //#endregion
3095
3098
  //#region ../players-shared/src/ui/zoom-compensation.ts
3096
- var Ea = {
3099
+ var Da = {
3097
3100
  maxZoom: 2,
3098
3101
  minCompensation: .25
3099
3102
  };
3100
- function Da(e, t) {
3103
+ function Oa(e, t) {
3101
3104
  let n = e / t;
3102
3105
  return Number.isFinite(n) && n > 0 ? n : 1;
3103
3106
  }
3104
- function Oa(e, t, n) {
3107
+ function ka(e, t, n) {
3105
3108
  return Math.max(n, Math.min(1, t / e));
3106
3109
  }
3107
3110
  //#endregion
3108
3111
  //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3109
- function ka(e) {
3110
- let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ H(1), i = /* @__PURE__ */ H(1);
3112
+ function Aa(e) {
3113
+ let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3111
3114
  function a() {
3112
- let e = Da(window.outerWidth, window.innerWidth);
3113
- U(i, e, !0), U(r, Oa(e, t, n), !0);
3115
+ let e = Oa(window.outerWidth, window.innerWidth);
3116
+ W(i, e, !0), W(r, ka(e, t, n), !0);
3114
3117
  }
3115
- return fn(() => {
3118
+ return dn(() => {
3116
3119
  if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3117
3120
  }), {
3118
3121
  get current() {
3119
- return X(r);
3122
+ return Z(r);
3120
3123
  },
3121
3124
  get zoom() {
3122
- return X(i);
3125
+ return Z(i);
3123
3126
  }
3124
3127
  };
3125
3128
  }
3126
3129
  //#endregion
3127
3130
  //#region ../players-shared/dist/i18n/language-tags.js
3128
- function Aa(e) {
3131
+ function ja(e) {
3129
3132
  return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
3130
3133
  }
3131
- function ja(e) {
3132
- let t = Aa(e);
3134
+ function Ma(e) {
3135
+ let t = ja(e);
3133
3136
  if (!t) return [];
3134
3137
  let n = t.split("-"), r = [];
3135
3138
  for (let e = n.length; e > 0; e--) {
@@ -3138,15 +3141,15 @@ function ja(e) {
3138
3141
  }
3139
3142
  return r;
3140
3143
  }
3141
- function Ma(e, t) {
3142
- for (let n of ja(e)) {
3143
- let e = t.find((e) => Aa(e) === n);
3144
+ function Na(e, t) {
3145
+ for (let n of Ma(e)) {
3146
+ let e = t.find((e) => ja(e) === n);
3144
3147
  if (e != null) return e;
3145
3148
  }
3146
3149
  }
3147
3150
  //#endregion
3148
3151
  //#region ../players-shared/dist/i18n/messages/en-US.js
3149
- var Na = {
3152
+ var Pa = {
3150
3153
  common: {
3151
3154
  close: "Close",
3152
3155
  cancel: "Cancel",
@@ -3645,7 +3648,7 @@ var Na = {
3645
3648
  coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
3646
3649
  }
3647
3650
  }
3648
- }, Pa = "en-US", Fa = /* @__PURE__ */ new Set([
3651
+ }, Fa = "en-US", Ia = /* @__PURE__ */ new Set([
3649
3652
  "ar",
3650
3653
  "ckb",
3651
3654
  "dv",
@@ -3661,7 +3664,7 @@ var Na = {
3661
3664
  "ug",
3662
3665
  "ur",
3663
3666
  "yi"
3664
- ]), Ia = /* @__PURE__ */ new Set([
3667
+ ]), La = /* @__PURE__ */ new Set([
3665
3668
  "zero",
3666
3669
  "one",
3667
3670
  "two",
@@ -3669,20 +3672,20 @@ var Na = {
3669
3672
  "many",
3670
3673
  "other"
3671
3674
  ]);
3672
- function La(e) {
3675
+ function Ra(e) {
3673
3676
  if (typeof e != "object" || !e) return !1;
3674
3677
  let t = Object.keys(e);
3675
- return t.length > 0 && t.every((e) => Ia.has(e));
3678
+ return t.length > 0 && t.every((e) => La.has(e));
3676
3679
  }
3677
- function Ra(e) {
3680
+ function za(e) {
3678
3681
  try {
3679
3682
  let t = new Intl.Locale(e).textInfo;
3680
3683
  if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
3681
3684
  } catch {}
3682
- let t = Aa(e).split("-")[0] ?? "";
3683
- return Fa.has(t) ? "rtl" : "ltr";
3685
+ let t = ja(e).split("-")[0] ?? "";
3686
+ return Ia.has(t) ? "rtl" : "ltr";
3684
3687
  }
3685
- var za = class e {
3688
+ var Ba = class e {
3686
3689
  static pluralRules = /* @__PURE__ */ new Map();
3687
3690
  locale;
3688
3691
  fallbackLocale;
@@ -3692,7 +3695,7 @@ var za = class e {
3692
3695
  listeners = /* @__PURE__ */ new Set();
3693
3696
  config;
3694
3697
  constructor(e = {}) {
3695
- this.config = { ...e }, this.fallbackLocale = Ba(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[Pa, Na]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3698
+ this.config = { ...e }, this.fallbackLocale = Va(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[Fa, Pa]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3696
3699
  }
3697
3700
  async initialize(e) {
3698
3701
  if (this.config = {
@@ -3707,7 +3710,7 @@ var za = class e {
3707
3710
  async setLocale(e) {
3708
3711
  let t = this.resolveLocaleTag(e);
3709
3712
  if (!t) {
3710
- this.locale = Ba(e) || "en-US", this.notify();
3713
+ this.locale = Va(e) || "en-US", this.notify();
3711
3714
  return;
3712
3715
  }
3713
3716
  if (!this.catalogs.has(t)) {
@@ -3727,14 +3730,14 @@ var za = class e {
3727
3730
  }
3728
3731
  t(e, t) {
3729
3732
  let n = this.lookup(e);
3730
- return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : Ha(n, t);
3733
+ return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : Ua(n, t);
3731
3734
  }
3732
3735
  plural(e, t) {
3733
3736
  let n = this.lookupNode(e);
3734
- return n === void 0 || !La(n) ? this.t(e, t) : Ha(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3737
+ return n === void 0 || !Ra(n) ? this.t(e, t) : Ua(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3735
3738
  }
3736
3739
  getDirection() {
3737
- return Ra(this.locale);
3740
+ return za(this.locale);
3738
3741
  }
3739
3742
  getAvailableLocales() {
3740
3743
  return [.../* @__PURE__ */ new Set([
@@ -3756,11 +3759,11 @@ var za = class e {
3756
3759
  return this.lookup(e) !== void 0;
3757
3760
  }
3758
3761
  addCustomMessages(e, t) {
3759
- let n = Ba(e);
3760
- this.customMessages[n] = Ua(this.customMessages[n] ?? {}, t), this.notify();
3762
+ let n = Va(e);
3763
+ this.customMessages[n] = Wa(this.customMessages[n] ?? {}, t), this.notify();
3761
3764
  }
3762
3765
  withLocale(t) {
3763
- let n = this.resolveLocaleTag(t) ?? Ba(t);
3766
+ let n = this.resolveLocaleTag(t) ?? Va(t);
3764
3767
  if (n === this.locale) return this;
3765
3768
  let r = new e({
3766
3769
  ...this.config,
@@ -3772,14 +3775,14 @@ var za = class e {
3772
3775
  try {
3773
3776
  return new Intl.NumberFormat(this.locale, t).format(e);
3774
3777
  } catch {
3775
- return new Intl.NumberFormat(Pa, t).format(e);
3778
+ return new Intl.NumberFormat(Fa, t).format(e);
3776
3779
  }
3777
3780
  }
3778
3781
  formatDate(e, t) {
3779
3782
  try {
3780
3783
  return new Intl.DateTimeFormat(this.locale, t).format(e);
3781
3784
  } catch {
3782
- return new Intl.DateTimeFormat(Pa, t).format(e);
3785
+ return new Intl.DateTimeFormat(Fa, t).format(e);
3783
3786
  }
3784
3787
  }
3785
3788
  getBundle(e = this.locale) {
@@ -3789,15 +3792,15 @@ var za = class e {
3789
3792
  if (n) return {
3790
3793
  locale: t,
3791
3794
  translations: n,
3792
- direction: Ra(t)
3795
+ direction: za(t)
3793
3796
  };
3794
3797
  }
3795
3798
  resolveLocaleTag(e) {
3796
3799
  if (!e) return;
3797
- let t = this.getAvailableLocales(), n = Ma(e, t);
3800
+ let t = this.getAvailableLocales(), n = Na(e, t);
3798
3801
  if (n) return n;
3799
- let r = Aa(e).split("-")[0];
3800
- if (r) return t.find((e) => Aa(e).split("-")[0] === r);
3802
+ let r = ja(e).split("-")[0];
3803
+ if (r) return t.find((e) => ja(e).split("-")[0] === r);
3801
3804
  }
3802
3805
  async loadCatalog(e) {
3803
3806
  let t = this.config.loadCatalog;
@@ -3815,14 +3818,14 @@ var za = class e {
3815
3818
  this.catalogs.get(this.fallbackLocale)
3816
3819
  ];
3817
3820
  for (let n of t) {
3818
- let t = Va(n, e);
3821
+ let t = Ha(n, e);
3819
3822
  if (t !== void 0) return t;
3820
3823
  }
3821
3824
  }
3822
3825
  lookup(e) {
3823
3826
  let t = this.lookupNode(e);
3824
3827
  if (typeof t == "string") return t;
3825
- if (t !== void 0 && La(t)) return t.other;
3828
+ if (t !== void 0 && Ra(t)) return t.other;
3826
3829
  }
3827
3830
  selectPluralCategory(t) {
3828
3831
  let n = e.pluralRules.get(this.locale);
@@ -3840,35 +3843,35 @@ var za = class e {
3840
3843
  for (let e of this.listeners) e();
3841
3844
  }
3842
3845
  };
3843
- function Ba(e) {
3846
+ function Va(e) {
3844
3847
  return e ? e.trim().replace(/_/g, "-") : "";
3845
3848
  }
3846
- function Va(e, t) {
3849
+ function Ha(e, t) {
3847
3850
  if (!e) return;
3848
3851
  let n = e;
3849
3852
  for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
3850
3853
  return n;
3851
3854
  }
3852
- function Ha(e, t) {
3855
+ function Ua(e, t) {
3853
3856
  return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
3854
3857
  let r = t[n];
3855
3858
  return r == null ? e : String(r);
3856
3859
  }) : e;
3857
3860
  }
3858
- function Ua(e, t) {
3861
+ function Wa(e, t) {
3859
3862
  let n = { ...e };
3860
3863
  for (let [e, r] of Object.entries(t)) {
3861
3864
  let t = n[e];
3862
- n[e] = r && typeof r == "object" && t && typeof t == "object" ? Ua(t, r) : r;
3865
+ n[e] = r && typeof r == "object" && t && typeof t == "object" ? Wa(t, r) : r;
3863
3866
  }
3864
3867
  return n;
3865
3868
  }
3866
- var Wa;
3867
- function Ga() {
3868
- return Wa ||= new za(), Wa;
3869
+ var Ga;
3870
+ function Ka() {
3871
+ return Ga ||= new Ba(), Ga;
3869
3872
  }
3870
- function Ka(e) {
3871
- let t = e?.i18n ?? Ga();
3873
+ function qa(e) {
3874
+ let t = e?.i18n ?? Ka();
3872
3875
  return {
3873
3876
  getLocale: () => t.getLocale(),
3874
3877
  setLocale: (e) => t.setLocale(e),
@@ -3881,13 +3884,13 @@ function Ka(e) {
3881
3884
  }
3882
3885
  //#endregion
3883
3886
  //#region tool-tts-inline.svelte
3884
- var qa = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), Ja = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Ya = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Xa = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Za = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), Qa = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), $a = /* @__PURE__ */ hr("<!> <!>", 1), eo = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), to = {
3887
+ var Ja = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), Ya = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Xa = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Za = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Qa = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), $a = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), eo = /* @__PURE__ */ hr("<!> <!>", 1), to = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), no = {
3885
3888
  hash: "svelte-18mzc0g",
3886
- code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));\n /* --pie-white, not --pie-background: the base light theme sets\n --pie-background to rgba(255,255,255,0) so page content shows through,\n and a floating card cannot be transparent. --pie-white is the theme's\n opaque page surface (DaisyUI base-100; #000 under the dark theme). */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3889
+ code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));\n /* --pie-white is the surface role every built-in sets to its page colour\n (DaisyUI base-100; #000 under the dark theme). --pie-background is the\n page token, which a host may point at its own backdrop, and a floating\n card needs a surface it owns. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3887
3890
  };
3888
- function no(o, s) {
3889
- Re(s, !0), Lr(o, to);
3890
- let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 7, void 0), f = ni(s, "showSingleSpeedOption", 7, !1), p = ni(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, b = !1, x = () => {
3891
+ function ro(o, s) {
3892
+ Re(s, !0), Rr(o, no);
3893
+ let c = ri(s, "catalogId", 7, ""), l = ri(s, "language", 7, "en-US"), u = ri(s, "size", 7, "md"), d = ri(s, "speedOptions", 7, void 0), f = ri(s, "showSingleSpeedOption", 7, !1), p = ri(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, b = !1, x = () => {
3891
3894
  if (!(!m || b)) {
3892
3895
  if (b = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3893
3896
  let e = document.createElement("link");
@@ -3951,7 +3954,7 @@ function no(o, s) {
3951
3954
  i.disconnect();
3952
3955
  }
3953
3956
  };
3954
- }, te = (e) => (x(), ee(e), {}), T = /* @__PURE__ */ H(void 0), E = /* @__PURE__ */ H(void 0), ne = /* @__PURE__ */ H(null), re = /* @__PURE__ */ B(() => X(ne)?.ndsIcons === !0), D = /* @__PURE__ */ B(() => Ka(X(ne))), O = /* @__PURE__ */ H(null), ie = /* @__PURE__ */ H(null), k = /* @__PURE__ */ B(() => X(ne)?.ttsService), ae = /* @__PURE__ */ B(() => X(ne)?.highlightCoordinator), oe = /* @__PURE__ */ B(() => X(ie)?.scopeElement || X(O)?.scopeElement || null), A = /* @__PURE__ */ H(!1), se = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(!1), M = /* @__PURE__ */ H(!1), N = /* @__PURE__ */ H(""), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ H(null), ue = /* @__PURE__ */ H(!1), de = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), pe = null, me = /* @__PURE__ */ B(() => X(ue) || X(de)), he = null, ge = /* @__PURE__ */ B(() => a(d())), _e = /* @__PURE__ */ B(() => P(X(ge))), ve = /* @__PURE__ */ B(() => X(ge).length > 1 || f() ? X(ge) : []), ye = /* @__PURE__ */ B(() => X(ce) !== null && X(le) === X(_e) && X(ge).some((e) => e.rate === X(ce)) ? X(ce) : F(X(ge))), be = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, xe = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Se = `${be}-controls`;
3957
+ }, te = (e) => (x(), ee(e), {}), T = /* @__PURE__ */ U(void 0), E = /* @__PURE__ */ U(void 0), ne = /* @__PURE__ */ U(null), re = /* @__PURE__ */ V(() => Z(ne)?.ndsIcons === !0), D = /* @__PURE__ */ V(() => qa(Z(ne))), O = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ U(null), k = /* @__PURE__ */ V(() => Z(ne)?.ttsService), ae = /* @__PURE__ */ V(() => Z(ne)?.highlightCoordinator), oe = /* @__PURE__ */ V(() => Z(ie)?.scopeElement || Z(O)?.scopeElement || null), A = /* @__PURE__ */ U(!1), se = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(!1), N = /* @__PURE__ */ U(""), ce = /* @__PURE__ */ U(null), le = /* @__PURE__ */ U(null), ue = /* @__PURE__ */ U(!1), de = /* @__PURE__ */ U(!1), fe = /* @__PURE__ */ U(!1), pe = null, me = /* @__PURE__ */ V(() => Z(ue) || Z(de)), he = null, ge = /* @__PURE__ */ V(() => a(d())), _e = /* @__PURE__ */ V(() => P(Z(ge))), ve = /* @__PURE__ */ V(() => Z(ge).length > 1 || f() ? Z(ge) : []), ye = /* @__PURE__ */ V(() => Z(ce) !== null && Z(le) === Z(_e) && Z(ge).some((e) => e.rate === Z(ce)) ? Z(ce) : F(Z(ge))), be = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, xe = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Se = `${be}-controls`;
3955
3958
  function Ce() {
3956
3959
  if (!m) return null;
3957
3960
  let e = window[h];
@@ -3975,7 +3978,7 @@ function no(o, s) {
3975
3978
  m && Ce() === be && (delete window[h], Te(null, be));
3976
3979
  }
3977
3980
  function Oe(e = "", t = !1) {
3978
- U(de, !1), U(j, !1), U(M, !1), U(A, t, !0), U(N, e, !0);
3981
+ W(de, !1), W(j, !1), W(M, !1), W(A, t, !0), W(N, e, !0);
3979
3982
  }
3980
3983
  function P(e) {
3981
3984
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
@@ -3991,21 +3994,21 @@ function no(o, s) {
3991
3994
  await e.updateSettings({ rate: t });
3992
3995
  }
3993
3996
  function L() {
3994
- if (!X(T) || !X(E)) return !1;
3995
- let e = X(T).getRootNode();
3997
+ if (!Z(T) || !Z(E)) return !1;
3998
+ let e = Z(T).getRootNode();
3996
3999
  if (!(e instanceof ShadowRoot)) return !1;
3997
4000
  let t = e.activeElement;
3998
- return !!(t && X(E).contains(t));
4001
+ return !!(t && Z(E).contains(t));
3999
4002
  }
4000
4003
  function ke() {
4001
- if (!X(E)) return !1;
4002
- let e = X(E).getRootNode();
4004
+ if (!Z(E)) return !1;
4005
+ let e = Z(E).getRootNode();
4003
4006
  if (!(e instanceof ShadowRoot)) return !1;
4004
4007
  let t = e.activeElement;
4005
- return !t || !X(E).contains(t) ? !1 : t.matches(R);
4008
+ return !t || !Z(E).contains(t) ? !1 : t.matches(R);
4006
4009
  }
4007
4010
  function je() {
4008
- let e = X(E)?.querySelector(Le);
4011
+ let e = Z(E)?.querySelector(Le);
4009
4012
  if (e && !e.disabled) {
4010
4013
  e.focus();
4011
4014
  return;
@@ -4013,101 +4016,101 @@ function no(o, s) {
4013
4016
  Me(!0);
4014
4017
  }
4015
4018
  function Me(e) {
4016
- if (!X(T) || !e) return;
4017
- let t = X(T).getRootNode();
4019
+ if (!Z(T) || !e) return;
4020
+ let t = Z(T).getRootNode();
4018
4021
  if (!(t instanceof ShadowRoot)) return;
4019
4022
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
4020
4023
  (n?.querySelector("button") ?? n)?.focus();
4021
4024
  }
4022
- function Ne(e = X(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4023
- if (!X(fe) && !(!X(A) && !we())) {
4024
- U(fe, !0);
4025
+ function Ne(e = Z(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4026
+ if (!Z(fe) && !(!Z(A) && !we())) {
4027
+ W(fe, !0);
4025
4028
  try {
4026
4029
  let n = L();
4027
- we() && De(), Oe(e), qe(), t && queueMicrotask(() => {
4030
+ we() && De(), Oe(e), Ke(), t && queueMicrotask(() => {
4028
4031
  Me(n);
4029
4032
  });
4030
4033
  } finally {
4031
- U(fe, !1);
4034
+ W(fe, !1);
4032
4035
  }
4033
4036
  }
4034
4037
  }
4035
- fn(() => {
4036
- if (X(T)) return r(X(T), (e) => {
4037
- U(ne, e, !0);
4038
+ dn(() => {
4039
+ if (Z(T)) return r(Z(T), (e) => {
4040
+ W(ne, e, !0);
4038
4041
  });
4039
- }), fn(() => {
4040
- if (!X(T)) return;
4041
- let e = i(X(T), (e) => {
4042
- U(O, e, !0);
4043
- }), t = n(X(T), (e) => {
4044
- U(ie, e, !0);
4042
+ }), dn(() => {
4043
+ if (!Z(T)) return;
4044
+ let e = i(Z(T), (e) => {
4045
+ W(O, e, !0);
4046
+ }), t = n(Z(T), (e) => {
4047
+ W(ie, e, !0);
4045
4048
  });
4046
4049
  return () => {
4047
4050
  t(), e();
4048
4051
  };
4049
- }), fn(() => {
4050
- if (!X(k)) return;
4052
+ }), dn(() => {
4053
+ if (!Z(k)) return;
4051
4054
  let e = (e) => {
4052
- if (!X(A) || !we()) {
4053
- U(j, !1), U(M, !1);
4055
+ if (!Z(A) || !we()) {
4056
+ W(j, !1), W(M, !1);
4054
4057
  return;
4055
4058
  }
4056
- U(j, e === "playing" || e === "paused", !0), U(M, e === "paused");
4059
+ W(j, e === "playing" || e === "paused", !0), W(M, e === "paused");
4057
4060
  }, t = (t) => {
4058
4061
  let n = String(t), r = ke();
4059
- e(n), n === "playing" && (X(de) && U(N, X(D).t("tools.textToSpeech.inline.started"), !0), U(de, !1)), (n === "error" || n === "idle") && U(de, !1), r && !X(j) && queueMicrotask(je);
4062
+ e(n), n === "playing" && (Z(de) && W(N, Z(D).t("tools.textToSpeech.inline.started"), !0), W(de, !1)), (n === "error" || n === "idle") && W(de, !1), r && !Z(j) && queueMicrotask(je);
4060
4063
  };
4061
- return X(k).onStateChange(xe, t), e(X(k).getState()), () => {
4062
- X(k).offStateChange(xe, t);
4064
+ return Z(k).onStateChange(xe, t), e(Z(k).getState()), () => {
4065
+ Z(k).offStateChange(xe, t);
4063
4066
  };
4064
- }), fn(() => {
4067
+ }), dn(() => {
4065
4068
  if (!m) return;
4066
4069
  let e = (e) => {
4067
4070
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
4068
- n === be && t !== be && Ne(X(D).t("tools.textToSpeech.inline.switchedSection"));
4071
+ n === be && t !== be && Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"));
4069
4072
  };
4070
4073
  return window.addEventListener(g, e), () => {
4071
4074
  window.removeEventListener(g, e);
4072
4075
  };
4073
- }), fn(() => {
4076
+ }), dn(() => {
4074
4077
  if (!m) return;
4075
4078
  let t = () => {
4076
- Ne(X(D).t("tools.textToSpeech.inline.switchedSection"), !0);
4079
+ Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"), !0);
4077
4080
  };
4078
4081
  return window.addEventListener(e, t), () => {
4079
4082
  window.removeEventListener(e, t);
4080
4083
  };
4081
- }), fn(() => () => {
4082
- De(), qe();
4084
+ }), dn(() => () => {
4085
+ De(), Ke();
4083
4086
  });
4084
4087
  async function Pe() {
4085
- if (!X(k)) return !1;
4088
+ if (!Z(k)) return !1;
4086
4089
  try {
4087
- return await X(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4090
+ return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4088
4091
  } catch (e) {
4089
4092
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
4090
4093
  }
4091
4094
  }
4092
4095
  let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", R = "[data-pie-tts-seek]", Le = "[data-pie-tts-stop]";
4093
4096
  function Be(e) {
4094
- return X(E) ? Array.from(X(E).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
4097
+ return Z(E) ? Array.from(Z(E).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
4095
4098
  }
4096
4099
  function Ve(e, t) {
4097
4100
  let n = Be(e);
4098
4101
  if (!n.length) return;
4099
4102
  let r = n[(t + n.length) % n.length];
4100
4103
  if (r.focus(), e !== Fe) return;
4101
- let i = Number(r.dataset.pieTtsSpeedRate), a = X(ve).find((e) => e.rate === i);
4102
- a && et(a);
4104
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Z(ve).find((e) => e.rate === i);
4105
+ a && $e(a);
4103
4106
  }
4104
4107
  function He(e, t) {
4105
4108
  let n = Be(e);
4106
4109
  if (!n.length) return;
4107
- let r = X(E)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4110
+ let r = Z(E)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4108
4111
  Ve(e, a === -1 ? 0 : a + t);
4109
4112
  }
4110
- function Ue(e, t) {
4113
+ function z(e, t) {
4111
4114
  switch (t.key) {
4112
4115
  case "ArrowDown":
4113
4116
  case "ArrowRight":
@@ -4123,149 +4126,149 @@ function no(o, s) {
4123
4126
  case "End": t.preventDefault(), Ve(e, -1);
4124
4127
  }
4125
4128
  }
4126
- function We() {
4127
- if (!X(oe)) return null;
4128
- let e = X(oe);
4129
+ function Ue() {
4130
+ if (!Z(oe)) return null;
4131
+ let e = Z(oe);
4129
4132
  if (e.getAttribute?.("data-region") === "content") return e;
4130
4133
  let t = e.querySelector?.("[data-region='content']");
4131
4134
  return t instanceof Element ? t : e;
4132
4135
  }
4133
- function Ge() {
4134
- if (X(O)) return t({
4135
- kind: X(O).kind,
4136
- assessmentId: X(ne)?.assessmentId,
4137
- sectionId: X(ne)?.sectionId,
4138
- itemId: X(O).itemId,
4139
- canonicalItemId: X(O).canonicalItemId || X(O).itemId
4136
+ function We() {
4137
+ if (Z(O)) return t({
4138
+ kind: Z(O).kind,
4139
+ assessmentId: Z(ne)?.assessmentId,
4140
+ sectionId: Z(ne)?.sectionId,
4141
+ itemId: Z(O).itemId,
4142
+ canonicalItemId: Z(O).canonicalItemId || Z(O).itemId
4140
4143
  });
4141
4144
  }
4142
- function Ke(e) {
4143
- return qe(), pe = X(k)?.setHighlightTargetResolverProvider?.(() => ({
4145
+ function Ge(e) {
4146
+ return Ke(), pe = Z(k)?.setHighlightTargetResolverProvider?.(() => ({
4144
4147
  context: {
4145
- scopeElement: X(ie)?.scopeElement || e || null,
4146
- kind: X(O)?.kind,
4147
- itemId: X(O)?.itemId,
4148
- canonicalItemId: X(O)?.canonicalItemId,
4149
- contentKind: X(O)?.contentKind,
4150
- regionPolicy: X(O)?.regionPolicy
4148
+ scopeElement: Z(ie)?.scopeElement || e || null,
4149
+ kind: Z(O)?.kind,
4150
+ itemId: Z(O)?.itemId,
4151
+ canonicalItemId: Z(O)?.canonicalItemId,
4152
+ contentKind: Z(O)?.contentKind,
4153
+ regionPolicy: Z(O)?.regionPolicy
4151
4154
  },
4152
- resolver: X(ie)?.ttsHighlightTargetResolver || null
4155
+ resolver: Z(ie)?.ttsHighlightTargetResolver || null
4153
4156
  })) || null, pe;
4154
4157
  }
4155
- function qe(e = pe) {
4158
+ function Ke(e = pe) {
4156
4159
  e?.(), e === pe && (pe = null);
4157
4160
  }
4158
- function z() {
4161
+ function B() {
4159
4162
  if (!we()) return !1;
4160
- let e = String(X(k)?.getState?.() || "");
4163
+ let e = String(Z(k)?.getState?.() || "");
4161
4164
  return e === "playing" || e === "paused" || e === "loading";
4162
4165
  }
4163
- function Je(e) {
4166
+ function qe(e) {
4164
4167
  let t = L();
4165
- Oe(X(D).t("tools.textToSpeech.inline.startFailed")), we() && De(), X(ae) && X(ae).clearTTS(), qe(e), t && queueMicrotask(() => {
4168
+ Oe(Z(D).t("tools.textToSpeech.inline.startFailed")), we() && De(), Z(ae) && Z(ae).clearTTS(), Ke(e), t && queueMicrotask(() => {
4166
4169
  Me(!0);
4167
4170
  });
4168
4171
  }
4169
- async function Ye() {
4170
- if (!X(k)) return;
4171
- let e = null, t = We();
4172
+ async function Je() {
4173
+ if (!Z(k)) return;
4174
+ let e = null, t = Ue();
4172
4175
  if (!t) {
4173
4176
  console.warn("[TTS Inline] No target container found from shell scope context");
4174
4177
  return;
4175
4178
  }
4176
4179
  try {
4177
- U(A, !0);
4180
+ W(A, !0);
4178
4181
  let n = t.textContent || "";
4179
4182
  if (!n) {
4180
4183
  console.warn("[TTS Inline] No text content found");
4181
4184
  return;
4182
4185
  }
4183
- X(ae) && X(k).setHighlightCoordinator && X(k).setHighlightCoordinator(X(ae)), await I(X(k), X(ye)), he = {
4184
- service: X(k),
4185
- choicesKey: X(_e)
4186
- }, e = Ke(t), X(k).setRootElement?.(t), U(de, !0), U(N, X(D).t("tools.textToSpeech.inline.starting"), !0), X(k).speak(n, {
4186
+ Z(ae) && Z(k).setHighlightCoordinator && Z(k).setHighlightCoordinator(Z(ae)), await I(Z(k), Z(ye)), he = {
4187
+ service: Z(k),
4188
+ choicesKey: Z(_e)
4189
+ }, e = Ge(t), Z(k).setRootElement?.(t), W(de, !0), W(N, Z(D).t("tools.textToSpeech.inline.starting"), !0), Z(k).speak(n, {
4187
4190
  catalogId: c() || void 0,
4188
- catalogContext: Ge(),
4191
+ catalogContext: We(),
4189
4192
  language: l(),
4190
4193
  contentElement: t
4191
4194
  }).catch((t) => {
4192
- console.error("[TTS Inline] Error:", t), Je(e);
4195
+ console.error("[TTS Inline] Error:", t), qe(e);
4193
4196
  }).finally(() => {
4194
- z() || qe(e);
4197
+ B() || Ke(e);
4195
4198
  });
4196
4199
  } catch (t) {
4197
- console.error("[TTS Inline] Error:", t), Je(e);
4200
+ console.error("[TTS Inline] Error:", t), qe(e);
4198
4201
  }
4199
4202
  }
4200
- async function Xe() {
4201
- if (X(k) && !(X(me) || we() && String(X(k).getState?.() || "") === "loading")) {
4202
- if (we() && X(M)) {
4203
- X(k).resume(), U(N, X(D).t("tools.textToSpeech.inline.resumed"), !0);
4203
+ async function Ye() {
4204
+ if (Z(k) && !(Z(me) || we() && String(Z(k).getState?.() || "") === "loading")) {
4205
+ if (we() && Z(M)) {
4206
+ Z(k).resume(), W(N, Z(D).t("tools.textToSpeech.inline.resumed"), !0);
4204
4207
  return;
4205
4208
  }
4206
- if (we() && X(j) && !X(M)) {
4207
- X(k).pause(), U(N, X(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4209
+ if (we() && Z(j) && !Z(M)) {
4210
+ Z(k).pause(), W(N, Z(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4208
4211
  return;
4209
4212
  }
4210
- if (!X(ue)) {
4211
- U(ue, !0);
4213
+ if (!Z(ue)) {
4214
+ W(ue, !0);
4212
4215
  try {
4213
- if (U(N, X(D).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4214
- U(N, X(D).t("tools.textToSpeech.inline.initFailed"), !0);
4216
+ if (W(N, Z(D).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4217
+ W(N, Z(D).t("tools.textToSpeech.inline.initFailed"), !0);
4215
4218
  return;
4216
4219
  }
4217
- let e = String(X(k).getState?.() || "");
4218
- (e === "playing" || e === "paused" || e === "loading") && !we() && X(k).stop(), Ee(), await Ye();
4220
+ let e = String(Z(k).getState?.() || "");
4221
+ (e === "playing" || e === "paused" || e === "loading") && !we() && Z(k).stop(), Ee(), await Je();
4219
4222
  } finally {
4220
- U(ue, !1);
4223
+ W(ue, !1);
4221
4224
  }
4222
4225
  }
4223
4226
  }
4224
4227
  }
4225
- function Ze() {
4226
- if (!X(k)) return;
4228
+ function Xe() {
4229
+ if (!Z(k)) return;
4227
4230
  let e = L();
4228
- X(k).stop(), De(), Oe(X(D).t("tools.textToSpeech.inline.stopped")), X(ae) && X(ae).clearTTS(), qe(), e && queueMicrotask(() => {
4231
+ Z(k).stop(), De(), Oe(Z(D).t("tools.textToSpeech.inline.stopped")), Z(ae) && Z(ae).clearTTS(), Ke(), e && queueMicrotask(() => {
4229
4232
  Me(!0);
4230
4233
  });
4231
4234
  }
4232
- async function Qe() {
4233
- if (!(!X(k) || !X(j))) try {
4234
- await X(k).seekForward?.(1), U(N, X(D).t("tools.textToSpeech.inline.skippedForward"), !0);
4235
+ async function Ze() {
4236
+ if (!(!Z(k) || !Z(j))) try {
4237
+ await Z(k).seekForward?.(1), W(N, Z(D).t("tools.textToSpeech.inline.skippedForward"), !0);
4235
4238
  } catch (e) {
4236
- console.error("[TTS Inline] Seek forward failed:", e), U(N, X(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4239
+ console.error("[TTS Inline] Seek forward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4237
4240
  }
4238
4241
  }
4239
- async function $e() {
4240
- if (!(!X(k) || !X(j))) try {
4241
- await X(k).seekBackward?.(1), U(N, X(D).t("tools.textToSpeech.inline.skippedBackward"), !0);
4242
+ async function Qe() {
4243
+ if (!(!Z(k) || !Z(j))) try {
4244
+ await Z(k).seekBackward?.(1), W(N, Z(D).t("tools.textToSpeech.inline.skippedBackward"), !0);
4242
4245
  } catch (e) {
4243
- console.error("[TTS Inline] Seek backward failed:", e), U(N, X(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4246
+ console.error("[TTS Inline] Seek backward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4244
4247
  }
4245
4248
  }
4246
- async function et(e) {
4247
- let t = X(k);
4249
+ async function $e(e) {
4250
+ let t = Z(k);
4248
4251
  if (!t) return;
4249
- if (X(ye) === e.rate) {
4250
- U(N, X(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4252
+ if (Z(ye) === e.rate) {
4253
+ W(N, Z(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4251
4254
  return;
4252
4255
  }
4253
- let n = X(ce), r = X(le);
4254
- U(ce, e.rate, !0), U(le, X(_e), !0), U(N, X(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4256
+ let n = Z(ce), r = Z(le);
4257
+ W(ce, e.rate, !0), W(le, Z(_e), !0), W(N, Z(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4255
4258
  let i = {
4256
4259
  service: t,
4257
- choicesKey: X(_e)
4260
+ choicesKey: Z(_e)
4258
4261
  };
4259
4262
  he = i;
4260
4263
  try {
4261
4264
  await I(t, e.rate);
4262
4265
  } catch (e) {
4263
- he === i && (he = null), console.error("[TTS Inline] Playback speed change failed:", e), U(ce, n, !0), U(le, r, !0), U(N, X(D).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4266
+ he === i && (he = null), console.error("[TTS Inline] Playback speed change failed:", e), W(ce, n, !0), W(le, r, !0), W(N, Z(D).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4264
4267
  }
4265
4268
  }
4266
- let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() => X(rt) || X(it)), ot = ka(Ea), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ H(""), lt = /* @__PURE__ */ H(0);
4267
- fn(() => {
4268
- let e = X(k), t = X(_e), n = X(j) || X(M);
4269
+ let et = /* @__PURE__ */ V(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), tt = /* @__PURE__ */ V(() => p() === "reserved-row" || p() === "expanding-row"), nt = /* @__PURE__ */ V(() => p() === "floating-overlay"), rt = /* @__PURE__ */ V(() => p() === "left-aligned"), it = /* @__PURE__ */ V(() => Z(nt) || Z(rt)), at = Aa(Da), ot = "[data-pie-tool-overlay-boundary]", st = /* @__PURE__ */ U(""), ct = /* @__PURE__ */ U(0);
4270
+ dn(() => {
4271
+ let e = Z(k), t = Z(_e), n = Z(j) || Z(M);
4269
4272
  if (!e || !n || !we() || he?.service === e && he.choicesKey === t) return;
4270
4273
  let r = {
4271
4274
  service: e,
@@ -4275,7 +4278,7 @@ function no(o, s) {
4275
4278
  let i = !1;
4276
4279
  return queueMicrotask(() => {
4277
4280
  if (i || he !== r) return;
4278
- let t = X(ye);
4281
+ let t = Z(ye);
4279
4282
  I(e, t).catch((e) => {
4280
4283
  he === r && (he = null), console.error("[TTS Inline] External playback speed sync failed:", e);
4281
4284
  });
@@ -4283,7 +4286,7 @@ function no(o, s) {
4283
4286
  i = !0;
4284
4287
  };
4285
4288
  });
4286
- function ut(e, t) {
4289
+ function lt(e, t) {
4287
4290
  let n = e;
4288
4291
  for (; n;) {
4289
4292
  if (n.matches?.(t)) return n;
@@ -4291,56 +4294,56 @@ function no(o, s) {
4291
4294
  }
4292
4295
  return null;
4293
4296
  }
4294
- function dt() {
4295
- let e = X(T)?.getRootNode();
4297
+ function ut() {
4298
+ let e = Z(T)?.getRootNode();
4296
4299
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
4297
4300
  }
4298
- function ft(e) {
4301
+ function dt(e) {
4299
4302
  let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
4300
4303
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
4301
4304
  }
4302
- function pt() {
4303
- let e = dt();
4304
- if (!e || !X(E)) return;
4305
- let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
4306
- if (!X(se)) {
4307
- let e = ft(X(E));
4308
- e > 0 && U(lt, e, !0);
4305
+ function ft() {
4306
+ let e = ut();
4307
+ if (!e || !Z(E)) return;
4308
+ let t = e.getBoundingClientRect(), n = lt(e, ot)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
4309
+ if (!Z(se)) {
4310
+ let e = dt(Z(E));
4311
+ e > 0 && W(ct, e, !0);
4309
4312
  }
4310
- U(se, X(lt) > 0 && r < X(lt), !0);
4311
- let i = X(E).offsetHeight || t.height, a = X(se) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
4312
- U(ct, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
4313
+ W(se, Z(ct) > 0 && r < Z(ct), !0);
4314
+ let i = Z(E).offsetHeight || t.height, a = Z(se) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
4315
+ W(st, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
4313
4316
  }
4314
- fn(() => {
4315
- if (!X(it) || !X(A)) {
4316
- U(ct, ""), U(se, !1), U(lt, 0);
4317
+ dn(() => {
4318
+ if (!Z(rt) || !Z(A)) {
4319
+ W(st, ""), W(se, !1), W(ct, 0);
4317
4320
  return;
4318
4321
  }
4319
4322
  if (typeof window > "u") return;
4320
4323
  let e = 0, t = () => {
4321
4324
  e ||= window.requestAnimationFrame(() => {
4322
- e = 0, pt();
4325
+ e = 0, ft();
4323
4326
  });
4324
4327
  };
4325
- pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4326
- let n = dt(), r = new ResizeObserver(t);
4327
- n && r.observe(n), X(E) && r.observe(X(E));
4328
- let i = n ? ut(n, st) : null;
4328
+ ft(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4329
+ let n = ut(), r = new ResizeObserver(t);
4330
+ n && r.observe(n), Z(E) && r.observe(Z(E));
4331
+ let i = n ? lt(n, ot) : null;
4329
4332
  i && r.observe(i);
4330
4333
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
4331
4334
  return a && r.observe(a), () => {
4332
4335
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
4333
4336
  };
4334
4337
  });
4335
- function mt() {
4336
- if (!X(T)) return null;
4337
- let e = X(T).getRootNode();
4338
+ function pt() {
4339
+ if (!Z(T)) return null;
4340
+ let e = Z(T).getRootNode();
4338
4341
  return e instanceof ShadowRoot ? e.host : null;
4339
4342
  }
4340
- fn(() => {
4341
- let e = mt();
4343
+ dn(() => {
4344
+ let e = pt();
4342
4345
  if (!e) return;
4343
- let t = X(A) === !0;
4346
+ let t = Z(A) === !0;
4344
4347
  e.setAttribute("data-active", t ? "true" : "false");
4345
4348
  let n = !1;
4346
4349
  return queueMicrotask(() => {
@@ -4353,133 +4356,133 @@ function no(o, s) {
4353
4356
  n = !0;
4354
4357
  };
4355
4358
  });
4356
- var ht = {
4359
+ var mt = {
4357
4360
  get catalogId() {
4358
4361
  return c();
4359
4362
  },
4360
4363
  set catalogId(e = "") {
4361
- c(e), Ot();
4364
+ c(e), Dt();
4362
4365
  },
4363
4366
  get language() {
4364
4367
  return l();
4365
4368
  },
4366
4369
  set language(e = "en-US") {
4367
- l(e), Ot();
4370
+ l(e), Dt();
4368
4371
  },
4369
4372
  get size() {
4370
4373
  return u();
4371
4374
  },
4372
4375
  set size(e = "md") {
4373
- u(e), Ot();
4376
+ u(e), Dt();
4374
4377
  },
4375
4378
  get speedOptions() {
4376
4379
  return d();
4377
4380
  },
4378
4381
  set speedOptions(e = void 0) {
4379
- d(e), Ot();
4382
+ d(e), Dt();
4380
4383
  },
4381
4384
  get showSingleSpeedOption() {
4382
4385
  return f();
4383
4386
  },
4384
4387
  set showSingleSpeedOption(e = !1) {
4385
- f(e), Ot();
4388
+ f(e), Dt();
4386
4389
  },
4387
4390
  get layoutMode() {
4388
4391
  return p();
4389
4392
  },
4390
4393
  set layoutMode(e = "expanding-row") {
4391
- p(e), Ot();
4394
+ p(e), Dt();
4392
4395
  }
4393
- }, gt = gr(), _t = en(gt), V = (e) => {
4394
- var t = eo();
4396
+ }, ht = gr(), gt = $t(ht), H = (e) => {
4397
+ var t = to();
4395
4398
  let n;
4396
4399
  {
4397
4400
  let e = (e) => {
4398
- var t = Ya(), n = $t(t), r = (e) => {
4399
- var t = qa();
4400
- Xr(t, "type", "circle"), Xr(t, "size", "small"), Xr(t, "variant", "tertiary"), yn(() => Xr(t, "icon-name", X(j) && !X(M) ? "pause" : "play")), yn(() => Xr(t, "button-aria-label", X(D).t(X(j) && !X(M) ? "tools.textToSpeech.inline.pauseA11y" : X(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y"))), yn(() => Xr(t, "disabled", !X(k))), Rr(t, (e) => C?.(e)), Rr(t, (e, t) => w?.(e, t), () => ({
4401
- "aria-expanded": X(A) ? "true" : "false",
4402
- "aria-controls": X(A) ? Se : null,
4403
- "aria-pressed": X(A) ? "true" : "false",
4404
- "aria-busy": X(me) ? "true" : null
4405
- })), yn(() => Wr(t, 1, `pie-tool-tts-inline__trigger ${X(tt) ?? ""}`, "svelte-18mzc0g")), sr("click", t, Xe), Z(e, t);
4401
+ var t = Xa(), n = Qt(t), r = (e) => {
4402
+ var t = Ja();
4403
+ Zr(t, "type", "circle"), Zr(t, "size", "small"), Zr(t, "variant", "tertiary"), vn(() => Zr(t, "icon-name", Z(j) && !Z(M) ? "pause" : "play")), vn((e) => Zr(t, "button-aria-label", e), [() => Z(D).t(Z(j) && !Z(M) ? "tools.textToSpeech.inline.pauseA11y" : Z(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), vn(() => Zr(t, "disabled", !Z(k))), zr(t, (e) => C?.(e)), zr(t, (e, t) => w?.(e, t), () => ({
4404
+ "aria-expanded": Z(A) ? "true" : "false",
4405
+ "aria-controls": Z(A) ? Se : null,
4406
+ "aria-pressed": Z(A) ? "true" : "false",
4407
+ "aria-busy": Z(me) ? "true" : null
4408
+ })), vn(() => Gr(t, 1, `pie-tool-tts-inline__trigger ${Z(et) ?? ""}`, "svelte-18mzc0g")), or("click", t, Ye), _r(e, t);
4406
4409
  }, i = (e) => {
4407
- var t = Ja(), n = $t(t);
4408
- Ae(t), Rr(t, (e) => te?.(e)), yn((e) => {
4409
- Wr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${X(tt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", X(A) ? "true" : "false"), Q(t, "aria-controls", X(A) ? Se : void 0), Q(t, "aria-pressed", X(A) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", X(me) ? "true" : void 0), t.disabled = !X(k), Wr(n, 1, `fa-solid ${X(j) && !X(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
4410
- }, [() => X(D).t(X(j) && !X(M) ? "tools.textToSpeech.inline.pauseA11y" : X(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), sr("click", t, Xe), Z(e, t);
4410
+ var t = Ya(), n = Qt(t);
4411
+ Ae(t), zr(t, (e) => te?.(e)), vn((e) => {
4412
+ Gr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(et) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(A) ? "true" : "false"), Q(t, "aria-controls", Z(A) ? Se : void 0), Q(t, "aria-pressed", Z(A) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", Z(me) ? "true" : void 0), t.disabled = !Z(k), Gr(n, 1, `fa-solid ${Z(j) && !Z(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
4413
+ }, [() => Z(D).t(Z(j) && !Z(M) ? "tools.textToSpeech.inline.pauseA11y" : Z(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), or("click", t, Ye), _r(e, t);
4411
4414
  };
4412
- Dr(n, (e) => {
4413
- X(re) ? e(r) : e(i, -1);
4414
- }), Ae(t), Z(e, t);
4415
+ Or(n, (e) => {
4416
+ Z(re) ? e(r) : e(i, -1);
4417
+ }), Ae(t), _r(e, t);
4415
4418
  }, n = (e) => {
4416
- var t = gr(), n = en(t), r = (e) => {
4417
- var t = Qa();
4419
+ var t = gr(), n = $t(t), r = (e) => {
4420
+ var t = $a();
4418
4421
  let n;
4419
- var r = $t(t), i = (e) => {
4420
- var t = Za();
4422
+ var r = Qt(t), i = (e) => {
4423
+ var t = Qa();
4421
4424
  let n;
4422
- jr(t, 21, () => X(ve), (e) => e.rate, (e, t) => {
4423
- var n = Xa(), r = $t(n), i = $t(r, !0);
4424
- Ae(r), Ae(n), yn(() => {
4425
- Q(n, "data-pie-tts-speed-rate", X(t).rate), Q(n, "tabindex", X(ye) === X(t).rate ? 0 : -1), Q(n, "aria-label", X(t).ariaLabel), Q(n, "aria-checked", X(ye) === X(t).rate), n.disabled = !X(k), Q(r, "data-label", X(t).label), yr(i, X(t).label);
4426
- }), sr("click", n, () => et(X(t))), sr("keydown", n, (e) => Ue(Fe, e)), Z(e, n);
4427
- }), Ae(t), yn((e) => {
4428
- n = Wr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": X(se) }), Q(t, "aria-label", e);
4429
- }, [() => X(D).t("tools.textToSpeech.inline.playbackSpeedA11y")]), Z(e, t);
4425
+ Mr(t, 21, () => Z(ve), (e) => e.rate, (e, t) => {
4426
+ var n = Za(), r = Qt(n), i = Qt(r, !0);
4427
+ Ae(r), Ae(n), vn(() => {
4428
+ Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(ye) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(ye) === Z(t).rate), n.disabled = !Z(k), Q(r, "data-label", Z(t).label), br(i, Z(t).label);
4429
+ }), or("click", n, () => $e(Z(t))), or("keydown", n, (e) => z(Fe, e)), _r(e, n);
4430
+ }), Ae(t), vn((e) => {
4431
+ n = Gr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(se) }), Q(t, "aria-label", e);
4432
+ }, [() => Z(D).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
4430
4433
  };
4431
- Dr(r, (e) => {
4432
- X(ve).length > 0 && e(i);
4434
+ Or(r, (e) => {
4435
+ Z(ve).length > 0 && e(i);
4433
4436
  });
4434
- var a = tn(r, 2), o = tn(a, 2), s = tn(o, 2);
4435
- Ae(t), ti(t, (e) => U(E, e), () => X(E)), yn((e, r, i, c) => {
4436
- Q(t, "id", Se), n = Wr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4437
- "pie-tool-tts-inline__panel--floating": X(rt),
4438
- "pie-tool-tts-inline__panel--row": X(nt),
4439
- "pie-tool-tts-inline__panel--left-aligned-inline": X(it),
4440
- "pie-tool-tts-inline__panel--compact": X(it) && X(se)
4441
- }), Kr(t, X(it) ? X(ct) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !X(k) || !X(j), Q(o, "aria-label", i), o.disabled = !X(k) || !X(j), Q(s, "aria-label", c), s.disabled = !X(k);
4437
+ var a = en(r, 2), o = en(a, 2), s = en(o, 2);
4438
+ Ae(t), ni(t, (e) => W(E, e), () => Z(E)), vn((e, r, i, c) => {
4439
+ Q(t, "id", Se), n = Gr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4440
+ "pie-tool-tts-inline__panel--floating": Z(nt),
4441
+ "pie-tool-tts-inline__panel--row": Z(tt),
4442
+ "pie-tool-tts-inline__panel--left-aligned-inline": Z(rt),
4443
+ "pie-tool-tts-inline__panel--compact": Z(rt) && Z(se)
4444
+ }), qr(t, Z(rt) ? Z(st) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(k) || !Z(j), Q(o, "aria-label", i), o.disabled = !Z(k) || !Z(j), Q(s, "aria-label", c), s.disabled = !Z(k);
4442
4445
  }, [
4443
- () => X(D).t("tools.textToSpeech.inline.controlsA11y"),
4444
- () => X(D).t("tools.textToSpeech.inline.rewindA11y"),
4445
- () => X(D).t("tools.textToSpeech.inline.fastForwardA11y"),
4446
- () => X(D).t("tools.textToSpeech.inline.stopA11y")
4447
- ]), sr("click", a, $e), sr("keydown", a, (e) => Ue(Ie, e)), sr("click", o, Qe), sr("keydown", o, (e) => Ue(Ie, e)), sr("click", s, Ze), sr("keydown", s, (e) => Ue(Ie, e)), Z(e, t);
4446
+ () => Z(D).t("tools.textToSpeech.inline.controlsA11y"),
4447
+ () => Z(D).t("tools.textToSpeech.inline.rewindA11y"),
4448
+ () => Z(D).t("tools.textToSpeech.inline.fastForwardA11y"),
4449
+ () => Z(D).t("tools.textToSpeech.inline.stopA11y")
4450
+ ]), or("click", a, Qe), or("keydown", a, (e) => z(Ie, e)), or("click", o, Ze), or("keydown", o, (e) => z(Ie, e)), or("click", s, Xe), or("keydown", s, (e) => z(Ie, e)), _r(e, t);
4448
4451
  };
4449
- Dr(n, (e) => {
4450
- X(A) && e(r);
4451
- }), Z(e, t);
4452
+ Or(n, (e) => {
4453
+ Z(A) && e(r);
4454
+ }), _r(e, t);
4452
4455
  };
4453
- var r = $t(t), i = (t) => {
4454
- var r = $a(), i = en(r);
4456
+ var r = Qt(t), i = (t) => {
4457
+ var r = eo(), i = $t(r);
4455
4458
  n(i);
4456
- var a = tn(i, 2);
4457
- e(a), Z(t, r);
4459
+ var a = en(i, 2);
4460
+ e(a), _r(t, r);
4458
4461
  }, a = (t) => {
4459
- var r = $a(), i = en(r);
4462
+ var r = eo(), i = $t(r);
4460
4463
  e(i);
4461
- var a = tn(i, 2);
4462
- n(a), Z(t, r);
4464
+ var a = en(i, 2);
4465
+ n(a), _r(t, r);
4463
4466
  };
4464
- Dr(r, (e) => {
4465
- X(at) ? e(i) : e(a, -1);
4467
+ Or(r, (e) => {
4468
+ Z(it) ? e(i) : e(a, -1);
4466
4469
  });
4467
- var o = tn(r, 2), s = $t(o, !0);
4468
- Ae(o), Ae(t), ti(t, (e) => U(T, e), () => X(T)), yn(() => yr(s, X(N)));
4470
+ var o = en(r, 2), s = Qt(o, !0);
4471
+ Ae(o), Ae(t), ni(t, (e) => W(T, e), () => Z(T)), vn(() => br(s, Z(N)));
4469
4472
  }
4470
- yn(() => {
4471
- n = Wr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4472
- "pie-tool-tts-inline--controls-row": X(nt),
4473
- "pie-tool-tts-inline--floating": X(rt),
4474
- "pie-tool-tts-inline--left-aligned": X(it)
4475
- }), Kr(t, `--pie-tts-zoom-comp: ${ot.current};`);
4476
- }), Z(e, t);
4473
+ vn(() => {
4474
+ n = Gr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4475
+ "pie-tool-tts-inline--controls-row": Z(tt),
4476
+ "pie-tool-tts-inline--floating": Z(nt),
4477
+ "pie-tool-tts-inline--left-aligned": Z(rt)
4478
+ }), qr(t, `--pie-tts-zoom-comp: ${at.current};`);
4479
+ }), _r(e, t);
4477
4480
  };
4478
- return Dr(_t, (e) => {
4479
- m && e(V);
4480
- }), Z(o, gt), ze(ht);
4481
+ return Or(gt, (e) => {
4482
+ m && e(H);
4483
+ }), _r(o, ht), ze(mt);
4481
4484
  }
4482
- cr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(no, {
4485
+ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", li(ro, {
4483
4486
  catalogId: {
4484
4487
  attribute: "catalog-id",
4485
4488
  type: "String"
@@ -4506,4 +4509,4 @@ cr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(no, {
4506
4509
  }
4507
4510
  }, [], [], { mode: "open" }));
4508
4511
  //#endregion
4509
- export { no as default };
4512
+ export { ro as default };