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

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 oe(e) {
11
12
  for (var t = 0; t < e.length; t++) e[t]();
12
13
  }
13
- function ae() {
14
+ function se() {
14
15
  var e, t;
15
16
  return {
16
17
  promise: new Promise((n, r) => {
@@ -20,47 +21,47 @@ 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 C = 1024, w = 2048, T = 4096, ce = 8192, le = 16384, E = 32768, ue = 1 << 25, de = 65536, D = 1 << 19, fe = 1 << 20, pe = 1 << 25, O = 1 << 21, me = 1 << 22, k = 1 << 23, A = Symbol("$state"), j = Symbol("component"), he = Symbol("legacy props"), ge = Symbol(""), _e = Symbol("attributes"), ve = Symbol("class"), ye = Symbol("style"), be = Symbol("text"), xe = new class extends Error {
24
25
  name = "StaleReactionError";
25
26
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
26
- }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function xe() {
27
+ }(), Se = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
28
+ function Ce() {
28
29
  console.warn("https://svelte.dev/e/derived_inert");
29
30
  }
30
- function Se(e) {
31
+ function we(e) {
31
32
  console.warn("https://svelte.dev/e/hydration_mismatch");
32
33
  }
33
- function Ce() {
34
+ function Te() {
34
35
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
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 M = !1;
40
+ function N(e) {
41
+ M = e;
41
42
  }
42
- var N;
43
- function P(e) {
44
- if (e === null) throw Se(), u;
45
- return N = e;
43
+ var P;
44
+ function F(e) {
45
+ if (e === null) throw we(), p;
46
+ return P = e;
46
47
  }
47
- function F() {
48
- return P(/* @__PURE__ */ Yt(N));
48
+ function Ee() {
49
+ return F(/* @__PURE__ */ Qt(P));
49
50
  }
50
- function we(e) {
51
- if (j) {
52
- if (/* @__PURE__ */ Yt(N) !== null) throw Se(), u;
53
- N = e;
51
+ function De(e) {
52
+ if (M) {
53
+ if (/* @__PURE__ */ Qt(P) !== null) throw we(), p;
54
+ P = 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 Oe(e = 1) {
58
+ if (M) {
59
+ for (var t = e, n = P; t--;) n = /* @__PURE__ */ Qt(n);
60
+ P = n;
60
61
  }
61
62
  }
62
- function Ee(e = !0) {
63
- for (var t = 0, n = N;;) {
63
+ function ke(e = !0) {
64
+ for (var t = 0, n = P;;) {
64
65
  if (n.nodeType === 8) {
65
66
  var r = n.data;
66
67
  if (r === "]") {
@@ -68,70 +69,70 @@ 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__ */ Qt(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 Ae(e) {
77
+ if (!e || e.nodeType !== 8) throw we(), 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 je(e) {
82
83
  return e === this.v;
83
84
  }
84
- function ke(e, t) {
85
+ function Me(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 Ne(e) {
89
+ return !Me(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 Pe() {
93
94
  throw Error("https://svelte.dev/e/async_derived_orphan");
94
95
  }
95
- function Me(e, t, n) {
96
+ function Fe(e, t, n) {
96
97
  throw Error("https://svelte.dev/e/each_key_duplicate");
97
98
  }
98
- function Ne(e) {
99
+ function Ie(e) {
99
100
  throw Error("https://svelte.dev/e/effect_in_teardown");
100
101
  }
101
- function Pe() {
102
+ function Le() {
102
103
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
103
104
  }
104
- function Fe(e) {
105
+ function Re(e) {
105
106
  throw Error("https://svelte.dev/e/effect_orphan");
106
107
  }
107
- function Ie() {
108
+ function ze() {
108
109
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
109
110
  }
110
- function Le() {
111
+ function Be() {
111
112
  throw Error("https://svelte.dev/e/hydration_failed");
112
113
  }
113
- function Re(e) {
114
+ function Ve(e) {
114
115
  throw Error("https://svelte.dev/e/props_invalid_value");
115
116
  }
116
- function ze() {
117
+ function He() {
117
118
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
118
119
  }
119
- function Be() {
120
+ function Ue() {
120
121
  throw Error("https://svelte.dev/e/state_prototype_fixed");
121
122
  }
122
- function Ve() {
123
+ function We() {
123
124
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
124
125
  }
125
- function He() {
126
+ function Ge() {
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
131
  var I = null;
131
- function Ue(e) {
132
+ function Ke(e) {
132
133
  I = e;
133
134
  }
134
- function We(e, t = !1, n) {
135
+ function qe(e, t = !1, n) {
135
136
  I = {
136
137
  p: I,
137
138
  i: !1,
@@ -143,159 +144,159 @@ function We(e, t = !1, n) {
143
144
  l: null
144
145
  };
145
146
  }
146
- function Ge(e) {
147
+ function Je(e) {
147
148
  var t = I, 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) gn(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, I = t.p, Ye(e);
153
154
  }
154
- function Ke(e = {}) {
155
- return v(e, A, { value: !0 }), e;
155
+ function Ye(e = {}) {
156
+ return x(e, j, { value: !0 }), e;
156
157
  }
157
- function qe() {
158
+ function Xe() {
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 Ze = [];
164
+ function Qe() {
165
+ var e = Ze;
166
+ Ze = [], oe(e);
166
167
  }
167
168
  function L(e) {
168
- if (Je.length === 0 && !_t) {
169
- var t = Je;
169
+ if (Ze.length === 0 && !bt) {
170
+ var t = Ze;
170
171
  queueMicrotask(() => {
171
- t === Je && Ye();
172
+ t === Ze && Qe();
172
173
  });
173
174
  }
174
- Je.push(e);
175
+ Ze.push(e);
175
176
  }
176
- function Xe() {
177
- for (; Je.length > 0;) Ye();
177
+ function $e() {
178
+ for (; Ze.length > 0;) Qe();
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
+ var et = ~(w | T | C);
182
183
  function R(e, t) {
183
- e.f = e.f & Ze | t;
184
+ e.f = e.f & et | t;
184
185
  }
185
- function Qe(e) {
186
- e.f & 512 || e.deps === null ? R(e, S) : R(e, w);
186
+ function tt(e) {
187
+ e.f & 512 || e.deps === null ? R(e, C) : R(e, T);
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 nt(e, t, n) {
192
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), R(e, C);
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
+ function rt(e) {
196
197
  var t = q, n = Y;
197
- J(null), In(null);
198
+ J(null), zn(null);
198
199
  try {
199
200
  return e();
200
201
  } finally {
201
- J(t), In(n);
202
+ J(t), zn(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 it(e, t, n, r) {
208
+ let i = Xe() ? ct : dt;
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 = Y, c = at(), 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
+ ln(e, s);
221
222
  }
222
- rt();
223
+ ot();
223
224
  }
224
225
  }
225
- var d = it();
226
+ var d = st();
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__ */ ut(e))).then(u).catch((e) => ln(e, s)).finally(d);
232
233
  }
233
234
  l ? l.then(() => {
234
- c(), f(), rt();
235
+ c(), f(), ot();
235
236
  }) : f();
236
237
  }
237
- function nt() {
238
+ function at() {
238
239
  var e = Y, t = q, n = I, r = B;
239
240
  return function(i = !0) {
240
- In(e), J(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
241
+ zn(e), J(t), Ke(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 ot(e = !0) {
245
+ zn(null), J(null), Ke(null), e && B?.deactivate();
245
246
  }
246
- function it() {
247
+ function st() {
247
248
  var e = Y, t = e.b, n = B, 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), {
254
+ function ct(e) {
255
+ var t = 2 | w;
256
+ return Y !== null && (Y.f |= D), {
256
257
  ctx: I,
257
258
  deps: null,
258
259
  effects: null,
259
- equals: Oe,
260
+ equals: je,
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
267
  parent: Y,
267
268
  ac: null
268
269
  };
269
270
  }
270
- var ot = Symbol("obsolete");
271
+ var lt = Symbol("obsolete");
271
272
  /*#__NO_SIDE_EFFECTS__*/
272
- function st(e, t, n) {
273
+ function ut(e, t, n) {
273
274
  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();
275
+ r === null && Pe();
276
+ var i = void 0, a = Lt(m), o = !q, s = /* @__PURE__ */ new Set();
277
+ return bn(() => {
278
+ var t = Y, n = se();
278
279
  i = n.promise;
279
280
  try {
280
281
  Promise.resolve(e()).then(n.resolve, (e) => {
281
- e !== ye && n.reject(e);
282
- }).finally(rt);
282
+ e !== xe && n.reject(e);
283
+ }).finally(ot);
283
284
  } catch (e) {
284
- n.reject(e), rt();
285
+ n.reject(e), ot();
285
286
  }
286
287
  var c = B;
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 = st();
290
+ if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(lt);
291
+ else for (let e of s.values()) e.reject(lt);
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 !== lt && (c.activate(), t ? (a.f |= k, Vt(a, t)) : (a.f & 8388608 && (a.f ^= k), 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
+ }), mn(() => {
299
+ for (let e of s) e.reject(lt);
299
300
  }), new Promise((e) => {
300
301
  function t(n) {
301
302
  function r() {
@@ -308,52 +309,52 @@ function st(e, t, n) {
308
309
  }
309
310
  /*#__NO_SIDE_EFFECTS__*/
310
311
  function z(e) {
311
- let t = /* @__PURE__ */ at(e);
312
- return Rn(t), t;
312
+ let t = /* @__PURE__ */ ct(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 dt(e) {
317
+ let t = /* @__PURE__ */ ct(e);
318
+ return t.equals = Ne, t;
318
319
  }
319
- function lt(e) {
320
+ function ft(e) {
320
321
  var t = e.effects;
321
322
  if (t !== null) {
322
323
  e.effects = null;
323
324
  for (var n = 0; n < t.length; n += 1) K(t[n]);
324
325
  }
325
326
  }
326
- function ut(e) {
327
+ function pt(e) {
327
328
  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);
329
+ if (!In && r !== null && e.v !== m && r.f & 24576) return Ce(), e.v;
330
+ zn(r);
330
331
  try {
331
- lt(e), t = Jn(e);
332
+ ft(e), t = Zn(e);
332
333
  } finally {
333
- In(n);
334
+ zn(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 mt(e) {
339
+ var t = pt(e);
340
+ if (!e.equals(t) && (e.wv = Jn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), vt?.capture(e, t, !0)), e.deps === null))) {
341
+ R(e, C);
341
342
  return;
342
343
  }
343
- Nn || (V === null ? Qe(e) : (un() || B?.is_fork) && V.set(e, t));
344
+ In || (V === null ? tt(e) : (pn() || B?.is_fork) && V.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(() => {
347
- t.ac.abort(ye), t.ac = null;
348
- }), t.fn !== null && (t.teardown = re), Zn(t, 0), Sn(t));
346
+ function ht(e) {
347
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && rt(() => {
348
+ t.ac.abort(xe), t.ac = null;
349
+ }), t.fn !== null && (t.teardown = ae), er(t, 0), Tn(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 gt(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 _t = null, B = null, vt = null, V = 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
+ _t === null ? _t = this : (_t.#n = this, this.#t = _t), _t = 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) R(r, w), t(r);
406
+ for (r of n.m) R(r, T), 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 ^= C;
421
422
  }
422
423
  }
423
424
  n || e.push(t);
@@ -426,24 +427,24 @@ 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), R(e, w), this.schedule(e);
431
+ for (let e of this.#d) R(e, T), 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
441
  if (B = 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
+ for (let [e, t] of this.#f) Mt(e, t);
447
448
  r.length > 0 && B.#_();
448
449
  return;
449
450
  }
@@ -454,7 +455,7 @@ 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
+ this.#r.clear(), vt = this, At(n), At(t), vt = null, this.#s?.resolve();
458
459
  var o = B;
459
460
  if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) {
460
461
  if (o !== null) {
@@ -462,14 +463,14 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
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 ^= C;
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 ^= C : 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,7 +510,7 @@ 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), R(i, w), this.schedule(i));
513
514
  }
514
515
  }
515
516
  };
@@ -517,10 +518,10 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
517
518
  this.oncommit(() => e.discard()), e.#S(), B = 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) nt(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]), V?.set(e, t)), this.is_fork || (e.v = t);
524
525
  }
525
526
  activate() {
526
527
  B = this;
@@ -530,15 +531,15 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
530
531
  }
531
532
  flush() {
532
533
  try {
533
- vt = !0, B = this, this.#_();
534
+ xt = !0, B = 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, B = null, V = 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(lt);
542
543
  this.#S(), this.#s?.resolve();
543
544
  }
544
545
  register_created_effect(e) {
@@ -571,12 +572,12 @@ 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 ??= se()).promise;
575
576
  }
576
577
  static ensure() {
577
578
  if (B === null) {
578
579
  let t = B = new e();
579
- !vt && !_t && L(() => {
580
+ !xt && !bt && L(() => {
580
581
  t.#e || t.flush();
581
582
  });
582
583
  }
@@ -586,7 +587,7 @@ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt =
586
587
  V = 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 ? _t = 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
608
  for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
608
- if (Xe(), B === null) return n;
609
+ if ($e(), B === null) return n;
609
610
  B.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
+ ze();
618
619
  } catch (e) {
619
- on(e, gt);
620
+ ln(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 && On(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
+ function jt(e) {
646
647
  B.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), R(e, C);
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
+ R(e, C);
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: je,
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 = Ne), 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 q !== null && (!Rn || q.f & 131072) && Xe() && q.f & 4325394 && (Bn === null || !Bn.has(e)) && We(), 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
+ In ? 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 && pt(t), V === null && tt(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, w, n), zt = null, Xe() && Y !== null && Y.f & 1024 && !(Y.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 && R(e, T);
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 = Xe(), 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
725
  if (i || s !== Y) {
725
- var l = (c & C) === 0;
726
- if (l && R(s, t), c & 131072) jt.add(s);
726
+ var l = (c & w) === 0;
727
+ if (l && R(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
+ V?.delete(u), Wt(u, T, 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 || A in e || j 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 = q, n = Kn;
746
+ J(null), qn(o);
746
747
  var r = e();
747
- return J(t), Wn(n), r;
748
+ return J(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) && He();
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 === A) 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 === A) return !0;
796
+ var r = n.get(t), i = r !== void 0 && r.v !== m || Reflect.has(e, t);
797
+ return (r !== void 0 || Y !== 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
+ Ue();
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[ve] = void 0, e[_e] = null, e[ye] = void 0, e.__e = void 0), ie(n) && (n[be] = void 0);
840
841
  }
841
842
  }
842
843
  function W(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 Zt(e) {
848
+ return Jt.call(e);
848
849
  }
849
850
  /*@__NO_SIDE_EFFECTS__*/
850
- function Yt(e) {
851
- return Kt.call(e);
851
+ function Qt(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 $t(e, t) {
855
+ if (!M) return /* @__PURE__ */ Zt(e);
856
+ var n = /* @__PURE__ */ Zt(P);
857
+ if (n === null) n = P.appendChild(W());
857
858
  else if (t && n.nodeType !== 3) {
858
859
  var r = W();
859
- return n?.before(r), P(r), r;
860
+ return n?.before(r), F(r), r;
860
861
  }
861
- return t && rn(n), P(n), n;
862
+ return t && sn(n), F(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 en(e, t = !1) {
865
+ if (!M) {
866
+ var n = /* @__PURE__ */ Zt(e);
867
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
867
868
  }
868
869
  if (t) {
869
- if (N?.nodeType !== 3) {
870
+ if (P?.nodeType !== 3) {
870
871
  var r = W();
871
- return N?.before(r), P(r), r;
872
+ return P?.before(r), F(r), r;
872
873
  }
873
- rn(N);
874
+ sn(P);
874
875
  }
875
- return N;
876
+ return P;
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 tn(e, t = !1) {
879
+ if (!M) return /* @__PURE__ */ Zt(e);
880
+ var n = $t(e, t);
881
+ return De(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 nn(e, t = 1, n = !1) {
884
+ let r = M ? P : e;
885
+ for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
886
+ if (!M) return r;
886
887
  if (n) {
887
888
  if (r?.nodeType !== 3) {
888
889
  var a = W();
889
- return r === null ? i?.after(a) : r.before(a), P(a), a;
890
+ return r === null ? i?.after(a) : r.before(a), F(a), a;
890
891
  }
891
- rn(r);
892
+ sn(r);
892
893
  }
893
- return P(r), r;
894
+ return F(r), r;
894
895
  }
895
- function en(e) {
896
+ function rn(e) {
896
897
  e.textContent = "";
897
898
  }
898
- function tn() {
899
+ function an() {
899
900
  return !1;
900
901
  }
901
- function nn(e, t, n) {
902
+ function on(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 sn(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
+ function cn(e) {
910
911
  var t = Y;
911
- if (t === null) return q.f |= O, e;
912
+ if (t === null) return q.f |= k, e;
912
913
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
913
- on(e, t);
914
+ ln(e, t);
914
915
  }
915
- function on(e, t) {
916
+ function ln(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 un(e) {
936
+ Y === null && (q === null && Re(e), Le()), In && Ie(e);
936
937
  }
937
- function cn(e, t) {
938
+ function dn(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
+ function fn(e, t) {
942
943
  var n = Y;
943
- n !== null && n.f & 8192 && (e |= oe);
944
+ n !== null && n.f & 8192 && (e |= ce);
944
945
  var r = {
945
946
  ctx: I,
946
947
  deps: null,
947
948
  nodes: null,
948
- f: e | C | 512,
949
+ f: e | w | 512,
949
950
  first: null,
950
951
  fn: t,
951
952
  last: null,
@@ -959,103 +960,103 @@ function ln(e, t) {
959
960
  };
960
961
  B?.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
968
  throw K(r), e;
968
969
  }
969
- 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
+ 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 |= de));
970
971
  }
971
- if (i !== null && (i.parent = n, n !== null && cn(i, n), q !== null && q.f & 2 && !(e & 64))) {
972
+ if (i !== null && (i.parent = n, n !== null && dn(i, n), q !== null && q.f & 2 && !(e & 64))) {
972
973
  var a = q;
973
974
  (a.effects ??= []).push(i);
974
975
  }
975
976
  return r;
976
977
  }
977
- function un() {
978
- return q !== null && !Fn;
978
+ function pn() {
979
+ return q !== null && !Rn;
979
980
  }
980
- function dn(e) {
981
- let t = ln(8, null);
982
- return R(t, S), t.teardown = e, t;
981
+ function mn(e) {
982
+ let t = fn(8, null);
983
+ return R(t, C), t.teardown = e, t;
983
984
  }
984
- function fn(e) {
985
- sn("$effect");
985
+ function hn(e) {
986
+ un("$effect");
986
987
  var t = Y.f;
987
988
  if (!q && t & 32 && I !== null && !I.i) {
988
989
  var n = I;
989
990
  (n.e ??= []).push(e);
990
- } else return pn(e);
991
+ } else return gn(e);
991
992
  }
992
- function pn(e) {
993
- return ln(4 | ue, e);
993
+ function gn(e) {
994
+ return fn(4 | fe, e);
994
995
  }
995
- function mn(e) {
996
- Ct.ensure();
997
- let t = ln(64 | E, e);
996
+ function _n(e) {
997
+ Et.ensure();
998
+ let t = fn(64 | D, e);
998
999
  return () => {
999
1000
  K(t);
1000
1001
  };
1001
1002
  }
1002
- function hn(e) {
1003
- Ct.ensure();
1004
- let t = ln(64 | E, e);
1003
+ function vn(e) {
1004
+ Et.ensure();
1005
+ let t = fn(64 | D, e);
1005
1006
  return (e = {}) => new Promise((n) => {
1006
- e.outro ? En(t, () => {
1007
+ e.outro ? kn(t, () => {
1007
1008
  K(t), n(void 0);
1008
1009
  }) : (K(t), n(void 0));
1009
1010
  });
1010
1011
  }
1011
- function gn(e) {
1012
- return ln(4, e);
1012
+ function yn(e) {
1013
+ return fn(4, e);
1013
1014
  }
1014
- function _n(e) {
1015
- return ln(fe | E, e);
1015
+ function bn(e) {
1016
+ return fn(me | D, e);
1016
1017
  }
1017
- function vn(e, t = 0) {
1018
- return ln(8 | t, e);
1018
+ function xn(e, t = 0) {
1019
+ return fn(8 | t, e);
1019
1020
  }
1020
- function yn(e, t = [], n = [], r = []) {
1021
- tt(r, t, n, (t) => {
1022
- ln(8, () => {
1021
+ function Sn(e, t = [], n = [], r = []) {
1022
+ it(r, t, n, (t) => {
1023
+ fn(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 Cn(e, t = 0) {
1029
+ return fn(16 | t, e);
1029
1030
  }
1030
1031
  function G(e) {
1031
- return ln(32 | E, e);
1032
+ return fn(32 | D, e);
1032
1033
  }
1033
- function xn(e) {
1034
+ function wn(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 = In, r = q;
1038
+ Ln(!0), J(null);
1038
1039
  try {
1039
1040
  t.call(null);
1040
1041
  } catch (t) {
1041
- on(t, e.parent);
1042
+ ln(t, e.parent);
1042
1043
  } finally {
1043
- Pn(n), J(r);
1044
+ Ln(n), J(r);
1044
1045
  }
1045
1046
  }
1046
1047
  }
1047
- function Sn(e, t = !1) {
1048
+ function Tn(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.abort(ye);
1052
+ e !== null && rt(() => {
1053
+ e.abort(xe);
1053
1054
  });
1054
1055
  var r = n.next;
1055
1056
  n.f & 64 ? n.parent = null : K(n, t), n = r;
1056
1057
  }
1057
1058
  }
1058
- function Cn(e) {
1059
+ function En(e) {
1059
1060
  for (var t = e.first; t !== null;) {
1060
1061
  var n = t.next;
1061
1062
  t.f & 32 || K(t), t = n;
@@ -1063,26 +1064,26 @@ function Cn(e) {
1063
1064
  }
1064
1065
  function K(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 && (Dn(e.nodes.start, e.nodes.end), n = !0), e.f |= ue, Tn(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
+ wn(e), e.f ^= ue, e.f |= le;
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 && On(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 Dn(e, t) {
1074
1075
  for (; e !== null;) {
1075
- var n = e === t ? null : /* @__PURE__ */ Yt(e);
1076
+ var n = e === t ? null : /* @__PURE__ */ Qt(e);
1076
1077
  e.remove(), e = n;
1077
1078
  }
1078
1079
  }
1079
- function Tn(e) {
1080
+ function On(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 kn(e, t, n = !0) {
1084
1085
  var r = [];
1085
- e.f |= 256, Dn(e, r, !0);
1086
+ e.f |= 256, An(e, r, !0);
1086
1087
  var i = () => {
1087
1088
  n && K(e), t && t();
1088
1089
  }, a = r.length;
@@ -1091,215 +1092,215 @@ function En(e, t, n = !0) {
1091
1092
  for (var s of r) s.out(o);
1092
1093
  } else i();
1093
1094
  }
1094
- function Dn(e, t, n) {
1095
+ function An(e, t, n) {
1095
1096
  if (!(e.f & 8192)) {
1096
- e.f ^= oe;
1097
+ e.f ^= ce;
1097
1098
  var r = e.nodes && e.nodes.t;
1098
1099
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1099
1100
  for (var i = e.first; i !== null;) {
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
+ An(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 jn(e) {
1111
+ e.f &= -257, Mn(e, !0);
1111
1112
  }
1112
- function kn(e, t) {
1113
+ function Mn(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 ^= ce, e.f & 1024 || (R(e, w), 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
+ Mn(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 Nn(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__ */ Qt(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 Pn = null, Fn = !1, In = !1;
1133
+ function Ln(e) {
1134
+ In = e;
1134
1135
  }
1135
- var q = null, Fn = !1;
1136
+ var q = null, Rn = !1;
1136
1137
  function J(e) {
1137
1138
  q = e;
1138
1139
  }
1139
1140
  var Y = null;
1140
- function In(e) {
1141
+ function zn(e) {
1141
1142
  Y = 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
+ q !== null && (q.f & 2097152 || q.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) && mt(a), a.wv > e.wv) return !0;
1165
1166
  }
1166
- t & 512 && V === null && R(e, S);
1167
+ t & 512 && V === null && R(e, C);
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 ? R(a, w) : a.f & 1024 && R(a, T), 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(() => {
1180
- e.ac.abort(ye);
1178
+ function Zn(e) {
1179
+ var t = X, n = Z, r = Hn, i = q, a = Bn, o = I, s = Rn, c = Kn, l = e.f;
1180
+ X = null, Z = 0, Hn = null, q = l & 96 ? null : e, Bn = null, Ke(e.ctx), Rn = !1, Kn = ++Gn, e.ac !== null && (rt(() => {
1181
+ e.ac.abort(xe);
1181
1182
  }), e.ac = null);
1182
1183
  try {
1183
- e.f |= D;
1184
+ e.f |= O;
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 |= E;
1187
+ var f = Qn(e);
1188
+ if (Xe() && Hn !== null && !Rn && 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 ^= k), d;
1194
1195
  } catch (t) {
1195
- return Yn(e), an(t);
1196
+ return Qn(e), cn(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 ^= O, X = t, Z = n, Hn = r, q = i, Bn = a, Ke(o), Rn = s, Kn = c;
1198
1199
  }
1199
1200
  }
1200
- function Yn(e) {
1201
+ function Qn(e) {
1201
1202
  var t = e.deps, n = B?.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 (pn() && 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 && tt(a), a.ac !== null && rt(() => {
1223
+ a.ac.abort(xe), a.ac = null, R(a, w);
1224
+ }), ht(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
+ R(e, C);
1235
+ var n = Y, r = Fn;
1236
+ Y = e, Fn = !(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 ? En(e) : Tn(e), wn(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
+ Fn = r, Y = 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
+ if (Pn?.add(e), q !== null && !Rn && !(Y !== null && Y.f & 16384) && (Bn === null || !Bn.has(e))) {
1248
1249
  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));
1250
+ if (q.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
+ q.deps ??= [], v.call(q.deps, e) || q.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 = [q] : v.call(r, q) || r.push(q);
1254
1255
  }
1255
1256
  }
1256
- if (Nn && Mt.has(e)) return Mt.get(e);
1257
+ if (In && Ft.has(e)) return Ft.get(e);
1257
1258
  if (t) {
1258
1259
  var i = e;
1259
- if (Nn) {
1260
+ if (In) {
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 = pt(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) && !Rn && q !== null && (Fn || !!(q.f & 512)), s = (i.f & E) === 0;
1265
+ Yn(i) && (o && (i.f |= 512), mt(i)), o && !s && (gt(i), nr(i));
1265
1266
  }
1266
1267
  if (V?.has(e)) return V.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) && (gt(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 = Rn;
1281
1282
  try {
1282
- return Fn = !0, e();
1283
+ return Rn = !0, e();
1283
1284
  } finally {
1284
- Fn = t;
1285
+ Rn = 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 (A 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 && A 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;
1317
+ var sr = Symbol("events"), cr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
1318
+ function ur(e, t, n) {
1319
+ (t[sr] ??= {})[e] = n;
1319
1320
  }
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);
1323
- }
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
1349
  var u = q, d = Y;
1349
- J(null), In(null);
1350
+ J(null), zn(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,23 +1366,23 @@ 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, J(u), zn(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 = on("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
+ function vr(e, t) {
1385
1386
  var n = Y;
1386
1387
  n.nodes === null && (n.nodes = {
1387
1388
  start: e,
@@ -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 (M) return vr(P, null), P;
1399
+ i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(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__ */ Zt(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;
1408
+ function br() {
1409
+ if (M) return vr(P, null), P;
1409
1410
  var e = document.createDocumentFragment(), t = document.createComment(""), n = W();
1410
- return e.append(t, n), hr(t, n), e;
1411
+ return e.append(t, n), vr(t, n), e;
1411
1412
  }
1412
- function vr(e, t) {
1413
- if (j) {
1413
+ function xr(e, t) {
1414
+ if (M) {
1414
1415
  var n = Y;
1415
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = N), F();
1416
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = P), Ee();
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
+ pn() && (Q(n), xn(() => (t === 0 && (r = ir(() => e(() => Ut(n)))), t += 1, () => {
1431
1432
  L(() => {
1432
- --t, t === 0 && (r?.(), r = void 0, Bt(n));
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 = de | D;
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 = M ? P : null;
1449
1450
  #n;
1450
1451
  #r;
1451
1452
  #i;
@@ -1459,24 +1460,24 @@ 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
1468
  var t = Y;
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 = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Cn(() => {
1471
+ if (M) {
1471
1472
  let e = this.#t;
1472
- F();
1473
+ Ee();
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), M && (this.#e = P);
1480
1481
  }
1481
1482
  #g() {
1482
1483
  try {
@@ -1495,10 +1496,10 @@ var wr = class {
1495
1496
  var t = !1, n = !1;
1496
1497
  let r = () => {
1497
1498
  if (t) {
1498
- Ce();
1499
+ Te();
1499
1500
  return;
1500
1501
  }
1501
- t = !0, n && He(), this.#s !== null && En(this.#s, () => {
1502
+ t = !0, n && Ge(), this.#s !== null && kn(this.#s, () => {
1502
1503
  this.#s = null;
1503
1504
  }), this.#S(() => {
1504
1505
  this.#b();
@@ -1510,7 +1511,7 @@ 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
+ ln(e, this.#i && this.#i.parent);
1514
1515
  }
1515
1516
  }
1516
1517
  };
@@ -1526,7 +1527,7 @@ var wr = class {
1526
1527
  try {
1527
1528
  this.error(e), n = !0;
1528
1529
  } catch (e) {
1529
- on(e, this.#i.parent);
1530
+ ln(e, this.#i.parent);
1530
1531
  }
1531
1532
  return null;
1532
1533
  }
@@ -1534,7 +1535,7 @@ var wr = class {
1534
1535
  this.#c = null, n && this.#x(B);
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, kn(this.#o, () => {
1538
1539
  this.#o = null;
1539
1540
  }), this.#x(B));
1540
1541
  }));
@@ -1545,7 +1546,7 @@ var wr = class {
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
+ Nn(this.#a, e);
1549
1550
  let t = this.#n.pending;
1550
1551
  this.#o = G(() => t(this.#e));
1551
1552
  } else this.#x(B);
@@ -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
+ nt(e, this.#f, this.#p);
1561
1562
  }
1562
1563
  is_rendered() {
1563
1564
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1567,11 +1568,11 @@ var wr = class {
1567
1568
  }
1568
1569
  #S(e) {
1569
1570
  var t = Y, n = q, r = I;
1570
- In(this.#i), J(this.#i), Ue(this.#i.ctx);
1571
+ zn(this.#i), J(this.#i), Ke(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
+ zn(t), J(n), Ke(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 && kn(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
1588
  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);
1589
+ this.#d = !1, this.#m && Vt(this.#m, this.#l);
1589
1590
  }));
1590
1591
  }
1591
1592
  get_effect_pending() {
@@ -1598,7 +1599,7 @@ var wr = class {
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 &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), M && (F(this.#t), Oe(), F(ke()));
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(() => {
@@ -1608,7 +1609,7 @@ var wr = class {
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 ln(e, this.#i.parent), null;
1612
1613
  }
1613
1614
  }));
1614
1615
  };
@@ -1617,83 +1618,83 @@ var wr = class {
1617
1618
  try {
1618
1619
  t = this.transform_error(e);
1619
1620
  } catch (e) {
1620
- on(e, this.#i && this.#i.parent);
1621
+ ln(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) => ln(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
- n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1630
+ n !== (e[be] ??= e.nodeValue) && (e[be] = 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 = M, i = P;
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__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
1640
+ if (!a) throw p;
1641
+ N(!0), F(a);
1642
+ let r = Mr(e, {
1642
1643
  ...t,
1643
1644
  anchor: a
1644
1645
  });
1645
- return M(!1), r;
1646
+ return N(!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 && Be(), Xt(), rn(n), N(!1), kr(e, t);
1649
1650
  } finally {
1650
- M(r), P(i);
1651
+ N(r), F(i);
1651
1652
  }
1652
1653
  }
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(() => {
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 = vn(() => {
1657
1658
  var o = n ?? t.appendChild(W());
1658
- Cr(o, { pending: () => {} }, (t) => {
1659
- We({});
1659
+ Er(o, { pending: () => {} }, (t) => {
1660
+ qe({});
1660
1661
  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();
1662
+ if (a && (n.c = a), i && (r.$$events = i), M && vr(t, null), c = e(t, r) || Ye(), M && (Y.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]")) throw we(), p;
1663
+ Je();
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,10 +1707,10 @@ 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) jn(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 && (jn(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;
@@ -1721,14 +1722,14 @@ var Mr = class {
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
+ Nn(r, t), t.append(W()), this.#n.set(e, {
1725
1726
  effect: r,
1726
1727
  fragment: t
1727
1728
  });
1728
1729
  } else K(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), kn(r, i, !1)) : i();
1732
1733
  }
1733
1734
  }
1734
1735
  };
@@ -1738,7 +1739,7 @@ var Mr = class {
1738
1739
  for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1739
1740
  };
1740
1741
  ensure(e, t) {
1741
- var n = B, r = tn();
1742
+ var n = B, r = an();
1742
1743
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1743
1744
  if (r) {
1744
1745
  var i = document.createDocumentFragment(), a = W();
@@ -1752,27 +1753,27 @@ var Mr = class {
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 M && (this.anchor = P), 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
+ M && (r = P, Ee());
1764
+ var i = new Fr(e), a = n ? de : 0;
1764
1765
  function o(e, t) {
1765
- if (j) {
1766
- var n = De(r);
1766
+ if (M) {
1767
+ var n = Ae(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 = ke();
1770
+ F(a), i.anchor = a, N(!1), i.ensure(e, t), N(!0);
1770
1771
  return;
1771
1772
  }
1772
1773
  }
1773
1774
  i.ensure(e, t);
1774
1775
  }
1775
- bn(() => {
1776
+ Cn(() => {
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
+ kn(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
+ rn(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 |= pe, Nn(a, document.createDocumentFragment())) : K(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 = M ? F(/* @__PURE__ */ Zt(c)) : c.appendChild(W());
1825
1826
  }
1826
- j && F();
1827
- var l = null, u = /* @__PURE__ */ ct(() => {
1827
+ M && Ee();
1828
+ var l = null, u = /* @__PURE__ */ dt(() => {
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 ^= pe, Wr(l, null, o)) : jn(l) : kn(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: Cn(() => {
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
+ M && Ae(o) === "[!" != (e === 0) && (o = ke(), F(o), N(!1), c = !0);
1846
+ for (var g = /* @__PURE__ */ new Set(), _ = B, v = an(), y = 0; y < e; y += 1) {
1847
+ M && P.nodeType === 8 && P.data === "]" && (o = P, c = !0, N(!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 ??= W(), b, x, y, i, t, n), p || (S.e.f |= pe), 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 = G(() => a(o)) : (l = G(() => a(zr ??= W())), l.f |= pe)), e > g.size && Fe("", "", ""), M && e > 0 && F(ke()), !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 && N(!0), Q(u);
1857
1858
  }),
1858
1859
  flags: t,
1859
1860
  items: s,
@@ -1861,66 +1862,66 @@ 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, M && (o = P);
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 && (jn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) {
1877
+ if (g.f ^= pe, 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
1919
  a && L(() => {
1919
- if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
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,
@@ -1929,38 +1930,38 @@ function Br(e, t, n, r, i, a, o, s) {
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__ */ Qt(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(() => {
1945
+ function Kr(e, t) {
1946
+ yn(() => {
1946
1947
  e = Y?.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 = on("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
+ yn(() => {
1959
+ var r = ir(() => t(e, n?.()) || {});
1959
1960
  if (n && r?.update) {
1960
1961
  var i = !1, a = {};
1961
- vn(() => {
1962
+ xn(() => {
1962
1963
  var e = n();
1963
- nr(e), i && ke(a, e) && (a = e, r.update(e));
1964
+ ar(e), i && Me(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[ve];
2030
+ if (M || o !== n || o === void 0) {
2031
+ var s = Yr(n, r, a);
2032
+ (!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ve] = 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[ye];
2049
+ if (M || i !== t) {
2050
+ var a = Qr(t, r);
2051
+ (!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ye] = 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 = Se ? "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
+ M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ii) || i[t] !== (i[t] = n) && (t === "loading" && (e[ge] = 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
+ function ai(e, t, n) {
2062
2063
  var r = q, i = Y;
2063
- let a = j;
2064
- j && M(!1), J(null), In(null);
2064
+ let a = M;
2065
+ M && N(!1), J(null), zn(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
+ J(r), zn(i), a && N(!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[_e] ??= {
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?.[A] === t;
2092
2093
  }
2093
- function si(e = Ke(), t, n, r) {
2094
+ function ui(e = Ye(), t, n, r) {
2094
2095
  var i = I.r, a = Y;
2095
- return gn(() => {
2096
+ return yn(() => {
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 xn(() => {
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__ */ ct(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 = A in e || he 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 && Ve(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 ? ct : dt)(() => (_ = !1, h()));
2150
2151
  a && Q(v);
2151
- var ee = Y;
2152
+ var y = Y;
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 In && _ || 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 === he || (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 = on("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 = _n(() => {
2279
+ xn(() => {
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
+ qe(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 = pi(p, "baseRate", 7, 1), x = pi(p, "pitch", 7, void 0), S = pi(p, "volume", 7, void 0), ee = typeof window < "u", te = /font.?awesome|fa-?pro/i, ne = (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
+ }, re = () => {
2374
+ ee && (Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => te.test(e.href)) || ne("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"));
2375
+ }, ie = "__pieFaTtsShadowInstalled", ae = (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[ie]) return;
2380
+ n[ie] = !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) => te.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
+ }, oe = (e) => {
2399
+ re(), ae(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
+ }, se = (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,169 +2428,120 @@ 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
- 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;
2438
- }
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));
2431
+ }, C = (e) => (re(), ae(e), {}), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(void 0), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ z(() => Q(ce)?.ndsIcons === !0), E = /* @__PURE__ */ z(() => u(Q(ce))), ue = /* @__PURE__ */ H(null), de = /* @__PURE__ */ H(null), D = /* @__PURE__ */ z(() => Q(ce)?.ttsService), fe = /* @__PURE__ */ z(() => Q(ce)?.highlightCoordinator), pe = /* @__PURE__ */ z(() => Q(de)?.scopeElement || Q(ue)?.scopeElement || null), O = /* @__PURE__ */ H(!1), me = /* @__PURE__ */ H(!1), k = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(""), he = /* @__PURE__ */ H(null), ge = /* @__PURE__ */ H(null), _e = /* @__PURE__ */ H(!1), ve = /* @__PURE__ */ H(!1), ye = !1, be = 0, xe = null, Se = null, Ce = /* @__PURE__ */ z(() => s(_())), we = /* @__PURE__ */ z(() => Ne(Q(Ce))), Te = /* @__PURE__ */ z(() => Q(Ce).length > 1 || v() ? Q(Ce) : []), M = /* @__PURE__ */ z(() => Q(he) !== null && Q(ge) === Q(we) && Q(Ce).some((e) => e.rate === Q(he)) ? Q(he) : Fe(Q(Ce))), N = /* @__PURE__ */ z(() => typeof b() == "number" && Number.isFinite(b()) && b() > 0 ? b() : 1), P = /* @__PURE__ */ z(() => Q(M) * Q(N)), F = /* @__PURE__ */ z(() => `${Q(we)}@${Q(N)}`), Ee = /* @__PURE__ */ z(() => Pe(x(), 0, 2)), Oe = /* @__PURE__ */ z(() => Pe(S(), 0, 1)), ke = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, Ae = `${ke}-controls`;
2432
+ function je() {
2433
+ return Q(D)?.getRunOwner() === ke;
2449
2434
  }
2450
- function De() {
2451
- _ && P() === M && (delete window[v], Te(null, M));
2435
+ function Me(e = "", t = !1) {
2436
+ U(_e, !1), U(k, !1), U(A, !1), U(O, t, !0), U(j, 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 Ne(e) {
2457
2439
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
2458
2440
  }
2459
- function Ae(e) {
2460
- return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
2441
+ function Pe(e, t, n) {
2442
+ return typeof e == "number" && Number.isFinite(e) ? Math.min(n, Math.max(t, e)) : void 0;
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 });
2444
+ function Fe(e) {
2445
+ return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
2468
2446
  }
2469
- function Me() {
2470
- if (!Q(C) || !Q(w)) return !1;
2471
- let e = Q(C).getRootNode();
2447
+ function Ie() {
2448
+ if (!Q(w) || !Q(T)) return !1;
2449
+ let e = Q(w).getRootNode();
2472
2450
  if (!(e instanceof ShadowRoot)) return !1;
2473
2451
  let t = e.activeElement;
2474
- return !!(t && Q(w).contains(t));
2452
+ return !!(t && Q(T).contains(t));
2475
2453
  }
2476
- function Ne() {
2477
- if (!Q(w)) return !1;
2478
- let e = Q(w).getRootNode();
2454
+ function Le() {
2455
+ if (!Q(T)) return !1;
2456
+ let e = Q(T).getRootNode();
2479
2457
  if (!(e instanceof ShadowRoot)) return !1;
2480
2458
  let t = e.activeElement;
2481
- return !t || !Q(w).contains(t) ? !1 : t.matches(Be);
2459
+ return !t || !Q(T).contains(t) ? !1 : t.matches(Ue);
2482
2460
  }
2483
- function Pe() {
2484
- let e = Q(w)?.querySelector(Ve);
2461
+ function Re() {
2462
+ let e = Q(T)?.querySelector(We);
2485
2463
  if (e && !e.disabled) {
2486
2464
  e.focus();
2487
2465
  return;
2488
2466
  }
2489
- Fe(!0);
2467
+ ze(!0);
2490
2468
  }
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();
2469
+ function ze(e) {
2470
+ if (!e) return;
2471
+ let t = _t();
2472
+ (t?.querySelector("button") ?? t)?.focus();
2497
2473
  }
2498
- function Ie(e = Q(T).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2499
- if (!Q(_e) && (Q(D) || F())) {
2500
- U(_e, !0);
2474
+ function Be(e = Q(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2475
+ if (!Q(ve) && Q(O)) {
2476
+ U(ve, !0);
2501
2477
  try {
2502
- let n = Me();
2503
- F() && De(), Oe(e), L(), t && queueMicrotask(() => {
2504
- Fe(n);
2478
+ let n = Ie();
2479
+ be += 1, Me(e), L(), t && queueMicrotask(() => {
2480
+ ze(n);
2505
2481
  });
2506
2482
  } finally {
2507
- U(_e, !1);
2483
+ U(ve, !1);
2508
2484
  }
2509
2485
  }
2510
2486
  }
2511
- fn(() => {
2512
- if (Q(C)) return i(Q(C), (e) => {
2513
- U(oe, e, !0);
2514
- });
2515
- }), fn(() => {
2516
- if (!Q(C)) return;
2517
- let e = a(Q(C), (e) => {
2487
+ hn(() => {
2488
+ if (Q(w)) return i(Q(w), (e) => {
2518
2489
  U(ce, e, !0);
2519
- }), t = r(Q(C), (e) => {
2520
- U(le, e, !0);
2490
+ });
2491
+ }), hn(() => {
2492
+ if (!Q(w)) return;
2493
+ let e = a(Q(w), (e) => {
2494
+ U(ue, e, !0);
2495
+ }), t = r(Q(w), (e) => {
2496
+ U(de, e, !0);
2521
2497
  });
2522
2498
  return () => {
2523
2499
  t(), e();
2524
2500
  };
2525
- }), fn(() => {
2526
- if (!Q(E)) return;
2527
- let e = (e) => {
2528
- if (!Q(D) || !F()) {
2529
- U(O, !1), U(k, !1);
2501
+ }), hn(() => {
2502
+ let e = Q(D);
2503
+ if (!e) return;
2504
+ let t = (e) => {
2505
+ if (!Q(O) || !je()) {
2506
+ U(k, !1), U(A, !1);
2530
2507
  return;
2531
2508
  }
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);
2509
+ U(k, e === "playing" || e === "paused" || e === "loading" && Q(k), !0), U(A, e === "paused");
2510
+ }, n = e.onStateChange((n) => {
2511
+ let r = String(n), i = Le();
2512
+ (r === "loading" || r === "playing" || r === "paused") && !ye && !je() && Be(), r === "idle" && !ye && e.getRunOwner() === null && Be(Q(E).t("tools.textToSpeech.inline.stopped"), !0), t(r), r === "playing" && (Q(_e) && je() && U(j, Q(E).t("tools.textToSpeech.inline.started"), !0), U(_e, !1)), (r === "error" || r === "idle") && U(_e, !1), i && !Q(k) && queueMicrotask(Re);
2536
2513
  });
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();
2514
+ return t(e.getState()), n;
2515
+ }), hn(() => () => {
2516
+ L();
2557
2517
  });
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) {
2568
- return Q(w) ? Array.from(Q(w).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
2518
+ let Ve = "[data-pie-tts-speed-rate]", He = "[data-pie-tts-media]", Ue = "[data-pie-tts-seek]", We = "[data-pie-tts-stop]";
2519
+ function Ge(e) {
2520
+ return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
2569
2521
  }
2570
2522
  function I(e, t) {
2571
- let n = He(e);
2523
+ let n = Ge(e);
2572
2524
  if (!n.length) return;
2573
2525
  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);
2526
+ if (r.focus(), e !== Ve) return;
2527
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Q(Te).find((e) => e.rate === i);
2528
+ a && ot(a);
2577
2529
  }
2578
- function Ue(e, t) {
2579
- let n = He(e);
2530
+ function Ke(e, t) {
2531
+ let n = Ge(e);
2580
2532
  if (!n.length) return;
2581
- let r = Q(w)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
2533
+ let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
2582
2534
  I(e, a === -1 ? 0 : a + t);
2583
2535
  }
2584
- function Ke(e, t) {
2536
+ function Ye(e, t) {
2585
2537
  switch (t.key) {
2586
2538
  case "ArrowDown":
2587
2539
  case "ArrowRight":
2588
- t.preventDefault(), Ue(e, 1);
2540
+ t.preventDefault(), Ke(e, 1);
2589
2541
  break;
2590
2542
  case "ArrowUp":
2591
2543
  case "ArrowLeft":
2592
- t.preventDefault(), Ue(e, -1);
2544
+ t.preventDefault(), Ke(e, -1);
2593
2545
  break;
2594
2546
  case "Home":
2595
2547
  t.preventDefault(), I(e, 0);
@@ -2597,158 +2549,164 @@ function Ei(e, u) {
2597
2549
  case "End": t.preventDefault(), I(e, -1);
2598
2550
  }
2599
2551
  }
2600
- function qe() {
2601
- return Q(de) ? c(Q(de)) : null;
2552
+ function Xe() {
2553
+ return Q(pe) ? l(Q(pe)) : null;
2602
2554
  }
2603
- function Je() {
2604
- return Q(ce) ? n(Q(ce), Q(oe)) : void 0;
2555
+ function Ze() {
2556
+ return Q(ue) ? n(Q(ue), Q(ce)) : void 0;
2605
2557
  }
2606
- function Ye(e) {
2607
- return L(), ve = Q(E)?.setHighlightTargetResolverProvider?.(() => ({
2558
+ function Qe(e, t) {
2559
+ L();
2560
+ let n = e.setHighlightTargetResolverProvider(() => ({
2608
2561
  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
2562
+ scopeElement: Q(de)?.scopeElement || t || null,
2563
+ kind: Q(ue)?.kind,
2564
+ itemId: Q(ue)?.itemId,
2565
+ canonicalItemId: Q(ue)?.canonicalItemId,
2566
+ contentKind: Q(ue)?.contentKind,
2567
+ regionPolicy: Q(ue)?.regionPolicy
2615
2568
  },
2616
- resolver: Q(le)?.ttsHighlightTargetResolver || null
2617
- })) || null, ve;
2569
+ resolver: Q(de)?.ttsHighlightTargetResolver || null
2570
+ }));
2571
+ return xe = n, n;
2618
2572
  }
2619
- function L(e = ve) {
2620
- e?.(), e === ve && (ve = null);
2573
+ function L(e = xe) {
2574
+ e?.(), e === xe && (xe = null);
2621
2575
  }
2622
- function Xe() {
2623
- if (!F()) return !1;
2624
- let e = String(Q(E)?.getState?.() || "");
2625
- return e === "playing" || e === "paused" || e === "loading";
2626
- }
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);
2576
+ function $e(e) {
2577
+ if (e.getRunOwner() !== ke) return !1;
2578
+ let t = String(e.getState());
2579
+ return t === "playing" || t === "paused" || t === "loading";
2580
+ }
2581
+ function et(e, t) {
2582
+ let n = Ie();
2583
+ Me(Q(E).t(o(e) ? "tools.textToSpeech.initFailed" : "tools.textToSpeech.inline.startFailed")), Q(fe) && Q(fe).clearTTS(), L(t), n && queueMicrotask(() => {
2584
+ ze(!0);
2631
2585
  });
2632
2586
  }
2633
- async function R() {
2634
- if (!Q(E)) return;
2635
- let e = null, t = qe();
2587
+ function R(e) {
2588
+ o(e) || c(Q(ce)?.toolkitCoordinator, "textToSpeech", "tool-playback", e);
2589
+ }
2590
+ function tt() {
2591
+ let e = Q(D);
2592
+ if (!e) return;
2593
+ let t = Xe();
2636
2594
  if (!t) {
2637
- console.warn("[TTS Inline] No target container found from shell scope context");
2595
+ m.debug("No target container found from shell scope context");
2638
2596
  return;
2639
2597
  }
2598
+ let n = ++be, r = !1, i = e.onStateChange((e) => {
2599
+ String(e) === "playing" && (r = !0);
2600
+ });
2601
+ U(O, !0), U(_e, !0), U(j, Q(E).t("tools.textToSpeech.inline.starting"), !0);
2602
+ let a = Qe(e, t), o;
2640
2603
  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);
2604
+ o = e.speak(t, {
2605
+ ownerId: ke,
2606
+ rate: Q(P),
2607
+ pitch: Q(Ee),
2608
+ volume: Q(Oe),
2609
+ catalogId: h() || void 0,
2610
+ catalogContext: Ze(),
2611
+ language: Q(ce)?.contentLanguage || void 0
2660
2612
  });
2661
- } catch (t) {
2662
- console.error("[TTS Inline] Error:", t), Ze(e);
2613
+ } catch (e) {
2614
+ o = Promise.reject(e);
2663
2615
  }
2616
+ Se = {
2617
+ service: e,
2618
+ choicesKey: Q(F)
2619
+ }, o.then(() => {
2620
+ n !== be || r || String(e.getState()) === "idle" && Me(Q(E).t("tools.textToSpeech.inline.nothingToRead"));
2621
+ }).catch((e) => {
2622
+ n === be && (R(e), et(e, a));
2623
+ }).finally(() => {
2624
+ i(), $e(e) || L(a);
2625
+ });
2664
2626
  }
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);
2627
+ function nt() {
2628
+ let e = Q(D);
2629
+ if (!e) return;
2630
+ let t = je();
2631
+ if (!(Q(_e) || t && String(e.getState()) === "loading")) {
2632
+ if (t && Q(A)) {
2633
+ e.resume(), U(j, Q(E).t("tools.textToSpeech.inline.resumed"), !0);
2669
2634
  return;
2670
2635
  }
2671
- if (F() && Q(O) && !Q(k)) {
2672
- Q(E).pause(), U(A, Q(T).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2636
+ if (t && Q(k) && !Q(A)) {
2637
+ e.pause(), U(j, Q(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2673
2638
  return;
2674
2639
  }
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
- }
2640
+ ye = !0;
2641
+ try {
2642
+ tt();
2643
+ } finally {
2644
+ ye = !1;
2687
2645
  }
2688
2646
  }
2689
2647
  }
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);
2648
+ function rt() {
2649
+ if (!Q(D)) return;
2650
+ let e = Ie();
2651
+ be += 1, Q(D).stop(), Me(Q(E).t("tools.textToSpeech.inline.stopped")), Q(fe) && Q(fe).clearTTS(), L(), e && queueMicrotask(() => {
2652
+ ze(!0);
2695
2653
  });
2696
2654
  }
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);
2655
+ async function it() {
2656
+ if (Q(D) && Q(k)) try {
2657
+ await Q(D).seekForward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedForward"), !0);
2700
2658
  } catch (e) {
2701
- console.error("[TTS Inline] Seek forward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2659
+ R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2702
2660
  }
2703
2661
  }
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);
2662
+ async function at() {
2663
+ if (Q(D) && Q(k)) try {
2664
+ await Q(D).seekBackward(1), U(j, Q(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
2707
2665
  } catch (e) {
2708
- console.error("[TTS Inline] Seek backward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2666
+ R(e), U(j, Q(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2709
2667
  }
2710
2668
  }
2711
- async function nt(e) {
2712
- let t = Q(E);
2669
+ async function ot(e) {
2670
+ let t = Q(D);
2713
2671
  if (!t) return;
2714
- if (Q(j) === e.rate) {
2715
- U(A, Q(T).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2672
+ if (Q(M) === e.rate) {
2673
+ U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2716
2674
  return;
2717
2675
  }
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);
2676
+ let n = Q(he), r = Q(ge);
2677
+ U(he, e.rate, !0), U(ge, Q(we), !0), U(j, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2720
2678
  let i = {
2721
2679
  service: t,
2722
- choicesKey: Q(Se)
2680
+ choicesKey: Q(F)
2723
2681
  };
2724
- be = i;
2682
+ Se = i;
2725
2683
  try {
2726
- await je(t, e.rate);
2684
+ await t.setPlaybackRate(e.rate * Q(N));
2727
2685
  } 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);
2686
+ Se === i && (Se = null), R(e), U(he, n, !0), U(ge, r, !0), U(j, Q(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
2729
2687
  }
2730
2688
  }
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;
2689
+ let st = /* @__PURE__ */ z(() => g() === "sm" ? "pie-tool-tts-inline__trigger--sm" : g() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), ct = /* @__PURE__ */ z(() => Q(k) && !Q(A) ? "tools.textToSpeech.inline.pauseA11y" : Q(A) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y"), lt = /* @__PURE__ */ z(() => y() === "reserved-row" || y() === "expanding-row"), ut = /* @__PURE__ */ z(() => y() === "floating-overlay"), dt = /* @__PURE__ */ z(() => y() === "left-aligned"), ft = /* @__PURE__ */ z(() => Q(ut) || Q(dt)), pt = "[data-pie-tool-overlay-boundary]", mt = /* @__PURE__ */ H(""), ht = /* @__PURE__ */ H(0);
2690
+ hn(() => {
2691
+ let e = Q(D), t = Q(F), n = Q(k) || Q(A);
2692
+ if (!e || !n || !je() || Se?.service === e && Se.choicesKey === t) return;
2735
2693
  let r = {
2736
2694
  service: e,
2737
2695
  choicesKey: t
2738
2696
  };
2739
- be = r;
2697
+ Se = r;
2740
2698
  let i = !1;
2741
2699
  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);
2700
+ if (i || Se !== r) return;
2701
+ let t = Q(P);
2702
+ e.setPlaybackRate(t).catch((e) => {
2703
+ Se === r && (Se = null), R(e);
2746
2704
  });
2747
2705
  }), () => {
2748
2706
  i = !0;
2749
2707
  };
2750
2708
  });
2751
- function dt(e, t) {
2709
+ function gt(e, t) {
2752
2710
  let n = e;
2753
2711
  for (; n;) {
2754
2712
  if (n.matches?.(t)) return n;
@@ -2756,37 +2714,37 @@ function Ei(e, u) {
2756
2714
  }
2757
2715
  return null;
2758
2716
  }
2759
- function ft() {
2760
- let e = Q(C)?.getRootNode();
2717
+ function _t() {
2718
+ let e = Q(w)?.getRootNode();
2761
2719
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
2762
2720
  }
2763
- function pt(e) {
2721
+ function B(e) {
2764
2722
  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
2723
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
2766
2724
  }
2767
- function mt() {
2768
- let e = ft();
2769
- 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);
2774
- }
2775
- U(fe, Q(ut) > 0 && i < Q(ut), !0);
2776
- let a = parseFloat(window.getComputedStyle(Q(w)).minWidth) || 0;
2777
- if (Q(fe) && i < a) {
2778
- 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));`);
2725
+ function vt() {
2726
+ let e = _t();
2727
+ if (!e || !Q(T)) return;
2728
+ let t = e.getBoundingClientRect(), n = gt(e, pt), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
2729
+ if (!Q(me)) {
2730
+ let e = B(Q(T));
2731
+ e > 0 && U(ht, e, !0);
2732
+ }
2733
+ U(me, Q(ht) > 0 && i < Q(ht), !0);
2734
+ let a = parseFloat(window.getComputedStyle(Q(T)).minWidth) || 0;
2735
+ if (Q(me) && i < a) {
2736
+ 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(T).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
2737
+ U(mt, `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
2738
  return;
2781
2739
  }
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));`);
2740
+ let o = Q(T).offsetHeight || t.height, s = Q(me) ? 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;
2741
+ U(mt, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
2784
2742
  }
2785
- fn(() => {
2786
- if (!(Q(ot) && Q(D))) {
2743
+ hn(() => {
2744
+ if (!(Q(dt) && Q(O))) {
2787
2745
  let e = !1;
2788
2746
  return queueMicrotask(() => {
2789
- e || (U(lt, ""), U(fe, !1), U(ut, 0));
2747
+ e || (U(mt, ""), U(me, !1), U(ht, 0));
2790
2748
  }), () => {
2791
2749
  e = !0;
2792
2750
  };
@@ -2794,173 +2752,181 @@ function Ei(e, u) {
2794
2752
  if (typeof window > "u") return;
2795
2753
  let e = 0, t = () => {
2796
2754
  e ||= window.requestAnimationFrame(() => {
2797
- e = 0, mt();
2755
+ e = 0, vt();
2798
2756
  });
2799
2757
  };
2800
2758
  t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
2801
- let n = ft(), r = new ResizeObserver(t);
2802
- n && r.observe(n), Q(w) && r.observe(Q(w));
2803
- let i = n ? dt(n, ct) : null;
2759
+ let n = _t(), r = new ResizeObserver(t);
2760
+ n && r.observe(n), Q(T) && r.observe(Q(T));
2761
+ let i = n ? gt(n, pt) : null;
2804
2762
  i && r.observe(i);
2805
2763
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
2806
2764
  return a && r.observe(a), () => {
2807
2765
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
2808
2766
  };
2809
2767
  });
2810
- function B() {
2811
- if (!Q(C)) return null;
2812
- let e = Q(C).getRootNode();
2768
+ function V() {
2769
+ if (!Q(w)) return null;
2770
+ let e = Q(w).getRootNode();
2813
2771
  return e instanceof ShadowRoot ? e.host : null;
2814
2772
  }
2815
- fn(() => {
2816
- let e = B();
2773
+ hn(() => {
2774
+ let e = V();
2817
2775
  if (!e) return;
2818
- let t = Q(D) === !0;
2819
- if (e.getAttribute("data-active") === "true" === t) return;
2820
- let n = !1;
2776
+ let n = Q(O) === !0;
2777
+ if (e.getAttribute("data-active") === "true" === n) return;
2778
+ let r = !1;
2821
2779
  return queueMicrotask(() => {
2822
- n || (e.setAttribute("data-active", t ? "true" : "false"), e.dispatchEvent(new CustomEvent("pie-tool-active-change", {
2823
- detail: { active: t },
2780
+ r || (e.setAttribute("data-active", n ? "true" : "false"), e.dispatchEvent(new CustomEvent(t, {
2781
+ detail: { active: n },
2824
2782
  bubbles: !0,
2825
2783
  composed: !0
2826
2784
  })));
2827
2785
  }), () => {
2828
- n = !0;
2786
+ r = !0;
2829
2787
  };
2830
2788
  });
2831
- var ht = {
2789
+ var yt = {
2832
2790
  get catalogId() {
2833
- return d();
2791
+ return h();
2834
2792
  },
2835
2793
  set catalogId(e = "") {
2836
- d(e), wt();
2837
- },
2838
- get language() {
2839
- return f();
2840
- },
2841
- set language(e = "") {
2842
- f(e), wt();
2794
+ h(e), Dt();
2843
2795
  },
2844
2796
  get size() {
2845
- return p();
2797
+ return g();
2846
2798
  },
2847
2799
  set size(e = "md") {
2848
- p(e), wt();
2800
+ g(e), Dt();
2849
2801
  },
2850
2802
  get speedOptions() {
2851
- return m();
2803
+ return _();
2852
2804
  },
2853
2805
  set speedOptions(e = void 0) {
2854
- m(e), wt();
2806
+ _(e), Dt();
2855
2807
  },
2856
2808
  get showSingleSpeedOption() {
2857
- return h();
2809
+ return v();
2858
2810
  },
2859
2811
  set showSingleSpeedOption(e = !1) {
2860
- h(e), wt();
2812
+ v(e), Dt();
2861
2813
  },
2862
2814
  get layoutMode() {
2863
- return g();
2815
+ return y();
2864
2816
  },
2865
2817
  set layoutMode(e = "left-aligned") {
2866
- g(e), wt();
2818
+ y(e), Dt();
2819
+ },
2820
+ get baseRate() {
2821
+ return b();
2822
+ },
2823
+ set baseRate(e = 1) {
2824
+ b(e), Dt();
2825
+ },
2826
+ get pitch() {
2827
+ return x();
2828
+ },
2829
+ set pitch(e = void 0) {
2830
+ x(e), Dt();
2831
+ },
2832
+ get volume() {
2833
+ return S();
2834
+ },
2835
+ set volume(e = void 0) {
2836
+ S(e), Dt();
2867
2837
  }
2868
- }, V = _r(), gt = Zt(V), _t = (e) => {
2869
- var t = wi();
2838
+ }, bt = br(), xt = en(bt), St = (e) => {
2839
+ var t = Di();
2870
2840
  let n;
2871
2841
  {
2872
2842
  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);
2843
+ var t = Si(), n = $t(t), r = (e) => {
2844
+ var t = bi();
2845
+ ai(t, "type", "circle"), ai(t, "size", "small"), ai(t, "variant", "tertiary"), Sn(() => ai(t, "icon-name", Q(k) && !Q(A) ? "pause" : "play")), Sn((e) => ai(t, "button-aria-label", e), [() => Q(E).t(Q(ct))]), Sn(() => ai(t, "disabled", !Q(D))), qr(t, (e) => oe?.(e)), qr(t, (e, t) => se?.(e, t), () => ({
2846
+ "aria-expanded": Q(O) ? "true" : "false",
2847
+ "aria-controls": Q(O) ? Ae : null,
2848
+ "aria-pressed": Q(O) ? "true" : "false",
2849
+ "aria-busy": Q(_e) ? "true" : null
2850
+ })), Sn(() => $r(t, 1, `pie-tool-tts-inline__trigger ${Q(st) ?? ""}`, "svelte-9msc39")), ur("click", t, nt), xr(e, t);
2881
2851
  }, 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);
2852
+ var t = xi(), n = tn(t);
2853
+ qr(t, (e) => C?.(e)), Sn((e) => {
2854
+ $r(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(st) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(O) ? "true" : "false"), $(t, "aria-controls", Q(O) ? Ae : void 0), $(t, "aria-pressed", Q(O) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(_e) ? "true" : void 0), t.disabled = !Q(D), $r(n, 1, `fa-solid ${Q(k) && !Q(A) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
2855
+ }, [() => Q(E).t(Q(ct))]), ur("click", t, nt), xr(e, t);
2886
2856
  };
2887
- Nr(n, (e) => {
2888
- Q(se) ? e(r) : e(i, -1);
2889
- }), we(t), vr(e, t);
2857
+ Ir(n, (e) => {
2858
+ Q(le) ? e(r) : e(i, -1);
2859
+ }), De(t), xr(e, t);
2890
2860
  }, n = (e) => {
2891
- var t = _r(), n = Zt(t), r = (e) => {
2892
- var t = Si();
2861
+ var t = br(), n = en(t), r = (e) => {
2862
+ var t = Ti();
2893
2863
  let n;
2894
- var r = Xt(t), i = (e) => {
2895
- var t = xi();
2864
+ var r = $t(t), i = (e) => {
2865
+ var t = wi();
2896
2866
  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);
2867
+ Br(t, 21, () => Q(Te), (e) => e.rate, (e, t) => {
2868
+ var n = Ci(), r = $t(n), i = tn(r, !0);
2869
+ De(n), Sn(() => {
2870
+ $(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(M) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(M) === Q(t).rate), n.disabled = !Q(D), $(r, "data-label", Q(t).label), Or(i, Q(t).label);
2871
+ }), ur("click", n, () => ot(Q(t))), ur("keydown", n, (e) => Ye(Ve, e)), xr(e, n);
2872
+ }), De(t), Sn((e) => {
2873
+ n = $r(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(me) }), $(t, "aria-label", e);
2874
+ }, [() => Q(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), xr(e, t);
2905
2875
  };
2906
- Nr(r, (e) => {
2907
- Q(Ce).length > 0 && e(i);
2876
+ Ir(r, (e) => {
2877
+ Q(Te).length > 0 && e(i);
2908
2878
  });
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);
2879
+ var a = nn(r, 2), o = nn(a, 2), s = nn(o, 2);
2880
+ De(t), ui(t, (e) => U(T, e), () => Q(T)), Sn((e, r, i, c) => {
2881
+ $(t, "id", Ae), n = $r(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
2882
+ "pie-tool-tts-inline__panel--floating": Q(ut),
2883
+ "pie-tool-tts-inline__panel--row": Q(lt),
2884
+ "pie-tool-tts-inline__panel--left-aligned-inline": Q(dt),
2885
+ "pie-tool-tts-inline__panel--compact": Q(dt) && Q(me)
2886
+ }), ti(t, Q(dt) ? Q(mt) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(D) || !Q(k), $(o, "aria-label", i), o.disabled = !Q(D) || !Q(k), $(s, "aria-label", c), s.disabled = !Q(D);
2917
2887
  }, [
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);
2888
+ () => Q(E).t("tools.textToSpeech.inline.controlsA11y"),
2889
+ () => Q(E).t("tools.textToSpeech.inline.rewindA11y"),
2890
+ () => Q(E).t("tools.textToSpeech.inline.fastForwardA11y"),
2891
+ () => Q(E).t("tools.textToSpeech.inline.stopA11y")
2892
+ ]), ur("click", a, at), ur("keydown", a, (e) => Ye(He, e)), ur("click", o, it), ur("keydown", o, (e) => Ye(He, e)), ur("click", s, rt), ur("keydown", s, (e) => Ye(He, e)), xr(e, t);
2923
2893
  };
2924
- Nr(n, (e) => {
2925
- Q(D) && e(r);
2926
- }), vr(e, t);
2894
+ Ir(n, (e) => {
2895
+ Q(O) && e(r);
2896
+ }), xr(e, t);
2927
2897
  };
2928
- var r = Xt(t), i = (t) => {
2929
- var r = Ci(), i = Zt(r);
2898
+ var r = $t(t), i = (t) => {
2899
+ var r = Ei(), i = en(r);
2930
2900
  n(i);
2931
- var a = $t(i, 2);
2932
- e(a), vr(t, r);
2901
+ var a = nn(i, 2);
2902
+ e(a), xr(t, r);
2933
2903
  }, a = (t) => {
2934
- var r = Ci(), i = Zt(r);
2904
+ var r = Ei(), i = en(r);
2935
2905
  e(i);
2936
- var a = $t(i, 2);
2937
- n(a), vr(t, r);
2906
+ var a = nn(i, 2);
2907
+ n(a), xr(t, r);
2938
2908
  };
2939
- Nr(r, (e) => {
2940
- Q(st) ? e(i) : e(a, -1);
2909
+ Ir(r, (e) => {
2910
+ Q(ft) ? e(i) : e(a, -1);
2941
2911
  });
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);
2912
+ var o = tn(nn(r, 2), !0);
2913
+ De(t), ui(t, (e) => U(w, e), () => Q(w)), Sn(() => Or(o, Q(j)));
2914
+ }
2915
+ Sn(() => n = $r(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
2916
+ "pie-tool-tts-inline--controls-row": Q(lt),
2917
+ "pie-tool-tts-inline--floating": Q(ut),
2918
+ "pie-tool-tts-inline--left-aligned": Q(dt)
2919
+ })), xr(e, t);
2950
2920
  };
2951
- return Nr(gt, (e) => {
2952
- _ && e(_t);
2953
- }), vr(e, V), Ge(ht);
2921
+ return Ir(xt, (e) => {
2922
+ ee && e(St);
2923
+ }), xr(e, bt), Je(yt);
2954
2924
  }
2955
- cr(["click", "keydown"]), Di("pie-tool-tts-inline", gi(Ei, {
2925
+ dr(["click", "keydown"]), Ai("pie-tool-tts-inline", yi(ki, {
2956
2926
  catalogId: {
2957
2927
  attribute: "catalog-id",
2958
2928
  type: "String"
2959
2929
  },
2960
- language: {
2961
- attribute: "language",
2962
- type: "String"
2963
- },
2964
2930
  size: {
2965
2931
  attribute: "size",
2966
2932
  type: "String"
@@ -2976,10 +2942,22 @@ cr(["click", "keydown"]), Di("pie-tool-tts-inline", gi(Ei, {
2976
2942
  layoutMode: {
2977
2943
  attribute: "layout-mode",
2978
2944
  type: "String"
2945
+ },
2946
+ baseRate: {
2947
+ attribute: "base-rate",
2948
+ type: "Number"
2949
+ },
2950
+ pitch: {
2951
+ attribute: "pitch",
2952
+ type: "Number"
2953
+ },
2954
+ volume: {
2955
+ attribute: "volume",
2956
+ type: "Number"
2979
2957
  }
2980
2958
  }, [], [], { mode: "open" }, e));
2981
- function Di(e, t) {
2959
+ function Ai(e, t) {
2982
2960
  customElements.get(e) || customElements.define(e, t);
2983
2961
  }
2984
2962
  //#endregion
2985
- export { Ei as default };
2963
+ export { ki as default };