@pie-players/pie-tool-tts-inline 0.3.58 → 0.3.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-tts-inline.js +659 -615
- package/package.json +4 -4
package/dist/tool-tts-inline.js
CHANGED
|
@@ -17,85 +17,85 @@ function x() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var S = 1024, C = 2048,
|
|
20
|
+
var S = 1024, C = 2048, te = 4096, w = 8192, T = 16384, ne = 32768, re = 1 << 25, E = 65536, ie = 1 << 19, D = 1 << 20, O = 1 << 25, ae = 65536, k = 1 << 21, oe = 1 << 22, A = 1 << 23, j = Symbol("$state"), M = Symbol("legacy props"), se = Symbol(""), ce = Symbol("attributes"), N = Symbol("class"), le = Symbol("style"), ue = Symbol("text"), de = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
|
-
}(),
|
|
23
|
+
}(), fe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/errors.js
|
|
26
|
-
function
|
|
26
|
+
function pe() {
|
|
27
27
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function me(e, t, n) {
|
|
30
30
|
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function he(e) {
|
|
33
33
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ge() {
|
|
36
36
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function _e(e) {
|
|
39
39
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ve() {
|
|
42
42
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ye() {
|
|
45
45
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function be(e) {
|
|
48
48
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function xe() {
|
|
51
51
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Se() {
|
|
54
54
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ce() {
|
|
57
57
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function we() {
|
|
60
60
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Te() {
|
|
63
63
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ee(e) {
|
|
66
66
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function De() {
|
|
69
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
var P = !1;
|
|
74
|
+
function F(e) {
|
|
75
|
+
P = e;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
if (e === null) throw
|
|
80
|
-
return
|
|
77
|
+
var I;
|
|
78
|
+
function L(e) {
|
|
79
|
+
if (e === null) throw Ee(), a;
|
|
80
|
+
return I = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Oe() {
|
|
83
|
+
return L(/* @__PURE__ */ tn(I));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
if (/* @__PURE__ */ tn(
|
|
88
|
-
|
|
85
|
+
function ke(e) {
|
|
86
|
+
if (P) {
|
|
87
|
+
if (/* @__PURE__ */ tn(I) !== null) throw Ee(), a;
|
|
88
|
+
I = e;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
for (var t = e, n =
|
|
94
|
-
|
|
91
|
+
function Ae(e = 1) {
|
|
92
|
+
if (P) {
|
|
93
|
+
for (var t = e, n = I; t--;) n = /* @__PURE__ */ tn(n);
|
|
94
|
+
I = n;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
for (var t = 0, n =
|
|
97
|
+
function je(e = !0) {
|
|
98
|
+
for (var t = 0, n = I;;) {
|
|
99
99
|
if (n.nodeType === 8) {
|
|
100
100
|
var r = n.data;
|
|
101
101
|
if (r === "]") {
|
|
@@ -107,80 +107,80 @@ function Me(e = !0) {
|
|
|
107
107
|
e && n.remove(), n = i;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (!e || e.nodeType !== 8) throw
|
|
110
|
+
function Me(e) {
|
|
111
|
+
if (!e || e.nodeType !== 8) throw Ee(), a;
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
116
|
-
function
|
|
116
|
+
function Ne(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Pe(e, t) {
|
|
120
120
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function Fe(e) {
|
|
123
|
+
return !Pe(e, this.v);
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/flags/index.js
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
var Ie = !1, Le = !1, R = null;
|
|
128
|
+
function Re(e) {
|
|
129
|
+
R = e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
p:
|
|
131
|
+
function ze(e, t = !1, n) {
|
|
132
|
+
R = {
|
|
133
|
+
p: R,
|
|
134
134
|
i: !1,
|
|
135
135
|
c: null,
|
|
136
136
|
e: null,
|
|
137
137
|
s: e,
|
|
138
138
|
x: null,
|
|
139
139
|
r: J,
|
|
140
|
-
l:
|
|
140
|
+
l: Le && !t ? {
|
|
141
141
|
s: null,
|
|
142
142
|
u: null,
|
|
143
143
|
$: []
|
|
144
144
|
} : null
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var t =
|
|
147
|
+
function Be(e) {
|
|
148
|
+
var t = R, n = t.e;
|
|
149
149
|
if (n !== null) {
|
|
150
150
|
t.e = null;
|
|
151
151
|
for (var r of n) _n(r);
|
|
152
152
|
}
|
|
153
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
153
|
+
return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return !
|
|
155
|
+
function Ve() {
|
|
156
|
+
return !Le || R !== null && R.l === null;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
160
|
+
var He = [];
|
|
161
|
+
function Ue() {
|
|
162
|
+
var e = He;
|
|
163
|
+
He = [], b(e);
|
|
164
|
+
}
|
|
165
|
+
function We(e) {
|
|
166
|
+
if (He.length === 0 && !at) {
|
|
167
|
+
var t = He;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === He && Ue();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
He.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (;
|
|
174
|
+
function Ge() {
|
|
175
|
+
for (; He.length > 0;) Ue();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ke(e) {
|
|
178
178
|
var t = J;
|
|
179
|
-
if (t === null) return K.f |=
|
|
179
|
+
if (t === null) return K.f |= A, e;
|
|
180
180
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
181
|
-
|
|
181
|
+
qe(e, t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function qe(e, t) {
|
|
184
184
|
for (; t !== null;) {
|
|
185
185
|
if (t.f & 128) {
|
|
186
186
|
if (!(t.f & 32768)) throw e;
|
|
@@ -197,17 +197,17 @@ function R(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
200
|
-
var Je = ~(C |
|
|
200
|
+
var Je = ~(C | te | S);
|
|
201
201
|
function z(e, t) {
|
|
202
202
|
e.f = e.f & Je | t;
|
|
203
203
|
}
|
|
204
204
|
function Ye(e) {
|
|
205
|
-
e.f & 512 || e.deps === null ? z(e, S) : z(e,
|
|
205
|
+
e.f & 512 || e.deps === null ? z(e, S) : z(e, te);
|
|
206
206
|
}
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
209
209
|
function Xe(e) {
|
|
210
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
210
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Xe(t.deps));
|
|
211
211
|
}
|
|
212
212
|
function Ze(e, t, n) {
|
|
213
213
|
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), z(e, S);
|
|
@@ -275,14 +275,14 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
275
275
|
if (n) {
|
|
276
276
|
this.#f.delete(e);
|
|
277
277
|
for (var r of n.d) z(r, C), t(r);
|
|
278
|
-
for (r of n.m) z(r,
|
|
278
|
+
for (r of n.m) z(r, te), t(r);
|
|
279
279
|
}
|
|
280
280
|
this.#p.add(e);
|
|
281
281
|
}
|
|
282
282
|
#g() {
|
|
283
283
|
this.#e = !0, lt++ > 1e3 && (this.#S(), pt());
|
|
284
284
|
for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
|
|
285
|
-
for (let e of this.#d) z(e,
|
|
285
|
+
for (let e of this.#d) z(e, te), this.schedule(e);
|
|
286
286
|
let t = this.#c;
|
|
287
287
|
this.#c = [], this.apply();
|
|
288
288
|
var n = st = [], r = [], i = ct = [];
|
|
@@ -310,7 +310,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
310
310
|
for (let e of this.#r) e(this);
|
|
311
311
|
this.#r.clear(), rt = this, ht(r), ht(n), rt = null, this.#s?.resolve();
|
|
312
312
|
var s = B;
|
|
313
|
-
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(),
|
|
313
|
+
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Ie && (this.#x(), B = s)), this.#c.length > 0) if (s !== null) {
|
|
314
314
|
let e = s;
|
|
315
315
|
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
316
316
|
} else s = this;
|
|
@@ -321,7 +321,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
321
321
|
for (var r = e.first; r !== null;) {
|
|
322
322
|
var i = r.f, a = (i & 96) != 0;
|
|
323
323
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
324
|
-
a ? r.f ^= S : i & 4 ? t.push(r) :
|
|
324
|
+
a ? r.f ^= S : i & 4 ? t.push(r) : Ie && i & 16777224 ? n.push(r) : Zn(r) && (i & 16 && this.#d.add(r), nr(r));
|
|
325
325
|
var o = r.first;
|
|
326
326
|
if (o !== null) {
|
|
327
327
|
r = o;
|
|
@@ -446,7 +446,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
446
446
|
let e = this.#o.get(t) ?? 0;
|
|
447
447
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
448
448
|
}
|
|
449
|
-
this.#m || (this.#m = !0,
|
|
449
|
+
this.#m || (this.#m = !0, We(() => {
|
|
450
450
|
this.#m = !1, this.linked && this.flush();
|
|
451
451
|
}));
|
|
452
452
|
}
|
|
@@ -467,14 +467,14 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
467
467
|
static ensure() {
|
|
468
468
|
if (B === null) {
|
|
469
469
|
let t = B = new e();
|
|
470
|
-
!ot && !at &&
|
|
470
|
+
!ot && !at && We(() => {
|
|
471
471
|
t.#e || t.flush();
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
return B;
|
|
475
475
|
}
|
|
476
476
|
apply() {
|
|
477
|
-
if (!
|
|
477
|
+
if (!Ie || !this.is_fork && this.#t === null && this.#n === null) {
|
|
478
478
|
V = null;
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
@@ -499,7 +499,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
|
|
|
499
499
|
for (var t = e; t.parent !== null;) {
|
|
500
500
|
t = t.parent;
|
|
501
501
|
var n = t.f;
|
|
502
|
-
if (st !== null && t === J && (
|
|
502
|
+
if (st !== null && t === J && (Ie || (K === null || !(K.f & 2)) && !Qe)) return;
|
|
503
503
|
if (n & 96) {
|
|
504
504
|
if (!(n & 1024)) return;
|
|
505
505
|
t.f ^= S;
|
|
@@ -520,7 +520,7 @@ function ft(e) {
|
|
|
520
520
|
try {
|
|
521
521
|
var n;
|
|
522
522
|
for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
|
|
523
|
-
if (
|
|
523
|
+
if (Ge(), B === null) return n;
|
|
524
524
|
B.flush();
|
|
525
525
|
}
|
|
526
526
|
} finally {
|
|
@@ -529,9 +529,9 @@ function ft(e) {
|
|
|
529
529
|
}
|
|
530
530
|
function pt() {
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
ve();
|
|
533
533
|
} catch (e) {
|
|
534
|
-
|
|
534
|
+
qe(e, it);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
var mt = null;
|
|
@@ -540,7 +540,7 @@ function ht(e) {
|
|
|
540
540
|
if (t !== 0) {
|
|
541
541
|
for (var n = 0; n < t;) {
|
|
542
542
|
var r = e[n++];
|
|
543
|
-
if (!(r.f & 24576) &&
|
|
543
|
+
if (!(r.f & 24576) && Zn(r) && (mt = /* @__PURE__ */ new Set(), nr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && An(r), mt?.size > 0)) {
|
|
544
544
|
zt.clear();
|
|
545
545
|
for (let e of mt) {
|
|
546
546
|
if (e.f & 24576) continue;
|
|
@@ -548,7 +548,7 @@ function ht(e) {
|
|
|
548
548
|
for (; n !== null;) mt.has(n) && (mt.delete(n), t.push(n)), n = n.parent;
|
|
549
549
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
550
550
|
let n = t[e];
|
|
551
|
-
n.f & 24576 ||
|
|
551
|
+
n.f & 24576 || nr(n);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
mt.clear();
|
|
@@ -590,8 +590,8 @@ function bt(e) {
|
|
|
590
590
|
function xt(e) {
|
|
591
591
|
let t = 0, n = Vt(0), r;
|
|
592
592
|
return () => {
|
|
593
|
-
mn() && (
|
|
594
|
-
|
|
593
|
+
mn() && (Z(n), Sn(() => (t === 0 && (r = ar(() => e(() => Gt(n)))), t += 1, () => {
|
|
594
|
+
We(() => {
|
|
595
595
|
--t, t === 0 && (r?.(), r = void 0, Gt(n));
|
|
596
596
|
});
|
|
597
597
|
})));
|
|
@@ -599,7 +599,7 @@ function xt(e) {
|
|
|
599
599
|
}
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
602
|
-
var St =
|
|
602
|
+
var St = E | ie;
|
|
603
603
|
function Ct(e, t, n, r) {
|
|
604
604
|
new wt(e, t, n, r);
|
|
605
605
|
}
|
|
@@ -608,7 +608,7 @@ var wt = class {
|
|
|
608
608
|
is_pending = !1;
|
|
609
609
|
transform_error;
|
|
610
610
|
#e;
|
|
611
|
-
#t =
|
|
611
|
+
#t = P ? I : null;
|
|
612
612
|
#n;
|
|
613
613
|
#r;
|
|
614
614
|
#i;
|
|
@@ -630,16 +630,16 @@ var wt = class {
|
|
|
630
630
|
var t = J;
|
|
631
631
|
t.b = this, t.f |= 128, n(e);
|
|
632
632
|
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = wn(() => {
|
|
633
|
-
if (
|
|
633
|
+
if (P) {
|
|
634
634
|
let e = this.#t;
|
|
635
|
-
|
|
635
|
+
Oe();
|
|
636
636
|
let t = e.data === "[!";
|
|
637
637
|
if (e.data.startsWith("[?")) {
|
|
638
638
|
let t = JSON.parse(e.data.slice(2));
|
|
639
639
|
this.#_(t);
|
|
640
640
|
} else t ? this.#v() : this.#g();
|
|
641
641
|
} else this.#y();
|
|
642
|
-
}, St),
|
|
642
|
+
}, St), P && (this.#e = I);
|
|
643
643
|
}
|
|
644
644
|
#g() {
|
|
645
645
|
try {
|
|
@@ -656,7 +656,7 @@ var wt = class {
|
|
|
656
656
|
}
|
|
657
657
|
#v() {
|
|
658
658
|
let e = this.#n.pending;
|
|
659
|
-
e && (this.is_pending = !0, this.#o = Tn(() => e(this.#e)),
|
|
659
|
+
e && (this.is_pending = !0, this.#o = Tn(() => e(this.#e)), We(() => {
|
|
660
660
|
var e = this.#c = document.createDocumentFragment(), t = $t();
|
|
661
661
|
e.append(t), this.#a = this.#x(() => Tn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, jn(this.#o, () => {
|
|
662
662
|
this.#o = null;
|
|
@@ -690,14 +690,14 @@ var wt = class {
|
|
|
690
690
|
return !!this.#n.pending;
|
|
691
691
|
}
|
|
692
692
|
#x(e) {
|
|
693
|
-
var t = J, n = K, r =
|
|
694
|
-
|
|
693
|
+
var t = J, n = K, r = R;
|
|
694
|
+
Vn(this.#i), q(this.#i), Re(this.#i.ctx);
|
|
695
695
|
try {
|
|
696
696
|
return dt.ensure(), e();
|
|
697
697
|
} catch (e) {
|
|
698
|
-
return
|
|
698
|
+
return Ke(e), null;
|
|
699
699
|
} finally {
|
|
700
|
-
|
|
700
|
+
Vn(t), q(n), Re(r);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
#S(e, t) {
|
|
@@ -710,12 +710,12 @@ var wt = class {
|
|
|
710
710
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
711
711
|
}
|
|
712
712
|
update_pending_count(e, t) {
|
|
713
|
-
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
713
|
+
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, We(() => {
|
|
714
714
|
this.#d = !1, this.#m && Ut(this.#m, this.#l);
|
|
715
715
|
}));
|
|
716
716
|
}
|
|
717
717
|
get_effect_pending() {
|
|
718
|
-
return this.#h(),
|
|
718
|
+
return this.#h(), Z(this.#m);
|
|
719
719
|
}
|
|
720
720
|
error(e) {
|
|
721
721
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
@@ -724,16 +724,16 @@ var wt = class {
|
|
|
724
724
|
})) : this.#C(e);
|
|
725
725
|
}
|
|
726
726
|
#C(e) {
|
|
727
|
-
this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null),
|
|
727
|
+
this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), P && (L(this.#t), Ae(), L(je()));
|
|
728
728
|
var t = this.#n.onerror;
|
|
729
729
|
let n = this.#n.failed;
|
|
730
730
|
var r = !1, i = !1;
|
|
731
731
|
let a = () => {
|
|
732
732
|
if (r) {
|
|
733
|
-
|
|
733
|
+
De();
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
r = !0, i &&
|
|
736
|
+
r = !0, i && we(), this.#s !== null && jn(this.#s, () => {
|
|
737
737
|
this.#s = null;
|
|
738
738
|
}), this.#x(() => {
|
|
739
739
|
this.#y();
|
|
@@ -742,7 +742,7 @@ var wt = class {
|
|
|
742
742
|
try {
|
|
743
743
|
i = !0, t?.(e, a), i = !1;
|
|
744
744
|
} catch (e) {
|
|
745
|
-
|
|
745
|
+
qe(e, this.#i && this.#i.parent);
|
|
746
746
|
}
|
|
747
747
|
n && (this.#s = this.#x(() => {
|
|
748
748
|
try {
|
|
@@ -751,26 +751,26 @@ var wt = class {
|
|
|
751
751
|
t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
|
|
752
752
|
});
|
|
753
753
|
} catch (e) {
|
|
754
|
-
return
|
|
754
|
+
return qe(e, this.#i.parent), null;
|
|
755
755
|
}
|
|
756
756
|
}));
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
We(() => {
|
|
759
759
|
var t;
|
|
760
760
|
try {
|
|
761
761
|
t = this.transform_error(e);
|
|
762
762
|
} catch (e) {
|
|
763
|
-
|
|
763
|
+
qe(e, this.#i && this.#i.parent);
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) =>
|
|
766
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => qe(e, this.#i && this.#i.parent)) : o(t);
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
//#endregion
|
|
771
771
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
772
772
|
function Tt(e, t, n, r) {
|
|
773
|
-
let i =
|
|
773
|
+
let i = Ve() ? kt : Mt;
|
|
774
774
|
var a = e.filter((e) => !e.settled);
|
|
775
775
|
if (n.length === 0 && a.length === 0) {
|
|
776
776
|
r(t.map(i));
|
|
@@ -783,7 +783,7 @@ function Tt(e, t, n, r) {
|
|
|
783
783
|
try {
|
|
784
784
|
r(e);
|
|
785
785
|
} catch (e) {
|
|
786
|
-
|
|
786
|
+
qe(e, o);
|
|
787
787
|
}
|
|
788
788
|
Dt();
|
|
789
789
|
}
|
|
@@ -794,20 +794,20 @@ function Tt(e, t, n, r) {
|
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
function d() {
|
|
797
|
-
Promise.all(n.map((e) => /* @__PURE__ */ jt(e))).then((e) => l([...t.map(i), ...e])).catch((e) =>
|
|
797
|
+
Promise.all(n.map((e) => /* @__PURE__ */ jt(e))).then((e) => l([...t.map(i), ...e])).catch((e) => qe(e, o)).finally(u);
|
|
798
798
|
}
|
|
799
799
|
c ? c.then(() => {
|
|
800
800
|
s(), d(), Dt();
|
|
801
801
|
}) : d();
|
|
802
802
|
}
|
|
803
803
|
function Et() {
|
|
804
|
-
var e = J, t = K, n =
|
|
804
|
+
var e = J, t = K, n = R, r = B;
|
|
805
805
|
return function(i = !0) {
|
|
806
|
-
|
|
806
|
+
Vn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
function Dt(e = !0) {
|
|
810
|
-
|
|
810
|
+
Vn(null), q(null), Re(null), e && B?.deactivate();
|
|
811
811
|
}
|
|
812
812
|
function Ot() {
|
|
813
813
|
var e = J, t = e.b, n = B, r = !!t?.is_rendered();
|
|
@@ -818,11 +818,11 @@ function Ot() {
|
|
|
818
818
|
/*#__NO_SIDE_EFFECTS__*/
|
|
819
819
|
function kt(e) {
|
|
820
820
|
var t = 2 | C;
|
|
821
|
-
return J !== null && (J.f |=
|
|
822
|
-
ctx:
|
|
821
|
+
return J !== null && (J.f |= ie), {
|
|
822
|
+
ctx: R,
|
|
823
823
|
deps: null,
|
|
824
824
|
effects: null,
|
|
825
|
-
equals:
|
|
825
|
+
equals: Ne,
|
|
826
826
|
f: t,
|
|
827
827
|
fn: e,
|
|
828
828
|
reactions: null,
|
|
@@ -837,14 +837,14 @@ var At = Symbol("obsolete");
|
|
|
837
837
|
/*#__NO_SIDE_EFFECTS__*/
|
|
838
838
|
function jt(e, t, n) {
|
|
839
839
|
let r = J;
|
|
840
|
-
r === null &&
|
|
840
|
+
r === null && pe();
|
|
841
841
|
var i = void 0, a = Vt(o), s = !K, c = /* @__PURE__ */ new Set();
|
|
842
842
|
return xn(() => {
|
|
843
843
|
var t = J, n = x();
|
|
844
844
|
i = n.promise;
|
|
845
845
|
try {
|
|
846
846
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
847
|
-
e !==
|
|
847
|
+
e !== de && n.reject(e);
|
|
848
848
|
}).finally(Dt);
|
|
849
849
|
} catch (e) {
|
|
850
850
|
n.reject(e), Dt();
|
|
@@ -857,7 +857,7 @@ function jt(e, t, n) {
|
|
|
857
857
|
c.add(n), o.async_deriveds.set(t, n);
|
|
858
858
|
}
|
|
859
859
|
let u = (e, t = void 0) => {
|
|
860
|
-
l?.(), c.delete(n), t !== At && (o.activate(), t ? (a.f |=
|
|
860
|
+
l?.(), c.delete(n), t !== At && (o.activate(), t ? (a.f |= A, Ut(a, t)) : (a.f & 8388608 && (a.f ^= A), Ut(a, e)), o.deactivate());
|
|
861
861
|
};
|
|
862
862
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
863
863
|
}), hn(() => {
|
|
@@ -875,12 +875,12 @@ function jt(e, t, n) {
|
|
|
875
875
|
/*#__NO_SIDE_EFFECTS__*/
|
|
876
876
|
function H(e) {
|
|
877
877
|
let t = /* @__PURE__ */ kt(e);
|
|
878
|
-
return
|
|
878
|
+
return Ie || Un(t), t;
|
|
879
879
|
}
|
|
880
880
|
/*#__NO_SIDE_EFFECTS__*/
|
|
881
881
|
function Mt(e) {
|
|
882
882
|
let t = /* @__PURE__ */ kt(e);
|
|
883
|
-
return t.equals =
|
|
883
|
+
return t.equals = Fe, t;
|
|
884
884
|
}
|
|
885
885
|
function Nt(e) {
|
|
886
886
|
var t = e.effects;
|
|
@@ -891,28 +891,28 @@ function Nt(e) {
|
|
|
891
891
|
}
|
|
892
892
|
function Pt(e) {
|
|
893
893
|
var t, n = J, r = e.parent;
|
|
894
|
-
if (!Rn && r !== null && e.v !== o && r.f & 24576) return
|
|
895
|
-
|
|
894
|
+
if (!Rn && r !== null && e.v !== o && r.f & 24576) return Te(), e.v;
|
|
895
|
+
Vn(r);
|
|
896
896
|
try {
|
|
897
|
-
e.f &= ~
|
|
897
|
+
e.f &= ~ae, Nt(e), t = $n(e);
|
|
898
898
|
} finally {
|
|
899
|
-
|
|
899
|
+
Vn(n);
|
|
900
900
|
}
|
|
901
901
|
return t;
|
|
902
902
|
}
|
|
903
903
|
function Ft(e) {
|
|
904
904
|
var t = Pt(e);
|
|
905
|
-
if (!e.equals(t) && (e.wv =
|
|
905
|
+
if (!e.equals(t) && (e.wv = Xn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), rt?.capture(e, t, !0)), e.deps === null))) {
|
|
906
906
|
z(e, S);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
909
|
Rn || (V === null ? Ye(e) : (mn() || B?.is_fork) && V.set(e, t));
|
|
910
910
|
}
|
|
911
911
|
function It(e) {
|
|
912
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
912
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(de), t.fn !== null && (t.teardown = ee), t.ac = null, tr(t, 0), Dn(t));
|
|
913
913
|
}
|
|
914
914
|
function Lt(e) {
|
|
915
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
915
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && nr(t);
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
@@ -922,7 +922,7 @@ function Vt(e, t) {
|
|
|
922
922
|
f: 0,
|
|
923
923
|
v: e,
|
|
924
924
|
reactions: null,
|
|
925
|
-
equals:
|
|
925
|
+
equals: Ne,
|
|
926
926
|
rv: 0,
|
|
927
927
|
wv: 0
|
|
928
928
|
};
|
|
@@ -930,15 +930,15 @@ function Vt(e, t) {
|
|
|
930
930
|
/*#__NO_SIDE_EFFECTS__*/
|
|
931
931
|
function U(e, t) {
|
|
932
932
|
let n = Vt(e, t);
|
|
933
|
-
return
|
|
933
|
+
return Un(n), n;
|
|
934
934
|
}
|
|
935
935
|
/*#__NO_SIDE_EFFECTS__*/
|
|
936
936
|
function Ht(e, t = !1, n = !0) {
|
|
937
937
|
let r = Vt(e);
|
|
938
|
-
return t || (r.equals =
|
|
938
|
+
return t || (r.equals = Fe), Le && n && R !== null && R.l !== null && (R.l.s ??= []).push(r), r;
|
|
939
939
|
}
|
|
940
940
|
function W(e, t, n = !1) {
|
|
941
|
-
return K !== null && (!Bn || K.f & 131072) &&
|
|
941
|
+
return K !== null && (!Bn || K.f & 131072) && Ve() && K.f & 4325394 && (Hn === null || !Hn.has(e)) && Ce(), Ut(e, n ? qt(t) : t, ct);
|
|
942
942
|
}
|
|
943
943
|
function Ut(e, t, n = null) {
|
|
944
944
|
if (!e.equals(t)) {
|
|
@@ -948,21 +948,21 @@ function Ut(e, t, n = null) {
|
|
|
948
948
|
let t = e;
|
|
949
949
|
e.f & 2048 && Pt(t), V === null && Ye(t);
|
|
950
950
|
}
|
|
951
|
-
e.wv =
|
|
951
|
+
e.wv = Xn(), Kt(e, C, n), Ve() && J !== null && J.f & 1024 && !(J.f & 96) && (Wn === null ? Gn([e]) : Wn.push(e)), !r.is_fork && Rt.size > 0 && !Bt && Wt();
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
955
|
function Wt() {
|
|
956
956
|
Bt = !1;
|
|
957
957
|
for (let e of Rt) {
|
|
958
|
-
e.f & 1024 && z(e,
|
|
958
|
+
e.f & 1024 && z(e, te);
|
|
959
959
|
let t;
|
|
960
960
|
try {
|
|
961
|
-
t =
|
|
961
|
+
t = Zn(e);
|
|
962
962
|
} catch {
|
|
963
963
|
t = !0;
|
|
964
964
|
}
|
|
965
|
-
t &&
|
|
965
|
+
t && nr(e);
|
|
966
966
|
}
|
|
967
967
|
Rt.clear();
|
|
968
968
|
}
|
|
@@ -971,14 +971,14 @@ function Gt(e) {
|
|
|
971
971
|
}
|
|
972
972
|
function Kt(e, t, n) {
|
|
973
973
|
var r = e.reactions;
|
|
974
|
-
if (r !== null) for (var i =
|
|
974
|
+
if (r !== null) for (var i = Ve(), a = r.length, o = 0; o < a; o++) {
|
|
975
975
|
var s = r[o], c = s.f;
|
|
976
976
|
if (!(!i && s === J)) {
|
|
977
977
|
var l = (c & C) === 0;
|
|
978
978
|
if (l && z(s, t), c & 131072) Rt.add(s);
|
|
979
979
|
else if (c & 2) {
|
|
980
980
|
var u = s;
|
|
981
|
-
V?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |=
|
|
981
|
+
V?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Kt(u, te, n));
|
|
982
982
|
} else if (l) {
|
|
983
983
|
var d = s;
|
|
984
984
|
c & 16 && mt !== null && mt.add(d), n === null ? vt(d) : n.push(d);
|
|
@@ -987,19 +987,19 @@ function Kt(e, t, n) {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
function qt(e) {
|
|
990
|
-
if (typeof e != "object" || !e ||
|
|
990
|
+
if (typeof e != "object" || !e || j in e) return e;
|
|
991
991
|
let t = v(e);
|
|
992
992
|
if (t !== g && t !== _) return e;
|
|
993
|
-
var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s =
|
|
994
|
-
if (
|
|
995
|
-
var t = K, n =
|
|
996
|
-
q(null),
|
|
993
|
+
var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = Jn, l = (e) => {
|
|
994
|
+
if (Jn === s) return e();
|
|
995
|
+
var t = K, n = Jn;
|
|
996
|
+
q(null), Yn(s);
|
|
997
997
|
var r = e();
|
|
998
|
-
return q(t),
|
|
998
|
+
return q(t), Yn(n), r;
|
|
999
999
|
};
|
|
1000
1000
|
return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
|
|
1001
1001
|
defineProperty(e, t, r) {
|
|
1002
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
1002
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && xe();
|
|
1003
1003
|
var i = n.get(t);
|
|
1004
1004
|
return i === void 0 ? l(() => {
|
|
1005
1005
|
var e = /* @__PURE__ */ U(r.value, a);
|
|
@@ -1017,10 +1017,10 @@ function qt(e) {
|
|
|
1017
1017
|
return !0;
|
|
1018
1018
|
},
|
|
1019
1019
|
get(t, r, i) {
|
|
1020
|
-
if (r ===
|
|
1020
|
+
if (r === j) return e;
|
|
1021
1021
|
var s = n.get(r), c = r in t;
|
|
1022
1022
|
if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ U(qt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
|
|
1023
|
-
var u =
|
|
1023
|
+
var u = Z(s);
|
|
1024
1024
|
return u === o ? void 0 : u;
|
|
1025
1025
|
}
|
|
1026
1026
|
return Reflect.get(t, r, i);
|
|
@@ -1029,7 +1029,7 @@ function qt(e) {
|
|
|
1029
1029
|
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1030
1030
|
if (r && "value" in r) {
|
|
1031
1031
|
var i = n.get(t);
|
|
1032
|
-
i && (r.value =
|
|
1032
|
+
i && (r.value = Z(i));
|
|
1033
1033
|
} else if (r === void 0) {
|
|
1034
1034
|
var a = n.get(t), s = a?.v;
|
|
1035
1035
|
if (a !== void 0 && s !== o) return {
|
|
@@ -1042,9 +1042,9 @@ function qt(e) {
|
|
|
1042
1042
|
return r;
|
|
1043
1043
|
},
|
|
1044
1044
|
has(e, t) {
|
|
1045
|
-
if (t ===
|
|
1045
|
+
if (t === j) return !0;
|
|
1046
1046
|
var r = n.get(t), i = r !== void 0 && r.v !== o || Reflect.has(e, t);
|
|
1047
|
-
return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? qt(e[t]) : o, a)), n.set(t, r)),
|
|
1047
|
+
return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? qt(e[t]) : o, a)), n.set(t, r)), Z(r) === o) ? !1 : i;
|
|
1048
1048
|
},
|
|
1049
1049
|
set(e, t, s, c) {
|
|
1050
1050
|
var u = n.get(t), d = t in e;
|
|
@@ -1069,7 +1069,7 @@ function qt(e) {
|
|
|
1069
1069
|
return !0;
|
|
1070
1070
|
},
|
|
1071
1071
|
ownKeys(e) {
|
|
1072
|
-
|
|
1072
|
+
Z(i);
|
|
1073
1073
|
var t = Reflect.ownKeys(e).filter((e) => {
|
|
1074
1074
|
var t = n.get(e);
|
|
1075
1075
|
return t === void 0 || t.v !== o;
|
|
@@ -1078,7 +1078,7 @@ function qt(e) {
|
|
|
1078
1078
|
return t;
|
|
1079
1079
|
},
|
|
1080
1080
|
setPrototypeOf() {
|
|
1081
|
-
|
|
1081
|
+
Se();
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
@@ -1098,7 +1098,7 @@ function Qt() {
|
|
|
1098
1098
|
if (Jt === void 0) {
|
|
1099
1099
|
Jt = window, Yt = /Firefox/.test(navigator.userAgent);
|
|
1100
1100
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1101
|
-
Xt = m(t, "firstChild").get, Zt = m(t, "nextSibling").get, y(e) && (e[
|
|
1101
|
+
Xt = m(t, "firstChild").get, Zt = m(t, "nextSibling").get, y(e) && (e[N] = void 0, e[ce] = null, e[le] = void 0, e.__e = void 0), y(n) && (n[ue] = void 0);
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
function $t(e = "") {
|
|
@@ -1113,47 +1113,47 @@ function tn(e) {
|
|
|
1113
1113
|
return Zt.call(e);
|
|
1114
1114
|
}
|
|
1115
1115
|
function nn(e, t) {
|
|
1116
|
-
if (!
|
|
1117
|
-
var n = /* @__PURE__ */ en(
|
|
1118
|
-
if (n === null) n =
|
|
1116
|
+
if (!P) return /* @__PURE__ */ en(e);
|
|
1117
|
+
var n = /* @__PURE__ */ en(I);
|
|
1118
|
+
if (n === null) n = I.appendChild($t());
|
|
1119
1119
|
else if (t && n.nodeType !== 3) {
|
|
1120
1120
|
var r = $t();
|
|
1121
|
-
return n?.before(r),
|
|
1121
|
+
return n?.before(r), L(r), r;
|
|
1122
1122
|
}
|
|
1123
|
-
return t && ln(n),
|
|
1123
|
+
return t && ln(n), L(n), n;
|
|
1124
1124
|
}
|
|
1125
1125
|
function rn(e, t = !1) {
|
|
1126
|
-
if (!
|
|
1126
|
+
if (!P) {
|
|
1127
1127
|
var n = /* @__PURE__ */ en(e);
|
|
1128
1128
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ tn(n) : n;
|
|
1129
1129
|
}
|
|
1130
1130
|
if (t) {
|
|
1131
|
-
if (
|
|
1131
|
+
if (I?.nodeType !== 3) {
|
|
1132
1132
|
var r = $t();
|
|
1133
|
-
return
|
|
1133
|
+
return I?.before(r), L(r), r;
|
|
1134
1134
|
}
|
|
1135
|
-
ln(
|
|
1135
|
+
ln(I);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return I;
|
|
1138
1138
|
}
|
|
1139
1139
|
function an(e, t = 1, n = !1) {
|
|
1140
|
-
let r =
|
|
1140
|
+
let r = P ? I : e;
|
|
1141
1141
|
for (var i; t--;) i = r, r = /* @__PURE__ */ tn(r);
|
|
1142
|
-
if (!
|
|
1142
|
+
if (!P) return r;
|
|
1143
1143
|
if (n) {
|
|
1144
1144
|
if (r?.nodeType !== 3) {
|
|
1145
1145
|
var a = $t();
|
|
1146
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1146
|
+
return r === null ? i?.after(a) : r.before(a), L(a), a;
|
|
1147
1147
|
}
|
|
1148
1148
|
ln(r);
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return L(r), r;
|
|
1151
1151
|
}
|
|
1152
1152
|
function on(e) {
|
|
1153
1153
|
e.textContent = "";
|
|
1154
1154
|
}
|
|
1155
1155
|
function sn() {
|
|
1156
|
-
return !
|
|
1156
|
+
return !Ie || mt !== null ? !1 : (J.f & ne) !== 0;
|
|
1157
1157
|
}
|
|
1158
1158
|
function cn(e, t, n) {
|
|
1159
1159
|
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);
|
|
@@ -1167,17 +1167,17 @@ function ln(e) {
|
|
|
1167
1167
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
1168
1168
|
function un(e) {
|
|
1169
1169
|
var t = K, n = J;
|
|
1170
|
-
q(null),
|
|
1170
|
+
q(null), Vn(null);
|
|
1171
1171
|
try {
|
|
1172
1172
|
return e();
|
|
1173
1173
|
} finally {
|
|
1174
|
-
q(t),
|
|
1174
|
+
q(t), Vn(n);
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
//#endregion
|
|
1178
1178
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
1179
1179
|
function dn(e) {
|
|
1180
|
-
J === null && (K === null &&
|
|
1180
|
+
J === null && (K === null && _e(e), ge()), Rn && he(e);
|
|
1181
1181
|
}
|
|
1182
1182
|
function fn(e, t) {
|
|
1183
1183
|
var n = t.last;
|
|
@@ -1185,9 +1185,9 @@ function fn(e, t) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function pn(e, t) {
|
|
1187
1187
|
var n = J;
|
|
1188
|
-
n !== null && n.f & 8192 && (e |=
|
|
1188
|
+
n !== null && n.f & 8192 && (e |= w);
|
|
1189
1189
|
var r = {
|
|
1190
|
-
ctx:
|
|
1190
|
+
ctx: R,
|
|
1191
1191
|
deps: null,
|
|
1192
1192
|
nodes: null,
|
|
1193
1193
|
f: e | C | 512,
|
|
@@ -1207,11 +1207,11 @@ function pn(e, t) {
|
|
|
1207
1207
|
if (e & 4) st === null ? dt.ensure().schedule(r) : st.push(r);
|
|
1208
1208
|
else if (t !== null) {
|
|
1209
1209
|
try {
|
|
1210
|
-
|
|
1210
|
+
nr(r);
|
|
1211
1211
|
} catch (e) {
|
|
1212
1212
|
throw G(r), e;
|
|
1213
1213
|
}
|
|
1214
|
-
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 |=
|
|
1214
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= E));
|
|
1215
1215
|
}
|
|
1216
1216
|
if (i !== null && (i.parent = n, n !== null && fn(i, n), K !== null && K.f & 2 && !(e & 64))) {
|
|
1217
1217
|
var a = K;
|
|
@@ -1229,24 +1229,24 @@ function hn(e) {
|
|
|
1229
1229
|
function gn(e) {
|
|
1230
1230
|
dn("$effect");
|
|
1231
1231
|
var t = J.f;
|
|
1232
|
-
if (!K && t & 32 &&
|
|
1233
|
-
var n =
|
|
1232
|
+
if (!K && t & 32 && R !== null && !R.i) {
|
|
1233
|
+
var n = R;
|
|
1234
1234
|
(n.e ??= []).push(e);
|
|
1235
1235
|
} else return _n(e);
|
|
1236
1236
|
}
|
|
1237
1237
|
function _n(e) {
|
|
1238
|
-
return pn(4 |
|
|
1238
|
+
return pn(4 | D, e);
|
|
1239
1239
|
}
|
|
1240
1240
|
function vn(e) {
|
|
1241
1241
|
dt.ensure();
|
|
1242
|
-
let t = pn(64 |
|
|
1242
|
+
let t = pn(64 | ie, e);
|
|
1243
1243
|
return () => {
|
|
1244
1244
|
G(t);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
function yn(e) {
|
|
1248
1248
|
dt.ensure();
|
|
1249
|
-
let t = pn(64 |
|
|
1249
|
+
let t = pn(64 | ie, e);
|
|
1250
1250
|
return (e = {}) => new Promise((n) => {
|
|
1251
1251
|
e.outro ? jn(t, () => {
|
|
1252
1252
|
G(t), n(void 0);
|
|
@@ -1257,21 +1257,21 @@ function bn(e) {
|
|
|
1257
1257
|
return pn(4, e);
|
|
1258
1258
|
}
|
|
1259
1259
|
function xn(e) {
|
|
1260
|
-
return pn(
|
|
1260
|
+
return pn(oe | ie, e);
|
|
1261
1261
|
}
|
|
1262
1262
|
function Sn(e, t = 0) {
|
|
1263
1263
|
return pn(8 | t, e);
|
|
1264
1264
|
}
|
|
1265
1265
|
function Cn(e, t = [], n = [], r = []) {
|
|
1266
1266
|
Tt(r, t, n, (t) => {
|
|
1267
|
-
pn(8, () => e(...t.map(
|
|
1267
|
+
pn(8, () => e(...t.map(Z)));
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
1270
|
function wn(e, t = 0) {
|
|
1271
1271
|
return pn(16 | t, e);
|
|
1272
1272
|
}
|
|
1273
1273
|
function Tn(e) {
|
|
1274
|
-
return pn(32 |
|
|
1274
|
+
return pn(32 | ie, e);
|
|
1275
1275
|
}
|
|
1276
1276
|
function En(e) {
|
|
1277
1277
|
var t = e.teardown;
|
|
@@ -1290,7 +1290,7 @@ function Dn(e, t = !1) {
|
|
|
1290
1290
|
for (e.first = e.last = null; n !== null;) {
|
|
1291
1291
|
let e = n.ac;
|
|
1292
1292
|
e !== null && un(() => {
|
|
1293
|
-
e.abort(
|
|
1293
|
+
e.abort(de);
|
|
1294
1294
|
});
|
|
1295
1295
|
var r = n.next;
|
|
1296
1296
|
n.f & 64 ? n.parent = null : G(n, t), n = r;
|
|
@@ -1304,10 +1304,10 @@ function On(e) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
function G(e, t = !0) {
|
|
1306
1306
|
var n = !1;
|
|
1307
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (kn(e.nodes.start, e.nodes.end), n = !0), z(e,
|
|
1307
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (kn(e.nodes.start, e.nodes.end), n = !0), z(e, re), Dn(e, t && !n), tr(e, 0);
|
|
1308
1308
|
var r = e.nodes && e.nodes.t;
|
|
1309
1309
|
if (r !== null) for (let e of r) e.stop();
|
|
1310
|
-
En(e), e.f ^=
|
|
1310
|
+
En(e), e.f ^= re, e.f |= T;
|
|
1311
1311
|
var i = e.parent;
|
|
1312
1312
|
i !== null && i.first !== null && An(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1313
1313
|
}
|
|
@@ -1334,7 +1334,7 @@ function jn(e, t, n = !0) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
function Mn(e, t, n) {
|
|
1336
1336
|
if (!(e.f & 8192)) {
|
|
1337
|
-
e.f ^=
|
|
1337
|
+
e.f ^= w;
|
|
1338
1338
|
var r = e.nodes && e.nodes.t;
|
|
1339
1339
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1340
1340
|
for (var i = e.first; i !== null;) {
|
|
@@ -1352,7 +1352,7 @@ function Nn(e) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
function Pn(e, t) {
|
|
1354
1354
|
if (e.f & 8192) {
|
|
1355
|
-
e.f ^=
|
|
1355
|
+
e.f ^= w, e.f & 1024 || (z(e, C), dt.ensure().schedule(e));
|
|
1356
1356
|
for (var n = e.first; n !== null;) {
|
|
1357
1357
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1358
1358
|
Pn(n, i ? t : !1), n = r;
|
|
@@ -1378,73 +1378,73 @@ function q(e) {
|
|
|
1378
1378
|
K = e;
|
|
1379
1379
|
}
|
|
1380
1380
|
var J = null;
|
|
1381
|
-
function
|
|
1381
|
+
function Vn(e) {
|
|
1382
1382
|
J = e;
|
|
1383
1383
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1386
|
-
K !== null && (!
|
|
1384
|
+
var Hn = null;
|
|
1385
|
+
function Un(e) {
|
|
1386
|
+
K !== null && (!Ie || K.f & 2) && (Hn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1387
1387
|
}
|
|
1388
|
-
var
|
|
1389
|
-
function
|
|
1390
|
-
|
|
1388
|
+
var Y = null, X = 0, Wn = null;
|
|
1389
|
+
function Gn(e) {
|
|
1390
|
+
Wn = e;
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1392
|
+
var Kn = 1, qn = 0, Jn = qn;
|
|
1393
|
+
function Yn(e) {
|
|
1394
|
+
Jn = e;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return ++
|
|
1396
|
+
function Xn() {
|
|
1397
|
+
return ++Kn;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Zn(e) {
|
|
1400
1400
|
var t = e.f;
|
|
1401
1401
|
if (t & 2048) return !0;
|
|
1402
|
-
if (t & 2 && (e.f &= ~
|
|
1402
|
+
if (t & 2 && (e.f &= ~ae), t & 4096) {
|
|
1403
1403
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1404
1404
|
var a = n[i];
|
|
1405
|
-
if (
|
|
1405
|
+
if (Zn(a) && Ft(a), a.wv > e.wv) return !0;
|
|
1406
1406
|
}
|
|
1407
1407
|
t & 512 && V === null && z(e, S);
|
|
1408
1408
|
}
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Qn(e, t, n = !0) {
|
|
1412
1412
|
var r = e.reactions;
|
|
1413
|
-
if (r !== null && !(!
|
|
1413
|
+
if (r !== null && !(!Ie && Hn !== null && Hn.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1414
1414
|
var a = r[i];
|
|
1415
|
-
a.f & 2 ?
|
|
1415
|
+
a.f & 2 ? Qn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, te), vt(a));
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1419
|
-
var t =
|
|
1420
|
-
|
|
1421
|
-
e.ac.abort(
|
|
1418
|
+
function $n(e) {
|
|
1419
|
+
var t = Y, n = X, r = Wn, i = K, a = Hn, o = R, s = Bn, c = Jn, l = e.f;
|
|
1420
|
+
Y = null, X = 0, Wn = null, K = l & 96 ? null : e, Hn = null, Re(e.ctx), Bn = !1, Jn = ++qn, e.ac !== null && (un(() => {
|
|
1421
|
+
e.ac.abort(de);
|
|
1422
1422
|
}), e.ac = null);
|
|
1423
1423
|
try {
|
|
1424
|
-
e.f |=
|
|
1424
|
+
e.f |= k;
|
|
1425
1425
|
var u = e.fn, d = u();
|
|
1426
|
-
e.f |=
|
|
1426
|
+
e.f |= ne;
|
|
1427
1427
|
var f = e.deps, p = B?.is_fork;
|
|
1428
|
-
if (
|
|
1428
|
+
if (Y !== null) {
|
|
1429
1429
|
var m;
|
|
1430
|
-
if (p ||
|
|
1431
|
-
else e.deps = f =
|
|
1432
|
-
if (mn() && e.f & 512) for (m =
|
|
1433
|
-
} else !p && f !== null &&
|
|
1434
|
-
if (
|
|
1430
|
+
if (p || tr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
|
|
1431
|
+
else e.deps = f = Y;
|
|
1432
|
+
if (mn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1433
|
+
} else !p && f !== null && X < f.length && (tr(e, X), f.length = X);
|
|
1434
|
+
if (Ve() && Wn !== null && !Bn && f !== null && !(e.f & 6146)) for (m = 0; m < Wn.length; m++) Qn(Wn[m], e);
|
|
1435
1435
|
if (i !== null && i !== e) {
|
|
1436
|
-
if (
|
|
1437
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1438
|
-
|
|
1436
|
+
if (qn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = qn;
|
|
1437
|
+
if (t !== null) for (let e of t) e.rv = qn;
|
|
1438
|
+
Wn !== null && (r === null ? r = Wn : r.push(...Wn));
|
|
1439
1439
|
}
|
|
1440
|
-
return e.f & 8388608 && (e.f ^=
|
|
1440
|
+
return e.f & 8388608 && (e.f ^= A), d;
|
|
1441
1441
|
} catch (e) {
|
|
1442
|
-
return
|
|
1442
|
+
return Ke(e);
|
|
1443
1443
|
} finally {
|
|
1444
|
-
e.f ^=
|
|
1444
|
+
e.f ^= k, Y = t, X = n, Wn = r, K = i, Hn = a, Re(o), Bn = s, Jn = c;
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function er(e, t) {
|
|
1448
1448
|
let n = t.reactions;
|
|
1449
1449
|
if (n !== null) {
|
|
1450
1450
|
var r = l.call(n, e);
|
|
@@ -1453,16 +1453,16 @@ function $n(e, t) {
|
|
|
1453
1453
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
if (n === null && t.f & 2 && (
|
|
1456
|
+
if (n === null && t.f & 2 && (Y === null || !u.call(Y, t))) {
|
|
1457
1457
|
var a = t;
|
|
1458
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~
|
|
1458
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== o && Ye(a), It(a), tr(a, 0);
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function tr(e, t) {
|
|
1462
1462
|
var n = e.deps;
|
|
1463
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1463
|
+
if (n !== null) for (var r = t; r < n.length; r++) er(e, n[r]);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function nr(e) {
|
|
1466
1466
|
var t = e.f;
|
|
1467
1467
|
if (!(t & 16384)) {
|
|
1468
1468
|
z(e, S);
|
|
@@ -1470,18 +1470,18 @@ function tr(e) {
|
|
|
1470
1470
|
J = e, Ln = !0;
|
|
1471
1471
|
try {
|
|
1472
1472
|
t & 16777232 ? On(e) : Dn(e), En(e);
|
|
1473
|
-
var i =
|
|
1474
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1473
|
+
var i = $n(e);
|
|
1474
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Kn;
|
|
1475
1475
|
} finally {
|
|
1476
1476
|
Ln = r, J = n;
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Z(e) {
|
|
1481
1481
|
var t = (e.f & 2) != 0;
|
|
1482
|
-
if (In?.add(e), K !== null && !Bn && !(J !== null && J.f & 16384) && (
|
|
1482
|
+
if (In?.add(e), K !== null && !Bn && !(J !== null && J.f & 16384) && (Hn === null || !Hn.has(e))) {
|
|
1483
1483
|
var n = K.deps;
|
|
1484
|
-
if (K.f & 2097152) e.rv <
|
|
1484
|
+
if (K.f & 2097152) e.rv < qn && (e.rv = qn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1485
1485
|
else {
|
|
1486
1486
|
K.deps ??= [], u.call(K.deps, e) || K.deps.push(e);
|
|
1487
1487
|
var r = e.reactions;
|
|
@@ -1493,25 +1493,25 @@ function Q(e) {
|
|
|
1493
1493
|
var i = e;
|
|
1494
1494
|
if (Rn) {
|
|
1495
1495
|
var a = i.v;
|
|
1496
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1496
|
+
return (!(i.f & 1024) && i.reactions !== null || ir(i)) && (a = Pt(i)), zt.set(i, a), a;
|
|
1497
1497
|
}
|
|
1498
|
-
var o = (i.f & 512) == 0 && !Bn && K !== null && (Ln || (K.f & 512) != 0), s = (i.f &
|
|
1499
|
-
|
|
1498
|
+
var o = (i.f & 512) == 0 && !Bn && K !== null && (Ln || (K.f & 512) != 0), s = (i.f & ne) === 0;
|
|
1499
|
+
Zn(i) && (o && (i.f |= 512), Ft(i)), o && !s && (Lt(i), rr(i));
|
|
1500
1500
|
}
|
|
1501
1501
|
if (V?.has(e)) return V.get(e);
|
|
1502
1502
|
if (e.f & 8388608) throw e.v;
|
|
1503
1503
|
return e.v;
|
|
1504
1504
|
}
|
|
1505
|
-
function nr(e) {
|
|
1506
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Lt(t), nr(t));
|
|
1507
|
-
}
|
|
1508
1505
|
function rr(e) {
|
|
1506
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Lt(t), rr(t));
|
|
1507
|
+
}
|
|
1508
|
+
function ir(e) {
|
|
1509
1509
|
if (e.v === o) return !0;
|
|
1510
1510
|
if (e.deps === null) return !1;
|
|
1511
|
-
for (let t of e.deps) if (zt.has(t) || t.f & 2 &&
|
|
1511
|
+
for (let t of e.deps) if (zt.has(t) || t.f & 2 && ir(t)) return !0;
|
|
1512
1512
|
return !1;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function ar(e) {
|
|
1515
1515
|
var t = Bn;
|
|
1516
1516
|
try {
|
|
1517
1517
|
return Bn = !0, e();
|
|
@@ -1519,20 +1519,20 @@ function ir(e) {
|
|
|
1519
1519
|
Bn = t;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function or(e) {
|
|
1523
1523
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1524
|
-
if (
|
|
1524
|
+
if (j in e) sr(e);
|
|
1525
1525
|
else if (!Array.isArray(e)) for (let t in e) {
|
|
1526
1526
|
let n = e[t];
|
|
1527
|
-
typeof n == "object" && n &&
|
|
1527
|
+
typeof n == "object" && n && j in n && sr(n);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function sr(e, t = /* @__PURE__ */ new Set()) {
|
|
1532
1532
|
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1533
1533
|
t.add(e), e instanceof Date && e.getTime();
|
|
1534
1534
|
for (let n in e) try {
|
|
1535
|
-
|
|
1535
|
+
sr(e[n], t);
|
|
1536
1536
|
} catch {}
|
|
1537
1537
|
let n = v(e);
|
|
1538
1538
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
@@ -1548,40 +1548,40 @@ function or(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
//#endregion
|
|
1550
1550
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1551
|
-
var
|
|
1552
|
-
function
|
|
1551
|
+
var cr = Symbol("events"), lr = /* @__PURE__ */ new Set(), ur = /* @__PURE__ */ new Set();
|
|
1552
|
+
function dr(e, t, n, r = {}) {
|
|
1553
1553
|
function i(e) {
|
|
1554
|
-
if (r.capture ||
|
|
1554
|
+
if (r.capture || gr.call(t, e), !e.cancelBubble) return un(() => n?.call(this, e));
|
|
1555
1555
|
}
|
|
1556
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1556
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? We(() => {
|
|
1557
1557
|
t.addEventListener(e, i, r);
|
|
1558
1558
|
}) : t.addEventListener(e, i, r), i;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function fr(e, t, n, r, i) {
|
|
1561
1561
|
var a = {
|
|
1562
1562
|
capture: r,
|
|
1563
1563
|
passive: i
|
|
1564
|
-
}, o =
|
|
1564
|
+
}, o = dr(e, t, n, a);
|
|
1565
1565
|
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && hn(() => {
|
|
1566
1566
|
t.removeEventListener(e, o, a);
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1570
|
-
(t[
|
|
1569
|
+
function pr(e, t, n) {
|
|
1570
|
+
(t[cr] ??= {})[e] = n;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
for (var t = 0; t < e.length; t++)
|
|
1574
|
-
for (var n of
|
|
1572
|
+
function mr(e) {
|
|
1573
|
+
for (var t = 0; t < e.length; t++) lr.add(e[t]);
|
|
1574
|
+
for (var n of ur) n(e);
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1577
|
-
function
|
|
1576
|
+
var hr = null;
|
|
1577
|
+
function gr(e) {
|
|
1578
1578
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1579
|
-
|
|
1580
|
-
var o = 0, s =
|
|
1579
|
+
hr = e;
|
|
1580
|
+
var o = 0, s = hr === e && e[cr];
|
|
1581
1581
|
if (s) {
|
|
1582
1582
|
var c = i.indexOf(s);
|
|
1583
1583
|
if (c !== -1 && (t === document || t === window)) {
|
|
1584
|
-
e[
|
|
1584
|
+
e[cr] = t;
|
|
1585
1585
|
return;
|
|
1586
1586
|
}
|
|
1587
1587
|
var l = i.indexOf(t);
|
|
@@ -1596,11 +1596,11 @@ function hr(e) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
var u = K, d = J;
|
|
1599
|
-
q(null),
|
|
1599
|
+
q(null), Vn(null);
|
|
1600
1600
|
try {
|
|
1601
1601
|
for (var f, m = []; a !== null && a !== t;) {
|
|
1602
1602
|
try {
|
|
1603
|
-
var h = a[
|
|
1603
|
+
var h = a[cr]?.[r];
|
|
1604
1604
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1605
1605
|
} catch (e) {
|
|
1606
1606
|
f ? m.push(e) : f = e;
|
|
@@ -1615,23 +1615,23 @@ function hr(e) {
|
|
|
1615
1615
|
throw f;
|
|
1616
1616
|
}
|
|
1617
1617
|
} finally {
|
|
1618
|
-
e[
|
|
1618
|
+
e[cr] = t, delete e.currentTarget, q(u), Vn(d);
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
//#endregion
|
|
1623
1623
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1624
|
-
var
|
|
1625
|
-
function _r(e) {
|
|
1626
|
-
return gr?.createHTML(e) ?? e;
|
|
1627
|
-
}
|
|
1624
|
+
var _r = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1628
1625
|
function vr(e) {
|
|
1626
|
+
return _r?.createHTML(e) ?? e;
|
|
1627
|
+
}
|
|
1628
|
+
function yr(e) {
|
|
1629
1629
|
var t = cn("template");
|
|
1630
|
-
return t.innerHTML =
|
|
1630
|
+
return t.innerHTML = vr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1631
1631
|
}
|
|
1632
1632
|
//#endregion
|
|
1633
1633
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1634
|
-
function
|
|
1634
|
+
function br(e, t) {
|
|
1635
1635
|
var n = J;
|
|
1636
1636
|
n.nodes === null && (n.nodes = {
|
|
1637
1637
|
start: e,
|
|
@@ -1641,107 +1641,107 @@ function yr(e, t) {
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1644
|
-
function
|
|
1644
|
+
function xr(e, t) {
|
|
1645
1645
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1646
1646
|
return () => {
|
|
1647
|
-
if (
|
|
1648
|
-
i === void 0 && (i =
|
|
1647
|
+
if (P) return br(I, null), I;
|
|
1648
|
+
i === void 0 && (i = yr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
|
|
1649
1649
|
var t = r || Yt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1650
1650
|
if (n) {
|
|
1651
1651
|
var o = /* @__PURE__ */ en(t), s = t.lastChild;
|
|
1652
|
-
|
|
1653
|
-
} else
|
|
1652
|
+
br(o, s);
|
|
1653
|
+
} else br(t, t);
|
|
1654
1654
|
return t;
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1658
|
-
if (
|
|
1657
|
+
function Sr() {
|
|
1658
|
+
if (P) return br(I, null), I;
|
|
1659
1659
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = $t();
|
|
1660
|
-
return e.append(t, n),
|
|
1660
|
+
return e.append(t, n), br(t, n), e;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
if (
|
|
1662
|
+
function Cr(e, t) {
|
|
1663
|
+
if (P) {
|
|
1664
1664
|
var n = J;
|
|
1665
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1665
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), Oe();
|
|
1666
1666
|
return;
|
|
1667
1667
|
}
|
|
1668
1668
|
e !== null && e.before(t);
|
|
1669
1669
|
}
|
|
1670
1670
|
[.../* @__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(".")];
|
|
1671
|
-
var
|
|
1672
|
-
function
|
|
1673
|
-
return
|
|
1674
|
-
}
|
|
1675
|
-
function Tr(e, t) {
|
|
1676
|
-
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1677
|
-
n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
|
|
1671
|
+
var wr = ["touchstart", "touchmove"];
|
|
1672
|
+
function Tr(e) {
|
|
1673
|
+
return wr.includes(e);
|
|
1678
1674
|
}
|
|
1679
1675
|
function Er(e, t) {
|
|
1680
|
-
|
|
1676
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1677
|
+
n !== (e[ue] ??= e.nodeValue) && (e[ue] = n, e.nodeValue = `${n}`);
|
|
1681
1678
|
}
|
|
1682
1679
|
function Dr(e, t) {
|
|
1680
|
+
return Ar(e, t);
|
|
1681
|
+
}
|
|
1682
|
+
function Or(e, t) {
|
|
1683
1683
|
Qt(), t.intro = t.intro ?? !1;
|
|
1684
|
-
let n = t.target, r =
|
|
1684
|
+
let n = t.target, r = P, i = I;
|
|
1685
1685
|
try {
|
|
1686
1686
|
for (var o = /* @__PURE__ */ en(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
|
|
1687
1687
|
if (!o) throw a;
|
|
1688
|
-
|
|
1689
|
-
let r =
|
|
1688
|
+
F(!0), L(o);
|
|
1689
|
+
let r = Ar(e, {
|
|
1690
1690
|
...t,
|
|
1691
1691
|
anchor: o
|
|
1692
1692
|
});
|
|
1693
|
-
return
|
|
1693
|
+
return F(!1), r;
|
|
1694
1694
|
} catch (r) {
|
|
1695
1695
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1696
|
-
return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 &&
|
|
1696
|
+
return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && ye(), Qt(), on(n), F(!1), Dr(e, t);
|
|
1697
1697
|
} finally {
|
|
1698
|
-
|
|
1698
|
+
F(r), L(i);
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
|
-
var
|
|
1702
|
-
function
|
|
1701
|
+
var kr = /* @__PURE__ */ new Map();
|
|
1702
|
+
function Ar(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
|
|
1703
1703
|
Qt();
|
|
1704
1704
|
var l = void 0, u = yn(() => {
|
|
1705
1705
|
var s = n ?? t.appendChild($t());
|
|
1706
1706
|
Ct(s, { pending: () => {} }, (t) => {
|
|
1707
|
-
|
|
1708
|
-
var n =
|
|
1709
|
-
if (o && (n.c = o), i && (r.$$events = i),
|
|
1710
|
-
|
|
1707
|
+
ze({});
|
|
1708
|
+
var n = R;
|
|
1709
|
+
if (o && (n.c = o), i && (r.$$events = i), P && br(t, null), l = e(t, r) || {}, P && (J.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw Ee(), a;
|
|
1710
|
+
Be();
|
|
1711
1711
|
}, c);
|
|
1712
1712
|
var u = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1713
1713
|
for (var n = 0; n < e.length; n++) {
|
|
1714
1714
|
var r = e[n];
|
|
1715
1715
|
if (!u.has(r)) {
|
|
1716
1716
|
u.add(r);
|
|
1717
|
-
var i =
|
|
1717
|
+
var i = Tr(r);
|
|
1718
1718
|
for (let e of [t, document]) {
|
|
1719
|
-
var a =
|
|
1720
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1719
|
+
var a = kr.get(e);
|
|
1720
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), kr.set(e, a));
|
|
1721
1721
|
var o = a.get(r);
|
|
1722
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1722
|
+
o === void 0 ? (e.addEventListener(r, gr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
};
|
|
1727
|
-
return f(d(
|
|
1727
|
+
return f(d(lr)), ur.add(f), () => {
|
|
1728
1728
|
for (var e of u) for (let n of [t, document]) {
|
|
1729
|
-
var r =
|
|
1730
|
-
--i == 0 ? (n.removeEventListener(e,
|
|
1729
|
+
var r = kr.get(n), i = r.get(e);
|
|
1730
|
+
--i == 0 ? (n.removeEventListener(e, gr), r.delete(e), r.size === 0 && kr.delete(n)) : r.set(e, i);
|
|
1731
1731
|
}
|
|
1732
|
-
|
|
1732
|
+
ur.delete(f), s !== n && s.parentNode?.removeChild(s);
|
|
1733
1733
|
};
|
|
1734
1734
|
});
|
|
1735
|
-
return
|
|
1735
|
+
return jr.set(l, u), l;
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
function
|
|
1739
|
-
let n =
|
|
1740
|
-
return n ? (
|
|
1737
|
+
var jr = /* @__PURE__ */ new WeakMap();
|
|
1738
|
+
function Mr(e, t) {
|
|
1739
|
+
let n = jr.get(e);
|
|
1740
|
+
return n ? (jr.delete(e), n(t)) : Promise.resolve();
|
|
1741
1741
|
}
|
|
1742
1742
|
//#endregion
|
|
1743
1743
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1744
|
-
var
|
|
1744
|
+
var Nr = class {
|
|
1745
1745
|
anchor;
|
|
1746
1746
|
#e = /* @__PURE__ */ new Map();
|
|
1747
1747
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1798,21 +1798,21 @@ var Mr = class {
|
|
|
1798
1798
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1799
1799
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1800
1800
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1801
|
-
} else
|
|
1801
|
+
} else P && (this.anchor = I), this.#a(n);
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
//#endregion
|
|
1805
1805
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1806
|
-
function
|
|
1806
|
+
function Pr(e, t, n = !1) {
|
|
1807
1807
|
var r;
|
|
1808
|
-
|
|
1809
|
-
var i = new
|
|
1808
|
+
P && (r = I, Oe());
|
|
1809
|
+
var i = new Nr(e), a = n ? E : 0;
|
|
1810
1810
|
function o(e, t) {
|
|
1811
|
-
if (
|
|
1812
|
-
var n =
|
|
1811
|
+
if (P) {
|
|
1812
|
+
var n = Me(r);
|
|
1813
1813
|
if (e !== parseInt(n.substring(1))) {
|
|
1814
|
-
var a =
|
|
1815
|
-
|
|
1814
|
+
var a = je();
|
|
1815
|
+
L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
@@ -1827,14 +1827,14 @@ function Nr(e, t, n = !1) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
//#endregion
|
|
1829
1829
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1830
|
-
function
|
|
1830
|
+
function Fr(e, t, n) {
|
|
1831
1831
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1832
1832
|
let n = t[s];
|
|
1833
1833
|
jn(n, () => {
|
|
1834
1834
|
if (a) {
|
|
1835
1835
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1836
1836
|
var t = e.outrogroups;
|
|
1837
|
-
|
|
1837
|
+
Ir(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1838
1838
|
}
|
|
1839
1839
|
} else --o;
|
|
1840
1840
|
}, !1);
|
|
@@ -1845,13 +1845,13 @@ function Pr(e, t, n) {
|
|
|
1845
1845
|
var l = n, u = l.parentNode;
|
|
1846
1846
|
on(u), u.append(l), e.items.clear();
|
|
1847
1847
|
}
|
|
1848
|
-
|
|
1848
|
+
Ir(e, t, !c);
|
|
1849
1849
|
} else a = {
|
|
1850
1850
|
pending: new Set(t),
|
|
1851
1851
|
done: /* @__PURE__ */ new Set()
|
|
1852
1852
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function Ir(e, t, n = !0) {
|
|
1855
1855
|
var r;
|
|
1856
1856
|
if (e.pending.size > 0) {
|
|
1857
1857
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1859,23 +1859,23 @@ function Fr(e, t, n = !0) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
for (var i = 0; i < t.length; i++) {
|
|
1861
1861
|
var a = t[i];
|
|
1862
|
-
r?.has(a) ? (a.f |=
|
|
1862
|
+
r?.has(a) ? (a.f |= O, Fn(a, document.createDocumentFragment())) : G(t[i], n);
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
var
|
|
1866
|
-
function
|
|
1865
|
+
var Lr;
|
|
1866
|
+
function Rr(e, t, n, r, i, a = null) {
|
|
1867
1867
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1868
1868
|
if (t & 4) {
|
|
1869
1869
|
var l = e;
|
|
1870
|
-
o =
|
|
1870
|
+
o = P ? L(/* @__PURE__ */ en(l)) : l.appendChild($t());
|
|
1871
1871
|
}
|
|
1872
|
-
|
|
1872
|
+
P && Oe();
|
|
1873
1873
|
var u = null, f = /* @__PURE__ */ Mt(() => {
|
|
1874
1874
|
var e = n();
|
|
1875
1875
|
return c(e) ? e : e == null ? [] : d(e);
|
|
1876
1876
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1877
1877
|
function g(e) {
|
|
1878
|
-
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u,
|
|
1878
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Br(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Hr(u, null, o)) : Nn(u) : jn(u, () => {
|
|
1879
1879
|
u = null;
|
|
1880
1880
|
})));
|
|
1881
1881
|
}
|
|
@@ -1884,20 +1884,20 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
var v = {
|
|
1886
1886
|
effect: wn(() => {
|
|
1887
|
-
p =
|
|
1887
|
+
p = Z(f);
|
|
1888
1888
|
var e = p.length;
|
|
1889
1889
|
let c = !1;
|
|
1890
|
-
|
|
1890
|
+
P && Me(o) === "[!" != (e === 0) && (o = je(), L(o), F(!1), c = !0);
|
|
1891
1891
|
for (var l = /* @__PURE__ */ new Set(), d = B, v = sn(), y = 0; y < e; y += 1) {
|
|
1892
|
-
|
|
1892
|
+
P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
|
|
1893
1893
|
var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
|
|
1894
|
-
x ? (x.v && Ut(x.v, ee), x.i && Ut(x.i, y), v && d.unskip_effect(x.e)) : (x =
|
|
1894
|
+
x ? (x.v && Ut(x.v, ee), x.i && Ut(x.i, y), v && d.unskip_effect(x.e)) : (x = Vr(s, h ? o : Lr ??= $t(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
|
|
1895
1895
|
}
|
|
1896
|
-
if (e === 0 && a && !u && (h ? u = Tn(() => a(o)) : (u = Tn(() => a(
|
|
1896
|
+
if (e === 0 && a && !u && (h ? u = Tn(() => a(o)) : (u = Tn(() => a(Lr ??= $t())), u.f |= O)), e > l.size && me("", "", ""), P && e > 0 && L(je()), !h) if (m.set(d, l), v) {
|
|
1897
1897
|
for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
|
|
1898
1898
|
d.oncommit(g), d.ondiscard(_);
|
|
1899
1899
|
} else g(d);
|
|
1900
|
-
c &&
|
|
1900
|
+
c && F(!0), Z(f);
|
|
1901
1901
|
}),
|
|
1902
1902
|
flags: t,
|
|
1903
1903
|
items: s,
|
|
@@ -1905,21 +1905,21 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1905
1905
|
outrogroups: null,
|
|
1906
1906
|
fallback: u
|
|
1907
1907
|
};
|
|
1908
|
-
h = !1,
|
|
1908
|
+
h = !1, P && (o = I);
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function zr(e) {
|
|
1911
1911
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1912
1912
|
return e;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1915
|
-
var a = (r & 8) != 0, o = t.length, s = e.items, c =
|
|
1914
|
+
function Br(e, t, n, r, i) {
|
|
1915
|
+
var a = (r & 8) != 0, o = t.length, s = e.items, c = zr(e.effect.first), l, u = null, f, p = [], m = [], h, g, _, v;
|
|
1916
1916
|
if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (f ??= /* @__PURE__ */ new Set()).add(_));
|
|
1917
1917
|
for (v = 0; v < o; v += 1) {
|
|
1918
1918
|
if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
|
|
1919
|
-
if (_.f & 8192 && (Nn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^=
|
|
1919
|
+
if (_.f & 8192 && (Nn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= O, _ === c) Hr(_, null, n);
|
|
1920
1920
|
else {
|
|
1921
1921
|
var y = u ? u.next : c;
|
|
1922
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev),
|
|
1922
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Ur(e, u, _), Ur(e, _, y), Hr(_, y, n), u = _, p = [], m = [], c = zr(u.next);
|
|
1923
1923
|
continue;
|
|
1924
1924
|
}
|
|
1925
1925
|
if (_ !== c) {
|
|
@@ -1928,40 +1928,40 @@ function zr(e, t, n, r, i) {
|
|
|
1928
1928
|
var ee = m[0], b;
|
|
1929
1929
|
u = ee.prev;
|
|
1930
1930
|
var x = p[0], S = p[p.length - 1];
|
|
1931
|
-
for (b = 0; b < p.length; b += 1)
|
|
1931
|
+
for (b = 0; b < p.length; b += 1) Hr(p[b], ee, n);
|
|
1932
1932
|
for (b = 0; b < m.length; b += 1) l.delete(m[b]);
|
|
1933
|
-
|
|
1934
|
-
} else l.delete(_),
|
|
1933
|
+
Ur(e, x.prev, S.next), Ur(e, u, x), Ur(e, S, ee), c = ee, u = S, --v, p = [], m = [];
|
|
1934
|
+
} else l.delete(_), Hr(_, c, n), Ur(e, _.prev, _.next), Ur(e, _, u === null ? e.effect.first : u.next), Ur(e, u, _), u = _;
|
|
1935
1935
|
continue;
|
|
1936
1936
|
}
|
|
1937
|
-
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c =
|
|
1937
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = zr(c.next);
|
|
1938
1938
|
if (c === null) continue;
|
|
1939
1939
|
}
|
|
1940
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1940
|
+
_.f & 33554432 || p.push(_), u = _, c = zr(_.next);
|
|
1941
1941
|
}
|
|
1942
1942
|
if (e.outrogroups !== null) {
|
|
1943
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1943
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Ir(e, d(t.done)), e.outrogroups?.delete(t));
|
|
1944
1944
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1945
1945
|
}
|
|
1946
1946
|
if (c !== null || l !== void 0) {
|
|
1947
1947
|
var C = [];
|
|
1948
1948
|
if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
|
|
1949
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c =
|
|
1950
|
-
var
|
|
1951
|
-
if (
|
|
1952
|
-
var
|
|
1949
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = zr(c.next);
|
|
1950
|
+
var te = C.length;
|
|
1951
|
+
if (te > 0) {
|
|
1952
|
+
var w = r & 4 && o === 0 ? n : null;
|
|
1953
1953
|
if (a) {
|
|
1954
|
-
for (v = 0; v <
|
|
1955
|
-
for (v = 0; v <
|
|
1954
|
+
for (v = 0; v < te; v += 1) C[v].nodes?.a?.measure();
|
|
1955
|
+
for (v = 0; v < te; v += 1) C[v].nodes?.a?.fix();
|
|
1956
1956
|
}
|
|
1957
|
-
|
|
1957
|
+
Fr(e, C, w);
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
|
-
a &&
|
|
1960
|
+
a && We(() => {
|
|
1961
1961
|
if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Vr(e, t, n, r, i, a, o, s) {
|
|
1965
1965
|
var c = o & 1 ? o & 16 ? Vt(n) : /* @__PURE__ */ Ht(n, !1, !1) : null, l = o & 2 ? Vt(i) : null;
|
|
1966
1966
|
return {
|
|
1967
1967
|
v: c,
|
|
@@ -1971,19 +1971,19 @@ function Br(e, t, n, r, i, a, o, s) {
|
|
|
1971
1971
|
}))
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function Hr(e, t, n) {
|
|
1975
1975
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1976
1976
|
var o = /* @__PURE__ */ tn(r);
|
|
1977
1977
|
if (a.before(r), r === i) return;
|
|
1978
1978
|
r = o;
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function Ur(e, t, n) {
|
|
1982
1982
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1983
1983
|
}
|
|
1984
1984
|
//#endregion
|
|
1985
1985
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1986
|
-
function
|
|
1986
|
+
function Wr(e, t) {
|
|
1987
1987
|
bn(() => {
|
|
1988
1988
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1989
1989
|
if (!r.querySelector("#" + t.hash)) {
|
|
@@ -1994,14 +1994,14 @@ function Ur(e, t) {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
//#endregion
|
|
1996
1996
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
1997
|
-
function
|
|
1997
|
+
function Gr(e, t, n) {
|
|
1998
1998
|
bn(() => {
|
|
1999
|
-
var r =
|
|
1999
|
+
var r = ar(() => t(e, n?.()) || {});
|
|
2000
2000
|
if (n && r?.update) {
|
|
2001
2001
|
var i = !1, a = {};
|
|
2002
2002
|
Sn(() => {
|
|
2003
2003
|
var e = n();
|
|
2004
|
-
|
|
2004
|
+
or(e), i && Pe(a, e) && (a = e, r.update(e));
|
|
2005
2005
|
}), i = !0;
|
|
2006
2006
|
}
|
|
2007
2007
|
if (r?.destroy) return () => r.destroy();
|
|
@@ -2009,19 +2009,19 @@ function Wr(e, t, n) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
2011
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
|
|
2012
|
-
var
|
|
2013
|
-
function
|
|
2012
|
+
var Kr = [..." \n\r\f\xA0\v"];
|
|
2013
|
+
function qr(e, t, n) {
|
|
2014
2014
|
var r = e == null ? "" : "" + e;
|
|
2015
2015
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2016
2016
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
2017
2017
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
2018
2018
|
var s = o + a;
|
|
2019
|
-
(o === 0 ||
|
|
2019
|
+
(o === 0 || Kr.includes(r[o - 1])) && (s === r.length || Kr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
return r === "" ? null : r;
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function Jr(e, t = !1) {
|
|
2025
2025
|
var n = t ? " !important;" : ";", r = "";
|
|
2026
2026
|
for (var i of Object.keys(e)) {
|
|
2027
2027
|
var a = e[i];
|
|
@@ -2029,16 +2029,16 @@ function qr(e, t = !1) {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
return r;
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Yr(e) {
|
|
2033
2033
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function Xr(e, t) {
|
|
2036
2036
|
if (t) {
|
|
2037
2037
|
var n = "", r, i;
|
|
2038
2038
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2039
2039
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
2040
2040
|
var a = !1, o = 0, s = !1, c = [];
|
|
2041
|
-
r && c.push(...Object.keys(r).map(
|
|
2041
|
+
r && c.push(...Object.keys(r).map(Yr)), i && c.push(...Object.keys(i).map(Yr));
|
|
2042
2042
|
var l = 0, u = -1;
|
|
2043
2043
|
let t = e.length;
|
|
2044
2044
|
for (var d = 0; d < t; d++) {
|
|
@@ -2047,7 +2047,7 @@ function Yr(e, t) {
|
|
|
2047
2047
|
if (f === ":" && u === -1) u = d;
|
|
2048
2048
|
else if (f === ";" || d === t - 1) {
|
|
2049
2049
|
if (u !== -1) {
|
|
2050
|
-
var p =
|
|
2050
|
+
var p = Yr(e.substring(l, u).trim());
|
|
2051
2051
|
if (!c.includes(p)) {
|
|
2052
2052
|
f !== ";" && d++;
|
|
2053
2053
|
var m = e.substring(l, d).trim();
|
|
@@ -2059,17 +2059,17 @@ function Yr(e, t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
return r && (n +=
|
|
2062
|
+
return r && (n += Jr(r)), i && (n += Jr(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2063
2063
|
}
|
|
2064
2064
|
return e == null ? null : String(e);
|
|
2065
2065
|
}
|
|
2066
2066
|
//#endregion
|
|
2067
2067
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2068
|
-
function
|
|
2069
|
-
var o = e[
|
|
2070
|
-
if (
|
|
2071
|
-
var s =
|
|
2072
|
-
(!
|
|
2068
|
+
function Zr(e, t, n, r, i, a) {
|
|
2069
|
+
var o = e[N];
|
|
2070
|
+
if (P || o !== n || o === void 0) {
|
|
2071
|
+
var s = qr(n, r, a);
|
|
2072
|
+
(!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[N] = n;
|
|
2073
2073
|
} else if (a && i !== a) for (var c in a) {
|
|
2074
2074
|
var l = !!a[c];
|
|
2075
2075
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -2078,41 +2078,41 @@ function Xr(e, t, n, r, i, a) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
//#endregion
|
|
2080
2080
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
2081
|
-
function
|
|
2081
|
+
function Qr(e, t = {}, n, r) {
|
|
2082
2082
|
for (var i in n) {
|
|
2083
2083
|
var a = n[i];
|
|
2084
2084
|
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
var i = e[
|
|
2089
|
-
if (
|
|
2090
|
-
var a =
|
|
2091
|
-
(!
|
|
2092
|
-
} else r && (Array.isArray(r) ? (
|
|
2087
|
+
function $r(e, t, n, r) {
|
|
2088
|
+
var i = e[le];
|
|
2089
|
+
if (P || i !== t) {
|
|
2090
|
+
var a = Xr(t, r);
|
|
2091
|
+
(!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[le] = t;
|
|
2092
|
+
} else r && (Array.isArray(r) ? (Qr(e, n?.[0], r[0]), Qr(e, n?.[1], r[1], "important")) : Qr(e, n, r));
|
|
2093
2093
|
return r;
|
|
2094
2094
|
}
|
|
2095
2095
|
//#endregion
|
|
2096
2096
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2097
|
-
var
|
|
2098
|
-
function
|
|
2097
|
+
var ei = Symbol("is custom element"), ti = Symbol("is html"), ni = fe ? "link" : "LINK";
|
|
2098
|
+
function Q(e, t, n, r) {
|
|
2099
2099
|
var i = ii(e);
|
|
2100
|
-
|
|
2100
|
+
P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ni) || i[t] !== (i[t] = n) && (t === "loading" && (e[se] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && oi(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2101
2101
|
}
|
|
2102
2102
|
function ri(e, t, n) {
|
|
2103
2103
|
var r = K, i = J;
|
|
2104
|
-
let a =
|
|
2105
|
-
|
|
2104
|
+
let a = P;
|
|
2105
|
+
P && F(!1), q(null), Vn(null);
|
|
2106
2106
|
try {
|
|
2107
|
-
t !== "style" && (ai.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? oi(e).includes(t) : n && typeof n == "object") ? e[t] = n :
|
|
2107
|
+
t !== "style" && (ai.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? oi(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
|
|
2108
2108
|
} finally {
|
|
2109
|
-
q(r),
|
|
2109
|
+
q(r), Vn(i), a && F(!0);
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
function ii(e) {
|
|
2113
2113
|
return e[ce] ??= {
|
|
2114
|
-
[
|
|
2115
|
-
[
|
|
2114
|
+
[ei]: e.nodeName.includes("-"),
|
|
2115
|
+
[ti]: e.namespaceURI === s
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
2118
|
var ai = /* @__PURE__ */ new Map();
|
|
@@ -2129,14 +2129,14 @@ function oi(e) {
|
|
|
2129
2129
|
//#endregion
|
|
2130
2130
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2131
2131
|
function si(e, t) {
|
|
2132
|
-
return e === t || e?.[
|
|
2132
|
+
return e === t || e?.[j] === t;
|
|
2133
2133
|
}
|
|
2134
2134
|
function ci(e = {}, t, n, r) {
|
|
2135
|
-
var i =
|
|
2135
|
+
var i = R.r, a = J;
|
|
2136
2136
|
return bn(() => {
|
|
2137
2137
|
var o, s;
|
|
2138
2138
|
return Sn(() => {
|
|
2139
|
-
o = s, s = r?.() || [],
|
|
2139
|
+
o = s, s = r?.() || [], ar(() => {
|
|
2140
2140
|
si(n(...s), e) || (t(e, ...s), o && si(n(...o), e) && t(null, ...o));
|
|
2141
2141
|
});
|
|
2142
2142
|
}), () => {
|
|
@@ -2154,14 +2154,14 @@ function ci(e = {}, t, n, r) {
|
|
|
2154
2154
|
//#endregion
|
|
2155
2155
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2156
2156
|
function li(e, t, n, r) {
|
|
2157
|
-
var i = !
|
|
2157
|
+
var i = !Le || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ kt(r), Z(l)) : (c && (c = !1, s = o ? ar(r) : r), s);
|
|
2158
2158
|
let d;
|
|
2159
2159
|
if (a) {
|
|
2160
|
-
var f =
|
|
2160
|
+
var f = j in e || M in e;
|
|
2161
2161
|
d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2162
2162
|
}
|
|
2163
2163
|
var p, h = !1;
|
|
2164
|
-
a ? [p, h] = et(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i &&
|
|
2164
|
+
a ? [p, h] = et(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && be(t), d(p)));
|
|
2165
2165
|
var g = i ? () => {
|
|
2166
2166
|
var n = e[t];
|
|
2167
2167
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2177,14 +2177,14 @@ function li(e, t, n, r) {
|
|
|
2177
2177
|
});
|
|
2178
2178
|
}
|
|
2179
2179
|
var v = !1, y = (n & 1 ? kt : Mt)(() => (v = !1, g()));
|
|
2180
|
-
a &&
|
|
2180
|
+
a && Z(y);
|
|
2181
2181
|
var ee = J;
|
|
2182
2182
|
return (function(e, t) {
|
|
2183
2183
|
if (arguments.length > 0) {
|
|
2184
|
-
let n = t ?
|
|
2184
|
+
let n = t ? Z(y) : i && a ? qt(e) : e;
|
|
2185
2185
|
return W(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2186
2186
|
}
|
|
2187
|
-
return Rn && v || ee.f & 16384 ? y.v :
|
|
2187
|
+
return Rn && v || ee.f & 16384 ? y.v : Z(y);
|
|
2188
2188
|
});
|
|
2189
2189
|
}
|
|
2190
2190
|
//#endregion
|
|
@@ -2205,16 +2205,16 @@ var di = class {
|
|
|
2205
2205
|
$$events: {}
|
|
2206
2206
|
}, {
|
|
2207
2207
|
get(e, r) {
|
|
2208
|
-
return
|
|
2208
|
+
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2209
2209
|
},
|
|
2210
2210
|
has(e, r) {
|
|
2211
|
-
return r ===
|
|
2211
|
+
return r === M ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2212
2212
|
},
|
|
2213
2213
|
set(e, r, i) {
|
|
2214
2214
|
return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2215
2215
|
}
|
|
2216
2216
|
});
|
|
2217
|
-
this.#t = (e.hydrate ?
|
|
2217
|
+
this.#t = (e.hydrate ? Or : Dr)(e.component, {
|
|
2218
2218
|
target: e.target,
|
|
2219
2219
|
anchor: e.anchor,
|
|
2220
2220
|
props: r,
|
|
@@ -2222,7 +2222,7 @@ var di = class {
|
|
|
2222
2222
|
intro: e.intro ?? !1,
|
|
2223
2223
|
recover: e.recover,
|
|
2224
2224
|
transformError: e.transformError
|
|
2225
|
-
}), !
|
|
2225
|
+
}), !Ie && (!e?.props?.$$host || e.sync === !1) && ft(), this.#e = r.$$events;
|
|
2226
2226
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
|
|
2227
2227
|
get() {
|
|
2228
2228
|
return this.#t[e];
|
|
@@ -2235,7 +2235,7 @@ var di = class {
|
|
|
2235
2235
|
this.#t.$set = (e) => {
|
|
2236
2236
|
Object.assign(r, e);
|
|
2237
2237
|
}, this.#t.$destroy = () => {
|
|
2238
|
-
|
|
2238
|
+
Mr(this.#t);
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
2241
|
$set(e) {
|
|
@@ -2286,7 +2286,7 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
|
|
|
2286
2286
|
function e(e) {
|
|
2287
2287
|
return (t) => {
|
|
2288
2288
|
let n = cn("slot");
|
|
2289
|
-
e !== "default" && (n.name = e),
|
|
2289
|
+
e !== "default" && (n.name = e), Cr(t, n);
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
2292
|
let t = {}, n = mi(this);
|
|
@@ -3168,13 +3168,45 @@ var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t
|
|
|
3168
3168
|
};
|
|
3169
3169
|
ja([Oa()], Ma.prototype, "variant", 2), ja([Oa()], Ma.prototype, "size", 2), ja([Oa()], Ma.prototype, "type", 2), ja([Oa()], Ma.prototype, "state", 2), ja([Oa({ attribute: "icon-name" })], Ma.prototype, "iconName", 2), ja([Oa({ type: Boolean })], Ma.prototype, "disabled", 2), ja([Oa({ attribute: "button-aria-label" })], Ma.prototype, "buttonAriaLabel", 2), ja([Oa()], Ma.prototype, "shape", 1), Ma = ja([Ta("nds-icon-button")], Ma);
|
|
3170
3170
|
//#endregion
|
|
3171
|
+
//#region ../players-shared/src/ui/zoom-compensation.ts
|
|
3172
|
+
var Na = {
|
|
3173
|
+
maxZoom: 2,
|
|
3174
|
+
minCompensation: .25
|
|
3175
|
+
};
|
|
3176
|
+
function Pa(e, t) {
|
|
3177
|
+
let n = e / t;
|
|
3178
|
+
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
3179
|
+
}
|
|
3180
|
+
function Fa(e, t, n) {
|
|
3181
|
+
return Math.max(n, Math.min(1, t / e));
|
|
3182
|
+
}
|
|
3183
|
+
//#endregion
|
|
3184
|
+
//#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
|
|
3185
|
+
function Ia(e) {
|
|
3186
|
+
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
|
|
3187
|
+
function a() {
|
|
3188
|
+
let e = Pa(window.outerWidth, window.innerWidth);
|
|
3189
|
+
W(i, e, !0), W(r, Fa(e, t, n), !0);
|
|
3190
|
+
}
|
|
3191
|
+
return gn(() => {
|
|
3192
|
+
if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
3193
|
+
}), {
|
|
3194
|
+
get current() {
|
|
3195
|
+
return Z(r);
|
|
3196
|
+
},
|
|
3197
|
+
get zoom() {
|
|
3198
|
+
return Z(i);
|
|
3199
|
+
}
|
|
3200
|
+
};
|
|
3201
|
+
}
|
|
3202
|
+
//#endregion
|
|
3171
3203
|
//#region tool-tts-inline.svelte
|
|
3172
|
-
var
|
|
3204
|
+
var La = /* @__PURE__ */ xr("<nds-icon-button></nds-icon-button>", 2), Ra = /* @__PURE__ */ xr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), za = /* @__PURE__ */ xr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Ba = /* @__PURE__ */ xr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Va = /* @__PURE__ */ xr("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Ha = /* @__PURE__ */ xr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Rewind\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Fast-forward\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Ua = /* @__PURE__ */ xr("<div><!> <!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Wa = {
|
|
3173
3205
|
hash: "svelte-18mzc0g",
|
|
3174
|
-
code: ".pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}.pie-tool-tts-inline__panel.svelte-18mzc0g {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-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;background:var(--pie-tts-selected-bg, #fff);border:0;border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width: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-blue, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, #146eb3);}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, #146eb3) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;color:var(--pie-tts-inline-muted-color, #5b6b73);font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered white chip. Options size to their content and centre\n (no full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, #146eb3);font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
|
|
3206
|
+
code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, #146eb3);}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-tts-selected-bg, #fff);border:0;border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent-blue, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, #146eb3);}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, #146eb3) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;color:var(--pie-tts-inline-muted-color, #5b6b73);font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered white chip. Options size to their content and centre\n (no full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, #146eb3);font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
|
|
3175
3207
|
};
|
|
3176
|
-
function
|
|
3177
|
-
|
|
3208
|
+
function Ga(a, o) {
|
|
3209
|
+
ze(o, !0), Wr(a, Wa);
|
|
3178
3210
|
let s = li(o, "catalogId", 7, ""), c = li(o, "language", 7, "en-US"), l = li(o, "size", 7, "md"), u = li(o, "speedOptions", 7, void 0), d = li(o, "showSingleSpeedOption", 7, !1), f = li(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], _ = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", v = /font.?awesome|fa-?pro/i, y = !1, ee = () => {
|
|
3179
3211
|
if (!(!p || y)) {
|
|
3180
3212
|
if (y = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
@@ -3239,104 +3271,104 @@ function za(a, o) {
|
|
|
3239
3271
|
i.disconnect();
|
|
3240
3272
|
}
|
|
3241
3273
|
};
|
|
3242
|
-
}, w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0),
|
|
3243
|
-
function
|
|
3274
|
+
}, te = (e) => (ee(), x(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), ne = /* @__PURE__ */ U(null), re = /* @__PURE__ */ H(() => Z(ne)?.ndsIcons === !0), E = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ U(null), D = /* @__PURE__ */ H(() => Z(ne)?.ttsService), O = /* @__PURE__ */ H(() => Z(ne)?.highlightCoordinator), ae = /* @__PURE__ */ H(() => Z(ie)?.scopeElement || Z(E)?.scopeElement || null), k = /* @__PURE__ */ U(!1), oe = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(""), se = /* @__PURE__ */ U(null), ce = /* @__PURE__ */ U(null), N = /* @__PURE__ */ U(0), le = /* @__PURE__ */ U(!1), ue = /* @__PURE__ */ U(!1), de = null, fe = /* @__PURE__ */ H(() => i(u())), pe = /* @__PURE__ */ H(() => P(Z(fe))), me = /* @__PURE__ */ H(() => Z(fe).length > 1 || d() ? Z(fe) : []), he = /* @__PURE__ */ H(() => Z(me).length), ge = /* @__PURE__ */ H(() => Z(he) + 3), _e = /* @__PURE__ */ H(() => Z(N) >= Z(ge) ? 0 : Z(N)), ve = /* @__PURE__ */ H(() => Z(se) !== null && Z(ce) === Z(pe) && Z(fe).some((e) => e.rate === Z(se)) ? Z(se) : F(Z(fe))), ye = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, be = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, xe = `${ye}-controls`;
|
|
3275
|
+
function Se() {
|
|
3244
3276
|
if (!p) return null;
|
|
3245
3277
|
let e = window[m];
|
|
3246
3278
|
return typeof e == "string" ? e : null;
|
|
3247
3279
|
}
|
|
3248
|
-
function
|
|
3249
|
-
return
|
|
3280
|
+
function Ce() {
|
|
3281
|
+
return Se() === ye;
|
|
3250
3282
|
}
|
|
3251
|
-
function
|
|
3283
|
+
function we(e, t) {
|
|
3252
3284
|
p && window.dispatchEvent(new CustomEvent(h, { detail: {
|
|
3253
3285
|
ownerId: e,
|
|
3254
3286
|
previousOwnerId: t
|
|
3255
3287
|
} }));
|
|
3256
3288
|
}
|
|
3257
|
-
function
|
|
3289
|
+
function Te() {
|
|
3258
3290
|
if (!p) return;
|
|
3259
|
-
let e =
|
|
3260
|
-
e !==
|
|
3291
|
+
let e = Se();
|
|
3292
|
+
e !== ye && (window[m] = ye, we(ye, e));
|
|
3261
3293
|
}
|
|
3262
|
-
function
|
|
3263
|
-
p &&
|
|
3294
|
+
function Ee() {
|
|
3295
|
+
p && Se() === ye && (delete window[m], we(null, ye));
|
|
3264
3296
|
}
|
|
3265
|
-
function
|
|
3266
|
-
W(A, !1), W(
|
|
3297
|
+
function De(e = "", t = !1) {
|
|
3298
|
+
W(A, !1), W(j, !1), W(N, 0), W(k, t, !0), W(M, e, !0);
|
|
3267
3299
|
}
|
|
3268
|
-
function
|
|
3300
|
+
function P(e) {
|
|
3269
3301
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
3270
3302
|
}
|
|
3271
|
-
function
|
|
3303
|
+
function F(e) {
|
|
3272
3304
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
3273
3305
|
}
|
|
3274
|
-
async function
|
|
3306
|
+
async function I(e, t) {
|
|
3275
3307
|
if (typeof e.setPlaybackRate == "function") {
|
|
3276
3308
|
await e.setPlaybackRate(t);
|
|
3277
3309
|
return;
|
|
3278
3310
|
}
|
|
3279
3311
|
await e.updateSettings({ rate: t });
|
|
3280
3312
|
}
|
|
3281
|
-
function
|
|
3282
|
-
if (!
|
|
3283
|
-
let t =
|
|
3313
|
+
function L(e) {
|
|
3314
|
+
if (!Z(w) || !e) return;
|
|
3315
|
+
let t = Z(w).getRootNode();
|
|
3284
3316
|
if (!(t instanceof ShadowRoot)) return;
|
|
3285
3317
|
let n = t.querySelector(".pie-tool-tts-inline__trigger");
|
|
3286
3318
|
(n?.querySelector("button") ?? n)?.focus();
|
|
3287
3319
|
}
|
|
3288
|
-
function
|
|
3289
|
-
if (!
|
|
3290
|
-
W(
|
|
3320
|
+
function Oe(e = "Reading switched to another section", t = !1) {
|
|
3321
|
+
if (!Z(ue) && !(!Z(k) && !Ce())) {
|
|
3322
|
+
W(ue, !0);
|
|
3291
3323
|
try {
|
|
3292
3324
|
let n = (() => {
|
|
3293
|
-
if (!
|
|
3294
|
-
let e =
|
|
3325
|
+
if (!Z(w) || !Z(T)) return !1;
|
|
3326
|
+
let e = Z(w).getRootNode();
|
|
3295
3327
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
3296
3328
|
let t = e.activeElement;
|
|
3297
|
-
return !!(t &&
|
|
3329
|
+
return !!(t && Z(T).contains(t));
|
|
3298
3330
|
})();
|
|
3299
|
-
|
|
3300
|
-
|
|
3331
|
+
Ce() && Ee(), De(e), Le(), t && queueMicrotask(() => {
|
|
3332
|
+
L(n);
|
|
3301
3333
|
});
|
|
3302
3334
|
} finally {
|
|
3303
|
-
W(
|
|
3335
|
+
W(ue, !1);
|
|
3304
3336
|
}
|
|
3305
3337
|
}
|
|
3306
3338
|
}
|
|
3307
3339
|
gn(() => {
|
|
3308
|
-
if (
|
|
3309
|
-
W(
|
|
3340
|
+
if (Z(w)) return n(Z(w), (e) => {
|
|
3341
|
+
W(ne, e, !0);
|
|
3310
3342
|
});
|
|
3311
3343
|
}), gn(() => {
|
|
3312
|
-
if (!
|
|
3313
|
-
let e = r(
|
|
3344
|
+
if (!Z(w)) return;
|
|
3345
|
+
let e = r(Z(w), (e) => {
|
|
3314
3346
|
W(E, e, !0);
|
|
3315
|
-
}), n = t(
|
|
3316
|
-
W(
|
|
3347
|
+
}), n = t(Z(w), (e) => {
|
|
3348
|
+
W(ie, e, !0);
|
|
3317
3349
|
});
|
|
3318
3350
|
return () => {
|
|
3319
3351
|
n(), e();
|
|
3320
3352
|
};
|
|
3321
3353
|
}), gn(() => {
|
|
3322
|
-
if (!
|
|
3354
|
+
if (!Z(D)) return;
|
|
3323
3355
|
let e = (e) => {
|
|
3324
|
-
if (!
|
|
3325
|
-
W(A, !1), W(
|
|
3356
|
+
if (!Z(k) || !Ce()) {
|
|
3357
|
+
W(A, !1), W(j, !1);
|
|
3326
3358
|
return;
|
|
3327
3359
|
}
|
|
3328
|
-
W(A, e === "playing" || e === "paused", !0), W(
|
|
3360
|
+
W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
|
|
3329
3361
|
}, t = (t) => {
|
|
3330
3362
|
e(t);
|
|
3331
3363
|
};
|
|
3332
|
-
return
|
|
3333
|
-
|
|
3364
|
+
return Z(D).onStateChange(be, t), e(Z(D).getState()), () => {
|
|
3365
|
+
Z(D).offStateChange(be, t);
|
|
3334
3366
|
};
|
|
3335
3367
|
}), gn(() => {
|
|
3336
3368
|
if (!p) return;
|
|
3337
3369
|
let e = (e) => {
|
|
3338
3370
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
3339
|
-
n ===
|
|
3371
|
+
n === ye && t !== ye && Oe("Reading switched to another section");
|
|
3340
3372
|
};
|
|
3341
3373
|
return window.addEventListener(h, e), () => {
|
|
3342
3374
|
window.removeEventListener(h, e);
|
|
@@ -3344,95 +3376,95 @@ function za(a, o) {
|
|
|
3344
3376
|
}), gn(() => {
|
|
3345
3377
|
if (!p) return;
|
|
3346
3378
|
let t = () => {
|
|
3347
|
-
|
|
3379
|
+
Oe("Reading switched to another section", !0);
|
|
3348
3380
|
};
|
|
3349
3381
|
return window.addEventListener(e, t), () => {
|
|
3350
3382
|
window.removeEventListener(e, t);
|
|
3351
3383
|
};
|
|
3352
3384
|
}), gn(() => () => {
|
|
3353
|
-
|
|
3385
|
+
Ee(), Le();
|
|
3354
3386
|
});
|
|
3355
|
-
async function
|
|
3356
|
-
if (!
|
|
3387
|
+
async function Ae() {
|
|
3388
|
+
if (!Z(D)) return !1;
|
|
3357
3389
|
try {
|
|
3358
|
-
return await
|
|
3390
|
+
return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
3359
3391
|
} catch (e) {
|
|
3360
3392
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
3361
3393
|
}
|
|
3362
3394
|
}
|
|
3363
|
-
function
|
|
3364
|
-
return
|
|
3395
|
+
function je() {
|
|
3396
|
+
return Z(T) ? Array.from(Z(T).querySelectorAll("[data-pie-tts-control]")).filter((e) => window.getComputedStyle(e).display !== "none") : [];
|
|
3365
3397
|
}
|
|
3366
|
-
function
|
|
3367
|
-
let t =
|
|
3398
|
+
function Me(e) {
|
|
3399
|
+
let t = je();
|
|
3368
3400
|
if (!t.length) return;
|
|
3369
3401
|
let n = (e + t.length) % t.length;
|
|
3370
|
-
W(
|
|
3402
|
+
W(N, n), t[n].focus();
|
|
3371
3403
|
}
|
|
3372
|
-
function
|
|
3373
|
-
let t =
|
|
3404
|
+
function Ne(e) {
|
|
3405
|
+
let t = je();
|
|
3374
3406
|
if (t.length) switch (e.key) {
|
|
3375
3407
|
case "ArrowDown":
|
|
3376
3408
|
case "ArrowRight":
|
|
3377
|
-
e.preventDefault(),
|
|
3409
|
+
e.preventDefault(), Me(Z(N) + 1);
|
|
3378
3410
|
break;
|
|
3379
3411
|
case "ArrowUp":
|
|
3380
3412
|
case "ArrowLeft":
|
|
3381
|
-
e.preventDefault(),
|
|
3413
|
+
e.preventDefault(), Me(Z(N) - 1);
|
|
3382
3414
|
break;
|
|
3383
3415
|
case "Home":
|
|
3384
|
-
e.preventDefault(),
|
|
3416
|
+
e.preventDefault(), Me(0);
|
|
3385
3417
|
break;
|
|
3386
3418
|
case "End":
|
|
3387
|
-
e.preventDefault(),
|
|
3419
|
+
e.preventDefault(), Me(t.length - 1);
|
|
3388
3420
|
break;
|
|
3389
3421
|
}
|
|
3390
3422
|
}
|
|
3391
|
-
function
|
|
3392
|
-
if (!
|
|
3393
|
-
let e =
|
|
3423
|
+
function Pe() {
|
|
3424
|
+
if (!Z(ae)) return null;
|
|
3425
|
+
let e = Z(ae);
|
|
3394
3426
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
3395
3427
|
let t = e.querySelector?.("[data-region='content']");
|
|
3396
3428
|
return t instanceof Element ? t : e;
|
|
3397
3429
|
}
|
|
3398
|
-
function
|
|
3399
|
-
if (
|
|
3430
|
+
function Fe() {
|
|
3431
|
+
if (Z(E)) return Z(E).kind === "passage" ? {
|
|
3400
3432
|
ownerKind: "passage",
|
|
3401
|
-
assessmentId:
|
|
3402
|
-
sectionId:
|
|
3403
|
-
passageId:
|
|
3433
|
+
assessmentId: Z(ne)?.assessmentId || "",
|
|
3434
|
+
sectionId: Z(ne)?.sectionId || "",
|
|
3435
|
+
passageId: Z(E).canonicalItemId || Z(E).itemId
|
|
3404
3436
|
} : {
|
|
3405
3437
|
ownerKind: "itemModel",
|
|
3406
|
-
assessmentId:
|
|
3407
|
-
sectionId:
|
|
3408
|
-
itemId:
|
|
3409
|
-
canonicalItemId:
|
|
3438
|
+
assessmentId: Z(ne)?.assessmentId || "",
|
|
3439
|
+
sectionId: Z(ne)?.sectionId || "",
|
|
3440
|
+
itemId: Z(E).itemId,
|
|
3441
|
+
canonicalItemId: Z(E).canonicalItemId || Z(E).itemId
|
|
3410
3442
|
};
|
|
3411
3443
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return
|
|
3444
|
+
function Ie(e) {
|
|
3445
|
+
return Le(), de = Z(D)?.setHighlightTargetResolverProvider?.(() => ({
|
|
3414
3446
|
context: {
|
|
3415
|
-
scopeElement:
|
|
3416
|
-
kind:
|
|
3417
|
-
itemId:
|
|
3418
|
-
canonicalItemId:
|
|
3419
|
-
contentKind:
|
|
3420
|
-
regionPolicy:
|
|
3447
|
+
scopeElement: Z(ie)?.scopeElement || e || null,
|
|
3448
|
+
kind: Z(E)?.kind,
|
|
3449
|
+
itemId: Z(E)?.itemId,
|
|
3450
|
+
canonicalItemId: Z(E)?.canonicalItemId,
|
|
3451
|
+
contentKind: Z(E)?.contentKind,
|
|
3452
|
+
regionPolicy: Z(E)?.regionPolicy
|
|
3421
3453
|
},
|
|
3422
|
-
resolver:
|
|
3423
|
-
})) || null,
|
|
3454
|
+
resolver: Z(ie)?.ttsHighlightTargetResolver || null
|
|
3455
|
+
})) || null, de;
|
|
3424
3456
|
}
|
|
3425
|
-
function
|
|
3426
|
-
e?.(), e ===
|
|
3457
|
+
function Le(e = de) {
|
|
3458
|
+
e?.(), e === de && (de = null);
|
|
3427
3459
|
}
|
|
3428
|
-
function
|
|
3429
|
-
if (!
|
|
3430
|
-
let e = String(
|
|
3460
|
+
function R() {
|
|
3461
|
+
if (!Ce()) return !1;
|
|
3462
|
+
let e = String(Z(D)?.getState?.() || "");
|
|
3431
3463
|
return e === "playing" || e === "paused" || e === "loading";
|
|
3432
3464
|
}
|
|
3433
3465
|
async function Re() {
|
|
3434
|
-
if (!
|
|
3435
|
-
let e =
|
|
3466
|
+
if (!Z(D)) return;
|
|
3467
|
+
let e = Pe();
|
|
3436
3468
|
if (!e) {
|
|
3437
3469
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
3438
3470
|
return;
|
|
@@ -3444,91 +3476,91 @@ function za(a, o) {
|
|
|
3444
3476
|
console.warn("[TTS Inline] No text content found");
|
|
3445
3477
|
return;
|
|
3446
3478
|
}
|
|
3447
|
-
|
|
3448
|
-
let n =
|
|
3449
|
-
|
|
3479
|
+
Z(O) && Z(D).setHighlightCoordinator && Z(D).setHighlightCoordinator(Z(O)), await I(Z(D), Z(ve));
|
|
3480
|
+
let n = Ie(e);
|
|
3481
|
+
Z(D).setRootElement?.(e), W(M, "Reading started"), Z(D).speak(t, {
|
|
3450
3482
|
catalogId: s() || void 0,
|
|
3451
|
-
catalogContext:
|
|
3483
|
+
catalogContext: Fe(),
|
|
3452
3484
|
language: c(),
|
|
3453
3485
|
contentElement: e
|
|
3454
3486
|
}).catch((e) => {
|
|
3455
|
-
console.error("[TTS Inline] Error:", e), W(
|
|
3487
|
+
console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le(n);
|
|
3456
3488
|
}).finally(() => {
|
|
3457
|
-
|
|
3489
|
+
R() || Le(n);
|
|
3458
3490
|
});
|
|
3459
3491
|
} catch (e) {
|
|
3460
|
-
console.error("[TTS Inline] Error:", e), W(
|
|
3492
|
+
console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le();
|
|
3461
3493
|
}
|
|
3462
3494
|
}
|
|
3463
|
-
async function
|
|
3464
|
-
if (
|
|
3465
|
-
if (
|
|
3466
|
-
|
|
3495
|
+
async function Ve() {
|
|
3496
|
+
if (Z(D)) {
|
|
3497
|
+
if (Ce() && Z(j)) {
|
|
3498
|
+
Z(D).resume(), W(M, "Reading resumed");
|
|
3467
3499
|
return;
|
|
3468
3500
|
}
|
|
3469
|
-
if (
|
|
3470
|
-
|
|
3501
|
+
if (Ce() && Z(A) && !Z(j)) {
|
|
3502
|
+
Z(D).pause(), W(M, "Reading paused");
|
|
3471
3503
|
return;
|
|
3472
3504
|
}
|
|
3473
|
-
if (!
|
|
3474
|
-
W(
|
|
3505
|
+
if (!Z(le)) {
|
|
3506
|
+
W(le, !0);
|
|
3475
3507
|
try {
|
|
3476
|
-
if (W(
|
|
3477
|
-
W(
|
|
3508
|
+
if (W(M, "Initializing text-to-speech"), !await Ae()) {
|
|
3509
|
+
W(M, "Unable to initialize text-to-speech. Try again.");
|
|
3478
3510
|
return;
|
|
3479
3511
|
}
|
|
3480
|
-
let e = String(
|
|
3481
|
-
(e === "playing" || e === "paused" || e === "loading") && !
|
|
3512
|
+
let e = String(Z(D).getState?.() || "");
|
|
3513
|
+
(e === "playing" || e === "paused" || e === "loading") && !Ce() && Z(D).stop(), Te(), await Re();
|
|
3482
3514
|
} finally {
|
|
3483
|
-
W(
|
|
3515
|
+
W(le, !1);
|
|
3484
3516
|
}
|
|
3485
3517
|
}
|
|
3486
3518
|
}
|
|
3487
3519
|
}
|
|
3488
|
-
function
|
|
3489
|
-
|
|
3520
|
+
function He() {
|
|
3521
|
+
Z(D) && (Z(D).stop(), Ee(), De("Reading stopped"), Z(O) && Z(O).clearTTS(), Le());
|
|
3490
3522
|
}
|
|
3491
|
-
async function
|
|
3492
|
-
if (!(!
|
|
3493
|
-
await
|
|
3523
|
+
async function Ue() {
|
|
3524
|
+
if (!(!Z(D) || !Z(A))) try {
|
|
3525
|
+
await Z(D).seekForward?.(1), W(M, "Skipped forward");
|
|
3494
3526
|
} catch (e) {
|
|
3495
|
-
console.error("[TTS Inline] Seek forward failed:", e), W(
|
|
3527
|
+
console.error("[TTS Inline] Seek forward failed:", e), W(M, "Unable to skip forward");
|
|
3496
3528
|
}
|
|
3497
3529
|
}
|
|
3498
|
-
async function
|
|
3499
|
-
if (!(!
|
|
3500
|
-
await
|
|
3530
|
+
async function We() {
|
|
3531
|
+
if (!(!Z(D) || !Z(A))) try {
|
|
3532
|
+
await Z(D).seekBackward?.(1), W(M, "Skipped backward");
|
|
3501
3533
|
} catch (e) {
|
|
3502
|
-
console.error("[TTS Inline] Seek backward failed:", e), W(
|
|
3534
|
+
console.error("[TTS Inline] Seek backward failed:", e), W(M, "Unable to skip backward");
|
|
3503
3535
|
}
|
|
3504
3536
|
}
|
|
3505
|
-
async function
|
|
3506
|
-
let t =
|
|
3537
|
+
async function Ge(e) {
|
|
3538
|
+
let t = Z(D);
|
|
3507
3539
|
if (!t) return;
|
|
3508
|
-
if (
|
|
3509
|
-
W(
|
|
3540
|
+
if (Z(ve) === e.rate) {
|
|
3541
|
+
W(M, `Playback speed ${e.label}`);
|
|
3510
3542
|
return;
|
|
3511
3543
|
}
|
|
3512
|
-
let n =
|
|
3513
|
-
W(
|
|
3544
|
+
let n = Z(se), r = Z(ce);
|
|
3545
|
+
W(se, e.rate, !0), W(ce, Z(pe), !0), W(M, `Playback speed ${e.label}`);
|
|
3514
3546
|
try {
|
|
3515
|
-
await
|
|
3547
|
+
await I(t, e.rate);
|
|
3516
3548
|
} catch (e) {
|
|
3517
|
-
console.error("[TTS Inline] Playback speed change failed:", e), W(
|
|
3549
|
+
console.error("[TTS Inline] Playback speed change failed:", e), W(se, n, !0), W(ce, r, !0), W(M, "Unable to change playback speed");
|
|
3518
3550
|
}
|
|
3519
3551
|
}
|
|
3520
|
-
let
|
|
3552
|
+
let Ke = /* @__PURE__ */ H(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), qe = /* @__PURE__ */ H(() => f() === "reserved-row" || f() === "expanding-row"), Je = /* @__PURE__ */ H(() => f() === "floating-overlay"), z = /* @__PURE__ */ H(() => f() === "left-aligned"), Ye = Ia(Na), Xe = "[data-pie-tool-overlay-boundary]", Ze = /* @__PURE__ */ U(""), Qe = /* @__PURE__ */ U(0);
|
|
3521
3553
|
gn(() => {
|
|
3522
|
-
let e =
|
|
3523
|
-
if (!e || !n || !
|
|
3554
|
+
let e = Z(D), t = Z(ve), n = Z(A) || Z(j);
|
|
3555
|
+
if (!e || !n || !Ce()) return;
|
|
3524
3556
|
let r = !1;
|
|
3525
3557
|
return queueMicrotask(() => {
|
|
3526
|
-
r ||
|
|
3558
|
+
r || I(e, t);
|
|
3527
3559
|
}), () => {
|
|
3528
3560
|
r = !0;
|
|
3529
3561
|
};
|
|
3530
3562
|
});
|
|
3531
|
-
function
|
|
3563
|
+
function $e(e, t) {
|
|
3532
3564
|
let n = e;
|
|
3533
3565
|
for (; n;) {
|
|
3534
3566
|
if (n.matches?.(t)) return n;
|
|
@@ -3536,56 +3568,56 @@ function za(a, o) {
|
|
|
3536
3568
|
}
|
|
3537
3569
|
return null;
|
|
3538
3570
|
}
|
|
3539
|
-
function
|
|
3540
|
-
let e =
|
|
3571
|
+
function et() {
|
|
3572
|
+
let e = Z(w)?.getRootNode();
|
|
3541
3573
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
3542
3574
|
}
|
|
3543
|
-
function
|
|
3575
|
+
function tt(e) {
|
|
3544
3576
|
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");
|
|
3545
3577
|
return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
|
|
3546
3578
|
}
|
|
3547
|
-
function
|
|
3548
|
-
let e =
|
|
3549
|
-
if (!e || !
|
|
3550
|
-
let t = e.getBoundingClientRect(), n =
|
|
3551
|
-
if (!
|
|
3552
|
-
let e =
|
|
3553
|
-
e > 0 && W(
|
|
3579
|
+
function nt() {
|
|
3580
|
+
let e = et();
|
|
3581
|
+
if (!e || !Z(T)) return;
|
|
3582
|
+
let t = e.getBoundingClientRect(), n = $e(e, Xe)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
|
|
3583
|
+
if (!Z(oe)) {
|
|
3584
|
+
let e = tt(Z(T));
|
|
3585
|
+
e > 0 && W(Qe, e, !0);
|
|
3554
3586
|
}
|
|
3555
|
-
W(
|
|
3556
|
-
let i =
|
|
3557
|
-
W(
|
|
3587
|
+
W(oe, Z(Qe) > 0 && r < Z(Qe), !0);
|
|
3588
|
+
let i = Z(T).offsetHeight || t.height;
|
|
3589
|
+
W(Ze, `top: ${Z(oe) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
|
|
3558
3590
|
}
|
|
3559
3591
|
gn(() => {
|
|
3560
|
-
if (!
|
|
3561
|
-
W(
|
|
3592
|
+
if (!Z(z) || !Z(k)) {
|
|
3593
|
+
W(Ze, ""), W(oe, !1), W(Qe, 0);
|
|
3562
3594
|
return;
|
|
3563
3595
|
}
|
|
3564
3596
|
if (typeof window > "u") return;
|
|
3565
3597
|
let e = 0, t = () => {
|
|
3566
3598
|
e ||= window.requestAnimationFrame(() => {
|
|
3567
|
-
e = 0,
|
|
3599
|
+
e = 0, nt();
|
|
3568
3600
|
});
|
|
3569
3601
|
};
|
|
3570
|
-
|
|
3571
|
-
let n =
|
|
3572
|
-
n && r.observe(n),
|
|
3573
|
-
let i = n ?
|
|
3602
|
+
nt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
3603
|
+
let n = et(), r = new ResizeObserver(t);
|
|
3604
|
+
n && r.observe(n), Z(T) && r.observe(Z(T));
|
|
3605
|
+
let i = n ? $e(n, Xe) : null;
|
|
3574
3606
|
i && r.observe(i);
|
|
3575
3607
|
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
3576
3608
|
return a && r.observe(a), () => {
|
|
3577
3609
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
3578
3610
|
};
|
|
3579
3611
|
});
|
|
3580
|
-
function
|
|
3581
|
-
if (!
|
|
3582
|
-
let e =
|
|
3612
|
+
function B() {
|
|
3613
|
+
if (!Z(w)) return null;
|
|
3614
|
+
let e = Z(w).getRootNode();
|
|
3583
3615
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3584
3616
|
}
|
|
3585
3617
|
gn(() => {
|
|
3586
|
-
let e =
|
|
3618
|
+
let e = B();
|
|
3587
3619
|
if (!e) return;
|
|
3588
|
-
let t =
|
|
3620
|
+
let t = Z(k) === !0;
|
|
3589
3621
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
3590
3622
|
let n = !1;
|
|
3591
3623
|
return queueMicrotask(() => {
|
|
@@ -3598,7 +3630,7 @@ function za(a, o) {
|
|
|
3598
3630
|
n = !0;
|
|
3599
3631
|
};
|
|
3600
3632
|
});
|
|
3601
|
-
var
|
|
3633
|
+
var rt = {
|
|
3602
3634
|
get catalogId() {
|
|
3603
3635
|
return s();
|
|
3604
3636
|
},
|
|
@@ -3635,66 +3667,78 @@ function za(a, o) {
|
|
|
3635
3667
|
set layoutMode(e = "expanding-row") {
|
|
3636
3668
|
f(e), ft();
|
|
3637
3669
|
}
|
|
3638
|
-
},
|
|
3639
|
-
var t =
|
|
3670
|
+
}, V = Sr(), it = rn(V), at = (e) => {
|
|
3671
|
+
var t = Ua();
|
|
3640
3672
|
let n;
|
|
3641
3673
|
{
|
|
3642
3674
|
let e = (e) => {
|
|
3643
|
-
var t =
|
|
3644
|
-
|
|
3645
|
-
"aria-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3675
|
+
var t = za(), n = nn(t), r = (e) => {
|
|
3676
|
+
var t = La();
|
|
3677
|
+
ri(t, "type", "circle"), ri(t, "size", "small"), ri(t, "variant", "tertiary"), Cn(() => ri(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), Cn(() => ri(t, "button-aria-label", Z(A) && !Z(j) ? "Pause reading" : Z(j) ? "Resume reading" : "Play reading")), Cn(() => ri(t, "disabled", !Z(D) || Z(le))), Gr(t, (e) => S?.(e)), Gr(t, (e, t) => C?.(e, t), () => ({
|
|
3678
|
+
"aria-expanded": Z(k) ? "true" : "false",
|
|
3679
|
+
"aria-controls": Z(k) ? xe : null,
|
|
3680
|
+
"aria-pressed": Z(k) ? "true" : "false"
|
|
3681
|
+
})), Cn(() => Zr(t, 1, `pie-tool-tts-inline__trigger ${Z(Ke) ?? ""}`, "svelte-18mzc0g")), pr("click", t, Ve), Cr(e, t);
|
|
3682
|
+
}, i = (e) => {
|
|
3683
|
+
var t = Ra(), n = nn(t);
|
|
3684
|
+
ke(t), Gr(t, (e) => te?.(e)), Cn(() => {
|
|
3685
|
+
Zr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(Ke) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(k) ? "true" : "false"), Q(t, "aria-controls", Z(k) ? xe : void 0), Q(t, "aria-pressed", Z(k) ? "true" : "false"), Q(t, "aria-label", Z(A) && !Z(j) ? "Pause reading" : Z(j) ? "Resume reading" : "Play reading"), t.disabled = !Z(D) || Z(le), Zr(n, 1, `fa-solid ${Z(A) && !Z(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
|
|
3686
|
+
}), pr("click", t, Ve), Cr(e, t);
|
|
3687
|
+
};
|
|
3688
|
+
Pr(n, (e) => {
|
|
3689
|
+
Z(re) ? e(r) : e(i, -1);
|
|
3690
|
+
}), ke(t), Cr(e, t);
|
|
3649
3691
|
}, n = (e) => {
|
|
3650
|
-
var t =
|
|
3651
|
-
var t =
|
|
3692
|
+
var t = Sr(), n = rn(t), r = (e) => {
|
|
3693
|
+
var t = Ha();
|
|
3652
3694
|
let n;
|
|
3653
3695
|
var r = nn(t), i = (e) => {
|
|
3654
|
-
var t =
|
|
3696
|
+
var t = Va();
|
|
3655
3697
|
let n;
|
|
3656
|
-
|
|
3657
|
-
var r =
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
}),
|
|
3661
|
-
}),
|
|
3698
|
+
Rr(t, 23, () => Z(me), (e) => e.rate, (e, t, n) => {
|
|
3699
|
+
var r = Ba(), i = nn(r), a = nn(i, !0);
|
|
3700
|
+
ke(i), ke(r), Cn(() => {
|
|
3701
|
+
Q(r, "tabindex", Z(_e) === Z(n) ? 0 : -1), Q(r, "aria-label", Z(t).ariaLabel), Q(r, "aria-checked", Z(ve) === Z(t).rate), r.disabled = !Z(D), Q(i, "data-label", Z(t).label), Er(a, Z(t).label);
|
|
3702
|
+
}), pr("click", r, () => Ge(Z(t))), fr("focus", r, () => W(N, Z(n), !0)), Cr(e, r);
|
|
3703
|
+
}), ke(t), Cn(() => n = Zr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(oe) })), Cr(e, t);
|
|
3662
3704
|
};
|
|
3663
|
-
|
|
3664
|
-
|
|
3705
|
+
Pr(r, (e) => {
|
|
3706
|
+
Z(me).length > 0 && e(i);
|
|
3665
3707
|
});
|
|
3666
3708
|
var a = an(r, 2), o = an(a, 2), s = an(o, 2);
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
"pie-tool-tts-inline__panel--floating":
|
|
3670
|
-
"pie-tool-tts-inline__panel--row":
|
|
3671
|
-
"pie-tool-tts-inline__panel--left-aligned-inline":
|
|
3672
|
-
"pie-tool-tts-inline__panel--compact":
|
|
3673
|
-
}),
|
|
3674
|
-
}),
|
|
3709
|
+
ke(t), ci(t, (e) => W(T, e), () => Z(T)), Cn(() => {
|
|
3710
|
+
Q(t, "id", xe), n = Zr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
3711
|
+
"pie-tool-tts-inline__panel--floating": Z(Je),
|
|
3712
|
+
"pie-tool-tts-inline__panel--row": Z(qe),
|
|
3713
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Z(z),
|
|
3714
|
+
"pie-tool-tts-inline__panel--compact": Z(z) && Z(oe)
|
|
3715
|
+
}), $r(t, Z(z) ? Z(Ze) : ""), Q(a, "tabindex", Z(_e) === Z(he) ? 0 : -1), a.disabled = !Z(D) || !Z(A), Q(o, "tabindex", Z(_e) === Z(he) + 1 ? 0 : -1), o.disabled = !Z(D) || !Z(A), Q(s, "tabindex", Z(_e) === Z(he) + 2 ? 0 : -1), s.disabled = !Z(D) || !Z(A) && !Z(j);
|
|
3716
|
+
}), pr("keydown", t, Ne), pr("click", a, We), fr("focus", a, () => W(N, Z(he), !0)), pr("click", o, Ue), fr("focus", o, () => W(N, Z(he) + 1)), pr("click", s, He), fr("focus", s, () => W(N, Z(he) + 2)), Cr(e, t);
|
|
3675
3717
|
};
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
}),
|
|
3718
|
+
Pr(n, (e) => {
|
|
3719
|
+
Z(k) && e(r);
|
|
3720
|
+
}), Cr(e, t);
|
|
3679
3721
|
};
|
|
3680
3722
|
var r = nn(t);
|
|
3681
3723
|
e(r);
|
|
3682
3724
|
var i = an(r, 2);
|
|
3683
3725
|
n(i);
|
|
3684
3726
|
var a = an(i, 2), o = nn(a, !0);
|
|
3685
|
-
|
|
3686
|
-
}
|
|
3687
|
-
Cn(() =>
|
|
3688
|
-
"pie-tool-tts-inline
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3727
|
+
ke(a), ke(t), ci(t, (e) => W(w, e), () => Z(w)), Cn(() => Er(o, Z(M)));
|
|
3728
|
+
}
|
|
3729
|
+
Cn(() => {
|
|
3730
|
+
n = Zr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
3731
|
+
"pie-tool-tts-inline--controls-row": Z(qe),
|
|
3732
|
+
"pie-tool-tts-inline--floating": Z(Je),
|
|
3733
|
+
"pie-tool-tts-inline--left-aligned": Z(z)
|
|
3734
|
+
}), $r(t, `--pie-tts-zoom-comp: ${Ye.current};`);
|
|
3735
|
+
}), Cr(e, t);
|
|
3692
3736
|
};
|
|
3693
|
-
return
|
|
3694
|
-
p && e(
|
|
3695
|
-
}),
|
|
3737
|
+
return Pr(it, (e) => {
|
|
3738
|
+
p && e(at);
|
|
3739
|
+
}), Cr(a, V), Be(rt);
|
|
3696
3740
|
}
|
|
3697
|
-
|
|
3741
|
+
mr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(Ga, {
|
|
3698
3742
|
catalogId: {
|
|
3699
3743
|
attribute: "catalog-id",
|
|
3700
3744
|
type: "String"
|
|
@@ -3721,4 +3765,4 @@ pr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(za, {
|
|
|
3721
3765
|
}
|
|
3722
3766
|
}, [], [], { mode: "open" }));
|
|
3723
3767
|
//#endregion
|
|
3724
|
-
export {
|
|
3768
|
+
export { Ga as default };
|