@pie-players/pie-tool-tts-inline 0.3.75 → 1.0.0-beta.0

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,16 +1,17 @@
1
1
  import { coerceBooleanAttributes as e } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
- import { PIE_TTS_CONTROL_HANDOFF_EVENT as t, catalogContextForShell as n, connectToolRegionScopeContext as r, connectToolRuntimeContext as i, connectToolShellContext as a, flatTextContent as o, normalizeTTSSpeedControlOptions as s, resolveContentRegion as c } from "@pie-players/pie-assessment-toolkit/tools/registration";
2
+ import { TOOL_ACTIVE_CHANGE_EVENT as t, catalogContextForShell as n, connectToolRegionScopeContext as r, connectToolRuntimeContext as i, connectToolShellContext as a, isTTSStartFailure as o, normalizeTTSSpeedControlOptions as s, reportToolFailure as c, resolveContentRegion as l } from "@pie-players/pie-assessment-toolkit/tools/registration";
3
3
  import "@pie-players/pie-players-shared/nds-icon-button";
4
- import { resolveInterfaceI18n as l } from "@pie-players/pie-players-shared/i18n/provider";
4
+ import { resolveInterfaceI18n as u } from "@pie-players/pie-players-shared/i18n/provider";
5
+ import { createPieLogger as d, isTtsDebugEnabled as f } from "@pie-players/pie-players-shared/pie";
5
6
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
6
7
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
7
8
  //#endregion
8
9
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
9
- var u = {}, d = Symbol("uninitialized"), f = "http://www.w3.org/1999/xhtml", p = Array.isArray, m = Array.prototype.indexOf, h = Array.prototype.includes, g = Array.from, _ = Object.keys, v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, ee = Object.getOwnPropertyDescriptors, b = Object.prototype, x = Array.prototype, te = Object.getPrototypeOf, ne = Object.isExtensible, re = () => {};
10
- function ie(e) {
10
+ var p = {}, m = Symbol("uninitialized"), h = "http://www.w3.org/1999/xhtml", g = Array.isArray, _ = Array.prototype.indexOf, v = Array.prototype.includes, y = Array.from, b = Object.keys, x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, ee = Object.getOwnPropertyDescriptors, te = Object.prototype, ne = Array.prototype, re = Object.getPrototypeOf, ie = Object.isExtensible, ae = () => {};
11
+ function C(e) {
11
12
  for (var t = 0; t < e.length; t++) e[t]();
12
13
  }
13
- function ae() {
14
+ function w() {
14
15
  var e, t;
15
16
  return {
16
17
  promise: new Promise((n, r) => {
@@ -20,7 +21,7 @@ function ae() {
20
21
  reject: t
21
22
  };
22
23
  }
23
- var S = 1024, C = 2048, w = 4096, oe = 8192, se = 16384, T = 32768, ce = 1 << 25, le = 65536, E = 1 << 19, ue = 1 << 20, de = 1 << 25, D = 1 << 21, fe = 1 << 22, O = 1 << 23, k = Symbol("$state"), A = Symbol("component"), pe = Symbol("legacy props"), me = Symbol(""), he = Symbol("attributes"), ge = Symbol("class"), _e = Symbol("style"), ve = Symbol("text"), ye = new class extends Error {
24
+ var T = 1024, E = 2048, D = 4096, oe = 8192, se = 16384, O = 32768, ce = 1 << 25, le = 65536, k = 1 << 19, ue = 1 << 20, A = 1 << 25, j = 1 << 21, M = 1 << 22, de = 1 << 23, fe = Symbol("$state"), pe = Symbol("component"), me = Symbol("legacy props"), he = Symbol(""), ge = Symbol("attributes"), _e = Symbol("class"), N = Symbol("style"), ve = Symbol("text"), ye = new class extends Error {
24
25
  name = "StaleReactionError";
25
26
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
26
27
  }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
@@ -35,32 +36,32 @@ function Ce() {
35
36
  }
36
37
  //#endregion
37
38
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
38
- var j = !1;
39
- function M(e) {
40
- j = e;
39
+ var P = !1;
40
+ function F(e) {
41
+ P = e;
41
42
  }
42
- var N;
43
- function P(e) {
44
- if (e === null) throw Se(), u;
45
- return N = e;
43
+ var I;
44
+ function L(e) {
45
+ if (e === null) throw Se(), p;
46
+ return I = e;
46
47
  }
47
- function F() {
48
- return P(/* @__PURE__ */ Yt(N));
48
+ function we() {
49
+ return L(/* @__PURE__ */ $t(I));
49
50
  }
50
- function we(e) {
51
- if (j) {
52
- if (/* @__PURE__ */ Yt(N) !== null) throw Se(), u;
53
- N = e;
51
+ function Te(e) {
52
+ if (P) {
53
+ if (/* @__PURE__ */ $t(I) !== null) throw Se(), p;
54
+ I = e;
54
55
  }
55
56
  }
56
- function Te(e = 1) {
57
- if (j) {
58
- for (var t = e, n = N; t--;) n = /* @__PURE__ */ Yt(n);
59
- N = n;
57
+ function Ee(e = 1) {
58
+ if (P) {
59
+ for (var t = e, n = I; t--;) n = /* @__PURE__ */ $t(n);
60
+ I = n;
60
61
  }
61
62
  }
62
- function Ee(e = !0) {
63
- for (var t = 0, n = N;;) {
63
+ function De(e = !0) {
64
+ for (var t = 0, n = I;;) {
64
65
  if (n.nodeType === 8) {
65
66
  var r = n.data;
66
67
  if (r === "]") {
@@ -68,234 +69,234 @@ function Ee(e = !0) {
68
69
  --t;
69
70
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
70
71
  }
71
- var i = /* @__PURE__ */ Yt(n);
72
+ var i = /* @__PURE__ */ $t(n);
72
73
  e && n.remove(), n = i;
73
74
  }
74
75
  }
75
- function De(e) {
76
- if (!e || e.nodeType !== 8) throw Se(), u;
76
+ function Oe(e) {
77
+ if (!e || e.nodeType !== 8) throw Se(), p;
77
78
  return e.data;
78
79
  }
79
80
  //#endregion
80
81
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
81
- function Oe(e) {
82
+ function ke(e) {
82
83
  return e === this.v;
83
84
  }
84
- function ke(e, t) {
85
+ function Ae(e, t) {
85
86
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
86
87
  }
87
- function Ae(e) {
88
- return !ke(e, this.v);
88
+ function je(e) {
89
+ return !Ae(e, this.v);
89
90
  }
90
91
  //#endregion
91
92
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
92
- function je() {
93
+ function Me() {
93
94
  throw Error("https://svelte.dev/e/async_derived_orphan");
94
95
  }
95
- function Me(e, t, n) {
96
+ function Ne(e, t, n) {
96
97
  throw Error("https://svelte.dev/e/each_key_duplicate");
97
98
  }
98
- function Ne(e) {
99
+ function Pe(e) {
99
100
  throw Error("https://svelte.dev/e/effect_in_teardown");
100
101
  }
101
- function Pe() {
102
+ function Fe() {
102
103
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
103
104
  }
104
- function Fe(e) {
105
+ function Ie(e) {
105
106
  throw Error("https://svelte.dev/e/effect_orphan");
106
107
  }
107
- function Ie() {
108
+ function Le() {
108
109
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
109
110
  }
110
- function Le() {
111
+ function Re() {
111
112
  throw Error("https://svelte.dev/e/hydration_failed");
112
113
  }
113
- function Re(e) {
114
+ function ze(e) {
114
115
  throw Error("https://svelte.dev/e/props_invalid_value");
115
116
  }
116
- function ze() {
117
+ function Be() {
117
118
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
118
119
  }
119
- function Be() {
120
+ function Ve() {
120
121
  throw Error("https://svelte.dev/e/state_prototype_fixed");
121
122
  }
122
- function Ve() {
123
+ function He() {
123
124
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
124
125
  }
125
- function He() {
126
+ function Ue() {
126
127
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
127
128
  }
128
129
  //#endregion
129
130
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
130
- var I = null;
131
- function Ue(e) {
132
- I = e;
131
+ var R = null;
132
+ function We(e) {
133
+ R = e;
133
134
  }
134
- function We(e, t = !1, n) {
135
- I = {
136
- p: I,
135
+ function Ge(e, t = !1, n) {
136
+ R = {
137
+ p: R,
137
138
  i: !1,
138
139
  c: null,
139
140
  e: null,
140
141
  s: e,
141
142
  x: null,
142
- r: Y,
143
+ r: J,
143
144
  l: null
144
145
  };
145
146
  }
146
- function Ge(e) {
147
- var t = I, n = t.e;
147
+ function Ke(e) {
148
+ var t = R, n = t.e;
148
149
  if (n !== null) {
149
150
  t.e = null;
150
- for (var r of n) pn(r);
151
+ for (var r of n) _n(r);
151
152
  }
152
- return e !== void 0 && (t.x = e), t.i = !0, I = t.p, Ke(e);
153
+ return e !== void 0 && (t.x = e), t.i = !0, R = t.p, qe(e);
153
154
  }
154
- function Ke(e = {}) {
155
- return v(e, A, { value: !0 }), e;
155
+ function qe(e = {}) {
156
+ return x(e, pe, { value: !0 }), e;
156
157
  }
157
- function qe() {
158
+ function Je() {
158
159
  return !0;
159
160
  }
160
161
  //#endregion
161
162
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
162
- var Je = [];
163
- function Ye() {
164
- var e = Je;
165
- Je = [], ie(e);
163
+ var Ye = [];
164
+ function Xe() {
165
+ var e = Ye;
166
+ Ye = [], C(e);
166
167
  }
167
- function L(e) {
168
- if (Je.length === 0 && !_t) {
169
- var t = Je;
168
+ function Ze(e) {
169
+ if (Ye.length === 0 && !bt) {
170
+ var t = Ye;
170
171
  queueMicrotask(() => {
171
- t === Je && Ye();
172
+ t === Ye && Xe();
172
173
  });
173
174
  }
174
- Je.push(e);
175
+ Ye.push(e);
175
176
  }
176
- function Xe() {
177
- for (; Je.length > 0;) Ye();
177
+ function Qe() {
178
+ for (; Ye.length > 0;) Xe();
178
179
  }
179
180
  //#endregion
180
181
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
181
- var Ze = ~(C | w | S);
182
- function R(e, t) {
183
- e.f = e.f & Ze | t;
182
+ var $e = ~(E | D | T);
183
+ function z(e, t) {
184
+ e.f = e.f & $e | t;
184
185
  }
185
- function Qe(e) {
186
- e.f & 512 || e.deps === null ? R(e, S) : R(e, w);
186
+ function et(e) {
187
+ e.f & 512 || e.deps === null ? z(e, T) : z(e, D);
187
188
  }
188
189
  //#endregion
189
190
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
190
- function $e(e, t, n) {
191
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), R(e, S);
191
+ function tt(e, t, n) {
192
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), z(e, T);
192
193
  }
193
194
  //#endregion
194
195
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
195
- function et(e) {
196
- var t = q, n = Y;
197
- J(null), In(null);
196
+ function nt(e) {
197
+ var t = K, n = J;
198
+ q(null), Y(null);
198
199
  try {
199
200
  return e();
200
201
  } finally {
201
- J(t), In(n);
202
+ q(t), Y(n);
202
203
  }
203
204
  }
204
205
  //#endregion
205
206
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
206
- function tt(e, t, n, r) {
207
- let i = qe() ? at : ct;
207
+ function rt(e, t, n, r) {
208
+ let i = Je() ? st : ut;
208
209
  var a = e.filter((e) => !e.settled), o = t.map(i);
209
210
  if (n.length === 0 && a.length === 0) {
210
211
  r(o);
211
212
  return;
212
213
  }
213
- var s = Y, c = nt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
214
+ var s = J, c = it(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
214
215
  function u(e) {
215
216
  if (!(s.f & 16384)) {
216
217
  c();
217
218
  try {
218
219
  r([...o, ...e]);
219
220
  } catch (e) {
220
- on(e, s);
221
+ un(e, s);
221
222
  }
222
- rt();
223
+ at();
223
224
  }
224
225
  }
225
- var d = it();
226
+ var d = ot();
226
227
  if (n.length === 0) {
227
228
  l.then(() => u([])).finally(d);
228
229
  return;
229
230
  }
230
231
  function f() {
231
- Promise.all(n.map((e) => /* @__PURE__ */ st(e))).then(u).catch((e) => on(e, s)).finally(d);
232
+ Promise.all(n.map((e) => /* @__PURE__ */ lt(e))).then(u).catch((e) => un(e, s)).finally(d);
232
233
  }
233
234
  l ? l.then(() => {
234
- c(), f(), rt();
235
+ c(), f(), at();
235
236
  }) : f();
236
237
  }
237
- function nt() {
238
- var e = Y, t = q, n = I, r = B;
238
+ function it() {
239
+ var e = J, t = K, n = R, r = V;
239
240
  return function(i = !0) {
240
- In(e), J(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
241
+ Y(e), q(t), We(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
241
242
  };
242
243
  }
243
- function rt(e = !0) {
244
- In(null), J(null), Ue(null), e && B?.deactivate();
244
+ function at(e = !0) {
245
+ Y(null), q(null), We(null), e && V?.deactivate();
245
246
  }
246
- function it() {
247
- var e = Y, t = e.b, n = B, r = !!t?.is_rendered();
247
+ function ot() {
248
+ var e = J, t = e.b, n = V, r = !!t?.is_rendered();
248
249
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
249
250
  t?.update_pending_count(-1, n), n.decrement(r, e);
250
251
  };
251
252
  }
252
253
  /*#__NO_SIDE_EFFECTS__*/
253
- function at(e) {
254
- var t = 2 | C;
255
- return Y !== null && (Y.f |= E), {
256
- ctx: I,
254
+ function st(e) {
255
+ var t = 2 | E;
256
+ return J !== null && (J.f |= k), {
257
+ ctx: R,
257
258
  deps: null,
258
259
  effects: null,
259
- equals: Oe,
260
+ equals: ke,
260
261
  f: t,
261
262
  fn: e,
262
263
  reactions: null,
263
264
  rv: 0,
264
- v: d,
265
+ v: m,
265
266
  wv: 0,
266
- parent: Y,
267
+ parent: J,
267
268
  ac: null
268
269
  };
269
270
  }
270
- var ot = Symbol("obsolete");
271
+ var ct = Symbol("obsolete");
271
272
  /*#__NO_SIDE_EFFECTS__*/
272
- function st(e, t, n) {
273
- let r = Y;
274
- r === null && je();
275
- var i = void 0, a = Pt(d), o = !q, s = /* @__PURE__ */ new Set();
276
- return _n(() => {
277
- var t = Y, n = ae();
273
+ function lt(e, t, n) {
274
+ let r = J;
275
+ r === null && Me();
276
+ var i = void 0, a = Lt(m), o = !K, s = /* @__PURE__ */ new Set();
277
+ return xn(() => {
278
+ var t = J, n = w();
278
279
  i = n.promise;
279
280
  try {
280
281
  Promise.resolve(e()).then(n.resolve, (e) => {
281
282
  e !== ye && n.reject(e);
282
- }).finally(rt);
283
+ }).finally(at);
283
284
  } catch (e) {
284
- n.reject(e), rt();
285
+ n.reject(e), at();
285
286
  }
286
- var c = B;
287
+ var c = V;
287
288
  if (o) {
288
- if (t.f & 32768) var l = it();
289
- if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(ot);
290
- else for (let e of s.values()) e.reject(ot);
289
+ if (t.f & 32768) var l = ot();
290
+ if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(ct);
291
+ else for (let e of s.values()) e.reject(ct);
291
292
  s.add(n), c.async_deriveds.set(t, n);
292
293
  }
293
294
  let u = (e, t = void 0) => {
294
- l?.(), s.delete(n), t !== ot && (c.activate(), t ? (a.f |= O, Rt(a, t)) : (a.f & 8388608 && (a.f ^= O), Rt(a, e)), c.deactivate());
295
+ l?.(), s.delete(n), t !== ct && (c.activate(), t ? (a.f |= de, Vt(a, t)) : (a.f & 8388608 && (a.f ^= de), Vt(a, e)), c.deactivate());
295
296
  };
296
297
  n.promise.then(u, (e) => u(null, e || "unknown"));
297
- }), dn(() => {
298
- for (let e of s) e.reject(ot);
298
+ }), hn(() => {
299
+ for (let e of s) e.reject(ct);
299
300
  }), new Promise((e) => {
300
301
  function t(n) {
301
302
  function r() {
@@ -307,53 +308,53 @@ function st(e, t, n) {
307
308
  });
308
309
  }
309
310
  /*#__NO_SIDE_EFFECTS__*/
310
- function z(e) {
311
- let t = /* @__PURE__ */ at(e);
312
- return Rn(t), t;
311
+ function B(e) {
312
+ let t = /* @__PURE__ */ st(e);
313
+ return Vn(t), t;
313
314
  }
314
315
  /*#__NO_SIDE_EFFECTS__*/
315
- function ct(e) {
316
- let t = /* @__PURE__ */ at(e);
317
- return t.equals = Ae, t;
316
+ function ut(e) {
317
+ let t = /* @__PURE__ */ st(e);
318
+ return t.equals = je, t;
318
319
  }
319
- function lt(e) {
320
+ function dt(e) {
320
321
  var t = e.effects;
321
322
  if (t !== null) {
322
323
  e.effects = null;
323
- for (var n = 0; n < t.length; n += 1) K(t[n]);
324
+ for (var n = 0; n < t.length; n += 1) G(t[n]);
324
325
  }
325
326
  }
326
- function ut(e) {
327
- var t, n = Y, r = e.parent;
328
- if (!Nn && r !== null && e.v !== d && r.f & 24576) return xe(), e.v;
329
- In(r);
327
+ function ft(e) {
328
+ var t, n = J, r = e.parent;
329
+ if (!Ln && r !== null && e.v !== m && r.f & 24576) return xe(), e.v;
330
+ Y(r);
330
331
  try {
331
- lt(e), t = Jn(e);
332
+ dt(e), t = Zn(e);
332
333
  } finally {
333
- In(n);
334
+ Y(n);
334
335
  }
335
336
  return t;
336
337
  }
337
- function dt(e) {
338
- var t = ut(e);
339
- if (!e.equals(t) && (e.wv = Gn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), ht?.capture(e, t, !0)), e.deps === null))) {
340
- R(e, S);
338
+ function pt(e) {
339
+ var t = ft(e);
340
+ if (!e.equals(t) && (e.wv = Jn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
341
+ z(e, T);
341
342
  return;
342
343
  }
343
- Nn || (V === null ? Qe(e) : (un() || B?.is_fork) && V.set(e, t));
344
+ Ln || (vt === null ? et(e) : (mn() || V?.is_fork) && vt.set(e, t));
344
345
  }
345
- function ft(e) {
346
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && et(() => {
346
+ function mt(e) {
347
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && nt(() => {
347
348
  t.ac.abort(ye), t.ac = null;
348
- }), t.fn !== null && (t.teardown = re), Zn(t, 0), Sn(t));
349
+ }), t.fn !== null && (t.teardown = ae), er(t, 0), En(t));
349
350
  }
350
- function pt(e) {
351
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Qn(t);
351
+ function ht(e) {
352
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
352
353
  }
353
354
  //#endregion
354
355
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
355
- var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt = null, bt = null, xt = 0, St = 1, Ct = class e {
356
- id = St++;
356
+ var gt = null, V = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St = null, Ct = null, wt = 0, Tt = 1, Et = class e {
357
+ id = Tt++;
357
358
  #e = !1;
358
359
  linked = !0;
359
360
  #t = null;
@@ -375,7 +376,7 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
375
376
  is_fork = !1;
376
377
  #m = !1;
377
378
  constructor() {
378
- mt === null ? mt = this : (mt.#n = this, this.#t = mt), mt = this;
379
+ gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
379
380
  }
380
381
  #h() {
381
382
  if (this.is_fork) return !0;
@@ -401,8 +402,8 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
401
402
  var n = this.#f.get(e);
402
403
  if (n) {
403
404
  this.#f.delete(e);
404
- for (var r of n.d) R(r, C), t(r);
405
- for (r of n.m) R(r, w), t(r);
405
+ for (var r of n.d) z(r, E), t(r);
406
+ for (r of n.m) z(r, D), t(r);
406
407
  }
407
408
  this.#p.add(e);
408
409
  }
@@ -417,7 +418,7 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
417
418
  n = !0;
418
419
  break;
419
420
  }
420
- t.f ^= S;
421
+ t.f ^= T;
421
422
  }
422
423
  }
423
424
  n || e.push(t);
@@ -426,25 +427,25 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
426
427
  }
427
428
  #_() {
428
429
  this.#e = !0;
429
- for (let e of this.#u) this.#d.delete(e), R(e, C), this.schedule(e);
430
- for (let e of this.#d) R(e, w), this.schedule(e);
430
+ for (let e of this.#u) this.#d.delete(e), z(e, E), this.schedule(e);
431
+ for (let e of this.#d) z(e, D), this.schedule(e);
431
432
  this.apply();
432
- for (var t = yt = [], n = [], r = bt = []; this.#c.length > 0;) {
433
- xt++ > 1e3 && (this.#S(), Tt());
433
+ for (var t = St = [], n = [], r = Ct = []; this.#c.length > 0;) {
434
+ wt++ > 1e3 && (this.#S(), Ot());
434
435
  for (let e of this.#g()) try {
435
436
  this.#v(e, t, n);
436
437
  } catch (t) {
437
- throw At(e), this.#h() || this.discard(), t;
438
+ throw Nt(e), this.#h() || this.discard(), t;
438
439
  }
439
440
  }
440
- if (B = null, r.length > 0) {
441
+ if (V = null, r.length > 0) {
441
442
  var i = e.ensure();
442
443
  for (let e of r) i.schedule(e);
443
444
  }
444
- if (yt = null, bt = null, this.#h()) {
445
+ if (St = null, Ct = null, this.#h()) {
445
446
  this.#x(n), this.#x(t);
446
- for (let [e, t] of this.#f) kt(e, t);
447
- r.length > 0 && B.#_();
447
+ for (let [e, t] of this.#f) Mt(e, t);
448
+ r.length > 0 && V.#_();
448
449
  return;
449
450
  }
450
451
  let a = this.#y();
@@ -454,22 +455,22 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
454
455
  }
455
456
  this.#u.clear(), this.#d.clear();
456
457
  for (let e of this.#r) e(this);
457
- this.#r.clear(), ht = this, Dt(n), Dt(t), ht = null, this.#s?.resolve();
458
- var o = B;
458
+ this.#r.clear(), _t = this, At(n), At(t), _t = null, this.#s?.resolve();
459
+ var o = V;
459
460
  if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) {
460
461
  if (o !== null) {
461
462
  for (let e of this.#c) o.#c.push(e);
462
463
  this.#c = [];
463
464
  } else o = this;
464
465
  }
465
- o !== null && (Mt.clear(), o.#_());
466
+ o !== null && (Ft.clear(), o.#_());
466
467
  }
467
468
  #v(e, t, n) {
468
- e.f ^= S;
469
+ e.f ^= T;
469
470
  for (var r = e.first; r !== null;) {
470
471
  var i = r.f, a = !!(i & 96);
471
472
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
472
- a ? r.f ^= S : i & 4 ? t.push(r) : Kn(r) && (i & 16 && this.#d.add(r), Qn(r));
473
+ a ? r.f ^= T : i & 4 ? t.push(r) : Yn(r) && (i & 16 && this.#d.add(r), tr(r));
473
474
  var o = r.first;
474
475
  if (o !== null) {
475
476
  r = o;
@@ -509,36 +510,36 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
509
510
  if (r & 2) t(e);
510
511
  else {
511
512
  var i = e;
512
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, C), this.schedule(i));
513
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, E), this.schedule(i));
513
514
  }
514
515
  }
515
516
  };
516
517
  for (let e of this.current.keys()) t(e);
517
- this.oncommit(() => e.discard()), e.#S(), B = this, this.#_();
518
+ this.oncommit(() => e.discard()), e.#S(), V = this, this.#_();
518
519
  }
519
520
  #x(e) {
520
- for (var t = 0; t < e.length; t += 1) $e(e[t], this.#u, this.#d);
521
+ for (var t = 0; t < e.length; t += 1) tt(e[t], this.#u, this.#d);
521
522
  }
522
523
  capture(e, t, n = !1) {
523
- e.v !== d && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
524
+ e.v !== m && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), vt?.set(e, t)), this.is_fork || (e.v = t);
524
525
  }
525
526
  activate() {
526
- B = this;
527
+ V = this;
527
528
  }
528
529
  deactivate() {
529
- B = null, V = null;
530
+ V = null, vt = null;
530
531
  }
531
532
  flush() {
532
533
  try {
533
- vt = !0, B = this, this.#_();
534
+ xt = !0, V = this, this.#_();
534
535
  } finally {
535
- xt = 0, gt = null, yt = null, bt = null, vt = !1, B = null, V = null, Mt.clear();
536
+ wt = 0, yt = null, St = null, Ct = null, xt = !1, V = null, vt = null, Ft.clear();
536
537
  }
537
538
  }
538
539
  discard() {
539
540
  for (let e of this.#i) e(this);
540
541
  this.#i.clear();
541
- for (let e of this.async_deriveds.values()) e.reject(ot);
542
+ for (let e of this.async_deriveds.values()) e.reject(ct);
542
543
  this.#S(), this.#s?.resolve();
543
544
  }
544
545
  register_created_effect(e) {
@@ -555,7 +556,7 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
555
556
  let e = this.#o.get(t) ?? 0;
556
557
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
557
558
  }
558
- this.#m || (this.#m = !0, L(() => {
559
+ this.#m || (this.#m = !0, Ze(() => {
559
560
  this.#m = !1, this.linked && this.flush();
560
561
  }));
561
562
  }
@@ -571,22 +572,22 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
571
572
  this.#i.add(e);
572
573
  }
573
574
  settled() {
574
- return (this.#s ??= ae()).promise;
575
+ return (this.#s ??= w()).promise;
575
576
  }
576
577
  static ensure() {
577
- if (B === null) {
578
- let t = B = new e();
579
- !vt && !_t && L(() => {
578
+ if (V === null) {
579
+ let t = V = new e();
580
+ !xt && !bt && Ze(() => {
580
581
  t.#e || t.flush();
581
582
  });
582
583
  }
583
- return B;
584
+ return V;
584
585
  }
585
586
  apply() {
586
- V = null;
587
+ vt = null;
587
588
  }
588
589
  schedule(e) {
589
- if (gt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
590
+ if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
590
591
  e.b.defer_effect(e);
591
592
  return;
592
593
  }
@@ -595,160 +596,160 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
595
596
  #S() {
596
597
  if (this.linked) {
597
598
  var e = this.#t, t = this.#n;
598
- e === null || (e.#n = t), t === null ? mt = e : t.#t = e, this.linked = !1;
599
+ e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
599
600
  }
600
601
  }
601
602
  };
602
- function wt(e) {
603
- var t = _t;
604
- _t = !0;
603
+ function Dt(e) {
604
+ var t = bt;
605
+ bt = !0;
605
606
  try {
606
607
  var n;
607
- for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
608
- if (Xe(), B === null) return n;
609
- B.flush();
608
+ for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
609
+ if (Qe(), V === null) return n;
610
+ V.flush();
610
611
  }
611
612
  } finally {
612
- _t = t;
613
+ bt = t;
613
614
  }
614
615
  }
615
- function Tt() {
616
+ function Ot() {
616
617
  try {
617
- Ie();
618
+ Le();
618
619
  } catch (e) {
619
- on(e, gt);
620
+ un(e, yt);
620
621
  }
621
622
  }
622
- var Et = null;
623
- function Dt(e) {
623
+ var kt = null;
624
+ function At(e) {
624
625
  var t = e.length;
625
626
  if (t !== 0) {
626
627
  for (var n = 0; n < t;) {
627
628
  var r = e[n++];
628
- if (!(r.f & 24576) && Kn(r) && (Et = /* @__PURE__ */ new Set(), Qn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), Et?.size > 0)) {
629
- Mt.clear();
630
- for (let e of Et) {
629
+ if (!(r.f & 24576) && Yn(r) && (kt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && kn(r), kt?.size > 0)) {
630
+ Ft.clear();
631
+ for (let e of kt) {
631
632
  if (e.f & 24576) continue;
632
633
  let t = [e], n = e.parent;
633
- for (; n !== null;) Et.has(n) && (Et.delete(n), t.push(n)), n = n.parent;
634
+ for (; n !== null;) kt.has(n) && (kt.delete(n), t.push(n)), n = n.parent;
634
635
  for (let e = t.length - 1; e >= 0; e--) {
635
636
  let n = t[e];
636
- n.f & 24576 || Qn(n);
637
+ n.f & 24576 || tr(n);
637
638
  }
638
639
  }
639
- Et.clear();
640
+ kt.clear();
640
641
  }
641
642
  }
642
- Et = null;
643
+ kt = null;
643
644
  }
644
645
  }
645
- function Ot(e) {
646
- B.schedule(e);
646
+ function jt(e) {
647
+ V.schedule(e);
647
648
  }
648
- function kt(e, t) {
649
+ function Mt(e, t) {
649
650
  if (!(e.f & 32 && e.f & 1024)) {
650
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, S);
651
- for (var n = e.first; n !== null;) kt(n, t), n = n.next;
651
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, T);
652
+ for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
652
653
  }
653
654
  }
654
- function At(e) {
655
- R(e, S);
656
- for (var t = e.first; t !== null;) At(t), t = t.next;
655
+ function Nt(e) {
656
+ z(e, T);
657
+ for (var t = e.first; t !== null;) Nt(t), t = t.next;
657
658
  }
658
659
  //#endregion
659
660
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
660
- var jt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new Map(), Nt = !1;
661
- function Pt(e, t) {
661
+ var Pt = /* @__PURE__ */ new Set(), Ft = /* @__PURE__ */ new Map(), It = !1;
662
+ function Lt(e, t) {
662
663
  return {
663
664
  f: 0,
664
665
  v: e,
665
666
  reactions: null,
666
- equals: Oe,
667
+ equals: ke,
667
668
  rv: 0,
668
669
  wv: 0
669
670
  };
670
671
  }
671
672
  /*#__NO_SIDE_EFFECTS__*/
672
673
  function H(e, t) {
673
- let n = Pt(e, t);
674
- return Rn(n), n;
674
+ let n = Lt(e, t);
675
+ return Vn(n), n;
675
676
  }
676
677
  /*#__NO_SIDE_EFFECTS__*/
677
- function Ft(e, t = !1, n = !0) {
678
- let r = Pt(e);
679
- return t || (r.equals = Ae), r;
678
+ function Rt(e, t = !1, n = !0) {
679
+ let r = Lt(e);
680
+ return t || (r.equals = je), r;
680
681
  }
681
682
  function U(e, t, n = !1) {
682
- return q !== null && (!Fn || q.f & 131072) && qe() && q.f & 4325394 && (Ln === null || !Ln.has(e)) && Ve(), Rt(e, n ? Ht(t) : t, bt);
683
+ return K !== null && (!zn || K.f & 131072) && Je() && K.f & 4325394 && (Bn === null || !Bn.has(e)) && He(), Vt(e, n ? Gt(t) : t, Ct);
683
684
  }
684
- var It = null, Lt = 0;
685
- function Rt(e, t, n = null) {
685
+ var zt = null, Bt = 0;
686
+ function Vt(e, t, n = null) {
686
687
  if (!e.equals(t)) {
687
- Nn ? Mt.set(e, t) : Mt.has(e) || Mt.set(e, e.v);
688
- var r = Ct.ensure();
688
+ Ln ? Ft.set(e, t) : Ft.has(e) || Ft.set(e, e.v);
689
+ var r = Et.ensure();
689
690
  if (r.capture(e, t), e.f & 2) {
690
691
  let t = e;
691
- e.f & 2048 && ut(t), V === null && Qe(t);
692
+ e.f & 2048 && ft(t), vt === null && et(t);
692
693
  }
693
- e.wv = Gn(), It = null, Lt = 0, Vt(e, C, n), It = null, qe() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (zn === null ? Bn([e]) : zn.push(e)), !r.is_fork && jt.size > 0 && !Nt && zt();
694
+ e.wv = Jn(), zt = null, Bt = 0, Wt(e, E, n), zt = null, Je() && J !== null && J.f & 1024 && !(J.f & 96) && (Hn === null ? Un([e]) : Hn.push(e)), !r.is_fork && Pt.size > 0 && !It && Ht();
694
695
  }
695
696
  return t;
696
697
  }
697
- function zt() {
698
- Nt = !1;
699
- for (let e of jt) {
700
- e.f & 1024 && R(e, w);
698
+ function Ht() {
699
+ It = !1;
700
+ for (let e of Pt) {
701
+ e.f & 1024 && z(e, D);
701
702
  let t;
702
703
  try {
703
- t = Kn(e);
704
+ t = Yn(e);
704
705
  } catch {
705
706
  t = !0;
706
707
  }
707
- t && Qn(e);
708
+ t && tr(e);
708
709
  }
709
- jt.clear();
710
+ Pt.clear();
710
711
  }
711
- function Bt(e) {
712
+ function Ut(e) {
712
713
  U(e, e.v + 1);
713
714
  }
714
- function Vt(e, t, n) {
715
+ function Wt(e, t, n) {
715
716
  var r = e.reactions;
716
717
  if (r !== null) {
717
- var i = qe(), a = r.length;
718
- if (Lt += a, Lt > 1e5 && It === null && (It = /* @__PURE__ */ new Set()), It !== null) {
719
- if (It.has(e)) return;
720
- It.add(e);
718
+ var i = Je(), a = r.length;
719
+ if (Bt += a, Bt > 1e5 && zt === null && (zt = /* @__PURE__ */ new Set()), zt !== null) {
720
+ if (zt.has(e)) return;
721
+ zt.add(e);
721
722
  }
722
723
  for (var o = 0; o < a; o++) {
723
724
  var s = r[o], c = s.f;
724
- if (i || s !== Y) {
725
- var l = (c & C) === 0;
726
- if (l && R(s, t), c & 131072) jt.add(s);
725
+ if (i || s !== J) {
726
+ var l = (c & E) === 0;
727
+ if (l && z(s, t), c & 131072) Pt.add(s);
727
728
  else if (c & 2) {
728
729
  var u = s;
729
- V?.delete(u), Vt(u, w, n);
730
+ vt?.delete(u), Wt(u, D, n);
730
731
  } else if (l) {
731
732
  var d = s;
732
- c & 16 && Et !== null && Et.add(d), n === null ? Ot(d) : n.push(d);
733
+ c & 16 && kt !== null && kt.add(d), n === null ? jt(d) : n.push(d);
733
734
  }
734
735
  }
735
736
  }
736
737
  }
737
738
  }
738
- function Ht(e) {
739
- if (typeof e != "object" || !e || k in e || A in e) return e;
740
- let t = te(e);
741
- if (t !== b && t !== x) return e;
742
- var n = /* @__PURE__ */ new Map(), r = p(e), i = /* @__PURE__ */ H(0), a = null, o = Un, s = (e) => {
743
- if (Un === o) return e();
744
- var t = q, n = Un;
745
- J(null), Wn(o);
739
+ function Gt(e) {
740
+ if (typeof e != "object" || !e || fe in e || pe in e) return e;
741
+ let t = re(e);
742
+ if (t !== te && t !== ne) return e;
743
+ var n = /* @__PURE__ */ new Map(), r = g(e), i = /* @__PURE__ */ H(0), a = null, o = Kn, s = (e) => {
744
+ if (Kn === o) return e();
745
+ var t = K, n = Kn;
746
+ q(null), qn(o);
746
747
  var r = e();
747
- return J(t), Wn(n), r;
748
+ return q(t), qn(n), r;
748
749
  };
749
750
  return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
750
751
  defineProperty(e, t, r) {
751
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && ze();
752
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Be();
752
753
  var i = n.get(t);
753
754
  return i === void 0 ? s(() => {
754
755
  var e = /* @__PURE__ */ H(r.value, a);
@@ -759,18 +760,18 @@ function Ht(e) {
759
760
  var r = n.get(t);
760
761
  if (r === void 0) {
761
762
  if (t in e) {
762
- let e = s(() => /* @__PURE__ */ H(d, a));
763
- n.set(t, e), Bt(i);
763
+ let e = s(() => /* @__PURE__ */ H(m, a));
764
+ n.set(t, e), Ut(i);
764
765
  }
765
- } else U(r, d), Bt(i);
766
+ } else U(r, m), Ut(i);
766
767
  return !0;
767
768
  },
768
769
  get(t, r, i) {
769
- if (r === k) return e;
770
+ if (r === fe) return e;
770
771
  var o = n.get(r), c = r in t;
771
- if (o === void 0 && (!c || y(t, r)?.writable) && (o = s(() => /* @__PURE__ */ H(Ht(c ? t[r] : d), a)), n.set(r, o)), o !== void 0) {
772
+ if (o === void 0 && (!c || S(t, r)?.writable) && (o = s(() => /* @__PURE__ */ H(Gt(c ? t[r] : m), a)), n.set(r, o)), o !== void 0) {
772
773
  var l = Q(o);
773
- return l === d ? void 0 : l;
774
+ return l === m ? void 0 : l;
774
775
  }
775
776
  return Reflect.get(t, r, i);
776
777
  },
@@ -779,7 +780,7 @@ function Ht(e) {
779
780
  var r = Reflect.getOwnPropertyDescriptor(e, t), i = n.get(t);
780
781
  if (i !== void 0) {
781
782
  var a = Q(i);
782
- if (a === d) return;
783
+ if (a === m) return;
783
784
  if (r && "value" in r) r.value = a;
784
785
  else return {
785
786
  enumerable: !0,
@@ -791,21 +792,21 @@ function Ht(e) {
791
792
  return r;
792
793
  },
793
794
  has(e, t) {
794
- if (t === k) return !0;
795
- var r = n.get(t), i = r !== void 0 && r.v !== d || Reflect.has(e, t);
796
- return (r !== void 0 || Y !== null && (!i || y(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ H(i ? Ht(e[t]) : d, a)), n.set(t, r)), Q(r) === d) ? !1 : i;
795
+ if (t === fe) return !0;
796
+ var r = n.get(t), i = r !== void 0 && r.v !== m || Reflect.has(e, t);
797
+ return (r !== void 0 || J !== null && (!i || S(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ H(i ? Gt(e[t]) : m, a)), n.set(t, r)), Q(r) === m) ? !1 : i;
797
798
  },
798
799
  set(e, t, o, c) {
799
800
  var l = n.get(t), u = t in e;
800
- if (r && t === "length") for (var f = o; f < l.v; f += 1) {
801
- var p = n.get(f + "");
802
- p === void 0 ? f in e && (p = s(() => /* @__PURE__ */ H(d, a)), n.set(f + "", p)) : U(p, d);
801
+ if (r && t === "length") for (var d = o; d < l.v; d += 1) {
802
+ var f = n.get(d + "");
803
+ f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ H(m, a)), n.set(d + "", f)) : U(f, m);
803
804
  }
804
- if (l === void 0) (!u || y(e, t)?.writable) && (l = s(() => /* @__PURE__ */ H(void 0, a)), U(l, Ht(o)), n.set(t, l));
805
+ if (l === void 0) (!u || S(e, t)?.writable) && (l = s(() => /* @__PURE__ */ H(void 0, a)), U(l, Gt(o)), n.set(t, l));
805
806
  else {
806
- u = l.v !== d;
807
- var m = s(() => Ht(o));
808
- U(l, m);
807
+ u = l.v !== m;
808
+ var p = s(() => Gt(o));
809
+ U(l, p);
809
810
  }
810
811
  var h = Reflect.getOwnPropertyDescriptor(e, t);
811
812
  if (h?.set && h.set.call(c, o), !u) {
@@ -813,7 +814,7 @@ function Ht(e) {
813
814
  var g = n.get("length"), _ = Number(t);
814
815
  Number.isInteger(_) && _ >= g.v && U(g, _ + 1);
815
816
  }
816
- Bt(i);
817
+ Ut(i);
817
818
  }
818
819
  return !0;
819
820
  },
@@ -821,98 +822,98 @@ function Ht(e) {
821
822
  Q(i);
822
823
  var t = Reflect.ownKeys(e).filter((e) => {
823
824
  var t = n.get(e);
824
- return t === void 0 || t.v !== d;
825
+ return t === void 0 || t.v !== m;
825
826
  });
826
- for (var [r, a] of n) a.v !== d && !(r in e) && t.push(r);
827
+ for (var [r, a] of n) a.v !== m && !(r in e) && t.push(r);
827
828
  return t;
828
829
  },
829
830
  setPrototypeOf() {
830
- Be();
831
+ Ve();
831
832
  }
832
833
  });
833
834
  }
834
- var Ut, Wt, Gt, Kt;
835
- function qt() {
836
- if (Ut === void 0) {
837
- Ut = window, Wt = /Firefox/.test(navigator.userAgent);
835
+ var Kt, qt, Jt, Yt;
836
+ function Xt() {
837
+ if (Kt === void 0) {
838
+ Kt = window, qt = /Firefox/.test(navigator.userAgent);
838
839
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
839
- Gt = y(t, "firstChild").get, Kt = y(t, "nextSibling").get, ne(e) && (e[ge] = void 0, e[he] = null, e[_e] = void 0, e.__e = void 0), ne(n) && (n[ve] = void 0);
840
+ Jt = S(t, "firstChild").get, Yt = S(t, "nextSibling").get, ie(e) && (e[_e] = void 0, e[ge] = null, e[N] = void 0, e.__e = void 0), ie(n) && (n[ve] = void 0);
840
841
  }
841
842
  }
842
- function W(e = "") {
843
+ function Zt(e = "") {
843
844
  return document.createTextNode(e);
844
845
  }
845
846
  /*@__NO_SIDE_EFFECTS__*/
846
- function Jt(e) {
847
- return Gt.call(e);
847
+ function Qt(e) {
848
+ return Jt.call(e);
848
849
  }
849
850
  /*@__NO_SIDE_EFFECTS__*/
850
- function Yt(e) {
851
- return Kt.call(e);
851
+ function $t(e) {
852
+ return Yt.call(e);
852
853
  }
853
- function Xt(e, t) {
854
- if (!j) return /* @__PURE__ */ Jt(e);
855
- var n = /* @__PURE__ */ Jt(N);
856
- if (n === null) n = N.appendChild(W());
854
+ function en(e, t) {
855
+ if (!P) return /* @__PURE__ */ Qt(e);
856
+ var n = /* @__PURE__ */ Qt(I);
857
+ if (n === null) n = I.appendChild(Zt());
857
858
  else if (t && n.nodeType !== 3) {
858
- var r = W();
859
- return n?.before(r), P(r), r;
859
+ var r = Zt();
860
+ return n?.before(r), L(r), r;
860
861
  }
861
- return t && rn(n), P(n), n;
862
+ return t && cn(n), L(n), n;
862
863
  }
863
- function Zt(e, t = !1) {
864
- if (!j) {
865
- var n = /* @__PURE__ */ Jt(e);
866
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Yt(n) : n;
864
+ function tn(e, t = !1) {
865
+ if (!P) {
866
+ var n = /* @__PURE__ */ Qt(e);
867
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ $t(n) : n;
867
868
  }
868
869
  if (t) {
869
- if (N?.nodeType !== 3) {
870
- var r = W();
871
- return N?.before(r), P(r), r;
870
+ if (I?.nodeType !== 3) {
871
+ var r = Zt();
872
+ return I?.before(r), L(r), r;
872
873
  }
873
- rn(N);
874
+ cn(I);
874
875
  }
875
- return N;
876
+ return I;
876
877
  }
877
- function Qt(e, t = !1) {
878
- if (!j) return /* @__PURE__ */ Jt(e);
879
- var n = Xt(e, t);
880
- return we(e), n;
878
+ function nn(e, t = !1) {
879
+ if (!P) return /* @__PURE__ */ Qt(e);
880
+ var n = en(e, t);
881
+ return Te(e), n;
881
882
  }
882
- function $t(e, t = 1, n = !1) {
883
- let r = j ? N : e;
884
- for (var i; t--;) i = r, r = /* @__PURE__ */ Yt(r);
885
- if (!j) return r;
883
+ function rn(e, t = 1, n = !1) {
884
+ let r = P ? I : e;
885
+ for (var i; t--;) i = r, r = /* @__PURE__ */ $t(r);
886
+ if (!P) return r;
886
887
  if (n) {
887
888
  if (r?.nodeType !== 3) {
888
- var a = W();
889
- return r === null ? i?.after(a) : r.before(a), P(a), a;
889
+ var a = Zt();
890
+ return r === null ? i?.after(a) : r.before(a), L(a), a;
890
891
  }
891
- rn(r);
892
+ cn(r);
892
893
  }
893
- return P(r), r;
894
+ return L(r), r;
894
895
  }
895
- function en(e) {
896
+ function an(e) {
896
897
  e.textContent = "";
897
898
  }
898
- function tn() {
899
+ function on() {
899
900
  return !1;
900
901
  }
901
- function nn(e, t, n) {
902
+ function sn(e, t, n) {
902
903
  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);
903
904
  }
904
- function rn(e) {
905
+ function cn(e) {
905
906
  if (e.nodeValue.length < 65536) return;
906
907
  let t = e.nextSibling;
907
908
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
908
909
  }
909
- function an(e) {
910
- var t = Y;
911
- if (t === null) return q.f |= O, e;
910
+ function ln(e) {
911
+ var t = J;
912
+ if (t === null) return K.f |= de, e;
912
913
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
913
- on(e, t);
914
+ un(e, t);
914
915
  }
915
- function on(e, t) {
916
+ function un(e, t) {
916
917
  if (!(t !== null && t.f & 16384)) {
917
918
  for (; t !== null;) {
918
919
  if (t.f & 128 && !(t.f & 33570816)) {
@@ -931,21 +932,21 @@ function on(e, t) {
931
932
  }
932
933
  //#endregion
933
934
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
934
- function sn(e) {
935
- Y === null && (q === null && Fe(e), Pe()), Nn && Ne(e);
935
+ function dn(e) {
936
+ J === null && (K === null && Ie(e), Fe()), Ln && Pe(e);
936
937
  }
937
- function cn(e, t) {
938
+ function fn(e, t) {
938
939
  var n = t.last;
939
940
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
940
941
  }
941
- function ln(e, t) {
942
- var n = Y;
942
+ function pn(e, t) {
943
+ var n = J;
943
944
  n !== null && n.f & 8192 && (e |= oe);
944
945
  var r = {
945
- ctx: I,
946
+ ctx: R,
946
947
  deps: null,
947
948
  nodes: null,
948
- f: e | C | 512,
949
+ f: e | E | 512,
949
950
  first: null,
950
951
  fn: t,
951
952
  last: null,
@@ -957,141 +958,141 @@ function ln(e, t) {
957
958
  wv: 0,
958
959
  ac: null
959
960
  };
960
- B?.register_created_effect(r);
961
+ V?.register_created_effect(r);
961
962
  var i = r;
962
- if (e & 4) yt === null ? Ct.ensure().schedule(r) : yt.push(r);
963
+ if (e & 4) St === null ? Et.ensure().schedule(r) : St.push(r);
963
964
  else if (t !== null) {
964
965
  try {
965
- Qn(r);
966
+ tr(r);
966
967
  } catch (e) {
967
- throw K(r), e;
968
+ throw G(r), e;
968
969
  }
969
970
  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 |= le));
970
971
  }
971
- if (i !== null && (i.parent = n, n !== null && cn(i, n), q !== null && q.f & 2 && !(e & 64))) {
972
- var a = q;
972
+ if (i !== null && (i.parent = n, n !== null && fn(i, n), K !== null && K.f & 2 && !(e & 64))) {
973
+ var a = K;
973
974
  (a.effects ??= []).push(i);
974
975
  }
975
976
  return r;
976
977
  }
977
- function un() {
978
- return q !== null && !Fn;
978
+ function mn() {
979
+ return K !== null && !zn;
979
980
  }
980
- function dn(e) {
981
- let t = ln(8, null);
982
- return R(t, S), t.teardown = e, t;
983
- }
984
- function fn(e) {
985
- sn("$effect");
986
- var t = Y.f;
987
- if (!q && t & 32 && I !== null && !I.i) {
988
- var n = I;
981
+ function hn(e) {
982
+ let t = pn(8, null);
983
+ return z(t, T), t.teardown = e, t;
984
+ }
985
+ function gn(e) {
986
+ dn("$effect");
987
+ var t = J.f;
988
+ if (!K && t & 32 && R !== null && !R.i) {
989
+ var n = R;
989
990
  (n.e ??= []).push(e);
990
- } else return pn(e);
991
+ } else return _n(e);
991
992
  }
992
- function pn(e) {
993
- return ln(4 | ue, e);
993
+ function _n(e) {
994
+ return pn(4 | ue, e);
994
995
  }
995
- function mn(e) {
996
- Ct.ensure();
997
- let t = ln(64 | E, e);
996
+ function vn(e) {
997
+ Et.ensure();
998
+ let t = pn(64 | k, e);
998
999
  return () => {
999
- K(t);
1000
+ G(t);
1000
1001
  };
1001
1002
  }
1002
- function hn(e) {
1003
- Ct.ensure();
1004
- let t = ln(64 | E, e);
1003
+ function yn(e) {
1004
+ Et.ensure();
1005
+ let t = pn(64 | k, e);
1005
1006
  return (e = {}) => new Promise((n) => {
1006
- e.outro ? En(t, () => {
1007
- K(t), n(void 0);
1008
- }) : (K(t), n(void 0));
1007
+ e.outro ? An(t, () => {
1008
+ G(t), n(void 0);
1009
+ }) : (G(t), n(void 0));
1009
1010
  });
1010
1011
  }
1011
- function gn(e) {
1012
- return ln(4, e);
1012
+ function bn(e) {
1013
+ return pn(4, e);
1013
1014
  }
1014
- function _n(e) {
1015
- return ln(fe | E, e);
1015
+ function xn(e) {
1016
+ return pn(M | k, e);
1016
1017
  }
1017
- function vn(e, t = 0) {
1018
- return ln(8 | t, e);
1018
+ function Sn(e, t = 0) {
1019
+ return pn(8 | t, e);
1019
1020
  }
1020
- function yn(e, t = [], n = [], r = []) {
1021
- tt(r, t, n, (t) => {
1022
- ln(8, () => {
1021
+ function Cn(e, t = [], n = [], r = []) {
1022
+ rt(r, t, n, (t) => {
1023
+ pn(8, () => {
1023
1024
  e(...t.map(Q));
1024
1025
  });
1025
1026
  });
1026
1027
  }
1027
- function bn(e, t = 0) {
1028
- return ln(16 | t, e);
1028
+ function wn(e, t = 0) {
1029
+ return pn(16 | t, e);
1029
1030
  }
1030
- function G(e) {
1031
- return ln(32 | E, e);
1031
+ function W(e) {
1032
+ return pn(32 | k, e);
1032
1033
  }
1033
- function xn(e) {
1034
+ function Tn(e) {
1034
1035
  var t = e.teardown;
1035
1036
  if (t !== null) {
1036
- let n = Nn, r = q;
1037
- Pn(!0), J(null);
1037
+ let n = Ln, r = K;
1038
+ Rn(!0), q(null);
1038
1039
  try {
1039
1040
  t.call(null);
1040
1041
  } catch (t) {
1041
- on(t, e.parent);
1042
+ un(t, e.parent);
1042
1043
  } finally {
1043
- Pn(n), J(r);
1044
+ Rn(n), q(r);
1044
1045
  }
1045
1046
  }
1046
1047
  }
1047
- function Sn(e, t = !1) {
1048
+ function En(e, t = !1) {
1048
1049
  var n = e.first;
1049
1050
  for (e.first = e.last = null; n !== null;) {
1050
1051
  let e = n.ac;
1051
- e !== null && et(() => {
1052
+ e !== null && nt(() => {
1052
1053
  e.abort(ye);
1053
1054
  });
1054
1055
  var r = n.next;
1055
- n.f & 64 ? n.parent = null : K(n, t), n = r;
1056
+ n.f & 64 ? n.parent = null : G(n, t), n = r;
1056
1057
  }
1057
1058
  }
1058
- function Cn(e) {
1059
+ function Dn(e) {
1059
1060
  for (var t = e.first; t !== null;) {
1060
1061
  var n = t.next;
1061
- t.f & 32 || K(t), t = n;
1062
+ t.f & 32 || G(t), t = n;
1062
1063
  }
1063
1064
  }
1064
- function K(e, t = !0) {
1065
+ function G(e, t = !0) {
1065
1066
  var n = !1;
1066
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= ce, Sn(e, t && !n), Zn(e, 0);
1067
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (On(e.nodes.start, e.nodes.end), n = !0), e.f |= ce, En(e, t && !n), er(e, 0);
1067
1068
  var r = e.nodes && e.nodes.t;
1068
1069
  if (r !== null) for (let e of r) e.stop();
1069
- xn(e), e.f ^= ce, e.f |= se;
1070
+ Tn(e), e.f ^= ce, e.f |= se;
1070
1071
  var i = e.parent;
1071
- i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1072
+ 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;
1072
1073
  }
1073
- function wn(e, t) {
1074
+ function On(e, t) {
1074
1075
  for (; e !== null;) {
1075
- var n = e === t ? null : /* @__PURE__ */ Yt(e);
1076
+ var n = e === t ? null : /* @__PURE__ */ $t(e);
1076
1077
  e.remove(), e = n;
1077
1078
  }
1078
1079
  }
1079
- function Tn(e) {
1080
+ function kn(e) {
1080
1081
  var t = e.parent, n = e.prev, r = e.next;
1081
1082
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1082
1083
  }
1083
- function En(e, t, n = !0) {
1084
+ function An(e, t, n = !0) {
1084
1085
  var r = [];
1085
- e.f |= 256, Dn(e, r, !0);
1086
+ e.f |= 256, jn(e, r, !0);
1086
1087
  var i = () => {
1087
- n && K(e), t && t();
1088
+ n && G(e), t && t();
1088
1089
  }, a = r.length;
1089
1090
  if (a > 0) {
1090
1091
  var o = () => --a || i();
1091
1092
  for (var s of r) s.out(o);
1092
1093
  } else i();
1093
1094
  }
1094
- function Dn(e, t, n) {
1095
+ function jn(e, t, n) {
1095
1096
  if (!(e.f & 8192)) {
1096
1097
  e.f ^= oe;
1097
1098
  var r = e.nodes && e.nodes.t;
@@ -1100,206 +1101,206 @@ function Dn(e, t, n) {
1100
1101
  var a = i.next;
1101
1102
  if (!(i.f & 64)) {
1102
1103
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1103
- Dn(i, t, o ? n : !1);
1104
+ jn(i, t, o ? n : !1);
1104
1105
  }
1105
1106
  i = a;
1106
1107
  }
1107
1108
  }
1108
1109
  }
1109
- function On(e) {
1110
- e.f &= -257, kn(e, !0);
1110
+ function Mn(e) {
1111
+ e.f &= -257, Nn(e, !0);
1111
1112
  }
1112
- function kn(e, t) {
1113
+ function Nn(e, t) {
1113
1114
  if (!(e.f & 256) && e.f & 8192) {
1114
- e.f ^= oe, e.f & 1024 || (R(e, C), Ct.ensure().schedule(e));
1115
+ e.f ^= oe, e.f & 1024 || (z(e, E), Et.ensure().schedule(e));
1115
1116
  for (var n = e.first; n !== null;) {
1116
1117
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1117
- kn(n, i ? t : !1), n = r;
1118
+ Nn(n, i ? t : !1), n = r;
1118
1119
  }
1119
1120
  var a = e.nodes && e.nodes.t;
1120
1121
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1121
1122
  }
1122
1123
  }
1123
- function An(e, t) {
1124
+ function Pn(e, t) {
1124
1125
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1125
- var i = n === r ? null : /* @__PURE__ */ Yt(n);
1126
+ var i = n === r ? null : /* @__PURE__ */ $t(n);
1126
1127
  t.append(n), n = i;
1127
1128
  }
1128
1129
  }
1129
1130
  //#endregion
1130
1131
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
1131
- var jn = null, Mn = !1, Nn = !1;
1132
- function Pn(e) {
1133
- Nn = e;
1132
+ var Fn = null, In = !1, Ln = !1;
1133
+ function Rn(e) {
1134
+ Ln = e;
1134
1135
  }
1135
- var q = null, Fn = !1;
1136
- function J(e) {
1137
- q = e;
1136
+ var K = null, zn = !1;
1137
+ function q(e) {
1138
+ K = e;
1138
1139
  }
1139
- var Y = null;
1140
- function In(e) {
1141
- Y = e;
1140
+ var J = null;
1141
+ function Y(e) {
1142
+ J = e;
1142
1143
  }
1143
- var Ln = null;
1144
- function Rn(e) {
1145
- q !== null && (q.f & 2097152 || q.f & 2) && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1144
+ var Bn = null;
1145
+ function Vn(e) {
1146
+ K !== null && (K.f & 2097152 || K.f & 2) && (Bn ??= /* @__PURE__ */ new Set()).add(e);
1146
1147
  }
1147
- var X = null, Z = 0, zn = null;
1148
- function Bn(e) {
1149
- zn = e;
1148
+ var X = null, Z = 0, Hn = null;
1149
+ function Un(e) {
1150
+ Hn = e;
1150
1151
  }
1151
- var Vn = 1, Hn = 0, Un = Hn;
1152
- function Wn(e) {
1153
- Un = e;
1152
+ var Wn = 1, Gn = 0, Kn = Gn;
1153
+ function qn(e) {
1154
+ Kn = e;
1154
1155
  }
1155
- function Gn() {
1156
- return ++Vn;
1156
+ function Jn() {
1157
+ return ++Wn;
1157
1158
  }
1158
- function Kn(e) {
1159
+ function Yn(e) {
1159
1160
  var t = e.f;
1160
1161
  if (t & 2048) return !0;
1161
1162
  if (t & 4096) {
1162
1163
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1163
1164
  var a = n[i];
1164
- if (Kn(a) && dt(a), a.wv > e.wv) return !0;
1165
+ if (Yn(a) && pt(a), a.wv > e.wv) return !0;
1165
1166
  }
1166
- t & 512 && V === null && R(e, S);
1167
+ t & 512 && vt === null && z(e, T);
1167
1168
  }
1168
1169
  return !1;
1169
1170
  }
1170
- function qn(e, t, n = !0) {
1171
+ function Xn(e, t, n = !0) {
1171
1172
  var r = e.reactions;
1172
- if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
1173
+ if (r !== null && !(Bn !== null && Bn.has(e))) for (var i = 0; i < r.length; i++) {
1173
1174
  var a = r[i];
1174
- a.f & 2 ? qn(a, t, !1) : t === a && (n ? R(a, C) : a.f & 1024 && R(a, w), Ot(a));
1175
+ a.f & 2 ? Xn(a, t, !1) : t === a && (n ? z(a, E) : a.f & 1024 && z(a, D), jt(a));
1175
1176
  }
1176
1177
  }
1177
- function Jn(e) {
1178
- var t = X, n = Z, r = zn, i = q, a = Ln, o = I, s = Fn, c = Un, l = e.f;
1179
- X = null, Z = 0, zn = null, q = l & 96 ? null : e, Ln = null, Ue(e.ctx), Fn = !1, Un = ++Hn, e.ac !== null && (et(() => {
1178
+ function Zn(e) {
1179
+ var t = X, n = Z, r = Hn, i = K, a = Bn, o = R, s = zn, c = Kn, l = e.f;
1180
+ X = null, Z = 0, Hn = null, K = l & 96 ? null : e, Bn = null, We(e.ctx), zn = !1, Kn = ++Gn, e.ac !== null && (nt(() => {
1180
1181
  e.ac.abort(ye);
1181
1182
  }), e.ac = null);
1182
1183
  try {
1183
- e.f |= D;
1184
+ e.f |= j;
1184
1185
  var u = e.fn, d = u();
1185
- e.f |= T;
1186
- var f = Yn(e);
1187
- if (qe() && zn !== null && !Fn && f !== null && !(e.f & 6146)) for (var p = 0; p < zn.length; p++) qn(zn[p], e);
1186
+ e.f |= O;
1187
+ var f = Qn(e);
1188
+ if (Je() && Hn !== null && !zn && f !== null && !(e.f & 6146)) for (var p = 0; p < Hn.length; p++) Xn(Hn[p], e);
1188
1189
  if (i !== null && i !== e) {
1189
- if (Hn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Hn;
1190
- if (t !== null) for (let e of t) e.rv = Hn;
1191
- zn !== null && (r === null ? r = zn : r.push(...zn));
1190
+ if (Gn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Gn;
1191
+ if (t !== null) for (let e of t) e.rv = Gn;
1192
+ Hn !== null && (r === null ? r = Hn : r.push(...Hn));
1192
1193
  }
1193
- return e.f & 8388608 && (e.f ^= O), d;
1194
+ return e.f & 8388608 && (e.f ^= de), d;
1194
1195
  } catch (t) {
1195
- return Yn(e), an(t);
1196
+ return Qn(e), ln(t);
1196
1197
  } finally {
1197
- e.f ^= D, X = t, Z = n, zn = r, q = i, Ln = a, Ue(o), Fn = s, Un = c;
1198
+ e.f ^= j, X = t, Z = n, Hn = r, K = i, Bn = a, We(o), zn = s, Kn = c;
1198
1199
  }
1199
1200
  }
1200
- function Yn(e) {
1201
- var t = e.deps, n = B?.is_fork;
1201
+ function Qn(e) {
1202
+ var t = e.deps, n = V?.is_fork;
1202
1203
  if (X !== null) {
1203
1204
  var r;
1204
- if (n || Zn(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
1205
+ if (n || er(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
1205
1206
  else e.deps = t = X;
1206
- if (un() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
1207
- } else !n && t !== null && Z < t.length && (Zn(e, Z), t.length = Z);
1207
+ if (mn() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
1208
+ } else !n && t !== null && Z < t.length && (er(e, Z), t.length = Z);
1208
1209
  return t;
1209
1210
  }
1210
- function Xn(e, t) {
1211
+ function $n(e, t) {
1211
1212
  let n = t.reactions;
1212
1213
  if (n !== null) {
1213
- var r = m.call(n, e);
1214
+ var r = _.call(n, e);
1214
1215
  if (r !== -1) {
1215
1216
  var i = n.length - 1;
1216
1217
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1217
1218
  }
1218
1219
  }
1219
- if (n === null && t.f & 2 && (X === null || !h.call(X, t))) {
1220
+ if (n === null && t.f & 2 && (X === null || !v.call(X, t))) {
1220
1221
  var a = t;
1221
- a.f & 512 && (a.f ^= 512), a.v !== d && Qe(a), a.ac !== null && et(() => {
1222
- a.ac.abort(ye), a.ac = null, R(a, C);
1223
- }), ft(a), Zn(a, 0);
1222
+ a.f & 512 && (a.f ^= 512), a.v !== m && et(a), a.ac !== null && nt(() => {
1223
+ a.ac.abort(ye), a.ac = null, z(a, E);
1224
+ }), mt(a), er(a, 0);
1224
1225
  }
1225
1226
  }
1226
- function Zn(e, t) {
1227
+ function er(e, t) {
1227
1228
  var n = e.deps;
1228
- if (n !== null) for (var r = t; r < n.length; r++) Xn(e, n[r]);
1229
+ if (n !== null) for (var r = t; r < n.length; r++) $n(e, n[r]);
1229
1230
  }
1230
- function Qn(e) {
1231
+ function tr(e) {
1231
1232
  var t = e.f;
1232
1233
  if (!(t & 16384)) {
1233
- R(e, S);
1234
- var n = Y, r = Mn;
1235
- Y = e, Mn = !(t & 96);
1234
+ z(e, T);
1235
+ var n = J, r = In;
1236
+ J = e, In = !(t & 96);
1236
1237
  try {
1237
- t & 16777232 ? Cn(e) : Sn(e), xn(e);
1238
- var i = Jn(e);
1239
- e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
1238
+ t & 16777232 ? Dn(e) : En(e), Tn(e);
1239
+ var i = Zn(e);
1240
+ e.teardown = typeof i == "function" ? i : null, e.wv = Wn;
1240
1241
  } finally {
1241
- Mn = r, Y = n;
1242
+ In = r, J = n;
1242
1243
  }
1243
1244
  }
1244
1245
  }
1245
1246
  function Q(e) {
1246
1247
  var t = !!(e.f & 2);
1247
- if (jn?.add(e), q !== null && !Fn && !(Y !== null && Y.f & 16384) && (Ln === null || !Ln.has(e))) {
1248
- var n = q.deps;
1249
- if (q.f & 2097152) e.rv < Hn && (e.rv = Hn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1248
+ if (Fn?.add(e), K !== null && !zn && !(J !== null && J.f & 16384) && (Bn === null || !Bn.has(e))) {
1249
+ var n = K.deps;
1250
+ if (K.f & 2097152) e.rv < Gn && (e.rv = Gn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1250
1251
  else {
1251
- q.deps ??= [], h.call(q.deps, e) || q.deps.push(e);
1252
+ K.deps ??= [], v.call(K.deps, e) || K.deps.push(e);
1252
1253
  var r = e.reactions;
1253
- r === null ? e.reactions = [q] : h.call(r, q) || r.push(q);
1254
+ r === null ? e.reactions = [K] : v.call(r, K) || r.push(K);
1254
1255
  }
1255
1256
  }
1256
- if (Nn && Mt.has(e)) return Mt.get(e);
1257
+ if (Ln && Ft.has(e)) return Ft.get(e);
1257
1258
  if (t) {
1258
1259
  var i = e;
1259
- if (Nn) {
1260
+ if (Ln) {
1260
1261
  var a = i.v;
1261
- return (!(i.f & 1024) && i.reactions !== null || er(i)) && (a = ut(i)), Mt.set(i, a), a;
1262
+ return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = ft(i)), Ft.set(i, a), a;
1262
1263
  }
1263
- var o = !(i.f & 512) && !Fn && q !== null && (Mn || !!(q.f & 512)), s = (i.f & T) === 0;
1264
- Kn(i) && (o && (i.f |= 512), dt(i)), o && !s && (pt(i), $n(i));
1264
+ var o = !(i.f & 512) && !zn && K !== null && (In || !!(K.f & 512)), s = (i.f & O) === 0;
1265
+ Yn(i) && (o && (i.f |= 512), pt(i)), o && !s && (ht(i), nr(i));
1265
1266
  }
1266
- if (V?.has(e)) return V.get(e);
1267
+ if (vt?.has(e)) return vt.get(e);
1267
1268
  if (e.f & 8388608) throw e.v;
1268
1269
  return e.v;
1269
1270
  }
1270
- function $n(e) {
1271
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (pt(t), $n(t));
1271
+ function nr(e) {
1272
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ht(t), nr(t));
1272
1273
  }
1273
- function er(e) {
1274
- if (e.v === d) return !0;
1274
+ function rr(e) {
1275
+ if (e.v === m) return !0;
1275
1276
  if (e.deps === null) return !1;
1276
- for (let t of e.deps) if (Mt.has(t) || t.f & 2 && er(t)) return !0;
1277
+ for (let t of e.deps) if (Ft.has(t) || t.f & 2 && rr(t)) return !0;
1277
1278
  return !1;
1278
1279
  }
1279
- function tr(e) {
1280
- var t = Fn;
1280
+ function ir(e) {
1281
+ var t = zn;
1281
1282
  try {
1282
- return Fn = !0, e();
1283
+ return zn = !0, e();
1283
1284
  } finally {
1284
- Fn = t;
1285
+ zn = t;
1285
1286
  }
1286
1287
  }
1287
- function nr(e) {
1288
+ function ar(e) {
1288
1289
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1289
- if (k in e) rr(e);
1290
+ if (fe in e) or(e);
1290
1291
  else if (!Array.isArray(e)) for (let t in e) {
1291
1292
  let n = e[t];
1292
- typeof n == "object" && n && k in n && rr(n);
1293
+ typeof n == "object" && n && fe in n && or(n);
1293
1294
  }
1294
1295
  }
1295
1296
  }
1296
- function rr(e, t = /* @__PURE__ */ new Set()) {
1297
+ function or(e, t = /* @__PURE__ */ new Set()) {
1297
1298
  if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1298
1299
  t.add(e), e instanceof Date && e.getTime();
1299
1300
  for (let n in e) try {
1300
- rr(e[n], t);
1301
+ or(e[n], t);
1301
1302
  } catch {}
1302
- let n = te(e);
1303
+ let n = re(e);
1303
1304
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1304
1305
  let t = ee(n);
1305
1306
  for (let n in t) {
@@ -1313,25 +1314,25 @@ function rr(e, t = /* @__PURE__ */ new Set()) {
1313
1314
  }
1314
1315
  //#endregion
1315
1316
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
1316
- var ir = Symbol("events"), ar = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
1317
- function sr(e, t, n) {
1318
- (t[ir] ??= {})[e] = n;
1319
- }
1320
- function cr(e) {
1321
- for (var t = 0; t < e.length; t++) ar.add(e[t]);
1322
- for (var n of or) n(e);
1317
+ var sr = Symbol("events"), cr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
1318
+ function ur(e, t, n) {
1319
+ (t[sr] ??= {})[e] = n;
1323
1320
  }
1324
- var lr = null, ur = !1;
1325
1321
  function dr(e) {
1322
+ for (var t = 0; t < e.length; t++) cr.add(e[t]);
1323
+ for (var n of lr) n(e);
1324
+ }
1325
+ var fr = null, pr = !1;
1326
+ function mr(e) {
1326
1327
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1327
- lr = e, ur || (ur = !0, setTimeout(() => {
1328
- ur = !1, lr = null;
1328
+ fr = e, pr || (pr = !0, setTimeout(() => {
1329
+ pr = !1, fr = null;
1329
1330
  }));
1330
- var o = 0, s = lr === e && e[ir];
1331
+ var o = 0, s = fr === e && e[sr];
1331
1332
  if (s) {
1332
1333
  var c = i.indexOf(s);
1333
1334
  if (c !== -1 && (t === document || t === window)) {
1334
- e[ir] = t;
1335
+ e[sr] = t;
1335
1336
  return;
1336
1337
  }
1337
1338
  var l = i.indexOf(t);
@@ -1339,18 +1340,18 @@ function dr(e) {
1339
1340
  c <= l && (o = c);
1340
1341
  }
1341
1342
  if (a = i[o] || e.target, a !== t) {
1342
- v(e, "currentTarget", {
1343
+ x(e, "currentTarget", {
1343
1344
  configurable: !0,
1344
1345
  get() {
1345
1346
  return a || n;
1346
1347
  }
1347
1348
  });
1348
- var u = q, d = Y;
1349
- J(null), In(null);
1349
+ var u = K, d = J;
1350
+ q(null), Y(null);
1350
1351
  try {
1351
1352
  for (var f, p = []; a !== null && a !== t;) {
1352
1353
  try {
1353
- var m = a[ir]?.[r];
1354
+ var m = a[sr]?.[r];
1354
1355
  m != null && (!a.disabled || e.target === a) && m.call(a, e);
1355
1356
  } catch (e) {
1356
1357
  f ? p.push(e) : f = e;
@@ -1365,24 +1366,24 @@ function dr(e) {
1365
1366
  throw f;
1366
1367
  }
1367
1368
  } finally {
1368
- e[ir] = t, delete e.currentTarget, J(u), In(d);
1369
+ e[sr] = t, delete e.currentTarget, q(u), Y(d);
1369
1370
  }
1370
1371
  }
1371
1372
  }
1372
1373
  //#endregion
1373
1374
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
1374
- var fr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1375
- function pr(e) {
1376
- return fr?.createHTML(e) ?? e;
1375
+ var hr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1376
+ function gr(e) {
1377
+ return hr?.createHTML(e) ?? e;
1377
1378
  }
1378
- function mr(e) {
1379
- var t = nn("template");
1380
- return t.innerHTML = pr(e.replaceAll("<!>", "<!---->")), t.content;
1379
+ function _r(e) {
1380
+ var t = sn("template");
1381
+ return t.innerHTML = gr(e.replaceAll("<!>", "<!---->")), t.content;
1381
1382
  }
1382
1383
  //#endregion
1383
1384
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
1384
- function hr(e, t) {
1385
- var n = Y;
1385
+ function vr(e, t) {
1386
+ var n = J;
1386
1387
  n.nodes === null && (n.nodes = {
1387
1388
  start: e,
1388
1389
  end: t,
@@ -1391,61 +1392,61 @@ function hr(e, t) {
1391
1392
  });
1392
1393
  }
1393
1394
  /*#__NO_SIDE_EFFECTS__*/
1394
- function gr(e, t) {
1395
+ function yr(e, t) {
1395
1396
  var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
1396
1397
  return () => {
1397
- if (j) return hr(N, null), N;
1398
- i === void 0 && (i = mr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Jt(i)));
1399
- var t = r || Wt ? document.importNode(i, !0) : i.cloneNode(!0);
1398
+ if (P) return vr(I, null), I;
1399
+ i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Qt(i)));
1400
+ var t = r || qt ? document.importNode(i, !0) : i.cloneNode(!0);
1400
1401
  if (n) {
1401
- var o = /* @__PURE__ */ Jt(t), s = t.lastChild;
1402
- hr(o, s);
1403
- } else hr(t, t);
1402
+ var o = /* @__PURE__ */ Qt(t), s = t.lastChild;
1403
+ vr(o, s);
1404
+ } else vr(t, t);
1404
1405
  return t;
1405
1406
  };
1406
1407
  }
1407
- function _r() {
1408
- if (j) return hr(N, null), N;
1409
- var e = document.createDocumentFragment(), t = document.createComment(""), n = W();
1410
- return e.append(t, n), hr(t, n), e;
1408
+ function br() {
1409
+ if (P) return vr(I, null), I;
1410
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = Zt();
1411
+ return e.append(t, n), vr(t, n), e;
1411
1412
  }
1412
- function vr(e, t) {
1413
- if (j) {
1414
- var n = Y;
1415
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = N), F();
1413
+ function xr(e, t) {
1414
+ if (P) {
1415
+ var n = J;
1416
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), we();
1416
1417
  return;
1417
1418
  }
1418
1419
  e !== null && e.before(t);
1419
1420
  }
1420
1421
  [.../* @__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(".")];
1421
- var yr = ["touchstart", "touchmove"];
1422
- function br(e) {
1423
- return yr.includes(e);
1422
+ var Sr = ["touchstart", "touchmove"];
1423
+ function Cr(e) {
1424
+ return Sr.includes(e);
1424
1425
  }
1425
1426
  //#endregion
1426
1427
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
1427
- function xr(e) {
1428
- let t = 0, n = Pt(0), r;
1428
+ function wr(e) {
1429
+ let t = 0, n = Lt(0), r;
1429
1430
  return () => {
1430
- un() && (Q(n), vn(() => (t === 0 && (r = tr(() => e(() => Bt(n)))), t += 1, () => {
1431
- L(() => {
1432
- --t, t === 0 && (r?.(), r = void 0, Bt(n));
1431
+ mn() && (Q(n), Sn(() => (t === 0 && (r = ir(() => e(() => Ut(n)))), t += 1, () => {
1432
+ Ze(() => {
1433
+ --t, t === 0 && (r?.(), r = void 0, Ut(n));
1433
1434
  });
1434
1435
  })));
1435
1436
  };
1436
1437
  }
1437
1438
  //#endregion
1438
1439
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1439
- var Sr = le | E;
1440
- function Cr(e, t, n, r) {
1441
- new wr(e, t, n, r);
1440
+ var Tr = le | k;
1441
+ function Er(e, t, n, r) {
1442
+ new Dr(e, t, n, r);
1442
1443
  }
1443
- var wr = class {
1444
+ var Dr = class {
1444
1445
  parent;
1445
1446
  is_pending = !1;
1446
1447
  transform_error;
1447
1448
  #e;
1448
- #t = j ? N : null;
1449
+ #t = P ? I : null;
1449
1450
  #n;
1450
1451
  #r;
1451
1452
  #i;
@@ -1459,35 +1460,35 @@ var wr = class {
1459
1460
  #f = /* @__PURE__ */ new Set();
1460
1461
  #p = /* @__PURE__ */ new Set();
1461
1462
  #m = null;
1462
- #h = xr(() => (this.#m = Pt(this.#l), () => {
1463
+ #h = wr(() => (this.#m = Lt(this.#l), () => {
1463
1464
  this.#m = null;
1464
1465
  }));
1465
1466
  constructor(e, t, n, r) {
1466
1467
  this.#e = e, this.#n = t, this.#r = (e) => {
1467
- var t = Y;
1468
+ var t = J;
1468
1469
  t.b = this, t.f |= 128, n(e);
1469
- }, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
1470
- if (j) {
1470
+ }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = wn(() => {
1471
+ if (P) {
1471
1472
  let e = this.#t;
1472
- F();
1473
+ we();
1473
1474
  let t = e.data === "[!";
1474
1475
  if (e.data.startsWith("[?")) {
1475
1476
  let t = JSON.parse(e.data.slice(2));
1476
1477
  this.#_(t);
1477
1478
  } else t ? this.#y() : this.#g();
1478
1479
  } else this.#b();
1479
- }, Sr), j && (this.#e = N);
1480
+ }, Tr), P && (this.#e = I);
1480
1481
  }
1481
1482
  #g() {
1482
1483
  try {
1483
- this.#a = G(() => this.#r(this.#e));
1484
+ this.#a = W(() => this.#r(this.#e));
1484
1485
  } catch (e) {
1485
1486
  this.error(e);
1486
1487
  }
1487
1488
  }
1488
1489
  #_(e) {
1489
1490
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1490
- L(r), t && (this.#s = G(() => {
1491
+ Ze(r), t && (this.#s = W(() => {
1491
1492
  t(this.#e, () => e, () => n);
1492
1493
  }));
1493
1494
  }
@@ -1498,7 +1499,7 @@ var wr = class {
1498
1499
  Ce();
1499
1500
  return;
1500
1501
  }
1501
- t = !0, n && He(), this.#s !== null && En(this.#s, () => {
1502
+ t = !0, n && Ue(), this.#s !== null && An(this.#s, () => {
1502
1503
  this.#s = null;
1503
1504
  }), this.#S(() => {
1504
1505
  this.#b();
@@ -1510,45 +1511,45 @@ var wr = class {
1510
1511
  try {
1511
1512
  n = !0, this.#n.onerror?.(e, r), n = !1;
1512
1513
  } catch (e) {
1513
- on(e, this.#i && this.#i.parent);
1514
+ un(e, this.#i && this.#i.parent);
1514
1515
  }
1515
1516
  }
1516
1517
  };
1517
1518
  }
1518
1519
  #y() {
1519
1520
  let e = this.#n.pending;
1520
- e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), L(() => {
1521
- var e = this.#c = document.createDocumentFragment(), t = W(), n = !1;
1521
+ e && (this.is_pending = !0, this.#o = W(() => e(this.#e)), Ze(() => {
1522
+ var e = this.#c = document.createDocumentFragment(), t = Zt(), n = !1;
1522
1523
  if (e.append(t), this.#a = this.#S(() => {
1523
1524
  try {
1524
- return G(() => this.#r(t));
1525
+ return W(() => this.#r(t));
1525
1526
  } catch (e) {
1526
1527
  try {
1527
1528
  this.error(e), n = !0;
1528
1529
  } catch (e) {
1529
- on(e, this.#i.parent);
1530
+ un(e, this.#i.parent);
1530
1531
  }
1531
1532
  return null;
1532
1533
  }
1533
1534
  }), this.#a === null) {
1534
- this.#c = null, n && this.#x(B);
1535
+ this.#c = null, n && this.#x(V);
1535
1536
  return;
1536
1537
  }
1537
- this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
1538
+ this.#u === 0 && (this.#e.before(e), this.#c = null, An(this.#o, () => {
1538
1539
  this.#o = null;
1539
- }), this.#x(B));
1540
+ }), this.#x(V));
1540
1541
  }));
1541
1542
  }
1542
1543
  #b() {
1543
1544
  try {
1544
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = G(() => {
1545
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = W(() => {
1545
1546
  this.#r(this.#e);
1546
1547
  }), this.#u > 0) {
1547
1548
  var e = this.#c = document.createDocumentFragment();
1548
- An(this.#a, e);
1549
+ Pn(this.#a, e);
1549
1550
  let t = this.#n.pending;
1550
- this.#o = G(() => t(this.#e));
1551
- } else this.#x(B);
1551
+ this.#o = W(() => t(this.#e));
1552
+ } else this.#x(V);
1552
1553
  } catch (e) {
1553
1554
  this.error(e);
1554
1555
  }
@@ -1557,7 +1558,7 @@ var wr = class {
1557
1558
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1558
1559
  }
1559
1560
  defer_effect(e) {
1560
- $e(e, this.#f, this.#p);
1561
+ tt(e, this.#f, this.#p);
1561
1562
  }
1562
1563
  is_rendered() {
1563
1564
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1566,12 +1567,12 @@ var wr = class {
1566
1567
  return !!this.#n.pending;
1567
1568
  }
1568
1569
  #S(e) {
1569
- var t = Y, n = q, r = I;
1570
- In(this.#i), J(this.#i), Ue(this.#i.ctx);
1570
+ var t = J, n = K, r = R;
1571
+ Y(this.#i), q(this.#i), We(this.#i.ctx);
1571
1572
  try {
1572
- return Ct.ensure(), e();
1573
+ return Et.ensure(), e();
1573
1574
  } finally {
1574
- In(t), J(n), Ue(r);
1575
+ Y(t), q(n), We(r);
1575
1576
  }
1576
1577
  }
1577
1578
  #C(e, t) {
@@ -1579,13 +1580,13 @@ var wr = class {
1579
1580
  this.parent && this.parent.#C(e, t);
1580
1581
  return;
1581
1582
  }
1582
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
1583
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && An(this.#o, () => {
1583
1584
  this.#o = null;
1584
1585
  }), this.#c &&= (this.#e.before(this.#c), null));
1585
1586
  }
1586
1587
  update_pending_count(e, t) {
1587
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, L(() => {
1588
- this.#d = !1, this.#m && Rt(this.#m, this.#l);
1588
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ze(() => {
1589
+ this.#d = !1, this.#m && Vt(this.#m, this.#l);
1589
1590
  }));
1590
1591
  }
1591
1592
  get_effect_pending() {
@@ -1593,107 +1594,107 @@ var wr = class {
1593
1594
  }
1594
1595
  error(e) {
1595
1596
  if (!this.#n.onerror && !this.#n.failed) throw e;
1596
- B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
1597
+ 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(() => {
1597
1598
  this.#w(e);
1598
1599
  })) : this.#w(e);
1599
1600
  }
1600
1601
  #w(e) {
1601
- this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), j && (P(this.#t), Te(), P(Ee()));
1602
+ this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), P && (L(this.#t), Ee(), L(De()));
1602
1603
  let t = this.#n.failed, n = (e) => {
1603
1604
  let { reset: n, invoke_onerror: r } = this.#v(e);
1604
1605
  r(), t && (this.#s = this.#S(() => {
1605
1606
  try {
1606
- return G(() => {
1607
- var r = Y;
1607
+ return W(() => {
1608
+ var r = J;
1608
1609
  r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1609
1610
  });
1610
1611
  } catch (e) {
1611
- return on(e, this.#i.parent), null;
1612
+ return un(e, this.#i.parent), null;
1612
1613
  }
1613
1614
  }));
1614
1615
  };
1615
- L(() => {
1616
+ Ze(() => {
1616
1617
  var t;
1617
1618
  try {
1618
1619
  t = this.transform_error(e);
1619
1620
  } catch (e) {
1620
- on(e, this.#i && this.#i.parent);
1621
+ un(e, this.#i && this.#i.parent);
1621
1622
  return;
1622
1623
  }
1623
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => on(e, this.#i && this.#i.parent)) : n(t);
1624
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => un(e, this.#i && this.#i.parent)) : n(t);
1624
1625
  });
1625
1626
  }
1626
1627
  };
1627
- function Tr(e, t) {
1628
+ function Or(e, t) {
1628
1629
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1629
1630
  n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1630
1631
  }
1631
- function Er(e, t) {
1632
- return kr(e, t);
1632
+ function kr(e, t) {
1633
+ return Mr(e, t);
1633
1634
  }
1634
- function Dr(e, t) {
1635
- qt(), t.intro = t.intro ?? !1;
1636
- let n = t.target, r = j, i = N;
1635
+ function Ar(e, t) {
1636
+ Xt(), t.intro = t.intro ?? !1;
1637
+ let n = t.target, r = P, i = I;
1637
1638
  try {
1638
- for (var a = /* @__PURE__ */ Jt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Yt(a);
1639
- if (!a) throw u;
1640
- M(!0), P(a);
1641
- let r = kr(e, {
1639
+ for (var a = /* @__PURE__ */ Qt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ $t(a);
1640
+ if (!a) throw p;
1641
+ F(!0), L(a);
1642
+ let r = Mr(e, {
1642
1643
  ...t,
1643
1644
  anchor: a
1644
1645
  });
1645
- return M(!1), r;
1646
+ return F(!1), r;
1646
1647
  } catch (r) {
1647
1648
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1648
- return r !== u && console.warn("Failed to hydrate: ", r), t.recover === !1 && Le(), qt(), en(n), M(!1), Er(e, t);
1649
+ return r !== p && console.warn("Failed to hydrate: ", r), t.recover === !1 && Re(), Xt(), an(n), F(!1), kr(e, t);
1649
1650
  } finally {
1650
- M(r), P(i);
1651
- }
1652
- }
1653
- var Or = /* @__PURE__ */ new Map();
1654
- function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
1655
- qt();
1656
- var c = void 0, l = hn(() => {
1657
- var o = n ?? t.appendChild(W());
1658
- Cr(o, { pending: () => {} }, (t) => {
1659
- We({});
1660
- var n = I;
1661
- if (a && (n.c = a), i && (r.$$events = i), j && hr(t, null), c = e(t, r) || Ke(), j && (Y.nodes.end = N, N === null || N.nodeType !== 8 || N.data !== "]")) throw Se(), u;
1662
- Ge();
1651
+ F(r), L(i);
1652
+ }
1653
+ }
1654
+ var jr = /* @__PURE__ */ new Map();
1655
+ function Mr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
1656
+ Xt();
1657
+ var c = void 0, l = yn(() => {
1658
+ var o = n ?? t.appendChild(Zt());
1659
+ Er(o, { pending: () => {} }, (t) => {
1660
+ Ge({});
1661
+ var n = R;
1662
+ if (a && (n.c = a), i && (r.$$events = i), P && vr(t, null), c = e(t, r) || qe(), P && (J.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw Se(), p;
1663
+ Ke();
1663
1664
  }, s);
1664
- var l = /* @__PURE__ */ new Set(), d = (e) => {
1665
+ var l = /* @__PURE__ */ new Set(), u = (e) => {
1665
1666
  for (var n = 0; n < e.length; n++) {
1666
1667
  var r = e[n];
1667
1668
  if (!l.has(r)) {
1668
1669
  l.add(r);
1669
- var i = br(r);
1670
+ var i = Cr(r);
1670
1671
  for (let e of [t, document]) {
1671
- var a = Or.get(e);
1672
- a === void 0 && (a = /* @__PURE__ */ new Map(), Or.set(e, a));
1672
+ var a = jr.get(e);
1673
+ a === void 0 && (a = /* @__PURE__ */ new Map(), jr.set(e, a));
1673
1674
  var o = a.get(r);
1674
- o === void 0 ? (e.addEventListener(r, dr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1675
+ o === void 0 ? (e.addEventListener(r, mr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1675
1676
  }
1676
1677
  }
1677
1678
  }
1678
1679
  };
1679
- return d(g(ar)), or.add(d), () => {
1680
+ return u(y(cr)), lr.add(u), () => {
1680
1681
  for (var e of l) for (let n of [t, document]) {
1681
- var r = Or.get(n), i = r.get(e);
1682
- --i == 0 ? (n.removeEventListener(e, dr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
1682
+ var r = jr.get(n), i = r.get(e);
1683
+ --i == 0 ? (n.removeEventListener(e, mr), r.delete(e), r.size === 0 && jr.delete(n)) : r.set(e, i);
1683
1684
  }
1684
- or.delete(d), o !== n && o.parentNode?.removeChild(o);
1685
+ lr.delete(u), o !== n && o.parentNode?.removeChild(o);
1685
1686
  };
1686
1687
  });
1687
- return Ar.set(c, l), c;
1688
+ return Nr.set(c, l), c;
1688
1689
  }
1689
- var Ar = /* @__PURE__ */ new WeakMap();
1690
- function jr(e, t) {
1691
- let n = Ar.get(e);
1692
- return n ? (Ar.delete(e), n(t)) : Promise.resolve();
1690
+ var Nr = /* @__PURE__ */ new WeakMap();
1691
+ function Pr(e, t) {
1692
+ let n = Nr.get(e);
1693
+ return n ? (Nr.delete(e), n(t)) : Promise.resolve();
1693
1694
  }
1694
1695
  //#endregion
1695
1696
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1696
- var Mr = class {
1697
+ var Fr = class {
1697
1698
  anchor;
1698
1699
  #e = /* @__PURE__ */ new Map();
1699
1700
  #t = /* @__PURE__ */ new Map();
@@ -1706,73 +1707,73 @@ var Mr = class {
1706
1707
  #a = (e) => {
1707
1708
  if (this.#e.has(e)) {
1708
1709
  var t = this.#e.get(e), n = this.#t.get(t);
1709
- if (n) On(n), this.#r.delete(t);
1710
+ if (n) Mn(n), this.#r.delete(t);
1710
1711
  else {
1711
1712
  var r = this.#n.get(t);
1712
- r && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1713
+ 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);
1713
1714
  }
1714
1715
  for (let [t, n] of this.#e) {
1715
1716
  if (this.#e.delete(t), t === e) break;
1716
1717
  let r = this.#n.get(n);
1717
- r && (K(r.effect), this.#n.delete(n));
1718
+ r && (G(r.effect), this.#n.delete(n));
1718
1719
  }
1719
1720
  for (let [e, r] of this.#t) {
1720
1721
  if (e === t || this.#r.has(e)) continue;
1721
1722
  let i = () => {
1722
1723
  if (Array.from(this.#e.values()).includes(e)) {
1723
1724
  var t = document.createDocumentFragment();
1724
- An(r, t), t.append(W()), this.#n.set(e, {
1725
+ Pn(r, t), t.append(Zt()), this.#n.set(e, {
1725
1726
  effect: r,
1726
1727
  fragment: t
1727
1728
  });
1728
- } else K(r);
1729
+ } else G(r);
1729
1730
  this.#r.delete(e), this.#t.delete(e);
1730
1731
  };
1731
- this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
1732
+ this.#i || !n ? (this.#r.add(e), An(r, i, !1)) : i();
1732
1733
  }
1733
1734
  }
1734
1735
  };
1735
1736
  #o = (e) => {
1736
1737
  this.#e.delete(e);
1737
1738
  let t = Array.from(this.#e.values());
1738
- for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1739
+ for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1739
1740
  };
1740
1741
  ensure(e, t) {
1741
- var n = B, r = tn();
1742
+ var n = V, r = on();
1742
1743
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1743
1744
  if (r) {
1744
- var i = document.createDocumentFragment(), a = W();
1745
+ var i = document.createDocumentFragment(), a = Zt();
1745
1746
  i.append(a), this.#n.set(e, {
1746
- effect: G(() => t(a)),
1747
+ effect: W(() => t(a)),
1747
1748
  fragment: i
1748
1749
  });
1749
- } else this.#t.set(e, G(() => t(this.anchor)));
1750
+ } else this.#t.set(e, W(() => t(this.anchor)));
1750
1751
  }
1751
1752
  if (this.#e.set(n, e), r) {
1752
1753
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1753
1754
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1754
1755
  n.oncommit(this.#a), n.ondiscard(this.#o);
1755
- } else j && (this.anchor = N), this.#a(n);
1756
+ } else P && (this.anchor = I), this.#a(n);
1756
1757
  }
1757
1758
  };
1758
1759
  //#endregion
1759
1760
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
1760
- function Nr(e, t, n = !1) {
1761
+ function Ir(e, t, n = !1) {
1761
1762
  var r;
1762
- j && (r = N, F());
1763
- var i = new Mr(e), a = n ? le : 0;
1763
+ P && (r = I, we());
1764
+ var i = new Fr(e), a = n ? le : 0;
1764
1765
  function o(e, t) {
1765
- if (j) {
1766
- var n = De(r);
1766
+ if (P) {
1767
+ var n = Oe(r);
1767
1768
  if (e !== parseInt(n.substring(1))) {
1768
- var a = Ee();
1769
- P(a), i.anchor = a, M(!1), i.ensure(e, t), M(!0);
1769
+ var a = De();
1770
+ L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
1770
1771
  return;
1771
1772
  }
1772
1773
  }
1773
1774
  i.ensure(e, t);
1774
1775
  }
1775
- bn(() => {
1776
+ wn(() => {
1776
1777
  var e = !1;
1777
1778
  t((t, n = 0) => {
1778
1779
  e = !0, o(n, t);
@@ -1781,14 +1782,14 @@ function Nr(e, t, n = !1) {
1781
1782
  }
1782
1783
  //#endregion
1783
1784
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/each.js
1784
- function Pr(e, t, n) {
1785
+ function Lr(e, t, n) {
1785
1786
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1786
1787
  let n = t[s];
1787
- En(n, () => {
1788
+ An(n, () => {
1788
1789
  if (a) {
1789
1790
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1790
1791
  var t = e.outrogroups;
1791
- Fr(e, g(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1792
+ Rr(e, y(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1792
1793
  }
1793
1794
  } else --o;
1794
1795
  }, !1);
@@ -1797,15 +1798,15 @@ function Pr(e, t, n) {
1797
1798
  var c = r.length === 0 && n !== null && e.pending.size === 0;
1798
1799
  if (c) {
1799
1800
  var l = n, u = l.parentNode;
1800
- en(u), u.append(l), e.items.clear();
1801
+ an(u), u.append(l), e.items.clear();
1801
1802
  }
1802
- Fr(e, t, !c);
1803
+ Rr(e, t, !c);
1803
1804
  } else a = {
1804
1805
  pending: new Set(t),
1805
1806
  done: /* @__PURE__ */ new Set()
1806
1807
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1807
1808
  }
1808
- function Fr(e, t, n = !0) {
1809
+ function Rr(e, t, n = !0) {
1809
1810
  var r;
1810
1811
  if (e.pending.size > 0) {
1811
1812
  r = /* @__PURE__ */ new Set();
@@ -1813,47 +1814,47 @@ function Fr(e, t, n = !0) {
1813
1814
  }
1814
1815
  for (var i = 0; i < t.length; i++) {
1815
1816
  var a = t[i];
1816
- r?.has(a) ? (a.f |= de, An(a, document.createDocumentFragment())) : K(t[i], n);
1817
+ r?.has(a) ? (a.f |= A, Pn(a, document.createDocumentFragment())) : G(t[i], n);
1817
1818
  }
1818
1819
  }
1819
- var Ir;
1820
- function Lr(e, t, n, r, i, a = null) {
1820
+ var zr;
1821
+ function Br(e, t, n, r, i, a = null) {
1821
1822
  var o = e, s = /* @__PURE__ */ new Map();
1822
1823
  if (t & 4) {
1823
1824
  var c = e;
1824
- o = j ? P(/* @__PURE__ */ Jt(c)) : c.appendChild(W());
1825
+ o = P ? L(/* @__PURE__ */ Qt(c)) : c.appendChild(Zt());
1825
1826
  }
1826
- j && F();
1827
- var l = null, u = /* @__PURE__ */ ct(() => {
1827
+ P && we();
1828
+ var l = null, u = /* @__PURE__ */ ut(() => {
1828
1829
  var e = n();
1829
- return p(e) ? e : e == null ? [] : g(e);
1830
- }), d, f = /* @__PURE__ */ new Map(), m = !0;
1831
- function h(e) {
1832
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = l, zr(v, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= de, Vr(l, null, o)) : On(l) : En(l, () => {
1830
+ return g(e) ? e : e == null ? [] : y(e);
1831
+ }), d, f = /* @__PURE__ */ new Map(), p = !0;
1832
+ function m(e) {
1833
+ _.effect.f & 16384 || (_.pending.delete(e), _.fallback = l, Hr(_, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= A, Wr(l, null, o)) : Mn(l) : An(l, () => {
1833
1834
  l = null;
1834
1835
  })));
1835
1836
  }
1836
- function _(e) {
1837
- v.pending.delete(e);
1837
+ function h(e) {
1838
+ _.pending.delete(e);
1838
1839
  }
1839
- var v = {
1840
- effect: bn(() => {
1840
+ var _ = {
1841
+ effect: wn(() => {
1841
1842
  d = Q(u);
1842
1843
  var e = d.length;
1843
1844
  let c = !1;
1844
- j && De(o) === "[!" != (e === 0) && (o = Ee(), P(o), M(!1), c = !0);
1845
- for (var p = /* @__PURE__ */ new Set(), g = B, v = tn(), y = 0; y < e; y += 1) {
1846
- j && N.nodeType === 8 && N.data === "]" && (o = N, c = !0, M(!1));
1847
- var ee = d[y], b = r(ee, y), x = m ? null : s.get(b);
1848
- x ? (x.v && Rt(x.v, ee), x.i && Rt(x.i, y), v && g.unskip_effect(x.e)) : (x = Br(s, m ? o : Ir ??= W(), ee, b, y, i, t, n), m || (x.e.f |= de), s.set(b, x)), p.add(b);
1845
+ P && Oe(o) === "[!" != (e === 0) && (o = De(), L(o), F(!1), c = !0);
1846
+ for (var g = /* @__PURE__ */ new Set(), _ = V, v = on(), y = 0; y < e; y += 1) {
1847
+ P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
1848
+ var b = d[y], x = r(b, y), S = p ? null : s.get(x);
1849
+ S ? (S.v && Vt(S.v, b), S.i && Vt(S.i, y), v && _.unskip_effect(S.e)) : (S = Ur(s, p ? o : zr ??= Zt(), b, x, y, i, t, n), p || (S.e.f |= A), s.set(x, S)), g.add(x);
1849
1850
  }
1850
- if (e === 0 && a && !l && (m ? l = G(() => a(o)) : (l = G(() => a(Ir ??= W())), l.f |= de)), e > p.size && Me("", "", ""), j && e > 0 && P(Ee()), !m) {
1851
- if (f.set(g, p), v) {
1852
- for (let [e, t] of s) p.has(e) || g.skip_effect(t.e);
1853
- g.oncommit(h), g.ondiscard(_);
1854
- } else h(g);
1851
+ if (e === 0 && a && !l && (p ? l = W(() => a(o)) : (l = W(() => a(zr ??= Zt())), l.f |= A)), e > g.size && Ne("", "", ""), P && e > 0 && L(De()), !p) {
1852
+ if (f.set(_, g), v) {
1853
+ for (let [e, t] of s) g.has(e) || _.skip_effect(t.e);
1854
+ _.oncommit(m), _.ondiscard(h);
1855
+ } else m(_);
1855
1856
  }
1856
- c && M(!0), Q(u);
1857
+ c && F(!0), Q(u);
1857
1858
  }),
1858
1859
  flags: t,
1859
1860
  items: s,
@@ -1861,106 +1862,106 @@ function Lr(e, t, n, r, i, a = null) {
1861
1862
  outrogroups: null,
1862
1863
  fallback: l
1863
1864
  };
1864
- m = !1, j && (o = N);
1865
+ p = !1, P && (o = I);
1865
1866
  }
1866
- function Rr(e) {
1867
+ function Vr(e) {
1867
1868
  for (; e !== null && !(e.f & 32);) e = e.next;
1868
1869
  return e;
1869
1870
  }
1870
- function zr(e, t, n, r, i) {
1871
- var a = !!(r & 8), o = t.length, s = e.items, c = Rr(e.effect.first), l, u = null, d, f = [], p = [], m, h, _, v;
1872
- if (a) for (v = 0; v < o; v += 1) m = t[v], h = i(m, v), _ = s.get(h).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
1873
- for (v = 0; v < o; v += 1) {
1874
- if (m = t[v], h = i(m, v), _ = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1875
- if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1876
- if (_.f ^= de, _ === c) Vr(_, null, n);
1871
+ function Hr(e, t, n, r, i) {
1872
+ var a = !!(r & 8), o = t.length, s = e.items, c = Vr(e.effect.first), l, u = null, d, f = [], p = [], m, h, g, _;
1873
+ if (a) for (_ = 0; _ < o; _ += 1) m = t[_], h = i(m, _), g = s.get(h).e, g.f & 33554432 || (g.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(g));
1874
+ for (_ = 0; _ < o; _ += 1) {
1875
+ if (m = t[_], h = i(m, _), g = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(g), t.done.delete(g);
1876
+ if (g.f & 8192 && (Mn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) {
1877
+ if (g.f ^= A, g === c) Wr(g, null, n);
1877
1878
  else {
1878
- var y = u ? u.next : c;
1879
- _ === 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 = _, f = [], p = [], c = Rr(u.next);
1879
+ var v = u ? u.next : c;
1880
+ g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Gr(e, u, g), Gr(e, g, v), Wr(g, v, n), u = g, f = [], p = [], c = Vr(u.next);
1880
1881
  continue;
1881
1882
  }
1882
1883
  }
1883
- if (_ !== c) {
1884
- if (l !== void 0 && l.has(_)) {
1884
+ if (g !== c) {
1885
+ if (l !== void 0 && l.has(g)) {
1885
1886
  if (f.length < p.length) {
1886
- var ee = p[0], b;
1887
- u = ee.prev;
1888
- var x = f[0], te = f[f.length - 1];
1889
- for (b = 0; b < f.length; b += 1) Vr(f[b], ee, n);
1890
- for (b = 0; b < p.length; b += 1) l.delete(p[b]);
1891
- Hr(e, x.prev, te.next), Hr(e, u, x), Hr(e, te, ee), c = ee, u = te, --v, f = [], p = [];
1892
- } else l.delete(_), Vr(_, c, n), Hr(e, _.prev, _.next), Hr(e, _, u === null ? e.effect.first : u.next), Hr(e, u, _), u = _;
1887
+ var b = p[0], x;
1888
+ u = b.prev;
1889
+ var S = f[0], ee = f[f.length - 1];
1890
+ for (x = 0; x < f.length; x += 1) Wr(f[x], b, n);
1891
+ for (x = 0; x < p.length; x += 1) l.delete(p[x]);
1892
+ Gr(e, S.prev, ee.next), Gr(e, u, S), Gr(e, ee, b), c = b, u = ee, --_, f = [], p = [];
1893
+ } else l.delete(g), Wr(g, c, n), Gr(e, g.prev, g.next), Gr(e, g, u === null ? e.effect.first : u.next), Gr(e, u, g), u = g;
1893
1894
  continue;
1894
1895
  }
1895
- for (f = [], p = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c = Rr(c.next);
1896
+ for (f = [], p = []; c !== null && c !== g;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c = Vr(c.next);
1896
1897
  if (c === null) continue;
1897
1898
  }
1898
- _.f & 33554432 || f.push(_), u = _, c = Rr(_.next);
1899
+ g.f & 33554432 || f.push(g), u = g, c = Vr(g.next);
1899
1900
  }
1900
1901
  if (e.outrogroups !== null) {
1901
- for (let t of e.outrogroups) t.pending.size === 0 && (Fr(e, g(t.done)), e.outrogroups?.delete(t));
1902
+ for (let t of e.outrogroups) t.pending.size === 0 && (Rr(e, y(t.done)), e.outrogroups?.delete(t));
1902
1903
  e.outrogroups.size === 0 && (e.outrogroups = null);
1903
1904
  }
1904
1905
  if (c !== null || l !== void 0) {
1905
- var ne = [];
1906
- if (l !== void 0) for (_ of l) _.f & 8192 || ne.push(_);
1907
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && ne.push(c), c = Rr(c.next);
1908
- var re = ne.length;
1909
- if (re > 0) {
1910
- var ie = r & 4 && o === 0 ? n : null;
1906
+ var te = [];
1907
+ if (l !== void 0) for (g of l) g.f & 8192 || te.push(g);
1908
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && te.push(c), c = Vr(c.next);
1909
+ var ne = te.length;
1910
+ if (ne > 0) {
1911
+ var re = r & 4 && o === 0 ? n : null;
1911
1912
  if (a) {
1912
- for (v = 0; v < re; v += 1) ne[v].nodes?.a?.measure();
1913
- for (v = 0; v < re; v += 1) ne[v].nodes?.a?.fix();
1913
+ for (_ = 0; _ < ne; _ += 1) te[_].nodes?.a?.measure();
1914
+ for (_ = 0; _ < ne; _ += 1) te[_].nodes?.a?.fix();
1914
1915
  }
1915
- Pr(e, ne, ie);
1916
+ Lr(e, te, re);
1916
1917
  }
1917
1918
  }
1918
- a && L(() => {
1919
- if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
1919
+ a && Ze(() => {
1920
+ if (d !== void 0) for (g of d) g.nodes?.a?.apply();
1920
1921
  });
1921
1922
  }
1922
- function Br(e, t, n, r, i, a, o, s) {
1923
- var c = o & 1 ? o & 16 ? Pt(n) : /* @__PURE__ */ Ft(n, !1, !1) : null, l = o & 2 ? Pt(i) : null;
1923
+ function Ur(e, t, n, r, i, a, o, s) {
1924
+ var c = o & 1 ? o & 16 ? Lt(n) : /* @__PURE__ */ Rt(n, !1, !1) : null, l = o & 2 ? Lt(i) : null;
1924
1925
  return {
1925
1926
  v: c,
1926
1927
  i: l,
1927
- e: G(() => (a(t, c ?? n, l ?? i, s), () => {
1928
+ e: W(() => (a(t, c ?? n, l ?? i, s), () => {
1928
1929
  e.delete(r);
1929
1930
  }))
1930
1931
  };
1931
1932
  }
1932
- function Vr(e, t, n) {
1933
+ function Wr(e, t, n) {
1933
1934
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1934
- var o = /* @__PURE__ */ Yt(r);
1935
+ var o = /* @__PURE__ */ $t(r);
1935
1936
  if (a.before(r), r === i) return;
1936
1937
  r = o;
1937
1938
  }
1938
1939
  }
1939
- function Hr(e, t, n) {
1940
+ function Gr(e, t, n) {
1940
1941
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1941
1942
  }
1942
1943
  //#endregion
1943
1944
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
1944
- function Ur(e, t) {
1945
- gn(() => {
1946
- e = Y?.parent?.nodes?.start ?? e;
1945
+ function Kr(e, t) {
1946
+ bn(() => {
1947
+ e = J?.parent?.nodes?.start ?? e;
1947
1948
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1948
1949
  if (!r.querySelector("#" + t.hash)) {
1949
- let e = nn("style");
1950
+ let e = sn("style");
1950
1951
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1951
1952
  }
1952
1953
  });
1953
1954
  }
1954
1955
  //#endregion
1955
1956
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/actions.js
1956
- function Wr(e, t, n) {
1957
- gn(() => {
1958
- var r = tr(() => t(e, n?.()) || {});
1957
+ function qr(e, t, n) {
1958
+ bn(() => {
1959
+ var r = ir(() => t(e, n?.()) || {});
1959
1960
  if (n && r?.update) {
1960
1961
  var i = !1, a = {};
1961
- vn(() => {
1962
+ Sn(() => {
1962
1963
  var e = n();
1963
- nr(e), i && ke(a, e) && (a = e, r.update(e));
1964
+ ar(e), i && Ae(a, e) && (a = e, r.update(e));
1964
1965
  }), i = !0;
1965
1966
  }
1966
1967
  if (r?.destroy) return () => r.destroy();
@@ -1968,19 +1969,19 @@ function Wr(e, t, n) {
1968
1969
  }
1969
1970
  //#endregion
1970
1971
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/attributes.js
1971
- var Gr = [..." \n\r\f\xA0\v"];
1972
- function Kr(e, t, n) {
1972
+ var Jr = [..." \n\r\f\xA0\v"];
1973
+ function Yr(e, t, n) {
1973
1974
  var r = e == null ? "" : "" + e;
1974
1975
  if (t && (r = r ? r + " " + t : t), n) {
1975
1976
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1976
1977
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1977
1978
  var s = o + a;
1978
- (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;
1979
+ (o === 0 || Jr.includes(r[o - 1])) && (s === r.length || Jr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1979
1980
  }
1980
1981
  }
1981
1982
  return r === "" ? null : r;
1982
1983
  }
1983
- function qr(e, t = !1) {
1984
+ function Xr(e, t = !1) {
1984
1985
  var n = t ? " !important;" : ";", r = "";
1985
1986
  for (var i of Object.keys(e)) {
1986
1987
  var a = e[i];
@@ -1988,16 +1989,16 @@ function qr(e, t = !1) {
1988
1989
  }
1989
1990
  return r;
1990
1991
  }
1991
- function Jr(e) {
1992
+ function Zr(e) {
1992
1993
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1993
1994
  }
1994
- function Yr(e, t) {
1995
+ function Qr(e, t) {
1995
1996
  if (t) {
1996
1997
  var n = "", r, i;
1997
1998
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
1998
1999
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
1999
2000
  var a = !1, o = 0, s = !1, c = [];
2000
- r && c.push(...Object.keys(r).map(Jr)), i && c.push(...Object.keys(i).map(Jr));
2001
+ r && c.push(...Object.keys(r).map(Zr)), i && c.push(...Object.keys(i).map(Zr));
2001
2002
  var l = 0, u = -1;
2002
2003
  let t = e.length;
2003
2004
  for (var d = 0; d < t; d++) {
@@ -2006,7 +2007,7 @@ function Yr(e, t) {
2006
2007
  if (f === ":" && u === -1) u = d;
2007
2008
  else if (f === ";" || d === t - 1) {
2008
2009
  if (u !== -1) {
2009
- var p = Jr(e.substring(l, u).trim());
2010
+ var p = Zr(e.substring(l, u).trim());
2010
2011
  if (!c.includes(p)) {
2011
2012
  f !== ";" && d++;
2012
2013
  var m = e.substring(l, d).trim();
@@ -2018,17 +2019,17 @@ function Yr(e, t) {
2018
2019
  }
2019
2020
  }
2020
2021
  }
2021
- return r && (n += qr(r)), i && (n += qr(i, !0)), n = n.trim(), n === "" ? null : n;
2022
+ return r && (n += Xr(r)), i && (n += Xr(i, !0)), n = n.trim(), n === "" ? null : n;
2022
2023
  }
2023
2024
  return e == null ? null : String(e);
2024
2025
  }
2025
2026
  //#endregion
2026
2027
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/class.js
2027
- function Xr(e, t, n, r, i, a) {
2028
- var o = e[ge];
2029
- if (j || o !== n || o === void 0) {
2030
- var s = Kr(n, r, a);
2031
- (!j || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ge] = n;
2028
+ function $r(e, t, n, r, i, a) {
2029
+ var o = e[_e];
2030
+ if (P || o !== n || o === void 0) {
2031
+ var s = Yr(n, r, a);
2032
+ (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[_e] = n;
2032
2033
  } else if (a && i !== a) for (var c in a) {
2033
2034
  var l = !!a[c];
2034
2035
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2037,72 +2038,72 @@ function Xr(e, t, n, r, i, a) {
2037
2038
  }
2038
2039
  //#endregion
2039
2040
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/style.js
2040
- function Zr(e, t = {}, n, r) {
2041
+ function ei(e, t = {}, n, r) {
2041
2042
  for (var i in n) {
2042
2043
  var a = n[i];
2043
2044
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2044
2045
  }
2045
2046
  }
2046
- function Qr(e, t, n, r) {
2047
- var i = e[_e];
2048
- if (j || i !== t) {
2049
- var a = Yr(t, r);
2050
- (!j || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[_e] = t;
2051
- } else r && (Array.isArray(r) ? (Zr(e, n?.[0], r[0]), Zr(e, n?.[1], r[1], "important")) : Zr(e, n, r));
2047
+ function ti(e, t, n, r) {
2048
+ var i = e[N];
2049
+ if (P || i !== t) {
2050
+ var a = Qr(t, r);
2051
+ (!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[N] = t;
2052
+ } else r && (Array.isArray(r) ? (ei(e, n?.[0], r[0]), ei(e, n?.[1], r[1], "important")) : ei(e, n, r));
2052
2053
  return r;
2053
2054
  }
2054
2055
  //#endregion
2055
2056
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2056
- var $r = Symbol("is custom element"), ei = Symbol("is html"), ti = be ? "link" : "LINK";
2057
+ var ni = Symbol("is custom element"), ri = Symbol("is html"), ii = be ? "link" : "LINK";
2057
2058
  function $(e, t, n, r) {
2058
- var i = ri(e);
2059
- j && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ti) || i[t] !== (i[t] = n) && (t === "loading" && (e[me] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ai(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2059
+ var i = oi(e);
2060
+ P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ii) || i[t] !== (i[t] = n) && (t === "loading" && (e[he] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ci(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2060
2061
  }
2061
- function ni(e, t, n) {
2062
- var r = q, i = Y;
2063
- let a = j;
2064
- j && M(!1), J(null), In(null);
2062
+ function ai(e, t, n) {
2063
+ var r = K, i = J;
2064
+ let a = P;
2065
+ P && F(!1), q(null), Y(null);
2065
2066
  try {
2066
- t !== "style" && (ii.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ai(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
2067
+ t !== "style" && (si.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ci(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
2067
2068
  } finally {
2068
- J(r), In(i), a && M(!0);
2069
+ q(r), Y(i), a && F(!0);
2069
2070
  }
2070
2071
  }
2071
- function ri(e) {
2072
- return e[he] ??= {
2073
- [$r]: e.nodeName.includes("-"),
2074
- [ei]: e.namespaceURI === f
2072
+ function oi(e) {
2073
+ return e[ge] ??= {
2074
+ [ni]: e.nodeName.includes("-"),
2075
+ [ri]: e.namespaceURI === h
2075
2076
  };
2076
2077
  }
2077
- var ii = /* @__PURE__ */ new Map();
2078
- function ai(e) {
2079
- var t = e.getAttribute("is") || e.nodeName, n = ii.get(t);
2078
+ var si = /* @__PURE__ */ new Map();
2079
+ function ci(e) {
2080
+ var t = e.getAttribute("is") || e.nodeName, n = si.get(t);
2080
2081
  if (n) return n;
2081
- ii.set(t, n = /* @__PURE__ */ new Set());
2082
+ si.set(t, n = /* @__PURE__ */ new Set());
2082
2083
  for (var r, i = e, a = Element.prototype; a !== i;) {
2083
2084
  for (var o in r = ee(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
2084
- i = te(i);
2085
+ i = re(i);
2085
2086
  }
2086
2087
  return n;
2087
2088
  }
2088
2089
  //#endregion
2089
2090
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2090
- function oi(e, t) {
2091
- return e === t || e?.[k] === t;
2091
+ function li(e, t) {
2092
+ return e === t || e?.[fe] === t;
2092
2093
  }
2093
- function si(e = Ke(), t, n, r) {
2094
- var i = I.r, a = Y;
2095
- return gn(() => {
2094
+ function ui(e = qe(), t, n, r) {
2095
+ var i = R.r, a = J;
2096
+ return bn(() => {
2096
2097
  var o, s;
2097
- return vn(() => {
2098
- o = s, s = r?.() || [], tr(() => {
2099
- oi(n(...s), e) || (t(e, ...s), o && oi(n(...o), e) && t(null, ...o));
2098
+ return Sn(() => {
2099
+ o = s, s = r?.() || [], ir(() => {
2100
+ li(n(...s), e) || (t(e, ...s), o && li(n(...o), e) && t(null, ...o));
2100
2101
  });
2101
2102
  }), () => {
2102
2103
  let r = a;
2103
2104
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2104
2105
  let o = () => {
2105
- s && oi(n(...s), e) && t(null, ...s);
2106
+ s && li(n(...s), e) && t(null, ...s);
2106
2107
  }, c = r.teardown;
2107
2108
  r.teardown = () => {
2108
2109
  o(), c?.();
@@ -2112,26 +2113,26 @@ function si(e = Ke(), t, n, r) {
2112
2113
  }
2113
2114
  //#endregion
2114
2115
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
2115
- var ci = !1;
2116
- function li(e) {
2117
- var t = ci;
2116
+ var di = !1;
2117
+ function fi(e) {
2118
+ var t = di;
2118
2119
  try {
2119
- return ci = !1, [e(), ci];
2120
+ return di = !1, [e(), di];
2120
2121
  } finally {
2121
- ci = t;
2122
+ di = t;
2122
2123
  }
2123
2124
  }
2124
2125
  //#endregion
2125
2126
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
2126
- function ui(e, t, n, r) {
2127
- var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ at(r), Q(l)) : (c && (c = !1, s = o ? tr(r) : r), s);
2127
+ function pi(e, t, n, r) {
2128
+ var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ st(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
2128
2129
  let d;
2129
2130
  if (a) {
2130
- var f = k in e || pe in e;
2131
- d = y(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2131
+ var f = fe in e || me in e;
2132
+ d = S(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2132
2133
  }
2133
2134
  var p, m = !1;
2134
- a ? [p, m] = li(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Re(t), d(p)));
2135
+ a ? [p, m] = fi(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && ze(t), d(p)));
2135
2136
  var h = i ? () => {
2136
2137
  var n = e[t];
2137
2138
  return n === void 0 ? u() : (c = !0, n);
@@ -2146,28 +2147,28 @@ function ui(e, t, n, r) {
2146
2147
  return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
2147
2148
  });
2148
2149
  }
2149
- var _ = !1, v = (n & 1 ? at : ct)(() => (_ = !1, h()));
2150
+ var _ = !1, v = (n & 1 ? st : ut)(() => (_ = !1, h()));
2150
2151
  a && Q(v);
2151
- var ee = Y;
2152
+ var y = J;
2152
2153
  return (function(e, t) {
2153
2154
  if (arguments.length > 0) {
2154
- let n = t ? Q(v) : i && a ? Ht(e) : e;
2155
+ let n = t ? Q(v) : i && a ? Gt(e) : e;
2155
2156
  return U(v, n), _ = !0, s !== void 0 && (s = n), e;
2156
2157
  }
2157
- return Nn && _ || ee.f & 16384 ? v.v : Q(v);
2158
+ return Ln && _ || y.f & 16384 ? v.v : Q(v);
2158
2159
  });
2159
2160
  }
2160
2161
  //#endregion
2161
2162
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
2162
- function di(e) {
2163
- return new fi(e);
2163
+ function mi(e) {
2164
+ return new hi(e);
2164
2165
  }
2165
- var fi = class {
2166
+ var hi = class {
2166
2167
  #e;
2167
2168
  #t;
2168
2169
  constructor(e) {
2169
2170
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2170
- var r = /* @__PURE__ */ Ft(n, !1, !1);
2171
+ var r = /* @__PURE__ */ Rt(n, !1, !1);
2171
2172
  return t.set(e, r), r;
2172
2173
  };
2173
2174
  let r = new Proxy({
@@ -2178,13 +2179,13 @@ var fi = class {
2178
2179
  return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
2179
2180
  },
2180
2181
  has(e, r) {
2181
- return r === pe || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2182
+ return r === me || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2182
2183
  },
2183
2184
  set(e, r, i) {
2184
2185
  return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2185
2186
  }
2186
2187
  });
2187
- this.#t = (e.hydrate ? Dr : Er)(e.component, {
2188
+ this.#t = (e.hydrate ? Ar : kr)(e.component, {
2188
2189
  target: e.target,
2189
2190
  anchor: e.anchor,
2190
2191
  props: r,
@@ -2192,8 +2193,8 @@ var fi = class {
2192
2193
  intro: e.intro ?? !1,
2193
2194
  recover: e.recover,
2194
2195
  transformError: e.transformError
2195
- }), (!e?.props?.$$host || e.sync === !1) && wt(), this.#e = r.$$events;
2196
- for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && v(this, e, {
2196
+ }), (!e?.props?.$$host || e.sync === !1) && Dt(), this.#e = r.$$events;
2197
+ for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && x(this, e, {
2197
2198
  get() {
2198
2199
  return this.#t[e];
2199
2200
  },
@@ -2205,7 +2206,7 @@ var fi = class {
2205
2206
  this.#t.$set = (e) => {
2206
2207
  Object.assign(r, e);
2207
2208
  }, this.#t.$destroy = () => {
2208
- jr(this.#t);
2209
+ Pr(this.#t);
2209
2210
  };
2210
2211
  }
2211
2212
  $set(e) {
@@ -2221,8 +2222,8 @@ var fi = class {
2221
2222
  $destroy() {
2222
2223
  this.#t.$destroy();
2223
2224
  }
2224
- }, pi;
2225
- typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2225
+ }, gi;
2226
+ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
2226
2227
  $$ctor;
2227
2228
  $$s;
2228
2229
  $$c;
@@ -2255,18 +2256,18 @@ typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2255
2256
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2256
2257
  function e(e) {
2257
2258
  return (t) => {
2258
- let n = nn("slot");
2259
- e !== "default" && (n.name = e), vr(t, n);
2259
+ let n = sn("slot");
2260
+ e !== "default" && (n.name = e), xr(t, n);
2260
2261
  };
2261
2262
  }
2262
- let t = {}, n = hi(this);
2263
+ let t = {}, n = vi(this);
2263
2264
  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));
2264
2265
  for (let e of this.attributes) {
2265
2266
  let t = this.$$g_p(e.name);
2266
- t in this.$$d || (this.$$d[t] = mi(t, e.value, this.$$p_d, "toProp"));
2267
+ t in this.$$d || (this.$$d[t] = _i(t, e.value, this.$$p_d, "toProp"));
2267
2268
  }
2268
2269
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2269
- this.$$c = di({
2270
+ this.$$c = mi({
2270
2271
  component: this.$$ctor,
2271
2272
  target: this.$$shadowRoot || this,
2272
2273
  props: {
@@ -2274,13 +2275,13 @@ typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2274
2275
  $$slots: t,
2275
2276
  $$host: this
2276
2277
  }
2277
- }), this.$$me = mn(() => {
2278
- vn(() => {
2278
+ }), this.$$me = vn(() => {
2279
+ Sn(() => {
2279
2280
  this.$$r = !0;
2280
- for (let e of _(this.$$c)) {
2281
+ for (let e of b(this.$$c)) {
2281
2282
  if (!this.$$p_d[e]?.reflect) continue;
2282
2283
  this.$$d[e] = this.$$c[e];
2283
- let t = mi(e, this.$$d[e], this.$$p_d, "toAttribute");
2284
+ let t = _i(e, this.$$d[e], this.$$p_d, "toAttribute");
2284
2285
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2285
2286
  }
2286
2287
  this.$$r = !1;
@@ -2294,7 +2295,7 @@ typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2294
2295
  }
2295
2296
  }
2296
2297
  attributeChangedCallback(e, t, n) {
2297
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = mi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2298
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = _i(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2298
2299
  }
2299
2300
  disconnectedCallback() {
2300
2301
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2302,10 +2303,10 @@ typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2302
2303
  });
2303
2304
  }
2304
2305
  $$g_p(e) {
2305
- return _(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2306
+ return b(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2306
2307
  }
2307
2308
  });
2308
- function mi(e, t, n, r) {
2309
+ function _i(e, t, n, r) {
2309
2310
  let i = n[e]?.type;
2310
2311
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2311
2312
  if (r === "toAttribute") switch (i) {
@@ -2323,66 +2324,66 @@ function mi(e, t, n, r) {
2323
2324
  default: return t;
2324
2325
  }
2325
2326
  }
2326
- function hi(e) {
2327
+ function vi(e) {
2327
2328
  let t = {};
2328
2329
  return e.childNodes.forEach((e) => {
2329
2330
  t[e.slot || "default"] = !0;
2330
2331
  }), t;
2331
2332
  }
2332
- function gi(e, t, n, r, i, a) {
2333
- let o = class extends pi {
2333
+ function yi(e, t, n, r, i, a) {
2334
+ let o = class extends gi {
2334
2335
  constructor() {
2335
2336
  super(e, n, i), this.$$p_d = t;
2336
2337
  }
2337
2338
  static get observedAttributes() {
2338
- return _(t).map((e) => (t[e].attribute || e).toLowerCase());
2339
+ return b(t).map((e) => (t[e].attribute || e).toLowerCase());
2339
2340
  }
2340
2341
  };
2341
- return _(t).forEach((e) => {
2342
- v(o.prototype, e, {
2342
+ return b(t).forEach((e) => {
2343
+ x(o.prototype, e, {
2343
2344
  get() {
2344
2345
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2345
2346
  },
2346
2347
  set(n) {
2347
- n = mi(e, n, t), this.$$d[e] = n;
2348
+ n = _i(e, n, t), this.$$d[e] = n;
2348
2349
  var r = this.$$c;
2349
- r && (y(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2350
+ r && (S(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2350
2351
  }
2351
2352
  });
2352
2353
  }), r.forEach((e) => {
2353
- v(o.prototype, e, { get() {
2354
+ x(o.prototype, e, { get() {
2354
2355
  return this.$$c?.[e];
2355
2356
  } });
2356
2357
  }), a && (o = a(o)), e.element = o, o;
2357
2358
  }
2358
2359
  //#endregion
2359
2360
  //#region tool-tts-inline.svelte
2360
- var _i = /* @__PURE__ */ gr("<nds-icon-button></nds-icon-button>", 2), vi = /* @__PURE__ */ gr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), yi = /* @__PURE__ */ gr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-9msc39\"><!></span>"), bi = /* @__PURE__ */ gr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39\"><span class=\"pie-tool-tts-inline__speed-label svelte-9msc39\"> </span></button>"), xi = /* @__PURE__ */ gr("<div role=\"radiogroup\"></div>"), Si = /* @__PURE__ */ gr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button></div>"), Ci = /* @__PURE__ */ gr("<!> <!>", 1), wi = /* @__PURE__ */ gr("<div><!> <div class=\"pie-sr-only svelte-9msc39\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ti = {
2361
+ var bi = /* @__PURE__ */ yr("<nds-icon-button></nds-icon-button>", 2), xi = /* @__PURE__ */ yr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Si = /* @__PURE__ */ yr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-9msc39\"><!></span>"), Ci = /* @__PURE__ */ yr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39\"><span class=\"pie-tool-tts-inline__speed-label svelte-9msc39\"> </span></button>"), wi = /* @__PURE__ */ yr("<div role=\"radiogroup\"></div>"), Ti = /* @__PURE__ */ yr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-9msc39\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button></div>"), Ei = /* @__PURE__ */ yr("<!> <!>", 1), Di = /* @__PURE__ */ yr("<div><!> <div class=\"pie-sr-only svelte-9msc39\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Oi = {
2361
2362
  hash: "svelte-9msc39",
2362
- 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 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-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {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. */.pie-tool-tts-inline__trigger-zoom.svelte-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {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-9msc39 {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-9msc39 {\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, 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-9msc39 {--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-9msc39:hover:not(:disabled) {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-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-9msc39 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-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);padding:0.25rem 0.5rem;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-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {\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-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid 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-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;\n /* The raised surface is certified with control text and focus rings.\n --pie-white remains the fallback for hosts with no surface token. */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-9msc39 {gap:0;width:fit-content;min-width:7.5rem; /* ~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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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: the raised surface has little contrast margin\n in `valentine`. 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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}\n }.pie-sr-only.svelte-9msc39 {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-9msc39 {transition:none !important;}\n }"
2363
+ 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 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-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger is an <nds-icon-button> host; the NDS component\n owns its shape, colours and hover/active/focus states. This class only\n drives the host's size via NDS's own size custom properties (see the size\n variants below), so the light-DOM inner button matches the toolbar's\n md/sm/lg dimensions. */.pie-tool-tts-inline__trigger-zoom.svelte-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {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-9msc39 {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks.\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. These rules\n honour all three, matching how tool-calculator-inline-desmos wires the same\n hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element resolves to when the hook is\n unset, so the rules are inert by default: unlike the calculator, this\n trigger has no filled active look, and adding one would restyle the\n control for every host. Hosts opt in by setting a hook.\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-9msc39 {\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, 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-9msc39 {--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-9msc39:hover:not(:disabled) {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-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-9msc39 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-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);padding:0.25rem 0.5rem;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-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {\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-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid 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-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The design keeps the controls on the surrounding Question/Passage header: a\n low-chrome card, icon-only media glyphs, and speed radios as plain text with\n the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. Each surface\n defaults through a canonical token, and its literal is only the no-theme\n 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: --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-9msc39,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;\n /* The raised surface is certified with control text and focus rings.\n --pie-white remains the fallback for hosts with no surface token. */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-9msc39 {gap:0;width:fit-content;min-width:7.5rem; /* ~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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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: the raised surface has little contrast margin\n in `valentine`. 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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}\n }.pie-sr-only.svelte-9msc39 {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-9msc39 {transition:none !important;}\n }"
2363
2364
  };
2364
- function Ei(e, u) {
2365
- We(u, !0), Ur(e, Ti);
2366
- let d = ui(u, "catalogId", 7, ""), f = ui(u, "language", 7, ""), p = ui(u, "size", 7, "md"), m = ui(u, "speedOptions", 7, void 0), h = ui(u, "showSingleSpeedOption", 7, !1), g = ui(u, "layoutMode", 7, "left-aligned"), _ = typeof window < "u", v = "__pie_tts_inline_active_owner__", y = "pie-tts-inline-owner-change", ee = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], b = /font.?awesome|fa-?pro/i, x = (e) => {
2365
+ function ki(e, p) {
2366
+ Ge(p, !0), Kr(e, Oi);
2367
+ let m = d("tts-inline", f), h = pi(p, "catalogId", 7, ""), g = pi(p, "size", 7, "md"), _ = pi(p, "speedOptions", 7, void 0), v = pi(p, "showSingleSpeedOption", 7, !1), y = pi(p, "layoutMode", 7, "left-aligned"), b = typeof window < "u", x = /font.?awesome|fa-?pro/i, S = (e) => {
2367
2368
  if (document.querySelector(`link[href="${e}"]`)) return;
2368
2369
  let t = document.createElement("link");
2369
2370
  t.rel = "stylesheet", t.href = e, t.addEventListener("error", () => {
2370
2371
  t.dataset.pieLoadFailed = "";
2371
2372
  }, { once: !0 }), document.head.appendChild(t);
2372
- }, te = (e) => {
2373
- if (_ && (e && !document.querySelector("link[href*=\"Roboto\"]") && x("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"), !Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => b.test(e.href)) && (x("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"), e))) for (let e of ee) x(e);
2374
- }, ne = "__pieFaTtsShadowInstalled", re = (e) => {
2373
+ }, ee = () => {
2374
+ b && (Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => x.test(e.href)) || S("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"));
2375
+ }, te = "__pieFaTtsShadowInstalled", ne = (e) => {
2375
2376
  let t = e.getRootNode();
2376
2377
  if (!(t instanceof ShadowRoot)) return;
2377
2378
  let n = t;
2378
- if (n[ne]) return;
2379
- n[ne] = !0;
2379
+ if (n[te]) return;
2380
+ n[te] = !0;
2380
2381
  let r = /* @__PURE__ */ new Set(), i = (e) => {
2381
2382
  if (!e || r.has(e)) return;
2382
2383
  r.add(e);
2383
2384
  let n = document.createElement("link");
2384
2385
  n.rel = "stylesheet", n.href = e, t.appendChild(n);
2385
- }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => b.test(e.href));
2386
+ }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => x.test(e.href));
2386
2387
  for (let e of a) {
2387
2388
  if ("pieLoadFailed" in e.dataset) continue;
2388
2389
  if (e.sheet) {
@@ -2394,8 +2395,8 @@ function Ei(e, u) {
2394
2395
  };
2395
2396
  e.addEventListener("load", t), e.addEventListener("error", t);
2396
2397
  }
2397
- }, ie = (e) => {
2398
- te(!0), re(e);
2398
+ }, re = (e) => {
2399
+ ee(), ne(e);
2399
2400
  let t = () => {
2400
2401
  for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
2401
2402
  };
@@ -2409,7 +2410,7 @@ function Ei(e, u) {
2409
2410
  }), { destroy() {
2410
2411
  n.disconnect();
2411
2412
  } };
2412
- }, ae = (e, t) => {
2413
+ }, ie = (e, t) => {
2413
2414
  let n = t, r = () => {
2414
2415
  let t = e.querySelector("button");
2415
2416
  if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
@@ -2427,328 +2428,280 @@ function Ei(e, u) {
2427
2428
  i.disconnect();
2428
2429
  }
2429
2430
  };
2430
- }, S = (e) => (te(!1), re(e), {}), C = /* @__PURE__ */ H(void 0), w = /* @__PURE__ */ H(void 0), oe = /* @__PURE__ */ H(null), se = /* @__PURE__ */ z(() => Q(oe)?.ndsIcons === !0), T = /* @__PURE__ */ z(() => l(Q(oe))), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ H(null), E = /* @__PURE__ */ z(() => Q(oe)?.ttsService), ue = /* @__PURE__ */ z(() => Q(oe)?.highlightCoordinator), de = /* @__PURE__ */ z(() => Q(le)?.scopeElement || Q(ce)?.scopeElement || null), D = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), O = /* @__PURE__ */ H(!1), k = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(""), pe = /* @__PURE__ */ H(null), me = /* @__PURE__ */ H(null), he = /* @__PURE__ */ H(!1), ge = /* @__PURE__ */ H(!1), _e = /* @__PURE__ */ H(!1), ve = null, ye = /* @__PURE__ */ z(() => Q(he) || Q(ge)), be = null, xe = /* @__PURE__ */ z(() => s(m())), Se = /* @__PURE__ */ z(() => ke(Q(xe))), Ce = /* @__PURE__ */ z(() => Q(xe).length > 1 || h() ? Q(xe) : []), j = /* @__PURE__ */ z(() => Q(pe) !== null && Q(me) === Q(Se) && Q(xe).some((e) => e.rate === Q(pe)) ? Q(pe) : Ae(Q(xe))), M = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, N = `${M}-controls`;
2431
+ }, ae = (e) => (ee(), ne(e), {}), C = /* @__PURE__ */ H(void 0), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(null), E = /* @__PURE__ */ B(() => Q(T)?.ndsIcons === !0), D = /* @__PURE__ */ B(() => u(Q(T))), oe = /* @__PURE__ */ H(null), se = /* @__PURE__ */ H(null), O = /* @__PURE__ */ B(() => Q(T)?.ttsService), ce = /* @__PURE__ */ B(() => Q(T)?.highlightCoordinator), le = /* @__PURE__ */ B(() => Q(se)?.scopeElement || Q(oe)?.scopeElement || null), k = /* @__PURE__ */ H(!1), ue = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(!1), M = /* @__PURE__ */ H(""), de = /* @__PURE__ */ H(null), fe = /* @__PURE__ */ H(null), pe = /* @__PURE__ */ H(!1), me = /* @__PURE__ */ H(!1), he = !1, ge = 0, _e = null, N = null, ve = /* @__PURE__ */ B(() => s(_())), ye = /* @__PURE__ */ B(() => I(Q(ve))), be = /* @__PURE__ */ B(() => Q(ve).length > 1 || v() ? Q(ve) : []), xe = /* @__PURE__ */ B(() => Q(de) !== null && Q(fe) === Q(ye) && Q(ve).some((e) => e.rate === Q(de)) ? Q(de) : L(Q(ve))), Se = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, Ce = `${Se}-controls`;
2431
2432
  function P() {
2432
- if (!_) return null;
2433
- let e = window[v];
2434
- return typeof e == "string" ? e : null;
2435
- }
2436
- function F() {
2437
- return P() === M;
2433
+ return Q(O)?.getRunOwner() === Se;
2438
2434
  }
2439
- function Te(e, t) {
2440
- _ && window.dispatchEvent(new CustomEvent(y, { detail: {
2441
- ownerId: e,
2442
- previousOwnerId: t
2443
- } }));
2444
- }
2445
- function Ee() {
2446
- if (!_) return;
2447
- let e = P();
2448
- e !== M && (window[v] = M, Te(M, e));
2449
- }
2450
- function De() {
2451
- _ && P() === M && (delete window[v], Te(null, M));
2435
+ function F(e = "", t = !1) {
2436
+ U(pe, !1), U(A, !1), U(j, !1), U(k, t, !0), U(M, e, !0);
2452
2437
  }
2453
- function Oe(e = "", t = !1) {
2454
- U(ge, !1), U(O, !1), U(k, !1), U(D, t, !0), U(A, e, !0);
2455
- }
2456
- function ke(e) {
2438
+ function I(e) {
2457
2439
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
2458
2440
  }
2459
- function Ae(e) {
2441
+ function L(e) {
2460
2442
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
2461
2443
  }
2462
- async function je(e, t) {
2463
- if (typeof e.setPlaybackRate == "function") {
2464
- await e.setPlaybackRate(t);
2465
- return;
2466
- }
2467
- await e.updateSettings({ rate: t });
2468
- }
2469
- function Me() {
2444
+ function we() {
2470
2445
  if (!Q(C) || !Q(w)) return !1;
2471
2446
  let e = Q(C).getRootNode();
2472
2447
  if (!(e instanceof ShadowRoot)) return !1;
2473
2448
  let t = e.activeElement;
2474
2449
  return !!(t && Q(w).contains(t));
2475
2450
  }
2476
- function Ne() {
2451
+ function Ee() {
2477
2452
  if (!Q(w)) return !1;
2478
2453
  let e = Q(w).getRootNode();
2479
2454
  if (!(e instanceof ShadowRoot)) return !1;
2480
2455
  let t = e.activeElement;
2481
- return !t || !Q(w).contains(t) ? !1 : t.matches(Be);
2456
+ return !t || !Q(w).contains(t) ? !1 : t.matches(Me);
2482
2457
  }
2483
- function Pe() {
2484
- let e = Q(w)?.querySelector(Ve);
2458
+ function De() {
2459
+ let e = Q(w)?.querySelector(Ne);
2485
2460
  if (e && !e.disabled) {
2486
2461
  e.focus();
2487
2462
  return;
2488
2463
  }
2489
- Fe(!0);
2464
+ Oe(!0);
2490
2465
  }
2491
- function Fe(e) {
2492
- if (!Q(C) || !e) return;
2493
- let t = Q(C).getRootNode();
2494
- if (!(t instanceof ShadowRoot)) return;
2495
- let n = t.querySelector(".pie-tool-tts-inline__trigger");
2496
- (n?.querySelector("button") ?? n)?.focus();
2466
+ function Oe(e) {
2467
+ if (!e) return;
2468
+ let t = st();
2469
+ (t?.querySelector("button") ?? t)?.focus();
2497
2470
  }
2498
- function Ie(e = Q(T).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2499
- if (!Q(_e) && (Q(D) || F())) {
2500
- U(_e, !0);
2471
+ function ke(e = Q(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2472
+ if (!Q(me) && Q(k)) {
2473
+ U(me, !0);
2501
2474
  try {
2502
- let n = Me();
2503
- F() && De(), Oe(e), L(), t && queueMicrotask(() => {
2504
- Fe(n);
2475
+ let n = we();
2476
+ ge += 1, F(e), Ve(), t && queueMicrotask(() => {
2477
+ Oe(n);
2505
2478
  });
2506
2479
  } finally {
2507
- U(_e, !1);
2480
+ U(me, !1);
2508
2481
  }
2509
2482
  }
2510
2483
  }
2511
- fn(() => {
2484
+ gn(() => {
2512
2485
  if (Q(C)) return i(Q(C), (e) => {
2513
- U(oe, e, !0);
2486
+ U(T, e, !0);
2514
2487
  });
2515
- }), fn(() => {
2488
+ }), gn(() => {
2516
2489
  if (!Q(C)) return;
2517
2490
  let e = a(Q(C), (e) => {
2518
- U(ce, e, !0);
2491
+ U(oe, e, !0);
2519
2492
  }), t = r(Q(C), (e) => {
2520
- U(le, e, !0);
2493
+ U(se, e, !0);
2521
2494
  });
2522
2495
  return () => {
2523
2496
  t(), e();
2524
2497
  };
2525
- }), fn(() => {
2526
- if (!Q(E)) return;
2527
- let e = (e) => {
2528
- if (!Q(D) || !F()) {
2529
- U(O, !1), U(k, !1);
2498
+ }), gn(() => {
2499
+ let e = Q(O);
2500
+ if (!e) return;
2501
+ let t = (e) => {
2502
+ if (!Q(k) || !P()) {
2503
+ U(A, !1), U(j, !1);
2530
2504
  return;
2531
2505
  }
2532
- U(O, e === "playing" || e === "paused", !0), U(k, e === "paused");
2533
- }, t = Q(E).onStateChange((t) => {
2534
- let n = String(t), r = Ne();
2535
- e(n), n === "playing" && (Q(ge) && U(A, Q(T).t("tools.textToSpeech.inline.started"), !0), U(ge, !1)), (n === "error" || n === "idle") && U(ge, !1), r && !Q(O) && queueMicrotask(Pe);
2506
+ U(A, e === "playing" || e === "paused", !0), U(j, e === "paused");
2507
+ }, n = e.onStateChange((n) => {
2508
+ let r = String(n), i = Ee();
2509
+ (r === "loading" || r === "playing" || r === "paused") && !he && !P() && ke(), r === "idle" && !he && e.getRunOwner() === null && ke(Q(D).t("tools.textToSpeech.inline.stopped"), !0), t(r), r === "playing" && (Q(pe) && P() && U(M, Q(D).t("tools.textToSpeech.inline.started"), !0), U(pe, !1)), (r === "error" || r === "idle") && U(pe, !1), i && !Q(A) && queueMicrotask(De);
2536
2510
  });
2537
- return e(Q(E).getState()), t;
2538
- }), fn(() => {
2539
- if (!_) return;
2540
- let e = (e) => {
2541
- let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
2542
- n === M && t !== M && Ie(Q(T).t("tools.textToSpeech.inline.switchedSection"));
2543
- };
2544
- return window.addEventListener(y, e), () => {
2545
- window.removeEventListener(y, e);
2546
- };
2547
- }), fn(() => {
2548
- if (!_) return;
2549
- let e = () => {
2550
- Ie(Q(T).t("tools.textToSpeech.inline.switchedSection"), !0);
2551
- };
2552
- return window.addEventListener(t, e), () => {
2553
- window.removeEventListener(t, e);
2554
- };
2555
- }), fn(() => () => {
2556
- De(), L();
2511
+ return t(e.getState()), n;
2512
+ }), gn(() => () => {
2513
+ Ve();
2557
2514
  });
2558
- async function Le() {
2559
- if (!Q(E)) return !1;
2560
- try {
2561
- return await Q(oe)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
2562
- } catch (e) {
2563
- return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
2564
- }
2565
- }
2566
- let Re = "[data-pie-tts-speed-rate]", ze = "[data-pie-tts-media]", Be = "[data-pie-tts-seek]", Ve = "[data-pie-tts-stop]";
2567
- function He(e) {
2515
+ let Ae = "[data-pie-tts-speed-rate]", je = "[data-pie-tts-media]", Me = "[data-pie-tts-seek]", Ne = "[data-pie-tts-stop]";
2516
+ function Pe(e) {
2568
2517
  return Q(w) ? Array.from(Q(w).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
2569
2518
  }
2570
- function I(e, t) {
2571
- let n = He(e);
2519
+ function Fe(e, t) {
2520
+ let n = Pe(e);
2572
2521
  if (!n.length) return;
2573
2522
  let r = n[(t + n.length) % n.length];
2574
- if (r.focus(), e !== Re) return;
2575
- let i = Number(r.dataset.pieTtsSpeedRate), a = Q(Ce).find((e) => e.rate === i);
2576
- a && nt(a);
2523
+ if (r.focus(), e !== Ae) return;
2524
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Q(be).find((e) => e.rate === i);
2525
+ a && Ze(a);
2577
2526
  }
2578
- function Ue(e, t) {
2579
- let n = He(e);
2527
+ function Ie(e, t) {
2528
+ let n = Pe(e);
2580
2529
  if (!n.length) return;
2581
2530
  let r = Q(w)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
2582
- I(e, a === -1 ? 0 : a + t);
2531
+ Fe(e, a === -1 ? 0 : a + t);
2583
2532
  }
2584
- function Ke(e, t) {
2533
+ function Le(e, t) {
2585
2534
  switch (t.key) {
2586
2535
  case "ArrowDown":
2587
2536
  case "ArrowRight":
2588
- t.preventDefault(), Ue(e, 1);
2537
+ t.preventDefault(), Ie(e, 1);
2589
2538
  break;
2590
2539
  case "ArrowUp":
2591
2540
  case "ArrowLeft":
2592
- t.preventDefault(), Ue(e, -1);
2541
+ t.preventDefault(), Ie(e, -1);
2593
2542
  break;
2594
2543
  case "Home":
2595
- t.preventDefault(), I(e, 0);
2544
+ t.preventDefault(), Fe(e, 0);
2596
2545
  break;
2597
- case "End": t.preventDefault(), I(e, -1);
2546
+ case "End": t.preventDefault(), Fe(e, -1);
2598
2547
  }
2599
2548
  }
2600
- function qe() {
2601
- return Q(de) ? c(Q(de)) : null;
2549
+ function Re() {
2550
+ return Q(le) ? l(Q(le)) : null;
2602
2551
  }
2603
- function Je() {
2604
- return Q(ce) ? n(Q(ce), Q(oe)) : void 0;
2552
+ function ze() {
2553
+ return Q(oe) ? n(Q(oe), Q(T)) : void 0;
2605
2554
  }
2606
- function Ye(e) {
2607
- return L(), ve = Q(E)?.setHighlightTargetResolverProvider?.(() => ({
2555
+ function Be(e, t) {
2556
+ Ve();
2557
+ let n = e.setHighlightTargetResolverProvider(() => ({
2608
2558
  context: {
2609
- scopeElement: Q(le)?.scopeElement || e || null,
2610
- kind: Q(ce)?.kind,
2611
- itemId: Q(ce)?.itemId,
2612
- canonicalItemId: Q(ce)?.canonicalItemId,
2613
- contentKind: Q(ce)?.contentKind,
2614
- regionPolicy: Q(ce)?.regionPolicy
2559
+ scopeElement: Q(se)?.scopeElement || t || null,
2560
+ kind: Q(oe)?.kind,
2561
+ itemId: Q(oe)?.itemId,
2562
+ canonicalItemId: Q(oe)?.canonicalItemId,
2563
+ contentKind: Q(oe)?.contentKind,
2564
+ regionPolicy: Q(oe)?.regionPolicy
2615
2565
  },
2616
- resolver: Q(le)?.ttsHighlightTargetResolver || null
2617
- })) || null, ve;
2566
+ resolver: Q(se)?.ttsHighlightTargetResolver || null
2567
+ }));
2568
+ return _e = n, n;
2618
2569
  }
2619
- function L(e = ve) {
2620
- e?.(), e === ve && (ve = null);
2570
+ function Ve(e = _e) {
2571
+ e?.(), e === _e && (_e = null);
2621
2572
  }
2622
- function Xe() {
2623
- if (!F()) return !1;
2624
- let e = String(Q(E)?.getState?.() || "");
2625
- return e === "playing" || e === "paused" || e === "loading";
2573
+ function He(e) {
2574
+ if (e.getRunOwner() !== Se) return !1;
2575
+ let t = String(e.getState());
2576
+ return t === "playing" || t === "paused" || t === "loading";
2626
2577
  }
2627
- function Ze(e) {
2628
- let t = Me();
2629
- Oe(Q(T).t("tools.textToSpeech.inline.startFailed")), F() && De(), Q(ue) && Q(ue).clearTTS(), L(e), t && queueMicrotask(() => {
2630
- Fe(!0);
2578
+ function Ue(e, t) {
2579
+ let n = we();
2580
+ F(Q(D).t(o(e) ? "tools.textToSpeech.initFailed" : "tools.textToSpeech.inline.startFailed")), Q(ce) && Q(ce).clearTTS(), Ve(t), n && queueMicrotask(() => {
2581
+ Oe(!0);
2631
2582
  });
2632
2583
  }
2633
- async function R() {
2634
- if (!Q(E)) return;
2635
- let e = null, t = qe();
2584
+ function R(e) {
2585
+ o(e) || c(Q(T)?.toolkitCoordinator, "textToSpeech", "tool-playback", e);
2586
+ }
2587
+ function We() {
2588
+ let e = Q(O);
2589
+ if (!e) return;
2590
+ let t = Re();
2636
2591
  if (!t) {
2637
- console.warn("[TTS Inline] No target container found from shell scope context");
2592
+ m.debug("No target container found from shell scope context");
2638
2593
  return;
2639
2594
  }
2595
+ let n = ++ge, r = !1, i = e.onStateChange((e) => {
2596
+ String(e) === "playing" && (r = !0);
2597
+ });
2598
+ U(k, !0), U(pe, !0), U(M, Q(D).t("tools.textToSpeech.inline.starting"), !0);
2599
+ let a = Be(e, t), o;
2640
2600
  try {
2641
- if (U(D, !0), !o(t)) {
2642
- console.warn("[TTS Inline] No text content found");
2643
- return;
2644
- }
2645
- Q(ue) && Q(E).setHighlightCoordinator && Q(E).setHighlightCoordinator(Q(ue)), await je(Q(E), Q(j)), be = {
2646
- service: Q(E),
2647
- choicesKey: Q(Se)
2648
- }, e = Ye(t), U(ge, !0), U(A, Q(T).t("tools.textToSpeech.inline.starting"), !0);
2649
- let n = Q(E);
2650
- n.speak(t, {
2651
- catalogId: d() || void 0,
2652
- catalogContext: Je(),
2653
- language: f() || Q(oe)?.contentLanguage || void 0
2654
- }).then(() => {
2655
- Q(ge) && String(n.getState?.() || "") === "idle" && (U(ge, !1), U(A, ""));
2656
- }).catch((t) => {
2657
- console.error("[TTS Inline] Error:", t), Ze(e);
2658
- }).finally(() => {
2659
- Xe() || L(e);
2601
+ o = e.speak(t, {
2602
+ ownerId: Se,
2603
+ rate: Q(xe),
2604
+ catalogId: h() || void 0,
2605
+ catalogContext: ze(),
2606
+ language: Q(T)?.contentLanguage || void 0
2660
2607
  });
2661
- } catch (t) {
2662
- console.error("[TTS Inline] Error:", t), Ze(e);
2608
+ } catch (e) {
2609
+ o = Promise.reject(e);
2663
2610
  }
2611
+ N = {
2612
+ service: e,
2613
+ choicesKey: Q(ye)
2614
+ }, o.then(() => {
2615
+ n !== ge || r || String(e.getState()) === "idle" && F(Q(D).t("tools.textToSpeech.inline.nothingToRead"));
2616
+ }).catch((e) => {
2617
+ n === ge && (R(e), Ue(e, a));
2618
+ }).finally(() => {
2619
+ i(), He(e) || Ve(a);
2620
+ });
2664
2621
  }
2665
- async function Qe() {
2666
- if (Q(E) && !(Q(ye) || F() && String(Q(E).getState?.() || "") === "loading")) {
2667
- if (F() && Q(k)) {
2668
- Q(E).resume(), U(A, Q(T).t("tools.textToSpeech.inline.resumed"), !0);
2622
+ function qe() {
2623
+ let e = Q(O);
2624
+ if (!e) return;
2625
+ let t = P();
2626
+ if (!(Q(pe) || t && String(e.getState()) === "loading")) {
2627
+ if (t && Q(j)) {
2628
+ e.resume(), U(M, Q(D).t("tools.textToSpeech.inline.resumed"), !0);
2669
2629
  return;
2670
2630
  }
2671
- if (F() && Q(O) && !Q(k)) {
2672
- Q(E).pause(), U(A, Q(T).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2631
+ if (t && Q(A) && !Q(j)) {
2632
+ e.pause(), U(M, Q(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2673
2633
  return;
2674
2634
  }
2675
- if (!Q(he)) {
2676
- U(he, !0);
2677
- try {
2678
- if (U(A, Q(T).t("tools.textToSpeech.inline.initializing"), !0), !await Le()) {
2679
- U(A, Q(T).t("tools.textToSpeech.inline.initFailed"), !0);
2680
- return;
2681
- }
2682
- let e = String(Q(E).getState?.() || "");
2683
- (e === "playing" || e === "paused" || e === "loading") && !F() && Q(E).stop(), Ee(), await R();
2684
- } finally {
2685
- U(he, !1);
2686
- }
2635
+ he = !0;
2636
+ try {
2637
+ We();
2638
+ } finally {
2639
+ he = !1;
2687
2640
  }
2688
2641
  }
2689
2642
  }
2690
- function $e() {
2691
- if (!Q(E)) return;
2692
- let e = Me();
2693
- Q(E).stop(), De(), Oe(Q(T).t("tools.textToSpeech.inline.stopped")), Q(ue) && Q(ue).clearTTS(), L(), e && queueMicrotask(() => {
2694
- Fe(!0);
2643
+ function Je() {
2644
+ if (!Q(O)) return;
2645
+ let e = we();
2646
+ ge += 1, Q(O).stop(), F(Q(D).t("tools.textToSpeech.inline.stopped")), Q(ce) && Q(ce).clearTTS(), Ve(), e && queueMicrotask(() => {
2647
+ Oe(!0);
2695
2648
  });
2696
2649
  }
2697
- async function et() {
2698
- if (Q(E) && Q(O)) try {
2699
- await Q(E).seekForward(1), U(A, Q(T).t("tools.textToSpeech.inline.skippedForward"), !0);
2650
+ async function Ye() {
2651
+ if (Q(O) && Q(A)) try {
2652
+ await Q(O).seekForward(1), U(M, Q(D).t("tools.textToSpeech.inline.skippedForward"), !0);
2700
2653
  } catch (e) {
2701
- console.error("[TTS Inline] Seek forward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2654
+ R(e), U(M, Q(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2702
2655
  }
2703
2656
  }
2704
- async function tt() {
2705
- if (Q(E) && Q(O)) try {
2706
- await Q(E).seekBackward(1), U(A, Q(T).t("tools.textToSpeech.inline.skippedBackward"), !0);
2657
+ async function Xe() {
2658
+ if (Q(O) && Q(A)) try {
2659
+ await Q(O).seekBackward(1), U(M, Q(D).t("tools.textToSpeech.inline.skippedBackward"), !0);
2707
2660
  } catch (e) {
2708
- console.error("[TTS Inline] Seek backward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2661
+ R(e), U(M, Q(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2709
2662
  }
2710
2663
  }
2711
- async function nt(e) {
2712
- let t = Q(E);
2664
+ async function Ze(e) {
2665
+ let t = Q(O);
2713
2666
  if (!t) return;
2714
- if (Q(j) === e.rate) {
2715
- U(A, Q(T).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2667
+ if (Q(xe) === e.rate) {
2668
+ U(M, Q(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2716
2669
  return;
2717
2670
  }
2718
- let n = Q(pe), r = Q(me);
2719
- U(pe, e.rate, !0), U(me, Q(Se), !0), U(A, Q(T).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2671
+ let n = Q(de), r = Q(fe);
2672
+ U(de, e.rate, !0), U(fe, Q(ye), !0), U(M, Q(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2720
2673
  let i = {
2721
2674
  service: t,
2722
- choicesKey: Q(Se)
2675
+ choicesKey: Q(ye)
2723
2676
  };
2724
- be = i;
2677
+ N = i;
2725
2678
  try {
2726
- await je(t, e.rate);
2679
+ await t.setPlaybackRate(e.rate);
2727
2680
  } catch (e) {
2728
- be === i && (be = null), console.error("[TTS Inline] Playback speed change failed:", e), U(pe, n, !0), U(me, r, !0), U(A, Q(T).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
2681
+ N === i && (N = null), R(e), U(de, n, !0), U(fe, r, !0), U(M, Q(D).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
2729
2682
  }
2730
2683
  }
2731
- let rt = /* @__PURE__ */ z(() => p() === "sm" ? "pie-tool-tts-inline__trigger--sm" : p() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), it = /* @__PURE__ */ z(() => g() === "reserved-row" || g() === "expanding-row"), at = /* @__PURE__ */ z(() => g() === "floating-overlay"), ot = /* @__PURE__ */ z(() => g() === "left-aligned"), st = /* @__PURE__ */ z(() => Q(at) || Q(ot)), ct = "[data-pie-tool-overlay-boundary]", lt = /* @__PURE__ */ H(""), ut = /* @__PURE__ */ H(0);
2732
- fn(() => {
2733
- let e = Q(E), t = Q(Se), n = Q(O) || Q(k);
2734
- if (!e || !n || !F() || be?.service === e && be.choicesKey === t) return;
2684
+ let Qe = /* @__PURE__ */ B(() => g() === "sm" ? "pie-tool-tts-inline__trigger--sm" : g() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), $e = /* @__PURE__ */ B(() => Q(A) && !Q(j) ? "tools.textToSpeech.inline.pauseA11y" : Q(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y"), z = /* @__PURE__ */ B(() => y() === "reserved-row" || y() === "expanding-row"), et = /* @__PURE__ */ B(() => y() === "floating-overlay"), tt = /* @__PURE__ */ B(() => y() === "left-aligned"), nt = /* @__PURE__ */ B(() => Q(et) || Q(tt)), rt = "[data-pie-tool-overlay-boundary]", it = /* @__PURE__ */ H(""), at = /* @__PURE__ */ H(0);
2685
+ gn(() => {
2686
+ let e = Q(O), t = Q(ye), n = Q(A) || Q(j);
2687
+ if (!e || !n || !P() || N?.service === e && N.choicesKey === t) return;
2735
2688
  let r = {
2736
2689
  service: e,
2737
2690
  choicesKey: t
2738
2691
  };
2739
- be = r;
2692
+ N = r;
2740
2693
  let i = !1;
2741
2694
  return queueMicrotask(() => {
2742
- if (i || be !== r) return;
2743
- let t = Q(j);
2744
- je(e, t).catch((e) => {
2745
- be === r && (be = null), console.error("[TTS Inline] External playback speed sync failed:", e);
2695
+ if (i || N !== r) return;
2696
+ let t = Q(xe);
2697
+ e.setPlaybackRate(t).catch((e) => {
2698
+ N === r && (N = null), R(e);
2746
2699
  });
2747
2700
  }), () => {
2748
2701
  i = !0;
2749
2702
  };
2750
2703
  });
2751
- function dt(e, t) {
2704
+ function ot(e, t) {
2752
2705
  let n = e;
2753
2706
  for (; n;) {
2754
2707
  if (n.matches?.(t)) return n;
@@ -2756,37 +2709,37 @@ function Ei(e, u) {
2756
2709
  }
2757
2710
  return null;
2758
2711
  }
2759
- function ft() {
2712
+ function st() {
2760
2713
  let e = Q(C)?.getRootNode();
2761
2714
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
2762
2715
  }
2763
- function pt(e) {
2716
+ function ct(e) {
2764
2717
  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");
2765
2718
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
2766
2719
  }
2767
- function mt() {
2768
- let e = ft();
2720
+ function lt() {
2721
+ let e = st();
2769
2722
  if (!e || !Q(w)) return;
2770
- let t = e.getBoundingClientRect(), n = dt(e, ct), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
2771
- if (!Q(fe)) {
2772
- let e = pt(Q(w));
2773
- e > 0 && U(ut, e, !0);
2723
+ let t = e.getBoundingClientRect(), n = ot(e, rt), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
2724
+ if (!Q(ue)) {
2725
+ let e = ct(Q(w));
2726
+ e > 0 && U(at, e, !0);
2774
2727
  }
2775
- U(fe, Q(ut) > 0 && i < Q(ut), !0);
2728
+ U(ue, Q(at) > 0 && i < Q(at), !0);
2776
2729
  let a = parseFloat(window.getComputedStyle(Q(w)).minWidth) || 0;
2777
- if (Q(fe) && i < a) {
2730
+ if (Q(ue) && i < a) {
2778
2731
  let e = n?.getBoundingClientRect(), r = Math.max(0, e?.left ?? 0) + 8, i = Math.min(window.innerWidth, e?.right ?? window.innerWidth) - 8, a = Math.max(0, i - r), o = Math.min(Q(w).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
2779
- U(lt, `top: ${t.bottom + 8}px; left: ${s}px; right: auto; min-width: min(7.5rem, ${a}px); max-width: min(${a}px, var(--pie-tts-left-aligned-panel-width, ${a}px));`);
2732
+ U(it, `top: ${t.bottom + 8}px; left: ${s}px; right: auto; min-width: min(7.5rem, ${a}px); max-width: min(${a}px, var(--pie-tts-left-aligned-panel-width, ${a}px));`);
2780
2733
  return;
2781
2734
  }
2782
- let o = Q(w).offsetHeight || t.height, s = Q(fe) ? t.top : t.top + t.height / 2 - o / 2, c = t.bottom > 0 && t.top < window.innerHeight ? Math.max(8, Math.min(s, window.innerHeight - o - 8)) : s, l = window.innerWidth - t.left + 8;
2783
- U(lt, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
2735
+ let o = Q(w).offsetHeight || t.height, s = Q(ue) ? t.top : t.top + t.height / 2 - o / 2, c = t.bottom > 0 && t.top < window.innerHeight ? Math.max(8, Math.min(s, window.innerHeight - o - 8)) : s, l = window.innerWidth - t.left + 8;
2736
+ U(it, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
2784
2737
  }
2785
- fn(() => {
2786
- if (!(Q(ot) && Q(D))) {
2738
+ gn(() => {
2739
+ if (!(Q(tt) && Q(k))) {
2787
2740
  let e = !1;
2788
2741
  return queueMicrotask(() => {
2789
- e || (U(lt, ""), U(fe, !1), U(ut, 0));
2742
+ e || (U(it, ""), U(ue, !1), U(at, 0));
2790
2743
  }), () => {
2791
2744
  e = !0;
2792
2745
  };
@@ -2794,173 +2747,163 @@ function Ei(e, u) {
2794
2747
  if (typeof window > "u") return;
2795
2748
  let e = 0, t = () => {
2796
2749
  e ||= window.requestAnimationFrame(() => {
2797
- e = 0, mt();
2750
+ e = 0, lt();
2798
2751
  });
2799
2752
  };
2800
2753
  t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
2801
- let n = ft(), r = new ResizeObserver(t);
2754
+ let n = st(), r = new ResizeObserver(t);
2802
2755
  n && r.observe(n), Q(w) && r.observe(Q(w));
2803
- let i = n ? dt(n, ct) : null;
2756
+ let i = n ? ot(n, rt) : null;
2804
2757
  i && r.observe(i);
2805
2758
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
2806
2759
  return a && r.observe(a), () => {
2807
2760
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
2808
2761
  };
2809
2762
  });
2810
- function B() {
2763
+ function ut() {
2811
2764
  if (!Q(C)) return null;
2812
2765
  let e = Q(C).getRootNode();
2813
2766
  return e instanceof ShadowRoot ? e.host : null;
2814
2767
  }
2815
- fn(() => {
2816
- let e = B();
2768
+ gn(() => {
2769
+ let e = ut();
2817
2770
  if (!e) return;
2818
- let t = Q(D) === !0;
2819
- if (e.getAttribute("data-active") === "true" === t) return;
2820
- let n = !1;
2771
+ let n = Q(k) === !0;
2772
+ if (e.getAttribute("data-active") === "true" === n) return;
2773
+ let r = !1;
2821
2774
  return queueMicrotask(() => {
2822
- n || (e.setAttribute("data-active", t ? "true" : "false"), e.dispatchEvent(new CustomEvent("pie-tool-active-change", {
2823
- detail: { active: t },
2775
+ r || (e.setAttribute("data-active", n ? "true" : "false"), e.dispatchEvent(new CustomEvent(t, {
2776
+ detail: { active: n },
2824
2777
  bubbles: !0,
2825
2778
  composed: !0
2826
2779
  })));
2827
2780
  }), () => {
2828
- n = !0;
2781
+ r = !0;
2829
2782
  };
2830
2783
  });
2831
- var ht = {
2784
+ var dt = {
2832
2785
  get catalogId() {
2833
- return d();
2786
+ return h();
2834
2787
  },
2835
2788
  set catalogId(e = "") {
2836
- d(e), wt();
2837
- },
2838
- get language() {
2839
- return f();
2840
- },
2841
- set language(e = "") {
2842
- f(e), wt();
2789
+ h(e), Dt();
2843
2790
  },
2844
2791
  get size() {
2845
- return p();
2792
+ return g();
2846
2793
  },
2847
2794
  set size(e = "md") {
2848
- p(e), wt();
2795
+ g(e), Dt();
2849
2796
  },
2850
2797
  get speedOptions() {
2851
- return m();
2798
+ return _();
2852
2799
  },
2853
2800
  set speedOptions(e = void 0) {
2854
- m(e), wt();
2801
+ _(e), Dt();
2855
2802
  },
2856
2803
  get showSingleSpeedOption() {
2857
- return h();
2804
+ return v();
2858
2805
  },
2859
2806
  set showSingleSpeedOption(e = !1) {
2860
- h(e), wt();
2807
+ v(e), Dt();
2861
2808
  },
2862
2809
  get layoutMode() {
2863
- return g();
2810
+ return y();
2864
2811
  },
2865
2812
  set layoutMode(e = "left-aligned") {
2866
- g(e), wt();
2813
+ y(e), Dt();
2867
2814
  }
2868
- }, V = _r(), gt = Zt(V), _t = (e) => {
2869
- var t = wi();
2815
+ }, ft = br(), pt = tn(ft), mt = (e) => {
2816
+ var t = Di();
2870
2817
  let n;
2871
2818
  {
2872
2819
  let e = (e) => {
2873
- var t = yi(), n = Xt(t), r = (e) => {
2874
- var t = _i();
2875
- ni(t, "type", "circle"), ni(t, "size", "small"), ni(t, "variant", "tertiary"), yn(() => ni(t, "icon-name", Q(O) && !Q(k) ? "pause" : "play")), yn((e) => ni(t, "button-aria-label", e), [() => Q(T).t(Q(O) && !Q(k) ? "tools.textToSpeech.inline.pauseA11y" : Q(k) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), yn(() => ni(t, "disabled", !Q(E))), Wr(t, (e) => ie?.(e)), Wr(t, (e, t) => ae?.(e, t), () => ({
2876
- "aria-expanded": Q(D) ? "true" : "false",
2877
- "aria-controls": Q(D) ? N : null,
2878
- "aria-pressed": Q(D) ? "true" : "false",
2879
- "aria-busy": Q(ye) ? "true" : null
2880
- })), yn(() => Xr(t, 1, `pie-tool-tts-inline__trigger ${Q(rt) ?? ""}`, "svelte-9msc39")), sr("click", t, Qe), vr(e, t);
2820
+ var t = Si(), n = en(t), r = (e) => {
2821
+ var t = bi();
2822
+ ai(t, "type", "circle"), ai(t, "size", "small"), ai(t, "variant", "tertiary"), Cn(() => ai(t, "icon-name", Q(A) && !Q(j) ? "pause" : "play")), Cn((e) => ai(t, "button-aria-label", e), [() => Q(D).t(Q($e))]), Cn(() => ai(t, "disabled", !Q(O))), qr(t, (e) => re?.(e)), qr(t, (e, t) => ie?.(e, t), () => ({
2823
+ "aria-expanded": Q(k) ? "true" : "false",
2824
+ "aria-controls": Q(k) ? Ce : null,
2825
+ "aria-pressed": Q(k) ? "true" : "false",
2826
+ "aria-busy": Q(pe) ? "true" : null
2827
+ })), Cn(() => $r(t, 1, `pie-tool-tts-inline__trigger ${Q(Qe) ?? ""}`, "svelte-9msc39")), ur("click", t, qe), xr(e, t);
2881
2828
  }, i = (e) => {
2882
- var t = vi(), n = Qt(t);
2883
- Wr(t, (e) => S?.(e)), yn((e) => {
2884
- Xr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(rt) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(D) ? "true" : "false"), $(t, "aria-controls", Q(D) ? N : void 0), $(t, "aria-pressed", Q(D) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(ye) ? "true" : void 0), t.disabled = !Q(E), Xr(n, 1, `fa-solid ${Q(O) && !Q(k) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
2885
- }, [() => Q(T).t(Q(O) && !Q(k) ? "tools.textToSpeech.inline.pauseA11y" : Q(k) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), sr("click", t, Qe), vr(e, t);
2829
+ var t = xi(), n = nn(t);
2830
+ qr(t, (e) => ae?.(e)), Cn((e) => {
2831
+ $r(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(Qe) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(k) ? "true" : "false"), $(t, "aria-controls", Q(k) ? Ce : void 0), $(t, "aria-pressed", Q(k) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(pe) ? "true" : void 0), t.disabled = !Q(O), $r(n, 1, `fa-solid ${Q(A) && !Q(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
2832
+ }, [() => Q(D).t(Q($e))]), ur("click", t, qe), xr(e, t);
2886
2833
  };
2887
- Nr(n, (e) => {
2888
- Q(se) ? e(r) : e(i, -1);
2889
- }), we(t), vr(e, t);
2834
+ Ir(n, (e) => {
2835
+ Q(E) ? e(r) : e(i, -1);
2836
+ }), Te(t), xr(e, t);
2890
2837
  }, n = (e) => {
2891
- var t = _r(), n = Zt(t), r = (e) => {
2892
- var t = Si();
2838
+ var t = br(), n = tn(t), r = (e) => {
2839
+ var t = Ti();
2893
2840
  let n;
2894
- var r = Xt(t), i = (e) => {
2895
- var t = xi();
2841
+ var r = en(t), i = (e) => {
2842
+ var t = wi();
2896
2843
  let n;
2897
- Lr(t, 21, () => Q(Ce), (e) => e.rate, (e, t) => {
2898
- var n = bi(), r = Xt(n), i = Qt(r, !0);
2899
- we(n), yn(() => {
2900
- $(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(j) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(j) === Q(t).rate), n.disabled = !Q(E), $(r, "data-label", Q(t).label), Tr(i, Q(t).label);
2901
- }), sr("click", n, () => nt(Q(t))), sr("keydown", n, (e) => Ke(Re, e)), vr(e, n);
2902
- }), we(t), yn((e) => {
2903
- n = Xr(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(fe) }), $(t, "aria-label", e);
2904
- }, [() => Q(T).t("tools.textToSpeech.inline.playbackSpeedA11y")]), vr(e, t);
2844
+ Br(t, 21, () => Q(be), (e) => e.rate, (e, t) => {
2845
+ var n = Ci(), r = en(n), i = nn(r, !0);
2846
+ Te(n), Cn(() => {
2847
+ $(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(xe) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(xe) === Q(t).rate), n.disabled = !Q(O), $(r, "data-label", Q(t).label), Or(i, Q(t).label);
2848
+ }), ur("click", n, () => Ze(Q(t))), ur("keydown", n, (e) => Le(Ae, e)), xr(e, n);
2849
+ }), Te(t), Cn((e) => {
2850
+ n = $r(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(ue) }), $(t, "aria-label", e);
2851
+ }, [() => Q(D).t("tools.textToSpeech.inline.playbackSpeedA11y")]), xr(e, t);
2905
2852
  };
2906
- Nr(r, (e) => {
2907
- Q(Ce).length > 0 && e(i);
2853
+ Ir(r, (e) => {
2854
+ Q(be).length > 0 && e(i);
2908
2855
  });
2909
- var a = $t(r, 2), o = $t(a, 2), s = $t(o, 2);
2910
- we(t), si(t, (e) => U(w, e), () => Q(w)), yn((e, r, i, c) => {
2911
- $(t, "id", N), n = Xr(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
2912
- "pie-tool-tts-inline__panel--floating": Q(at),
2913
- "pie-tool-tts-inline__panel--row": Q(it),
2914
- "pie-tool-tts-inline__panel--left-aligned-inline": Q(ot),
2915
- "pie-tool-tts-inline__panel--compact": Q(ot) && Q(fe)
2916
- }), Qr(t, Q(ot) ? Q(lt) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(E) || !Q(O), $(o, "aria-label", i), o.disabled = !Q(E) || !Q(O), $(s, "aria-label", c), s.disabled = !Q(E);
2856
+ var a = rn(r, 2), o = rn(a, 2), s = rn(o, 2);
2857
+ Te(t), ui(t, (e) => U(w, e), () => Q(w)), Cn((e, r, i, c) => {
2858
+ $(t, "id", Ce), n = $r(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
2859
+ "pie-tool-tts-inline__panel--floating": Q(et),
2860
+ "pie-tool-tts-inline__panel--row": Q(z),
2861
+ "pie-tool-tts-inline__panel--left-aligned-inline": Q(tt),
2862
+ "pie-tool-tts-inline__panel--compact": Q(tt) && Q(ue)
2863
+ }), ti(t, Q(tt) ? Q(it) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(O) || !Q(A), $(o, "aria-label", i), o.disabled = !Q(O) || !Q(A), $(s, "aria-label", c), s.disabled = !Q(O);
2917
2864
  }, [
2918
- () => Q(T).t("tools.textToSpeech.inline.controlsA11y"),
2919
- () => Q(T).t("tools.textToSpeech.inline.rewindA11y"),
2920
- () => Q(T).t("tools.textToSpeech.inline.fastForwardA11y"),
2921
- () => Q(T).t("tools.textToSpeech.inline.stopA11y")
2922
- ]), sr("click", a, tt), sr("keydown", a, (e) => Ke(ze, e)), sr("click", o, et), sr("keydown", o, (e) => Ke(ze, e)), sr("click", s, $e), sr("keydown", s, (e) => Ke(ze, e)), vr(e, t);
2865
+ () => Q(D).t("tools.textToSpeech.inline.controlsA11y"),
2866
+ () => Q(D).t("tools.textToSpeech.inline.rewindA11y"),
2867
+ () => Q(D).t("tools.textToSpeech.inline.fastForwardA11y"),
2868
+ () => Q(D).t("tools.textToSpeech.inline.stopA11y")
2869
+ ]), ur("click", a, Xe), ur("keydown", a, (e) => Le(je, e)), ur("click", o, Ye), ur("keydown", o, (e) => Le(je, e)), ur("click", s, Je), ur("keydown", s, (e) => Le(je, e)), xr(e, t);
2923
2870
  };
2924
- Nr(n, (e) => {
2925
- Q(D) && e(r);
2926
- }), vr(e, t);
2871
+ Ir(n, (e) => {
2872
+ Q(k) && e(r);
2873
+ }), xr(e, t);
2927
2874
  };
2928
- var r = Xt(t), i = (t) => {
2929
- var r = Ci(), i = Zt(r);
2875
+ var r = en(t), i = (t) => {
2876
+ var r = Ei(), i = tn(r);
2930
2877
  n(i);
2931
- var a = $t(i, 2);
2932
- e(a), vr(t, r);
2878
+ var a = rn(i, 2);
2879
+ e(a), xr(t, r);
2933
2880
  }, a = (t) => {
2934
- var r = Ci(), i = Zt(r);
2881
+ var r = Ei(), i = tn(r);
2935
2882
  e(i);
2936
- var a = $t(i, 2);
2937
- n(a), vr(t, r);
2883
+ var a = rn(i, 2);
2884
+ n(a), xr(t, r);
2938
2885
  };
2939
- Nr(r, (e) => {
2940
- Q(st) ? e(i) : e(a, -1);
2886
+ Ir(r, (e) => {
2887
+ Q(nt) ? e(i) : e(a, -1);
2941
2888
  });
2942
- var o = Qt($t(r, 2), !0);
2943
- we(t), si(t, (e) => U(C, e), () => Q(C)), yn(() => Tr(o, Q(A)));
2944
- }
2945
- yn(() => n = Xr(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
2946
- "pie-tool-tts-inline--controls-row": Q(it),
2947
- "pie-tool-tts-inline--floating": Q(at),
2948
- "pie-tool-tts-inline--left-aligned": Q(ot)
2949
- })), vr(e, t);
2889
+ var o = nn(rn(r, 2), !0);
2890
+ Te(t), ui(t, (e) => U(C, e), () => Q(C)), Cn(() => Or(o, Q(M)));
2891
+ }
2892
+ Cn(() => n = $r(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
2893
+ "pie-tool-tts-inline--controls-row": Q(z),
2894
+ "pie-tool-tts-inline--floating": Q(et),
2895
+ "pie-tool-tts-inline--left-aligned": Q(tt)
2896
+ })), xr(e, t);
2950
2897
  };
2951
- return Nr(gt, (e) => {
2952
- _ && e(_t);
2953
- }), vr(e, V), Ge(ht);
2898
+ return Ir(pt, (e) => {
2899
+ b && e(mt);
2900
+ }), xr(e, ft), Ke(dt);
2954
2901
  }
2955
- cr(["click", "keydown"]), Di("pie-tool-tts-inline", gi(Ei, {
2902
+ dr(["click", "keydown"]), Ai("pie-tool-tts-inline", yi(ki, {
2956
2903
  catalogId: {
2957
2904
  attribute: "catalog-id",
2958
2905
  type: "String"
2959
2906
  },
2960
- language: {
2961
- attribute: "language",
2962
- type: "String"
2963
- },
2964
2907
  size: {
2965
2908
  attribute: "size",
2966
2909
  type: "String"
@@ -2978,8 +2921,8 @@ cr(["click", "keydown"]), Di("pie-tool-tts-inline", gi(Ei, {
2978
2921
  type: "String"
2979
2922
  }
2980
2923
  }, [], [], { mode: "open" }, e));
2981
- function Di(e, t) {
2924
+ function Ai(e, t) {
2982
2925
  customElements.get(e) || customElements.define(e, t);
2983
2926
  }
2984
2927
  //#endregion
2985
- export { Ei as default };
2928
+ export { ki as default };