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