@pie-players/pie-tool-tts-inline 0.3.57 → 0.3.59
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 +1820 -979
- package/package.json +4 -3
package/dist/tool-tts-inline.js
CHANGED
|
@@ -3,11 +3,11 @@ import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, connectToolRegionScopeContext as t,
|
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/constants.js
|
|
6
|
-
var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible,
|
|
7
|
-
function
|
|
6
|
+
var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, ee = () => {};
|
|
7
|
+
function b(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function x() {
|
|
11
11
|
var e, t;
|
|
12
12
|
return {
|
|
13
13
|
promise: new Promise((n, r) => {
|
|
@@ -17,85 +17,85 @@ function S() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var
|
|
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 Pe(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
|
-
|
|
160
|
+
var He = [];
|
|
161
|
+
function Ue() {
|
|
162
|
+
var e = He;
|
|
163
|
+
He = [], b(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
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
|
|
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,36 +197,36 @@ function Ye(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
|
|
201
|
-
function
|
|
202
|
-
e.f = e.f &
|
|
200
|
+
var Je = ~(C | te | S);
|
|
201
|
+
function z(e, t) {
|
|
202
|
+
e.f = e.f & Je | t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.f & 512 || e.deps === null ?
|
|
204
|
+
function Ye(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
|
-
function
|
|
210
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
209
|
+
function Xe(e) {
|
|
210
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Xe(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
212
|
+
function Ze(e, t, n) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), z(e, S);
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
var t =
|
|
217
|
+
var Qe = !1, $e = !1;
|
|
218
|
+
function et(e) {
|
|
219
|
+
var t = $e;
|
|
220
220
|
try {
|
|
221
|
-
return
|
|
221
|
+
return $e = !1, [e(), $e];
|
|
222
222
|
} finally {
|
|
223
|
-
|
|
223
|
+
$e = t;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
228
|
-
var
|
|
229
|
-
id =
|
|
228
|
+
var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot = !1, st = null, ct = null, lt = 0, ut = 1, dt = class e {
|
|
229
|
+
id = ut++;
|
|
230
230
|
#e = !1;
|
|
231
231
|
linked = !0;
|
|
232
232
|
#t = null;
|
|
@@ -248,7 +248,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
248
248
|
is_fork = !1;
|
|
249
249
|
#m = !1;
|
|
250
250
|
constructor() {
|
|
251
|
-
|
|
251
|
+
nt === null ? tt = nt = this : (nt.#n = this, this.#t = nt), nt = this;
|
|
252
252
|
}
|
|
253
253
|
#h() {
|
|
254
254
|
if (this.is_fork) return !0;
|
|
@@ -274,31 +274,31 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
274
274
|
var n = this.#f.get(e);
|
|
275
275
|
if (n) {
|
|
276
276
|
this.#f.delete(e);
|
|
277
|
-
for (var r of n.d)
|
|
278
|
-
for (r of n.m)
|
|
277
|
+
for (var r of n.d) z(r, C), t(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
|
-
this.#e = !0,
|
|
284
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
285
|
-
for (let e of this.#d)
|
|
283
|
+
this.#e = !0, lt++ > 1e3 && (this.#S(), pt());
|
|
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, te), this.schedule(e);
|
|
286
286
|
let t = this.#c;
|
|
287
287
|
this.#c = [], this.apply();
|
|
288
|
-
var n =
|
|
288
|
+
var n = st = [], r = [], i = ct = [];
|
|
289
289
|
for (let e of t) try {
|
|
290
290
|
this.#_(e, n, r);
|
|
291
291
|
} catch (t) {
|
|
292
|
-
throw
|
|
292
|
+
throw bt(e), this.#h() || this.discard(), t;
|
|
293
293
|
}
|
|
294
|
-
if (
|
|
294
|
+
if (B = null, i.length > 0) {
|
|
295
295
|
var a = e.ensure();
|
|
296
296
|
for (let e of i) a.schedule(e);
|
|
297
297
|
}
|
|
298
|
-
if (
|
|
298
|
+
if (st = null, ct = null, this.#h()) {
|
|
299
299
|
this.#b(r), this.#b(n);
|
|
300
|
-
for (let [e, t] of this.#f)
|
|
301
|
-
i.length > 0 &&
|
|
300
|
+
for (let [e, t] of this.#f) yt(e, t);
|
|
301
|
+
i.length > 0 && B.#g();
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
304
304
|
let o = this.#v();
|
|
@@ -308,20 +308,20 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
308
308
|
}
|
|
309
309
|
this.#u.clear(), this.#d.clear();
|
|
310
310
|
for (let e of this.#r) e(this);
|
|
311
|
-
this.#r.clear(),
|
|
312
|
-
var s =
|
|
313
|
-
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(),
|
|
311
|
+
this.#r.clear(), rt = this, ht(r), ht(n), rt = null, this.#s?.resolve();
|
|
312
|
+
var s = B;
|
|
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;
|
|
317
317
|
s !== null && s.#g();
|
|
318
318
|
}
|
|
319
319
|
#_(e, t, n) {
|
|
320
|
-
e.f ^=
|
|
320
|
+
e.f ^= S;
|
|
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 ^=
|
|
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;
|
|
@@ -361,30 +361,30 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
361
361
|
if (r & 2) t(e);
|
|
362
362
|
else {
|
|
363
363
|
var i = e;
|
|
364
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
364
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, C), this.schedule(i));
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
for (let e of this.current.keys()) t(e);
|
|
369
|
-
this.oncommit(() => e.discard()), e.#S(),
|
|
369
|
+
this.oncommit(() => e.discard()), e.#S(), B = this, this.#g();
|
|
370
370
|
}
|
|
371
371
|
#b(e) {
|
|
372
|
-
for (var t = 0; t < e.length; t += 1)
|
|
372
|
+
for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
|
|
373
373
|
}
|
|
374
374
|
capture(e, t, n = !1) {
|
|
375
|
-
e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]),
|
|
375
|
+
e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
|
|
376
376
|
}
|
|
377
377
|
activate() {
|
|
378
|
-
|
|
378
|
+
B = this;
|
|
379
379
|
}
|
|
380
380
|
deactivate() {
|
|
381
|
-
|
|
381
|
+
B = null, V = null;
|
|
382
382
|
}
|
|
383
383
|
flush() {
|
|
384
384
|
try {
|
|
385
|
-
|
|
385
|
+
ot = !0, B = this, this.#g();
|
|
386
386
|
} finally {
|
|
387
|
-
|
|
387
|
+
lt = 0, it = null, st = null, ct = null, ot = !1, B = null, V = null, zt.clear();
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
discard() {
|
|
@@ -395,7 +395,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
395
395
|
this.#l.push(e);
|
|
396
396
|
}
|
|
397
397
|
#x() {
|
|
398
|
-
for (let l =
|
|
398
|
+
for (let l = tt; l !== null; l = l.#n) {
|
|
399
399
|
var e = l.id < this.id, t = [];
|
|
400
400
|
for (let [r, [i, a]] of this.current) {
|
|
401
401
|
if (l.current.has(r)) {
|
|
@@ -418,13 +418,13 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
418
418
|
});
|
|
419
419
|
l.activate();
|
|
420
420
|
var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
421
|
+
for (var o of t) gt(o, r, i, a);
|
|
422
422
|
a = /* @__PURE__ */ new Map();
|
|
423
423
|
var s = [...l.current].filter(([e, t]) => {
|
|
424
424
|
let n = this.current.get(e);
|
|
425
425
|
return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
|
|
426
426
|
}).map(([e]) => e);
|
|
427
|
-
if (s.length > 0) for (let e of this.#l) !(e.f & 155648) &&
|
|
427
|
+
if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && _t(e, s, a) && (e.f & 4194320 ? (z(e, C), l.schedule(e)) : l.#u.add(e));
|
|
428
428
|
if (l.#c.length > 0 && !l.#m) {
|
|
429
429
|
l.apply();
|
|
430
430
|
for (var c of l.#c) l.#_(c, [], []);
|
|
@@ -446,7 +446,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
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
|
}
|
|
@@ -462,25 +462,25 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
462
462
|
this.#i.add(e);
|
|
463
463
|
}
|
|
464
464
|
settled() {
|
|
465
|
-
return (this.#s ??=
|
|
465
|
+
return (this.#s ??= x()).promise;
|
|
466
466
|
}
|
|
467
467
|
static ensure() {
|
|
468
|
-
if (
|
|
469
|
-
let t =
|
|
470
|
-
!
|
|
468
|
+
if (B === null) {
|
|
469
|
+
let t = B = new e();
|
|
470
|
+
!ot && !at && We(() => {
|
|
471
471
|
t.#e || t.flush();
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return B;
|
|
475
475
|
}
|
|
476
476
|
apply() {
|
|
477
|
-
if (!
|
|
478
|
-
|
|
477
|
+
if (!Ie || !this.is_fork && this.#t === null && this.#n === null) {
|
|
478
|
+
V = null;
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
|
-
|
|
482
|
-
for (let [e, [t]] of this.current)
|
|
483
|
-
for (let t =
|
|
481
|
+
V = /* @__PURE__ */ new Map();
|
|
482
|
+
for (let [e, [t]] of this.current) V.set(e, t);
|
|
483
|
+
for (let t = tt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
|
|
484
484
|
var e = !1;
|
|
485
485
|
if (t.id < this.id) {
|
|
486
486
|
for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
|
|
@@ -488,21 +488,21 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
if (!e) for (let [e, n] of t.previous)
|
|
491
|
+
if (!e) for (let [e, n] of t.previous) V.has(e) || V.set(e, n);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
schedule(e) {
|
|
495
|
-
if (
|
|
495
|
+
if (it = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
496
496
|
e.b.defer_effect(e);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
499
|
for (var t = e; t.parent !== null;) {
|
|
500
500
|
t = t.parent;
|
|
501
501
|
var n = t.f;
|
|
502
|
-
if (
|
|
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
|
-
t.f ^=
|
|
505
|
+
t.f ^= S;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
this.#c.push(t);
|
|
@@ -510,105 +510,105 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
|
|
|
510
510
|
#S() {
|
|
511
511
|
if (this.linked) {
|
|
512
512
|
var e = this.#t, t = this.#n;
|
|
513
|
-
e === null ?
|
|
513
|
+
e === null ? tt = t : e.#n = t, t === null ? nt = e : t.#t = e, this.linked = !1;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
-
function
|
|
518
|
-
var t =
|
|
519
|
-
|
|
517
|
+
function ft(e) {
|
|
518
|
+
var t = at;
|
|
519
|
+
at = !0;
|
|
520
520
|
try {
|
|
521
521
|
var n;
|
|
522
|
-
for (e && (
|
|
523
|
-
if (
|
|
524
|
-
|
|
522
|
+
for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
|
|
523
|
+
if (Ge(), B === null) return n;
|
|
524
|
+
B.flush();
|
|
525
525
|
}
|
|
526
526
|
} finally {
|
|
527
|
-
|
|
527
|
+
at = t;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function pt() {
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
ve();
|
|
533
533
|
} catch (e) {
|
|
534
|
-
|
|
534
|
+
qe(e, it);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
537
|
+
var mt = null;
|
|
538
|
+
function ht(e) {
|
|
539
539
|
var t = e.length;
|
|
540
540
|
if (t !== 0) {
|
|
541
541
|
for (var n = 0; n < t;) {
|
|
542
542
|
var r = e[n++];
|
|
543
|
-
if (!(r.f & 24576) && Zn(r) && (
|
|
544
|
-
|
|
545
|
-
for (let e of
|
|
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
|
+
zt.clear();
|
|
545
|
+
for (let e of mt) {
|
|
546
546
|
if (e.f & 24576) continue;
|
|
547
547
|
let t = [e], n = e.parent;
|
|
548
|
-
for (; n !== null;)
|
|
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
551
|
n.f & 24576 || nr(n);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
mt.clear();
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
|
|
557
|
+
mt = null;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function gt(e, t, n, r) {
|
|
561
561
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
562
562
|
let e = i.f;
|
|
563
|
-
e & 2 ?
|
|
563
|
+
e & 2 ? gt(i, t, n, r) : e & 4194320 && !(e & 2048) && _t(i, t, r) && (z(i, C), vt(i));
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function _t(e, t, n) {
|
|
567
567
|
let r = n.get(e);
|
|
568
568
|
if (r !== void 0) return r;
|
|
569
569
|
if (e.deps !== null) for (let r of e.deps) {
|
|
570
570
|
if (u.call(t, r)) return !0;
|
|
571
|
-
if (r.f & 2 &&
|
|
571
|
+
if (r.f & 2 && _t(r, t, n)) return n.set(r, !0), !0;
|
|
572
572
|
}
|
|
573
573
|
return n.set(e, !1), !1;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
|
|
575
|
+
function vt(e) {
|
|
576
|
+
B.schedule(e);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function yt(e, t) {
|
|
579
579
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
580
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
581
|
-
for (var n = e.first; n !== null;)
|
|
580
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
|
|
581
|
+
for (var n = e.first; n !== null;) yt(n, t), n = n.next;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
586
|
-
for (var t = e.first; t !== null;)
|
|
584
|
+
function bt(e) {
|
|
585
|
+
z(e, S);
|
|
586
|
+
for (var t = e.first; t !== null;) bt(t), t = t.next;
|
|
587
587
|
}
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
590
|
-
function
|
|
591
|
-
let t = 0, n =
|
|
590
|
+
function xt(e) {
|
|
591
|
+
let t = 0, n = Vt(0), r;
|
|
592
592
|
return () => {
|
|
593
|
-
mn() && (Z(n), Sn(() => (t === 0 && (r = ar(() => e(() =>
|
|
594
|
-
|
|
595
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
593
|
+
mn() && (Z(n), Sn(() => (t === 0 && (r = ar(() => e(() => Gt(n)))), t += 1, () => {
|
|
594
|
+
We(() => {
|
|
595
|
+
--t, t === 0 && (r?.(), r = void 0, Gt(n));
|
|
596
596
|
});
|
|
597
597
|
})));
|
|
598
598
|
};
|
|
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
|
|
603
|
-
function
|
|
604
|
-
new
|
|
602
|
+
var St = E | ie;
|
|
603
|
+
function Ct(e, t, n, r) {
|
|
604
|
+
new wt(e, t, n, r);
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var wt = class {
|
|
607
607
|
parent;
|
|
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;
|
|
@@ -622,7 +622,7 @@ var Et = class {
|
|
|
622
622
|
#f = /* @__PURE__ */ new Set();
|
|
623
623
|
#p = /* @__PURE__ */ new Set();
|
|
624
624
|
#m = null;
|
|
625
|
-
#h =
|
|
625
|
+
#h = xt(() => (this.#m = Vt(this.#l), () => {
|
|
626
626
|
this.#m = null;
|
|
627
627
|
}));
|
|
628
628
|
constructor(e, t, n, r) {
|
|
@@ -630,49 +630,49 @@ var Et = 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
|
-
},
|
|
642
|
+
}, St), P && (this.#e = I);
|
|
643
643
|
}
|
|
644
644
|
#g() {
|
|
645
645
|
try {
|
|
646
|
-
this.#a =
|
|
646
|
+
this.#a = Tn(() => this.#r(this.#e));
|
|
647
647
|
} catch (e) {
|
|
648
648
|
this.error(e);
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
#_(e) {
|
|
652
652
|
let t = this.#n.failed;
|
|
653
|
-
t && (this.#s =
|
|
653
|
+
t && (this.#s = Tn(() => {
|
|
654
654
|
t(this.#e, () => e, () => () => {});
|
|
655
655
|
}));
|
|
656
656
|
}
|
|
657
657
|
#v() {
|
|
658
658
|
let e = this.#n.pending;
|
|
659
|
-
e && (this.is_pending = !0, this.#o =
|
|
660
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
661
|
-
e.append(t), this.#a = this.#x(() =>
|
|
659
|
+
e && (this.is_pending = !0, this.#o = Tn(() => e(this.#e)), We(() => {
|
|
660
|
+
var e = this.#c = document.createDocumentFragment(), t = $t();
|
|
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;
|
|
663
|
-
}), this.#b(
|
|
663
|
+
}), this.#b(B));
|
|
664
664
|
}));
|
|
665
665
|
}
|
|
666
666
|
#y() {
|
|
667
667
|
try {
|
|
668
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
668
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = Tn(() => {
|
|
669
669
|
this.#r(this.#e);
|
|
670
670
|
}), this.#u > 0) {
|
|
671
671
|
var e = this.#c = document.createDocumentFragment();
|
|
672
|
-
|
|
672
|
+
Fn(this.#a, e);
|
|
673
673
|
let t = this.#n.pending;
|
|
674
|
-
this.#o =
|
|
675
|
-
} else this.#b(
|
|
674
|
+
this.#o = Tn(() => t(this.#e));
|
|
675
|
+
} else this.#b(B);
|
|
676
676
|
} catch (e) {
|
|
677
677
|
this.error(e);
|
|
678
678
|
}
|
|
@@ -681,7 +681,7 @@ var Et = class {
|
|
|
681
681
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
682
682
|
}
|
|
683
683
|
defer_effect(e) {
|
|
684
|
-
|
|
684
|
+
Ze(e, this.#f, this.#p);
|
|
685
685
|
}
|
|
686
686
|
is_rendered() {
|
|
687
687
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -690,14 +690,14 @@ var Et = class {
|
|
|
690
690
|
return !!this.#n.pending;
|
|
691
691
|
}
|
|
692
692
|
#x(e) {
|
|
693
|
-
var t = J, n =
|
|
694
|
-
Vn(this.#i),
|
|
693
|
+
var t = J, n = K, r = R;
|
|
694
|
+
Vn(this.#i), q(this.#i), Re(this.#i.ctx);
|
|
695
695
|
try {
|
|
696
|
-
return
|
|
696
|
+
return dt.ensure(), e();
|
|
697
697
|
} catch (e) {
|
|
698
|
-
return
|
|
698
|
+
return Ke(e), null;
|
|
699
699
|
} finally {
|
|
700
|
-
Vn(t),
|
|
700
|
+
Vn(t), q(n), Re(r);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
#S(e, t) {
|
|
@@ -705,13 +705,13 @@ var Et = class {
|
|
|
705
705
|
this.parent && this.parent.#S(e, t);
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
this.#u += e, this.#u === 0 && (this.#b(t), this.#o &&
|
|
708
|
+
this.#u += e, this.#u === 0 && (this.#b(t), this.#o && jn(this.#o, () => {
|
|
709
709
|
this.#o = null;
|
|
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,
|
|
714
|
-
this.#d = !1, this.#m &&
|
|
713
|
+
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, We(() => {
|
|
714
|
+
this.#d = !1, this.#m && Ut(this.#m, this.#l);
|
|
715
715
|
}));
|
|
716
716
|
}
|
|
717
717
|
get_effect_pending() {
|
|
@@ -719,21 +719,21 @@ var Et = class {
|
|
|
719
719
|
}
|
|
720
720
|
error(e) {
|
|
721
721
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
722
|
-
|
|
722
|
+
B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
|
|
723
723
|
this.#C(e);
|
|
724
724
|
})) : this.#C(e);
|
|
725
725
|
}
|
|
726
726
|
#C(e) {
|
|
727
|
-
this.#a &&= (
|
|
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,87 +742,87 @@ var Et = 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 {
|
|
749
|
-
return
|
|
749
|
+
return Tn(() => {
|
|
750
750
|
var t = J;
|
|
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
|
-
function
|
|
773
|
-
let i =
|
|
772
|
+
function Tt(e, t, n, r) {
|
|
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));
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
var o = J, s =
|
|
779
|
+
var o = J, s = Et(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
780
780
|
function l(e) {
|
|
781
781
|
if (!(o.f & 16384)) {
|
|
782
782
|
s();
|
|
783
783
|
try {
|
|
784
784
|
r(e);
|
|
785
785
|
} catch (e) {
|
|
786
|
-
|
|
786
|
+
qe(e, o);
|
|
787
787
|
}
|
|
788
|
-
|
|
788
|
+
Dt();
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
var u =
|
|
791
|
+
var u = Ot();
|
|
792
792
|
if (n.length === 0) {
|
|
793
793
|
c.then(() => l(t.map(i))).finally(u);
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
function d() {
|
|
797
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
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
|
-
s(), d(),
|
|
800
|
+
s(), d(), Dt();
|
|
801
801
|
}) : d();
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
var e = J, t =
|
|
803
|
+
function Et() {
|
|
804
|
+
var e = J, t = K, n = R, r = B;
|
|
805
805
|
return function(i = !0) {
|
|
806
|
-
Vn(e),
|
|
806
|
+
Vn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
Vn(null),
|
|
809
|
+
function Dt(e = !0) {
|
|
810
|
+
Vn(null), q(null), Re(null), e && B?.deactivate();
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
var e = J, t = e.b, n =
|
|
812
|
+
function Ot() {
|
|
813
|
+
var e = J, t = e.b, n = B, r = !!t?.is_rendered();
|
|
814
814
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
815
815
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
|
|
819
|
-
function
|
|
820
|
-
var t = 2 |
|
|
821
|
-
return J !== null && (J.f |=
|
|
822
|
-
ctx:
|
|
818
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
819
|
+
function kt(e) {
|
|
820
|
+
var t = 2 | C;
|
|
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,
|
|
@@ -833,35 +833,35 @@ function jt(e) {
|
|
|
833
833
|
ac: null
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
var
|
|
837
|
-
|
|
838
|
-
function
|
|
836
|
+
var At = Symbol("obsolete");
|
|
837
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
838
|
+
function jt(e, t, n) {
|
|
839
839
|
let r = J;
|
|
840
|
-
r === null &&
|
|
841
|
-
var i = void 0, a =
|
|
840
|
+
r === null && pe();
|
|
841
|
+
var i = void 0, a = Vt(o), s = !K, c = /* @__PURE__ */ new Set();
|
|
842
842
|
return xn(() => {
|
|
843
|
-
var t = J, n =
|
|
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 !==
|
|
848
|
-
}).finally(
|
|
847
|
+
e !== de && n.reject(e);
|
|
848
|
+
}).finally(Dt);
|
|
849
849
|
} catch (e) {
|
|
850
|
-
n.reject(e),
|
|
850
|
+
n.reject(e), Dt();
|
|
851
851
|
}
|
|
852
|
-
var o =
|
|
852
|
+
var o = B;
|
|
853
853
|
if (s) {
|
|
854
|
-
if (t.f & 32768) var l =
|
|
855
|
-
if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(
|
|
856
|
-
else for (let e of c.values()) e.reject(
|
|
854
|
+
if (t.f & 32768) var l = Ot();
|
|
855
|
+
if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(At);
|
|
856
|
+
else for (let e of c.values()) e.reject(At);
|
|
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 !==
|
|
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(() => {
|
|
864
|
-
for (let e of c) e.reject(
|
|
864
|
+
for (let e of c) e.reject(At);
|
|
865
865
|
}), new Promise((e) => {
|
|
866
866
|
function t(n) {
|
|
867
867
|
function r() {
|
|
@@ -872,90 +872,90 @@ function Nt(e, t, n) {
|
|
|
872
872
|
t(i);
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
|
-
|
|
876
|
-
function
|
|
877
|
-
let t = /* @__PURE__ */
|
|
878
|
-
return
|
|
875
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
876
|
+
function H(e) {
|
|
877
|
+
let t = /* @__PURE__ */ kt(e);
|
|
878
|
+
return Ie || Un(t), t;
|
|
879
879
|
}
|
|
880
|
-
|
|
881
|
-
function
|
|
882
|
-
let t = /* @__PURE__ */
|
|
883
|
-
return t.equals =
|
|
880
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
881
|
+
function Mt(e) {
|
|
882
|
+
let t = /* @__PURE__ */ kt(e);
|
|
883
|
+
return t.equals = Fe, t;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Nt(e) {
|
|
886
886
|
var t = e.effects;
|
|
887
887
|
if (t !== null) {
|
|
888
888
|
e.effects = null;
|
|
889
|
-
for (var n = 0; n < t.length; n += 1)
|
|
889
|
+
for (var n = 0; n < t.length; n += 1) G(t[n]);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Pt(e) {
|
|
893
893
|
var t, n = J, r = e.parent;
|
|
894
|
-
if (!
|
|
894
|
+
if (!Rn && r !== null && e.v !== o && r.f & 24576) return Te(), e.v;
|
|
895
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
|
-
function
|
|
904
|
-
var t =
|
|
905
|
-
if (!e.equals(t) && (e.wv = Xn(), (!
|
|
906
|
-
|
|
903
|
+
function Ft(e) {
|
|
904
|
+
var t = Pt(e);
|
|
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
|
+
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
|
-
function
|
|
912
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
911
|
+
function It(e) {
|
|
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
|
-
function
|
|
914
|
+
function Lt(e) {
|
|
915
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
|
|
919
|
-
var
|
|
920
|
-
function
|
|
919
|
+
var Rt = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Map(), Bt = !1;
|
|
920
|
+
function Vt(e, t) {
|
|
921
921
|
return {
|
|
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
|
};
|
|
929
929
|
}
|
|
930
|
-
|
|
931
|
-
function
|
|
932
|
-
let n =
|
|
930
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
931
|
+
function U(e, t) {
|
|
932
|
+
let n = Vt(e, t);
|
|
933
933
|
return Un(n), n;
|
|
934
934
|
}
|
|
935
|
-
|
|
936
|
-
function
|
|
937
|
-
let r =
|
|
938
|
-
return t || (r.equals =
|
|
935
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
936
|
+
function Ht(e, t = !1, n = !0) {
|
|
937
|
+
let r = Vt(e);
|
|
938
|
+
return t || (r.equals = Fe), Le && n && R !== null && R.l !== null && (R.l.s ??= []).push(r), r;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
940
|
+
function W(e, t, n = !1) {
|
|
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
|
-
function
|
|
943
|
+
function Ut(e, t, n = null) {
|
|
944
944
|
if (!e.equals(t)) {
|
|
945
|
-
|
|
946
|
-
var r =
|
|
945
|
+
zt.set(e, Rn ? t : e.v);
|
|
946
|
+
var r = dt.ensure();
|
|
947
947
|
if (r.capture(e, t), e.f & 2) {
|
|
948
948
|
let t = e;
|
|
949
|
-
e.f & 2048 &&
|
|
949
|
+
e.f & 2048 && Pt(t), V === null && Ye(t);
|
|
950
950
|
}
|
|
951
|
-
e.wv = Xn(),
|
|
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
|
-
function
|
|
956
|
-
|
|
957
|
-
for (let e of
|
|
958
|
-
e.f & 1024 &&
|
|
955
|
+
function Wt() {
|
|
956
|
+
Bt = !1;
|
|
957
|
+
for (let e of Rt) {
|
|
958
|
+
e.f & 1024 && z(e, te);
|
|
959
959
|
let t;
|
|
960
960
|
try {
|
|
961
961
|
t = Zn(e);
|
|
@@ -964,62 +964,62 @@ function Kt() {
|
|
|
964
964
|
}
|
|
965
965
|
t && nr(e);
|
|
966
966
|
}
|
|
967
|
-
|
|
967
|
+
Rt.clear();
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
969
|
+
function Gt(e) {
|
|
970
|
+
W(e, e.v + 1);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
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
|
-
var l = (c &
|
|
978
|
-
if (l &&
|
|
977
|
+
var l = (c & C) === 0;
|
|
978
|
+
if (l && z(s, t), c & 131072) Rt.add(s);
|
|
979
979
|
else if (c & 2) {
|
|
980
980
|
var u = s;
|
|
981
|
-
|
|
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
|
-
c & 16 &&
|
|
984
|
+
c & 16 && mt !== null && mt.add(d), n === null ? vt(d) : n.push(d);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
if (typeof e != "object" || !e ||
|
|
989
|
+
function qt(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__ */
|
|
993
|
+
var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = Jn, l = (e) => {
|
|
994
994
|
if (Jn === s) return e();
|
|
995
|
-
var t =
|
|
996
|
-
|
|
995
|
+
var t = K, n = Jn;
|
|
996
|
+
q(null), Yn(s);
|
|
997
997
|
var r = e();
|
|
998
|
-
return
|
|
998
|
+
return q(t), Yn(n), r;
|
|
999
999
|
};
|
|
1000
|
-
return r && n.set("length", /* @__PURE__ */
|
|
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
|
-
var e = /* @__PURE__ */
|
|
1005
|
+
var e = /* @__PURE__ */ U(r.value, a);
|
|
1006
1006
|
return n.set(t, e), e;
|
|
1007
|
-
}) :
|
|
1007
|
+
}) : W(i, r.value, !0), !0;
|
|
1008
1008
|
},
|
|
1009
1009
|
deleteProperty(e, t) {
|
|
1010
1010
|
var r = n.get(t);
|
|
1011
1011
|
if (r === void 0) {
|
|
1012
1012
|
if (t in e) {
|
|
1013
|
-
let e = l(() => /* @__PURE__ */
|
|
1014
|
-
n.set(t, e),
|
|
1013
|
+
let e = l(() => /* @__PURE__ */ U(o, a));
|
|
1014
|
+
n.set(t, e), Gt(i);
|
|
1015
1015
|
}
|
|
1016
|
-
} else
|
|
1016
|
+
} else W(r, o), Gt(i);
|
|
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
|
-
if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */
|
|
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
1023
|
var u = Z(s);
|
|
1024
1024
|
return u === o ? void 0 : u;
|
|
1025
1025
|
}
|
|
@@ -1042,29 +1042,29 @@ function Yt(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__ */
|
|
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;
|
|
1051
1051
|
if (r && t === "length") for (var f = s; f < u.v; f += 1) {
|
|
1052
1052
|
var p = n.get(f + "");
|
|
1053
|
-
p === void 0 ? f in e && (p = l(() => /* @__PURE__ */
|
|
1053
|
+
p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ U(o, a)), n.set(f + "", p)) : W(p, o);
|
|
1054
1054
|
}
|
|
1055
|
-
if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */
|
|
1055
|
+
if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ U(void 0, a)), W(u, qt(s)), n.set(t, u));
|
|
1056
1056
|
else {
|
|
1057
1057
|
d = u.v !== o;
|
|
1058
|
-
var h = l(() =>
|
|
1059
|
-
|
|
1058
|
+
var h = l(() => qt(s));
|
|
1059
|
+
W(u, h);
|
|
1060
1060
|
}
|
|
1061
1061
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1062
1062
|
if (g?.set && g.set.call(c, s), !d) {
|
|
1063
1063
|
if (r && typeof t == "string") {
|
|
1064
1064
|
var _ = n.get("length"), v = Number(t);
|
|
1065
|
-
Number.isInteger(v) && v >= _.v &&
|
|
1065
|
+
Number.isInteger(v) && v >= _.v && W(_, v + 1);
|
|
1066
1066
|
}
|
|
1067
|
-
|
|
1067
|
+
Gt(i);
|
|
1068
1068
|
}
|
|
1069
1069
|
return !0;
|
|
1070
1070
|
},
|
|
@@ -1078,7 +1078,7 @@ function Yt(e) {
|
|
|
1078
1078
|
return t;
|
|
1079
1079
|
},
|
|
1080
1080
|
setPrototypeOf() {
|
|
1081
|
-
|
|
1081
|
+
Se();
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
@@ -1093,67 +1093,67 @@ new Set([
|
|
|
1093
1093
|
"splice",
|
|
1094
1094
|
"unshift"
|
|
1095
1095
|
]);
|
|
1096
|
-
var
|
|
1097
|
-
function
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1096
|
+
var Jt, Yt, Xt, Zt;
|
|
1097
|
+
function Qt() {
|
|
1098
|
+
if (Jt === void 0) {
|
|
1099
|
+
Jt = window, Yt = /Firefox/.test(navigator.userAgent);
|
|
1100
1100
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1101
|
-
|
|
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
|
-
function
|
|
1104
|
+
function $t(e = "") {
|
|
1105
1105
|
return document.createTextNode(e);
|
|
1106
1106
|
}
|
|
1107
|
-
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1107
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
1108
|
+
function en(e) {
|
|
1109
|
+
return Xt.call(e);
|
|
1110
1110
|
}
|
|
1111
|
-
|
|
1111
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
1112
1112
|
function tn(e) {
|
|
1113
|
-
return
|
|
1113
|
+
return Zt.call(e);
|
|
1114
1114
|
}
|
|
1115
1115
|
function nn(e, t) {
|
|
1116
|
-
if (!
|
|
1117
|
-
var n = /* @__PURE__ */
|
|
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
|
-
var r =
|
|
1121
|
-
return n?.before(r),
|
|
1120
|
+
var r = $t();
|
|
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 (!
|
|
1127
|
-
var n = /* @__PURE__ */
|
|
1126
|
+
if (!P) {
|
|
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 (
|
|
1132
|
-
var r =
|
|
1133
|
-
return
|
|
1131
|
+
if (I?.nodeType !== 3) {
|
|
1132
|
+
var r = $t();
|
|
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
|
-
var a =
|
|
1146
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1145
|
+
var a = $t();
|
|
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);
|
|
@@ -1166,18 +1166,18 @@ function ln(e) {
|
|
|
1166
1166
|
//#endregion
|
|
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
|
-
var t =
|
|
1170
|
-
|
|
1169
|
+
var t = K, n = J;
|
|
1170
|
+
q(null), Vn(null);
|
|
1171
1171
|
try {
|
|
1172
1172
|
return e();
|
|
1173
1173
|
} finally {
|
|
1174
|
-
|
|
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 && (
|
|
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,12 +1185,12 @@ 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
|
-
f: e |
|
|
1193
|
+
f: e | C | 512,
|
|
1194
1194
|
first: null,
|
|
1195
1195
|
fn: t,
|
|
1196
1196
|
last: null,
|
|
@@ -1202,166 +1202,166 @@ function pn(e, t) {
|
|
|
1202
1202
|
wv: 0,
|
|
1203
1203
|
ac: null
|
|
1204
1204
|
};
|
|
1205
|
-
|
|
1205
|
+
B?.register_created_effect(r);
|
|
1206
1206
|
var i = r;
|
|
1207
|
-
if (e & 4)
|
|
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
|
-
throw
|
|
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
|
-
if (i !== null && (i.parent = n, n !== null && fn(i, n),
|
|
1217
|
-
var a =
|
|
1216
|
+
if (i !== null && (i.parent = n, n !== null && fn(i, n), K !== null && K.f & 2 && !(e & 64))) {
|
|
1217
|
+
var a = K;
|
|
1218
1218
|
(a.effects ??= []).push(i);
|
|
1219
1219
|
}
|
|
1220
1220
|
return r;
|
|
1221
1221
|
}
|
|
1222
1222
|
function mn() {
|
|
1223
|
-
return
|
|
1223
|
+
return K !== null && !Bn;
|
|
1224
1224
|
}
|
|
1225
1225
|
function hn(e) {
|
|
1226
1226
|
let t = pn(8, null);
|
|
1227
|
-
return
|
|
1227
|
+
return z(t, S), t.teardown = e, t;
|
|
1228
1228
|
}
|
|
1229
1229
|
function gn(e) {
|
|
1230
1230
|
dn("$effect");
|
|
1231
1231
|
var t = J.f;
|
|
1232
|
-
if (!
|
|
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
|
-
|
|
1242
|
-
let t = pn(64 |
|
|
1241
|
+
dt.ensure();
|
|
1242
|
+
let t = pn(64 | ie, e);
|
|
1243
1243
|
return () => {
|
|
1244
|
-
|
|
1244
|
+
G(t);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
function yn(e) {
|
|
1248
|
-
|
|
1249
|
-
let t = pn(64 |
|
|
1248
|
+
dt.ensure();
|
|
1249
|
+
let t = pn(64 | ie, e);
|
|
1250
1250
|
return (e = {}) => new Promise((n) => {
|
|
1251
|
-
e.outro ?
|
|
1252
|
-
|
|
1253
|
-
}) : (
|
|
1251
|
+
e.outro ? jn(t, () => {
|
|
1252
|
+
G(t), n(void 0);
|
|
1253
|
+
}) : (G(t), n(void 0));
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
function bn(e) {
|
|
1257
1257
|
return pn(4, e);
|
|
1258
1258
|
}
|
|
1259
1259
|
function xn(e) {
|
|
1260
|
-
return pn(oe |
|
|
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
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
|
-
function G(e) {
|
|
1274
|
-
return pn(32 | k, e);
|
|
1275
|
-
}
|
|
1276
1273
|
function Tn(e) {
|
|
1274
|
+
return pn(32 | ie, e);
|
|
1275
|
+
}
|
|
1276
|
+
function En(e) {
|
|
1277
1277
|
var t = e.teardown;
|
|
1278
1278
|
if (t !== null) {
|
|
1279
|
-
let e =
|
|
1280
|
-
|
|
1279
|
+
let e = Rn, n = K;
|
|
1280
|
+
zn(!0), q(null);
|
|
1281
1281
|
try {
|
|
1282
1282
|
t.call(null);
|
|
1283
1283
|
} finally {
|
|
1284
|
-
|
|
1284
|
+
zn(e), q(n);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Dn(e, t = !1) {
|
|
1289
1289
|
var n = e.first;
|
|
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
|
-
n.f & 64 ? n.parent = null :
|
|
1296
|
+
n.f & 64 ? n.parent = null : G(n, t), n = r;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function On(e) {
|
|
1300
1300
|
for (var t = e.first; t !== null;) {
|
|
1301
1301
|
var n = t.next;
|
|
1302
|
-
t.f & 32 ||
|
|
1302
|
+
t.f & 32 || G(t), t = n;
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function G(e, t = !0) {
|
|
1306
1306
|
var n = !1;
|
|
1307
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
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
|
-
|
|
1310
|
+
En(e), e.f ^= re, e.f |= T;
|
|
1311
1311
|
var i = e.parent;
|
|
1312
|
-
i !== null && i.first !== null &&
|
|
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
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function kn(e, t) {
|
|
1315
1315
|
for (; e !== null;) {
|
|
1316
1316
|
var n = e === t ? null : /* @__PURE__ */ tn(e);
|
|
1317
1317
|
e.remove(), e = n;
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function An(e) {
|
|
1321
1321
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1322
1322
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function jn(e, t, n = !0) {
|
|
1325
1325
|
var r = [];
|
|
1326
|
-
|
|
1326
|
+
Mn(e, r, !0);
|
|
1327
1327
|
var i = () => {
|
|
1328
|
-
n &&
|
|
1328
|
+
n && G(e), t && t();
|
|
1329
1329
|
}, a = r.length;
|
|
1330
1330
|
if (a > 0) {
|
|
1331
1331
|
var o = () => --a || i();
|
|
1332
1332
|
for (var s of r) s.out(o);
|
|
1333
1333
|
} else i();
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
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;) {
|
|
1341
1341
|
var a = i.next;
|
|
1342
1342
|
if (!(i.f & 64)) {
|
|
1343
1343
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1344
|
-
|
|
1344
|
+
Mn(i, t, o ? n : !1);
|
|
1345
1345
|
}
|
|
1346
1346
|
i = a;
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1350
|
+
function Nn(e) {
|
|
1351
|
+
Pn(e, !0);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
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;
|
|
1359
1359
|
}
|
|
1360
1360
|
var a = e.nodes && e.nodes.t;
|
|
1361
1361
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Fn(e, t) {
|
|
1365
1365
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1366
1366
|
var i = n === r ? null : /* @__PURE__ */ tn(n);
|
|
1367
1367
|
t.append(n), n = i;
|
|
@@ -1369,13 +1369,13 @@ function Pn(e, t) {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/legacy.js
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
|
|
1372
|
+
var In = null, Ln = !1, Rn = !1;
|
|
1373
|
+
function zn(e) {
|
|
1374
|
+
Rn = e;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1376
|
+
var K = null, Bn = !1;
|
|
1377
|
+
function q(e) {
|
|
1378
|
+
K = e;
|
|
1379
1379
|
}
|
|
1380
1380
|
var J = null;
|
|
1381
1381
|
function Vn(e) {
|
|
@@ -1383,7 +1383,7 @@ function Vn(e) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
var Hn = null;
|
|
1385
1385
|
function Un(e) {
|
|
1386
|
-
|
|
1386
|
+
K !== null && (!Ie || K.f & 2) && (Hn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1387
1387
|
}
|
|
1388
1388
|
var Y = null, X = 0, Wn = null;
|
|
1389
1389
|
function Gn(e) {
|
|
@@ -1399,49 +1399,49 @@ function Xn() {
|
|
|
1399
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 (Zn(a) &&
|
|
1405
|
+
if (Zn(a) && Ft(a), a.wv > e.wv) return !0;
|
|
1406
1406
|
}
|
|
1407
|
-
t & 512 &&
|
|
1407
|
+
t & 512 && V === null && z(e, S);
|
|
1408
1408
|
}
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
}
|
|
1411
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 ? Qn(a, t, !1) : t === a && (n ?
|
|
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
1418
|
function $n(e) {
|
|
1419
|
-
var t = Y, n = X, r = Wn, i =
|
|
1420
|
-
Y = null, X = 0, Wn = null,
|
|
1421
|
-
e.ac.abort(
|
|
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 |=
|
|
1427
|
-
var f = e.deps, p =
|
|
1426
|
+
e.f |= ne;
|
|
1427
|
+
var f = e.deps, p = B?.is_fork;
|
|
1428
1428
|
if (Y !== null) {
|
|
1429
1429
|
var m;
|
|
1430
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
1431
|
else e.deps = f = Y;
|
|
1432
1432
|
if (mn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1433
1433
|
} else !p && f !== null && X < f.length && (tr(e, X), f.length = X);
|
|
1434
|
-
if (
|
|
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
1436
|
if (qn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = qn;
|
|
1437
1437
|
if (t !== null) for (let e of t) e.rv = qn;
|
|
1438
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
1447
|
function er(e, t) {
|
|
@@ -1455,7 +1455,7 @@ function er(e, t) {
|
|
|
1455
1455
|
}
|
|
1456
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
1461
|
function tr(e, t) {
|
|
@@ -1465,96 +1465,123 @@ function tr(e, t) {
|
|
|
1465
1465
|
function nr(e) {
|
|
1466
1466
|
var t = e.f;
|
|
1467
1467
|
if (!(t & 16384)) {
|
|
1468
|
-
|
|
1469
|
-
var n = J, r =
|
|
1470
|
-
J = e,
|
|
1468
|
+
z(e, S);
|
|
1469
|
+
var n = J, r = Ln;
|
|
1470
|
+
J = e, Ln = !0;
|
|
1471
1471
|
try {
|
|
1472
|
-
t & 16777232 ?
|
|
1472
|
+
t & 16777232 ? On(e) : Dn(e), En(e);
|
|
1473
1473
|
var i = $n(e);
|
|
1474
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
1480
|
function Z(e) {
|
|
1481
1481
|
var t = (e.f & 2) != 0;
|
|
1482
|
-
if (
|
|
1483
|
-
var n =
|
|
1484
|
-
if (
|
|
1482
|
+
if (In?.add(e), K !== null && !Bn && !(J !== null && J.f & 16384) && (Hn === null || !Hn.has(e))) {
|
|
1483
|
+
var n = K.deps;
|
|
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;
|
|
1488
|
-
r === null ? e.reactions = [
|
|
1488
|
+
r === null ? e.reactions = [K] : u.call(r, K) || r.push(K);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
if (
|
|
1491
|
+
if (Rn && zt.has(e)) return zt.get(e);
|
|
1492
1492
|
if (t) {
|
|
1493
1493
|
var i = e;
|
|
1494
|
-
if (
|
|
1494
|
+
if (Rn) {
|
|
1495
1495
|
var a = i.v;
|
|
1496
|
-
return (!(i.f & 1024) && i.reactions !== null || ir(i)) && (a =
|
|
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 && !
|
|
1499
|
-
Zn(i) && (o && (i.f |= 512),
|
|
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
|
-
if (
|
|
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
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) && (
|
|
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
1507
|
}
|
|
1508
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 (
|
|
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
1514
|
function ar(e) {
|
|
1515
|
-
var t =
|
|
1515
|
+
var t = Bn;
|
|
1516
1516
|
try {
|
|
1517
|
-
return
|
|
1517
|
+
return Bn = !0, e();
|
|
1518
1518
|
} finally {
|
|
1519
|
-
|
|
1519
|
+
Bn = t;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
function or(e) {
|
|
1523
|
+
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1524
|
+
if (j in e) sr(e);
|
|
1525
|
+
else if (!Array.isArray(e)) for (let t in e) {
|
|
1526
|
+
let n = e[t];
|
|
1527
|
+
typeof n == "object" && n && j in n && sr(n);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
function sr(e, t = /* @__PURE__ */ new Set()) {
|
|
1532
|
+
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1533
|
+
t.add(e), e instanceof Date && e.getTime();
|
|
1534
|
+
for (let n in e) try {
|
|
1535
|
+
sr(e[n], t);
|
|
1536
|
+
} catch {}
|
|
1537
|
+
let n = v(e);
|
|
1538
|
+
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1539
|
+
let t = h(n);
|
|
1540
|
+
for (let n in t) {
|
|
1541
|
+
let r = t[n].get;
|
|
1542
|
+
if (r) try {
|
|
1543
|
+
r.call(e);
|
|
1544
|
+
} catch {}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1520
1547
|
}
|
|
1521
1548
|
}
|
|
1522
1549
|
//#endregion
|
|
1523
1550
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1551
|
+
var cr = Symbol("events"), lr = /* @__PURE__ */ new Set(), ur = /* @__PURE__ */ new Set();
|
|
1552
|
+
function dr(e, t, n, r = {}) {
|
|
1526
1553
|
function i(e) {
|
|
1527
|
-
if (r.capture ||
|
|
1554
|
+
if (r.capture || gr.call(t, e), !e.cancelBubble) return un(() => n?.call(this, e));
|
|
1528
1555
|
}
|
|
1529
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1556
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? We(() => {
|
|
1530
1557
|
t.addEventListener(e, i, r);
|
|
1531
1558
|
}) : t.addEventListener(e, i, r), i;
|
|
1532
1559
|
}
|
|
1533
|
-
function
|
|
1560
|
+
function fr(e, t, n, r, i) {
|
|
1534
1561
|
var a = {
|
|
1535
1562
|
capture: r,
|
|
1536
1563
|
passive: i
|
|
1537
|
-
}, o =
|
|
1564
|
+
}, o = dr(e, t, n, a);
|
|
1538
1565
|
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && hn(() => {
|
|
1539
1566
|
t.removeEventListener(e, o, a);
|
|
1540
1567
|
});
|
|
1541
1568
|
}
|
|
1542
|
-
function
|
|
1543
|
-
(t[
|
|
1569
|
+
function pr(e, t, n) {
|
|
1570
|
+
(t[cr] ??= {})[e] = n;
|
|
1544
1571
|
}
|
|
1545
|
-
function fr(e) {
|
|
1546
|
-
for (var t = 0; t < e.length; t++) sr.add(e[t]);
|
|
1547
|
-
for (var n of cr) n(e);
|
|
1548
|
-
}
|
|
1549
|
-
var pr = null;
|
|
1550
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
|
+
}
|
|
1576
|
+
var hr = null;
|
|
1577
|
+
function gr(e) {
|
|
1551
1578
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1552
|
-
|
|
1553
|
-
var o = 0, s =
|
|
1579
|
+
hr = e;
|
|
1580
|
+
var o = 0, s = hr === e && e[cr];
|
|
1554
1581
|
if (s) {
|
|
1555
1582
|
var c = i.indexOf(s);
|
|
1556
1583
|
if (c !== -1 && (t === document || t === window)) {
|
|
1557
|
-
e[
|
|
1584
|
+
e[cr] = t;
|
|
1558
1585
|
return;
|
|
1559
1586
|
}
|
|
1560
1587
|
var l = i.indexOf(t);
|
|
@@ -1568,12 +1595,12 @@ function mr(e) {
|
|
|
1568
1595
|
return a || n;
|
|
1569
1596
|
}
|
|
1570
1597
|
});
|
|
1571
|
-
var u =
|
|
1572
|
-
|
|
1598
|
+
var u = K, d = J;
|
|
1599
|
+
q(null), Vn(null);
|
|
1573
1600
|
try {
|
|
1574
1601
|
for (var f, m = []; a !== null && a !== t;) {
|
|
1575
1602
|
try {
|
|
1576
|
-
var h = a[
|
|
1603
|
+
var h = a[cr]?.[r];
|
|
1577
1604
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1578
1605
|
} catch (e) {
|
|
1579
1606
|
f ? m.push(e) : f = e;
|
|
@@ -1588,23 +1615,23 @@ function mr(e) {
|
|
|
1588
1615
|
throw f;
|
|
1589
1616
|
}
|
|
1590
1617
|
} finally {
|
|
1591
|
-
e[
|
|
1618
|
+
e[cr] = t, delete e.currentTarget, q(u), Vn(d);
|
|
1592
1619
|
}
|
|
1593
1620
|
}
|
|
1594
1621
|
}
|
|
1595
1622
|
//#endregion
|
|
1596
1623
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1597
|
-
var
|
|
1598
|
-
function
|
|
1599
|
-
return
|
|
1624
|
+
var _r = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1625
|
+
function vr(e) {
|
|
1626
|
+
return _r?.createHTML(e) ?? e;
|
|
1600
1627
|
}
|
|
1601
|
-
function
|
|
1628
|
+
function yr(e) {
|
|
1602
1629
|
var t = cn("template");
|
|
1603
|
-
return t.innerHTML =
|
|
1630
|
+
return t.innerHTML = vr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1604
1631
|
}
|
|
1605
1632
|
//#endregion
|
|
1606
1633
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1607
|
-
function
|
|
1634
|
+
function br(e, t) {
|
|
1608
1635
|
var n = J;
|
|
1609
1636
|
n.nodes === null && (n.nodes = {
|
|
1610
1637
|
start: e,
|
|
@@ -1613,130 +1640,108 @@ function vr(e, t) {
|
|
|
1613
1640
|
t: null
|
|
1614
1641
|
});
|
|
1615
1642
|
}
|
|
1616
|
-
|
|
1617
|
-
function
|
|
1643
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
1644
|
+
function xr(e, t) {
|
|
1618
1645
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1619
1646
|
return () => {
|
|
1620
|
-
if (
|
|
1621
|
-
i === void 0 && (i =
|
|
1622
|
-
var t = r ||
|
|
1647
|
+
if (P) return br(I, null), I;
|
|
1648
|
+
i === void 0 && (i = yr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
|
|
1649
|
+
var t = r || Yt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1623
1650
|
if (n) {
|
|
1624
|
-
var o = /* @__PURE__ */
|
|
1625
|
-
|
|
1626
|
-
} else
|
|
1627
|
-
return t;
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
1631
|
-
function br(e, t, n = "svg") {
|
|
1632
|
-
var r = !e.startsWith("<!>"), i = (t & 1) != 0, a = `<${n}>${r ? e : "<!>" + e}</${n}>`, o;
|
|
1633
|
-
return () => {
|
|
1634
|
-
if (M) return vr(N, null), N;
|
|
1635
|
-
if (!o) {
|
|
1636
|
-
var e = /* @__PURE__ */ W(_r(a));
|
|
1637
|
-
if (i) for (o = document.createDocumentFragment(); /* @__PURE__ */ W(e);) o.appendChild(/* @__PURE__ */ W(e));
|
|
1638
|
-
else o = /* @__PURE__ */ W(e);
|
|
1639
|
-
}
|
|
1640
|
-
var t = o.cloneNode(!0);
|
|
1641
|
-
if (i) {
|
|
1642
|
-
var n = /* @__PURE__ */ W(t), r = t.lastChild;
|
|
1643
|
-
vr(n, r);
|
|
1644
|
-
} else vr(t, t);
|
|
1651
|
+
var o = /* @__PURE__ */ en(t), s = t.lastChild;
|
|
1652
|
+
br(o, s);
|
|
1653
|
+
} else br(t, t);
|
|
1645
1654
|
return t;
|
|
1646
1655
|
};
|
|
1647
1656
|
}
|
|
1648
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
1649
|
-
function xr(e, t) {
|
|
1650
|
-
return /* @__PURE__ */ br(e, t, "svg");
|
|
1651
|
-
}
|
|
1652
1657
|
function Sr() {
|
|
1653
|
-
if (
|
|
1654
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1655
|
-
return e.append(t, n),
|
|
1658
|
+
if (P) return br(I, null), I;
|
|
1659
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = $t();
|
|
1660
|
+
return e.append(t, n), br(t, n), e;
|
|
1656
1661
|
}
|
|
1657
|
-
function
|
|
1658
|
-
if (
|
|
1662
|
+
function Cr(e, t) {
|
|
1663
|
+
if (P) {
|
|
1659
1664
|
var n = J;
|
|
1660
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1665
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), Oe();
|
|
1661
1666
|
return;
|
|
1662
1667
|
}
|
|
1663
1668
|
e !== null && e.before(t);
|
|
1664
1669
|
}
|
|
1665
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(".")];
|
|
1666
|
-
var
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1669
|
-
}
|
|
1670
|
-
function Tr(e, t) {
|
|
1671
|
-
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1672
|
-
n !== (e[fe] ??= e.nodeValue) && (e[fe] = n, e.nodeValue = `${n}`);
|
|
1671
|
+
var wr = ["touchstart", "touchmove"];
|
|
1672
|
+
function Tr(e) {
|
|
1673
|
+
return wr.includes(e);
|
|
1673
1674
|
}
|
|
1674
1675
|
function Er(e, t) {
|
|
1675
|
-
|
|
1676
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1677
|
+
n !== (e[ue] ??= e.nodeValue) && (e[ue] = n, e.nodeValue = `${n}`);
|
|
1676
1678
|
}
|
|
1677
1679
|
function Dr(e, t) {
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
+
return Ar(e, t);
|
|
1681
|
+
}
|
|
1682
|
+
function Or(e, t) {
|
|
1683
|
+
Qt(), t.intro = t.intro ?? !1;
|
|
1684
|
+
let n = t.target, r = P, i = I;
|
|
1680
1685
|
try {
|
|
1681
|
-
for (var o = /* @__PURE__ */
|
|
1686
|
+
for (var o = /* @__PURE__ */ en(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
|
|
1682
1687
|
if (!o) throw a;
|
|
1683
|
-
|
|
1684
|
-
let r =
|
|
1688
|
+
F(!0), L(o);
|
|
1689
|
+
let r = Ar(e, {
|
|
1685
1690
|
...t,
|
|
1686
1691
|
anchor: o
|
|
1687
1692
|
});
|
|
1688
|
-
return
|
|
1693
|
+
return F(!1), r;
|
|
1689
1694
|
} catch (r) {
|
|
1690
1695
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1691
|
-
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);
|
|
1692
1697
|
} finally {
|
|
1693
|
-
|
|
1698
|
+
F(r), L(i);
|
|
1694
1699
|
}
|
|
1695
1700
|
}
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1698
|
-
|
|
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
|
+
Qt();
|
|
1699
1704
|
var l = void 0, u = yn(() => {
|
|
1700
|
-
var s = n ?? t.appendChild(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
var n =
|
|
1704
|
-
if (o && (n.c = o), i && (r.$$events = i),
|
|
1705
|
-
|
|
1705
|
+
var s = n ?? t.appendChild($t());
|
|
1706
|
+
Ct(s, { pending: () => {} }, (t) => {
|
|
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();
|
|
1706
1711
|
}, c);
|
|
1707
1712
|
var u = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1708
1713
|
for (var n = 0; n < e.length; n++) {
|
|
1709
1714
|
var r = e[n];
|
|
1710
1715
|
if (!u.has(r)) {
|
|
1711
1716
|
u.add(r);
|
|
1712
|
-
var i =
|
|
1717
|
+
var i = Tr(r);
|
|
1713
1718
|
for (let e of [t, document]) {
|
|
1714
|
-
var a =
|
|
1715
|
-
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));
|
|
1716
1721
|
var o = a.get(r);
|
|
1717
|
-
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);
|
|
1718
1723
|
}
|
|
1719
1724
|
}
|
|
1720
1725
|
}
|
|
1721
1726
|
};
|
|
1722
|
-
return f(d(
|
|
1727
|
+
return f(d(lr)), ur.add(f), () => {
|
|
1723
1728
|
for (var e of u) for (let n of [t, document]) {
|
|
1724
|
-
var r =
|
|
1725
|
-
--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);
|
|
1726
1731
|
}
|
|
1727
|
-
|
|
1732
|
+
ur.delete(f), s !== n && s.parentNode?.removeChild(s);
|
|
1728
1733
|
};
|
|
1729
1734
|
});
|
|
1730
|
-
return
|
|
1735
|
+
return jr.set(l, u), l;
|
|
1731
1736
|
}
|
|
1732
|
-
var
|
|
1733
|
-
function
|
|
1734
|
-
let n =
|
|
1735
|
-
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();
|
|
1736
1741
|
}
|
|
1737
1742
|
//#endregion
|
|
1738
1743
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1739
|
-
var
|
|
1744
|
+
var Nr = class {
|
|
1740
1745
|
anchor;
|
|
1741
1746
|
#e = /* @__PURE__ */ new Map();
|
|
1742
1747
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1749,65 +1754,65 @@ var Mr = class {
|
|
|
1749
1754
|
#a = (e) => {
|
|
1750
1755
|
if (this.#e.has(e)) {
|
|
1751
1756
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1752
|
-
if (n)
|
|
1757
|
+
if (n) Nn(n), this.#r.delete(t);
|
|
1753
1758
|
else {
|
|
1754
1759
|
var r = this.#n.get(t);
|
|
1755
|
-
r && (
|
|
1760
|
+
r && (Nn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1756
1761
|
}
|
|
1757
1762
|
for (let [t, n] of this.#e) {
|
|
1758
1763
|
if (this.#e.delete(t), t === e) break;
|
|
1759
1764
|
let r = this.#n.get(n);
|
|
1760
|
-
r && (
|
|
1765
|
+
r && (G(r.effect), this.#n.delete(n));
|
|
1761
1766
|
}
|
|
1762
1767
|
for (let [e, r] of this.#t) {
|
|
1763
1768
|
if (e === t || this.#r.has(e)) continue;
|
|
1764
1769
|
let i = () => {
|
|
1765
1770
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1766
1771
|
var t = document.createDocumentFragment();
|
|
1767
|
-
|
|
1772
|
+
Fn(r, t), t.append($t()), this.#n.set(e, {
|
|
1768
1773
|
effect: r,
|
|
1769
1774
|
fragment: t
|
|
1770
1775
|
});
|
|
1771
|
-
} else
|
|
1776
|
+
} else G(r);
|
|
1772
1777
|
this.#r.delete(e), this.#t.delete(e);
|
|
1773
1778
|
};
|
|
1774
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1779
|
+
this.#i || !n ? (this.#r.add(e), jn(r, i, !1)) : i();
|
|
1775
1780
|
}
|
|
1776
1781
|
}
|
|
1777
1782
|
};
|
|
1778
1783
|
#o = (e) => {
|
|
1779
1784
|
this.#e.delete(e);
|
|
1780
1785
|
let t = Array.from(this.#e.values());
|
|
1781
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1786
|
+
for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
|
|
1782
1787
|
};
|
|
1783
1788
|
ensure(e, t) {
|
|
1784
|
-
var n =
|
|
1789
|
+
var n = B, r = sn();
|
|
1785
1790
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1786
|
-
var i = document.createDocumentFragment(), a =
|
|
1791
|
+
var i = document.createDocumentFragment(), a = $t();
|
|
1787
1792
|
i.append(a), this.#n.set(e, {
|
|
1788
|
-
effect:
|
|
1793
|
+
effect: Tn(() => t(a)),
|
|
1789
1794
|
fragment: i
|
|
1790
1795
|
});
|
|
1791
|
-
} else this.#t.set(e,
|
|
1796
|
+
} else this.#t.set(e, Tn(() => t(this.anchor)));
|
|
1792
1797
|
if (this.#e.set(n, e), r) {
|
|
1793
1798
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1794
1799
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1795
1800
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1796
|
-
} else
|
|
1801
|
+
} else P && (this.anchor = I), this.#a(n);
|
|
1797
1802
|
}
|
|
1798
1803
|
};
|
|
1799
1804
|
//#endregion
|
|
1800
1805
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1801
|
-
function
|
|
1806
|
+
function Pr(e, t, n = !1) {
|
|
1802
1807
|
var r;
|
|
1803
|
-
|
|
1804
|
-
var i = new
|
|
1808
|
+
P && (r = I, Oe());
|
|
1809
|
+
var i = new Nr(e), a = n ? E : 0;
|
|
1805
1810
|
function o(e, t) {
|
|
1806
|
-
if (
|
|
1807
|
-
var n =
|
|
1811
|
+
if (P) {
|
|
1812
|
+
var n = Me(r);
|
|
1808
1813
|
if (e !== parseInt(n.substring(1))) {
|
|
1809
|
-
var a =
|
|
1810
|
-
|
|
1814
|
+
var a = je();
|
|
1815
|
+
L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
|
|
1811
1816
|
return;
|
|
1812
1817
|
}
|
|
1813
1818
|
}
|
|
@@ -1822,14 +1827,14 @@ function Nr(e, t, n = !1) {
|
|
|
1822
1827
|
}
|
|
1823
1828
|
//#endregion
|
|
1824
1829
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1825
|
-
function
|
|
1830
|
+
function Fr(e, t, n) {
|
|
1826
1831
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1827
1832
|
let n = t[s];
|
|
1828
|
-
|
|
1833
|
+
jn(n, () => {
|
|
1829
1834
|
if (a) {
|
|
1830
1835
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1831
1836
|
var t = e.outrogroups;
|
|
1832
|
-
|
|
1837
|
+
Ir(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1833
1838
|
}
|
|
1834
1839
|
} else --o;
|
|
1835
1840
|
}, !1);
|
|
@@ -1840,13 +1845,13 @@ function Pr(e, t, n) {
|
|
|
1840
1845
|
var l = n, u = l.parentNode;
|
|
1841
1846
|
on(u), u.append(l), e.items.clear();
|
|
1842
1847
|
}
|
|
1843
|
-
|
|
1848
|
+
Ir(e, t, !c);
|
|
1844
1849
|
} else a = {
|
|
1845
1850
|
pending: new Set(t),
|
|
1846
1851
|
done: /* @__PURE__ */ new Set()
|
|
1847
1852
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1848
1853
|
}
|
|
1849
|
-
function
|
|
1854
|
+
function Ir(e, t, n = !0) {
|
|
1850
1855
|
var r;
|
|
1851
1856
|
if (e.pending.size > 0) {
|
|
1852
1857
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1854,23 +1859,23 @@ function Fr(e, t, n = !0) {
|
|
|
1854
1859
|
}
|
|
1855
1860
|
for (var i = 0; i < t.length; i++) {
|
|
1856
1861
|
var a = t[i];
|
|
1857
|
-
r?.has(a) ? (a.f |=
|
|
1862
|
+
r?.has(a) ? (a.f |= O, Fn(a, document.createDocumentFragment())) : G(t[i], n);
|
|
1858
1863
|
}
|
|
1859
1864
|
}
|
|
1860
|
-
var
|
|
1861
|
-
function
|
|
1865
|
+
var Lr;
|
|
1866
|
+
function Rr(e, t, n, r, i, a = null) {
|
|
1862
1867
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1863
1868
|
if (t & 4) {
|
|
1864
1869
|
var l = e;
|
|
1865
|
-
o =
|
|
1870
|
+
o = P ? L(/* @__PURE__ */ en(l)) : l.appendChild($t());
|
|
1866
1871
|
}
|
|
1867
|
-
|
|
1868
|
-
var u = null, f = /* @__PURE__ */
|
|
1872
|
+
P && Oe();
|
|
1873
|
+
var u = null, f = /* @__PURE__ */ Mt(() => {
|
|
1869
1874
|
var e = n();
|
|
1870
1875
|
return c(e) ? e : e == null ? [] : d(e);
|
|
1871
1876
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1872
1877
|
function g(e) {
|
|
1873
|
-
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, () => {
|
|
1874
1879
|
u = null;
|
|
1875
1880
|
})));
|
|
1876
1881
|
}
|
|
@@ -1882,17 +1887,17 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1882
1887
|
p = Z(f);
|
|
1883
1888
|
var e = p.length;
|
|
1884
1889
|
let c = !1;
|
|
1885
|
-
|
|
1886
|
-
for (var l = /* @__PURE__ */ new Set(), d =
|
|
1887
|
-
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1890
|
+
P && Me(o) === "[!" != (e === 0) && (o = je(), L(o), F(!1), c = !0);
|
|
1891
|
+
for (var l = /* @__PURE__ */ new Set(), d = B, v = sn(), y = 0; y < e; y += 1) {
|
|
1892
|
+
P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
|
|
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 = Vr(s, h ? o : Lr ??= $t(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
|
|
1890
1895
|
}
|
|
1891
|
-
if (e === 0 && a && !u && (h ? u =
|
|
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) {
|
|
1892
1897
|
for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
|
|
1893
1898
|
d.oncommit(g), d.ondiscard(_);
|
|
1894
1899
|
} else g(d);
|
|
1895
|
-
c &&
|
|
1900
|
+
c && F(!0), Z(f);
|
|
1896
1901
|
}),
|
|
1897
1902
|
flags: t,
|
|
1898
1903
|
items: s,
|
|
@@ -1900,85 +1905,85 @@ function Lr(e, t, n, r, i, a = null) {
|
|
|
1900
1905
|
outrogroups: null,
|
|
1901
1906
|
fallback: u
|
|
1902
1907
|
};
|
|
1903
|
-
h = !1,
|
|
1908
|
+
h = !1, P && (o = I);
|
|
1904
1909
|
}
|
|
1905
|
-
function
|
|
1910
|
+
function zr(e) {
|
|
1906
1911
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1907
1912
|
return e;
|
|
1908
1913
|
}
|
|
1909
|
-
function
|
|
1910
|
-
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;
|
|
1911
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(_));
|
|
1912
1917
|
for (v = 0; v < o; v += 1) {
|
|
1913
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(_);
|
|
1914
|
-
if (_.f & 8192 && (
|
|
1919
|
+
if (_.f & 8192 && (Nn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= O, _ === c) Hr(_, null, n);
|
|
1915
1920
|
else {
|
|
1916
1921
|
var y = u ? u.next : c;
|
|
1917
|
-
_ === 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);
|
|
1918
1923
|
continue;
|
|
1919
1924
|
}
|
|
1920
1925
|
if (_ !== c) {
|
|
1921
1926
|
if (l !== void 0 && l.has(_)) {
|
|
1922
1927
|
if (p.length < m.length) {
|
|
1923
|
-
var
|
|
1924
|
-
u =
|
|
1925
|
-
var
|
|
1926
|
-
for (
|
|
1927
|
-
for (
|
|
1928
|
-
|
|
1929
|
-
} else l.delete(_),
|
|
1928
|
+
var ee = m[0], b;
|
|
1929
|
+
u = ee.prev;
|
|
1930
|
+
var x = p[0], S = p[p.length - 1];
|
|
1931
|
+
for (b = 0; b < p.length; b += 1) Hr(p[b], ee, n);
|
|
1932
|
+
for (b = 0; b < m.length; b += 1) l.delete(m[b]);
|
|
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 = _;
|
|
1930
1935
|
continue;
|
|
1931
1936
|
}
|
|
1932
|
-
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);
|
|
1933
1938
|
if (c === null) continue;
|
|
1934
1939
|
}
|
|
1935
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1940
|
+
_.f & 33554432 || p.push(_), u = _, c = zr(_.next);
|
|
1936
1941
|
}
|
|
1937
1942
|
if (e.outrogroups !== null) {
|
|
1938
|
-
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));
|
|
1939
1944
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1940
1945
|
}
|
|
1941
1946
|
if (c !== null || l !== void 0) {
|
|
1942
|
-
var
|
|
1943
|
-
if (l !== void 0) for (_ of l) _.f & 8192 ||
|
|
1944
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback &&
|
|
1945
|
-
var
|
|
1946
|
-
if (
|
|
1947
|
-
var
|
|
1947
|
+
var C = [];
|
|
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 = zr(c.next);
|
|
1950
|
+
var te = C.length;
|
|
1951
|
+
if (te > 0) {
|
|
1952
|
+
var w = r & 4 && o === 0 ? n : null;
|
|
1948
1953
|
if (a) {
|
|
1949
|
-
for (v = 0; v <
|
|
1950
|
-
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();
|
|
1951
1956
|
}
|
|
1952
|
-
|
|
1957
|
+
Fr(e, C, w);
|
|
1953
1958
|
}
|
|
1954
1959
|
}
|
|
1955
|
-
a &&
|
|
1960
|
+
a && We(() => {
|
|
1956
1961
|
if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
|
|
1957
1962
|
});
|
|
1958
1963
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var c = o & 1 ? o & 16 ?
|
|
1964
|
+
function Vr(e, t, n, r, i, a, o, s) {
|
|
1965
|
+
var c = o & 1 ? o & 16 ? Vt(n) : /* @__PURE__ */ Ht(n, !1, !1) : null, l = o & 2 ? Vt(i) : null;
|
|
1961
1966
|
return {
|
|
1962
1967
|
v: c,
|
|
1963
1968
|
i: l,
|
|
1964
|
-
e:
|
|
1969
|
+
e: Tn(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1965
1970
|
e.delete(r);
|
|
1966
1971
|
}))
|
|
1967
1972
|
};
|
|
1968
1973
|
}
|
|
1969
|
-
function
|
|
1974
|
+
function Hr(e, t, n) {
|
|
1970
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;) {
|
|
1971
1976
|
var o = /* @__PURE__ */ tn(r);
|
|
1972
1977
|
if (a.before(r), r === i) return;
|
|
1973
1978
|
r = o;
|
|
1974
1979
|
}
|
|
1975
1980
|
}
|
|
1976
|
-
function
|
|
1981
|
+
function Ur(e, t, n) {
|
|
1977
1982
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1978
1983
|
}
|
|
1979
1984
|
//#endregion
|
|
1980
1985
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1981
|
-
function
|
|
1986
|
+
function Wr(e, t) {
|
|
1982
1987
|
bn(() => {
|
|
1983
1988
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1984
1989
|
if (!r.querySelector("#" + t.hash)) {
|
|
@@ -1988,20 +1993,35 @@ function Ur(e, t) {
|
|
|
1988
1993
|
});
|
|
1989
1994
|
}
|
|
1990
1995
|
//#endregion
|
|
1991
|
-
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/
|
|
1992
|
-
var Wr = [..." \n\r\f\xA0\v"];
|
|
1996
|
+
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
1993
1997
|
function Gr(e, t, n) {
|
|
1998
|
+
bn(() => {
|
|
1999
|
+
var r = ar(() => t(e, n?.()) || {});
|
|
2000
|
+
if (n && r?.update) {
|
|
2001
|
+
var i = !1, a = {};
|
|
2002
|
+
Sn(() => {
|
|
2003
|
+
var e = n();
|
|
2004
|
+
or(e), i && Pe(a, e) && (a = e, r.update(e));
|
|
2005
|
+
}), i = !0;
|
|
2006
|
+
}
|
|
2007
|
+
if (r?.destroy) return () => r.destroy();
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
//#endregion
|
|
2011
|
+
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
|
|
2012
|
+
var Kr = [..." \n\r\f\xA0\v"];
|
|
2013
|
+
function qr(e, t, n) {
|
|
1994
2014
|
var r = e == null ? "" : "" + e;
|
|
1995
2015
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1996
2016
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1997
2017
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1998
2018
|
var s = o + a;
|
|
1999
|
-
(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;
|
|
2000
2020
|
}
|
|
2001
2021
|
}
|
|
2002
2022
|
return r === "" ? null : r;
|
|
2003
2023
|
}
|
|
2004
|
-
function
|
|
2024
|
+
function Jr(e, t = !1) {
|
|
2005
2025
|
var n = t ? " !important;" : ";", r = "";
|
|
2006
2026
|
for (var i of Object.keys(e)) {
|
|
2007
2027
|
var a = e[i];
|
|
@@ -2009,16 +2029,16 @@ function Kr(e, t = !1) {
|
|
|
2009
2029
|
}
|
|
2010
2030
|
return r;
|
|
2011
2031
|
}
|
|
2012
|
-
function
|
|
2032
|
+
function Yr(e) {
|
|
2013
2033
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2014
2034
|
}
|
|
2015
|
-
function
|
|
2035
|
+
function Xr(e, t) {
|
|
2016
2036
|
if (t) {
|
|
2017
2037
|
var n = "", r, i;
|
|
2018
2038
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2019
2039
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
2020
2040
|
var a = !1, o = 0, s = !1, c = [];
|
|
2021
|
-
r && c.push(...Object.keys(r).map(
|
|
2041
|
+
r && c.push(...Object.keys(r).map(Yr)), i && c.push(...Object.keys(i).map(Yr));
|
|
2022
2042
|
var l = 0, u = -1;
|
|
2023
2043
|
let t = e.length;
|
|
2024
2044
|
for (var d = 0; d < t; d++) {
|
|
@@ -2027,7 +2047,7 @@ function Jr(e, t) {
|
|
|
2027
2047
|
if (f === ":" && u === -1) u = d;
|
|
2028
2048
|
else if (f === ";" || d === t - 1) {
|
|
2029
2049
|
if (u !== -1) {
|
|
2030
|
-
var p =
|
|
2050
|
+
var p = Yr(e.substring(l, u).trim());
|
|
2031
2051
|
if (!c.includes(p)) {
|
|
2032
2052
|
f !== ";" && d++;
|
|
2033
2053
|
var m = e.substring(l, d).trim();
|
|
@@ -2039,17 +2059,17 @@ function Jr(e, t) {
|
|
|
2039
2059
|
}
|
|
2040
2060
|
}
|
|
2041
2061
|
}
|
|
2042
|
-
return r && (n +=
|
|
2062
|
+
return r && (n += Jr(r)), i && (n += Jr(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2043
2063
|
}
|
|
2044
2064
|
return e == null ? null : String(e);
|
|
2045
2065
|
}
|
|
2046
2066
|
//#endregion
|
|
2047
2067
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2048
|
-
function
|
|
2049
|
-
var o = e[
|
|
2050
|
-
if (
|
|
2051
|
-
var s =
|
|
2052
|
-
(!
|
|
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;
|
|
2053
2073
|
} else if (a && i !== a) for (var c in a) {
|
|
2054
2074
|
var l = !!a[c];
|
|
2055
2075
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -2058,38 +2078,48 @@ function Yr(e, t, n, r, i, a) {
|
|
|
2058
2078
|
}
|
|
2059
2079
|
//#endregion
|
|
2060
2080
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
2061
|
-
function
|
|
2081
|
+
function Qr(e, t = {}, n, r) {
|
|
2062
2082
|
for (var i in n) {
|
|
2063
2083
|
var a = n[i];
|
|
2064
2084
|
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
2065
2085
|
}
|
|
2066
2086
|
}
|
|
2067
|
-
function
|
|
2068
|
-
var i = e[
|
|
2069
|
-
if (
|
|
2070
|
-
var a =
|
|
2071
|
-
(!
|
|
2072
|
-
} 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));
|
|
2073
2093
|
return r;
|
|
2074
2094
|
}
|
|
2075
2095
|
//#endregion
|
|
2076
2096
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2077
|
-
var
|
|
2078
|
-
function
|
|
2079
|
-
var i =
|
|
2080
|
-
|
|
2081
|
-
}
|
|
2082
|
-
function
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2097
|
+
var ei = Symbol("is custom element"), ti = Symbol("is html"), ni = fe ? "link" : "LINK";
|
|
2098
|
+
function Q(e, t, n, r) {
|
|
2099
|
+
var i = ii(e);
|
|
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
|
+
}
|
|
2102
|
+
function ri(e, t, n) {
|
|
2103
|
+
var r = K, i = J;
|
|
2104
|
+
let a = P;
|
|
2105
|
+
P && F(!1), q(null), Vn(null);
|
|
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 : Q(e, t, n == null ? n : String(n));
|
|
2108
|
+
} finally {
|
|
2109
|
+
q(r), Vn(i), a && F(!0);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
function ii(e) {
|
|
2113
|
+
return e[ce] ??= {
|
|
2114
|
+
[ei]: e.nodeName.includes("-"),
|
|
2115
|
+
[ti]: e.namespaceURI === s
|
|
2086
2116
|
};
|
|
2087
2117
|
}
|
|
2088
|
-
var
|
|
2089
|
-
function
|
|
2090
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2118
|
+
var ai = /* @__PURE__ */ new Map();
|
|
2119
|
+
function oi(e) {
|
|
2120
|
+
var t = e.getAttribute("is") || e.nodeName, n = ai.get(t);
|
|
2091
2121
|
if (n) return n;
|
|
2092
|
-
|
|
2122
|
+
ai.set(t, n = []);
|
|
2093
2123
|
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
2094
2124
|
for (var o in r = h(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
|
|
2095
2125
|
i = v(i);
|
|
@@ -2098,22 +2128,22 @@ function ri(e) {
|
|
|
2098
2128
|
}
|
|
2099
2129
|
//#endregion
|
|
2100
2130
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2101
|
-
function
|
|
2102
|
-
return e === t || e?.[
|
|
2131
|
+
function si(e, t) {
|
|
2132
|
+
return e === t || e?.[j] === t;
|
|
2103
2133
|
}
|
|
2104
|
-
function
|
|
2105
|
-
var i =
|
|
2134
|
+
function ci(e = {}, t, n, r) {
|
|
2135
|
+
var i = R.r, a = J;
|
|
2106
2136
|
return bn(() => {
|
|
2107
2137
|
var o, s;
|
|
2108
2138
|
return Sn(() => {
|
|
2109
2139
|
o = s, s = r?.() || [], ar(() => {
|
|
2110
|
-
|
|
2140
|
+
si(n(...s), e) || (t(e, ...s), o && si(n(...o), e) && t(null, ...o));
|
|
2111
2141
|
});
|
|
2112
2142
|
}), () => {
|
|
2113
2143
|
let r = a;
|
|
2114
2144
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2115
2145
|
let o = () => {
|
|
2116
|
-
s &&
|
|
2146
|
+
s && si(n(...s), e) && t(null, ...s);
|
|
2117
2147
|
}, c = r.teardown;
|
|
2118
2148
|
r.teardown = () => {
|
|
2119
2149
|
o(), c?.();
|
|
@@ -2123,15 +2153,15 @@ function ai(e = {}, t, n, r) {
|
|
|
2123
2153
|
}
|
|
2124
2154
|
//#endregion
|
|
2125
2155
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2126
|
-
function
|
|
2127
|
-
var i = !
|
|
2156
|
+
function li(e, t, n, r) {
|
|
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);
|
|
2128
2158
|
let d;
|
|
2129
2159
|
if (a) {
|
|
2130
|
-
var f =
|
|
2160
|
+
var f = j in e || M in e;
|
|
2131
2161
|
d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2132
2162
|
}
|
|
2133
2163
|
var p, h = !1;
|
|
2134
|
-
a ? [p, h] =
|
|
2164
|
+
a ? [p, h] = et(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && be(t), d(p)));
|
|
2135
2165
|
var g = i ? () => {
|
|
2136
2166
|
var n = e[t];
|
|
2137
2167
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2146,28 +2176,28 @@ function oi(e, t, n, r) {
|
|
|
2146
2176
|
return arguments.length > 0 ? ((!i || !t || _ || h) && d(t ? g() : e), e) : g();
|
|
2147
2177
|
});
|
|
2148
2178
|
}
|
|
2149
|
-
var v = !1, y = (n & 1 ?
|
|
2179
|
+
var v = !1, y = (n & 1 ? kt : Mt)(() => (v = !1, g()));
|
|
2150
2180
|
a && Z(y);
|
|
2151
|
-
var
|
|
2181
|
+
var ee = J;
|
|
2152
2182
|
return (function(e, t) {
|
|
2153
2183
|
if (arguments.length > 0) {
|
|
2154
|
-
let n = t ? Z(y) : i && a ?
|
|
2155
|
-
return
|
|
2184
|
+
let n = t ? Z(y) : i && a ? qt(e) : e;
|
|
2185
|
+
return W(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2156
2186
|
}
|
|
2157
|
-
return
|
|
2187
|
+
return Rn && v || ee.f & 16384 ? y.v : Z(y);
|
|
2158
2188
|
});
|
|
2159
2189
|
}
|
|
2160
2190
|
//#endregion
|
|
2161
2191
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/legacy/legacy-client.js
|
|
2162
|
-
function
|
|
2163
|
-
return new
|
|
2192
|
+
function ui(e) {
|
|
2193
|
+
return new di(e);
|
|
2164
2194
|
}
|
|
2165
|
-
var
|
|
2195
|
+
var di = class {
|
|
2166
2196
|
#e;
|
|
2167
2197
|
#t;
|
|
2168
2198
|
constructor(e) {
|
|
2169
2199
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2170
|
-
var r = /* @__PURE__ */
|
|
2200
|
+
var r = /* @__PURE__ */ Ht(n, !1, !1);
|
|
2171
2201
|
return t.set(e, r), r;
|
|
2172
2202
|
};
|
|
2173
2203
|
let r = new Proxy({
|
|
@@ -2178,13 +2208,13 @@ var ci = class {
|
|
|
2178
2208
|
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2179
2209
|
},
|
|
2180
2210
|
has(e, r) {
|
|
2181
|
-
return r ===
|
|
2211
|
+
return r === M ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2182
2212
|
},
|
|
2183
2213
|
set(e, r, i) {
|
|
2184
|
-
return
|
|
2214
|
+
return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2185
2215
|
}
|
|
2186
2216
|
});
|
|
2187
|
-
this.#t = (e.hydrate ?
|
|
2217
|
+
this.#t = (e.hydrate ? Or : Dr)(e.component, {
|
|
2188
2218
|
target: e.target,
|
|
2189
2219
|
anchor: e.anchor,
|
|
2190
2220
|
props: r,
|
|
@@ -2192,7 +2222,7 @@ var ci = class {
|
|
|
2192
2222
|
intro: e.intro ?? !1,
|
|
2193
2223
|
recover: e.recover,
|
|
2194
2224
|
transformError: e.transformError
|
|
2195
|
-
}), !
|
|
2225
|
+
}), !Ie && (!e?.props?.$$host || e.sync === !1) && ft(), this.#e = r.$$events;
|
|
2196
2226
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
|
|
2197
2227
|
get() {
|
|
2198
2228
|
return this.#t[e];
|
|
@@ -2205,7 +2235,7 @@ var ci = class {
|
|
|
2205
2235
|
this.#t.$set = (e) => {
|
|
2206
2236
|
Object.assign(r, e);
|
|
2207
2237
|
}, this.#t.$destroy = () => {
|
|
2208
|
-
|
|
2238
|
+
Mr(this.#t);
|
|
2209
2239
|
};
|
|
2210
2240
|
}
|
|
2211
2241
|
$set(e) {
|
|
@@ -2221,8 +2251,8 @@ var ci = class {
|
|
|
2221
2251
|
$destroy() {
|
|
2222
2252
|
this.#t.$destroy();
|
|
2223
2253
|
}
|
|
2224
|
-
},
|
|
2225
|
-
typeof HTMLElement == "function" && (
|
|
2254
|
+
}, fi;
|
|
2255
|
+
typeof HTMLElement == "function" && (fi = class extends HTMLElement {
|
|
2226
2256
|
$$ctor;
|
|
2227
2257
|
$$s;
|
|
2228
2258
|
$$c;
|
|
@@ -2256,17 +2286,17 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
2256
2286
|
function e(e) {
|
|
2257
2287
|
return (t) => {
|
|
2258
2288
|
let n = cn("slot");
|
|
2259
|
-
e !== "default" && (n.name = e),
|
|
2289
|
+
e !== "default" && (n.name = e), Cr(t, n);
|
|
2260
2290
|
};
|
|
2261
2291
|
}
|
|
2262
|
-
let t = {}, n =
|
|
2292
|
+
let t = {}, n = mi(this);
|
|
2263
2293
|
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2264
2294
|
for (let e of this.attributes) {
|
|
2265
2295
|
let t = this.$$g_p(e.name);
|
|
2266
|
-
t in this.$$d || (this.$$d[t] =
|
|
2296
|
+
t in this.$$d || (this.$$d[t] = pi(t, e.value, this.$$p_d, "toProp"));
|
|
2267
2297
|
}
|
|
2268
2298
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
2269
|
-
this.$$c =
|
|
2299
|
+
this.$$c = ui({
|
|
2270
2300
|
component: this.$$ctor,
|
|
2271
2301
|
target: this.$$shadowRoot || this,
|
|
2272
2302
|
props: {
|
|
@@ -2280,7 +2310,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
2280
2310
|
for (let e of f(this.$$c)) {
|
|
2281
2311
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
2282
2312
|
this.$$d[e] = this.$$c[e];
|
|
2283
|
-
let t =
|
|
2313
|
+
let t = pi(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
2284
2314
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
2285
2315
|
}
|
|
2286
2316
|
this.$$r = !1;
|
|
@@ -2294,7 +2324,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
2294
2324
|
}
|
|
2295
2325
|
}
|
|
2296
2326
|
attributeChangedCallback(e, t, n) {
|
|
2297
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2327
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2298
2328
|
}
|
|
2299
2329
|
disconnectedCallback() {
|
|
2300
2330
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2305,7 +2335,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
|
|
|
2305
2335
|
return f(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2306
2336
|
}
|
|
2307
2337
|
});
|
|
2308
|
-
function
|
|
2338
|
+
function pi(e, t, n, r) {
|
|
2309
2339
|
let i = n[e]?.type;
|
|
2310
2340
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2311
2341
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2323,14 +2353,14 @@ function ui(e, t, n, r) {
|
|
|
2323
2353
|
default: return t;
|
|
2324
2354
|
}
|
|
2325
2355
|
}
|
|
2326
|
-
function
|
|
2356
|
+
function mi(e) {
|
|
2327
2357
|
let t = {};
|
|
2328
2358
|
return e.childNodes.forEach((e) => {
|
|
2329
2359
|
t[e.slot || "default"] = !0;
|
|
2330
2360
|
}), t;
|
|
2331
2361
|
}
|
|
2332
|
-
function
|
|
2333
|
-
let o = class extends
|
|
2362
|
+
function hi(e, t, n, r, i, a) {
|
|
2363
|
+
let o = class extends fi {
|
|
2334
2364
|
constructor() {
|
|
2335
2365
|
super(e, n, i), this.$$p_d = t;
|
|
2336
2366
|
}
|
|
@@ -2344,7 +2374,7 @@ function fi(e, t, n, r, i, a) {
|
|
|
2344
2374
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2345
2375
|
},
|
|
2346
2376
|
set(n) {
|
|
2347
|
-
n =
|
|
2377
|
+
n = pi(e, n, t), this.$$d[e] = n;
|
|
2348
2378
|
var r = this.$$c;
|
|
2349
2379
|
r && (m(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2350
2380
|
}
|
|
@@ -2356,109 +2386,989 @@ function fi(e, t, n, r, i, a) {
|
|
|
2356
2386
|
}), a && (o = a(o)), e.element = o, o;
|
|
2357
2387
|
}
|
|
2358
2388
|
//#endregion
|
|
2389
|
+
//#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
|
|
2390
|
+
var gi = globalThis, _i = gi.ShadowRoot && (gi.ShadyCSS === void 0 || gi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vi = Symbol(), yi = /* @__PURE__ */ new WeakMap(), bi = class {
|
|
2391
|
+
constructor(e, t, n) {
|
|
2392
|
+
if (this._$cssResult$ = !0, n !== vi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2393
|
+
this.cssText = e, this.t = t;
|
|
2394
|
+
}
|
|
2395
|
+
get styleSheet() {
|
|
2396
|
+
let e = this.o, t = this.t;
|
|
2397
|
+
if (_i && e === void 0) {
|
|
2398
|
+
let n = t !== void 0 && t.length === 1;
|
|
2399
|
+
n && (e = yi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && yi.set(t, e));
|
|
2400
|
+
}
|
|
2401
|
+
return e;
|
|
2402
|
+
}
|
|
2403
|
+
toString() {
|
|
2404
|
+
return this.cssText;
|
|
2405
|
+
}
|
|
2406
|
+
}, xi = (e) => new bi(typeof e == "string" ? e : e + "", void 0, vi), Si = (e, t) => {
|
|
2407
|
+
if (_i) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
2408
|
+
else for (let n of t) {
|
|
2409
|
+
let t = document.createElement("style"), r = gi.litNonce;
|
|
2410
|
+
r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
|
|
2411
|
+
}
|
|
2412
|
+
}, Ci = _i ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
2413
|
+
let t = "";
|
|
2414
|
+
for (let n of e.cssRules) t += n.cssText;
|
|
2415
|
+
return xi(t);
|
|
2416
|
+
})(e) : e, { is: wi, defineProperty: Ti, getOwnPropertyDescriptor: Ei, getOwnPropertyNames: Di, getOwnPropertySymbols: Oi, getPrototypeOf: ki } = Object, Ai = globalThis, ji = Ai.trustedTypes, Mi = ji ? ji.emptyScript : "", Ni = Ai.reactiveElementPolyfillSupport, Pi = (e, t) => e, Fi = {
|
|
2417
|
+
toAttribute(e, t) {
|
|
2418
|
+
switch (t) {
|
|
2419
|
+
case Boolean:
|
|
2420
|
+
e = e ? Mi : null;
|
|
2421
|
+
break;
|
|
2422
|
+
case Object:
|
|
2423
|
+
case Array: e = e == null ? e : JSON.stringify(e);
|
|
2424
|
+
}
|
|
2425
|
+
return e;
|
|
2426
|
+
},
|
|
2427
|
+
fromAttribute(e, t) {
|
|
2428
|
+
let n = e;
|
|
2429
|
+
switch (t) {
|
|
2430
|
+
case Boolean:
|
|
2431
|
+
n = e !== null;
|
|
2432
|
+
break;
|
|
2433
|
+
case Number:
|
|
2434
|
+
n = e === null ? null : Number(e);
|
|
2435
|
+
break;
|
|
2436
|
+
case Object:
|
|
2437
|
+
case Array: try {
|
|
2438
|
+
n = JSON.parse(e);
|
|
2439
|
+
} catch {
|
|
2440
|
+
n = null;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
return n;
|
|
2444
|
+
}
|
|
2445
|
+
}, Ii = (e, t) => !wi(e, t), Li = {
|
|
2446
|
+
attribute: !0,
|
|
2447
|
+
type: String,
|
|
2448
|
+
converter: Fi,
|
|
2449
|
+
reflect: !1,
|
|
2450
|
+
useDefault: !1,
|
|
2451
|
+
hasChanged: Ii
|
|
2452
|
+
};
|
|
2453
|
+
Symbol.metadata ??= Symbol("metadata"), Ai.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
2454
|
+
var Ri = class extends HTMLElement {
|
|
2455
|
+
static addInitializer(e) {
|
|
2456
|
+
this._$Ei(), (this.l ??= []).push(e);
|
|
2457
|
+
}
|
|
2458
|
+
static get observedAttributes() {
|
|
2459
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2460
|
+
}
|
|
2461
|
+
static createProperty(e, t = Li) {
|
|
2462
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
2463
|
+
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
2464
|
+
r !== void 0 && Ti(this.prototype, e, r);
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
static getPropertyDescriptor(e, t, n) {
|
|
2468
|
+
let { get: r, set: i } = Ei(this.prototype, e) ?? {
|
|
2469
|
+
get() {
|
|
2470
|
+
return this[t];
|
|
2471
|
+
},
|
|
2472
|
+
set(e) {
|
|
2473
|
+
this[t] = e;
|
|
2474
|
+
}
|
|
2475
|
+
};
|
|
2476
|
+
return {
|
|
2477
|
+
get: r,
|
|
2478
|
+
set(t) {
|
|
2479
|
+
let a = r?.call(this);
|
|
2480
|
+
i?.call(this, t), this.requestUpdate(e, a, n);
|
|
2481
|
+
},
|
|
2482
|
+
configurable: !0,
|
|
2483
|
+
enumerable: !0
|
|
2484
|
+
};
|
|
2485
|
+
}
|
|
2486
|
+
static getPropertyOptions(e) {
|
|
2487
|
+
return this.elementProperties.get(e) ?? Li;
|
|
2488
|
+
}
|
|
2489
|
+
static _$Ei() {
|
|
2490
|
+
if (this.hasOwnProperty(Pi("elementProperties"))) return;
|
|
2491
|
+
let e = ki(this);
|
|
2492
|
+
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
2493
|
+
}
|
|
2494
|
+
static finalize() {
|
|
2495
|
+
if (this.hasOwnProperty(Pi("finalized"))) return;
|
|
2496
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Pi("properties"))) {
|
|
2497
|
+
let e = this.properties, t = [...Di(e), ...Oi(e)];
|
|
2498
|
+
for (let n of t) this.createProperty(n, e[n]);
|
|
2499
|
+
}
|
|
2500
|
+
let e = this[Symbol.metadata];
|
|
2501
|
+
if (e !== null) {
|
|
2502
|
+
let t = litPropertyMetadata.get(e);
|
|
2503
|
+
if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
|
|
2504
|
+
}
|
|
2505
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
2506
|
+
for (let [e, t] of this.elementProperties) {
|
|
2507
|
+
let n = this._$Eu(e, t);
|
|
2508
|
+
n !== void 0 && this._$Eh.set(n, e);
|
|
2509
|
+
}
|
|
2510
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
2511
|
+
}
|
|
2512
|
+
static finalizeStyles(e) {
|
|
2513
|
+
let t = [];
|
|
2514
|
+
if (Array.isArray(e)) {
|
|
2515
|
+
let n = new Set(e.flat(Infinity).reverse());
|
|
2516
|
+
for (let e of n) t.unshift(Ci(e));
|
|
2517
|
+
} else e !== void 0 && t.push(Ci(e));
|
|
2518
|
+
return t;
|
|
2519
|
+
}
|
|
2520
|
+
static _$Eu(e, t) {
|
|
2521
|
+
let n = t.attribute;
|
|
2522
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
2523
|
+
}
|
|
2524
|
+
constructor() {
|
|
2525
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
2526
|
+
}
|
|
2527
|
+
_$Ev() {
|
|
2528
|
+
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
|
|
2529
|
+
}
|
|
2530
|
+
addController(e) {
|
|
2531
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
|
|
2532
|
+
}
|
|
2533
|
+
removeController(e) {
|
|
2534
|
+
this._$EO?.delete(e);
|
|
2535
|
+
}
|
|
2536
|
+
_$E_() {
|
|
2537
|
+
let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
2538
|
+
for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
|
|
2539
|
+
e.size > 0 && (this._$Ep = e);
|
|
2540
|
+
}
|
|
2541
|
+
createRenderRoot() {
|
|
2542
|
+
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2543
|
+
return Si(e, this.constructor.elementStyles), e;
|
|
2544
|
+
}
|
|
2545
|
+
connectedCallback() {
|
|
2546
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
2547
|
+
}
|
|
2548
|
+
enableUpdating(e) {}
|
|
2549
|
+
disconnectedCallback() {
|
|
2550
|
+
this._$EO?.forEach(((e) => e.hostDisconnected?.()));
|
|
2551
|
+
}
|
|
2552
|
+
attributeChangedCallback(e, t, n) {
|
|
2553
|
+
this._$AK(e, n);
|
|
2554
|
+
}
|
|
2555
|
+
_$ET(e, t) {
|
|
2556
|
+
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
2557
|
+
if (r !== void 0 && n.reflect === !0) {
|
|
2558
|
+
let i = (n.converter?.toAttribute === void 0 ? Fi : n.converter).toAttribute(t, n.type);
|
|
2559
|
+
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
_$AK(e, t) {
|
|
2563
|
+
let n = this.constructor, r = n._$Eh.get(e);
|
|
2564
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
2565
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Fi : e.converter;
|
|
2566
|
+
this._$Em = r;
|
|
2567
|
+
let a = i.fromAttribute(t, e.type);
|
|
2568
|
+
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
requestUpdate(e, t, n) {
|
|
2572
|
+
if (e !== void 0) {
|
|
2573
|
+
let r = this.constructor, i = this[e];
|
|
2574
|
+
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Ii)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
|
|
2575
|
+
this.C(e, t, n);
|
|
2576
|
+
}
|
|
2577
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
2578
|
+
}
|
|
2579
|
+
C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
|
|
2580
|
+
n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), i !== !0 || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
|
|
2581
|
+
}
|
|
2582
|
+
async _$EP() {
|
|
2583
|
+
this.isUpdatePending = !0;
|
|
2584
|
+
try {
|
|
2585
|
+
await this._$ES;
|
|
2586
|
+
} catch (e) {
|
|
2587
|
+
Promise.reject(e);
|
|
2588
|
+
}
|
|
2589
|
+
let e = this.scheduleUpdate();
|
|
2590
|
+
return e != null && await e, !this.isUpdatePending;
|
|
2591
|
+
}
|
|
2592
|
+
scheduleUpdate() {
|
|
2593
|
+
return this.performUpdate();
|
|
2594
|
+
}
|
|
2595
|
+
performUpdate() {
|
|
2596
|
+
if (!this.isUpdatePending) return;
|
|
2597
|
+
if (!this.hasUpdated) {
|
|
2598
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
2599
|
+
for (let [e, t] of this._$Ep) this[e] = t;
|
|
2600
|
+
this._$Ep = void 0;
|
|
2601
|
+
}
|
|
2602
|
+
let e = this.constructor.elementProperties;
|
|
2603
|
+
if (e.size > 0) for (let [t, n] of e) {
|
|
2604
|
+
let { wrapped: e } = n, r = this[t];
|
|
2605
|
+
e !== !0 || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
let e = !1, t = this._$AL;
|
|
2609
|
+
try {
|
|
2610
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
|
|
2611
|
+
} catch (t) {
|
|
2612
|
+
throw e = !1, this._$EM(), t;
|
|
2613
|
+
}
|
|
2614
|
+
e && this._$AE(t);
|
|
2615
|
+
}
|
|
2616
|
+
willUpdate(e) {}
|
|
2617
|
+
_$AE(e) {
|
|
2618
|
+
this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
2619
|
+
}
|
|
2620
|
+
_$EM() {
|
|
2621
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
2622
|
+
}
|
|
2623
|
+
get updateComplete() {
|
|
2624
|
+
return this.getUpdateComplete();
|
|
2625
|
+
}
|
|
2626
|
+
getUpdateComplete() {
|
|
2627
|
+
return this._$ES;
|
|
2628
|
+
}
|
|
2629
|
+
shouldUpdate(e) {
|
|
2630
|
+
return !0;
|
|
2631
|
+
}
|
|
2632
|
+
update(e) {
|
|
2633
|
+
this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
|
|
2634
|
+
}
|
|
2635
|
+
updated(e) {}
|
|
2636
|
+
firstUpdated(e) {}
|
|
2637
|
+
};
|
|
2638
|
+
Ri.elementStyles = [], Ri.shadowRootOptions = { mode: "open" }, Ri[Pi("elementProperties")] = /* @__PURE__ */ new Map(), Ri[Pi("finalized")] = /* @__PURE__ */ new Map(), Ni?.({ ReactiveElement: Ri }), (Ai.reactiveElementVersions ??= []).push("2.1.1");
|
|
2639
|
+
var zi = globalThis, Bi = zi.trustedTypes, Vi = Bi ? Bi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Hi = "$lit$", Ui = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Ui, Gi = `<${Wi}>`, Ki = document, qi = () => Ki.createComment(""), Ji = (e) => e === null || typeof e != "object" && typeof e != "function", Yi = Array.isArray, Xi = (e) => Yi(e) || typeof e?.[Symbol.iterator] == "function", Zi = "[ \n\f\r]", Qi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $i = /-->/g, ea = />/g, ta = RegExp(`>|${Zi}(?:([^\\s"'>=/]+)(${Zi}*=${Zi}*(?:[^
|
|
2640
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), na = /'/g, ra = /"/g, ia = /^(?:script|style|textarea|title)$/i, aa = ((e) => (t, ...n) => ({
|
|
2641
|
+
_$litType$: e,
|
|
2642
|
+
strings: t,
|
|
2643
|
+
values: n
|
|
2644
|
+
}))(1), oa = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), sa = /* @__PURE__ */ new WeakMap(), ca = Ki.createTreeWalker(Ki, 129);
|
|
2645
|
+
function la(e, t) {
|
|
2646
|
+
if (!Yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
2647
|
+
return Vi === void 0 ? t : Vi.createHTML(t);
|
|
2648
|
+
}
|
|
2649
|
+
var ua = (e, t) => {
|
|
2650
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Qi;
|
|
2651
|
+
for (let t = 0; t < n; t++) {
|
|
2652
|
+
let n = e[t], s, c, l = -1, u = 0;
|
|
2653
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Qi ? c[1] === "!--" ? o = $i : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = ta) : (ia.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = ta) : o = ea : o === ta ? c[0] === ">" ? (o = i ?? Qi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? ta : c[3] === "\"" ? ra : na) : o === ra || o === na ? o = ta : o === $i || o === ea ? o = Qi : (o = ta, i = void 0);
|
|
2654
|
+
let d = o === ta && e[t + 1].startsWith("/>") ? " " : "";
|
|
2655
|
+
a += o === Qi ? n + Gi : l >= 0 ? (r.push(s), n.slice(0, l) + Hi + n.slice(l) + Ui + d) : n + Ui + (l === -2 ? t : d);
|
|
2656
|
+
}
|
|
2657
|
+
return [la(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
2658
|
+
}, da = class e {
|
|
2659
|
+
constructor({ strings: t, _$litType$: n }, r) {
|
|
2660
|
+
let i;
|
|
2661
|
+
this.parts = [];
|
|
2662
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ua(t, n);
|
|
2663
|
+
if (this.el = e.createElement(l, r), ca.currentNode = this.el.content, n === 2 || n === 3) {
|
|
2664
|
+
let e = this.el.content.firstChild;
|
|
2665
|
+
e.replaceWith(...e.childNodes);
|
|
2666
|
+
}
|
|
2667
|
+
for (; (i = ca.nextNode()) !== null && c.length < s;) {
|
|
2668
|
+
if (i.nodeType === 1) {
|
|
2669
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Hi)) {
|
|
2670
|
+
let t = u[o++], n = i.getAttribute(e).split(Ui), r = /([.?@])?(.*)/.exec(t);
|
|
2671
|
+
c.push({
|
|
2672
|
+
type: 1,
|
|
2673
|
+
index: a,
|
|
2674
|
+
name: r[2],
|
|
2675
|
+
strings: n,
|
|
2676
|
+
ctor: r[1] === "." ? ga : r[1] === "?" ? _a : r[1] === "@" ? va : ha
|
|
2677
|
+
}), i.removeAttribute(e);
|
|
2678
|
+
} else e.startsWith(Ui) && (c.push({
|
|
2679
|
+
type: 6,
|
|
2680
|
+
index: a
|
|
2681
|
+
}), i.removeAttribute(e));
|
|
2682
|
+
if (ia.test(i.tagName)) {
|
|
2683
|
+
let e = i.textContent.split(Ui), t = e.length - 1;
|
|
2684
|
+
if (t > 0) {
|
|
2685
|
+
i.textContent = Bi ? Bi.emptyScript : "";
|
|
2686
|
+
for (let n = 0; n < t; n++) i.append(e[n], qi()), ca.nextNode(), c.push({
|
|
2687
|
+
type: 2,
|
|
2688
|
+
index: ++a
|
|
2689
|
+
});
|
|
2690
|
+
i.append(e[t], qi());
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
} else if (i.nodeType === 8) if (i.data === Wi) c.push({
|
|
2694
|
+
type: 2,
|
|
2695
|
+
index: a
|
|
2696
|
+
});
|
|
2697
|
+
else {
|
|
2698
|
+
let e = -1;
|
|
2699
|
+
for (; (e = i.data.indexOf(Ui, e + 1)) !== -1;) c.push({
|
|
2700
|
+
type: 7,
|
|
2701
|
+
index: a
|
|
2702
|
+
}), e += Ui.length - 1;
|
|
2703
|
+
}
|
|
2704
|
+
a++;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
static createElement(e, t) {
|
|
2708
|
+
let n = Ki.createElement("template");
|
|
2709
|
+
return n.innerHTML = e, n;
|
|
2710
|
+
}
|
|
2711
|
+
};
|
|
2712
|
+
function fa(e, t, n = e, r) {
|
|
2713
|
+
if (t === oa) return t;
|
|
2714
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ji(t) ? void 0 : t._$litDirective$;
|
|
2715
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = fa(e, i._$AS(e, t.values), i, r)), t;
|
|
2716
|
+
}
|
|
2717
|
+
var pa = class {
|
|
2718
|
+
constructor(e, t) {
|
|
2719
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
2720
|
+
}
|
|
2721
|
+
get parentNode() {
|
|
2722
|
+
return this._$AM.parentNode;
|
|
2723
|
+
}
|
|
2724
|
+
get _$AU() {
|
|
2725
|
+
return this._$AM._$AU;
|
|
2726
|
+
}
|
|
2727
|
+
u(e) {
|
|
2728
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Ki).importNode(t, !0);
|
|
2729
|
+
ca.currentNode = r;
|
|
2730
|
+
let i = ca.nextNode(), a = 0, o = 0, s = n[0];
|
|
2731
|
+
for (; s !== void 0;) {
|
|
2732
|
+
if (a === s.index) {
|
|
2733
|
+
let t;
|
|
2734
|
+
s.type === 2 ? t = new ma(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ya(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
2735
|
+
}
|
|
2736
|
+
a !== s?.index && (i = ca.nextNode(), a++);
|
|
2737
|
+
}
|
|
2738
|
+
return ca.currentNode = Ki, r;
|
|
2739
|
+
}
|
|
2740
|
+
p(e) {
|
|
2741
|
+
let t = 0;
|
|
2742
|
+
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
2743
|
+
}
|
|
2744
|
+
}, ma = class e {
|
|
2745
|
+
get _$AU() {
|
|
2746
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
2747
|
+
}
|
|
2748
|
+
constructor(e, t, n, r) {
|
|
2749
|
+
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
2750
|
+
}
|
|
2751
|
+
get parentNode() {
|
|
2752
|
+
let e = this._$AA.parentNode, t = this._$AM;
|
|
2753
|
+
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
|
|
2754
|
+
}
|
|
2755
|
+
get startNode() {
|
|
2756
|
+
return this._$AA;
|
|
2757
|
+
}
|
|
2758
|
+
get endNode() {
|
|
2759
|
+
return this._$AB;
|
|
2760
|
+
}
|
|
2761
|
+
_$AI(e, t = this) {
|
|
2762
|
+
e = fa(this, e, t), Ji(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== oa && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Xi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
2763
|
+
}
|
|
2764
|
+
O(e) {
|
|
2765
|
+
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
2766
|
+
}
|
|
2767
|
+
T(e) {
|
|
2768
|
+
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
2769
|
+
}
|
|
2770
|
+
_(e) {
|
|
2771
|
+
this._$AH !== $ && Ji(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ki.createTextNode(e)), this._$AH = e;
|
|
2772
|
+
}
|
|
2773
|
+
$(e) {
|
|
2774
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = da.createElement(la(n.h, n.h[0]), this.options)), n);
|
|
2775
|
+
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
2776
|
+
else {
|
|
2777
|
+
let e = new pa(r, this), n = e.u(this.options);
|
|
2778
|
+
e.p(t), this.T(n), this._$AH = e;
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
_$AC(e) {
|
|
2782
|
+
let t = sa.get(e.strings);
|
|
2783
|
+
return t === void 0 && sa.set(e.strings, t = new da(e)), t;
|
|
2784
|
+
}
|
|
2785
|
+
k(t) {
|
|
2786
|
+
Yi(this._$AH) || (this._$AH = [], this._$AR());
|
|
2787
|
+
let n = this._$AH, r, i = 0;
|
|
2788
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(qi()), this.O(qi()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
2789
|
+
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
2790
|
+
}
|
|
2791
|
+
_$AR(e = this._$AA.nextSibling, t) {
|
|
2792
|
+
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
|
|
2793
|
+
let t = e.nextSibling;
|
|
2794
|
+
e.remove(), e = t;
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
setConnected(e) {
|
|
2798
|
+
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
2799
|
+
}
|
|
2800
|
+
}, ha = class {
|
|
2801
|
+
get tagName() {
|
|
2802
|
+
return this.element.tagName;
|
|
2803
|
+
}
|
|
2804
|
+
get _$AU() {
|
|
2805
|
+
return this._$AM._$AU;
|
|
2806
|
+
}
|
|
2807
|
+
constructor(e, t, n, r, i) {
|
|
2808
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = $;
|
|
2809
|
+
}
|
|
2810
|
+
_$AI(e, t = this, n, r) {
|
|
2811
|
+
let i = this.strings, a = !1;
|
|
2812
|
+
if (i === void 0) e = fa(this, e, t, 0), a = !Ji(e) || e !== this._$AH && e !== oa, a && (this._$AH = e);
|
|
2813
|
+
else {
|
|
2814
|
+
let r = e, o, s;
|
|
2815
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = fa(this, r[n + o], t, o), s === oa && (s = this._$AH[o]), a ||= !Ji(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
2816
|
+
}
|
|
2817
|
+
a && !r && this.j(e);
|
|
2818
|
+
}
|
|
2819
|
+
j(e) {
|
|
2820
|
+
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
2821
|
+
}
|
|
2822
|
+
}, ga = class extends ha {
|
|
2823
|
+
constructor() {
|
|
2824
|
+
super(...arguments), this.type = 3;
|
|
2825
|
+
}
|
|
2826
|
+
j(e) {
|
|
2827
|
+
this.element[this.name] = e === $ ? void 0 : e;
|
|
2828
|
+
}
|
|
2829
|
+
}, _a = class extends ha {
|
|
2830
|
+
constructor() {
|
|
2831
|
+
super(...arguments), this.type = 4;
|
|
2832
|
+
}
|
|
2833
|
+
j(e) {
|
|
2834
|
+
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
2835
|
+
}
|
|
2836
|
+
}, va = class extends ha {
|
|
2837
|
+
constructor(e, t, n, r, i) {
|
|
2838
|
+
super(e, t, n, r, i), this.type = 5;
|
|
2839
|
+
}
|
|
2840
|
+
_$AI(e, t = this) {
|
|
2841
|
+
if ((e = fa(this, e, t, 0) ?? $) === oa) return;
|
|
2842
|
+
let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
|
|
2843
|
+
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
2844
|
+
}
|
|
2845
|
+
handleEvent(e) {
|
|
2846
|
+
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
2847
|
+
}
|
|
2848
|
+
}, ya = class {
|
|
2849
|
+
constructor(e, t, n) {
|
|
2850
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
2851
|
+
}
|
|
2852
|
+
get _$AU() {
|
|
2853
|
+
return this._$AM._$AU;
|
|
2854
|
+
}
|
|
2855
|
+
_$AI(e) {
|
|
2856
|
+
fa(this, e);
|
|
2857
|
+
}
|
|
2858
|
+
}, ba = zi.litHtmlPolyfillSupport;
|
|
2859
|
+
ba?.(da, ma), (zi.litHtmlVersions ??= []).push("3.3.1");
|
|
2860
|
+
var xa = (e, t, n) => {
|
|
2861
|
+
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
2862
|
+
if (i === void 0) {
|
|
2863
|
+
let e = n?.renderBefore ?? null;
|
|
2864
|
+
r._$litPart$ = i = new ma(t.insertBefore(qi(), e), e, void 0, n ?? {});
|
|
2865
|
+
}
|
|
2866
|
+
return i._$AI(e), i;
|
|
2867
|
+
}, Sa = globalThis, Ca = class extends Ri {
|
|
2868
|
+
constructor() {
|
|
2869
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2870
|
+
}
|
|
2871
|
+
createRenderRoot() {
|
|
2872
|
+
let e = super.createRenderRoot();
|
|
2873
|
+
return this.renderOptions.renderBefore ??= e.firstChild, e;
|
|
2874
|
+
}
|
|
2875
|
+
update(e) {
|
|
2876
|
+
let t = this.render();
|
|
2877
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = xa(t, this.renderRoot, this.renderOptions);
|
|
2878
|
+
}
|
|
2879
|
+
connectedCallback() {
|
|
2880
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
2881
|
+
}
|
|
2882
|
+
disconnectedCallback() {
|
|
2883
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
2884
|
+
}
|
|
2885
|
+
render() {
|
|
2886
|
+
return oa;
|
|
2887
|
+
}
|
|
2888
|
+
};
|
|
2889
|
+
Ca._$litElement$ = !0, Ca.finalized = !0, Sa.litElementHydrateSupport?.({ LitElement: Ca });
|
|
2890
|
+
var wa = Sa.litElementPolyfillSupport;
|
|
2891
|
+
wa?.({ LitElement: Ca }), (Sa.litElementVersions ??= []).push("4.2.1");
|
|
2892
|
+
var Ta = (e) => (t, n) => {
|
|
2893
|
+
n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
|
|
2894
|
+
customElements.get(e) || customElements.define(e, t);
|
|
2895
|
+
}));
|
|
2896
|
+
}, Ea = {
|
|
2897
|
+
attribute: !0,
|
|
2898
|
+
type: String,
|
|
2899
|
+
converter: Fi,
|
|
2900
|
+
reflect: !1,
|
|
2901
|
+
hasChanged: Ii
|
|
2902
|
+
}, Da = (e = Ea, t, n) => {
|
|
2903
|
+
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
2904
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
2905
|
+
let { name: r } = n;
|
|
2906
|
+
return {
|
|
2907
|
+
set(n) {
|
|
2908
|
+
let i = t.get.call(this);
|
|
2909
|
+
t.set.call(this, n), this.requestUpdate(r, i, e);
|
|
2910
|
+
},
|
|
2911
|
+
init(t) {
|
|
2912
|
+
return t !== void 0 && this.C(r, void 0, e, t), t;
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
if (r === "setter") {
|
|
2917
|
+
let { name: r } = n;
|
|
2918
|
+
return function(n) {
|
|
2919
|
+
let i = this[r];
|
|
2920
|
+
t.call(this, n), this.requestUpdate(r, i, e);
|
|
2921
|
+
};
|
|
2922
|
+
}
|
|
2923
|
+
throw Error("Unsupported decorator location: " + r);
|
|
2924
|
+
};
|
|
2925
|
+
function Oa(e) {
|
|
2926
|
+
return (t, n) => typeof n == "object" ? Da(e, t, n) : ((e, t, n) => {
|
|
2927
|
+
let r = t.hasOwnProperty(n);
|
|
2928
|
+
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
2929
|
+
})(e, t, n);
|
|
2930
|
+
}
|
|
2931
|
+
var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t, n, r) => {
|
|
2932
|
+
for (var i = r > 1 ? void 0 : r ? Aa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
|
|
2933
|
+
return r && i && ka(t, n, i), i;
|
|
2934
|
+
}, Ma = class extends Ca {
|
|
2935
|
+
constructor() {
|
|
2936
|
+
super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
|
|
2937
|
+
}
|
|
2938
|
+
createRenderRoot() {
|
|
2939
|
+
return this;
|
|
2940
|
+
}
|
|
2941
|
+
connectedCallback() {
|
|
2942
|
+
if (super.connectedCallback(), !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
2943
|
+
let e = document.createElement("link");
|
|
2944
|
+
e.rel = "stylesheet", e.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(e);
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
set shape(e) {
|
|
2948
|
+
this.type = e;
|
|
2949
|
+
}
|
|
2950
|
+
get shape() {
|
|
2951
|
+
return this.type;
|
|
2952
|
+
}
|
|
2953
|
+
get buttonClasses() {
|
|
2954
|
+
return [
|
|
2955
|
+
"nds-icon-button",
|
|
2956
|
+
`nds-icon-button--${this.variant}`,
|
|
2957
|
+
`nds-icon-button--${this.size}`,
|
|
2958
|
+
`nds-icon-button--${this.type}`,
|
|
2959
|
+
this.state === "default" ? "" : `nds-icon-button--${this.state}`,
|
|
2960
|
+
this.disabled ? "nds-icon-button--disabled" : ""
|
|
2961
|
+
].filter(Boolean).join(" ");
|
|
2962
|
+
}
|
|
2963
|
+
handleClick(e) {
|
|
2964
|
+
if (this.disabled) {
|
|
2965
|
+
e.preventDefault(), e.stopPropagation();
|
|
2966
|
+
return;
|
|
2967
|
+
}
|
|
2968
|
+
this.dispatchEvent(new CustomEvent("icon-button-click", {
|
|
2969
|
+
bubbles: !0,
|
|
2970
|
+
composed: !0,
|
|
2971
|
+
detail: { originalEvent: e }
|
|
2972
|
+
}));
|
|
2973
|
+
}
|
|
2974
|
+
render() {
|
|
2975
|
+
return aa`
|
|
2976
|
+
<style>
|
|
2977
|
+
nds-icon-button {
|
|
2978
|
+
display: inline-block;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
.nds-icon-button {
|
|
2982
|
+
display: inline-flex;
|
|
2983
|
+
align-items: center;
|
|
2984
|
+
justify-content: center;
|
|
2985
|
+
cursor: pointer;
|
|
2986
|
+
font-family: var(--font-family-roboto, "Roboto", sans-serif);
|
|
2987
|
+
font-weight: var(--font-weight-regular, 400);
|
|
2988
|
+
line-height: 1;
|
|
2989
|
+
text-decoration: none;
|
|
2990
|
+
background: none;
|
|
2991
|
+
position: relative;
|
|
2992
|
+
box-sizing: border-box;
|
|
2993
|
+
margin: 0;
|
|
2994
|
+
padding: 0;
|
|
2995
|
+
border: none;
|
|
2996
|
+
transition: background-color 0.2s ease-in-out,
|
|
2997
|
+
color 0.2s ease-in-out,
|
|
2998
|
+
box-shadow 0.2s ease-in-out;
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
/* ── Sizes ── */
|
|
3002
|
+
.nds-icon-button--small {
|
|
3003
|
+
width: var(--height-32, 32px);
|
|
3004
|
+
height: var(--height-32, 32px);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
.nds-icon-button--medium {
|
|
3008
|
+
width: var(--height-36, 36px);
|
|
3009
|
+
height: var(--height-36, 36px);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.nds-icon-button--default {
|
|
3013
|
+
width: var(--height-40, 40px);
|
|
3014
|
+
height: var(--height-40, 40px);
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
.nds-icon-button--large {
|
|
3018
|
+
width: var(--height-48, 48px);
|
|
3019
|
+
height: var(--height-48, 48px);
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
/* ── Shapes ── */
|
|
3023
|
+
.nds-icon-button--circle {
|
|
3024
|
+
border-radius: var(--radius-circle, 50%);
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
.nds-icon-button--rounded {
|
|
3028
|
+
border-radius: var(--radius-8, 8px);
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
/* ── Primary ── */
|
|
3032
|
+
.nds-icon-button--primary {
|
|
3033
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
3034
|
+
color: var(--color-primary-white, #ffffff);
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
.nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3038
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
.nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3042
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
/* ── Secondary ── */
|
|
3046
|
+
.nds-icon-button--secondary {
|
|
3047
|
+
background-color: var(--color-primary-white, #ffffff);
|
|
3048
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
3049
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
.nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3053
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
3054
|
+
color: var(--color-primary-white, #ffffff);
|
|
3055
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
.nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3059
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
3060
|
+
color: var(--color-primary-white, #ffffff);
|
|
3061
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
/* ── Tertiary ── */
|
|
3065
|
+
.nds-icon-button--tertiary {
|
|
3066
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
3067
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
.nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3071
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3075
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
/* ── Ghost ── */
|
|
3079
|
+
.nds-icon-button--ghost {
|
|
3080
|
+
background-color: transparent;
|
|
3081
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
.nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3085
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
3086
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
.nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3090
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
3091
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
/* ── Dark (for dark backgrounds) ── */
|
|
3095
|
+
.nds-icon-button--dark {
|
|
3096
|
+
background-color: transparent;
|
|
3097
|
+
color: var(--color-primary-white, #ffffff);
|
|
3098
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
.nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3102
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
3103
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
.nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
3107
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
3108
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
/* ── Disabled ── */
|
|
3112
|
+
.nds-icon-button--disabled,
|
|
3113
|
+
.nds-icon-button:disabled {
|
|
3114
|
+
opacity: 0.5;
|
|
3115
|
+
cursor: not-allowed;
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
/* ── Icon sizing ── */
|
|
3119
|
+
.nds-icon-button__icon {
|
|
3120
|
+
line-height: 1;
|
|
3121
|
+
display: inline-flex;
|
|
3122
|
+
align-items: center;
|
|
3123
|
+
justify-content: center;
|
|
3124
|
+
color: inherit;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
.nds-icon-button--small .nds-icon-button__icon {
|
|
3128
|
+
font-size: var(--nds-icon-small, 12px);
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
.nds-icon-button--medium .nds-icon-button__icon {
|
|
3132
|
+
font-size: var(--nds-icon-medium, 14px);
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
.nds-icon-button--default .nds-icon-button__icon {
|
|
3136
|
+
font-size: var(--nds-icon-default, 16px);
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
.nds-icon-button--large .nds-icon-button__icon {
|
|
3140
|
+
font-size: var(--nds-icon-large, 20px);
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
/* ── Focus ── */
|
|
3144
|
+
.nds-icon-button:focus-visible {
|
|
3145
|
+
outline: 2px solid var(--color-focus-blue, #2b87ff);
|
|
3146
|
+
outline-offset: 2px;
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
/* ── Reduced motion ── */
|
|
3150
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3151
|
+
.nds-icon-button {
|
|
3152
|
+
transition: none;
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
</style>
|
|
3156
|
+
<button
|
|
3157
|
+
type="button"
|
|
3158
|
+
class="${this.buttonClasses}"
|
|
3159
|
+
?disabled="${this.disabled}"
|
|
3160
|
+
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
3161
|
+
aria-label="${this.buttonAriaLabel}"
|
|
3162
|
+
@click="${this.handleClick}"
|
|
3163
|
+
>
|
|
3164
|
+
<i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
|
|
3165
|
+
</button>
|
|
3166
|
+
`;
|
|
3167
|
+
}
|
|
3168
|
+
};
|
|
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
|
+
//#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
|
|
2359
3203
|
//#region tool-tts-inline.svelte
|
|
2360
|
-
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 = {
|
|
2361
3205
|
hash: "svelte-18mzc0g",
|
|
2362
|
-
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;}.pie-tool-tts-inline__trigger.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)));background-color:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #333));border-radius:0.25rem;cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:hover:not(:disabled),\n .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__trigger.svelte-18mzc0g:active:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus-visible,\n .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__trigger--active.svelte-18mzc0g {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g:hover:not(:disabled) {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.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);max-width:min(100vw - 1rem, 32rem);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:100%;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--compact.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {display:none;}.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;}.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;min-width:2.75rem;height:2rem;padding:0 0.625rem;font-size:0.75rem;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;}.pie-tool-tts-inline__more.svelte-18mzc0g {position:relative;display:inline-flex;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g {position:absolute;z-index:3;top:calc(100% + 0.25rem);right:0;display:flex;flex-direction:column;min-width:10rem;padding:0.25rem;border:1px solid var(--pie-border, #d0d0d0);border-radius:0.375rem;background:var(--pie-surface, var(--pie-background, #fff));box-shadow:0 0.25rem 0.75rem color-mix(in srgb, var(--pie-shadow, #000) 18%, transparent);}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g) {display:flex;align-items:center;justify-content:flex-start;width:100%;padding:0.5rem 0.625rem;border:0;border-radius:0.25rem;background:transparent;color:var(--pie-button-color, var(--pie-text, #222));font:inherit;text-align:left;cursor:pointer;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):focus-visible {background:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:disabled,\n .pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {width:2rem;height:2rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.25rem;height:1.25rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {width:2.5rem;height:2.5rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.5rem;height:1.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {\n /* Default explicit size so control-button icons (rewind/fast-forward/stop)\n render in WebKit, which sizes an inline SVG that has only a viewBox (no\n width/height attributes) to 0. The play/pause trigger icon already works\n because the __trigger--sm/md/lg rules below set these dimensions; this\n gives the control-panel icons the same treatment. Keep the SVG's default\n inline display — forcing display:block makes WebKit collapse it to 0. */width:1.25rem;height:1.25rem;fill:currentColor;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.1875rem 0.375rem;}.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__trigger--md.svelte-18mzc0g,\n .pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\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__trigger.svelte-18mzc0g,\n .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 }"
|
|
2363
3207
|
};
|
|
2364
|
-
function
|
|
2365
|
-
|
|
2366
|
-
let s =
|
|
2367
|
-
|
|
3208
|
+
function Ga(a, o) {
|
|
3209
|
+
ze(o, !0), Wr(a, Wa);
|
|
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 = () => {
|
|
3211
|
+
if (!(!p || y)) {
|
|
3212
|
+
if (y = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
3213
|
+
let e = document.createElement("link");
|
|
3214
|
+
e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
|
|
3215
|
+
}
|
|
3216
|
+
if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => v.test(e.href))) {
|
|
3217
|
+
if (!document.querySelector(`link[href="${_}"]`)) {
|
|
3218
|
+
let e = document.createElement("link");
|
|
3219
|
+
e.rel = "stylesheet", e.href = _, document.head.appendChild(e);
|
|
3220
|
+
}
|
|
3221
|
+
for (let e of g) {
|
|
3222
|
+
if (document.querySelector(`link[href="${e}"]`)) continue;
|
|
3223
|
+
let t = document.createElement("link");
|
|
3224
|
+
t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
}, b = "__pieFaTtsShadowInstalled", x = (e) => {
|
|
3229
|
+
let t = e.getRootNode();
|
|
3230
|
+
if (!(t instanceof ShadowRoot)) return;
|
|
3231
|
+
let n = t;
|
|
3232
|
+
if (n[b]) return;
|
|
3233
|
+
n[b] = !0;
|
|
3234
|
+
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
3235
|
+
if (!e || r.has(e)) return;
|
|
3236
|
+
r.add(e);
|
|
3237
|
+
let n = document.createElement("link");
|
|
3238
|
+
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
3239
|
+
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => v.test(e.href));
|
|
3240
|
+
for (let e of a) i(e.href);
|
|
3241
|
+
}, S = (e) => {
|
|
3242
|
+
ee(), x(e);
|
|
3243
|
+
let t = () => {
|
|
3244
|
+
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
3245
|
+
};
|
|
3246
|
+
t();
|
|
3247
|
+
let n = new MutationObserver(t);
|
|
3248
|
+
return n.observe(e, {
|
|
3249
|
+
childList: !0,
|
|
3250
|
+
subtree: !0,
|
|
3251
|
+
attributes: !0,
|
|
3252
|
+
attributeFilter: ["class"]
|
|
3253
|
+
}), { destroy() {
|
|
3254
|
+
n.disconnect();
|
|
3255
|
+
} };
|
|
3256
|
+
}, C = (e, t) => {
|
|
3257
|
+
let n = t, r = () => {
|
|
3258
|
+
let t = e.querySelector("button");
|
|
3259
|
+
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
3260
|
+
};
|
|
3261
|
+
r();
|
|
3262
|
+
let i = new MutationObserver(r);
|
|
3263
|
+
return i.observe(e, {
|
|
3264
|
+
childList: !0,
|
|
3265
|
+
subtree: !0
|
|
3266
|
+
}), {
|
|
3267
|
+
update(e) {
|
|
3268
|
+
n = e, r();
|
|
3269
|
+
},
|
|
3270
|
+
destroy() {
|
|
3271
|
+
i.disconnect();
|
|
3272
|
+
}
|
|
3273
|
+
};
|
|
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() {
|
|
2368
3276
|
if (!p) return null;
|
|
2369
3277
|
let e = window[m];
|
|
2370
3278
|
return typeof e == "string" ? e : null;
|
|
2371
3279
|
}
|
|
2372
|
-
function
|
|
2373
|
-
return
|
|
3280
|
+
function Ce() {
|
|
3281
|
+
return Se() === ye;
|
|
2374
3282
|
}
|
|
2375
|
-
function
|
|
3283
|
+
function we(e, t) {
|
|
2376
3284
|
p && window.dispatchEvent(new CustomEvent(h, { detail: {
|
|
2377
3285
|
ownerId: e,
|
|
2378
3286
|
previousOwnerId: t
|
|
2379
3287
|
} }));
|
|
2380
3288
|
}
|
|
2381
|
-
function
|
|
3289
|
+
function Te() {
|
|
2382
3290
|
if (!p) return;
|
|
2383
|
-
let e =
|
|
2384
|
-
e !==
|
|
3291
|
+
let e = Se();
|
|
3292
|
+
e !== ye && (window[m] = ye, we(ye, e));
|
|
2385
3293
|
}
|
|
2386
|
-
function
|
|
2387
|
-
p &&
|
|
3294
|
+
function Ee() {
|
|
3295
|
+
p && Se() === ye && (delete window[m], we(null, ye));
|
|
2388
3296
|
}
|
|
2389
|
-
function
|
|
2390
|
-
|
|
3297
|
+
function De(e = "", t = !1) {
|
|
3298
|
+
W(A, !1), W(j, !1), W(N, 0), W(k, t, !0), W(M, e, !0);
|
|
2391
3299
|
}
|
|
2392
|
-
function
|
|
3300
|
+
function P(e) {
|
|
2393
3301
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
2394
3302
|
}
|
|
2395
|
-
function
|
|
3303
|
+
function F(e) {
|
|
2396
3304
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
2397
3305
|
}
|
|
2398
|
-
async function
|
|
3306
|
+
async function I(e, t) {
|
|
2399
3307
|
if (typeof e.setPlaybackRate == "function") {
|
|
2400
3308
|
await e.setPlaybackRate(t);
|
|
2401
3309
|
return;
|
|
2402
3310
|
}
|
|
2403
3311
|
await e.updateSettings({ rate: t });
|
|
2404
3312
|
}
|
|
2405
|
-
function
|
|
2406
|
-
if (!Z(
|
|
2407
|
-
let t = Z(
|
|
2408
|
-
t instanceof ShadowRoot
|
|
3313
|
+
function L(e) {
|
|
3314
|
+
if (!Z(w) || !e) return;
|
|
3315
|
+
let t = Z(w).getRootNode();
|
|
3316
|
+
if (!(t instanceof ShadowRoot)) return;
|
|
3317
|
+
let n = t.querySelector(".pie-tool-tts-inline__trigger");
|
|
3318
|
+
(n?.querySelector("button") ?? n)?.focus();
|
|
2409
3319
|
}
|
|
2410
|
-
function
|
|
2411
|
-
if (!Z(
|
|
2412
|
-
|
|
3320
|
+
function Oe(e = "Reading switched to another section", t = !1) {
|
|
3321
|
+
if (!Z(ue) && !(!Z(k) && !Ce())) {
|
|
3322
|
+
W(ue, !0);
|
|
2413
3323
|
try {
|
|
2414
3324
|
let n = (() => {
|
|
2415
|
-
if (!Z(
|
|
2416
|
-
let e = Z(
|
|
3325
|
+
if (!Z(w) || !Z(T)) return !1;
|
|
3326
|
+
let e = Z(w).getRootNode();
|
|
2417
3327
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2418
3328
|
let t = e.activeElement;
|
|
2419
|
-
return !!(t && Z(
|
|
3329
|
+
return !!(t && Z(T).contains(t));
|
|
2420
3330
|
})();
|
|
2421
|
-
|
|
2422
|
-
|
|
3331
|
+
Ce() && Ee(), De(e), Le(), t && queueMicrotask(() => {
|
|
3332
|
+
L(n);
|
|
2423
3333
|
});
|
|
2424
3334
|
} finally {
|
|
2425
|
-
|
|
3335
|
+
W(ue, !1);
|
|
2426
3336
|
}
|
|
2427
3337
|
}
|
|
2428
3338
|
}
|
|
2429
3339
|
gn(() => {
|
|
2430
|
-
if (Z(
|
|
2431
|
-
|
|
3340
|
+
if (Z(w)) return n(Z(w), (e) => {
|
|
3341
|
+
W(ne, e, !0);
|
|
2432
3342
|
});
|
|
2433
3343
|
}), gn(() => {
|
|
2434
|
-
if (!Z(
|
|
2435
|
-
let e = r(Z(
|
|
2436
|
-
|
|
2437
|
-
}), n = t(Z(
|
|
2438
|
-
|
|
3344
|
+
if (!Z(w)) return;
|
|
3345
|
+
let e = r(Z(w), (e) => {
|
|
3346
|
+
W(E, e, !0);
|
|
3347
|
+
}), n = t(Z(w), (e) => {
|
|
3348
|
+
W(ie, e, !0);
|
|
2439
3349
|
});
|
|
2440
3350
|
return () => {
|
|
2441
3351
|
n(), e();
|
|
2442
3352
|
};
|
|
2443
3353
|
}), gn(() => {
|
|
2444
|
-
if (!Z(
|
|
3354
|
+
if (!Z(D)) return;
|
|
2445
3355
|
let e = (e) => {
|
|
2446
|
-
if (!Z(
|
|
2447
|
-
|
|
3356
|
+
if (!Z(k) || !Ce()) {
|
|
3357
|
+
W(A, !1), W(j, !1);
|
|
2448
3358
|
return;
|
|
2449
3359
|
}
|
|
2450
|
-
|
|
3360
|
+
W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
|
|
2451
3361
|
}, t = (t) => {
|
|
2452
3362
|
e(t);
|
|
2453
3363
|
};
|
|
2454
|
-
return Z(
|
|
2455
|
-
Z(
|
|
3364
|
+
return Z(D).onStateChange(be, t), e(Z(D).getState()), () => {
|
|
3365
|
+
Z(D).offStateChange(be, t);
|
|
2456
3366
|
};
|
|
2457
3367
|
}), gn(() => {
|
|
2458
3368
|
if (!p) return;
|
|
2459
3369
|
let e = (e) => {
|
|
2460
3370
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
2461
|
-
n ===
|
|
3371
|
+
n === ye && t !== ye && Oe("Reading switched to another section");
|
|
2462
3372
|
};
|
|
2463
3373
|
return window.addEventListener(h, e), () => {
|
|
2464
3374
|
window.removeEventListener(h, e);
|
|
@@ -2466,241 +3376,191 @@ function Ci(a, o) {
|
|
|
2466
3376
|
}), gn(() => {
|
|
2467
3377
|
if (!p) return;
|
|
2468
3378
|
let t = () => {
|
|
2469
|
-
|
|
3379
|
+
Oe("Reading switched to another section", !0);
|
|
2470
3380
|
};
|
|
2471
3381
|
return window.addEventListener(e, t), () => {
|
|
2472
3382
|
window.removeEventListener(e, t);
|
|
2473
3383
|
};
|
|
2474
3384
|
}), gn(() => () => {
|
|
2475
|
-
|
|
3385
|
+
Ee(), Le();
|
|
2476
3386
|
});
|
|
2477
|
-
async function
|
|
2478
|
-
if (!Z(
|
|
3387
|
+
async function Ae() {
|
|
3388
|
+
if (!Z(D)) return !1;
|
|
2479
3389
|
try {
|
|
2480
|
-
return await Z(
|
|
3390
|
+
return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
2481
3391
|
} catch (e) {
|
|
2482
3392
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
2483
3393
|
}
|
|
2484
3394
|
}
|
|
2485
|
-
function
|
|
2486
|
-
return Z(
|
|
3395
|
+
function je() {
|
|
3396
|
+
return Z(T) ? Array.from(Z(T).querySelectorAll("[data-pie-tts-control]")).filter((e) => window.getComputedStyle(e).display !== "none") : [];
|
|
2487
3397
|
}
|
|
2488
|
-
function
|
|
2489
|
-
let t =
|
|
3398
|
+
function Me(e) {
|
|
3399
|
+
let t = je();
|
|
2490
3400
|
if (!t.length) return;
|
|
2491
3401
|
let n = (e + t.length) % t.length;
|
|
2492
|
-
|
|
3402
|
+
W(N, n), t[n].focus();
|
|
2493
3403
|
}
|
|
2494
|
-
function
|
|
2495
|
-
let t =
|
|
3404
|
+
function Ne(e) {
|
|
3405
|
+
let t = je();
|
|
2496
3406
|
if (t.length) switch (e.key) {
|
|
2497
3407
|
case "ArrowDown":
|
|
2498
3408
|
case "ArrowRight":
|
|
2499
|
-
e.preventDefault(),
|
|
3409
|
+
e.preventDefault(), Me(Z(N) + 1);
|
|
2500
3410
|
break;
|
|
2501
3411
|
case "ArrowUp":
|
|
2502
3412
|
case "ArrowLeft":
|
|
2503
|
-
e.preventDefault(),
|
|
3413
|
+
e.preventDefault(), Me(Z(N) - 1);
|
|
2504
3414
|
break;
|
|
2505
3415
|
case "Home":
|
|
2506
|
-
e.preventDefault(),
|
|
3416
|
+
e.preventDefault(), Me(0);
|
|
2507
3417
|
break;
|
|
2508
3418
|
case "End":
|
|
2509
|
-
e.preventDefault(),
|
|
3419
|
+
e.preventDefault(), Me(t.length - 1);
|
|
2510
3420
|
break;
|
|
2511
3421
|
}
|
|
2512
3422
|
}
|
|
2513
|
-
function
|
|
2514
|
-
if (!Z(
|
|
2515
|
-
let e = Z(
|
|
3423
|
+
function Pe() {
|
|
3424
|
+
if (!Z(ae)) return null;
|
|
3425
|
+
let e = Z(ae);
|
|
2516
3426
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
2517
3427
|
let t = e.querySelector?.("[data-region='content']");
|
|
2518
3428
|
return t instanceof Element ? t : e;
|
|
2519
3429
|
}
|
|
2520
|
-
function
|
|
2521
|
-
if (Z(
|
|
3430
|
+
function Fe() {
|
|
3431
|
+
if (Z(E)) return Z(E).kind === "passage" ? {
|
|
2522
3432
|
ownerKind: "passage",
|
|
2523
|
-
assessmentId: Z(
|
|
2524
|
-
sectionId: Z(
|
|
2525
|
-
passageId: Z(
|
|
3433
|
+
assessmentId: Z(ne)?.assessmentId || "",
|
|
3434
|
+
sectionId: Z(ne)?.sectionId || "",
|
|
3435
|
+
passageId: Z(E).canonicalItemId || Z(E).itemId
|
|
2526
3436
|
} : {
|
|
2527
3437
|
ownerKind: "itemModel",
|
|
2528
|
-
assessmentId: Z(
|
|
2529
|
-
sectionId: Z(
|
|
2530
|
-
itemId: Z(
|
|
2531
|
-
canonicalItemId: Z(
|
|
3438
|
+
assessmentId: Z(ne)?.assessmentId || "",
|
|
3439
|
+
sectionId: Z(ne)?.sectionId || "",
|
|
3440
|
+
itemId: Z(E).itemId,
|
|
3441
|
+
canonicalItemId: Z(E).canonicalItemId || Z(E).itemId
|
|
2532
3442
|
};
|
|
2533
3443
|
}
|
|
2534
|
-
function
|
|
2535
|
-
return
|
|
3444
|
+
function Ie(e) {
|
|
3445
|
+
return Le(), de = Z(D)?.setHighlightTargetResolverProvider?.(() => ({
|
|
2536
3446
|
context: {
|
|
2537
|
-
scopeElement: Z(
|
|
2538
|
-
kind: Z(
|
|
2539
|
-
itemId: Z(
|
|
2540
|
-
canonicalItemId: Z(
|
|
2541
|
-
contentKind: Z(
|
|
2542
|
-
regionPolicy: Z(
|
|
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
|
|
2543
3453
|
},
|
|
2544
|
-
resolver: Z(
|
|
2545
|
-
})) || null,
|
|
3454
|
+
resolver: Z(ie)?.ttsHighlightTargetResolver || null
|
|
3455
|
+
})) || null, de;
|
|
2546
3456
|
}
|
|
2547
|
-
function
|
|
2548
|
-
e?.(), e ===
|
|
3457
|
+
function Le(e = de) {
|
|
3458
|
+
e?.(), e === de && (de = null);
|
|
2549
3459
|
}
|
|
2550
|
-
function
|
|
2551
|
-
if (!
|
|
2552
|
-
let e = String(Z(
|
|
3460
|
+
function R() {
|
|
3461
|
+
if (!Ce()) return !1;
|
|
3462
|
+
let e = String(Z(D)?.getState?.() || "");
|
|
2553
3463
|
return e === "playing" || e === "paused" || e === "loading";
|
|
2554
3464
|
}
|
|
2555
|
-
async function
|
|
2556
|
-
if (!Z(
|
|
2557
|
-
let e =
|
|
3465
|
+
async function Re() {
|
|
3466
|
+
if (!Z(D)) return;
|
|
3467
|
+
let e = Pe();
|
|
2558
3468
|
if (!e) {
|
|
2559
3469
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
2560
3470
|
return;
|
|
2561
3471
|
}
|
|
2562
3472
|
try {
|
|
2563
|
-
|
|
3473
|
+
W(k, !0);
|
|
2564
3474
|
let t = e.textContent || "";
|
|
2565
3475
|
if (!t) {
|
|
2566
3476
|
console.warn("[TTS Inline] No text content found");
|
|
2567
3477
|
return;
|
|
2568
3478
|
}
|
|
2569
|
-
Z(
|
|
2570
|
-
let n =
|
|
2571
|
-
Z(
|
|
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, {
|
|
2572
3482
|
catalogId: s() || void 0,
|
|
2573
|
-
catalogContext:
|
|
3483
|
+
catalogContext: Fe(),
|
|
2574
3484
|
language: c(),
|
|
2575
3485
|
contentElement: e
|
|
2576
3486
|
}).catch((e) => {
|
|
2577
|
-
console.error("[TTS Inline] Error:", e),
|
|
3487
|
+
console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le(n);
|
|
2578
3488
|
}).finally(() => {
|
|
2579
|
-
|
|
3489
|
+
R() || Le(n);
|
|
2580
3490
|
});
|
|
2581
3491
|
} catch (e) {
|
|
2582
|
-
console.error("[TTS Inline] Error:", e),
|
|
3492
|
+
console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le();
|
|
2583
3493
|
}
|
|
2584
3494
|
}
|
|
2585
|
-
async function
|
|
2586
|
-
if (Z(
|
|
2587
|
-
if (
|
|
2588
|
-
Z(
|
|
3495
|
+
async function Ve() {
|
|
3496
|
+
if (Z(D)) {
|
|
3497
|
+
if (Ce() && Z(j)) {
|
|
3498
|
+
Z(D).resume(), W(M, "Reading resumed");
|
|
2589
3499
|
return;
|
|
2590
3500
|
}
|
|
2591
|
-
if (
|
|
2592
|
-
Z(
|
|
3501
|
+
if (Ce() && Z(A) && !Z(j)) {
|
|
3502
|
+
Z(D).pause(), W(M, "Reading paused");
|
|
2593
3503
|
return;
|
|
2594
3504
|
}
|
|
2595
|
-
if (!Z(
|
|
2596
|
-
|
|
3505
|
+
if (!Z(le)) {
|
|
3506
|
+
W(le, !0);
|
|
2597
3507
|
try {
|
|
2598
|
-
if (
|
|
2599
|
-
|
|
3508
|
+
if (W(M, "Initializing text-to-speech"), !await Ae()) {
|
|
3509
|
+
W(M, "Unable to initialize text-to-speech. Try again.");
|
|
2600
3510
|
return;
|
|
2601
3511
|
}
|
|
2602
|
-
let e = String(Z(
|
|
2603
|
-
(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();
|
|
2604
3514
|
} finally {
|
|
2605
|
-
|
|
3515
|
+
W(le, !1);
|
|
2606
3516
|
}
|
|
2607
3517
|
}
|
|
2608
3518
|
}
|
|
2609
3519
|
}
|
|
2610
|
-
function
|
|
2611
|
-
Z(
|
|
2612
|
-
}
|
|
2613
|
-
function Fe() {
|
|
2614
|
-
if (!Z(g)) return [];
|
|
2615
|
-
let e = Z(g).getRootNode();
|
|
2616
|
-
return e instanceof ShadowRoot ? Array.from(e.querySelectorAll("[data-pie-tts-more-control]")) : [];
|
|
2617
|
-
}
|
|
2618
|
-
function Ie(e) {
|
|
2619
|
-
let t = Fe().filter((e) => !e.disabled);
|
|
2620
|
-
t.length && t[(e + t.length) % t.length].focus();
|
|
2621
|
-
}
|
|
2622
|
-
function Le() {
|
|
2623
|
-
H(T, !0), queueMicrotask(() => {
|
|
2624
|
-
Ie(0);
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
function Re() {
|
|
2628
|
-
if (Z(T)) {
|
|
2629
|
-
F();
|
|
2630
|
-
return;
|
|
2631
|
-
}
|
|
2632
|
-
Le();
|
|
2633
|
-
}
|
|
2634
|
-
function F() {
|
|
2635
|
-
H(T, !1);
|
|
3520
|
+
function He() {
|
|
3521
|
+
Z(D) && (Z(D).stop(), Ee(), De("Reading stopped"), Z(O) && Z(O).clearTTS(), Le());
|
|
2636
3522
|
}
|
|
2637
|
-
function
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
case "ArrowDown":
|
|
2641
|
-
case "ArrowRight":
|
|
2642
|
-
e.preventDefault(), Ie(n + 1);
|
|
2643
|
-
break;
|
|
2644
|
-
case "ArrowUp":
|
|
2645
|
-
case "ArrowLeft":
|
|
2646
|
-
e.preventDefault(), Ie(n - 1);
|
|
2647
|
-
break;
|
|
2648
|
-
case "Home":
|
|
2649
|
-
e.preventDefault(), Ie(0);
|
|
2650
|
-
break;
|
|
2651
|
-
case "End":
|
|
2652
|
-
e.preventDefault(), Ie(t.length - 1);
|
|
2653
|
-
break;
|
|
2654
|
-
case "Escape": {
|
|
2655
|
-
e.preventDefault(), F();
|
|
2656
|
-
let t = Z(g)?.getRootNode();
|
|
2657
|
-
if (!(t instanceof ShadowRoot)) return;
|
|
2658
|
-
t.querySelector(".pie-tool-tts-inline__more-button")?.focus();
|
|
2659
|
-
break;
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
async function I() {
|
|
2664
|
-
if (!(!Z(x) || !Z(E))) try {
|
|
2665
|
-
await Z(x).seekForward?.(1), H(O, "Skipped forward");
|
|
3523
|
+
async function Ue() {
|
|
3524
|
+
if (!(!Z(D) || !Z(A))) try {
|
|
3525
|
+
await Z(D).seekForward?.(1), W(M, "Skipped forward");
|
|
2666
3526
|
} catch (e) {
|
|
2667
|
-
console.error("[TTS Inline] Seek forward failed:", e),
|
|
3527
|
+
console.error("[TTS Inline] Seek forward failed:", e), W(M, "Unable to skip forward");
|
|
2668
3528
|
}
|
|
2669
3529
|
}
|
|
2670
|
-
async function
|
|
2671
|
-
if (!(!Z(
|
|
2672
|
-
await Z(
|
|
3530
|
+
async function We() {
|
|
3531
|
+
if (!(!Z(D) || !Z(A))) try {
|
|
3532
|
+
await Z(D).seekBackward?.(1), W(M, "Skipped backward");
|
|
2673
3533
|
} catch (e) {
|
|
2674
|
-
console.error("[TTS Inline] Seek backward failed:", e),
|
|
3534
|
+
console.error("[TTS Inline] Seek backward failed:", e), W(M, "Unable to skip backward");
|
|
2675
3535
|
}
|
|
2676
3536
|
}
|
|
2677
|
-
async function
|
|
2678
|
-
let t = Z(
|
|
3537
|
+
async function Ge(e) {
|
|
3538
|
+
let t = Z(D);
|
|
2679
3539
|
if (!t) return;
|
|
2680
|
-
if (Z(
|
|
2681
|
-
|
|
3540
|
+
if (Z(ve) === e.rate) {
|
|
3541
|
+
W(M, `Playback speed ${e.label}`);
|
|
2682
3542
|
return;
|
|
2683
3543
|
}
|
|
2684
|
-
let n = Z(
|
|
2685
|
-
|
|
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}`);
|
|
2686
3546
|
try {
|
|
2687
|
-
await
|
|
3547
|
+
await I(t, e.rate);
|
|
2688
3548
|
} catch (e) {
|
|
2689
|
-
console.error("[TTS Inline] Playback speed change failed:", e),
|
|
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");
|
|
2690
3550
|
}
|
|
2691
3551
|
}
|
|
2692
|
-
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);
|
|
2693
3553
|
gn(() => {
|
|
2694
|
-
let e = Z(
|
|
2695
|
-
if (!e || !n || !
|
|
3554
|
+
let e = Z(D), t = Z(ve), n = Z(A) || Z(j);
|
|
3555
|
+
if (!e || !n || !Ce()) return;
|
|
2696
3556
|
let r = !1;
|
|
2697
3557
|
return queueMicrotask(() => {
|
|
2698
|
-
r ||
|
|
3558
|
+
r || I(e, t);
|
|
2699
3559
|
}), () => {
|
|
2700
3560
|
r = !0;
|
|
2701
3561
|
};
|
|
2702
3562
|
});
|
|
2703
|
-
function
|
|
3563
|
+
function $e(e, t) {
|
|
2704
3564
|
let n = e;
|
|
2705
3565
|
for (; n;) {
|
|
2706
3566
|
if (n.matches?.(t)) return n;
|
|
@@ -2708,56 +3568,56 @@ function Ci(a, o) {
|
|
|
2708
3568
|
}
|
|
2709
3569
|
return null;
|
|
2710
3570
|
}
|
|
2711
|
-
function
|
|
2712
|
-
let e = Z(
|
|
3571
|
+
function et() {
|
|
3572
|
+
let e = Z(w)?.getRootNode();
|
|
2713
3573
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
2714
3574
|
}
|
|
2715
|
-
function
|
|
3575
|
+
function tt(e) {
|
|
2716
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");
|
|
2717
3577
|
return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
|
|
2718
3578
|
}
|
|
2719
|
-
function
|
|
2720
|
-
let e =
|
|
2721
|
-
if (!e || !Z(
|
|
2722
|
-
let t = e.getBoundingClientRect(), n =
|
|
2723
|
-
if (!Z(
|
|
2724
|
-
let e =
|
|
2725
|
-
e > 0 &&
|
|
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);
|
|
2726
3586
|
}
|
|
2727
|
-
|
|
2728
|
-
let
|
|
2729
|
-
|
|
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));`);
|
|
2730
3590
|
}
|
|
2731
3591
|
gn(() => {
|
|
2732
|
-
if (!Z(
|
|
2733
|
-
|
|
3592
|
+
if (!Z(z) || !Z(k)) {
|
|
3593
|
+
W(Ze, ""), W(oe, !1), W(Qe, 0);
|
|
2734
3594
|
return;
|
|
2735
3595
|
}
|
|
2736
3596
|
if (typeof window > "u") return;
|
|
2737
3597
|
let e = 0, t = () => {
|
|
2738
3598
|
e ||= window.requestAnimationFrame(() => {
|
|
2739
|
-
e = 0,
|
|
3599
|
+
e = 0, nt();
|
|
2740
3600
|
});
|
|
2741
3601
|
};
|
|
2742
|
-
|
|
2743
|
-
let n =
|
|
2744
|
-
n && r.observe(n), Z(
|
|
2745
|
-
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;
|
|
2746
3606
|
i && r.observe(i);
|
|
2747
|
-
let a = i?.querySelector(
|
|
3607
|
+
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
2748
3608
|
return a && r.observe(a), () => {
|
|
2749
3609
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
2750
3610
|
};
|
|
2751
3611
|
});
|
|
2752
|
-
function
|
|
2753
|
-
if (!Z(
|
|
2754
|
-
let e = Z(
|
|
3612
|
+
function B() {
|
|
3613
|
+
if (!Z(w)) return null;
|
|
3614
|
+
let e = Z(w).getRootNode();
|
|
2755
3615
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2756
3616
|
}
|
|
2757
3617
|
gn(() => {
|
|
2758
|
-
let e =
|
|
3618
|
+
let e = B();
|
|
2759
3619
|
if (!e) return;
|
|
2760
|
-
let t = Z(
|
|
3620
|
+
let t = Z(k) === !0;
|
|
2761
3621
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
2762
3622
|
let n = !1;
|
|
2763
3623
|
return queueMicrotask(() => {
|
|
@@ -2769,135 +3629,116 @@ function Ci(a, o) {
|
|
|
2769
3629
|
}), () => {
|
|
2770
3630
|
n = !0;
|
|
2771
3631
|
};
|
|
2772
|
-
}), gn(() => {
|
|
2773
|
-
Z(w) || H(T, !1);
|
|
2774
3632
|
});
|
|
2775
3633
|
var rt = {
|
|
2776
3634
|
get catalogId() {
|
|
2777
3635
|
return s();
|
|
2778
3636
|
},
|
|
2779
3637
|
set catalogId(e = "") {
|
|
2780
|
-
s(e),
|
|
3638
|
+
s(e), ft();
|
|
2781
3639
|
},
|
|
2782
3640
|
get language() {
|
|
2783
3641
|
return c();
|
|
2784
3642
|
},
|
|
2785
3643
|
set language(e = "en-US") {
|
|
2786
|
-
c(e),
|
|
3644
|
+
c(e), ft();
|
|
2787
3645
|
},
|
|
2788
3646
|
get size() {
|
|
2789
3647
|
return l();
|
|
2790
3648
|
},
|
|
2791
3649
|
set size(e = "md") {
|
|
2792
|
-
l(e),
|
|
3650
|
+
l(e), ft();
|
|
2793
3651
|
},
|
|
2794
3652
|
get speedOptions() {
|
|
2795
3653
|
return u();
|
|
2796
3654
|
},
|
|
2797
3655
|
set speedOptions(e = void 0) {
|
|
2798
|
-
u(e),
|
|
3656
|
+
u(e), ft();
|
|
2799
3657
|
},
|
|
2800
3658
|
get showSingleSpeedOption() {
|
|
2801
3659
|
return d();
|
|
2802
3660
|
},
|
|
2803
3661
|
set showSingleSpeedOption(e = !1) {
|
|
2804
|
-
d(e),
|
|
3662
|
+
d(e), ft();
|
|
2805
3663
|
},
|
|
2806
3664
|
get layoutMode() {
|
|
2807
3665
|
return f();
|
|
2808
3666
|
},
|
|
2809
3667
|
set layoutMode(e = "expanding-row") {
|
|
2810
|
-
f(e),
|
|
3668
|
+
f(e), ft();
|
|
2811
3669
|
}
|
|
2812
|
-
},
|
|
2813
|
-
var t =
|
|
3670
|
+
}, V = Sr(), it = rn(V), at = (e) => {
|
|
3671
|
+
var t = Ua();
|
|
2814
3672
|
let n;
|
|
2815
3673
|
{
|
|
2816
3674
|
let e = (e) => {
|
|
2817
|
-
var t =
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
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);
|
|
2823
3687
|
};
|
|
2824
|
-
|
|
2825
|
-
Z(
|
|
2826
|
-
}),
|
|
2827
|
-
n = Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(We) ?? ""}`, "svelte-18mzc0g", n, { "pie-tool-tts-inline__trigger--active": Z(w) }), $(t, "aria-label", Z(E) && !Z(D) ? "Pause reading" : Z(D) ? "Resume reading" : "Play reading"), $(t, "aria-expanded", Z(w)), $(t, "aria-controls", Z(w) ? fe : void 0), t.disabled = !Z(x) || Z(ne);
|
|
2828
|
-
}), dr("click", t, Ne), Q(e, t);
|
|
3688
|
+
Pr(n, (e) => {
|
|
3689
|
+
Z(re) ? e(r) : e(i, -1);
|
|
3690
|
+
}), ke(t), Cr(e, t);
|
|
2829
3691
|
}, n = (e) => {
|
|
2830
3692
|
var t = Sr(), n = rn(t), r = (e) => {
|
|
2831
|
-
var t =
|
|
3693
|
+
var t = Ha();
|
|
2832
3694
|
let n;
|
|
2833
3695
|
var r = nn(t), i = (e) => {
|
|
2834
|
-
var t =
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
3696
|
+
var t = Va();
|
|
3697
|
+
let n;
|
|
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);
|
|
2841
3704
|
};
|
|
2842
|
-
|
|
2843
|
-
Z(
|
|
3705
|
+
Pr(r, (e) => {
|
|
3706
|
+
Z(me).length > 0 && e(i);
|
|
2844
3707
|
});
|
|
2845
3708
|
var a = an(r, 2), o = an(a, 2), s = an(o, 2);
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
"pie-tool-tts-inline__panel--floating": Z(
|
|
2849
|
-
"pie-tool-tts-inline__panel--row": Z(
|
|
2850
|
-
"pie-tool-tts-inline__panel--left-aligned-inline": Z(
|
|
2851
|
-
"pie-tool-tts-inline__panel--compact": Z(
|
|
2852
|
-
}),
|
|
2853
|
-
}),
|
|
2854
|
-
};
|
|
2855
|
-
Nr(n, (e) => {
|
|
2856
|
-
Z(w) && e(r);
|
|
2857
|
-
}), Q(e, t);
|
|
2858
|
-
}, c = (e) => {
|
|
2859
|
-
var t = Sr(), n = rn(t), r = (e) => {
|
|
2860
|
-
var t = bi(), n = nn(t), r = an(n, 2), i = (e) => {
|
|
2861
|
-
var t = yi(), n = nn(t), r = an(n, 2), i = an(r, 2);
|
|
2862
|
-
Me(t), Cn(() => {
|
|
2863
|
-
$(t, "id", pe), n.disabled = !Z(x) || !Z(E), r.disabled = !Z(x) || !Z(E), i.disabled = !Z(x) || !Z(E) && !Z(D);
|
|
2864
|
-
}), dr("keydown", t, ze), dr("click", n, () => {
|
|
2865
|
-
F(), Be();
|
|
2866
|
-
}), dr("click", r, () => {
|
|
2867
|
-
F(), I();
|
|
2868
|
-
}), dr("click", i, () => {
|
|
2869
|
-
F(), Pe();
|
|
2870
|
-
}), Q(e, t);
|
|
2871
|
-
};
|
|
2872
|
-
Nr(r, (e) => {
|
|
2873
|
-
Z(T) && e(i);
|
|
2874
|
-
}), Me(t), Cn(() => {
|
|
2875
|
-
$(n, "aria-expanded", Z(T)), $(n, "aria-controls", Z(T) ? pe : void 0);
|
|
2876
|
-
}), dr("click", n, Re), Q(e, t);
|
|
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);
|
|
2877
3717
|
};
|
|
2878
|
-
|
|
2879
|
-
Z(
|
|
2880
|
-
}),
|
|
3718
|
+
Pr(n, (e) => {
|
|
3719
|
+
Z(k) && e(r);
|
|
3720
|
+
}), Cr(e, t);
|
|
2881
3721
|
};
|
|
2882
3722
|
var r = nn(t);
|
|
2883
3723
|
e(r);
|
|
2884
3724
|
var i = an(r, 2);
|
|
2885
3725
|
n(i);
|
|
2886
|
-
var a = an(i, 2);
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
3726
|
+
var a = an(i, 2), o = nn(a, !0);
|
|
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);
|
|
2895
3736
|
};
|
|
2896
|
-
return
|
|
3737
|
+
return Pr(it, (e) => {
|
|
2897
3738
|
p && e(at);
|
|
2898
|
-
}),
|
|
3739
|
+
}), Cr(a, V), Be(rt);
|
|
2899
3740
|
}
|
|
2900
|
-
|
|
3741
|
+
mr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(Ga, {
|
|
2901
3742
|
catalogId: {
|
|
2902
3743
|
attribute: "catalog-id",
|
|
2903
3744
|
type: "String"
|
|
@@ -2924,4 +3765,4 @@ fr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", fi(Ci, {
|
|
|
2924
3765
|
}
|
|
2925
3766
|
}, [], [], { mode: "open" }));
|
|
2926
3767
|
//#endregion
|
|
2927
|
-
export {
|
|
3768
|
+
export { Ga as default };
|