@pie-players/pie-tool-tts-inline 0.3.65 → 0.3.66

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,13 +1,13 @@
1
- import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, connectToolRegionScopeContext as t, connectToolRuntimeContext as n, connectToolShellContext as r, normalizeTTSSpeedControlOptions as i } from "@pie-players/pie-assessment-toolkit";
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
2
  //#region ../../node_modules/.bun/svelte@5.56.8/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
5
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/constants.js
6
- var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, ee = () => {};
7
- function b(e) {
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, ee = Object.isExtensible, b = () => {};
7
+ function x(e) {
8
8
  for (var t = 0; t < e.length; t++) e[t]();
9
9
  }
10
- function x() {
10
+ function te() {
11
11
  var e, t;
12
12
  return {
13
13
  promise: new Promise((n, r) => {
@@ -17,85 +17,85 @@ function x() {
17
17
  reject: t
18
18
  };
19
19
  }
20
- var S = 1024, C = 2048, te = 4096, w = 8192, T = 16384, E = 32768, ne = 1 << 25, D = 65536, re = 1 << 19, O = 1 << 20, k = 1 << 25, ie = 65536, A = 1 << 21, ae = 1 << 22, j = 1 << 23, M = Symbol("$state"), N = Symbol("legacy props"), oe = Symbol(""), se = Symbol("attributes"), ce = Symbol("class"), le = Symbol("style"), ue = Symbol("text"), de = new class extends Error {
20
+ var S = 1024, C = 2048, ne = 4096, w = 8192, T = 16384, re = 32768, ie = 1 << 25, E = 65536, ae = 1 << 19, D = 1 << 20, oe = 1 << 25, se = 65536, O = 1 << 21, ce = 1 << 22, k = 1 << 23, A = Symbol("$state"), j = Symbol("legacy props"), le = Symbol(""), ue = Symbol("attributes"), de = Symbol("class"), fe = Symbol("style"), pe = Symbol("text"), me = new class extends Error {
21
21
  name = "StaleReactionError";
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
- }(), fe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ }(), he = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
24
  //#endregion
25
25
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/errors.js
26
- function pe() {
26
+ function ge() {
27
27
  throw Error("https://svelte.dev/e/async_derived_orphan");
28
28
  }
29
- function me(e, t, n) {
29
+ function _e(e, t, n) {
30
30
  throw Error("https://svelte.dev/e/each_key_duplicate");
31
31
  }
32
- function he(e) {
32
+ function ve(e) {
33
33
  throw Error("https://svelte.dev/e/effect_in_teardown");
34
34
  }
35
- function ge() {
35
+ function ye() {
36
36
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
37
37
  }
38
- function _e(e) {
38
+ function be(e) {
39
39
  throw Error("https://svelte.dev/e/effect_orphan");
40
40
  }
41
- function ve() {
41
+ function xe() {
42
42
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
43
43
  }
44
- function ye() {
44
+ function Se() {
45
45
  throw Error("https://svelte.dev/e/hydration_failed");
46
46
  }
47
- function be(e) {
47
+ function Ce(e) {
48
48
  throw Error("https://svelte.dev/e/props_invalid_value");
49
49
  }
50
- function xe() {
50
+ function we() {
51
51
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
52
52
  }
53
- function Se() {
53
+ function Te() {
54
54
  throw Error("https://svelte.dev/e/state_prototype_fixed");
55
55
  }
56
- function Ce() {
56
+ function Ee() {
57
57
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
58
58
  }
59
- function we() {
59
+ function De() {
60
60
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
61
61
  }
62
- function Te() {
62
+ function Oe() {
63
63
  console.warn("https://svelte.dev/e/derived_inert");
64
64
  }
65
- function Ee(e) {
65
+ function ke(e) {
66
66
  console.warn("https://svelte.dev/e/hydration_mismatch");
67
67
  }
68
- function De() {
68
+ function Ae() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
71
  //#endregion
72
72
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/hydration.js
73
- var P = !1;
74
- function Oe(e) {
75
- P = e;
73
+ var M = !1;
74
+ function N(e) {
75
+ M = e;
76
76
  }
77
- var F;
78
- function I(e) {
79
- if (e === null) throw Ee(), a;
80
- return F = e;
77
+ var P;
78
+ function F(e) {
79
+ if (e === null) throw ke(), o;
80
+ return P = e;
81
81
  }
82
- function ke() {
83
- return I(/* @__PURE__ */ tn(F));
82
+ function je() {
83
+ return F(/* @__PURE__ */ an(P));
84
84
  }
85
- function Ae(e) {
86
- if (P) {
87
- if (/* @__PURE__ */ tn(F) !== null) throw Ee(), a;
88
- F = e;
85
+ function Me(e) {
86
+ if (M) {
87
+ if (/* @__PURE__ */ an(P) !== null) throw ke(), o;
88
+ P = e;
89
89
  }
90
90
  }
91
- function je(e = 1) {
92
- if (P) {
93
- for (var t = e, n = F; t--;) n = /* @__PURE__ */ tn(n);
94
- F = n;
91
+ function Ne(e = 1) {
92
+ if (M) {
93
+ for (var t = e, n = P; t--;) n = /* @__PURE__ */ an(n);
94
+ P = n;
95
95
  }
96
96
  }
97
- function Me(e = !0) {
98
- for (var t = 0, n = F;;) {
97
+ function Pe(e = !0) {
98
+ for (var t = 0, n = P;;) {
99
99
  if (n.nodeType === 8) {
100
100
  var r = n.data;
101
101
  if (r === "]") {
@@ -103,84 +103,84 @@ 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__ */ tn(n);
106
+ var i = /* @__PURE__ */ an(n);
107
107
  e && n.remove(), n = i;
108
108
  }
109
109
  }
110
- function Ne(e) {
111
- if (!e || e.nodeType !== 8) throw Ee(), a;
110
+ function Fe(e) {
111
+ if (!e || e.nodeType !== 8) throw ke(), o;
112
112
  return e.data;
113
113
  }
114
114
  //#endregion
115
115
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/equality.js
116
- function Pe(e) {
116
+ function Ie(e) {
117
117
  return e === this.v;
118
118
  }
119
- function Fe(e, t) {
119
+ function Le(e, t) {
120
120
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
121
121
  }
122
- function Ie(e) {
123
- return !Fe(e, this.v);
122
+ function Re(e) {
123
+ return !Le(e, this.v);
124
124
  }
125
125
  //#endregion
126
126
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/flags/index.js
127
- var Le = !1, Re = !1, L = null;
128
- function ze(e) {
129
- L = e;
127
+ var ze = !1, Be = !1, I = null;
128
+ function Ve(e) {
129
+ I = e;
130
130
  }
131
- function Be(e, t = !1, n) {
132
- L = {
133
- p: L,
131
+ function He(e, t = !1, n) {
132
+ I = {
133
+ p: I,
134
134
  i: !1,
135
135
  c: null,
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
- r: Y,
140
- l: Re && !t ? {
139
+ r: J,
140
+ l: Be && !t ? {
141
141
  s: null,
142
142
  u: null,
143
143
  $: []
144
144
  } : null
145
145
  };
146
146
  }
147
- function Ve(e) {
148
- var t = L, n = t.e;
147
+ function Ue(e) {
148
+ var t = I, n = t.e;
149
149
  if (n !== null) {
150
150
  t.e = null;
151
- for (var r of n) gn(r);
151
+ for (var r of n) yn(r);
152
152
  }
153
- return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
153
+ return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
154
154
  }
155
- function He() {
156
- return !Re || L !== null && L.l === null;
155
+ function We() {
156
+ return !Be || I !== null && I.l === null;
157
157
  }
158
158
  //#endregion
159
159
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/task.js
160
- var R = [];
161
- function Ue() {
162
- var e = R;
163
- R = [], b(e);
164
- }
165
- function We(e) {
166
- if (R.length === 0 && !Ct) {
167
- var t = R;
160
+ var Ge = [];
161
+ function Ke() {
162
+ var e = Ge;
163
+ Ge = [], x(e);
164
+ }
165
+ function qe(e) {
166
+ if (Ge.length === 0 && !Et) {
167
+ var t = Ge;
168
168
  queueMicrotask(() => {
169
- t === R && Ue();
169
+ t === Ge && Ke();
170
170
  });
171
171
  }
172
- R.push(e);
172
+ Ge.push(e);
173
173
  }
174
- function Ge() {
175
- for (; R.length > 0;) Ue();
174
+ function Je() {
175
+ for (; Ge.length > 0;) Ke();
176
176
  }
177
- function Ke(e) {
178
- var t = Y;
179
- if (t === null) return q.f |= j, e;
177
+ function Ye(e) {
178
+ var t = J;
179
+ if (t === null) return K.f |= k, e;
180
180
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
181
- qe(e, t);
181
+ Xe(e, t);
182
182
  }
183
- function qe(e, t) {
183
+ function Xe(e, t) {
184
184
  if (!(t !== null && t.f & 16384)) {
185
185
  for (; t !== null;) {
186
186
  if (t.f & 128) {
@@ -199,67 +199,67 @@ function qe(e, t) {
199
199
  }
200
200
  //#endregion
201
201
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/status.js
202
- var Je = ~(C | te | S);
203
- function z(e, t) {
204
- e.f = e.f & Je | t;
202
+ var Ze = ~(C | ne | S);
203
+ function L(e, t) {
204
+ e.f = e.f & Ze | t;
205
205
  }
206
- function Ye(e) {
207
- e.f & 512 || e.deps === null ? z(e, S) : z(e, te);
206
+ function Qe(e) {
207
+ e.f & 512 || e.deps === null ? L(e, S) : L(e, ne);
208
208
  }
209
209
  //#endregion
210
210
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/utils.js
211
- function Xe(e) {
212
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ie, Xe(t.deps));
211
+ function $e(e) {
212
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= se, $e(t.deps));
213
213
  }
214
- function Ze(e, t, n) {
215
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), z(e, S);
214
+ function et(e, t, n) {
215
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), $e(e.deps), L(e, S);
216
216
  }
217
217
  //#endregion
218
218
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/store.js
219
- var Qe = !1, $e = !1;
220
- function et(e) {
221
- var t = $e;
219
+ var tt = !1, nt = !1;
220
+ function rt(e) {
221
+ var t = nt;
222
222
  try {
223
- return $e = !1, [e(), $e];
223
+ return nt = !1, [e(), nt];
224
224
  } finally {
225
- $e = t;
225
+ nt = t;
226
226
  }
227
227
  }
228
228
  //#endregion
229
229
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
230
- function tt(e) {
231
- var t = q, n = Y;
232
- J(null), Bn(null);
230
+ function it(e) {
231
+ var t = K, n = J;
232
+ q(null), Hn(null);
233
233
  try {
234
234
  return e();
235
235
  } finally {
236
- J(t), Bn(n);
236
+ q(t), Hn(n);
237
237
  }
238
238
  }
239
239
  //#endregion
240
240
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/reactivity/create-subscriber.js
241
- function nt(e) {
242
- let t = 0, n = Ht(0), r;
241
+ function at(e) {
242
+ let t = 0, n = Gt(0), r;
243
243
  return () => {
244
- pn() && (Q(n), xn(() => (t === 0 && (r = ir(() => e(() => Kt(n)))), t += 1, () => {
245
- We(() => {
246
- --t, t === 0 && (r?.(), r = void 0, Kt(n));
244
+ gn() && (Z(n), wn(() => (t === 0 && (r = or(() => e(() => Yt(n)))), t += 1, () => {
245
+ qe(() => {
246
+ --t, t === 0 && (r?.(), r = void 0, Yt(n));
247
247
  });
248
248
  })));
249
249
  };
250
250
  }
251
251
  //#endregion
252
252
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
253
- var rt = D | re;
254
- function it(e, t, n, r) {
255
- new at(e, t, n, r);
253
+ var ot = E | ae;
254
+ function st(e, t, n, r) {
255
+ new ct(e, t, n, r);
256
256
  }
257
- var at = class {
257
+ var ct = class {
258
258
  parent;
259
259
  is_pending = !1;
260
260
  transform_error;
261
261
  #e;
262
- #t = P ? F : null;
262
+ #t = M ? P : null;
263
263
  #n;
264
264
  #r;
265
265
  #i;
@@ -273,35 +273,35 @@ var at = class {
273
273
  #f = /* @__PURE__ */ new Set();
274
274
  #p = /* @__PURE__ */ new Set();
275
275
  #m = null;
276
- #h = nt(() => (this.#m = Ht(this.#l), () => {
276
+ #h = at(() => (this.#m = Gt(this.#l), () => {
277
277
  this.#m = null;
278
278
  }));
279
279
  constructor(e, t, n, r) {
280
280
  this.#e = e, this.#n = t, this.#r = (e) => {
281
- var t = Y;
281
+ var t = J;
282
282
  t.b = this, t.f |= 128, n(e);
283
- }, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Cn(() => {
284
- if (P) {
283
+ }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = En(() => {
284
+ if (M) {
285
285
  let e = this.#t;
286
- ke();
286
+ je();
287
287
  let t = e.data === "[!";
288
288
  if (e.data.startsWith("[?")) {
289
289
  let t = JSON.parse(e.data.slice(2));
290
290
  this.#_(t);
291
291
  } else t ? this.#y() : this.#g();
292
292
  } else this.#b();
293
- }, rt), P && (this.#e = F);
293
+ }, ot), M && (this.#e = P);
294
294
  }
295
295
  #g() {
296
296
  try {
297
- this.#a = wn(() => this.#r(this.#e));
297
+ this.#a = W(() => this.#r(this.#e));
298
298
  } catch (e) {
299
299
  this.error(e);
300
300
  }
301
301
  }
302
302
  #_(e) {
303
303
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
304
- We(r), t && (this.#s = wn(() => {
304
+ qe(r), t && (this.#s = W(() => {
305
305
  t(this.#e, () => e, () => n);
306
306
  }));
307
307
  }
@@ -309,10 +309,10 @@ var at = class {
309
309
  var t = !1, n = !1;
310
310
  let r = () => {
311
311
  if (t) {
312
- De();
312
+ Ae();
313
313
  return;
314
314
  }
315
- t = !0, n && we(), this.#s !== null && An(this.#s, () => {
315
+ t = !0, n && De(), this.#s !== null && Mn(this.#s, () => {
316
316
  this.#s = null;
317
317
  }), this.#S(() => {
318
318
  this.#b();
@@ -324,30 +324,30 @@ var at = class {
324
324
  try {
325
325
  n = !0, this.#n.onerror?.(e, r), n = !1;
326
326
  } catch (e) {
327
- qe(e, this.#i && this.#i.parent);
327
+ Xe(e, this.#i && this.#i.parent);
328
328
  }
329
329
  }
330
330
  };
331
331
  }
332
332
  #y() {
333
333
  let e = this.#n.pending;
334
- e && (this.is_pending = !0, this.#o = wn(() => e(this.#e)), We(() => {
335
- var e = this.#c = document.createDocumentFragment(), t = G();
336
- e.append(t), this.#a = this.#S(() => wn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, An(this.#o, () => {
334
+ e && (this.is_pending = !0, this.#o = W(() => e(this.#e)), qe(() => {
335
+ var e = this.#c = document.createDocumentFragment(), t = U();
336
+ e.append(t), this.#a = this.#S(() => W(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Mn(this.#o, () => {
337
337
  this.#o = null;
338
- }), this.#x(V));
338
+ }), this.#x(z));
339
339
  }));
340
340
  }
341
341
  #b() {
342
342
  try {
343
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = wn(() => {
343
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = W(() => {
344
344
  this.#r(this.#e);
345
345
  }), this.#u > 0) {
346
346
  var e = this.#c = document.createDocumentFragment();
347
- Pn(this.#a, e);
347
+ In(this.#a, e);
348
348
  let t = this.#n.pending;
349
- this.#o = wn(() => t(this.#e));
350
- } else this.#x(V);
349
+ this.#o = W(() => t(this.#e));
350
+ } else this.#x(z);
351
351
  } catch (e) {
352
352
  this.error(e);
353
353
  }
@@ -356,7 +356,7 @@ var at = class {
356
356
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
357
357
  }
358
358
  defer_effect(e) {
359
- Ze(e, this.#f, this.#p);
359
+ et(e, this.#f, this.#p);
360
360
  }
361
361
  is_rendered() {
362
362
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -365,14 +365,14 @@ var at = class {
365
365
  return !!this.#n.pending;
366
366
  }
367
367
  #S(e) {
368
- var t = Y, n = q, r = L;
369
- Bn(this.#i), J(this.#i), ze(this.#i.ctx);
368
+ var t = J, n = K, r = I;
369
+ Hn(this.#i), q(this.#i), Ve(this.#i.ctx);
370
370
  try {
371
- return kt.ensure(), e();
371
+ return Mt.ensure(), e();
372
372
  } catch (e) {
373
- return Ke(e), null;
373
+ return Ye(e), null;
374
374
  } finally {
375
- Bn(t), J(n), ze(r);
375
+ Hn(t), q(n), Ve(r);
376
376
  }
377
377
  }
378
378
  #C(e, t) {
@@ -380,146 +380,146 @@ var at = class {
380
380
  this.parent && this.parent.#C(e, t);
381
381
  return;
382
382
  }
383
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && An(this.#o, () => {
383
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Mn(this.#o, () => {
384
384
  this.#o = null;
385
385
  }), this.#c &&= (this.#e.before(this.#c), null));
386
386
  }
387
387
  update_pending_count(e, t) {
388
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, We(() => {
389
- this.#d = !1, this.#m && Wt(this.#m, this.#l);
388
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, qe(() => {
389
+ this.#d = !1, this.#m && qt(this.#m, this.#l);
390
390
  }));
391
391
  }
392
392
  get_effect_pending() {
393
- return this.#h(), Q(this.#m);
393
+ return this.#h(), Z(this.#m);
394
394
  }
395
395
  error(e) {
396
396
  if (!this.#n.onerror && !this.#n.failed) throw e;
397
- 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(() => {
397
+ z?.is_fork ? (this.#a && z.skip_effect(this.#a), this.#o && z.skip_effect(this.#o), this.#s && z.skip_effect(this.#s), z.oncommit(() => {
398
398
  this.#w(e);
399
399
  })) : this.#w(e);
400
400
  }
401
401
  #w(e) {
402
- this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), P && (I(this.#t), je(), I(Me()));
402
+ this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), M && (F(this.#t), Ne(), F(Pe()));
403
403
  let t = this.#n.failed, n = (e) => {
404
404
  let { reset: n, invoke_onerror: r } = this.#v(e);
405
405
  r(), t && (this.#s = this.#S(() => {
406
406
  try {
407
- return wn(() => {
408
- var r = Y;
407
+ return W(() => {
408
+ var r = J;
409
409
  r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
410
410
  });
411
411
  } catch (e) {
412
- return qe(e, this.#i.parent), null;
412
+ return Xe(e, this.#i.parent), null;
413
413
  }
414
414
  }));
415
415
  };
416
- We(() => {
416
+ qe(() => {
417
417
  var t;
418
418
  try {
419
419
  t = this.transform_error(e);
420
420
  } catch (e) {
421
- qe(e, this.#i && this.#i.parent);
421
+ Xe(e, this.#i && this.#i.parent);
422
422
  return;
423
423
  }
424
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => qe(e, this.#i && this.#i.parent)) : n(t);
424
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Xe(e, this.#i && this.#i.parent)) : n(t);
425
425
  });
426
426
  }
427
427
  };
428
428
  //#endregion
429
429
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/async.js
430
- function ot(e, t, n, r) {
431
- let i = He() ? ut : pt;
430
+ function lt(e, t, n, r) {
431
+ let i = We() ? pt : gt;
432
432
  var a = e.filter((e) => !e.settled), o = t.map(i);
433
433
  if (n.length === 0 && a.length === 0) {
434
434
  r(o);
435
435
  return;
436
436
  }
437
- var s = Y, c = st(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
437
+ var s = J, c = ut(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
438
438
  function u(e) {
439
439
  if (!(s.f & 16384)) {
440
440
  c();
441
441
  try {
442
442
  r([...o, ...e]);
443
443
  } catch (e) {
444
- qe(e, s);
444
+ Xe(e, s);
445
445
  }
446
- ct();
446
+ dt();
447
447
  }
448
448
  }
449
- var d = lt();
449
+ var d = ft();
450
450
  if (n.length === 0) {
451
451
  l.then(() => u([])).finally(d);
452
452
  return;
453
453
  }
454
454
  function f() {
455
- Promise.all(n.map((e) => /* @__PURE__ */ ft(e))).then(u).catch((e) => qe(e, s)).finally(d);
455
+ Promise.all(n.map((e) => /* @__PURE__ */ ht(e))).then(u).catch((e) => Xe(e, s)).finally(d);
456
456
  }
457
457
  l ? l.then(() => {
458
- c(), f(), ct();
458
+ c(), f(), dt();
459
459
  }) : f();
460
460
  }
461
- function st() {
462
- var e = Y, t = q, n = L, r = V;
461
+ function ut() {
462
+ var e = J, t = K, n = I, r = z;
463
463
  return function(i = !0) {
464
- Bn(e), J(t), ze(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
464
+ Hn(e), q(t), Ve(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
465
465
  };
466
466
  }
467
- function ct(e = !0) {
468
- Bn(null), J(null), ze(null), e && V?.deactivate();
467
+ function dt(e = !0) {
468
+ Hn(null), q(null), Ve(null), e && z?.deactivate();
469
469
  }
470
- function lt() {
471
- var e = Y, t = e.b, n = V, r = !!t?.is_rendered();
470
+ function ft() {
471
+ var e = J, t = e.b, n = z, r = !!t?.is_rendered();
472
472
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
473
473
  t?.update_pending_count(-1, n), n.decrement(r, e);
474
474
  };
475
475
  }
476
476
  /*#__NO_SIDE_EFFECTS__*/
477
- function ut(e) {
477
+ function pt(e) {
478
478
  var t = 2 | C;
479
- return Y !== null && (Y.f |= re), {
480
- ctx: L,
479
+ return J !== null && (J.f |= ae), {
480
+ ctx: I,
481
481
  deps: null,
482
482
  effects: null,
483
- equals: Pe,
483
+ equals: Ie,
484
484
  f: t,
485
485
  fn: e,
486
486
  reactions: null,
487
487
  rv: 0,
488
- v: o,
488
+ v: s,
489
489
  wv: 0,
490
- parent: Y,
490
+ parent: J,
491
491
  ac: null
492
492
  };
493
493
  }
494
- var dt = Symbol("obsolete");
494
+ var mt = Symbol("obsolete");
495
495
  /*#__NO_SIDE_EFFECTS__*/
496
- function ft(e, t, n) {
497
- let r = Y;
498
- r === null && pe();
499
- var i = void 0, a = Ht(o), s = !q, c = /* @__PURE__ */ new Set();
500
- return bn(() => {
501
- var t = Y, n = x();
496
+ function ht(e, t, n) {
497
+ let r = J;
498
+ r === null && ge();
499
+ var i = void 0, a = Gt(s), o = !K, c = /* @__PURE__ */ new Set();
500
+ return Cn(() => {
501
+ var t = J, n = te();
502
502
  i = n.promise;
503
503
  try {
504
504
  Promise.resolve(e()).then(n.resolve, (e) => {
505
- e !== de && n.reject(e);
506
- }).finally(ct);
505
+ e !== me && n.reject(e);
506
+ }).finally(dt);
507
507
  } catch (e) {
508
- n.reject(e), ct();
508
+ n.reject(e), dt();
509
509
  }
510
- var o = V;
511
- if (s) {
512
- if (t.f & 32768) var l = lt();
513
- if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(dt);
514
- else for (let e of c.values()) e.reject(dt);
515
- c.add(n), o.async_deriveds.set(t, n);
510
+ var s = z;
511
+ if (o) {
512
+ if (t.f & 32768) var l = ft();
513
+ if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(mt);
514
+ else for (let e of c.values()) e.reject(mt);
515
+ c.add(n), s.async_deriveds.set(t, n);
516
516
  }
517
517
  let u = (e, t = void 0) => {
518
- l?.(), c.delete(n), t !== dt && (o.activate(), t ? (a.f |= j, Wt(a, t)) : (a.f & 8388608 && (a.f ^= j), Wt(a, e)), o.deactivate());
518
+ l?.(), c.delete(n), t !== mt && (s.activate(), t ? (a.f |= k, qt(a, t)) : (a.f & 8388608 && (a.f ^= k), qt(a, e)), s.deactivate());
519
519
  };
520
520
  n.promise.then(u, (e) => u(null, e || "unknown"));
521
- }), mn(() => {
522
- for (let e of c) e.reject(dt);
521
+ }), _n(() => {
522
+ for (let e of c) e.reject(mt);
523
523
  }), new Promise((e) => {
524
524
  function t(n) {
525
525
  function r() {
@@ -531,53 +531,53 @@ function ft(e, t, n) {
531
531
  });
532
532
  }
533
533
  /*#__NO_SIDE_EFFECTS__*/
534
- function B(e) {
535
- let t = /* @__PURE__ */ ut(e);
536
- return Le || Hn(t), t;
534
+ function R(e) {
535
+ let t = /* @__PURE__ */ pt(e);
536
+ return ze || Wn(t), t;
537
537
  }
538
538
  /*#__NO_SIDE_EFFECTS__*/
539
- function pt(e) {
540
- let t = /* @__PURE__ */ ut(e);
541
- return t.equals = Ie, t;
539
+ function gt(e) {
540
+ let t = /* @__PURE__ */ pt(e);
541
+ return t.equals = Re, t;
542
542
  }
543
- function mt(e) {
543
+ function _t(e) {
544
544
  var t = e.effects;
545
545
  if (t !== null) {
546
546
  e.effects = null;
547
- for (var n = 0; n < t.length; n += 1) K(t[n]);
547
+ for (var n = 0; n < t.length; n += 1) G(t[n]);
548
548
  }
549
549
  }
550
- function ht(e) {
551
- var t, n = Y, r = e.parent;
552
- if (!Ln && r !== null && e.v !== o && r.f & 24576) return Te(), e.v;
553
- Bn(r);
550
+ function vt(e) {
551
+ var t, n = J, r = e.parent;
552
+ if (!zn && r !== null && e.v !== s && r.f & 24576) return Oe(), e.v;
553
+ Hn(r);
554
554
  try {
555
- e.f &= ~ie, mt(e), t = Qn(e);
555
+ e.f &= ~se, _t(e), t = er(e);
556
556
  } finally {
557
- Bn(n);
557
+ Hn(n);
558
558
  }
559
559
  return t;
560
560
  }
561
- function gt(e) {
562
- var t = ht(e);
563
- if (!e.equals(t) && (e.wv = Yn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), xt?.capture(e, t, !0)), e.deps === null))) {
564
- z(e, S);
561
+ function yt(e) {
562
+ var t = vt(e);
563
+ if (!e.equals(t) && (e.wv = Zn(), (!z?.is_fork || e.deps === null) && (z === null ? e.v = t : (z.capture(e, t, !0), wt?.capture(e, t, !0)), e.deps === null))) {
564
+ L(e, S);
565
565
  return;
566
566
  }
567
- Ln || (H === null ? Ye(e) : (pn() || V?.is_fork) && H.set(e, t));
567
+ zn || (B === null ? Qe(e) : (gn() || z?.is_fork) && B.set(e, t));
568
568
  }
569
- function _t(e) {
570
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
571
- t.ac.abort(de), t.ac = null;
572
- }), t.fn !== null && (t.teardown = ee), er(t, 0), En(t));
569
+ function bt(e) {
570
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && it(() => {
571
+ t.ac.abort(me), t.ac = null;
572
+ }), t.fn !== null && (t.teardown = b), nr(t, 0), On(t));
573
573
  }
574
- function vt(e) {
575
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
574
+ function xt(e) {
575
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && rr(t);
576
576
  }
577
577
  //#endregion
578
578
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/batch.js
579
- var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt = !1, Tt = null, Et = null, Dt = 0, Ot = 1, kt = class e {
580
- id = Ot++;
579
+ var St = null, Ct = null, z = null, wt = null, B = null, Tt = null, Et = !1, Dt = !1, Ot = null, kt = null, At = 0, jt = 1, Mt = class e {
580
+ id = jt++;
581
581
  #e = !1;
582
582
  linked = !0;
583
583
  #t = null;
@@ -599,7 +599,7 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
599
599
  is_fork = !1;
600
600
  #m = !1;
601
601
  constructor() {
602
- bt === null ? yt = bt = this : (bt.#n = this, this.#t = bt), bt = this;
602
+ Ct === null ? St = Ct = this : (Ct.#n = this, this.#t = Ct), Ct = this;
603
603
  }
604
604
  #h() {
605
605
  if (this.is_fork) return !0;
@@ -625,31 +625,31 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
625
625
  var n = this.#f.get(e);
626
626
  if (n) {
627
627
  this.#f.delete(e);
628
- for (var r of n.d) z(r, C), t(r);
629
- for (r of n.m) z(r, te), t(r);
628
+ for (var r of n.d) L(r, C), t(r);
629
+ for (r of n.m) L(r, ne), t(r);
630
630
  }
631
631
  this.#p.add(e);
632
632
  }
633
633
  #g() {
634
- this.#e = !0, Dt++ > 1e3 && (this.#S(), jt());
635
- for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
636
- for (let e of this.#d) z(e, te), this.schedule(e);
634
+ this.#e = !0, At++ > 1e3 && (this.#S(), Pt());
635
+ for (let e of this.#u) this.#d.delete(e), L(e, C), this.schedule(e);
636
+ for (let e of this.#d) L(e, ne), this.schedule(e);
637
637
  let t = this.#c;
638
638
  this.#c = [], this.apply();
639
- var n = Tt = [], r = [], i = Et = [];
639
+ var n = Ot = [], r = [], i = kt = [];
640
640
  for (let e of t) try {
641
641
  this.#_(e, n, r);
642
642
  } catch (t) {
643
- throw Rt(e), this.#h() || this.discard(), t;
643
+ throw Vt(e), this.#h() || this.discard(), t;
644
644
  }
645
- if (V = null, i.length > 0) {
645
+ if (z = null, i.length > 0) {
646
646
  var a = e.ensure();
647
647
  for (let e of i) a.schedule(e);
648
648
  }
649
- if (Tt = null, Et = null, this.#h()) {
649
+ if (Ot = null, kt = null, this.#h()) {
650
650
  this.#b(r), this.#b(n);
651
- for (let [e, t] of this.#f) Lt(e, t);
652
- i.length > 0 && V.#g();
651
+ for (let [e, t] of this.#f) Bt(e, t);
652
+ i.length > 0 && z.#g();
653
653
  return;
654
654
  }
655
655
  let o = this.#v();
@@ -659,9 +659,9 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
659
659
  }
660
660
  this.#u.clear(), this.#d.clear();
661
661
  for (let e of this.#r) e(this);
662
- this.#r.clear(), xt = this, Nt(r), Nt(n), xt = null, this.#s?.resolve();
663
- var s = V;
664
- if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Le && (this.#x(), V = s)), this.#c.length > 0) if (s !== null) {
662
+ this.#r.clear(), wt = this, It(r), It(n), wt = null, this.#s?.resolve();
663
+ var s = z;
664
+ if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), ze && (this.#x(), z = s)), this.#c.length > 0) if (s !== null) {
665
665
  let e = s;
666
666
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
667
667
  } else s = this;
@@ -672,7 +672,7 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
672
672
  for (var r = e.first; r !== null;) {
673
673
  var i = r.f, a = (i & 96) != 0;
674
674
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
675
- a ? r.f ^= S : i & 4 ? t.push(r) : Le && i & 16777224 ? n.push(r) : Xn(r) && (i & 16 && this.#d.add(r), tr(r));
675
+ a ? r.f ^= S : i & 4 ? t.push(r) : ze && i & 16777224 ? n.push(r) : Qn(r) && (i & 16 && this.#d.add(r), rr(r));
676
676
  var o = r.first;
677
677
  if (o !== null) {
678
678
  r = o;
@@ -712,43 +712,43 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
712
712
  if (r & 2) t(e);
713
713
  else {
714
714
  var i = e;
715
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, C), this.schedule(i));
715
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), L(i, C), this.schedule(i));
716
716
  }
717
717
  }
718
718
  };
719
719
  for (let e of this.current.keys()) t(e);
720
- this.oncommit(() => e.discard()), e.#S(), V = this, this.#g();
720
+ this.oncommit(() => e.discard()), e.#S(), z = this, this.#g();
721
721
  }
722
722
  #b(e) {
723
- for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
723
+ for (var t = 0; t < e.length; t += 1) et(e[t], this.#u, this.#d);
724
724
  }
725
725
  capture(e, t, n = !1) {
726
- e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), H?.set(e, t)), this.is_fork || (e.v = t);
726
+ e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), B?.set(e, t)), this.is_fork || (e.v = t);
727
727
  }
728
728
  activate() {
729
- V = this;
729
+ z = this;
730
730
  }
731
731
  deactivate() {
732
- V = null, H = null;
732
+ z = null, B = null;
733
733
  }
734
734
  flush() {
735
735
  try {
736
- wt = !0, V = this, this.#g();
736
+ Dt = !0, z = this, this.#g();
737
737
  } finally {
738
- Dt = 0, St = null, Tt = null, Et = null, wt = !1, V = null, H = null, Bt.clear();
738
+ At = 0, Tt = null, Ot = null, kt = null, Dt = !1, z = null, B = null, Ut.clear();
739
739
  }
740
740
  }
741
741
  discard() {
742
742
  for (let e of this.#i) e(this);
743
743
  this.#i.clear();
744
- for (let e of this.async_deriveds.values()) e.reject(dt);
744
+ for (let e of this.async_deriveds.values()) e.reject(mt);
745
745
  this.#S(), this.#s?.resolve();
746
746
  }
747
747
  register_created_effect(e) {
748
748
  this.#l.push(e);
749
749
  }
750
750
  #x() {
751
- for (let u = yt; u !== null; u = u.#n) {
751
+ for (let u = St; u !== null; u = u.#n) {
752
752
  var e = u.id < this.id, t = [];
753
753
  for (let [r, [i, a]] of this.current) {
754
754
  if (u.current.has(r)) {
@@ -772,13 +772,13 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
772
772
  });
773
773
  u.activate();
774
774
  var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
775
- for (var s of t) Pt(s, i, a, o);
775
+ for (var s of t) Lt(s, i, a, o);
776
776
  o = /* @__PURE__ */ new Map();
777
777
  var c = [...u.current].filter(([e, t]) => {
778
778
  let n = this.current.get(e);
779
779
  return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
780
780
  }).map(([e]) => e);
781
- if (c.length > 0) for (let e of this.#l) !(e.f & 155648) && Ft(e, c, o) && (e.f & 4194320 ? (z(e, C), u.schedule(e)) : u.#u.add(e));
781
+ if (c.length > 0) for (let e of this.#l) !(e.f & 155648) && Rt(e, c, o) && (e.f & 4194320 ? (L(e, C), u.schedule(e)) : u.#u.add(e));
782
782
  if (u.#c.length > 0 && !u.#m) {
783
783
  u.apply();
784
784
  for (var l of u.#c) u.#_(l, [], []);
@@ -800,7 +800,7 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
800
800
  let e = this.#o.get(t) ?? 0;
801
801
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
802
802
  }
803
- this.#m || (this.#m = !0, We(() => {
803
+ this.#m || (this.#m = !0, qe(() => {
804
804
  this.#m = !1, this.linked && this.flush();
805
805
  }));
806
806
  }
@@ -816,25 +816,25 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
816
816
  this.#i.add(e);
817
817
  }
818
818
  settled() {
819
- return (this.#s ??= x()).promise;
819
+ return (this.#s ??= te()).promise;
820
820
  }
821
821
  static ensure() {
822
- if (V === null) {
823
- let t = V = new e();
824
- !wt && !Ct && We(() => {
822
+ if (z === null) {
823
+ let t = z = new e();
824
+ !Dt && !Et && qe(() => {
825
825
  t.#e || t.flush();
826
826
  });
827
827
  }
828
- return V;
828
+ return z;
829
829
  }
830
830
  apply() {
831
- if (!Le || !this.is_fork && this.#t === null && this.#n === null) {
832
- H = null;
831
+ if (!ze || !this.is_fork && this.#t === null && this.#n === null) {
832
+ B = null;
833
833
  return;
834
834
  }
835
- H = /* @__PURE__ */ new Map();
836
- for (let [e, [t]] of this.current) H.set(e, t);
837
- for (let t = yt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
835
+ B = /* @__PURE__ */ new Map();
836
+ for (let [e, [t]] of this.current) B.set(e, t);
837
+ for (let t = St; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
838
838
  var e = !1;
839
839
  if (t.id < this.id) {
840
840
  for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
@@ -842,18 +842,18 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
842
842
  break;
843
843
  }
844
844
  }
845
- if (!e) for (let [e, n] of t.previous) H.has(e) || H.set(e, n);
845
+ if (!e) for (let [e, n] of t.previous) B.has(e) || B.set(e, n);
846
846
  }
847
847
  }
848
848
  schedule(e) {
849
- if (St = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
849
+ if (Tt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
850
850
  e.b.defer_effect(e);
851
851
  return;
852
852
  }
853
853
  for (var t = e; t.parent !== null;) {
854
854
  t = t.parent;
855
855
  var n = t.f;
856
- if (Tt !== null && t === Y && (Le || (q === null || !(q.f & 2)) && !Qe)) return;
856
+ if (Ot !== null && t === J && (ze || (K === null || !(K.f & 2)) && !tt)) return;
857
857
  if (n & 96) {
858
858
  if (!(n & 1024)) return;
859
859
  t.f ^= S;
@@ -864,189 +864,189 @@ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt
864
864
  #S() {
865
865
  if (this.linked) {
866
866
  var e = this.#t, t = this.#n;
867
- e === null ? yt = t : e.#n = t, t === null ? bt = e : t.#t = e, this.linked = !1;
867
+ e === null ? St = t : e.#n = t, t === null ? Ct = e : t.#t = e, this.linked = !1;
868
868
  }
869
869
  }
870
870
  };
871
- function At(e) {
872
- var t = Ct;
873
- Ct = !0;
871
+ function Nt(e) {
872
+ var t = Et;
873
+ Et = !0;
874
874
  try {
875
875
  var n;
876
- for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
877
- if (Ge(), V === null) return n;
878
- V.flush();
876
+ for (e && (z !== null && !z.is_fork && z.flush(), n = e());;) {
877
+ if (Je(), z === null) return n;
878
+ z.flush();
879
879
  }
880
880
  } finally {
881
- Ct = t;
881
+ Et = t;
882
882
  }
883
883
  }
884
- function jt() {
884
+ function Pt() {
885
885
  try {
886
- ve();
886
+ xe();
887
887
  } catch (e) {
888
- qe(e, St);
888
+ Xe(e, Tt);
889
889
  }
890
890
  }
891
- var Mt = null;
892
- function Nt(e) {
891
+ var Ft = null;
892
+ function It(e) {
893
893
  var t = e.length;
894
894
  if (t !== 0) {
895
895
  for (var n = 0; n < t;) {
896
896
  var r = e[n++];
897
- if (!(r.f & 24576) && Xn(r) && (Mt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && kn(r), Mt?.size > 0)) {
898
- Bt.clear();
899
- for (let e of Mt) {
897
+ if (!(r.f & 24576) && Qn(r) && (Ft = /* @__PURE__ */ new Set(), rr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && jn(r), Ft?.size > 0)) {
898
+ Ut.clear();
899
+ for (let e of Ft) {
900
900
  if (e.f & 24576) continue;
901
901
  let t = [e], n = e.parent;
902
- for (; n !== null;) Mt.has(n) && (Mt.delete(n), t.push(n)), n = n.parent;
902
+ for (; n !== null;) Ft.has(n) && (Ft.delete(n), t.push(n)), n = n.parent;
903
903
  for (let e = t.length - 1; e >= 0; e--) {
904
904
  let n = t[e];
905
- n.f & 24576 || tr(n);
905
+ n.f & 24576 || rr(n);
906
906
  }
907
907
  }
908
- Mt.clear();
908
+ Ft.clear();
909
909
  }
910
910
  }
911
- Mt = null;
911
+ Ft = null;
912
912
  }
913
913
  }
914
- function Pt(e, t, n, r) {
914
+ function Lt(e, t, n, r) {
915
915
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
916
916
  let e = i.f;
917
- e & 2 ? Pt(i, t, n, r) : e & 4194320 && !(e & 2048) && Ft(i, t, r) && (z(i, C), It(i));
917
+ e & 2 ? Lt(i, t, n, r) : e & 4194320 && !(e & 2048) && Rt(i, t, r) && (L(i, C), zt(i));
918
918
  }
919
919
  }
920
- function Ft(e, t, n) {
920
+ function Rt(e, t, n) {
921
921
  let r = n.get(e);
922
922
  if (r !== void 0) return r;
923
923
  if (e.deps !== null) for (let r of e.deps) {
924
- if (u.call(t, r)) return !0;
925
- if (r.f & 2 && Ft(r, t, n)) return n.set(r, !0), !0;
924
+ if (d.call(t, r)) return !0;
925
+ if (r.f & 2 && Rt(r, t, n)) return n.set(r, !0), !0;
926
926
  }
927
927
  return n.set(e, !1), !1;
928
928
  }
929
- function It(e) {
930
- V.schedule(e);
929
+ function zt(e) {
930
+ z.schedule(e);
931
931
  }
932
- function Lt(e, t) {
932
+ function Bt(e, t) {
933
933
  if (!(e.f & 32 && e.f & 1024)) {
934
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
935
- for (var n = e.first; n !== null;) Lt(n, t), n = n.next;
934
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), L(e, S);
935
+ for (var n = e.first; n !== null;) Bt(n, t), n = n.next;
936
936
  }
937
937
  }
938
- function Rt(e) {
939
- z(e, S);
940
- for (var t = e.first; t !== null;) Rt(t), t = t.next;
938
+ function Vt(e) {
939
+ L(e, S);
940
+ for (var t = e.first; t !== null;) Vt(t), t = t.next;
941
941
  }
942
942
  //#endregion
943
943
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/sources.js
944
- var zt = /* @__PURE__ */ new Set(), Bt = /* @__PURE__ */ new Map(), Vt = !1;
945
- function Ht(e, t) {
944
+ var Ht = /* @__PURE__ */ new Set(), Ut = /* @__PURE__ */ new Map(), Wt = !1;
945
+ function Gt(e, t) {
946
946
  return {
947
947
  f: 0,
948
948
  v: e,
949
949
  reactions: null,
950
- equals: Pe,
950
+ equals: Ie,
951
951
  rv: 0,
952
952
  wv: 0
953
953
  };
954
954
  }
955
955
  /*#__NO_SIDE_EFFECTS__*/
956
- function U(e, t) {
957
- let n = Ht(e, t);
958
- return Hn(n), n;
956
+ function V(e, t) {
957
+ let n = Gt(e, t);
958
+ return Wn(n), n;
959
959
  }
960
960
  /*#__NO_SIDE_EFFECTS__*/
961
- function Ut(e, t = !1, n = !0) {
962
- let r = Ht(e);
963
- return t || (r.equals = Ie), Re && n && L !== null && L.l !== null && (L.l.s ??= []).push(r), r;
961
+ function Kt(e, t = !1, n = !0) {
962
+ let r = Gt(e);
963
+ return t || (r.equals = Re), Be && n && I !== null && I.l !== null && (I.l.s ??= []).push(r), r;
964
964
  }
965
- function W(e, t, n = !1) {
966
- return q !== null && (!zn || q.f & 131072) && He() && q.f & 4325394 && (Vn === null || !Vn.has(e)) && Ce(), Wt(e, n ? Jt(t) : t, Et);
965
+ function H(e, t, n = !1) {
966
+ return K !== null && (!Vn || K.f & 131072) && We() && K.f & 4325394 && (Un === null || !Un.has(e)) && Ee(), qt(e, n ? Zt(t) : t, kt);
967
967
  }
968
- function Wt(e, t, n = null) {
968
+ function qt(e, t, n = null) {
969
969
  if (!e.equals(t)) {
970
- Bt.set(e, Ln ? t : e.v);
971
- var r = kt.ensure();
970
+ Ut.set(e, zn ? t : e.v);
971
+ var r = Mt.ensure();
972
972
  if (r.capture(e, t), e.f & 2) {
973
973
  let t = e;
974
- e.f & 2048 && ht(t), H === null && Ye(t);
974
+ e.f & 2048 && vt(t), B === null && Qe(t);
975
975
  }
976
- e.wv = Yn(), qt(e, C, n), He() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (Un === null ? Wn([e]) : Un.push(e)), !r.is_fork && zt.size > 0 && !Vt && Gt();
976
+ e.wv = Zn(), Xt(e, C, n), We() && J !== null && J.f & 1024 && !(J.f & 96) && (Gn === null ? Kn([e]) : Gn.push(e)), !r.is_fork && Ht.size > 0 && !Wt && Jt();
977
977
  }
978
978
  return t;
979
979
  }
980
- function Gt() {
981
- Vt = !1;
982
- for (let e of zt) {
983
- e.f & 1024 && z(e, te);
980
+ function Jt() {
981
+ Wt = !1;
982
+ for (let e of Ht) {
983
+ e.f & 1024 && L(e, ne);
984
984
  let t;
985
985
  try {
986
- t = Xn(e);
986
+ t = Qn(e);
987
987
  } catch {
988
988
  t = !0;
989
989
  }
990
- t && tr(e);
990
+ t && rr(e);
991
991
  }
992
- zt.clear();
992
+ Ht.clear();
993
993
  }
994
- function Kt(e) {
995
- W(e, e.v + 1);
994
+ function Yt(e) {
995
+ H(e, e.v + 1);
996
996
  }
997
- function qt(e, t, n) {
997
+ function Xt(e, t, n) {
998
998
  var r = e.reactions;
999
- if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
999
+ if (r !== null) for (var i = We(), a = r.length, o = 0; o < a; o++) {
1000
1000
  var s = r[o], c = s.f;
1001
- if (!(!i && s === Y)) {
1001
+ if (!(!i && s === J)) {
1002
1002
  var l = (c & C) === 0;
1003
- if (l && z(s, t), c & 131072) zt.add(s);
1003
+ if (l && L(s, t), c & 131072) Ht.add(s);
1004
1004
  else if (c & 2) {
1005
1005
  var u = s;
1006
- H?.delete(u), c & 65536 || (c & 512 && (Y === null || !(Y.f & 2097152)) && (s.f |= ie), qt(u, te, n));
1006
+ B?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= se), Xt(u, ne, n));
1007
1007
  } else if (l) {
1008
1008
  var d = s;
1009
- c & 16 && Mt !== null && Mt.add(d), n === null ? It(d) : n.push(d);
1009
+ c & 16 && Ft !== null && Ft.add(d), n === null ? zt(d) : n.push(d);
1010
1010
  }
1011
1011
  }
1012
1012
  }
1013
1013
  }
1014
- function Jt(e) {
1015
- if (typeof e != "object" || !e || M in e) return e;
1016
- let t = v(e);
1017
- if (t !== g && t !== _) return e;
1018
- var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = qn, l = (e) => {
1019
- if (qn === s) return e();
1020
- var t = q, n = qn;
1021
- J(null), Jn(s);
1014
+ function Zt(e) {
1015
+ if (typeof e != "object" || !e || A in e) return e;
1016
+ let t = y(e);
1017
+ if (t !== _ && t !== v) return e;
1018
+ var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ V(0), a = null, o = Yn, c = (e) => {
1019
+ if (Yn === o) return e();
1020
+ var t = K, n = Yn;
1021
+ q(null), Xn(o);
1022
1022
  var r = e();
1023
- return J(t), Jn(n), r;
1023
+ return q(t), Xn(n), r;
1024
1024
  };
1025
- return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
1025
+ return r && n.set("length", /* @__PURE__ */ V(e.length, a)), new Proxy(e, {
1026
1026
  defineProperty(e, t, r) {
1027
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && xe();
1027
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && we();
1028
1028
  var i = n.get(t);
1029
- return i === void 0 ? l(() => {
1030
- var e = /* @__PURE__ */ U(r.value, a);
1029
+ return i === void 0 ? c(() => {
1030
+ var e = /* @__PURE__ */ V(r.value, a);
1031
1031
  return n.set(t, e), e;
1032
- }) : W(i, r.value, !0), !0;
1032
+ }) : H(i, r.value, !0), !0;
1033
1033
  },
1034
1034
  deleteProperty(e, t) {
1035
1035
  var r = n.get(t);
1036
1036
  if (r === void 0) {
1037
1037
  if (t in e) {
1038
- let e = l(() => /* @__PURE__ */ U(o, a));
1039
- n.set(t, e), Kt(i);
1038
+ let e = c(() => /* @__PURE__ */ V(s, a));
1039
+ n.set(t, e), Yt(i);
1040
1040
  }
1041
- } else W(r, o), Kt(i);
1041
+ } else H(r, s), Yt(i);
1042
1042
  return !0;
1043
1043
  },
1044
1044
  get(t, r, i) {
1045
- if (r === M) return e;
1046
- var s = n.get(r), c = r in t;
1047
- if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ U(Jt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
1048
- var u = Q(s);
1049
- return u === o ? void 0 : u;
1045
+ if (r === A) return e;
1046
+ var o = n.get(r), l = r in t;
1047
+ if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ V(Zt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
1048
+ var u = Z(o);
1049
+ return u === s ? void 0 : u;
1050
1050
  }
1051
1051
  return Reflect.get(t, r, i);
1052
1052
  },
@@ -1054,56 +1054,56 @@ function Jt(e) {
1054
1054
  var r = Reflect.getOwnPropertyDescriptor(e, t);
1055
1055
  if (r && "value" in r) {
1056
1056
  var i = n.get(t);
1057
- i && (r.value = Q(i));
1057
+ i && (r.value = Z(i));
1058
1058
  } else if (r === void 0) {
1059
- var a = n.get(t), s = a?.v;
1060
- if (a !== void 0 && s !== o) return {
1059
+ var a = n.get(t), o = a?.v;
1060
+ if (a !== void 0 && o !== s) return {
1061
1061
  enumerable: !0,
1062
1062
  configurable: !0,
1063
- value: s,
1063
+ value: o,
1064
1064
  writable: !0
1065
1065
  };
1066
1066
  }
1067
1067
  return r;
1068
1068
  },
1069
1069
  has(e, t) {
1070
- if (t === M) return !0;
1071
- var r = n.get(t), i = r !== void 0 && r.v !== o || Reflect.has(e, t);
1072
- return (r !== void 0 || Y !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? Jt(e[t]) : o, a)), n.set(t, r)), Q(r) === o) ? !1 : i;
1070
+ if (t === A) return !0;
1071
+ var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
1072
+ return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ V(i ? Zt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
1073
1073
  },
1074
- set(e, t, s, c) {
1074
+ set(e, t, o, l) {
1075
1075
  var u = n.get(t), d = t in e;
1076
- if (r && t === "length") for (var f = s; f < u.v; f += 1) {
1076
+ if (r && t === "length") for (var f = o; f < u.v; f += 1) {
1077
1077
  var p = n.get(f + "");
1078
- p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ U(o, a)), n.set(f + "", p)) : W(p, o);
1078
+ p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ V(s, a)), n.set(f + "", p)) : H(p, s);
1079
1079
  }
1080
- if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ U(void 0, a)), W(u, Jt(s)), n.set(t, u));
1080
+ if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ V(void 0, a)), H(u, Zt(o)), n.set(t, u));
1081
1081
  else {
1082
- d = u.v !== o;
1083
- var h = l(() => Jt(s));
1084
- W(u, h);
1082
+ d = u.v !== s;
1083
+ var m = c(() => Zt(o));
1084
+ H(u, m);
1085
1085
  }
1086
1086
  var g = Reflect.getOwnPropertyDescriptor(e, t);
1087
- if (g?.set && g.set.call(c, s), !d) {
1087
+ if (g?.set && g.set.call(l, o), !d) {
1088
1088
  if (r && typeof t == "string") {
1089
1089
  var _ = n.get("length"), v = Number(t);
1090
- Number.isInteger(v) && v >= _.v && W(_, v + 1);
1090
+ Number.isInteger(v) && v >= _.v && H(_, v + 1);
1091
1091
  }
1092
- Kt(i);
1092
+ Yt(i);
1093
1093
  }
1094
1094
  return !0;
1095
1095
  },
1096
1096
  ownKeys(e) {
1097
- Q(i);
1097
+ Z(i);
1098
1098
  var t = Reflect.ownKeys(e).filter((e) => {
1099
1099
  var t = n.get(e);
1100
- return t === void 0 || t.v !== o;
1100
+ return t === void 0 || t.v !== s;
1101
1101
  });
1102
- for (var [r, a] of n) a.v !== o && !(r in e) && t.push(r);
1102
+ for (var [r, a] of n) a.v !== s && !(r in e) && t.push(r);
1103
1103
  return t;
1104
1104
  },
1105
1105
  setPrototypeOf() {
1106
- Se();
1106
+ Te();
1107
1107
  }
1108
1108
  });
1109
1109
  }
@@ -1118,90 +1118,90 @@ new Set([
1118
1118
  "splice",
1119
1119
  "unshift"
1120
1120
  ]);
1121
- var Yt, Xt, Zt, Qt;
1122
- function $t() {
1123
- if (Yt === void 0) {
1124
- Yt = window, Xt = /Firefox/.test(navigator.userAgent);
1121
+ var Qt, $t, en, tn;
1122
+ function nn() {
1123
+ if (Qt === void 0) {
1124
+ Qt = window, $t = /Firefox/.test(navigator.userAgent);
1125
1125
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1126
- Zt = m(t, "firstChild").get, Qt = m(t, "nextSibling").get, y(e) && (e[ce] = void 0, e[se] = null, e[le] = void 0, e.__e = void 0), y(n) && (n[ue] = void 0);
1126
+ en = h(t, "firstChild").get, tn = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
1127
1127
  }
1128
1128
  }
1129
- function G(e = "") {
1129
+ function U(e = "") {
1130
1130
  return document.createTextNode(e);
1131
1131
  }
1132
1132
  /*@__NO_SIDE_EFFECTS__*/
1133
- function en(e) {
1134
- return Zt.call(e);
1133
+ function rn(e) {
1134
+ return en.call(e);
1135
1135
  }
1136
1136
  /*@__NO_SIDE_EFFECTS__*/
1137
- function tn(e) {
1138
- return Qt.call(e);
1137
+ function an(e) {
1138
+ return tn.call(e);
1139
1139
  }
1140
- function nn(e, t) {
1141
- if (!P) return /* @__PURE__ */ en(e);
1142
- var n = /* @__PURE__ */ en(F);
1143
- if (n === null) n = F.appendChild(G());
1140
+ function on(e, t) {
1141
+ if (!M) return /* @__PURE__ */ rn(e);
1142
+ var n = /* @__PURE__ */ rn(P);
1143
+ if (n === null) n = P.appendChild(U());
1144
1144
  else if (t && n.nodeType !== 3) {
1145
- var r = G();
1146
- return n?.before(r), I(r), r;
1145
+ var r = U();
1146
+ return n?.before(r), F(r), r;
1147
1147
  }
1148
- return t && ln(n), I(n), n;
1148
+ return t && fn(n), F(n), n;
1149
1149
  }
1150
- function rn(e, t = !1) {
1151
- if (!P) {
1152
- var n = /* @__PURE__ */ en(e);
1153
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ tn(n) : n;
1150
+ function sn(e, t = !1) {
1151
+ if (!M) {
1152
+ var n = /* @__PURE__ */ rn(e);
1153
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ an(n) : n;
1154
1154
  }
1155
1155
  if (t) {
1156
- if (F?.nodeType !== 3) {
1157
- var r = G();
1158
- return F?.before(r), I(r), r;
1156
+ if (P?.nodeType !== 3) {
1157
+ var r = U();
1158
+ return P?.before(r), F(r), r;
1159
1159
  }
1160
- ln(F);
1160
+ fn(P);
1161
1161
  }
1162
- return F;
1162
+ return P;
1163
1163
  }
1164
- function an(e, t = 1, n = !1) {
1165
- let r = P ? F : e;
1166
- for (var i; t--;) i = r, r = /* @__PURE__ */ tn(r);
1167
- if (!P) return r;
1164
+ function cn(e, t = 1, n = !1) {
1165
+ let r = M ? P : e;
1166
+ for (var i; t--;) i = r, r = /* @__PURE__ */ an(r);
1167
+ if (!M) return r;
1168
1168
  if (n) {
1169
1169
  if (r?.nodeType !== 3) {
1170
- var a = G();
1171
- return r === null ? i?.after(a) : r.before(a), I(a), a;
1170
+ var a = U();
1171
+ return r === null ? i?.after(a) : r.before(a), F(a), a;
1172
1172
  }
1173
- ln(r);
1173
+ fn(r);
1174
1174
  }
1175
- return I(r), r;
1175
+ return F(r), r;
1176
1176
  }
1177
- function on(e) {
1177
+ function ln(e) {
1178
1178
  e.textContent = "";
1179
1179
  }
1180
- function sn() {
1181
- return !Le || Mt !== null ? !1 : (Y.f & E) !== 0;
1180
+ function un() {
1181
+ return !ze || Ft !== null ? !1 : (J.f & re) !== 0;
1182
1182
  }
1183
- function cn(e, t, n) {
1183
+ function dn(e, t, n) {
1184
1184
  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);
1185
1185
  }
1186
- function ln(e) {
1186
+ function fn(e) {
1187
1187
  if (e.nodeValue.length < 65536) return;
1188
1188
  let t = e.nextSibling;
1189
1189
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1190
1190
  }
1191
1191
  //#endregion
1192
1192
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/effects.js
1193
- function un(e) {
1194
- Y === null && (q === null && _e(e), ge()), Ln && he(e);
1193
+ function pn(e) {
1194
+ J === null && (K === null && be(e), ye()), zn && ve(e);
1195
1195
  }
1196
- function dn(e, t) {
1196
+ function mn(e, t) {
1197
1197
  var n = t.last;
1198
1198
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1199
1199
  }
1200
- function fn(e, t) {
1201
- var n = Y;
1200
+ function hn(e, t) {
1201
+ var n = J;
1202
1202
  n !== null && n.f & 8192 && (e |= w);
1203
1203
  var r = {
1204
- ctx: L,
1204
+ ctx: I,
1205
1205
  deps: null,
1206
1206
  nodes: null,
1207
1207
  f: e | C | 512,
@@ -1216,139 +1216,139 @@ function fn(e, t) {
1216
1216
  wv: 0,
1217
1217
  ac: null
1218
1218
  };
1219
- V?.register_created_effect(r);
1219
+ z?.register_created_effect(r);
1220
1220
  var i = r;
1221
- if (e & 4) Tt === null ? kt.ensure().schedule(r) : Tt.push(r);
1221
+ if (e & 4) Ot === null ? Mt.ensure().schedule(r) : Ot.push(r);
1222
1222
  else if (t !== null) {
1223
1223
  try {
1224
- tr(r);
1224
+ rr(r);
1225
1225
  } catch (e) {
1226
- throw K(r), e;
1226
+ throw G(r), e;
1227
1227
  }
1228
- 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));
1228
+ 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 |= E));
1229
1229
  }
1230
- if (i !== null && (i.parent = n, n !== null && dn(i, n), q !== null && q.f & 2 && !(e & 64))) {
1231
- var a = q;
1230
+ if (i !== null && (i.parent = n, n !== null && mn(i, n), K !== null && K.f & 2 && !(e & 64))) {
1231
+ var a = K;
1232
1232
  (a.effects ??= []).push(i);
1233
1233
  }
1234
1234
  return r;
1235
1235
  }
1236
- function pn() {
1237
- return q !== null && !zn;
1236
+ function gn() {
1237
+ return K !== null && !Vn;
1238
1238
  }
1239
- function mn(e) {
1240
- let t = fn(8, null);
1241
- return z(t, S), t.teardown = e, t;
1239
+ function _n(e) {
1240
+ let t = hn(8, null);
1241
+ return L(t, S), t.teardown = e, t;
1242
1242
  }
1243
- function hn(e) {
1244
- un("$effect");
1245
- var t = Y.f;
1246
- if (!q && t & 32 && L !== null && !L.i) {
1247
- var n = L;
1243
+ function vn(e) {
1244
+ pn("$effect");
1245
+ var t = J.f;
1246
+ if (!K && t & 32 && I !== null && !I.i) {
1247
+ var n = I;
1248
1248
  (n.e ??= []).push(e);
1249
- } else return gn(e);
1249
+ } else return yn(e);
1250
1250
  }
1251
- function gn(e) {
1252
- return fn(4 | O, e);
1251
+ function yn(e) {
1252
+ return hn(4 | D, e);
1253
1253
  }
1254
- function _n(e) {
1255
- kt.ensure();
1256
- let t = fn(64 | re, e);
1254
+ function bn(e) {
1255
+ Mt.ensure();
1256
+ let t = hn(64 | ae, e);
1257
1257
  return () => {
1258
- K(t);
1258
+ G(t);
1259
1259
  };
1260
1260
  }
1261
- function vn(e) {
1262
- kt.ensure();
1263
- let t = fn(64 | re, e);
1261
+ function xn(e) {
1262
+ Mt.ensure();
1263
+ let t = hn(64 | ae, e);
1264
1264
  return (e = {}) => new Promise((n) => {
1265
- e.outro ? An(t, () => {
1266
- K(t), n(void 0);
1267
- }) : (K(t), n(void 0));
1265
+ e.outro ? Mn(t, () => {
1266
+ G(t), n(void 0);
1267
+ }) : (G(t), n(void 0));
1268
1268
  });
1269
1269
  }
1270
- function yn(e) {
1271
- return fn(4, e);
1270
+ function Sn(e) {
1271
+ return hn(4, e);
1272
1272
  }
1273
- function bn(e) {
1274
- return fn(ae | re, e);
1273
+ function Cn(e) {
1274
+ return hn(ce | ae, e);
1275
1275
  }
1276
- function xn(e, t = 0) {
1277
- return fn(8 | t, e);
1276
+ function wn(e, t = 0) {
1277
+ return hn(8 | t, e);
1278
1278
  }
1279
- function Sn(e, t = [], n = [], r = []) {
1280
- ot(r, t, n, (t) => {
1281
- fn(8, () => {
1282
- e(...t.map(Q));
1279
+ function Tn(e, t = [], n = [], r = []) {
1280
+ lt(r, t, n, (t) => {
1281
+ hn(8, () => {
1282
+ e(...t.map(Z));
1283
1283
  });
1284
1284
  });
1285
1285
  }
1286
- function Cn(e, t = 0) {
1287
- return fn(16 | t, e);
1286
+ function En(e, t = 0) {
1287
+ return hn(16 | t, e);
1288
1288
  }
1289
- function wn(e) {
1290
- return fn(32 | re, e);
1289
+ function W(e) {
1290
+ return hn(32 | ae, e);
1291
1291
  }
1292
- function Tn(e) {
1292
+ function Dn(e) {
1293
1293
  var t = e.teardown;
1294
1294
  if (t !== null) {
1295
- let e = Ln, n = q;
1296
- Rn(!0), J(null);
1295
+ let e = zn, n = K;
1296
+ Bn(!0), q(null);
1297
1297
  try {
1298
1298
  t.call(null);
1299
1299
  } finally {
1300
- Rn(e), J(n);
1300
+ Bn(e), q(n);
1301
1301
  }
1302
1302
  }
1303
1303
  }
1304
- function En(e, t = !1) {
1304
+ function On(e, t = !1) {
1305
1305
  var n = e.first;
1306
1306
  for (e.first = e.last = null; n !== null;) {
1307
1307
  let e = n.ac;
1308
- e !== null && tt(() => {
1309
- e.abort(de);
1308
+ e !== null && it(() => {
1309
+ e.abort(me);
1310
1310
  });
1311
1311
  var r = n.next;
1312
- n.f & 64 ? n.parent = null : K(n, t), n = r;
1312
+ n.f & 64 ? n.parent = null : G(n, t), n = r;
1313
1313
  }
1314
1314
  }
1315
- function Dn(e) {
1315
+ function kn(e) {
1316
1316
  for (var t = e.first; t !== null;) {
1317
1317
  var n = t.next;
1318
- t.f & 32 || K(t), t = n;
1318
+ t.f & 32 || G(t), t = n;
1319
1319
  }
1320
1320
  }
1321
- function K(e, t = !0) {
1321
+ function G(e, t = !0) {
1322
1322
  var n = !1;
1323
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (On(e.nodes.start, e.nodes.end), n = !0), e.f |= ne, En(e, t && !n), er(e, 0);
1323
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (An(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, On(e, t && !n), nr(e, 0);
1324
1324
  var r = e.nodes && e.nodes.t;
1325
1325
  if (r !== null) for (let e of r) e.stop();
1326
- Tn(e), e.f ^= ne, e.f |= T;
1326
+ Dn(e), e.f ^= ie, e.f |= T;
1327
1327
  var i = e.parent;
1328
- i !== null && i.first !== null && kn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1328
+ i !== null && i.first !== null && jn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1329
1329
  }
1330
- function On(e, t) {
1330
+ function An(e, t) {
1331
1331
  for (; e !== null;) {
1332
- var n = e === t ? null : /* @__PURE__ */ tn(e);
1332
+ var n = e === t ? null : /* @__PURE__ */ an(e);
1333
1333
  e.remove(), e = n;
1334
1334
  }
1335
1335
  }
1336
- function kn(e) {
1336
+ function jn(e) {
1337
1337
  var t = e.parent, n = e.prev, r = e.next;
1338
1338
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1339
1339
  }
1340
- function An(e, t, n = !0) {
1340
+ function Mn(e, t, n = !0) {
1341
1341
  var r = [];
1342
- jn(e, r, !0);
1342
+ Nn(e, r, !0);
1343
1343
  var i = () => {
1344
- n && K(e), t && t();
1344
+ n && G(e), t && t();
1345
1345
  }, a = r.length;
1346
1346
  if (a > 0) {
1347
1347
  var o = () => --a || i();
1348
1348
  for (var s of r) s.out(o);
1349
1349
  } else i();
1350
1350
  }
1351
- function jn(e, t, n) {
1351
+ function Nn(e, t, n) {
1352
1352
  if (!(e.f & 8192)) {
1353
1353
  e.f ^= w;
1354
1354
  var r = e.nodes && e.nodes.t;
@@ -1357,204 +1357,204 @@ function jn(e, t, n) {
1357
1357
  var a = i.next;
1358
1358
  if (!(i.f & 64)) {
1359
1359
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1360
- jn(i, t, o ? n : !1);
1360
+ Nn(i, t, o ? n : !1);
1361
1361
  }
1362
1362
  i = a;
1363
1363
  }
1364
1364
  }
1365
1365
  }
1366
- function Mn(e) {
1367
- Nn(e, !0);
1366
+ function Pn(e) {
1367
+ Fn(e, !0);
1368
1368
  }
1369
- function Nn(e, t) {
1369
+ function Fn(e, t) {
1370
1370
  if (e.f & 8192) {
1371
- e.f ^= w, e.f & 1024 || (z(e, C), kt.ensure().schedule(e));
1371
+ e.f ^= w, e.f & 1024 || (L(e, C), Mt.ensure().schedule(e));
1372
1372
  for (var n = e.first; n !== null;) {
1373
1373
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1374
- Nn(n, i ? t : !1), n = r;
1374
+ Fn(n, i ? t : !1), n = r;
1375
1375
  }
1376
1376
  var a = e.nodes && e.nodes.t;
1377
1377
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1378
1378
  }
1379
1379
  }
1380
- function Pn(e, t) {
1380
+ function In(e, t) {
1381
1381
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1382
- var i = n === r ? null : /* @__PURE__ */ tn(n);
1382
+ var i = n === r ? null : /* @__PURE__ */ an(n);
1383
1383
  t.append(n), n = i;
1384
1384
  }
1385
1385
  }
1386
1386
  //#endregion
1387
1387
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/legacy.js
1388
- var Fn = null, In = !1, Ln = !1;
1389
- function Rn(e) {
1390
- Ln = e;
1391
- }
1392
- var q = null, zn = !1;
1393
- function J(e) {
1394
- q = e;
1395
- }
1396
- var Y = null;
1388
+ var Ln = null, Rn = !1, zn = !1;
1397
1389
  function Bn(e) {
1398
- Y = e;
1390
+ zn = e;
1399
1391
  }
1400
- var Vn = null;
1392
+ var K = null, Vn = !1;
1393
+ function q(e) {
1394
+ K = e;
1395
+ }
1396
+ var J = null;
1401
1397
  function Hn(e) {
1402
- q !== null && (!Le || q.f & 2) && (Vn ??= /* @__PURE__ */ new Set()).add(e);
1398
+ J = e;
1403
1399
  }
1404
- var X = null, Z = 0, Un = null;
1400
+ var Un = null;
1405
1401
  function Wn(e) {
1406
- Un = e;
1407
- }
1408
- var Gn = 1, Kn = 0, qn = Kn;
1409
- function Jn(e) {
1410
- qn = e;
1402
+ K !== null && (!ze || K.f & 2) && (Un ??= /* @__PURE__ */ new Set()).add(e);
1411
1403
  }
1412
- function Yn() {
1413
- return ++Gn;
1404
+ var Y = null, X = 0, Gn = null;
1405
+ function Kn(e) {
1406
+ Gn = e;
1414
1407
  }
1408
+ var qn = 1, Jn = 0, Yn = Jn;
1415
1409
  function Xn(e) {
1410
+ Yn = e;
1411
+ }
1412
+ function Zn() {
1413
+ return ++qn;
1414
+ }
1415
+ function Qn(e) {
1416
1416
  var t = e.f;
1417
1417
  if (t & 2048) return !0;
1418
- if (t & 2 && (e.f &= ~ie), t & 4096) {
1418
+ if (t & 2 && (e.f &= ~se), t & 4096) {
1419
1419
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1420
1420
  var a = n[i];
1421
- if (Xn(a) && gt(a), a.wv > e.wv) return !0;
1421
+ if (Qn(a) && yt(a), a.wv > e.wv) return !0;
1422
1422
  }
1423
- t & 512 && H === null && z(e, S);
1423
+ t & 512 && B === null && L(e, S);
1424
1424
  }
1425
1425
  return !1;
1426
1426
  }
1427
- function Zn(e, t, n = !0) {
1427
+ function $n(e, t, n = !0) {
1428
1428
  var r = e.reactions;
1429
- if (r !== null && !(!Le && Vn !== null && Vn.has(e))) for (var i = 0; i < r.length; i++) {
1429
+ if (r !== null && !(!ze && Un !== null && Un.has(e))) for (var i = 0; i < r.length; i++) {
1430
1430
  var a = r[i];
1431
- a.f & 2 ? Zn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, te), It(a));
1431
+ a.f & 2 ? $n(a, t, !1) : t === a && (n ? L(a, C) : a.f & 1024 && L(a, ne), zt(a));
1432
1432
  }
1433
1433
  }
1434
- function Qn(e) {
1435
- var t = X, n = Z, r = Un, i = q, a = Vn, o = L, s = zn, c = qn, l = e.f;
1436
- X = null, Z = 0, Un = null, q = l & 96 ? null : e, Vn = null, ze(e.ctx), zn = !1, qn = ++Kn, e.ac !== null && (tt(() => {
1437
- e.ac.abort(de);
1434
+ function er(e) {
1435
+ var t = Y, n = X, r = Gn, i = K, a = Un, o = I, s = Vn, c = Yn, l = e.f;
1436
+ Y = null, X = 0, Gn = null, K = l & 96 ? null : e, Un = null, Ve(e.ctx), Vn = !1, Yn = ++Jn, e.ac !== null && (it(() => {
1437
+ e.ac.abort(me);
1438
1438
  }), e.ac = null);
1439
1439
  try {
1440
- e.f |= A;
1440
+ e.f |= O;
1441
1441
  var u = e.fn, d = u();
1442
- e.f |= E;
1443
- var f = e.deps, p = V?.is_fork;
1444
- if (X !== null) {
1442
+ e.f |= re;
1443
+ var f = e.deps, p = z?.is_fork;
1444
+ if (Y !== null) {
1445
1445
  var m;
1446
- if (p || er(e, Z), f !== null && Z > 0) for (f.length = Z + X.length, m = 0; m < X.length; m++) f[Z + m] = X[m];
1447
- else e.deps = f = X;
1448
- if (pn() && e.f & 512) for (m = Z; m < f.length; m++) (f[m].reactions ??= []).push(e);
1449
- } else !p && f !== null && Z < f.length && (er(e, Z), f.length = Z);
1450
- if (He() && Un !== null && !zn && f !== null && !(e.f & 6146)) for (m = 0; m < Un.length; m++) Zn(Un[m], e);
1446
+ if (p || nr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
1447
+ else e.deps = f = Y;
1448
+ if (gn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
1449
+ } else !p && f !== null && X < f.length && (nr(e, X), f.length = X);
1450
+ if (We() && Gn !== null && !Vn && f !== null && !(e.f & 6146)) for (m = 0; m < Gn.length; m++) $n(Gn[m], e);
1451
1451
  if (i !== null && i !== e) {
1452
- if (Kn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Kn;
1453
- if (t !== null) for (let e of t) e.rv = Kn;
1454
- Un !== null && (r === null ? r = Un : r.push(...Un));
1452
+ if (Jn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Jn;
1453
+ if (t !== null) for (let e of t) e.rv = Jn;
1454
+ Gn !== null && (r === null ? r = Gn : r.push(...Gn));
1455
1455
  }
1456
- return e.f & 8388608 && (e.f ^= j), d;
1456
+ return e.f & 8388608 && (e.f ^= k), d;
1457
1457
  } catch (e) {
1458
- return Ke(e);
1458
+ return Ye(e);
1459
1459
  } finally {
1460
- e.f ^= A, X = t, Z = n, Un = r, q = i, Vn = a, ze(o), zn = s, qn = c;
1460
+ e.f ^= O, Y = t, X = n, Gn = r, K = i, Un = a, Ve(o), Vn = s, Yn = c;
1461
1461
  }
1462
1462
  }
1463
- function $n(e, t) {
1463
+ function tr(e, t) {
1464
1464
  let n = t.reactions;
1465
1465
  if (n !== null) {
1466
- var r = l.call(n, e);
1466
+ var r = u.call(n, e);
1467
1467
  if (r !== -1) {
1468
1468
  var i = n.length - 1;
1469
1469
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1470
1470
  }
1471
1471
  }
1472
- if (n === null && t.f & 2 && (X === null || !u.call(X, t))) {
1472
+ if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
1473
1473
  var a = t;
1474
- a.f & 512 && (a.f ^= 512, a.f &= ~ie), a.v !== o && Ye(a), a.ac !== null && tt(() => {
1475
- a.ac.abort(de), a.ac = null, z(a, C);
1476
- }), _t(a), er(a, 0);
1474
+ a.f & 512 && (a.f ^= 512, a.f &= ~se), a.v !== s && Qe(a), a.ac !== null && it(() => {
1475
+ a.ac.abort(me), a.ac = null, L(a, C);
1476
+ }), bt(a), nr(a, 0);
1477
1477
  }
1478
1478
  }
1479
- function er(e, t) {
1479
+ function nr(e, t) {
1480
1480
  var n = e.deps;
1481
- if (n !== null) for (var r = t; r < n.length; r++) $n(e, n[r]);
1481
+ if (n !== null) for (var r = t; r < n.length; r++) tr(e, n[r]);
1482
1482
  }
1483
- function tr(e) {
1483
+ function rr(e) {
1484
1484
  var t = e.f;
1485
1485
  if (!(t & 16384)) {
1486
- z(e, S);
1487
- var n = Y, r = In;
1488
- Y = e, In = (t & 96) == 0;
1486
+ L(e, S);
1487
+ var n = J, r = Rn;
1488
+ J = e, Rn = (t & 96) == 0;
1489
1489
  try {
1490
- t & 16777232 ? Dn(e) : En(e), Tn(e);
1491
- var i = Qn(e);
1492
- e.teardown = typeof i == "function" ? i : null, e.wv = Gn;
1490
+ t & 16777232 ? kn(e) : On(e), Dn(e);
1491
+ var i = er(e);
1492
+ e.teardown = typeof i == "function" ? i : null, e.wv = qn;
1493
1493
  } finally {
1494
- In = r, Y = n;
1494
+ Rn = r, J = n;
1495
1495
  }
1496
1496
  }
1497
1497
  }
1498
- function Q(e) {
1498
+ function Z(e) {
1499
1499
  var t = (e.f & 2) != 0;
1500
- if (Fn?.add(e), q !== null && !zn && !(Y !== null && Y.f & 16384) && (Vn === null || !Vn.has(e))) {
1501
- var n = q.deps;
1502
- if (q.f & 2097152) e.rv < Kn && (e.rv = Kn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1500
+ if (Ln?.add(e), K !== null && !Vn && !(J !== null && J.f & 16384) && (Un === null || !Un.has(e))) {
1501
+ var n = K.deps;
1502
+ if (K.f & 2097152) e.rv < Jn && (e.rv = Jn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1503
1503
  else {
1504
- q.deps ??= [], u.call(q.deps, e) || q.deps.push(e);
1504
+ K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
1505
1505
  var r = e.reactions;
1506
- r === null ? e.reactions = [q] : u.call(r, q) || r.push(q);
1506
+ r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
1507
1507
  }
1508
1508
  }
1509
- if (Ln && Bt.has(e)) return Bt.get(e);
1509
+ if (zn && Ut.has(e)) return Ut.get(e);
1510
1510
  if (t) {
1511
1511
  var i = e;
1512
- if (Ln) {
1512
+ if (zn) {
1513
1513
  var a = i.v;
1514
- return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = ht(i)), Bt.set(i, a), a;
1514
+ return (!(i.f & 1024) && i.reactions !== null || ar(i)) && (a = vt(i)), Ut.set(i, a), a;
1515
1515
  }
1516
- var o = (i.f & 512) == 0 && !zn && q !== null && (In || (q.f & 512) != 0), s = (i.f & E) === 0;
1517
- Xn(i) && (o && (i.f |= 512), gt(i)), o && !s && (vt(i), nr(i));
1516
+ var o = (i.f & 512) == 0 && !Vn && K !== null && (Rn || (K.f & 512) != 0), s = (i.f & re) === 0;
1517
+ Qn(i) && (o && (i.f |= 512), yt(i)), o && !s && (xt(i), ir(i));
1518
1518
  }
1519
- if (H?.has(e)) return H.get(e);
1519
+ if (B?.has(e)) return B.get(e);
1520
1520
  if (e.f & 8388608) throw e.v;
1521
1521
  return e.v;
1522
1522
  }
1523
- function nr(e) {
1524
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (vt(t), nr(t));
1523
+ function ir(e) {
1524
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (xt(t), ir(t));
1525
1525
  }
1526
- function rr(e) {
1527
- if (e.v === o) return !0;
1526
+ function ar(e) {
1527
+ if (e.v === s) return !0;
1528
1528
  if (e.deps === null) return !1;
1529
- for (let t of e.deps) if (Bt.has(t) || t.f & 2 && rr(t)) return !0;
1529
+ for (let t of e.deps) if (Ut.has(t) || t.f & 2 && ar(t)) return !0;
1530
1530
  return !1;
1531
1531
  }
1532
- function ir(e) {
1533
- var t = zn;
1532
+ function or(e) {
1533
+ var t = Vn;
1534
1534
  try {
1535
- return zn = !0, e();
1535
+ return Vn = !0, e();
1536
1536
  } finally {
1537
- zn = t;
1537
+ Vn = t;
1538
1538
  }
1539
1539
  }
1540
- function ar(e) {
1540
+ function sr(e) {
1541
1541
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1542
- if (M in e) or(e);
1542
+ if (A in e) cr(e);
1543
1543
  else if (!Array.isArray(e)) for (let t in e) {
1544
1544
  let n = e[t];
1545
- typeof n == "object" && n && M in n && or(n);
1545
+ typeof n == "object" && n && A in n && cr(n);
1546
1546
  }
1547
1547
  }
1548
1548
  }
1549
- function or(e, t = /* @__PURE__ */ new Set()) {
1549
+ function cr(e, t = /* @__PURE__ */ new Set()) {
1550
1550
  if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1551
1551
  t.add(e), e instanceof Date && e.getTime();
1552
1552
  for (let n in e) try {
1553
- or(e[n], t);
1553
+ cr(e[n], t);
1554
1554
  } catch {}
1555
- let n = v(e);
1555
+ let n = y(e);
1556
1556
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1557
- let t = h(n);
1557
+ let t = g(n);
1558
1558
  for (let n in t) {
1559
1559
  let r = t[n].get;
1560
1560
  if (r) try {
@@ -1566,23 +1566,23 @@ function or(e, t = /* @__PURE__ */ new Set()) {
1566
1566
  }
1567
1567
  //#endregion
1568
1568
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/events.js
1569
- var sr = Symbol("events"), cr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
1570
- function ur(e, t, n) {
1571
- (t[sr] ??= {})[e] = n;
1572
- }
1573
- function dr(e) {
1574
- for (var t = 0; t < e.length; t++) cr.add(e[t]);
1575
- for (var n of lr) n(e);
1569
+ var lr = Symbol("events"), ur = /* @__PURE__ */ new Set(), dr = /* @__PURE__ */ new Set();
1570
+ function fr(e, t, n) {
1571
+ (t[lr] ??= {})[e] = n;
1576
1572
  }
1577
- var fr = null;
1578
1573
  function pr(e) {
1574
+ for (var t = 0; t < e.length; t++) ur.add(e[t]);
1575
+ for (var n of dr) n(e);
1576
+ }
1577
+ var mr = null;
1578
+ function hr(e) {
1579
1579
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1580
- fr = e;
1581
- var o = 0, s = fr === e && e[sr];
1580
+ mr = e;
1581
+ var o = 0, s = mr === e && e[lr];
1582
1582
  if (s) {
1583
1583
  var c = i.indexOf(s);
1584
1584
  if (c !== -1 && (t === document || t === window)) {
1585
- e[sr] = t;
1585
+ e[lr] = t;
1586
1586
  return;
1587
1587
  }
1588
1588
  var l = i.indexOf(t);
@@ -1590,50 +1590,50 @@ function pr(e) {
1590
1590
  c <= l && (o = c);
1591
1591
  }
1592
1592
  if (a = i[o] || e.target, a !== t) {
1593
- p(e, "currentTarget", {
1593
+ m(e, "currentTarget", {
1594
1594
  configurable: !0,
1595
1595
  get() {
1596
1596
  return a || n;
1597
1597
  }
1598
1598
  });
1599
- var u = q, d = Y;
1600
- J(null), Bn(null);
1599
+ var u = K, d = J;
1600
+ q(null), Hn(null);
1601
1601
  try {
1602
- for (var f, m = []; a !== null && a !== t;) {
1602
+ for (var f, p = []; a !== null && a !== t;) {
1603
1603
  try {
1604
- var h = a[sr]?.[r];
1604
+ var h = a[lr]?.[r];
1605
1605
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1606
1606
  } catch (e) {
1607
- f ? m.push(e) : f = e;
1607
+ f ? p.push(e) : f = e;
1608
1608
  }
1609
1609
  if (e.cancelBubble) break;
1610
1610
  o++, a = o < i.length ? i[o] : null;
1611
1611
  }
1612
1612
  if (f) {
1613
- for (let e of m) queueMicrotask(() => {
1613
+ for (let e of p) queueMicrotask(() => {
1614
1614
  throw e;
1615
1615
  });
1616
1616
  throw f;
1617
1617
  }
1618
1618
  } finally {
1619
- e[sr] = t, delete e.currentTarget, J(u), Bn(d);
1619
+ e[lr] = t, delete e.currentTarget, q(u), Hn(d);
1620
1620
  }
1621
1621
  }
1622
1622
  }
1623
1623
  //#endregion
1624
1624
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/reconciler.js
1625
- var mr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1626
- function hr(e) {
1627
- return mr?.createHTML(e) ?? e;
1625
+ var gr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1626
+ function _r(e) {
1627
+ return gr?.createHTML(e) ?? e;
1628
1628
  }
1629
- function gr(e) {
1630
- var t = cn("template");
1631
- return t.innerHTML = hr(e.replaceAll("<!>", "<!---->")), t.content;
1629
+ function vr(e) {
1630
+ var t = dn("template");
1631
+ return t.innerHTML = _r(e.replaceAll("<!>", "<!---->")), t.content;
1632
1632
  }
1633
1633
  //#endregion
1634
1634
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/template.js
1635
- function _r(e, t) {
1636
- var n = Y;
1635
+ function yr(e, t) {
1636
+ var n = J;
1637
1637
  n.nodes === null && (n.nodes = {
1638
1638
  start: e,
1639
1639
  end: t,
@@ -1642,107 +1642,107 @@ function _r(e, t) {
1642
1642
  });
1643
1643
  }
1644
1644
  /*#__NO_SIDE_EFFECTS__*/
1645
- function vr(e, t) {
1645
+ function br(e, t) {
1646
1646
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1647
1647
  return () => {
1648
- if (P) return _r(F, null), F;
1649
- i === void 0 && (i = gr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
1650
- var t = r || Xt ? document.importNode(i, !0) : i.cloneNode(!0);
1648
+ if (M) return yr(P, null), P;
1649
+ i === void 0 && (i = vr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ rn(i)));
1650
+ var t = r || $t ? document.importNode(i, !0) : i.cloneNode(!0);
1651
1651
  if (n) {
1652
- var o = /* @__PURE__ */ en(t), s = t.lastChild;
1653
- _r(o, s);
1654
- } else _r(t, t);
1652
+ var o = /* @__PURE__ */ rn(t), s = t.lastChild;
1653
+ yr(o, s);
1654
+ } else yr(t, t);
1655
1655
  return t;
1656
1656
  };
1657
1657
  }
1658
- function yr() {
1659
- if (P) return _r(F, null), F;
1660
- var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
1661
- return e.append(t, n), _r(t, n), e;
1658
+ function xr() {
1659
+ if (M) return yr(P, null), P;
1660
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = U();
1661
+ return e.append(t, n), yr(t, n), e;
1662
1662
  }
1663
- function br(e, t) {
1664
- if (P) {
1665
- var n = Y;
1666
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ke();
1663
+ function Sr(e, t) {
1664
+ if (M) {
1665
+ var n = J;
1666
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = P), je();
1667
1667
  return;
1668
1668
  }
1669
1669
  e !== null && e.before(t);
1670
1670
  }
1671
1671
  [.../* @__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(".")];
1672
- var xr = ["touchstart", "touchmove"];
1673
- function Sr(e) {
1674
- return xr.includes(e);
1672
+ var Cr = ["touchstart", "touchmove"];
1673
+ function wr(e) {
1674
+ return Cr.includes(e);
1675
1675
  }
1676
- function Cr(e, t) {
1676
+ function Tr(e, t) {
1677
1677
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1678
- n !== (e[ue] ??= e.nodeValue) && (e[ue] = n, e.nodeValue = `${n}`);
1678
+ n !== (e[pe] ??= e.nodeValue) && (e[pe] = n, e.nodeValue = `${n}`);
1679
1679
  }
1680
- function wr(e, t) {
1681
- return Dr(e, t);
1680
+ function Er(e, t) {
1681
+ return kr(e, t);
1682
1682
  }
1683
- function Tr(e, t) {
1684
- $t(), t.intro = t.intro ?? !1;
1685
- let n = t.target, r = P, i = F;
1683
+ function Dr(e, t) {
1684
+ nn(), t.intro = t.intro ?? !1;
1685
+ let n = t.target, r = M, i = P;
1686
1686
  try {
1687
- for (var o = /* @__PURE__ */ en(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
1688
- if (!o) throw a;
1689
- Oe(!0), I(o);
1690
- let r = Dr(e, {
1687
+ for (var a = /* @__PURE__ */ rn(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ an(a);
1688
+ if (!a) throw o;
1689
+ N(!0), F(a);
1690
+ let r = kr(e, {
1691
1691
  ...t,
1692
- anchor: o
1692
+ anchor: a
1693
1693
  });
1694
- return Oe(!1), r;
1694
+ return N(!1), r;
1695
1695
  } catch (r) {
1696
1696
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1697
- return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && ye(), $t(), on(n), Oe(!1), wr(e, t);
1697
+ return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Se(), nn(), ln(n), N(!1), Er(e, t);
1698
1698
  } finally {
1699
- Oe(r), I(i);
1700
- }
1701
- }
1702
- var Er = /* @__PURE__ */ new Map();
1703
- function Dr(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
1704
- $t();
1705
- var l = void 0, u = vn(() => {
1706
- var s = n ?? t.appendChild(G());
1707
- it(s, { pending: () => {} }, (t) => {
1708
- Be({});
1709
- var n = L;
1710
- if (o && (n.c = o), i && (r.$$events = i), P && _r(t, null), l = e(t, r) || {}, P && (Y.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw Ee(), a;
1711
- Ve();
1699
+ N(r), F(i);
1700
+ }
1701
+ }
1702
+ var Or = /* @__PURE__ */ new Map();
1703
+ function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1704
+ nn();
1705
+ var l = void 0, u = xn(() => {
1706
+ var s = n ?? t.appendChild(U());
1707
+ st(s, { pending: () => {} }, (t) => {
1708
+ He({});
1709
+ var n = I;
1710
+ if (a && (n.c = a), i && (r.$$events = i), M && yr(t, null), l = e(t, r) || {}, M && (J.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]")) throw ke(), o;
1711
+ Ue();
1712
1712
  }, c);
1713
- var u = /* @__PURE__ */ new Set(), f = (e) => {
1713
+ var u = /* @__PURE__ */ new Set(), d = (e) => {
1714
1714
  for (var n = 0; n < e.length; n++) {
1715
1715
  var r = e[n];
1716
1716
  if (!u.has(r)) {
1717
1717
  u.add(r);
1718
- var i = Sr(r);
1718
+ var i = wr(r);
1719
1719
  for (let e of [t, document]) {
1720
- var a = Er.get(e);
1721
- a === void 0 && (a = /* @__PURE__ */ new Map(), Er.set(e, a));
1720
+ var a = Or.get(e);
1721
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Or.set(e, a));
1722
1722
  var o = a.get(r);
1723
- o === void 0 ? (e.addEventListener(r, pr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1723
+ o === void 0 ? (e.addEventListener(r, hr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1724
1724
  }
1725
1725
  }
1726
1726
  }
1727
1727
  };
1728
- return f(d(cr)), lr.add(f), () => {
1728
+ return d(f(ur)), dr.add(d), () => {
1729
1729
  for (var e of u) for (let n of [t, document]) {
1730
- var r = Er.get(n), i = r.get(e);
1731
- --i == 0 ? (n.removeEventListener(e, pr), r.delete(e), r.size === 0 && Er.delete(n)) : r.set(e, i);
1730
+ var r = Or.get(n), i = r.get(e);
1731
+ --i == 0 ? (n.removeEventListener(e, hr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
1732
1732
  }
1733
- lr.delete(f), s !== n && s.parentNode?.removeChild(s);
1733
+ dr.delete(d), s !== n && s.parentNode?.removeChild(s);
1734
1734
  };
1735
1735
  });
1736
- return Or.set(l, u), l;
1736
+ return Ar.set(l, u), l;
1737
1737
  }
1738
- var Or = /* @__PURE__ */ new WeakMap();
1739
- function kr(e, t) {
1740
- let n = Or.get(e);
1741
- return n ? (Or.delete(e), n(t)) : Promise.resolve();
1738
+ var Ar = /* @__PURE__ */ new WeakMap();
1739
+ function jr(e, t) {
1740
+ let n = Ar.get(e);
1741
+ return n ? (Ar.delete(e), n(t)) : Promise.resolve();
1742
1742
  }
1743
1743
  //#endregion
1744
1744
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1745
- var Ar = class {
1745
+ var Mr = class {
1746
1746
  anchor;
1747
1747
  #e = /* @__PURE__ */ new Map();
1748
1748
  #t = /* @__PURE__ */ new Map();
@@ -1755,71 +1755,71 @@ var Ar = class {
1755
1755
  #a = (e) => {
1756
1756
  if (this.#e.has(e)) {
1757
1757
  var t = this.#e.get(e), n = this.#t.get(t);
1758
- if (n) Mn(n), this.#r.delete(t);
1758
+ if (n) Pn(n), this.#r.delete(t);
1759
1759
  else {
1760
1760
  var r = this.#n.get(t);
1761
- r && (Mn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1761
+ r && (Pn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1762
1762
  }
1763
1763
  for (let [t, n] of this.#e) {
1764
1764
  if (this.#e.delete(t), t === e) break;
1765
1765
  let r = this.#n.get(n);
1766
- r && (K(r.effect), this.#n.delete(n));
1766
+ r && (G(r.effect), this.#n.delete(n));
1767
1767
  }
1768
1768
  for (let [e, r] of this.#t) {
1769
1769
  if (e === t || this.#r.has(e)) continue;
1770
1770
  let i = () => {
1771
1771
  if (Array.from(this.#e.values()).includes(e)) {
1772
1772
  var t = document.createDocumentFragment();
1773
- Pn(r, t), t.append(G()), this.#n.set(e, {
1773
+ In(r, t), t.append(U()), this.#n.set(e, {
1774
1774
  effect: r,
1775
1775
  fragment: t
1776
1776
  });
1777
- } else K(r);
1777
+ } else G(r);
1778
1778
  this.#r.delete(e), this.#t.delete(e);
1779
1779
  };
1780
- this.#i || !n ? (this.#r.add(e), An(r, i, !1)) : i();
1780
+ this.#i || !n ? (this.#r.add(e), Mn(r, i, !1)) : i();
1781
1781
  }
1782
1782
  }
1783
1783
  };
1784
1784
  #o = (e) => {
1785
1785
  this.#e.delete(e);
1786
1786
  let t = Array.from(this.#e.values());
1787
- for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1787
+ for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1788
1788
  };
1789
1789
  ensure(e, t) {
1790
- var n = V, r = sn();
1790
+ var n = z, r = un();
1791
1791
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1792
- var i = document.createDocumentFragment(), a = G();
1792
+ var i = document.createDocumentFragment(), a = U();
1793
1793
  i.append(a), this.#n.set(e, {
1794
- effect: wn(() => t(a)),
1794
+ effect: W(() => t(a)),
1795
1795
  fragment: i
1796
1796
  });
1797
- } else this.#t.set(e, wn(() => t(this.anchor)));
1797
+ } else this.#t.set(e, W(() => t(this.anchor)));
1798
1798
  if (this.#e.set(n, e), r) {
1799
1799
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1800
1800
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1801
1801
  n.oncommit(this.#a), n.ondiscard(this.#o);
1802
- } else P && (this.anchor = F), this.#a(n);
1802
+ } else M && (this.anchor = P), this.#a(n);
1803
1803
  }
1804
1804
  };
1805
1805
  //#endregion
1806
1806
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/if.js
1807
- function jr(e, t, n = !1) {
1807
+ function Nr(e, t, n = !1) {
1808
1808
  var r;
1809
- P && (r = F, ke());
1810
- var i = new Ar(e), a = n ? D : 0;
1809
+ M && (r = P, je());
1810
+ var i = new Mr(e), a = n ? E : 0;
1811
1811
  function o(e, t) {
1812
- if (P) {
1813
- var n = Ne(r);
1812
+ if (M) {
1813
+ var n = Fe(r);
1814
1814
  if (e !== parseInt(n.substring(1))) {
1815
- var a = Me();
1816
- I(a), i.anchor = a, Oe(!1), i.ensure(e, t), Oe(!0);
1815
+ var a = Pe();
1816
+ F(a), i.anchor = a, N(!1), i.ensure(e, t), N(!0);
1817
1817
  return;
1818
1818
  }
1819
1819
  }
1820
1820
  i.ensure(e, t);
1821
1821
  }
1822
- Cn(() => {
1822
+ En(() => {
1823
1823
  var e = !1;
1824
1824
  t((t, n = 0) => {
1825
1825
  e = !0, o(n, t);
@@ -1828,14 +1828,14 @@ function jr(e, t, n = !1) {
1828
1828
  }
1829
1829
  //#endregion
1830
1830
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/each.js
1831
- function Mr(e, t, n) {
1831
+ function Pr(e, t, n) {
1832
1832
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1833
1833
  let n = t[s];
1834
- An(n, () => {
1834
+ Mn(n, () => {
1835
1835
  if (a) {
1836
1836
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1837
1837
  var t = e.outrogroups;
1838
- Nr(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1838
+ Fr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1839
1839
  }
1840
1840
  } else --o;
1841
1841
  }, !1);
@@ -1844,15 +1844,15 @@ function Mr(e, t, n) {
1844
1844
  var c = r.length === 0 && n !== null;
1845
1845
  if (c) {
1846
1846
  var l = n, u = l.parentNode;
1847
- on(u), u.append(l), e.items.clear();
1847
+ ln(u), u.append(l), e.items.clear();
1848
1848
  }
1849
- Nr(e, t, !c);
1849
+ Fr(e, t, !c);
1850
1850
  } else a = {
1851
1851
  pending: new Set(t),
1852
1852
  done: /* @__PURE__ */ new Set()
1853
1853
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1854
1854
  }
1855
- function Nr(e, t, n = !0) {
1855
+ function Fr(e, t, n = !0) {
1856
1856
  var r;
1857
1857
  if (e.pending.size > 0) {
1858
1858
  r = /* @__PURE__ */ new Set();
@@ -1860,23 +1860,23 @@ function Nr(e, t, n = !0) {
1860
1860
  }
1861
1861
  for (var i = 0; i < t.length; i++) {
1862
1862
  var a = t[i];
1863
- r?.has(a) ? (a.f |= k, Pn(a, document.createDocumentFragment())) : K(t[i], n);
1863
+ r?.has(a) ? (a.f |= oe, In(a, document.createDocumentFragment())) : G(t[i], n);
1864
1864
  }
1865
1865
  }
1866
- var Pr;
1867
- function Fr(e, t, n, r, i, a = null) {
1866
+ var Ir;
1867
+ function Lr(e, t, n, r, i, a = null) {
1868
1868
  var o = e, s = /* @__PURE__ */ new Map();
1869
1869
  if (t & 4) {
1870
- var l = e;
1871
- o = P ? I(/* @__PURE__ */ en(l)) : l.appendChild(G());
1870
+ var c = e;
1871
+ o = M ? F(/* @__PURE__ */ rn(c)) : c.appendChild(U());
1872
1872
  }
1873
- P && ke();
1874
- var u = null, f = /* @__PURE__ */ pt(() => {
1873
+ M && je();
1874
+ var u = null, d = /* @__PURE__ */ gt(() => {
1875
1875
  var e = n();
1876
- return c(e) ? e : e == null ? [] : d(e);
1876
+ return l(e) ? e : e == null ? [] : f(e);
1877
1877
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1878
1878
  function g(e) {
1879
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Lr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, zr(u, null, o)) : Mn(u) : An(u, () => {
1879
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, zr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= oe, Vr(u, null, o)) : Pn(u) : Mn(u, () => {
1880
1880
  u = null;
1881
1881
  })));
1882
1882
  }
@@ -1884,21 +1884,21 @@ function Fr(e, t, n, r, i, a = null) {
1884
1884
  v.pending.delete(e);
1885
1885
  }
1886
1886
  var v = {
1887
- effect: Cn(() => {
1888
- p = Q(f);
1887
+ effect: En(() => {
1888
+ p = Z(d);
1889
1889
  var e = p.length;
1890
1890
  let c = !1;
1891
- P && Ne(o) === "[!" != (e === 0) && (o = Me(), I(o), Oe(!1), c = !0);
1892
- for (var l = /* @__PURE__ */ new Set(), d = V, v = sn(), y = 0; y < e; y += 1) {
1893
- P && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, Oe(!1));
1891
+ M && Fe(o) === "[!" != (e === 0) && (o = Pe(), F(o), N(!1), c = !0);
1892
+ for (var l = /* @__PURE__ */ new Set(), f = z, v = un(), y = 0; y < e; y += 1) {
1893
+ M && P.nodeType === 8 && P.data === "]" && (o = P, c = !0, N(!1));
1894
1894
  var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
1895
- x ? (x.v && Wt(x.v, ee), x.i && Wt(x.i, y), v && d.unskip_effect(x.e)) : (x = Rr(s, h ? o : Pr ??= G(), ee, b, y, i, t, n), h || (x.e.f |= k), s.set(b, x)), l.add(b);
1895
+ x ? (x.v && qt(x.v, ee), x.i && qt(x.i, y), v && f.unskip_effect(x.e)) : (x = Br(s, h ? o : Ir ??= U(), ee, b, y, i, t, n), h || (x.e.f |= oe), s.set(b, x)), l.add(b);
1896
1896
  }
1897
- if (e === 0 && a && !u && (h ? u = wn(() => a(o)) : (u = wn(() => a(Pr ??= G())), u.f |= k)), e > l.size && me("", "", ""), P && e > 0 && I(Me()), !h) if (m.set(d, l), v) {
1898
- for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
1899
- d.oncommit(g), d.ondiscard(_);
1900
- } else g(d);
1901
- c && Oe(!0), Q(f);
1897
+ if (e === 0 && a && !u && (h ? u = W(() => a(o)) : (u = W(() => a(Ir ??= U())), u.f |= oe)), e > l.size && _e("", "", ""), M && e > 0 && F(Pe()), !h) if (m.set(f, l), v) {
1898
+ for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
1899
+ f.oncommit(g), f.ondiscard(_);
1900
+ } else g(f);
1901
+ c && N(!0), Z(d);
1902
1902
  }),
1903
1903
  flags: t,
1904
1904
  items: s,
@@ -1906,21 +1906,21 @@ function Fr(e, t, n, r, i, a = null) {
1906
1906
  outrogroups: null,
1907
1907
  fallback: u
1908
1908
  };
1909
- h = !1, P && (o = F);
1909
+ h = !1, M && (o = P);
1910
1910
  }
1911
- function Ir(e) {
1911
+ function Rr(e) {
1912
1912
  for (; e !== null && !(e.f & 32);) e = e.next;
1913
1913
  return e;
1914
1914
  }
1915
- function Lr(e, t, n, r, i) {
1916
- var a = (r & 8) != 0, o = t.length, s = e.items, c = Ir(e.effect.first), l, u = null, f, p = [], m = [], h, g, _, v;
1917
- if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (f ??= /* @__PURE__ */ new Set()).add(_));
1915
+ function zr(e, t, n, r, i) {
1916
+ var a = (r & 8) != 0, o = t.length, s = e.items, c = Rr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
1917
+ 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(_));
1918
1918
  for (v = 0; v < o; v += 1) {
1919
1919
  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(_);
1920
- if (_.f & 8192 && (Mn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= k, _ === c) zr(_, null, n);
1920
+ if (_.f & 8192 && (Pn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= oe, _ === c) Vr(_, null, n);
1921
1921
  else {
1922
1922
  var y = u ? u.next : c;
1923
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Br(e, u, _), Br(e, _, y), zr(_, y, n), u = _, p = [], m = [], c = Ir(u.next);
1923
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Hr(e, u, _), Hr(e, _, y), Vr(_, y, n), u = _, p = [], m = [], c = Rr(u.next);
1924
1924
  continue;
1925
1925
  }
1926
1926
  if (_ !== c) {
@@ -1928,81 +1928,81 @@ function Lr(e, t, n, r, i) {
1928
1928
  if (p.length < m.length) {
1929
1929
  var ee = m[0], b;
1930
1930
  u = ee.prev;
1931
- var x = p[0], S = p[p.length - 1];
1932
- for (b = 0; b < p.length; b += 1) zr(p[b], ee, n);
1931
+ var x = p[0], te = p[p.length - 1];
1932
+ for (b = 0; b < p.length; b += 1) Vr(p[b], ee, n);
1933
1933
  for (b = 0; b < m.length; b += 1) l.delete(m[b]);
1934
- Br(e, x.prev, S.next), Br(e, u, x), Br(e, S, ee), c = ee, u = S, --v, p = [], m = [];
1935
- } else l.delete(_), zr(_, c, n), Br(e, _.prev, _.next), Br(e, _, u === null ? e.effect.first : u.next), Br(e, u, _), u = _;
1934
+ Hr(e, x.prev, te.next), Hr(e, u, x), Hr(e, te, ee), c = ee, u = te, --v, p = [], m = [];
1935
+ } else l.delete(_), Vr(_, c, n), Hr(e, _.prev, _.next), Hr(e, _, u === null ? e.effect.first : u.next), Hr(e, u, _), u = _;
1936
1936
  continue;
1937
1937
  }
1938
- for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Ir(c.next);
1938
+ for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Rr(c.next);
1939
1939
  if (c === null) continue;
1940
1940
  }
1941
- _.f & 33554432 || p.push(_), u = _, c = Ir(_.next);
1941
+ _.f & 33554432 || p.push(_), u = _, c = Rr(_.next);
1942
1942
  }
1943
1943
  if (e.outrogroups !== null) {
1944
- for (let t of e.outrogroups) t.pending.size === 0 && (Nr(e, d(t.done)), e.outrogroups?.delete(t));
1944
+ for (let t of e.outrogroups) t.pending.size === 0 && (Fr(e, f(t.done)), e.outrogroups?.delete(t));
1945
1945
  e.outrogroups.size === 0 && (e.outrogroups = null);
1946
1946
  }
1947
1947
  if (c !== null || l !== void 0) {
1948
- var C = [];
1949
- if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
1950
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Ir(c.next);
1951
- var te = C.length;
1952
- if (te > 0) {
1953
- var w = r & 4 && o === 0 ? n : null;
1948
+ var S = [];
1949
+ if (l !== void 0) for (_ of l) _.f & 8192 || S.push(_);
1950
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = Rr(c.next);
1951
+ var C = S.length;
1952
+ if (C > 0) {
1953
+ var ne = r & 4 && o === 0 ? n : null;
1954
1954
  if (a) {
1955
- for (v = 0; v < te; v += 1) C[v].nodes?.a?.measure();
1956
- for (v = 0; v < te; v += 1) C[v].nodes?.a?.fix();
1955
+ for (v = 0; v < C; v += 1) S[v].nodes?.a?.measure();
1956
+ for (v = 0; v < C; v += 1) S[v].nodes?.a?.fix();
1957
1957
  }
1958
- Mr(e, C, w);
1958
+ Pr(e, S, ne);
1959
1959
  }
1960
1960
  }
1961
- a && We(() => {
1962
- if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
1961
+ a && qe(() => {
1962
+ if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
1963
1963
  });
1964
1964
  }
1965
- function Rr(e, t, n, r, i, a, o, s) {
1966
- var c = o & 1 ? o & 16 ? Ht(n) : /* @__PURE__ */ Ut(n, !1, !1) : null, l = o & 2 ? Ht(i) : null;
1965
+ function Br(e, t, n, r, i, a, o, s) {
1966
+ var c = o & 1 ? o & 16 ? Gt(n) : /* @__PURE__ */ Kt(n, !1, !1) : null, l = o & 2 ? Gt(i) : null;
1967
1967
  return {
1968
1968
  v: c,
1969
1969
  i: l,
1970
- e: wn(() => (a(t, c ?? n, l ?? i, s), () => {
1970
+ e: W(() => (a(t, c ?? n, l ?? i, s), () => {
1971
1971
  e.delete(r);
1972
1972
  }))
1973
1973
  };
1974
1974
  }
1975
- function zr(e, t, n) {
1975
+ function Vr(e, t, n) {
1976
1976
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1977
- var o = /* @__PURE__ */ tn(r);
1977
+ var o = /* @__PURE__ */ an(r);
1978
1978
  if (a.before(r), r === i) return;
1979
1979
  r = o;
1980
1980
  }
1981
1981
  }
1982
- function Br(e, t, n) {
1982
+ function Hr(e, t, n) {
1983
1983
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1984
1984
  }
1985
1985
  //#endregion
1986
1986
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/css.js
1987
- function Vr(e, t) {
1988
- yn(() => {
1987
+ function Ur(e, t) {
1988
+ Sn(() => {
1989
1989
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1990
1990
  if (!r.querySelector("#" + t.hash)) {
1991
- let e = cn("style");
1991
+ let e = dn("style");
1992
1992
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1993
1993
  }
1994
1994
  });
1995
1995
  }
1996
1996
  //#endregion
1997
1997
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/actions.js
1998
- function Hr(e, t, n) {
1999
- yn(() => {
2000
- var r = ir(() => t(e, n?.()) || {});
1998
+ function Wr(e, t, n) {
1999
+ Sn(() => {
2000
+ var r = or(() => t(e, n?.()) || {});
2001
2001
  if (n && r?.update) {
2002
2002
  var i = !1, a = {};
2003
- xn(() => {
2003
+ wn(() => {
2004
2004
  var e = n();
2005
- ar(e), i && Fe(a, e) && (a = e, r.update(e));
2005
+ sr(e), i && Le(a, e) && (a = e, r.update(e));
2006
2006
  }), i = !0;
2007
2007
  }
2008
2008
  if (r?.destroy) return () => r.destroy();
@@ -2010,19 +2010,19 @@ function Hr(e, t, n) {
2010
2010
  }
2011
2011
  //#endregion
2012
2012
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/shared/attributes.js
2013
- var Ur = [..." \n\r\f\xA0\v"];
2014
- function Wr(e, t, n) {
2013
+ var Gr = [..." \n\r\f\xA0\v"];
2014
+ function Kr(e, t, n) {
2015
2015
  var r = e == null ? "" : "" + e;
2016
2016
  if (t && (r = r ? r + " " + t : t), n) {
2017
2017
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
2018
2018
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
2019
2019
  var s = o + a;
2020
- (o === 0 || Ur.includes(r[o - 1])) && (s === r.length || Ur.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
2020
+ (o === 0 || Gr.includes(r[o - 1])) && (s === r.length || Gr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
2021
2021
  }
2022
2022
  }
2023
2023
  return r === "" ? null : r;
2024
2024
  }
2025
- function Gr(e, t = !1) {
2025
+ function qr(e, t = !1) {
2026
2026
  var n = t ? " !important;" : ";", r = "";
2027
2027
  for (var i of Object.keys(e)) {
2028
2028
  var a = e[i];
@@ -2030,16 +2030,16 @@ function Gr(e, t = !1) {
2030
2030
  }
2031
2031
  return r;
2032
2032
  }
2033
- function Kr(e) {
2033
+ function Jr(e) {
2034
2034
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2035
2035
  }
2036
- function qr(e, t) {
2036
+ function Yr(e, t) {
2037
2037
  if (t) {
2038
2038
  var n = "", r, i;
2039
2039
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
2040
2040
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2041
2041
  var a = !1, o = 0, s = !1, c = [];
2042
- r && c.push(...Object.keys(r).map(Kr)), i && c.push(...Object.keys(i).map(Kr));
2042
+ r && c.push(...Object.keys(r).map(Jr)), i && c.push(...Object.keys(i).map(Jr));
2043
2043
  var l = 0, u = -1;
2044
2044
  let t = e.length;
2045
2045
  for (var d = 0; d < t; d++) {
@@ -2048,7 +2048,7 @@ function qr(e, t) {
2048
2048
  if (f === ":" && u === -1) u = d;
2049
2049
  else if (f === ";" || d === t - 1) {
2050
2050
  if (u !== -1) {
2051
- var p = Kr(e.substring(l, u).trim());
2051
+ var p = Jr(e.substring(l, u).trim());
2052
2052
  if (!c.includes(p)) {
2053
2053
  f !== ";" && d++;
2054
2054
  var m = e.substring(l, d).trim();
@@ -2060,17 +2060,17 @@ function qr(e, t) {
2060
2060
  }
2061
2061
  }
2062
2062
  }
2063
- return r && (n += Gr(r)), i && (n += Gr(i, !0)), n = n.trim(), n === "" ? null : n;
2063
+ return r && (n += qr(r)), i && (n += qr(i, !0)), n = n.trim(), n === "" ? null : n;
2064
2064
  }
2065
2065
  return e == null ? null : String(e);
2066
2066
  }
2067
2067
  //#endregion
2068
2068
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/class.js
2069
- function Jr(e, t, n, r, i, a) {
2070
- var o = e[ce];
2071
- if (P || o !== n || o === void 0) {
2072
- var s = Wr(n, r, a);
2073
- (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ce] = n;
2069
+ function Xr(e, t, n, r, i, a) {
2070
+ var o = e[de];
2071
+ if (M || o !== n || o === void 0) {
2072
+ var s = Kr(n, r, a);
2073
+ (!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[de] = n;
2074
2074
  } else if (a && i !== a) for (var c in a) {
2075
2075
  var l = !!a[c];
2076
2076
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2079,72 +2079,72 @@ function Jr(e, t, n, r, i, a) {
2079
2079
  }
2080
2080
  //#endregion
2081
2081
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/style.js
2082
- function Yr(e, t = {}, n, r) {
2082
+ function Zr(e, t = {}, n, r) {
2083
2083
  for (var i in n) {
2084
2084
  var a = n[i];
2085
2085
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2086
2086
  }
2087
2087
  }
2088
- function Xr(e, t, n, r) {
2089
- var i = e[le];
2090
- if (P || i !== t) {
2091
- var a = qr(t, r);
2092
- (!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[le] = t;
2093
- } else r && (Array.isArray(r) ? (Yr(e, n?.[0], r[0]), Yr(e, n?.[1], r[1], "important")) : Yr(e, n, r));
2088
+ function Qr(e, t, n, r) {
2089
+ var i = e[fe];
2090
+ if (M || i !== t) {
2091
+ var a = Yr(t, r);
2092
+ (!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[fe] = t;
2093
+ } else r && (Array.isArray(r) ? (Zr(e, n?.[0], r[0]), Zr(e, n?.[1], r[1], "important")) : Zr(e, n, r));
2094
2094
  return r;
2095
2095
  }
2096
2096
  //#endregion
2097
2097
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2098
- var Zr = Symbol("is custom element"), Qr = Symbol("is html"), $r = fe ? "link" : "LINK";
2099
- function ei(e, t, n, r) {
2100
- var i = ni(e);
2101
- P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === $r) || i[t] !== (i[t] = n) && (t === "loading" && (e[oe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ii(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2102
- }
2103
- function ti(e, t, n) {
2104
- var r = q, i = Y;
2105
- let a = P;
2106
- P && Oe(!1), J(null), Bn(null);
2098
+ var $r = Symbol("is custom element"), ei = Symbol("is html"), ti = he ? "link" : "LINK";
2099
+ function Q(e, t, n, r) {
2100
+ var i = ri(e);
2101
+ M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ti) || i[t] !== (i[t] = n) && (t === "loading" && (e[le] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ai(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2102
+ }
2103
+ function ni(e, t, n) {
2104
+ var r = K, i = J;
2105
+ let a = M;
2106
+ M && N(!1), q(null), Hn(null);
2107
2107
  try {
2108
- t !== "style" && (ri.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ii(e).includes(t) : n && typeof n == "object") ? e[t] = n : ei(e, t, n == null ? n : String(n));
2108
+ t !== "style" && (ii.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ai(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2109
2109
  } finally {
2110
- J(r), Bn(i), a && Oe(!0);
2110
+ q(r), Hn(i), a && N(!0);
2111
2111
  }
2112
2112
  }
2113
- function ni(e) {
2114
- return e[se] ??= {
2115
- [Zr]: e.nodeName.includes("-"),
2116
- [Qr]: e.namespaceURI === s
2113
+ function ri(e) {
2114
+ return e[ue] ??= {
2115
+ [$r]: e.nodeName.includes("-"),
2116
+ [ei]: e.namespaceURI === c
2117
2117
  };
2118
2118
  }
2119
- var ri = /* @__PURE__ */ new Map();
2120
- function ii(e) {
2121
- var t = e.getAttribute("is") || e.nodeName, n = ri.get(t);
2119
+ var ii = /* @__PURE__ */ new Map();
2120
+ function ai(e) {
2121
+ var t = e.getAttribute("is") || e.nodeName, n = ii.get(t);
2122
2122
  if (n) return n;
2123
- ri.set(t, n = []);
2123
+ ii.set(t, n = []);
2124
2124
  for (var r, i = e, a = Element.prototype; a !== i;) {
2125
- for (var o in r = h(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2126
- i = v(i);
2125
+ for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2126
+ i = y(i);
2127
2127
  }
2128
2128
  return n;
2129
2129
  }
2130
2130
  //#endregion
2131
2131
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2132
- function ai(e, t) {
2133
- return e === t || e?.[M] === t;
2132
+ function oi(e, t) {
2133
+ return e === t || e?.[A] === t;
2134
2134
  }
2135
- function oi(e = {}, t, n, r) {
2136
- var i = L.r, a = Y;
2137
- return yn(() => {
2135
+ function si(e = {}, t, n, r) {
2136
+ var i = I.r, a = J;
2137
+ return Sn(() => {
2138
2138
  var o, s;
2139
- return xn(() => {
2140
- o = s, s = r?.() || [], ir(() => {
2141
- ai(n(...s), e) || (t(e, ...s), o && ai(n(...o), e) && t(null, ...o));
2139
+ return wn(() => {
2140
+ o = s, s = r?.() || [], or(() => {
2141
+ oi(n(...s), e) || (t(e, ...s), o && oi(n(...o), e) && t(null, ...o));
2142
2142
  });
2143
2143
  }), () => {
2144
2144
  let r = a;
2145
2145
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2146
2146
  let o = () => {
2147
- s && ai(n(...s), e) && t(null, ...s);
2147
+ s && oi(n(...s), e) && t(null, ...s);
2148
2148
  }, c = r.teardown;
2149
2149
  r.teardown = () => {
2150
2150
  o(), c?.();
@@ -2154,15 +2154,15 @@ function oi(e = {}, t, n, r) {
2154
2154
  }
2155
2155
  //#endregion
2156
2156
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/props.js
2157
- function si(e, t, n, r) {
2158
- var i = !Re || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ut(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
2157
+ function ci(e, t, n, r) {
2158
+ var i = !Be || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ pt(r), Z(l)) : (c && (c = !1, s = o ? or(r) : r), s);
2159
2159
  let d;
2160
2160
  if (a) {
2161
- var f = M in e || N in e;
2162
- d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2161
+ var f = A in e || j in e;
2162
+ d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2163
2163
  }
2164
- var p, h = !1;
2165
- a ? [p, h] = et(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && be(t), d(p)));
2164
+ var p, m = !1;
2165
+ a ? [p, m] = rt(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ce(t), d(p)));
2166
2166
  var g = i ? () => {
2167
2167
  var n = e[t];
2168
2168
  return n === void 0 ? u() : (c = !0, n);
@@ -2174,31 +2174,31 @@ function si(e, t, n, r) {
2174
2174
  if (d) {
2175
2175
  var _ = e.$$legacy;
2176
2176
  return (function(e, t) {
2177
- return arguments.length > 0 ? ((!i || !t || _ || h) && d(t ? g() : e), e) : g();
2177
+ return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
2178
2178
  });
2179
2179
  }
2180
- var v = !1, y = (n & 1 ? ut : pt)(() => (v = !1, g()));
2181
- a && Q(y);
2182
- var ee = Y;
2180
+ var v = !1, y = (n & 1 ? pt : gt)(() => (v = !1, g()));
2181
+ a && Z(y);
2182
+ var ee = J;
2183
2183
  return (function(e, t) {
2184
2184
  if (arguments.length > 0) {
2185
- let n = t ? Q(y) : i && a ? Jt(e) : e;
2186
- return W(y, n), v = !0, s !== void 0 && (s = n), e;
2185
+ let n = t ? Z(y) : i && a ? Zt(e) : e;
2186
+ return H(y, n), v = !0, s !== void 0 && (s = n), e;
2187
2187
  }
2188
- return Ln && v || ee.f & 16384 ? y.v : Q(y);
2188
+ return zn && v || ee.f & 16384 ? y.v : Z(y);
2189
2189
  });
2190
2190
  }
2191
2191
  //#endregion
2192
2192
  //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/legacy/legacy-client.js
2193
- function ci(e) {
2194
- return new li(e);
2193
+ function li(e) {
2194
+ return new ui(e);
2195
2195
  }
2196
- var li = class {
2196
+ var ui = class {
2197
2197
  #e;
2198
2198
  #t;
2199
2199
  constructor(e) {
2200
2200
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2201
- var r = /* @__PURE__ */ Ut(n, !1, !1);
2201
+ var r = /* @__PURE__ */ Kt(n, !1, !1);
2202
2202
  return t.set(e, r), r;
2203
2203
  };
2204
2204
  let r = new Proxy({
@@ -2206,16 +2206,16 @@ var li = class {
2206
2206
  $$events: {}
2207
2207
  }, {
2208
2208
  get(e, r) {
2209
- return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
2209
+ return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
2210
2210
  },
2211
2211
  has(e, r) {
2212
- return r === N ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2212
+ return r === j ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2213
2213
  },
2214
2214
  set(e, r, i) {
2215
- return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2215
+ return H(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2216
2216
  }
2217
2217
  });
2218
- this.#t = (e.hydrate ? Tr : wr)(e.component, {
2218
+ this.#t = (e.hydrate ? Dr : Er)(e.component, {
2219
2219
  target: e.target,
2220
2220
  anchor: e.anchor,
2221
2221
  props: r,
@@ -2223,8 +2223,8 @@ var li = class {
2223
2223
  intro: e.intro ?? !1,
2224
2224
  recover: e.recover,
2225
2225
  transformError: e.transformError
2226
- }), !Le && (!e?.props?.$$host || e.sync === !1) && At(), this.#e = r.$$events;
2227
- for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
2226
+ }), !ze && (!e?.props?.$$host || e.sync === !1) && Nt(), this.#e = r.$$events;
2227
+ for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || m(this, e, {
2228
2228
  get() {
2229
2229
  return this.#t[e];
2230
2230
  },
@@ -2236,7 +2236,7 @@ var li = class {
2236
2236
  this.#t.$set = (e) => {
2237
2237
  Object.assign(r, e);
2238
2238
  }, this.#t.$destroy = () => {
2239
- kr(this.#t);
2239
+ jr(this.#t);
2240
2240
  };
2241
2241
  }
2242
2242
  $set(e) {
@@ -2252,8 +2252,8 @@ var li = class {
2252
2252
  $destroy() {
2253
2253
  this.#t.$destroy();
2254
2254
  }
2255
- }, ui;
2256
- typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2255
+ }, di;
2256
+ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2257
2257
  $$ctor;
2258
2258
  $$s;
2259
2259
  $$c;
@@ -2286,18 +2286,18 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2286
2286
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2287
2287
  function e(e) {
2288
2288
  return (t) => {
2289
- let n = cn("slot");
2290
- e !== "default" && (n.name = e), br(t, n);
2289
+ let n = dn("slot");
2290
+ e !== "default" && (n.name = e), Sr(t, n);
2291
2291
  };
2292
2292
  }
2293
- let t = {}, n = fi(this);
2293
+ let t = {}, n = pi(this);
2294
2294
  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));
2295
2295
  for (let e of this.attributes) {
2296
2296
  let t = this.$$g_p(e.name);
2297
- t in this.$$d || (this.$$d[t] = di(t, e.value, this.$$p_d, "toProp"));
2297
+ t in this.$$d || (this.$$d[t] = fi(t, e.value, this.$$p_d, "toProp"));
2298
2298
  }
2299
2299
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2300
- this.$$c = ci({
2300
+ this.$$c = li({
2301
2301
  component: this.$$ctor,
2302
2302
  target: this.$$shadowRoot || this,
2303
2303
  props: {
@@ -2305,13 +2305,13 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2305
2305
  $$slots: t,
2306
2306
  $$host: this
2307
2307
  }
2308
- }), this.$$me = _n(() => {
2309
- xn(() => {
2308
+ }), this.$$me = bn(() => {
2309
+ wn(() => {
2310
2310
  this.$$r = !0;
2311
- for (let e of f(this.$$c)) {
2311
+ for (let e of p(this.$$c)) {
2312
2312
  if (!this.$$p_d[e]?.reflect) continue;
2313
2313
  this.$$d[e] = this.$$c[e];
2314
- let t = di(e, this.$$d[e], this.$$p_d, "toAttribute");
2314
+ let t = fi(e, this.$$d[e], this.$$p_d, "toAttribute");
2315
2315
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2316
2316
  }
2317
2317
  this.$$r = !1;
@@ -2325,7 +2325,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2325
2325
  }
2326
2326
  }
2327
2327
  attributeChangedCallback(e, t, n) {
2328
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = di(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2328
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = fi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2329
2329
  }
2330
2330
  disconnectedCallback() {
2331
2331
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2333,10 +2333,10 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2333
2333
  });
2334
2334
  }
2335
2335
  $$g_p(e) {
2336
- return f(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2336
+ return p(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2337
2337
  }
2338
2338
  });
2339
- function di(e, t, n, r) {
2339
+ function fi(e, t, n, r) {
2340
2340
  let i = n[e]?.type;
2341
2341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2342
2342
  if (r === "toAttribute") switch (i) {
@@ -2354,71 +2354,71 @@ function di(e, t, n, r) {
2354
2354
  default: return t;
2355
2355
  }
2356
2356
  }
2357
- function fi(e) {
2357
+ function pi(e) {
2358
2358
  let t = {};
2359
2359
  return e.childNodes.forEach((e) => {
2360
2360
  t[e.slot || "default"] = !0;
2361
2361
  }), t;
2362
2362
  }
2363
- function pi(e, t, n, r, i, a) {
2364
- let o = class extends ui {
2363
+ function mi(e, t, n, r, i, a) {
2364
+ let o = class extends di {
2365
2365
  constructor() {
2366
2366
  super(e, n, i), this.$$p_d = t;
2367
2367
  }
2368
2368
  static get observedAttributes() {
2369
- return f(t).map((e) => (t[e].attribute || e).toLowerCase());
2369
+ return p(t).map((e) => (t[e].attribute || e).toLowerCase());
2370
2370
  }
2371
2371
  };
2372
- return f(t).forEach((e) => {
2373
- p(o.prototype, e, {
2372
+ return p(t).forEach((e) => {
2373
+ m(o.prototype, e, {
2374
2374
  get() {
2375
2375
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2376
2376
  },
2377
2377
  set(n) {
2378
- n = di(e, n, t), this.$$d[e] = n;
2378
+ n = fi(e, n, t), this.$$d[e] = n;
2379
2379
  var r = this.$$c;
2380
- r && (m(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2380
+ r && (h(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2381
2381
  }
2382
2382
  });
2383
2383
  }), r.forEach((e) => {
2384
- p(o.prototype, e, { get() {
2384
+ m(o.prototype, e, { get() {
2385
2385
  return this.$$c?.[e];
2386
2386
  } });
2387
2387
  }), a && (o = a(o)), e.element = o, o;
2388
2388
  }
2389
2389
  //#endregion
2390
2390
  //#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
2391
- var mi = globalThis, hi = mi.ShadowRoot && (mi.ShadyCSS === void 0 || mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = Symbol(), _i = /* @__PURE__ */ new WeakMap(), vi = class {
2391
+ var hi = globalThis, gi = hi.ShadowRoot && (hi.ShadyCSS === void 0 || hi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _i = Symbol(), vi = /* @__PURE__ */ new WeakMap(), yi = class {
2392
2392
  constructor(e, t, n) {
2393
- if (this._$cssResult$ = !0, n !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2393
+ if (this._$cssResult$ = !0, n !== _i) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2394
2394
  this.cssText = e, this.t = t;
2395
2395
  }
2396
2396
  get styleSheet() {
2397
2397
  let e = this.o, t = this.t;
2398
- if (hi && e === void 0) {
2398
+ if (gi && e === void 0) {
2399
2399
  let n = t !== void 0 && t.length === 1;
2400
- n && (e = _i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && _i.set(t, e));
2400
+ n && (e = vi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && vi.set(t, e));
2401
2401
  }
2402
2402
  return e;
2403
2403
  }
2404
2404
  toString() {
2405
2405
  return this.cssText;
2406
2406
  }
2407
- }, yi = (e) => new vi(typeof e == "string" ? e : e + "", void 0, gi), bi = (e, t) => {
2408
- if (hi) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2407
+ }, bi = (e) => new yi(typeof e == "string" ? e : e + "", void 0, _i), xi = (e, t) => {
2408
+ if (gi) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2409
2409
  else for (let n of t) {
2410
- let t = document.createElement("style"), r = mi.litNonce;
2410
+ let t = document.createElement("style"), r = hi.litNonce;
2411
2411
  r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
2412
2412
  }
2413
- }, xi = hi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2413
+ }, Si = gi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2414
2414
  let t = "";
2415
2415
  for (let n of e.cssRules) t += n.cssText;
2416
- return yi(t);
2417
- })(e) : e, { is: Si, defineProperty: Ci, getOwnPropertyDescriptor: wi, getOwnPropertyNames: Ti, getOwnPropertySymbols: Ei, getPrototypeOf: Di } = Object, Oi = globalThis, ki = Oi.trustedTypes, Ai = ki ? ki.emptyScript : "", ji = Oi.reactiveElementPolyfillSupport, Mi = (e, t) => e, Ni = {
2416
+ return bi(t);
2417
+ })(e) : e, { is: Ci, defineProperty: wi, getOwnPropertyDescriptor: Ti, getOwnPropertyNames: Ei, getOwnPropertySymbols: Di, getPrototypeOf: Oi } = Object, ki = globalThis, Ai = ki.trustedTypes, ji = Ai ? Ai.emptyScript : "", Mi = ki.reactiveElementPolyfillSupport, Ni = (e, t) => e, Pi = {
2418
2418
  toAttribute(e, t) {
2419
2419
  switch (t) {
2420
2420
  case Boolean:
2421
- e = e ? Ai : null;
2421
+ e = e ? ji : null;
2422
2422
  break;
2423
2423
  case Object:
2424
2424
  case Array: e = e == null ? e : JSON.stringify(e);
@@ -2443,30 +2443,30 @@ var mi = globalThis, hi = mi.ShadowRoot && (mi.ShadyCSS === void 0 || mi.ShadyCS
2443
2443
  }
2444
2444
  return n;
2445
2445
  }
2446
- }, Pi = (e, t) => !Si(e, t), Fi = {
2446
+ }, Fi = (e, t) => !Ci(e, t), Ii = {
2447
2447
  attribute: !0,
2448
2448
  type: String,
2449
- converter: Ni,
2449
+ converter: Pi,
2450
2450
  reflect: !1,
2451
2451
  useDefault: !1,
2452
- hasChanged: Pi
2452
+ hasChanged: Fi
2453
2453
  };
2454
- Symbol.metadata ??= Symbol("metadata"), Oi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2455
- var Ii = class extends HTMLElement {
2454
+ Symbol.metadata ??= Symbol("metadata"), ki.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2455
+ var Li = class extends HTMLElement {
2456
2456
  static addInitializer(e) {
2457
2457
  this._$Ei(), (this.l ??= []).push(e);
2458
2458
  }
2459
2459
  static get observedAttributes() {
2460
2460
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2461
2461
  }
2462
- static createProperty(e, t = Fi) {
2462
+ static createProperty(e, t = Ii) {
2463
2463
  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) {
2464
2464
  let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
2465
- r !== void 0 && Ci(this.prototype, e, r);
2465
+ r !== void 0 && wi(this.prototype, e, r);
2466
2466
  }
2467
2467
  }
2468
2468
  static getPropertyDescriptor(e, t, n) {
2469
- let { get: r, set: i } = wi(this.prototype, e) ?? {
2469
+ let { get: r, set: i } = Ti(this.prototype, e) ?? {
2470
2470
  get() {
2471
2471
  return this[t];
2472
2472
  },
@@ -2485,17 +2485,17 @@ var Ii = class extends HTMLElement {
2485
2485
  };
2486
2486
  }
2487
2487
  static getPropertyOptions(e) {
2488
- return this.elementProperties.get(e) ?? Fi;
2488
+ return this.elementProperties.get(e) ?? Ii;
2489
2489
  }
2490
2490
  static _$Ei() {
2491
- if (this.hasOwnProperty(Mi("elementProperties"))) return;
2492
- let e = Di(this);
2491
+ if (this.hasOwnProperty(Ni("elementProperties"))) return;
2492
+ let e = Oi(this);
2493
2493
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
2494
2494
  }
2495
2495
  static finalize() {
2496
- if (this.hasOwnProperty(Mi("finalized"))) return;
2497
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mi("properties"))) {
2498
- let e = this.properties, t = [...Ti(e), ...Ei(e)];
2496
+ if (this.hasOwnProperty(Ni("finalized"))) return;
2497
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ni("properties"))) {
2498
+ let e = this.properties, t = [...Ei(e), ...Di(e)];
2499
2499
  for (let n of t) this.createProperty(n, e[n]);
2500
2500
  }
2501
2501
  let e = this[Symbol.metadata];
@@ -2514,8 +2514,8 @@ var Ii = class extends HTMLElement {
2514
2514
  let t = [];
2515
2515
  if (Array.isArray(e)) {
2516
2516
  let n = new Set(e.flat(Infinity).reverse());
2517
- for (let e of n) t.unshift(xi(e));
2518
- } else e !== void 0 && t.push(xi(e));
2517
+ for (let e of n) t.unshift(Si(e));
2518
+ } else e !== void 0 && t.push(Si(e));
2519
2519
  return t;
2520
2520
  }
2521
2521
  static _$Eu(e, t) {
@@ -2541,7 +2541,7 @@ var Ii = class extends HTMLElement {
2541
2541
  }
2542
2542
  createRenderRoot() {
2543
2543
  let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
2544
- return bi(e, this.constructor.elementStyles), e;
2544
+ return xi(e, this.constructor.elementStyles), e;
2545
2545
  }
2546
2546
  connectedCallback() {
2547
2547
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
@@ -2556,14 +2556,14 @@ var Ii = class extends HTMLElement {
2556
2556
  _$ET(e, t) {
2557
2557
  let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
2558
2558
  if (r !== void 0 && n.reflect === !0) {
2559
- let i = (n.converter?.toAttribute === void 0 ? Ni : n.converter).toAttribute(t, n.type);
2559
+ let i = (n.converter?.toAttribute === void 0 ? Pi : n.converter).toAttribute(t, n.type);
2560
2560
  this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
2561
2561
  }
2562
2562
  }
2563
2563
  _$AK(e, t) {
2564
2564
  let n = this.constructor, r = n._$Eh.get(e);
2565
2565
  if (r !== void 0 && this._$Em !== r) {
2566
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Ni : e.converter;
2566
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Pi : e.converter;
2567
2567
  this._$Em = r;
2568
2568
  let a = i.fromAttribute(t, e.type);
2569
2569
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
@@ -2572,7 +2572,7 @@ var Ii = class extends HTMLElement {
2572
2572
  requestUpdate(e, t, n) {
2573
2573
  if (e !== void 0) {
2574
2574
  let r = this.constructor, i = this[e];
2575
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Pi)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2575
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Fi)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2576
2576
  this.C(e, t, n);
2577
2577
  }
2578
2578
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -2636,86 +2636,86 @@ var Ii = class extends HTMLElement {
2636
2636
  updated(e) {}
2637
2637
  firstUpdated(e) {}
2638
2638
  };
2639
- Ii.elementStyles = [], Ii.shadowRootOptions = { mode: "open" }, Ii[Mi("elementProperties")] = /* @__PURE__ */ new Map(), Ii[Mi("finalized")] = /* @__PURE__ */ new Map(), ji?.({ ReactiveElement: Ii }), (Oi.reactiveElementVersions ??= []).push("2.1.1");
2640
- var Li = globalThis, Ri = Li.trustedTypes, zi = Ri ? Ri.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Bi = "$lit$", Vi = `lit$${Math.random().toFixed(9).slice(2)}$`, Hi = "?" + Vi, Ui = `<${Hi}>`, Wi = document, Gi = () => Wi.createComment(""), Ki = (e) => e === null || typeof e != "object" && typeof e != "function", qi = Array.isArray, Ji = (e) => qi(e) || typeof e?.[Symbol.iterator] == "function", Yi = "[ \n\f\r]", Xi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zi = /-->/g, Qi = />/g, $i = RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
2641
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ea = /'/g, ta = /"/g, na = /^(?:script|style|textarea|title)$/i, ra = ((e) => (t, ...n) => ({
2639
+ Li.elementStyles = [], Li.shadowRootOptions = { mode: "open" }, Li[Ni("elementProperties")] = /* @__PURE__ */ new Map(), Li[Ni("finalized")] = /* @__PURE__ */ new Map(), Mi?.({ ReactiveElement: Li }), (ki.reactiveElementVersions ??= []).push("2.1.1");
2640
+ var Ri = globalThis, zi = Ri.trustedTypes, Bi = zi ? zi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Vi = "$lit$", Hi = `lit$${Math.random().toFixed(9).slice(2)}$`, Ui = "?" + Hi, Wi = `<${Ui}>`, Gi = document, Ki = () => Gi.createComment(""), qi = (e) => e === null || typeof e != "object" && typeof e != "function", Ji = Array.isArray, Yi = (e) => Ji(e) || typeof e?.[Symbol.iterator] == "function", Xi = "[ \n\f\r]", Zi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Qi = /-->/g, $i = />/g, ea = RegExp(`>|${Xi}(?:([^\\s"'>=/]+)(${Xi}*=${Xi}*(?:[^
2641
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, na = /"/g, ra = /^(?:script|style|textarea|title)$/i, ia = ((e) => (t, ...n) => ({
2642
2642
  _$litType$: e,
2643
2643
  strings: t,
2644
2644
  values: n
2645
- }))(1), ia = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), aa = /* @__PURE__ */ new WeakMap(), oa = Wi.createTreeWalker(Wi, 129);
2646
- function sa(e, t) {
2647
- if (!qi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2648
- return zi === void 0 ? t : zi.createHTML(t);
2645
+ }))(1), aa = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), oa = /* @__PURE__ */ new WeakMap(), sa = Gi.createTreeWalker(Gi, 129);
2646
+ function ca(e, t) {
2647
+ if (!Ji(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2648
+ return Bi === void 0 ? t : Bi.createHTML(t);
2649
2649
  }
2650
- var ca = (e, t) => {
2651
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Xi;
2650
+ var la = (e, t) => {
2651
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Zi;
2652
2652
  for (let t = 0; t < n; t++) {
2653
2653
  let n = e[t], s, c, l = -1, u = 0;
2654
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Xi ? c[1] === "!--" ? o = Zi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = $i) : (na.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = $i) : o = Qi : o === $i ? c[0] === ">" ? (o = i ?? Xi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? $i : c[3] === "\"" ? ta : ea) : o === ta || o === ea ? o = $i : o === Zi || o === Qi ? o = Xi : (o = $i, i = void 0);
2655
- let d = o === $i && e[t + 1].startsWith("/>") ? " " : "";
2656
- a += o === Xi ? n + Ui : l >= 0 ? (r.push(s), n.slice(0, l) + Bi + n.slice(l) + Vi + d) : n + Vi + (l === -2 ? t : d);
2654
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Zi ? c[1] === "!--" ? o = Qi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = ea) : (ra.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = ea) : o = $i : o === ea ? c[0] === ">" ? (o = i ?? Zi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? ea : c[3] === "\"" ? na : ta) : o === na || o === ta ? o = ea : o === Qi || o === $i ? o = Zi : (o = ea, i = void 0);
2655
+ let d = o === ea && e[t + 1].startsWith("/>") ? " " : "";
2656
+ a += o === Zi ? n + Wi : l >= 0 ? (r.push(s), n.slice(0, l) + Vi + n.slice(l) + Hi + d) : n + Hi + (l === -2 ? t : d);
2657
2657
  }
2658
- return [sa(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2659
- }, la = class e {
2658
+ return [ca(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2659
+ }, ua = class e {
2660
2660
  constructor({ strings: t, _$litType$: n }, r) {
2661
2661
  let i;
2662
2662
  this.parts = [];
2663
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ca(t, n);
2664
- if (this.el = e.createElement(l, r), oa.currentNode = this.el.content, n === 2 || n === 3) {
2663
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = la(t, n);
2664
+ if (this.el = e.createElement(l, r), sa.currentNode = this.el.content, n === 2 || n === 3) {
2665
2665
  let e = this.el.content.firstChild;
2666
2666
  e.replaceWith(...e.childNodes);
2667
2667
  }
2668
- for (; (i = oa.nextNode()) !== null && c.length < s;) {
2668
+ for (; (i = sa.nextNode()) !== null && c.length < s;) {
2669
2669
  if (i.nodeType === 1) {
2670
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Bi)) {
2671
- let t = u[o++], n = i.getAttribute(e).split(Vi), r = /([.?@])?(.*)/.exec(t);
2670
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Vi)) {
2671
+ let t = u[o++], n = i.getAttribute(e).split(Hi), r = /([.?@])?(.*)/.exec(t);
2672
2672
  c.push({
2673
2673
  type: 1,
2674
2674
  index: a,
2675
2675
  name: r[2],
2676
2676
  strings: n,
2677
- ctor: r[1] === "." ? ma : r[1] === "?" ? ha : r[1] === "@" ? ga : pa
2677
+ ctor: r[1] === "." ? ha : r[1] === "?" ? ga : r[1] === "@" ? _a : ma
2678
2678
  }), i.removeAttribute(e);
2679
- } else e.startsWith(Vi) && (c.push({
2679
+ } else e.startsWith(Hi) && (c.push({
2680
2680
  type: 6,
2681
2681
  index: a
2682
2682
  }), i.removeAttribute(e));
2683
- if (na.test(i.tagName)) {
2684
- let e = i.textContent.split(Vi), t = e.length - 1;
2683
+ if (ra.test(i.tagName)) {
2684
+ let e = i.textContent.split(Hi), t = e.length - 1;
2685
2685
  if (t > 0) {
2686
- i.textContent = Ri ? Ri.emptyScript : "";
2687
- for (let n = 0; n < t; n++) i.append(e[n], Gi()), oa.nextNode(), c.push({
2686
+ i.textContent = zi ? zi.emptyScript : "";
2687
+ for (let n = 0; n < t; n++) i.append(e[n], Ki()), sa.nextNode(), c.push({
2688
2688
  type: 2,
2689
2689
  index: ++a
2690
2690
  });
2691
- i.append(e[t], Gi());
2691
+ i.append(e[t], Ki());
2692
2692
  }
2693
2693
  }
2694
- } else if (i.nodeType === 8) if (i.data === Hi) c.push({
2694
+ } else if (i.nodeType === 8) if (i.data === Ui) c.push({
2695
2695
  type: 2,
2696
2696
  index: a
2697
2697
  });
2698
2698
  else {
2699
2699
  let e = -1;
2700
- for (; (e = i.data.indexOf(Vi, e + 1)) !== -1;) c.push({
2700
+ for (; (e = i.data.indexOf(Hi, e + 1)) !== -1;) c.push({
2701
2701
  type: 7,
2702
2702
  index: a
2703
- }), e += Vi.length - 1;
2703
+ }), e += Hi.length - 1;
2704
2704
  }
2705
2705
  a++;
2706
2706
  }
2707
2707
  }
2708
2708
  static createElement(e, t) {
2709
- let n = Wi.createElement("template");
2709
+ let n = Gi.createElement("template");
2710
2710
  return n.innerHTML = e, n;
2711
2711
  }
2712
2712
  };
2713
- function ua(e, t, n = e, r) {
2714
- if (t === ia) return t;
2715
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ki(t) ? void 0 : t._$litDirective$;
2716
- 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 = ua(e, i._$AS(e, t.values), i, r)), t;
2713
+ function da(e, t, n = e, r) {
2714
+ if (t === aa) return t;
2715
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = qi(t) ? void 0 : t._$litDirective$;
2716
+ 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 = da(e, i._$AS(e, t.values), i, r)), t;
2717
2717
  }
2718
- var da = class {
2718
+ var fa = class {
2719
2719
  constructor(e, t) {
2720
2720
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
2721
2721
  }
@@ -2726,23 +2726,23 @@ var da = class {
2726
2726
  return this._$AM._$AU;
2727
2727
  }
2728
2728
  u(e) {
2729
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Wi).importNode(t, !0);
2730
- oa.currentNode = r;
2731
- let i = oa.nextNode(), a = 0, o = 0, s = n[0];
2729
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Gi).importNode(t, !0);
2730
+ sa.currentNode = r;
2731
+ let i = sa.nextNode(), a = 0, o = 0, s = n[0];
2732
2732
  for (; s !== void 0;) {
2733
2733
  if (a === s.index) {
2734
2734
  let t;
2735
- s.type === 2 ? t = new fa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new _a(i, this, e)), this._$AV.push(t), s = n[++o];
2735
+ s.type === 2 ? t = new pa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new va(i, this, e)), this._$AV.push(t), s = n[++o];
2736
2736
  }
2737
- a !== s?.index && (i = oa.nextNode(), a++);
2737
+ a !== s?.index && (i = sa.nextNode(), a++);
2738
2738
  }
2739
- return oa.currentNode = Wi, r;
2739
+ return sa.currentNode = Gi, r;
2740
2740
  }
2741
2741
  p(e) {
2742
2742
  let t = 0;
2743
2743
  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++;
2744
2744
  }
2745
- }, fa = class e {
2745
+ }, pa = class e {
2746
2746
  get _$AU() {
2747
2747
  return this._$AM?._$AU ?? this._$Cv;
2748
2748
  }
@@ -2760,7 +2760,7 @@ var da = class {
2760
2760
  return this._$AB;
2761
2761
  }
2762
2762
  _$AI(e, t = this) {
2763
- e = ua(this, e, t), Ki(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ia && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ji(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2763
+ e = da(this, e, t), qi(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== aa && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Yi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2764
2764
  }
2765
2765
  O(e) {
2766
2766
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2769,24 +2769,24 @@ var da = class {
2769
2769
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2770
2770
  }
2771
2771
  _(e) {
2772
- this._$AH !== $ && Ki(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Wi.createTextNode(e)), this._$AH = e;
2772
+ this._$AH !== $ && qi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Gi.createTextNode(e)), this._$AH = e;
2773
2773
  }
2774
2774
  $(e) {
2775
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = la.createElement(sa(n.h, n.h[0]), this.options)), n);
2775
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = ua.createElement(ca(n.h, n.h[0]), this.options)), n);
2776
2776
  if (this._$AH?._$AD === r) this._$AH.p(t);
2777
2777
  else {
2778
- let e = new da(r, this), n = e.u(this.options);
2778
+ let e = new fa(r, this), n = e.u(this.options);
2779
2779
  e.p(t), this.T(n), this._$AH = e;
2780
2780
  }
2781
2781
  }
2782
2782
  _$AC(e) {
2783
- let t = aa.get(e.strings);
2784
- return t === void 0 && aa.set(e.strings, t = new la(e)), t;
2783
+ let t = oa.get(e.strings);
2784
+ return t === void 0 && oa.set(e.strings, t = new ua(e)), t;
2785
2785
  }
2786
2786
  k(t) {
2787
- qi(this._$AH) || (this._$AH = [], this._$AR());
2787
+ Ji(this._$AH) || (this._$AH = [], this._$AR());
2788
2788
  let n = this._$AH, r, i = 0;
2789
- for (let a of t) i === n.length ? n.push(r = new e(this.O(Gi()), this.O(Gi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2789
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(Ki()), this.O(Ki()), this, this.options)) : r = n[i], r._$AI(a), i++;
2790
2790
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
2791
2791
  }
2792
2792
  _$AR(e = this._$AA.nextSibling, t) {
@@ -2798,7 +2798,7 @@ var da = class {
2798
2798
  setConnected(e) {
2799
2799
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
2800
2800
  }
2801
- }, pa = class {
2801
+ }, ma = class {
2802
2802
  get tagName() {
2803
2803
  return this.element.tagName;
2804
2804
  }
@@ -2810,43 +2810,43 @@ var da = class {
2810
2810
  }
2811
2811
  _$AI(e, t = this, n, r) {
2812
2812
  let i = this.strings, a = !1;
2813
- if (i === void 0) e = ua(this, e, t, 0), a = !Ki(e) || e !== this._$AH && e !== ia, a && (this._$AH = e);
2813
+ if (i === void 0) e = da(this, e, t, 0), a = !qi(e) || e !== this._$AH && e !== aa, a && (this._$AH = e);
2814
2814
  else {
2815
2815
  let r = e, o, s;
2816
- for (e = i[0], o = 0; o < i.length - 1; o++) s = ua(this, r[n + o], t, o), s === ia && (s = this._$AH[o]), a ||= !Ki(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2816
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = da(this, r[n + o], t, o), s === aa && (s = this._$AH[o]), a ||= !qi(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2817
2817
  }
2818
2818
  a && !r && this.j(e);
2819
2819
  }
2820
2820
  j(e) {
2821
2821
  e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2822
2822
  }
2823
- }, ma = class extends pa {
2823
+ }, ha = class extends ma {
2824
2824
  constructor() {
2825
2825
  super(...arguments), this.type = 3;
2826
2826
  }
2827
2827
  j(e) {
2828
2828
  this.element[this.name] = e === $ ? void 0 : e;
2829
2829
  }
2830
- }, ha = class extends pa {
2830
+ }, ga = class extends ma {
2831
2831
  constructor() {
2832
2832
  super(...arguments), this.type = 4;
2833
2833
  }
2834
2834
  j(e) {
2835
2835
  this.element.toggleAttribute(this.name, !!e && e !== $);
2836
2836
  }
2837
- }, ga = class extends pa {
2837
+ }, _a = class extends ma {
2838
2838
  constructor(e, t, n, r, i) {
2839
2839
  super(e, t, n, r, i), this.type = 5;
2840
2840
  }
2841
2841
  _$AI(e, t = this) {
2842
- if ((e = ua(this, e, t, 0) ?? $) === ia) return;
2842
+ if ((e = da(this, e, t, 0) ?? $) === aa) return;
2843
2843
  let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
2844
2844
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
2845
2845
  }
2846
2846
  handleEvent(e) {
2847
2847
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
2848
2848
  }
2849
- }, _a = class {
2849
+ }, va = class {
2850
2850
  constructor(e, t, n) {
2851
2851
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
2852
2852
  }
@@ -2854,18 +2854,18 @@ var da = class {
2854
2854
  return this._$AM._$AU;
2855
2855
  }
2856
2856
  _$AI(e) {
2857
- ua(this, e);
2857
+ da(this, e);
2858
2858
  }
2859
- }, va = Li.litHtmlPolyfillSupport;
2860
- va?.(la, fa), (Li.litHtmlVersions ??= []).push("3.3.1");
2861
- var ya = (e, t, n) => {
2859
+ }, ya = Ri.litHtmlPolyfillSupport;
2860
+ ya?.(ua, pa), (Ri.litHtmlVersions ??= []).push("3.3.1");
2861
+ var ba = (e, t, n) => {
2862
2862
  let r = n?.renderBefore ?? t, i = r._$litPart$;
2863
2863
  if (i === void 0) {
2864
2864
  let e = n?.renderBefore ?? null;
2865
- r._$litPart$ = i = new fa(t.insertBefore(Gi(), e), e, void 0, n ?? {});
2865
+ r._$litPart$ = i = new pa(t.insertBefore(Ki(), e), e, void 0, n ?? {});
2866
2866
  }
2867
2867
  return i._$AI(e), i;
2868
- }, ba = globalThis, xa = class extends Ii {
2868
+ }, xa = globalThis, Sa = class extends Li {
2869
2869
  constructor() {
2870
2870
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2871
2871
  }
@@ -2875,7 +2875,7 @@ var ya = (e, t, n) => {
2875
2875
  }
2876
2876
  update(e) {
2877
2877
  let t = this.render();
2878
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ya(t, this.renderRoot, this.renderOptions);
2878
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ba(t, this.renderRoot, this.renderOptions);
2879
2879
  }
2880
2880
  connectedCallback() {
2881
2881
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -2884,23 +2884,23 @@ var ya = (e, t, n) => {
2884
2884
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
2885
2885
  }
2886
2886
  render() {
2887
- return ia;
2887
+ return aa;
2888
2888
  }
2889
2889
  };
2890
- xa._$litElement$ = !0, xa.finalized = !0, ba.litElementHydrateSupport?.({ LitElement: xa });
2891
- var Sa = ba.litElementPolyfillSupport;
2892
- Sa?.({ LitElement: xa }), (ba.litElementVersions ??= []).push("4.2.1");
2893
- var Ca = (e) => (t, n) => {
2890
+ Sa._$litElement$ = !0, Sa.finalized = !0, xa.litElementHydrateSupport?.({ LitElement: Sa });
2891
+ var Ca = xa.litElementPolyfillSupport;
2892
+ Ca?.({ LitElement: Sa }), (xa.litElementVersions ??= []).push("4.2.1");
2893
+ var wa = (e) => (t, n) => {
2894
2894
  n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
2895
2895
  customElements.get(e) || customElements.define(e, t);
2896
2896
  }));
2897
- }, wa = {
2897
+ }, Ta = {
2898
2898
  attribute: !0,
2899
2899
  type: String,
2900
- converter: Ni,
2900
+ converter: Pi,
2901
2901
  reflect: !1,
2902
- hasChanged: Pi
2903
- }, Ta = (e = wa, t, n) => {
2902
+ hasChanged: Fi
2903
+ }, Ea = (e = Ta, t, n) => {
2904
2904
  let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
2905
2905
  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") {
2906
2906
  let { name: r } = n;
@@ -2923,16 +2923,16 @@ var Ca = (e) => (t, n) => {
2923
2923
  }
2924
2924
  throw Error("Unsupported decorator location: " + r);
2925
2925
  };
2926
- function Ea(e) {
2927
- return (t, n) => typeof n == "object" ? Ta(e, t, n) : ((e, t, n) => {
2926
+ function Da(e) {
2927
+ return (t, n) => typeof n == "object" ? Ea(e, t, n) : ((e, t, n) => {
2928
2928
  let r = t.hasOwnProperty(n);
2929
2929
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
2930
2930
  })(e, t, n);
2931
2931
  }
2932
- var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t, n, r) => {
2933
- for (var i = r > 1 ? void 0 : r ? Oa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2934
- return r && i && Da(t, n, i), i;
2935
- }, Aa = class extends xa {
2932
+ var Oa = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, Aa = (e, t, n, r) => {
2933
+ for (var i = r > 1 ? void 0 : r ? ka(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2934
+ return r && i && Oa(t, n, i), i;
2935
+ }, ja = class extends Sa {
2936
2936
  constructor() {
2937
2937
  super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
2938
2938
  }
@@ -2973,7 +2973,7 @@ var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t
2973
2973
  }));
2974
2974
  }
2975
2975
  render() {
2976
- return ra`
2976
+ return ia`
2977
2977
  <style>
2978
2978
  nds-icon-button {
2979
2979
  display: inline-block;
@@ -3167,80 +3167,80 @@ var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t
3167
3167
  `;
3168
3168
  }
3169
3169
  };
3170
- ka([Ea()], Aa.prototype, "variant", 2), ka([Ea()], Aa.prototype, "size", 2), ka([Ea()], Aa.prototype, "type", 2), ka([Ea()], Aa.prototype, "state", 2), ka([Ea({ attribute: "icon-name" })], Aa.prototype, "iconName", 2), ka([Ea({ type: Boolean })], Aa.prototype, "disabled", 2), ka([Ea({ attribute: "button-aria-label" })], Aa.prototype, "buttonAriaLabel", 2), ka([Ea()], Aa.prototype, "shape", 1), Aa = ka([Ca("nds-icon-button")], Aa);
3170
+ Aa([Da()], ja.prototype, "variant", 2), Aa([Da()], ja.prototype, "size", 2), Aa([Da()], ja.prototype, "type", 2), Aa([Da()], ja.prototype, "state", 2), Aa([Da({ attribute: "icon-name" })], ja.prototype, "iconName", 2), Aa([Da({ type: Boolean })], ja.prototype, "disabled", 2), Aa([Da({ attribute: "button-aria-label" })], ja.prototype, "buttonAriaLabel", 2), Aa([Da()], ja.prototype, "shape", 1), ja = Aa([wa("nds-icon-button")], ja);
3171
3171
  //#endregion
3172
3172
  //#region ../players-shared/src/ui/zoom-compensation.ts
3173
- var ja = {
3173
+ var Ma = {
3174
3174
  maxZoom: 2,
3175
3175
  minCompensation: .25
3176
3176
  };
3177
- function Ma(e, t) {
3177
+ function Na(e, t) {
3178
3178
  let n = e / t;
3179
3179
  return Number.isFinite(n) && n > 0 ? n : 1;
3180
3180
  }
3181
- function Na(e, t, n) {
3181
+ function Pa(e, t, n) {
3182
3182
  return Math.max(n, Math.min(1, t / e));
3183
3183
  }
3184
3184
  //#endregion
3185
3185
  //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3186
- function Pa(e) {
3187
- let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3186
+ function Fa(e) {
3187
+ let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ V(1), i = /* @__PURE__ */ V(1);
3188
3188
  function a() {
3189
- let e = Ma(window.outerWidth, window.innerWidth);
3190
- W(i, e, !0), W(r, Na(e, t, n), !0);
3189
+ let e = Na(window.outerWidth, window.innerWidth);
3190
+ H(i, e, !0), H(r, Pa(e, t, n), !0);
3191
3191
  }
3192
- return hn(() => {
3192
+ return vn(() => {
3193
3193
  if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3194
3194
  }), {
3195
3195
  get current() {
3196
- return Q(r);
3196
+ return Z(r);
3197
3197
  },
3198
3198
  get zoom() {
3199
- return Q(i);
3199
+ return Z(i);
3200
3200
  }
3201
3201
  };
3202
3202
  }
3203
3203
  //#endregion
3204
3204
  //#region tool-tts-inline.svelte
3205
- var Fa = /* @__PURE__ */ vr("<nds-icon-button></nds-icon-button>", 2), Ia = /* @__PURE__ */ vr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), La = /* @__PURE__ */ vr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Ra = /* @__PURE__ */ vr("<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__ */ vr("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Ba = /* @__PURE__ */ vr("<div role=\"toolbar\" aria-label=\"Reading controls\" 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\" aria-label=\"Rewind\"><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\" aria-label=\"Fast-forward\"><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\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Va = /* @__PURE__ */ vr("<!> <!>", 1), Ha = /* @__PURE__ */ vr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ua = {
3205
+ var Ia = /* @__PURE__ */ br("<nds-icon-button></nds-icon-button>", 2), La = /* @__PURE__ */ br("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Ra = /* @__PURE__ */ br("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), za = /* @__PURE__ */ br("<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>"), Ba = /* @__PURE__ */ br("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Va = /* @__PURE__ */ br("<div role=\"toolbar\" aria-label=\"Reading controls\" 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\" aria-label=\"Rewind\"><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\" aria-label=\"Fast-forward\"><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\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Ha = /* @__PURE__ */ br("<!> <!>", 1), Ua = /* @__PURE__ */ br("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Wa = {
3206
3206
  hash: "svelte-18mzc0g",
3207
- 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 a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}\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, #146eb3);}\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 colour never applies. Falling back to the accent here\n would therefore have turned the glyph blue on open -- a visible change\n for every host, which is exactly what these fallbacks exist to avoid.\n Measured in Chromium: the plain trigger's glyph is the dark\n --pie-button-color, not the #146eb3 accent. */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, #146eb3)\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 Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-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));background:var(--pie-tts-selected-bg, #fff);border:0;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-blue, 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, #146eb3);}.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, #146eb3) 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;color:var(--pie-tts-inline-muted-color, #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, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 white chip. Options size to their content and centre\n (no 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, #146eb3);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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 }"
3207
+ 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 }"
3208
3208
  };
3209
- function Wa(a, o) {
3210
- Be(o, !0), Vr(a, Ua);
3211
- let s = si(o, "catalogId", 7, ""), c = si(o, "language", 7, "en-US"), l = si(o, "size", 7, "md"), u = si(o, "speedOptions", 7, void 0), d = si(o, "showSingleSpeedOption", 7, !1), f = si(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], _ = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", v = /font.?awesome|fa-?pro/i, y = !1, ee = () => {
3212
- if (!(!p || y)) {
3213
- if (y = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3209
+ function Ga(o, s) {
3210
+ He(s, !0), Ur(o, Wa);
3211
+ let c = ci(s, "catalogId", 7, ""), l = ci(s, "language", 7, "en-US"), u = ci(s, "size", 7, "md"), d = ci(s, "speedOptions", 7, void 0), f = ci(s, "showSingleSpeedOption", 7, !1), p = ci(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, ee = !1, b = () => {
3212
+ if (!(!m || ee)) {
3213
+ if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3214
3214
  let e = document.createElement("link");
3215
3215
  e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
3216
3216
  }
3217
- if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => v.test(e.href))) {
3218
- if (!document.querySelector(`link[href="${_}"]`)) {
3217
+ if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => y.test(e.href))) {
3218
+ if (!document.querySelector(`link[href="${v}"]`)) {
3219
3219
  let e = document.createElement("link");
3220
- e.rel = "stylesheet", e.href = _, document.head.appendChild(e);
3220
+ e.rel = "stylesheet", e.href = v, document.head.appendChild(e);
3221
3221
  }
3222
- for (let e of g) {
3222
+ for (let e of _) {
3223
3223
  if (document.querySelector(`link[href="${e}"]`)) continue;
3224
3224
  let t = document.createElement("link");
3225
3225
  t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
3226
3226
  }
3227
3227
  }
3228
3228
  }
3229
- }, b = "__pieFaTtsShadowInstalled", x = (e) => {
3229
+ }, x = "__pieFaTtsShadowInstalled", te = (e) => {
3230
3230
  let t = e.getRootNode();
3231
3231
  if (!(t instanceof ShadowRoot)) return;
3232
3232
  let n = t;
3233
- if (n[b]) return;
3234
- n[b] = !0;
3233
+ if (n[x]) return;
3234
+ n[x] = !0;
3235
3235
  let r = /* @__PURE__ */ new Set(), i = (e) => {
3236
3236
  if (!e || r.has(e)) return;
3237
3237
  r.add(e);
3238
3238
  let n = document.createElement("link");
3239
3239
  n.rel = "stylesheet", n.href = e, t.appendChild(n);
3240
- }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => v.test(e.href));
3240
+ }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
3241
3241
  for (let e of a) i(e.href);
3242
3242
  }, S = (e) => {
3243
- ee(), x(e);
3243
+ b(), te(e);
3244
3244
  let t = () => {
3245
3245
  for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
3246
3246
  };
@@ -3272,325 +3272,339 @@ function Wa(a, o) {
3272
3272
  i.disconnect();
3273
3273
  }
3274
3274
  };
3275
- }, te = (e) => (ee(), x(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), E = /* @__PURE__ */ U(null), ne = /* @__PURE__ */ B(() => Q(E)?.ndsIcons === !0), D = /* @__PURE__ */ U(null), re = /* @__PURE__ */ U(null), O = /* @__PURE__ */ B(() => Q(E)?.ttsService), k = /* @__PURE__ */ B(() => Q(E)?.highlightCoordinator), ie = /* @__PURE__ */ B(() => Q(re)?.scopeElement || Q(D)?.scopeElement || null), A = /* @__PURE__ */ U(!1), ae = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(!1), N = /* @__PURE__ */ U(""), oe = /* @__PURE__ */ U(null), se = /* @__PURE__ */ U(null), ce = /* @__PURE__ */ U(!1), le = /* @__PURE__ */ U(!1), ue = null, de = /* @__PURE__ */ B(() => i(u())), fe = /* @__PURE__ */ B(() => we(Q(de))), pe = /* @__PURE__ */ B(() => Q(de).length > 1 || d() ? Q(de) : []), me = /* @__PURE__ */ B(() => Q(oe) !== null && Q(se) === Q(fe) && Q(de).some((e) => e.rate === Q(oe)) ? Q(oe) : Te(Q(de))), he = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, ge = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, _e = `${he}-controls`;
3276
- function ve() {
3277
- if (!p) return null;
3278
- let e = window[m];
3275
+ }, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ V(void 0), T = /* @__PURE__ */ V(void 0), re = /* @__PURE__ */ V(null), ie = /* @__PURE__ */ R(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ V(null), ae = /* @__PURE__ */ V(null), D = /* @__PURE__ */ R(() => Z(re)?.ttsService), oe = /* @__PURE__ */ R(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ R(() => Z(ae)?.scopeElement || Z(E)?.scopeElement || null), O = /* @__PURE__ */ V(!1), ce = /* @__PURE__ */ V(!1), k = /* @__PURE__ */ V(!1), A = /* @__PURE__ */ V(!1), j = /* @__PURE__ */ V(""), le = /* @__PURE__ */ V(null), ue = /* @__PURE__ */ V(null), de = /* @__PURE__ */ V(!1), fe = /* @__PURE__ */ V(!1), pe = /* @__PURE__ */ V(!1), me = null, he = /* @__PURE__ */ R(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ R(() => a(d())), ve = /* @__PURE__ */ R(() => Ae(Z(_e))), ye = /* @__PURE__ */ R(() => Z(_e).length > 1 || f() ? Z(_e) : []), be = /* @__PURE__ */ R(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : M(Z(_e))), xe = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, Se = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Ce = `${xe}-controls`;
3276
+ function we() {
3277
+ if (!m) return null;
3278
+ let e = window[h];
3279
3279
  return typeof e == "string" ? e : null;
3280
3280
  }
3281
- function ye() {
3282
- return ve() === he;
3281
+ function Te() {
3282
+ return we() === xe;
3283
3283
  }
3284
- function be(e, t) {
3285
- p && window.dispatchEvent(new CustomEvent(h, { detail: {
3284
+ function Ee(e, t) {
3285
+ m && window.dispatchEvent(new CustomEvent(g, { detail: {
3286
3286
  ownerId: e,
3287
3287
  previousOwnerId: t
3288
3288
  } }));
3289
3289
  }
3290
- function xe() {
3291
- if (!p) return;
3292
- let e = ve();
3293
- e !== he && (window[m] = he, be(he, e));
3290
+ function De() {
3291
+ if (!m) return;
3292
+ let e = we();
3293
+ e !== xe && (window[h] = xe, Ee(xe, e));
3294
3294
  }
3295
- function Se() {
3296
- p && ve() === he && (delete window[m], be(null, he));
3295
+ function Oe() {
3296
+ m && we() === xe && (delete window[h], Ee(null, xe));
3297
3297
  }
3298
- function Ce(e = "", t = !1) {
3299
- W(j, !1), W(M, !1), W(A, t, !0), W(N, e, !0);
3298
+ function ke(e = "", t = !1) {
3299
+ H(fe, !1), H(k, !1), H(A, !1), H(O, t, !0), H(j, e, !0);
3300
3300
  }
3301
- function we(e) {
3301
+ function Ae(e) {
3302
3302
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
3303
3303
  }
3304
- function Te(e) {
3304
+ function M(e) {
3305
3305
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
3306
3306
  }
3307
- async function Ee(e, t) {
3307
+ async function N(e, t) {
3308
3308
  if (typeof e.setPlaybackRate == "function") {
3309
3309
  await e.setPlaybackRate(t);
3310
3310
  return;
3311
3311
  }
3312
3312
  await e.updateSettings({ rate: t });
3313
3313
  }
3314
- function De() {
3315
- if (!Q(w) || !Q(T)) return !1;
3316
- let e = Q(w).getRootNode();
3314
+ function P() {
3315
+ if (!Z(w) || !Z(T)) return !1;
3316
+ let e = Z(w).getRootNode();
3317
3317
  if (!(e instanceof ShadowRoot)) return !1;
3318
3318
  let t = e.activeElement;
3319
- return !!(t && Q(T).contains(t));
3319
+ return !!(t && Z(T).contains(t));
3320
3320
  }
3321
- function P() {
3322
- if (!Q(T)) return !1;
3323
- let e = Q(T).getRootNode();
3321
+ function F() {
3322
+ if (!Z(T)) return !1;
3323
+ let e = Z(T).getRootNode();
3324
3324
  if (!(e instanceof ShadowRoot)) return !1;
3325
3325
  let t = e.activeElement;
3326
- return !t || !Q(T).contains(t) ? !1 : t.matches(Ne);
3326
+ return !t || !Z(T).contains(t) ? !1 : t.matches(Re);
3327
3327
  }
3328
- function Oe() {
3329
- let e = Q(T)?.querySelector(Pe);
3328
+ function je() {
3329
+ let e = Z(T)?.querySelector(ze);
3330
3330
  if (e && !e.disabled) {
3331
3331
  e.focus();
3332
3332
  return;
3333
3333
  }
3334
- F(!0);
3334
+ Ne(!0);
3335
3335
  }
3336
- function F(e) {
3337
- if (!Q(w) || !e) return;
3338
- let t = Q(w).getRootNode();
3336
+ function Ne(e) {
3337
+ if (!Z(w) || !e) return;
3338
+ let t = Z(w).getRootNode();
3339
3339
  if (!(t instanceof ShadowRoot)) return;
3340
3340
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
3341
3341
  (n?.querySelector("button") ?? n)?.focus();
3342
3342
  }
3343
- function I(e = "Reading switched to another section", t = !1) {
3344
- if (!Q(le) && !(!Q(A) && !ye())) {
3345
- W(le, !0);
3343
+ function Pe(e = "Reading switched to another section", t = !1) {
3344
+ if (!Z(pe) && !(!Z(O) && !Te())) {
3345
+ H(pe, !0);
3346
3346
  try {
3347
- let n = De();
3348
- ye() && Se(), Ce(e), R(), t && queueMicrotask(() => {
3349
- F(n);
3347
+ let n = P();
3348
+ Te() && Oe(), ke(e), Je(), t && queueMicrotask(() => {
3349
+ Ne(n);
3350
3350
  });
3351
3351
  } finally {
3352
- W(le, !1);
3352
+ H(pe, !1);
3353
3353
  }
3354
3354
  }
3355
3355
  }
3356
- hn(() => {
3357
- if (Q(w)) return n(Q(w), (e) => {
3358
- W(E, e, !0);
3356
+ vn(() => {
3357
+ if (Z(w)) return r(Z(w), (e) => {
3358
+ H(re, e, !0);
3359
3359
  });
3360
- }), hn(() => {
3361
- if (!Q(w)) return;
3362
- let e = r(Q(w), (e) => {
3363
- W(D, e, !0);
3364
- }), n = t(Q(w), (e) => {
3365
- W(re, e, !0);
3360
+ }), vn(() => {
3361
+ if (!Z(w)) return;
3362
+ let e = i(Z(w), (e) => {
3363
+ H(E, e, !0);
3364
+ }), t = n(Z(w), (e) => {
3365
+ H(ae, e, !0);
3366
3366
  });
3367
3367
  return () => {
3368
- n(), e();
3368
+ t(), e();
3369
3369
  };
3370
- }), hn(() => {
3371
- if (!Q(O)) return;
3370
+ }), vn(() => {
3371
+ if (!Z(D)) return;
3372
3372
  let e = (e) => {
3373
- if (!Q(A) || !ye()) {
3374
- W(j, !1), W(M, !1);
3373
+ if (!Z(O) || !Te()) {
3374
+ H(k, !1), H(A, !1);
3375
3375
  return;
3376
3376
  }
3377
- W(j, e === "playing" || e === "paused", !0), W(M, e === "paused");
3377
+ H(k, e === "playing" || e === "paused", !0), H(A, e === "paused");
3378
3378
  }, t = (t) => {
3379
- let n = P();
3380
- e(t), n && !Q(j) && queueMicrotask(Oe);
3379
+ let n = String(t), r = F();
3380
+ e(n), n === "playing" && H(fe, !1), n === "playing" && Z(j) === "Starting reading" && H(j, "Reading started"), (n === "error" || n === "idle") && H(fe, !1), r && !Z(k) && queueMicrotask(je);
3381
3381
  };
3382
- return Q(O).onStateChange(ge, t), e(Q(O).getState()), () => {
3383
- Q(O).offStateChange(ge, t);
3382
+ return Z(D).onStateChange(Se, t), e(Z(D).getState()), () => {
3383
+ Z(D).offStateChange(Se, t);
3384
3384
  };
3385
- }), hn(() => {
3386
- if (!p) return;
3385
+ }), vn(() => {
3386
+ if (!m) return;
3387
3387
  let e = (e) => {
3388
3388
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
3389
- n === he && t !== he && I("Reading switched to another section");
3389
+ n === xe && t !== xe && Pe("Reading switched to another section");
3390
3390
  };
3391
- return window.addEventListener(h, e), () => {
3392
- window.removeEventListener(h, e);
3391
+ return window.addEventListener(g, e), () => {
3392
+ window.removeEventListener(g, e);
3393
3393
  };
3394
- }), hn(() => {
3395
- if (!p) return;
3394
+ }), vn(() => {
3395
+ if (!m) return;
3396
3396
  let t = () => {
3397
- I("Reading switched to another section", !0);
3397
+ Pe("Reading switched to another section", !0);
3398
3398
  };
3399
3399
  return window.addEventListener(e, t), () => {
3400
3400
  window.removeEventListener(e, t);
3401
3401
  };
3402
- }), hn(() => () => {
3403
- Se(), R();
3402
+ }), vn(() => () => {
3403
+ Oe(), Je();
3404
3404
  });
3405
- async function ke() {
3406
- if (!Q(O)) return !1;
3405
+ async function Fe() {
3406
+ if (!Z(D)) return !1;
3407
3407
  try {
3408
- return await Q(E)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
3408
+ return await Z(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
3409
3409
  } catch (e) {
3410
3410
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
3411
3411
  }
3412
3412
  }
3413
- let je = "[data-pie-tts-speed-rate]", Me = "[data-pie-tts-media]", Ne = "[data-pie-tts-seek]", Pe = "[data-pie-tts-stop]";
3414
- function Fe(e) {
3415
- return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
3413
+ let Ie = "[data-pie-tts-speed-rate]", Le = "[data-pie-tts-media]", Re = "[data-pie-tts-seek]", ze = "[data-pie-tts-stop]";
3414
+ function Be(e) {
3415
+ return Z(T) ? Array.from(Z(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
3416
3416
  }
3417
- function Ie(e, t) {
3418
- let n = Fe(e);
3417
+ function I(e, t) {
3418
+ let n = Be(e);
3419
3419
  if (!n.length) return;
3420
3420
  let r = n[(t + n.length) % n.length];
3421
- if (r.focus(), e !== je) return;
3422
- let i = Number(r.dataset.pieTtsSpeedRate), a = Q(pe).find((e) => e.rate === i);
3423
- a && z(a);
3421
+ if (r.focus(), e !== Ie) return;
3422
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Z(ye).find((e) => e.rate === i);
3423
+ a && tt(a);
3424
3424
  }
3425
- function Le(e, t) {
3426
- let n = Fe(e);
3425
+ function Ve(e, t) {
3426
+ let n = Be(e);
3427
3427
  if (!n.length) return;
3428
- let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
3429
- Ie(e, a === -1 ? 0 : a + t);
3428
+ let r = Z(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
3429
+ I(e, a === -1 ? 0 : a + t);
3430
3430
  }
3431
- function Re(e, t) {
3431
+ function We(e, t) {
3432
3432
  switch (t.key) {
3433
3433
  case "ArrowDown":
3434
3434
  case "ArrowRight":
3435
- t.preventDefault(), Le(e, 1);
3435
+ t.preventDefault(), Ve(e, 1);
3436
3436
  break;
3437
3437
  case "ArrowUp":
3438
3438
  case "ArrowLeft":
3439
- t.preventDefault(), Le(e, -1);
3439
+ t.preventDefault(), Ve(e, -1);
3440
3440
  break;
3441
3441
  case "Home":
3442
- t.preventDefault(), Ie(e, 0);
3442
+ t.preventDefault(), I(e, 0);
3443
3443
  break;
3444
3444
  case "End":
3445
- t.preventDefault(), Ie(e, -1);
3445
+ t.preventDefault(), I(e, -1);
3446
3446
  break;
3447
3447
  }
3448
3448
  }
3449
- function L() {
3450
- if (!Q(ie)) return null;
3451
- let e = Q(ie);
3449
+ function Ge() {
3450
+ if (!Z(se)) return null;
3451
+ let e = Z(se);
3452
3452
  if (e.getAttribute?.("data-region") === "content") return e;
3453
3453
  let t = e.querySelector?.("[data-region='content']");
3454
3454
  return t instanceof Element ? t : e;
3455
3455
  }
3456
- function ze() {
3457
- if (Q(D)) return Q(D).kind === "passage" ? {
3458
- ownerKind: "passage",
3459
- assessmentId: Q(E)?.assessmentId || "",
3460
- sectionId: Q(E)?.sectionId || "",
3461
- passageId: Q(D).canonicalItemId || Q(D).itemId
3462
- } : {
3463
- ownerKind: "itemModel",
3464
- assessmentId: Q(E)?.assessmentId || "",
3465
- sectionId: Q(E)?.sectionId || "",
3466
- itemId: Q(D).itemId,
3467
- canonicalItemId: Q(D).canonicalItemId || Q(D).itemId
3468
- };
3456
+ function Ke() {
3457
+ if (Z(E)) return t({
3458
+ kind: Z(E).kind,
3459
+ assessmentId: Z(re)?.assessmentId,
3460
+ sectionId: Z(re)?.sectionId,
3461
+ itemId: Z(E).itemId,
3462
+ canonicalItemId: Z(E).canonicalItemId || Z(E).itemId
3463
+ });
3469
3464
  }
3470
- function He(e) {
3471
- return R(), ue = Q(O)?.setHighlightTargetResolverProvider?.(() => ({
3465
+ function qe(e) {
3466
+ return Je(), me = Z(D)?.setHighlightTargetResolverProvider?.(() => ({
3472
3467
  context: {
3473
- scopeElement: Q(re)?.scopeElement || e || null,
3474
- kind: Q(D)?.kind,
3475
- itemId: Q(D)?.itemId,
3476
- canonicalItemId: Q(D)?.canonicalItemId,
3477
- contentKind: Q(D)?.contentKind,
3478
- regionPolicy: Q(D)?.regionPolicy
3468
+ scopeElement: Z(ae)?.scopeElement || e || null,
3469
+ kind: Z(E)?.kind,
3470
+ itemId: Z(E)?.itemId,
3471
+ canonicalItemId: Z(E)?.canonicalItemId,
3472
+ contentKind: Z(E)?.contentKind,
3473
+ regionPolicy: Z(E)?.regionPolicy
3479
3474
  },
3480
- resolver: Q(re)?.ttsHighlightTargetResolver || null
3481
- })) || null, ue;
3475
+ resolver: Z(ae)?.ttsHighlightTargetResolver || null
3476
+ })) || null, me;
3482
3477
  }
3483
- function R(e = ue) {
3484
- e?.(), e === ue && (ue = null);
3478
+ function Je(e = me) {
3479
+ e?.(), e === me && (me = null);
3485
3480
  }
3486
- function Ue() {
3487
- if (!ye()) return !1;
3488
- let e = String(Q(O)?.getState?.() || "");
3481
+ function Ye() {
3482
+ if (!Te()) return !1;
3483
+ let e = String(Z(D)?.getState?.() || "");
3489
3484
  return e === "playing" || e === "paused" || e === "loading";
3490
3485
  }
3491
- async function We() {
3492
- if (!Q(O)) return;
3493
- let e = L();
3494
- if (!e) {
3486
+ function Xe(e) {
3487
+ let t = P();
3488
+ ke("Unable to start reading"), Te() && Oe(), Z(oe) && Z(oe).clearTTS(), Je(e), t && queueMicrotask(() => {
3489
+ Ne(!0);
3490
+ });
3491
+ }
3492
+ async function Ze() {
3493
+ if (!Z(D)) return;
3494
+ let e = null, t = Ge();
3495
+ if (!t) {
3495
3496
  console.warn("[TTS Inline] No target container found from shell scope context");
3496
3497
  return;
3497
3498
  }
3498
3499
  try {
3499
- W(A, !0);
3500
- let t = e.textContent || "";
3501
- if (!t) {
3500
+ H(O, !0);
3501
+ let n = t.textContent || "";
3502
+ if (!n) {
3502
3503
  console.warn("[TTS Inline] No text content found");
3503
3504
  return;
3504
3505
  }
3505
- Q(k) && Q(O).setHighlightCoordinator && Q(O).setHighlightCoordinator(Q(k)), await Ee(Q(O), Q(me));
3506
- let n = He(e);
3507
- Q(O).setRootElement?.(e), W(N, "Reading started"), Q(O).speak(t, {
3508
- catalogId: s() || void 0,
3509
- catalogContext: ze(),
3510
- language: c(),
3511
- contentElement: e
3512
- }).catch((e) => {
3513
- console.error("[TTS Inline] Error:", e), W(N, "Unable to start reading"), Q(k) && Q(k).clearTTS(), R(n);
3506
+ Z(oe) && Z(D).setHighlightCoordinator && Z(D).setHighlightCoordinator(Z(oe)), await N(Z(D), Z(be)), ge = {
3507
+ service: Z(D),
3508
+ choicesKey: Z(ve)
3509
+ }, e = qe(t), Z(D).setRootElement?.(t), H(fe, !0), H(j, "Starting reading"), Z(D).speak(n, {
3510
+ catalogId: c() || void 0,
3511
+ catalogContext: Ke(),
3512
+ language: l(),
3513
+ contentElement: t
3514
+ }).catch((t) => {
3515
+ console.error("[TTS Inline] Error:", t), Xe(e);
3514
3516
  }).finally(() => {
3515
- Ue() || R(n);
3517
+ Ye() || Je(e);
3516
3518
  });
3517
- } catch (e) {
3518
- console.error("[TTS Inline] Error:", e), W(N, "Unable to start reading"), Q(k) && Q(k).clearTTS(), R();
3519
+ } catch (t) {
3520
+ console.error("[TTS Inline] Error:", t), Xe(e);
3519
3521
  }
3520
3522
  }
3521
- async function Ge() {
3522
- if (Q(O)) {
3523
- if (ye() && Q(M)) {
3524
- Q(O).resume(), W(N, "Reading resumed");
3523
+ async function L() {
3524
+ if (Z(D) && !(Z(he) || Te() && String(Z(D).getState?.() || "") === "loading")) {
3525
+ if (Te() && Z(A)) {
3526
+ Z(D).resume(), H(j, "Reading resumed");
3525
3527
  return;
3526
3528
  }
3527
- if (ye() && Q(j) && !Q(M)) {
3528
- Q(O).pause(), W(N, "Reading paused");
3529
+ if (Te() && Z(k) && !Z(A)) {
3530
+ Z(D).pause(), H(j, "Reading paused");
3529
3531
  return;
3530
3532
  }
3531
- if (!Q(ce)) {
3532
- W(ce, !0);
3533
+ if (!Z(de)) {
3534
+ H(de, !0);
3533
3535
  try {
3534
- if (W(N, "Initializing text-to-speech"), !await ke()) {
3535
- W(N, "Unable to initialize text-to-speech. Try again.");
3536
+ if (H(j, "Initializing text-to-speech"), !await Fe()) {
3537
+ H(j, "Unable to initialize text-to-speech. Try again.");
3536
3538
  return;
3537
3539
  }
3538
- let e = String(Q(O).getState?.() || "");
3539
- (e === "playing" || e === "paused" || e === "loading") && !ye() && Q(O).stop(), xe(), await We();
3540
+ let e = String(Z(D).getState?.() || "");
3541
+ (e === "playing" || e === "paused" || e === "loading") && !Te() && Z(D).stop(), De(), await Ze();
3540
3542
  } finally {
3541
- W(ce, !1);
3543
+ H(de, !1);
3542
3544
  }
3543
3545
  }
3544
3546
  }
3545
3547
  }
3546
- function Ke() {
3547
- if (!Q(O)) return;
3548
- let e = De();
3549
- Q(O).stop(), Se(), Ce("Reading stopped"), Q(k) && Q(k).clearTTS(), R(), e && queueMicrotask(() => {
3550
- F(!0);
3548
+ function Qe() {
3549
+ if (!Z(D)) return;
3550
+ let e = P();
3551
+ Z(D).stop(), Oe(), ke("Reading stopped"), Z(oe) && Z(oe).clearTTS(), Je(), e && queueMicrotask(() => {
3552
+ Ne(!0);
3551
3553
  });
3552
3554
  }
3553
- async function qe() {
3554
- if (!(!Q(O) || !Q(j))) try {
3555
- await Q(O).seekForward?.(1), W(N, "Skipped forward");
3555
+ async function $e() {
3556
+ if (!(!Z(D) || !Z(k))) try {
3557
+ await Z(D).seekForward?.(1), H(j, "Skipped forward");
3556
3558
  } catch (e) {
3557
- console.error("[TTS Inline] Seek forward failed:", e), W(N, "Unable to skip forward");
3559
+ console.error("[TTS Inline] Seek forward failed:", e), H(j, "Unable to skip forward");
3558
3560
  }
3559
3561
  }
3560
- async function Je() {
3561
- if (!(!Q(O) || !Q(j))) try {
3562
- await Q(O).seekBackward?.(1), W(N, "Skipped backward");
3562
+ async function et() {
3563
+ if (!(!Z(D) || !Z(k))) try {
3564
+ await Z(D).seekBackward?.(1), H(j, "Skipped backward");
3563
3565
  } catch (e) {
3564
- console.error("[TTS Inline] Seek backward failed:", e), W(N, "Unable to skip backward");
3566
+ console.error("[TTS Inline] Seek backward failed:", e), H(j, "Unable to skip backward");
3565
3567
  }
3566
3568
  }
3567
- async function z(e) {
3568
- let t = Q(O);
3569
+ async function tt(e) {
3570
+ let t = Z(D);
3569
3571
  if (!t) return;
3570
- if (Q(me) === e.rate) {
3571
- W(N, `Playback speed ${e.label}`);
3572
+ if (Z(be) === e.rate) {
3573
+ H(j, `Playback speed ${e.label}`);
3572
3574
  return;
3573
3575
  }
3574
- let n = Q(oe), r = Q(se);
3575
- W(oe, e.rate, !0), W(se, Q(fe), !0), W(N, `Playback speed ${e.label}`);
3576
+ let n = Z(le), r = Z(ue);
3577
+ H(le, e.rate, !0), H(ue, Z(ve), !0), H(j, `Playback speed ${e.label}`);
3578
+ let i = {
3579
+ service: t,
3580
+ choicesKey: Z(ve)
3581
+ };
3582
+ ge = i;
3576
3583
  try {
3577
- await Ee(t, e.rate);
3584
+ await N(t, e.rate);
3578
3585
  } catch (e) {
3579
- console.error("[TTS Inline] Playback speed change failed:", e), W(oe, n, !0), W(se, r, !0), W(N, "Unable to change playback speed");
3586
+ ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), H(le, n, !0), H(ue, r, !0), H(j, "Unable to change playback speed");
3580
3587
  }
3581
3588
  }
3582
- let Ye = /* @__PURE__ */ B(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Xe = /* @__PURE__ */ B(() => f() === "reserved-row" || f() === "expanding-row"), Ze = /* @__PURE__ */ B(() => f() === "floating-overlay"), Qe = /* @__PURE__ */ B(() => f() === "left-aligned"), $e = /* @__PURE__ */ B(() => Q(Ze) || Q(Qe)), et = Pa(ja), tt = "[data-pie-tool-overlay-boundary]", nt = /* @__PURE__ */ U(""), rt = /* @__PURE__ */ U(0);
3583
- hn(() => {
3584
- let e = Q(O), t = Q(me), n = Q(j) || Q(M);
3585
- if (!e || !n || !ye()) return;
3586
- let r = !1;
3589
+ let nt = /* @__PURE__ */ R(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), rt = /* @__PURE__ */ R(() => p() === "reserved-row" || p() === "expanding-row"), it = /* @__PURE__ */ R(() => p() === "floating-overlay"), at = /* @__PURE__ */ R(() => p() === "left-aligned"), ot = /* @__PURE__ */ R(() => Z(it) || Z(at)), st = Fa(Ma), ct = "[data-pie-tool-overlay-boundary]", lt = /* @__PURE__ */ V(""), ut = /* @__PURE__ */ V(0);
3590
+ vn(() => {
3591
+ let e = Z(D), t = Z(ve), n = Z(k) || Z(A);
3592
+ if (!e || !n || !Te() || ge?.service === e && ge.choicesKey === t) return;
3593
+ let r = {
3594
+ service: e,
3595
+ choicesKey: t
3596
+ };
3597
+ ge = r;
3598
+ let i = !1;
3587
3599
  return queueMicrotask(() => {
3588
- r || Ee(e, t);
3600
+ i || ge !== r || N(e, Z(be)).catch((e) => {
3601
+ ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
3602
+ });
3589
3603
  }), () => {
3590
- r = !0;
3604
+ i = !0;
3591
3605
  };
3592
3606
  });
3593
- function it(e, t) {
3607
+ function dt(e, t) {
3594
3608
  let n = e;
3595
3609
  for (; n;) {
3596
3610
  if (n.matches?.(t)) return n;
@@ -3598,56 +3612,56 @@ function Wa(a, o) {
3598
3612
  }
3599
3613
  return null;
3600
3614
  }
3601
- function at() {
3602
- let e = Q(w)?.getRootNode();
3615
+ function ft() {
3616
+ let e = Z(w)?.getRootNode();
3603
3617
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
3604
3618
  }
3605
- function ot(e) {
3619
+ function pt(e) {
3606
3620
  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");
3607
3621
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
3608
3622
  }
3609
- function st() {
3610
- let e = at();
3611
- if (!e || !Q(T)) return;
3612
- let t = e.getBoundingClientRect(), n = it(e, tt)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
3613
- if (!Q(ae)) {
3614
- let e = ot(Q(T));
3615
- e > 0 && W(rt, e, !0);
3616
- }
3617
- W(ae, Q(rt) > 0 && r < Q(rt), !0);
3618
- let i = Q(T).offsetHeight || t.height;
3619
- W(nt, `top: ${Q(ae) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
3620
- }
3621
- hn(() => {
3622
- if (!Q(Qe) || !Q(A)) {
3623
- W(nt, ""), W(ae, !1), W(rt, 0);
3623
+ function mt() {
3624
+ let e = ft();
3625
+ if (!e || !Z(T)) return;
3626
+ let t = e.getBoundingClientRect(), n = dt(e, ct)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
3627
+ if (!Z(ce)) {
3628
+ let e = pt(Z(T));
3629
+ e > 0 && H(ut, e, !0);
3630
+ }
3631
+ H(ce, Z(ut) > 0 && r < Z(ut), !0);
3632
+ let i = Z(T).offsetHeight || t.height;
3633
+ H(lt, `top: ${Z(ce) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
3634
+ }
3635
+ vn(() => {
3636
+ if (!Z(at) || !Z(O)) {
3637
+ H(lt, ""), H(ce, !1), H(ut, 0);
3624
3638
  return;
3625
3639
  }
3626
3640
  if (typeof window > "u") return;
3627
3641
  let e = 0, t = () => {
3628
3642
  e ||= window.requestAnimationFrame(() => {
3629
- e = 0, st();
3643
+ e = 0, mt();
3630
3644
  });
3631
3645
  };
3632
- st(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
3633
- let n = at(), r = new ResizeObserver(t);
3634
- n && r.observe(n), Q(T) && r.observe(Q(T));
3635
- let i = n ? it(n, tt) : null;
3646
+ mt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
3647
+ let n = ft(), r = new ResizeObserver(t);
3648
+ n && r.observe(n), Z(T) && r.observe(Z(T));
3649
+ let i = n ? dt(n, ct) : null;
3636
3650
  i && r.observe(i);
3637
3651
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
3638
3652
  return a && r.observe(a), () => {
3639
3653
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
3640
3654
  };
3641
3655
  });
3642
- function ct() {
3643
- if (!Q(w)) return null;
3644
- let e = Q(w).getRootNode();
3656
+ function ht() {
3657
+ if (!Z(w)) return null;
3658
+ let e = Z(w).getRootNode();
3645
3659
  return e instanceof ShadowRoot ? e.host : null;
3646
3660
  }
3647
- hn(() => {
3648
- let e = ct();
3661
+ vn(() => {
3662
+ let e = ht();
3649
3663
  if (!e) return;
3650
- let t = Q(A) === !0;
3664
+ let t = Z(O) === !0;
3651
3665
  e.setAttribute("data-active", t ? "true" : "false");
3652
3666
  let n = !1;
3653
3667
  return queueMicrotask(() => {
@@ -3660,122 +3674,122 @@ function Wa(a, o) {
3660
3674
  n = !0;
3661
3675
  };
3662
3676
  });
3663
- var lt = {
3677
+ var gt = {
3664
3678
  get catalogId() {
3665
- return s();
3679
+ return c();
3666
3680
  },
3667
3681
  set catalogId(e = "") {
3668
- s(e), At();
3682
+ c(e), Nt();
3669
3683
  },
3670
3684
  get language() {
3671
- return c();
3685
+ return l();
3672
3686
  },
3673
3687
  set language(e = "en-US") {
3674
- c(e), At();
3688
+ l(e), Nt();
3675
3689
  },
3676
3690
  get size() {
3677
- return l();
3691
+ return u();
3678
3692
  },
3679
3693
  set size(e = "md") {
3680
- l(e), At();
3694
+ u(e), Nt();
3681
3695
  },
3682
3696
  get speedOptions() {
3683
- return u();
3697
+ return d();
3684
3698
  },
3685
3699
  set speedOptions(e = void 0) {
3686
- u(e), At();
3700
+ d(e), Nt();
3687
3701
  },
3688
3702
  get showSingleSpeedOption() {
3689
- return d();
3703
+ return f();
3690
3704
  },
3691
3705
  set showSingleSpeedOption(e = !1) {
3692
- d(e), At();
3706
+ f(e), Nt();
3693
3707
  },
3694
3708
  get layoutMode() {
3695
- return f();
3709
+ return p();
3696
3710
  },
3697
3711
  set layoutMode(e = "expanding-row") {
3698
- f(e), At();
3712
+ p(e), Nt();
3699
3713
  }
3700
- }, ut = yr(), dt = rn(ut), ft = (e) => {
3701
- var t = Ha();
3714
+ }, _t = xr(), vt = sn(_t), yt = (e) => {
3715
+ var t = Ua();
3702
3716
  let n;
3703
3717
  {
3704
3718
  let e = (e) => {
3705
- var t = La(), n = nn(t), r = (e) => {
3706
- var t = Fa();
3707
- ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), Sn(() => ti(t, "icon-name", Q(j) && !Q(M) ? "pause" : "play")), Sn(() => ti(t, "button-aria-label", Q(j) && !Q(M) ? "Pause reading" : Q(M) ? "Resume reading" : "Play reading")), Sn(() => ti(t, "disabled", !Q(O))), Hr(t, (e) => S?.(e)), Hr(t, (e, t) => C?.(e, t), () => ({
3708
- "aria-expanded": Q(A) ? "true" : "false",
3709
- "aria-controls": Q(A) ? _e : null,
3710
- "aria-pressed": Q(A) ? "true" : "false",
3711
- "aria-busy": Q(ce) ? "true" : null
3712
- })), Sn(() => Jr(t, 1, `pie-tool-tts-inline__trigger ${Q(Ye) ?? ""}`, "svelte-18mzc0g")), ur("click", t, Ge), br(e, t);
3719
+ var t = Ra(), n = on(t), r = (e) => {
3720
+ var t = Ia();
3721
+ ni(t, "type", "circle"), ni(t, "size", "small"), ni(t, "variant", "tertiary"), Tn(() => ni(t, "icon-name", Z(k) && !Z(A) ? "pause" : "play")), Tn(() => ni(t, "button-aria-label", Z(k) && !Z(A) ? "Pause reading" : Z(A) ? "Resume reading" : "Play reading")), Tn(() => ni(t, "disabled", !Z(D))), Wr(t, (e) => S?.(e)), Wr(t, (e, t) => C?.(e, t), () => ({
3722
+ "aria-expanded": Z(O) ? "true" : "false",
3723
+ "aria-controls": Z(O) ? Ce : null,
3724
+ "aria-pressed": Z(O) ? "true" : "false",
3725
+ "aria-busy": Z(he) ? "true" : null
3726
+ })), Tn(() => Xr(t, 1, `pie-tool-tts-inline__trigger ${Z(nt) ?? ""}`, "svelte-18mzc0g")), fr("click", t, L), Sr(e, t);
3713
3727
  }, i = (e) => {
3714
- var t = Ia(), n = nn(t);
3715
- Ae(t), Hr(t, (e) => te?.(e)), Sn(() => {
3716
- Jr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(Ye) ?? ""}`, "svelte-18mzc0g"), ei(t, "aria-expanded", Q(A) ? "true" : "false"), ei(t, "aria-controls", Q(A) ? _e : void 0), ei(t, "aria-pressed", Q(A) ? "true" : "false"), ei(t, "aria-label", Q(j) && !Q(M) ? "Pause reading" : Q(M) ? "Resume reading" : "Play reading"), ei(t, "aria-busy", Q(ce) ? "true" : void 0), t.disabled = !Q(O), Jr(n, 1, `fa-solid ${Q(j) && !Q(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
3717
- }), ur("click", t, Ge), br(e, t);
3728
+ var t = La(), n = on(t);
3729
+ Me(t), Wr(t, (e) => ne?.(e)), Tn(() => {
3730
+ Xr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(nt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(O) ? "true" : "false"), Q(t, "aria-controls", Z(O) ? Ce : void 0), Q(t, "aria-pressed", Z(O) ? "true" : "false"), Q(t, "aria-label", Z(k) && !Z(A) ? "Pause reading" : Z(A) ? "Resume reading" : "Play reading"), Q(t, "aria-busy", Z(he) ? "true" : void 0), t.disabled = !Z(D), Xr(n, 1, `fa-solid ${Z(k) && !Z(A) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
3731
+ }), fr("click", t, L), Sr(e, t);
3718
3732
  };
3719
- jr(n, (e) => {
3720
- Q(ne) ? e(r) : e(i, -1);
3721
- }), Ae(t), br(e, t);
3733
+ Nr(n, (e) => {
3734
+ Z(ie) ? e(r) : e(i, -1);
3735
+ }), Me(t), Sr(e, t);
3722
3736
  }, n = (e) => {
3723
- var t = yr(), n = rn(t), r = (e) => {
3724
- var t = Ba();
3737
+ var t = xr(), n = sn(t), r = (e) => {
3738
+ var t = Va();
3725
3739
  let n;
3726
- var r = nn(t), i = (e) => {
3727
- var t = za();
3740
+ var r = on(t), i = (e) => {
3741
+ var t = Ba();
3728
3742
  let n;
3729
- Fr(t, 21, () => Q(pe), (e) => e.rate, (e, t) => {
3730
- var n = Ra(), r = nn(n), i = nn(r, !0);
3731
- Ae(r), Ae(n), Sn(() => {
3732
- ei(n, "data-pie-tts-speed-rate", Q(t).rate), ei(n, "tabindex", Q(me) === Q(t).rate ? 0 : -1), ei(n, "aria-label", Q(t).ariaLabel), ei(n, "aria-checked", Q(me) === Q(t).rate), n.disabled = !Q(O), ei(r, "data-label", Q(t).label), Cr(i, Q(t).label);
3733
- }), ur("click", n, () => z(Q(t))), ur("keydown", n, (e) => Re(je, e)), br(e, n);
3734
- }), Ae(t), Sn(() => n = Jr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(ae) })), br(e, t);
3743
+ Lr(t, 21, () => Z(ye), (e) => e.rate, (e, t) => {
3744
+ var n = za(), r = on(n), i = on(r, !0);
3745
+ Me(r), Me(n), Tn(() => {
3746
+ Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(be) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(be) === Z(t).rate), n.disabled = !Z(D), Q(r, "data-label", Z(t).label), Tr(i, Z(t).label);
3747
+ }), fr("click", n, () => tt(Z(t))), fr("keydown", n, (e) => We(Ie, e)), Sr(e, n);
3748
+ }), Me(t), Tn(() => n = Xr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(ce) })), Sr(e, t);
3735
3749
  };
3736
- jr(r, (e) => {
3737
- Q(pe).length > 0 && e(i);
3750
+ Nr(r, (e) => {
3751
+ Z(ye).length > 0 && e(i);
3738
3752
  });
3739
- var a = an(r, 2), o = an(a, 2), s = an(o, 2);
3740
- Ae(t), oi(t, (e) => W(T, e), () => Q(T)), Sn(() => {
3741
- ei(t, "id", _e), n = Jr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
3742
- "pie-tool-tts-inline__panel--floating": Q(Ze),
3743
- "pie-tool-tts-inline__panel--row": Q(Xe),
3744
- "pie-tool-tts-inline__panel--left-aligned-inline": Q(Qe),
3745
- "pie-tool-tts-inline__panel--compact": Q(Qe) && Q(ae)
3746
- }), Xr(t, Q(Qe) ? Q(nt) : ""), a.disabled = !Q(O) || !Q(j), o.disabled = !Q(O) || !Q(j), s.disabled = !Q(O);
3747
- }), ur("click", a, Je), ur("keydown", a, (e) => Re(Me, e)), ur("click", o, qe), ur("keydown", o, (e) => Re(Me, e)), ur("click", s, Ke), ur("keydown", s, (e) => Re(Me, e)), br(e, t);
3753
+ var a = cn(r, 2), o = cn(a, 2), s = cn(o, 2);
3754
+ Me(t), si(t, (e) => H(T, e), () => Z(T)), Tn(() => {
3755
+ Q(t, "id", Ce), n = Xr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
3756
+ "pie-tool-tts-inline__panel--floating": Z(it),
3757
+ "pie-tool-tts-inline__panel--row": Z(rt),
3758
+ "pie-tool-tts-inline__panel--left-aligned-inline": Z(at),
3759
+ "pie-tool-tts-inline__panel--compact": Z(at) && Z(ce)
3760
+ }), Qr(t, Z(at) ? Z(lt) : ""), a.disabled = !Z(D) || !Z(k), o.disabled = !Z(D) || !Z(k), s.disabled = !Z(D);
3761
+ }), fr("click", a, et), fr("keydown", a, (e) => We(Le, e)), fr("click", o, $e), fr("keydown", o, (e) => We(Le, e)), fr("click", s, Qe), fr("keydown", s, (e) => We(Le, e)), Sr(e, t);
3748
3762
  };
3749
- jr(n, (e) => {
3750
- Q(A) && e(r);
3751
- }), br(e, t);
3763
+ Nr(n, (e) => {
3764
+ Z(O) && e(r);
3765
+ }), Sr(e, t);
3752
3766
  };
3753
- var r = nn(t), i = (t) => {
3754
- var r = Va(), i = rn(r);
3755
- n(i), e(an(i, 2)), br(t, r);
3767
+ var r = on(t), i = (t) => {
3768
+ var r = Ha(), i = sn(r);
3769
+ n(i), e(cn(i, 2)), Sr(t, r);
3756
3770
  }, a = (t) => {
3757
- var r = Va(), i = rn(r);
3758
- e(i), n(an(i, 2)), br(t, r);
3771
+ var r = Ha(), i = sn(r);
3772
+ e(i), n(cn(i, 2)), Sr(t, r);
3759
3773
  };
3760
- jr(r, (e) => {
3761
- Q($e) ? e(i) : e(a, -1);
3774
+ Nr(r, (e) => {
3775
+ Z(ot) ? e(i) : e(a, -1);
3762
3776
  });
3763
- var o = an(r, 2), s = nn(o, !0);
3764
- Ae(o), Ae(t), oi(t, (e) => W(w, e), () => Q(w)), Sn(() => Cr(s, Q(N)));
3765
- }
3766
- Sn(() => {
3767
- n = Jr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
3768
- "pie-tool-tts-inline--controls-row": Q(Xe),
3769
- "pie-tool-tts-inline--floating": Q(Ze),
3770
- "pie-tool-tts-inline--left-aligned": Q(Qe)
3771
- }), Xr(t, `--pie-tts-zoom-comp: ${et.current};`);
3772
- }), br(e, t);
3777
+ var o = cn(r, 2), s = on(o, !0);
3778
+ Me(o), Me(t), si(t, (e) => H(w, e), () => Z(w)), Tn(() => Tr(s, Z(j)));
3779
+ }
3780
+ Tn(() => {
3781
+ n = Xr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
3782
+ "pie-tool-tts-inline--controls-row": Z(rt),
3783
+ "pie-tool-tts-inline--floating": Z(it),
3784
+ "pie-tool-tts-inline--left-aligned": Z(at)
3785
+ }), Qr(t, `--pie-tts-zoom-comp: ${st.current};`);
3786
+ }), Sr(e, t);
3773
3787
  };
3774
- return jr(dt, (e) => {
3775
- p && e(ft);
3776
- }), br(a, ut), Ve(lt);
3788
+ return Nr(vt, (e) => {
3789
+ m && e(yt);
3790
+ }), Sr(o, _t), Ue(gt);
3777
3791
  }
3778
- dr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(Wa, {
3792
+ pr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", mi(Ga, {
3779
3793
  catalogId: {
3780
3794
  attribute: "catalog-id",
3781
3795
  type: "String"
@@ -3802,4 +3816,4 @@ dr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(Wa, {
3802
3816
  }
3803
3817
  }, [], [], { mode: "open" }));
3804
3818
  //#endregion
3805
- export { Wa as default };
3819
+ export { Ga as default };