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