@pie-players/pie-tool-tts-inline 0.3.68 → 0.3.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/tool-tts-inline.js +1384 -1354
- package/package.json +9 -9
- package/dist/vite.config.d.ts +0 -2
package/dist/tool-tts-inline.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, catalogOwnerContextFor as t, connectToolRegionScopeContext as n, connectToolRuntimeContext as r, connectToolShellContext as i, normalizeTTSSpeedControlOptions as a } from "@pie-players/pie-assessment-toolkit";
|
|
2
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
6
|
-
var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf,
|
|
7
|
-
function
|
|
5
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
|
|
6
|
+
var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf, ee = Object.isExtensible, b = () => {};
|
|
7
|
+
function x(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function te() {
|
|
11
11
|
var e, t;
|
|
12
12
|
return {
|
|
13
13
|
promise: new Promise((n, r) => {
|
|
@@ -17,85 +17,47 @@ function ee() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var S = 1024, C = 2048, ne = 4096, w = 8192, T = 16384, re = 32768, ie = 1 << 25, E = 65536, D = 1 << 19, ae = 1 << 20, O = 1 << 25, oe = 65536, se = 1 << 21, k = 1 << 22, ce = 1 << 23, A = Symbol("$state"), j = Symbol("component"), M = Symbol("legacy props"), le = Symbol(""), ue = Symbol("attributes"), de = Symbol("class"), fe = Symbol("style"), pe = Symbol("text"), me = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
|
-
}(),
|
|
24
|
-
|
|
25
|
-
//#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/errors.js
|
|
26
|
-
function me() {
|
|
27
|
-
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
|
-
}
|
|
29
|
-
function he(e, t, n) {
|
|
30
|
-
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
|
-
}
|
|
32
|
-
function ge(e) {
|
|
33
|
-
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
|
-
}
|
|
35
|
-
function _e() {
|
|
36
|
-
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
|
-
}
|
|
38
|
-
function ve(e) {
|
|
39
|
-
throw Error("https://svelte.dev/e/effect_orphan");
|
|
40
|
-
}
|
|
41
|
-
function ye() {
|
|
42
|
-
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
|
-
}
|
|
44
|
-
function be() {
|
|
45
|
-
throw Error("https://svelte.dev/e/hydration_failed");
|
|
46
|
-
}
|
|
47
|
-
function xe(e) {
|
|
48
|
-
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
49
|
-
}
|
|
50
|
-
function Se() {
|
|
51
|
-
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
|
-
}
|
|
53
|
-
function Ce() {
|
|
54
|
-
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
|
-
}
|
|
56
|
-
function we() {
|
|
57
|
-
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
|
-
}
|
|
59
|
-
function Te() {
|
|
60
|
-
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
|
-
}
|
|
62
|
-
function Ee() {
|
|
23
|
+
}(), he = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
24
|
+
function ge() {
|
|
63
25
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
64
26
|
}
|
|
65
|
-
function
|
|
27
|
+
function _e(e) {
|
|
66
28
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
29
|
}
|
|
68
|
-
function
|
|
30
|
+
function ve() {
|
|
69
31
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
32
|
}
|
|
71
33
|
//#endregion
|
|
72
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
|
|
34
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
35
|
+
var N = !1;
|
|
36
|
+
function P(e) {
|
|
37
|
+
N = e;
|
|
76
38
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
if (e === null) throw
|
|
80
|
-
return
|
|
39
|
+
var F;
|
|
40
|
+
function I(e) {
|
|
41
|
+
if (e === null) throw _e(), o;
|
|
42
|
+
return F = e;
|
|
81
43
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
44
|
+
function ye() {
|
|
45
|
+
return I(/* @__PURE__ */ qt(F));
|
|
84
46
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
if (/* @__PURE__ */
|
|
88
|
-
|
|
47
|
+
function be(e) {
|
|
48
|
+
if (N) {
|
|
49
|
+
if (/* @__PURE__ */ qt(F) !== null) throw _e(), o;
|
|
50
|
+
F = e;
|
|
89
51
|
}
|
|
90
52
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
for (var t = e, n =
|
|
94
|
-
|
|
53
|
+
function xe(e = 1) {
|
|
54
|
+
if (N) {
|
|
55
|
+
for (var t = e, n = F; t--;) n = /* @__PURE__ */ qt(n);
|
|
56
|
+
F = n;
|
|
95
57
|
}
|
|
96
58
|
}
|
|
97
|
-
function
|
|
98
|
-
for (var t = 0, n =
|
|
59
|
+
function L(e = !0) {
|
|
60
|
+
for (var t = 0, n = F;;) {
|
|
99
61
|
if (n.nodeType === 8) {
|
|
100
62
|
var r = n.data;
|
|
101
63
|
if (r === "]") {
|
|
@@ -103,32 +65,70 @@ function Me(e = !0) {
|
|
|
103
65
|
--t;
|
|
104
66
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
105
67
|
}
|
|
106
|
-
var i = /* @__PURE__ */
|
|
68
|
+
var i = /* @__PURE__ */ qt(n);
|
|
107
69
|
e && n.remove(), n = i;
|
|
108
70
|
}
|
|
109
71
|
}
|
|
110
|
-
function
|
|
111
|
-
if (!e || e.nodeType !== 8) throw
|
|
72
|
+
function Se(e) {
|
|
73
|
+
if (!e || e.nodeType !== 8) throw _e(), o;
|
|
112
74
|
return e.data;
|
|
113
75
|
}
|
|
114
76
|
//#endregion
|
|
115
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
116
|
-
function
|
|
77
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
78
|
+
function Ce(e) {
|
|
117
79
|
return e === this.v;
|
|
118
80
|
}
|
|
119
|
-
function
|
|
81
|
+
function we(e, t) {
|
|
120
82
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
121
83
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
84
|
+
function Te(e) {
|
|
85
|
+
return !we(e, this.v);
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
|
|
89
|
+
function Ee() {
|
|
90
|
+
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
91
|
+
}
|
|
92
|
+
function De(e, t, n) {
|
|
93
|
+
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
94
|
+
}
|
|
95
|
+
function Oe(e) {
|
|
96
|
+
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
97
|
+
}
|
|
98
|
+
function ke() {
|
|
99
|
+
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
100
|
+
}
|
|
101
|
+
function Ae(e) {
|
|
102
|
+
throw Error("https://svelte.dev/e/effect_orphan");
|
|
103
|
+
}
|
|
104
|
+
function je() {
|
|
105
|
+
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
106
|
+
}
|
|
107
|
+
function Me() {
|
|
108
|
+
throw Error("https://svelte.dev/e/hydration_failed");
|
|
109
|
+
}
|
|
110
|
+
function Ne(e) {
|
|
111
|
+
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
112
|
+
}
|
|
113
|
+
function Pe() {
|
|
114
|
+
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
115
|
+
}
|
|
116
|
+
function Fe() {
|
|
117
|
+
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
118
|
+
}
|
|
119
|
+
function Ie() {
|
|
120
|
+
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
121
|
+
}
|
|
122
|
+
function Le() {
|
|
123
|
+
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
126
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
|
|
127
127
|
var R = null;
|
|
128
|
-
function
|
|
128
|
+
function Re(e) {
|
|
129
129
|
R = e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function ze(e, t = !1, n) {
|
|
132
132
|
R = {
|
|
133
133
|
p: R,
|
|
134
134
|
i: !1,
|
|
@@ -136,82 +136,62 @@ function Re(e, t = !1, n) {
|
|
|
136
136
|
e: null,
|
|
137
137
|
s: e,
|
|
138
138
|
x: null,
|
|
139
|
-
r:
|
|
139
|
+
r: J,
|
|
140
140
|
l: null
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Be(e) {
|
|
144
144
|
var t = R, n = t.e;
|
|
145
145
|
if (n !== null) {
|
|
146
146
|
t.e = null;
|
|
147
|
-
for (var r of n)
|
|
147
|
+
for (var r of n) dn(r);
|
|
148
148
|
}
|
|
149
|
-
return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e
|
|
149
|
+
return e !== void 0 && (t.x = e), t.i = !0, R = t.p, Ve(e);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ve(e = {}) {
|
|
152
|
+
return m(e, j, { value: !0 }), e;
|
|
153
|
+
}
|
|
154
|
+
function He() {
|
|
152
155
|
return !0;
|
|
153
156
|
}
|
|
154
157
|
//#endregion
|
|
155
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
156
|
-
var
|
|
157
|
-
function
|
|
158
|
-
var e =
|
|
159
|
-
|
|
158
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
159
|
+
var Ue = [];
|
|
160
|
+
function We() {
|
|
161
|
+
var e = Ue;
|
|
162
|
+
Ue = [], x(e);
|
|
160
163
|
}
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
163
|
-
var t =
|
|
164
|
+
function Ge(e) {
|
|
165
|
+
if (Ue.length === 0 && !gt) {
|
|
166
|
+
var t = Ue;
|
|
164
167
|
queueMicrotask(() => {
|
|
165
|
-
t ===
|
|
168
|
+
t === Ue && We();
|
|
166
169
|
});
|
|
167
170
|
}
|
|
168
|
-
|
|
171
|
+
Ue.push(e);
|
|
169
172
|
}
|
|
170
|
-
function
|
|
171
|
-
for (;
|
|
172
|
-
}
|
|
173
|
-
function Ge(e) {
|
|
174
|
-
var t = q;
|
|
175
|
-
if (t === null) return G.f |= se, e;
|
|
176
|
-
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
177
|
-
Ke(e, t);
|
|
178
|
-
}
|
|
179
|
-
function Ke(e, t) {
|
|
180
|
-
if (!(t !== null && t.f & 16384)) {
|
|
181
|
-
for (; t !== null;) {
|
|
182
|
-
if (t.f & 128) {
|
|
183
|
-
if (!(t.f & 32768)) throw e;
|
|
184
|
-
try {
|
|
185
|
-
t.b.error(e);
|
|
186
|
-
return;
|
|
187
|
-
} catch (t) {
|
|
188
|
-
e = t;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
t = t.parent;
|
|
192
|
-
}
|
|
193
|
-
throw e;
|
|
194
|
-
}
|
|
173
|
+
function Ke() {
|
|
174
|
+
for (; Ue.length > 0;) We();
|
|
195
175
|
}
|
|
196
176
|
//#endregion
|
|
197
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
198
|
-
var qe = ~(
|
|
177
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
178
|
+
var qe = ~(C | ne | S);
|
|
199
179
|
function z(e, t) {
|
|
200
180
|
e.f = e.f & qe | t;
|
|
201
181
|
}
|
|
202
182
|
function Je(e) {
|
|
203
|
-
e.f & 512 || e.deps === null ? z(e,
|
|
183
|
+
e.f & 512 || e.deps === null ? z(e, S) : z(e, ne);
|
|
204
184
|
}
|
|
205
185
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
186
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
207
187
|
function Ye(e) {
|
|
208
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
188
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= oe, Ye(t.deps));
|
|
209
189
|
}
|
|
210
190
|
function Xe(e, t, n) {
|
|
211
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ye(e.deps), z(e,
|
|
191
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ye(e.deps), z(e, S);
|
|
212
192
|
}
|
|
213
193
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
194
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
215
195
|
var Ze = !1;
|
|
216
196
|
function Qe(e) {
|
|
217
197
|
var t = Ze;
|
|
@@ -222,300 +202,111 @@ function Qe(e) {
|
|
|
222
202
|
}
|
|
223
203
|
}
|
|
224
204
|
//#endregion
|
|
225
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
205
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
226
206
|
function $e(e) {
|
|
227
|
-
var t =
|
|
228
|
-
|
|
207
|
+
var t = K, n = J;
|
|
208
|
+
q(null), Fn(null);
|
|
229
209
|
try {
|
|
230
210
|
return e();
|
|
231
211
|
} finally {
|
|
232
|
-
|
|
212
|
+
q(t), Fn(n);
|
|
233
213
|
}
|
|
234
214
|
}
|
|
235
215
|
//#endregion
|
|
236
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
237
|
-
function et(e) {
|
|
238
|
-
let
|
|
239
|
-
return () => {
|
|
240
|
-
un() && (X(n), vn(() => (t === 0 && (r = tr(() => e(() => Ht(n)))), t += 1, () => {
|
|
241
|
-
Ue(() => {
|
|
242
|
-
--t, t === 0 && (r?.(), r = void 0, Ht(n));
|
|
243
|
-
});
|
|
244
|
-
})));
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
//#endregion
|
|
248
|
-
//#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
249
|
-
var tt = D | O;
|
|
250
|
-
function nt(e, t, n, r) {
|
|
251
|
-
new rt(e, t, n, r);
|
|
252
|
-
}
|
|
253
|
-
var rt = class {
|
|
254
|
-
parent;
|
|
255
|
-
is_pending = !1;
|
|
256
|
-
transform_error;
|
|
257
|
-
#e;
|
|
258
|
-
#t = P ? I : null;
|
|
259
|
-
#n;
|
|
260
|
-
#r;
|
|
261
|
-
#i;
|
|
262
|
-
#a = null;
|
|
263
|
-
#o = null;
|
|
264
|
-
#s = null;
|
|
265
|
-
#c = null;
|
|
266
|
-
#l = 0;
|
|
267
|
-
#u = 0;
|
|
268
|
-
#d = !1;
|
|
269
|
-
#f = /* @__PURE__ */ new Set();
|
|
270
|
-
#p = /* @__PURE__ */ new Set();
|
|
271
|
-
#m = null;
|
|
272
|
-
#h = et(() => (this.#m = Rt(this.#l), () => {
|
|
273
|
-
this.#m = null;
|
|
274
|
-
}));
|
|
275
|
-
constructor(e, t, n, r) {
|
|
276
|
-
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
277
|
-
var t = q;
|
|
278
|
-
t.b = this, t.f |= 128, n(e);
|
|
279
|
-
}, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
|
|
280
|
-
if (P) {
|
|
281
|
-
let e = this.#t;
|
|
282
|
-
ke();
|
|
283
|
-
let t = e.data === "[!";
|
|
284
|
-
if (e.data.startsWith("[?")) {
|
|
285
|
-
let t = JSON.parse(e.data.slice(2));
|
|
286
|
-
this.#_(t);
|
|
287
|
-
} else t ? this.#y() : this.#g();
|
|
288
|
-
} else this.#b();
|
|
289
|
-
}, tt), P && (this.#e = I);
|
|
290
|
-
}
|
|
291
|
-
#g() {
|
|
292
|
-
try {
|
|
293
|
-
this.#a = xn(() => this.#r(this.#e));
|
|
294
|
-
} catch (e) {
|
|
295
|
-
this.error(e);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
#_(e) {
|
|
299
|
-
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
300
|
-
Ue(r), t && (this.#s = xn(() => {
|
|
301
|
-
t(this.#e, () => e, () => n);
|
|
302
|
-
}));
|
|
303
|
-
}
|
|
304
|
-
#v(e) {
|
|
305
|
-
var t = !1, n = !1;
|
|
306
|
-
let r = () => {
|
|
307
|
-
if (t) {
|
|
308
|
-
Oe();
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
t = !0, n && Te(), this.#s !== null && Dn(this.#s, () => {
|
|
312
|
-
this.#s = null;
|
|
313
|
-
}), this.#S(() => {
|
|
314
|
-
this.#b();
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
return {
|
|
318
|
-
reset: r,
|
|
319
|
-
invoke_onerror: () => {
|
|
320
|
-
try {
|
|
321
|
-
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
322
|
-
} catch (e) {
|
|
323
|
-
Ke(e, this.#i && this.#i.parent);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
#y() {
|
|
329
|
-
let e = this.#n.pending;
|
|
330
|
-
e && (this.is_pending = !0, this.#o = xn(() => e(this.#e)), Ue(() => {
|
|
331
|
-
var e = this.#c = document.createDocumentFragment(), t = Xt();
|
|
332
|
-
e.append(t), this.#a = this.#S(() => xn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
|
|
333
|
-
this.#o = null;
|
|
334
|
-
}), this.#x(V));
|
|
335
|
-
}));
|
|
336
|
-
}
|
|
337
|
-
#b() {
|
|
338
|
-
try {
|
|
339
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = xn(() => {
|
|
340
|
-
this.#r(this.#e);
|
|
341
|
-
}), this.#u > 0) {
|
|
342
|
-
var e = this.#c = document.createDocumentFragment();
|
|
343
|
-
jn(this.#a, e);
|
|
344
|
-
let t = this.#n.pending;
|
|
345
|
-
this.#o = xn(() => t(this.#e));
|
|
346
|
-
} else this.#x(V);
|
|
347
|
-
} catch (e) {
|
|
348
|
-
this.error(e);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
#x(e) {
|
|
352
|
-
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
353
|
-
}
|
|
354
|
-
defer_effect(e) {
|
|
355
|
-
Xe(e, this.#f, this.#p);
|
|
356
|
-
}
|
|
357
|
-
is_rendered() {
|
|
358
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
359
|
-
}
|
|
360
|
-
has_pending_snippet() {
|
|
361
|
-
return !!this.#n.pending;
|
|
362
|
-
}
|
|
363
|
-
#S(e) {
|
|
364
|
-
var t = q, n = G, r = R;
|
|
365
|
-
Ln(this.#i), K(this.#i), Le(this.#i.ctx);
|
|
366
|
-
try {
|
|
367
|
-
return Dt.ensure(), e();
|
|
368
|
-
} catch (e) {
|
|
369
|
-
return Ge(e), null;
|
|
370
|
-
} finally {
|
|
371
|
-
Ln(t), K(n), Le(r);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
#C(e, t) {
|
|
375
|
-
if (!this.has_pending_snippet()) {
|
|
376
|
-
this.parent && this.parent.#C(e, t);
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
|
|
380
|
-
this.#o = null;
|
|
381
|
-
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
382
|
-
}
|
|
383
|
-
update_pending_count(e, t) {
|
|
384
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ue(() => {
|
|
385
|
-
this.#d = !1, this.#m && Bt(this.#m, this.#l);
|
|
386
|
-
}));
|
|
387
|
-
}
|
|
388
|
-
get_effect_pending() {
|
|
389
|
-
return this.#h(), X(this.#m);
|
|
390
|
-
}
|
|
391
|
-
error(e) {
|
|
392
|
-
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
393
|
-
V?.is_fork ? (this.#a && V.skip_effect(this.#a), this.#o && V.skip_effect(this.#o), this.#s && V.skip_effect(this.#s), V.oncommit(() => {
|
|
394
|
-
this.#w(e);
|
|
395
|
-
})) : this.#w(e);
|
|
396
|
-
}
|
|
397
|
-
#w(e) {
|
|
398
|
-
this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), P && (L(this.#t), je(), L(Me()));
|
|
399
|
-
let t = this.#n.failed, n = (e) => {
|
|
400
|
-
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
401
|
-
r(), t && (this.#s = this.#S(() => {
|
|
402
|
-
try {
|
|
403
|
-
return xn(() => {
|
|
404
|
-
var r = q;
|
|
405
|
-
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
406
|
-
});
|
|
407
|
-
} catch (e) {
|
|
408
|
-
return Ke(e, this.#i.parent), null;
|
|
409
|
-
}
|
|
410
|
-
}));
|
|
411
|
-
};
|
|
412
|
-
Ue(() => {
|
|
413
|
-
var t;
|
|
414
|
-
try {
|
|
415
|
-
t = this.transform_error(e);
|
|
416
|
-
} catch (e) {
|
|
417
|
-
Ke(e, this.#i && this.#i.parent);
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Ke(e, this.#i && this.#i.parent)) : n(t);
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
426
|
-
function it(e, t, n, r) {
|
|
427
|
-
let i = Be() ? ct : dt;
|
|
216
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
217
|
+
function et(e, t, n, r) {
|
|
218
|
+
let i = He() ? it : st;
|
|
428
219
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
429
220
|
if (n.length === 0 && a.length === 0) {
|
|
430
221
|
r(o);
|
|
431
222
|
return;
|
|
432
223
|
}
|
|
433
|
-
var s =
|
|
224
|
+
var s = J, c = tt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
434
225
|
function u(e) {
|
|
435
226
|
if (!(s.f & 16384)) {
|
|
436
227
|
c();
|
|
437
228
|
try {
|
|
438
229
|
r([...o, ...e]);
|
|
439
230
|
} catch (e) {
|
|
440
|
-
|
|
231
|
+
rn(e, s);
|
|
441
232
|
}
|
|
442
|
-
|
|
233
|
+
nt();
|
|
443
234
|
}
|
|
444
235
|
}
|
|
445
|
-
var d =
|
|
236
|
+
var d = rt();
|
|
446
237
|
if (n.length === 0) {
|
|
447
238
|
l.then(() => u([])).finally(d);
|
|
448
239
|
return;
|
|
449
240
|
}
|
|
450
241
|
function f() {
|
|
451
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
242
|
+
Promise.all(n.map((e) => /* @__PURE__ */ ot(e))).then(u).catch((e) => rn(e, s)).finally(d);
|
|
452
243
|
}
|
|
453
244
|
l ? l.then(() => {
|
|
454
|
-
c(), f(),
|
|
245
|
+
c(), f(), nt();
|
|
455
246
|
}) : f();
|
|
456
247
|
}
|
|
457
|
-
function
|
|
458
|
-
var e =
|
|
248
|
+
function tt() {
|
|
249
|
+
var e = J, t = K, n = R, r = V;
|
|
459
250
|
return function(i = !0) {
|
|
460
|
-
|
|
251
|
+
Fn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
461
252
|
};
|
|
462
253
|
}
|
|
463
|
-
function
|
|
464
|
-
|
|
254
|
+
function nt(e = !0) {
|
|
255
|
+
Fn(null), q(null), Re(null), e && V?.deactivate();
|
|
465
256
|
}
|
|
466
|
-
function
|
|
467
|
-
var e =
|
|
257
|
+
function rt() {
|
|
258
|
+
var e = J, t = e.b, n = V, r = !!t?.is_rendered();
|
|
468
259
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
469
260
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
470
261
|
};
|
|
471
262
|
}
|
|
472
263
|
/*#__NO_SIDE_EFFECTS__*/
|
|
473
|
-
function
|
|
474
|
-
var t = 2 |
|
|
475
|
-
return
|
|
264
|
+
function it(e) {
|
|
265
|
+
var t = 2 | C;
|
|
266
|
+
return J !== null && (J.f |= D), {
|
|
476
267
|
ctx: R,
|
|
477
268
|
deps: null,
|
|
478
269
|
effects: null,
|
|
479
|
-
equals:
|
|
270
|
+
equals: Ce,
|
|
480
271
|
f: t,
|
|
481
272
|
fn: e,
|
|
482
273
|
reactions: null,
|
|
483
274
|
rv: 0,
|
|
484
275
|
v: s,
|
|
485
276
|
wv: 0,
|
|
486
|
-
parent:
|
|
277
|
+
parent: J,
|
|
487
278
|
ac: null
|
|
488
279
|
};
|
|
489
280
|
}
|
|
490
|
-
var
|
|
281
|
+
var at = Symbol("obsolete");
|
|
491
282
|
/*#__NO_SIDE_EFFECTS__*/
|
|
492
|
-
function
|
|
493
|
-
let r =
|
|
494
|
-
r === null &&
|
|
495
|
-
var i = void 0, a =
|
|
496
|
-
return
|
|
497
|
-
var t =
|
|
283
|
+
function ot(e, t, n) {
|
|
284
|
+
let r = J;
|
|
285
|
+
r === null && Ee();
|
|
286
|
+
var i = void 0, a = Nt(s), o = !K, c = /* @__PURE__ */ new Set();
|
|
287
|
+
return hn(() => {
|
|
288
|
+
var t = J, n = te();
|
|
498
289
|
i = n.promise;
|
|
499
290
|
try {
|
|
500
291
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
501
|
-
e !==
|
|
502
|
-
}).finally(
|
|
292
|
+
e !== me && n.reject(e);
|
|
293
|
+
}).finally(nt);
|
|
503
294
|
} catch (e) {
|
|
504
|
-
n.reject(e),
|
|
295
|
+
n.reject(e), nt();
|
|
505
296
|
}
|
|
506
297
|
var s = V;
|
|
507
298
|
if (o) {
|
|
508
|
-
if (t.f & 32768) var l =
|
|
509
|
-
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(
|
|
510
|
-
else for (let e of c.values()) e.reject(
|
|
299
|
+
if (t.f & 32768) var l = rt();
|
|
300
|
+
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(at);
|
|
301
|
+
else for (let e of c.values()) e.reject(at);
|
|
511
302
|
c.add(n), s.async_deriveds.set(t, n);
|
|
512
303
|
}
|
|
513
304
|
let u = (e, t = void 0) => {
|
|
514
|
-
l?.(), c.delete(n), t !==
|
|
305
|
+
l?.(), c.delete(n), t !== at && (s.activate(), t ? (a.f |= ce, Ft(a, t)) : (a.f & 8388608 && (a.f ^= ce), Ft(a, e)), s.deactivate());
|
|
515
306
|
};
|
|
516
307
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
517
|
-
}),
|
|
518
|
-
for (let e of c) e.reject(
|
|
308
|
+
}), ln(() => {
|
|
309
|
+
for (let e of c) e.reject(at);
|
|
519
310
|
}), new Promise((e) => {
|
|
520
311
|
function t(n) {
|
|
521
312
|
function r() {
|
|
@@ -528,52 +319,52 @@ function ut(e, t, n) {
|
|
|
528
319
|
}
|
|
529
320
|
/*#__NO_SIDE_EFFECTS__*/
|
|
530
321
|
function B(e) {
|
|
531
|
-
let t = /* @__PURE__ */
|
|
532
|
-
return
|
|
322
|
+
let t = /* @__PURE__ */ it(e);
|
|
323
|
+
return Ln(t), t;
|
|
533
324
|
}
|
|
534
325
|
/*#__NO_SIDE_EFFECTS__*/
|
|
535
|
-
function
|
|
536
|
-
let t = /* @__PURE__ */
|
|
537
|
-
return t.equals =
|
|
326
|
+
function st(e) {
|
|
327
|
+
let t = /* @__PURE__ */ it(e);
|
|
328
|
+
return t.equals = Te, t;
|
|
538
329
|
}
|
|
539
|
-
function
|
|
330
|
+
function ct(e) {
|
|
540
331
|
var t = e.effects;
|
|
541
332
|
if (t !== null) {
|
|
542
333
|
e.effects = null;
|
|
543
|
-
for (var n = 0; n < t.length; n += 1)
|
|
334
|
+
for (var n = 0; n < t.length; n += 1) G(t[n]);
|
|
544
335
|
}
|
|
545
336
|
}
|
|
546
|
-
function
|
|
547
|
-
var t, n =
|
|
548
|
-
if (!
|
|
549
|
-
|
|
337
|
+
function lt(e) {
|
|
338
|
+
var t, n = J, r = e.parent;
|
|
339
|
+
if (!Mn && r !== null && e.v !== s && r.f & 24576) return ge(), e.v;
|
|
340
|
+
Fn(r);
|
|
550
341
|
try {
|
|
551
|
-
e.f &= ~
|
|
342
|
+
e.f &= ~oe, ct(e), t = qn(e);
|
|
552
343
|
} finally {
|
|
553
|
-
|
|
344
|
+
Fn(n);
|
|
554
345
|
}
|
|
555
346
|
return t;
|
|
556
347
|
}
|
|
557
|
-
function
|
|
558
|
-
var t =
|
|
559
|
-
if (!e.equals(t) && (e.wv =
|
|
560
|
-
z(e,
|
|
348
|
+
function ut(e) {
|
|
349
|
+
var t = lt(e);
|
|
350
|
+
if (!e.equals(t) && (e.wv = Wn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), mt?.capture(e, t, !0)), e.deps === null))) {
|
|
351
|
+
z(e, S);
|
|
561
352
|
return;
|
|
562
353
|
}
|
|
563
|
-
|
|
354
|
+
Mn || (H === null ? Je(e) : (cn() || V?.is_fork) && H.set(e, t));
|
|
564
355
|
}
|
|
565
|
-
function
|
|
356
|
+
function dt(e) {
|
|
566
357
|
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $e(() => {
|
|
567
|
-
t.ac.abort(
|
|
568
|
-
}), t.fn !== null && (t.teardown =
|
|
358
|
+
t.ac.abort(me), t.ac = null;
|
|
359
|
+
}), t.fn !== null && (t.teardown = b), Xn(t, 0), xn(t));
|
|
569
360
|
}
|
|
570
|
-
function
|
|
571
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
361
|
+
function ft(e) {
|
|
362
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Zn(t);
|
|
572
363
|
}
|
|
573
364
|
//#endregion
|
|
574
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
575
|
-
var
|
|
576
|
-
id =
|
|
365
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
366
|
+
var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt = null, yt = null, bt = 0, xt = 1, St = class e {
|
|
367
|
+
id = xt++;
|
|
577
368
|
#e = !1;
|
|
578
369
|
linked = !0;
|
|
579
370
|
#t = null;
|
|
@@ -595,7 +386,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
595
386
|
is_fork = !1;
|
|
596
387
|
#m = !1;
|
|
597
388
|
constructor() {
|
|
598
|
-
|
|
389
|
+
pt === null ? pt = this : (pt.#n = this, this.#t = pt), pt = this;
|
|
599
390
|
}
|
|
600
391
|
#h() {
|
|
601
392
|
if (this.is_fork) return !0;
|
|
@@ -621,30 +412,30 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
621
412
|
var n = this.#f.get(e);
|
|
622
413
|
if (n) {
|
|
623
414
|
this.#f.delete(e);
|
|
624
|
-
for (var r of n.d) z(r,
|
|
625
|
-
for (r of n.m) z(r,
|
|
415
|
+
for (var r of n.d) z(r, C), t(r);
|
|
416
|
+
for (r of n.m) z(r, ne), t(r);
|
|
626
417
|
}
|
|
627
418
|
this.#p.add(e);
|
|
628
419
|
}
|
|
629
420
|
#g() {
|
|
630
|
-
this.#e = !0,
|
|
631
|
-
for (let e of this.#u) this.#d.delete(e), z(e,
|
|
632
|
-
for (let e of this.#d) z(e,
|
|
421
|
+
this.#e = !0, bt++ > 1e3 && (this.#x(), wt());
|
|
422
|
+
for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
|
|
423
|
+
for (let e of this.#d) z(e, ne), this.schedule(e);
|
|
633
424
|
let t = this.#c;
|
|
634
425
|
this.#c = [], this.apply();
|
|
635
|
-
var n =
|
|
426
|
+
var n = vt = [], r = [], i = yt = [];
|
|
636
427
|
for (let e of t) try {
|
|
637
428
|
this.#_(e, n, r);
|
|
638
429
|
} catch (t) {
|
|
639
|
-
throw
|
|
430
|
+
throw kt(e), this.#h() || this.discard(), t;
|
|
640
431
|
}
|
|
641
432
|
if (V = null, i.length > 0) {
|
|
642
433
|
var a = e.ensure();
|
|
643
434
|
for (let e of i) a.schedule(e);
|
|
644
435
|
}
|
|
645
|
-
if (
|
|
436
|
+
if (vt = null, yt = null, this.#h()) {
|
|
646
437
|
this.#b(r), this.#b(n);
|
|
647
|
-
for (let [e, t] of this.#f)
|
|
438
|
+
for (let [e, t] of this.#f) Ot(e, t);
|
|
648
439
|
i.length > 0 && V.#g();
|
|
649
440
|
return;
|
|
650
441
|
}
|
|
@@ -655,7 +446,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
655
446
|
}
|
|
656
447
|
this.#u.clear(), this.#d.clear();
|
|
657
448
|
for (let e of this.#r) e(this);
|
|
658
|
-
this.#r.clear(),
|
|
449
|
+
this.#r.clear(), mt = this, Et(r), Et(n), mt = null, this.#s?.resolve();
|
|
659
450
|
var s = V;
|
|
660
451
|
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
|
|
661
452
|
if (s !== null) {
|
|
@@ -663,14 +454,14 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
663
454
|
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
664
455
|
} else s = this;
|
|
665
456
|
}
|
|
666
|
-
s !== null && s.#g();
|
|
457
|
+
s !== null && (jt.clear(), s.#g());
|
|
667
458
|
}
|
|
668
459
|
#_(e, t, n) {
|
|
669
|
-
e.f ^=
|
|
460
|
+
e.f ^= S;
|
|
670
461
|
for (var r = e.first; r !== null;) {
|
|
671
462
|
var i = r.f, a = !!(i & 96);
|
|
672
463
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
673
|
-
a ? r.f ^=
|
|
464
|
+
a ? r.f ^= S : i & 4 ? t.push(r) : Gn(r) && (i & 16 && this.#d.add(r), Zn(r));
|
|
674
465
|
var o = r.first;
|
|
675
466
|
if (o !== null) {
|
|
676
467
|
r = o;
|
|
@@ -710,7 +501,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
710
501
|
if (r & 2) t(e);
|
|
711
502
|
else {
|
|
712
503
|
var i = e;
|
|
713
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i,
|
|
504
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, C), this.schedule(i));
|
|
714
505
|
}
|
|
715
506
|
}
|
|
716
507
|
};
|
|
@@ -721,25 +512,25 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
721
512
|
for (var t = 0; t < e.length; t += 1) Xe(e[t], this.#u, this.#d);
|
|
722
513
|
}
|
|
723
514
|
capture(e, t, n = !1) {
|
|
724
|
-
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]),
|
|
515
|
+
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), H?.set(e, t)), this.is_fork || (e.v = t);
|
|
725
516
|
}
|
|
726
517
|
activate() {
|
|
727
518
|
V = this;
|
|
728
519
|
}
|
|
729
520
|
deactivate() {
|
|
730
|
-
V = null,
|
|
521
|
+
V = null, H = null;
|
|
731
522
|
}
|
|
732
523
|
flush() {
|
|
733
524
|
try {
|
|
734
|
-
|
|
525
|
+
_t = !0, V = this, this.#g();
|
|
735
526
|
} finally {
|
|
736
|
-
|
|
527
|
+
bt = 0, ht = null, vt = null, yt = null, _t = !1, V = null, H = null, jt.clear();
|
|
737
528
|
}
|
|
738
529
|
}
|
|
739
530
|
discard() {
|
|
740
531
|
for (let e of this.#i) e(this);
|
|
741
532
|
this.#i.clear();
|
|
742
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
533
|
+
for (let e of this.async_deriveds.values()) e.reject(at);
|
|
743
534
|
this.#x(), this.#s?.resolve();
|
|
744
535
|
}
|
|
745
536
|
register_created_effect(e) {
|
|
@@ -756,7 +547,7 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
756
547
|
let e = this.#o.get(t) ?? 0;
|
|
757
548
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
758
549
|
}
|
|
759
|
-
this.#m || (this.#m = !0,
|
|
550
|
+
this.#m || (this.#m = !0, Ge(() => {
|
|
760
551
|
this.#m = !1, this.linked && this.flush();
|
|
761
552
|
}));
|
|
762
553
|
}
|
|
@@ -772,32 +563,32 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
772
563
|
this.#i.add(e);
|
|
773
564
|
}
|
|
774
565
|
settled() {
|
|
775
|
-
return (this.#s ??=
|
|
566
|
+
return (this.#s ??= te()).promise;
|
|
776
567
|
}
|
|
777
568
|
static ensure() {
|
|
778
569
|
if (V === null) {
|
|
779
570
|
let t = V = new e();
|
|
780
|
-
!
|
|
571
|
+
!_t && !gt && Ge(() => {
|
|
781
572
|
t.#e || t.flush();
|
|
782
573
|
});
|
|
783
574
|
}
|
|
784
575
|
return V;
|
|
785
576
|
}
|
|
786
577
|
apply() {
|
|
787
|
-
|
|
578
|
+
H = null;
|
|
788
579
|
}
|
|
789
580
|
schedule(e) {
|
|
790
|
-
if (
|
|
581
|
+
if (ht = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
791
582
|
e.b.defer_effect(e);
|
|
792
583
|
return;
|
|
793
584
|
}
|
|
794
585
|
for (var t = e; t.parent !== null;) {
|
|
795
586
|
t = t.parent;
|
|
796
587
|
var n = t.f;
|
|
797
|
-
if (
|
|
588
|
+
if (vt !== null && t === J && (K === null || !(K.f & 2))) return;
|
|
798
589
|
if (n & 96) {
|
|
799
590
|
if (!(n & 1024)) return;
|
|
800
|
-
t.f ^=
|
|
591
|
+
t.f ^= S;
|
|
801
592
|
}
|
|
802
593
|
}
|
|
803
594
|
this.#c.push(t);
|
|
@@ -805,173 +596,173 @@ var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct =
|
|
|
805
596
|
#x() {
|
|
806
597
|
if (this.linked) {
|
|
807
598
|
var e = this.#t, t = this.#n;
|
|
808
|
-
e === null || (e.#n = t), t === null ?
|
|
599
|
+
e === null || (e.#n = t), t === null ? pt = e : t.#t = e, this.linked = !1;
|
|
809
600
|
}
|
|
810
601
|
}
|
|
811
602
|
};
|
|
812
|
-
function
|
|
813
|
-
var t =
|
|
814
|
-
|
|
603
|
+
function Ct(e) {
|
|
604
|
+
var t = gt;
|
|
605
|
+
gt = !0;
|
|
815
606
|
try {
|
|
816
607
|
var n;
|
|
817
608
|
for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
|
|
818
|
-
if (
|
|
609
|
+
if (Ke(), V === null) return n;
|
|
819
610
|
V.flush();
|
|
820
611
|
}
|
|
821
612
|
} finally {
|
|
822
|
-
|
|
613
|
+
gt = t;
|
|
823
614
|
}
|
|
824
615
|
}
|
|
825
|
-
function
|
|
616
|
+
function wt() {
|
|
826
617
|
try {
|
|
827
|
-
|
|
618
|
+
je();
|
|
828
619
|
} catch (e) {
|
|
829
|
-
|
|
620
|
+
rn(e, ht);
|
|
830
621
|
}
|
|
831
622
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
623
|
+
var Tt = null;
|
|
624
|
+
function Et(e) {
|
|
834
625
|
var t = e.length;
|
|
835
626
|
if (t !== 0) {
|
|
836
627
|
for (var n = 0; n < t;) {
|
|
837
628
|
var r = e[n++];
|
|
838
|
-
if (!(r.f & 24576) &&
|
|
839
|
-
|
|
840
|
-
for (let e of
|
|
629
|
+
if (!(r.f & 24576) && Gn(r) && (Tt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), Tt?.size > 0)) {
|
|
630
|
+
jt.clear();
|
|
631
|
+
for (let e of Tt) {
|
|
841
632
|
if (e.f & 24576) continue;
|
|
842
633
|
let t = [e], n = e.parent;
|
|
843
|
-
for (; n !== null;)
|
|
634
|
+
for (; n !== null;) Tt.has(n) && (Tt.delete(n), t.push(n)), n = n.parent;
|
|
844
635
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
845
636
|
let n = t[e];
|
|
846
|
-
n.f & 24576 ||
|
|
637
|
+
n.f & 24576 || Zn(n);
|
|
847
638
|
}
|
|
848
639
|
}
|
|
849
|
-
|
|
640
|
+
Tt.clear();
|
|
850
641
|
}
|
|
851
642
|
}
|
|
852
|
-
|
|
643
|
+
Tt = null;
|
|
853
644
|
}
|
|
854
645
|
}
|
|
855
|
-
function
|
|
646
|
+
function Dt(e) {
|
|
856
647
|
V.schedule(e);
|
|
857
648
|
}
|
|
858
|
-
function
|
|
649
|
+
function Ot(e, t) {
|
|
859
650
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
860
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e,
|
|
861
|
-
for (var n = e.first; n !== null;)
|
|
651
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
|
|
652
|
+
for (var n = e.first; n !== null;) Ot(n, t), n = n.next;
|
|
862
653
|
}
|
|
863
654
|
}
|
|
864
|
-
function
|
|
865
|
-
z(e,
|
|
866
|
-
for (var t = e.first; t !== null;)
|
|
655
|
+
function kt(e) {
|
|
656
|
+
z(e, S);
|
|
657
|
+
for (var t = e.first; t !== null;) kt(t), t = t.next;
|
|
867
658
|
}
|
|
868
659
|
//#endregion
|
|
869
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
870
|
-
var
|
|
871
|
-
function
|
|
660
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
661
|
+
var At = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), Mt = !1;
|
|
662
|
+
function Nt(e, t) {
|
|
872
663
|
return {
|
|
873
664
|
f: 0,
|
|
874
665
|
v: e,
|
|
875
666
|
reactions: null,
|
|
876
|
-
equals:
|
|
667
|
+
equals: Ce,
|
|
877
668
|
rv: 0,
|
|
878
669
|
wv: 0
|
|
879
670
|
};
|
|
880
671
|
}
|
|
881
672
|
/*#__NO_SIDE_EFFECTS__*/
|
|
882
|
-
function
|
|
883
|
-
let n =
|
|
884
|
-
return
|
|
673
|
+
function U(e, t) {
|
|
674
|
+
let n = Nt(e, t);
|
|
675
|
+
return Ln(n), n;
|
|
885
676
|
}
|
|
886
677
|
/*#__NO_SIDE_EFFECTS__*/
|
|
887
|
-
function
|
|
888
|
-
let r =
|
|
889
|
-
return t || (r.equals =
|
|
678
|
+
function Pt(e, t = !1, n = !0) {
|
|
679
|
+
let r = Nt(e);
|
|
680
|
+
return t || (r.equals = Te), r;
|
|
890
681
|
}
|
|
891
|
-
function
|
|
892
|
-
return
|
|
682
|
+
function W(e, t, n = !1) {
|
|
683
|
+
return K !== null && (!Pn || K.f & 131072) && He() && K.f & 4325394 && (In === null || !In.has(e)) && Ie(), Ft(e, n ? zt(t) : t, yt);
|
|
893
684
|
}
|
|
894
|
-
function
|
|
685
|
+
function Ft(e, t, n = null) {
|
|
895
686
|
if (!e.equals(t)) {
|
|
896
|
-
|
|
897
|
-
var r =
|
|
687
|
+
Mn ? jt.set(e, t) : jt.has(e) || jt.set(e, e.v);
|
|
688
|
+
var r = St.ensure();
|
|
898
689
|
if (r.capture(e, t), e.f & 2) {
|
|
899
690
|
let t = e;
|
|
900
|
-
e.f & 2048 &&
|
|
691
|
+
e.f & 2048 && lt(t), H === null && Je(t);
|
|
901
692
|
}
|
|
902
|
-
e.wv =
|
|
693
|
+
e.wv = Wn(), Rt(e, C, n), He() && J !== null && J.f & 1024 && !(J.f & 96) && (Rn === null ? zn([e]) : Rn.push(e)), !r.is_fork && At.size > 0 && !Mt && It();
|
|
903
694
|
}
|
|
904
695
|
return t;
|
|
905
696
|
}
|
|
906
|
-
function
|
|
907
|
-
|
|
908
|
-
for (let e of
|
|
909
|
-
e.f & 1024 && z(e,
|
|
697
|
+
function It() {
|
|
698
|
+
Mt = !1;
|
|
699
|
+
for (let e of At) {
|
|
700
|
+
e.f & 1024 && z(e, ne);
|
|
910
701
|
let t;
|
|
911
702
|
try {
|
|
912
|
-
t =
|
|
703
|
+
t = Gn(e);
|
|
913
704
|
} catch {
|
|
914
705
|
t = !0;
|
|
915
706
|
}
|
|
916
|
-
t &&
|
|
707
|
+
t && Zn(e);
|
|
917
708
|
}
|
|
918
|
-
|
|
709
|
+
At.clear();
|
|
919
710
|
}
|
|
920
|
-
function
|
|
921
|
-
|
|
711
|
+
function Lt(e) {
|
|
712
|
+
W(e, e.v + 1);
|
|
922
713
|
}
|
|
923
|
-
function
|
|
714
|
+
function Rt(e, t, n) {
|
|
924
715
|
var r = e.reactions;
|
|
925
|
-
if (r !== null) for (var i =
|
|
716
|
+
if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
|
|
926
717
|
var s = r[o], c = s.f;
|
|
927
|
-
if (!(!i && s ===
|
|
928
|
-
var l = (c &
|
|
929
|
-
if (l && z(s, t), c & 131072)
|
|
718
|
+
if (!(!i && s === J)) {
|
|
719
|
+
var l = (c & C) === 0;
|
|
720
|
+
if (l && z(s, t), c & 131072) At.add(s);
|
|
930
721
|
else if (c & 2) {
|
|
931
722
|
var u = s;
|
|
932
|
-
|
|
723
|
+
H?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= oe), Rt(u, ne, n));
|
|
933
724
|
} else if (l) {
|
|
934
725
|
var d = s;
|
|
935
|
-
c & 16 &&
|
|
726
|
+
c & 16 && Tt !== null && Tt.add(d), n === null ? Dt(d) : n.push(d);
|
|
936
727
|
}
|
|
937
728
|
}
|
|
938
729
|
}
|
|
939
730
|
}
|
|
940
|
-
function
|
|
941
|
-
if (typeof e != "object" || !e || j in e) return e;
|
|
731
|
+
function zt(e) {
|
|
732
|
+
if (typeof e != "object" || !e || A in e || j in e) return e;
|
|
942
733
|
let t = y(e);
|
|
943
734
|
if (t !== _ && t !== v) return e;
|
|
944
|
-
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */
|
|
945
|
-
if (
|
|
946
|
-
var t =
|
|
947
|
-
|
|
735
|
+
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ U(0), a = null, o = Hn, c = (e) => {
|
|
736
|
+
if (Hn === o) return e();
|
|
737
|
+
var t = K, n = Hn;
|
|
738
|
+
q(null), Un(o);
|
|
948
739
|
var r = e();
|
|
949
|
-
return
|
|
740
|
+
return q(t), Un(n), r;
|
|
950
741
|
};
|
|
951
|
-
return r && n.set("length", /* @__PURE__ */
|
|
742
|
+
return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
|
|
952
743
|
defineProperty(e, t, r) {
|
|
953
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
744
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Pe();
|
|
954
745
|
var i = n.get(t);
|
|
955
746
|
return i === void 0 ? c(() => {
|
|
956
|
-
var e = /* @__PURE__ */
|
|
747
|
+
var e = /* @__PURE__ */ U(r.value, a);
|
|
957
748
|
return n.set(t, e), e;
|
|
958
|
-
}) :
|
|
749
|
+
}) : W(i, r.value, !0), !0;
|
|
959
750
|
},
|
|
960
751
|
deleteProperty(e, t) {
|
|
961
752
|
var r = n.get(t);
|
|
962
753
|
if (r === void 0) {
|
|
963
754
|
if (t in e) {
|
|
964
|
-
let e = c(() => /* @__PURE__ */
|
|
965
|
-
n.set(t, e),
|
|
755
|
+
let e = c(() => /* @__PURE__ */ U(s, a));
|
|
756
|
+
n.set(t, e), Lt(i);
|
|
966
757
|
}
|
|
967
|
-
} else
|
|
758
|
+
} else W(r, s), Lt(i);
|
|
968
759
|
return !0;
|
|
969
760
|
},
|
|
970
761
|
get(t, r, i) {
|
|
971
|
-
if (r ===
|
|
762
|
+
if (r === A) return e;
|
|
972
763
|
var o = n.get(r), l = r in t;
|
|
973
|
-
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */
|
|
974
|
-
var u =
|
|
764
|
+
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ U(zt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
|
|
765
|
+
var u = Z(o);
|
|
975
766
|
return u === s ? void 0 : u;
|
|
976
767
|
}
|
|
977
768
|
return Reflect.get(t, r, i);
|
|
@@ -980,7 +771,7 @@ function Wt(e) {
|
|
|
980
771
|
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
981
772
|
if (r && "value" in r) {
|
|
982
773
|
var i = n.get(t);
|
|
983
|
-
i && (r.value =
|
|
774
|
+
i && (r.value = Z(i));
|
|
984
775
|
} else if (r === void 0) {
|
|
985
776
|
var a = n.get(t), o = a?.v;
|
|
986
777
|
if (a !== void 0 && o !== s) return {
|
|
@@ -993,34 +784,34 @@ function Wt(e) {
|
|
|
993
784
|
return r;
|
|
994
785
|
},
|
|
995
786
|
has(e, t) {
|
|
996
|
-
if (t ===
|
|
787
|
+
if (t === A) return !0;
|
|
997
788
|
var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
|
|
998
|
-
return (r !== void 0 ||
|
|
789
|
+
return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ U(i ? zt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
|
|
999
790
|
},
|
|
1000
791
|
set(e, t, o, l) {
|
|
1001
792
|
var u = n.get(t), d = t in e;
|
|
1002
793
|
if (r && t === "length") for (var f = o; f < u.v; f += 1) {
|
|
1003
794
|
var p = n.get(f + "");
|
|
1004
|
-
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */
|
|
795
|
+
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ U(s, a)), n.set(f + "", p)) : W(p, s);
|
|
1005
796
|
}
|
|
1006
|
-
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */
|
|
797
|
+
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ U(void 0, a)), W(u, zt(o)), n.set(t, u));
|
|
1007
798
|
else {
|
|
1008
799
|
d = u.v !== s;
|
|
1009
|
-
var m = c(() =>
|
|
1010
|
-
|
|
800
|
+
var m = c(() => zt(o));
|
|
801
|
+
W(u, m);
|
|
1011
802
|
}
|
|
1012
803
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1013
804
|
if (g?.set && g.set.call(l, o), !d) {
|
|
1014
805
|
if (r && typeof t == "string") {
|
|
1015
806
|
var _ = n.get("length"), v = Number(t);
|
|
1016
|
-
Number.isInteger(v) && v >= _.v &&
|
|
807
|
+
Number.isInteger(v) && v >= _.v && W(_, v + 1);
|
|
1017
808
|
}
|
|
1018
|
-
|
|
809
|
+
Lt(i);
|
|
1019
810
|
}
|
|
1020
811
|
return !0;
|
|
1021
812
|
},
|
|
1022
813
|
ownKeys(e) {
|
|
1023
|
-
|
|
814
|
+
Z(i);
|
|
1024
815
|
var t = Reflect.ownKeys(e).filter((e) => {
|
|
1025
816
|
var t = n.get(e);
|
|
1026
817
|
return t === void 0 || t.v !== s;
|
|
@@ -1029,97 +820,125 @@ function Wt(e) {
|
|
|
1029
820
|
return t;
|
|
1030
821
|
},
|
|
1031
822
|
setPrototypeOf() {
|
|
1032
|
-
|
|
823
|
+
Fe();
|
|
1033
824
|
}
|
|
1034
825
|
});
|
|
1035
826
|
}
|
|
1036
|
-
var
|
|
1037
|
-
function
|
|
1038
|
-
if (
|
|
1039
|
-
|
|
827
|
+
var Bt, Vt, Ht, Ut;
|
|
828
|
+
function Wt() {
|
|
829
|
+
if (Bt === void 0) {
|
|
830
|
+
Bt = window, Vt = /Firefox/.test(navigator.userAgent);
|
|
1040
831
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1041
|
-
|
|
832
|
+
Ht = h(t, "firstChild").get, Ut = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
|
|
1042
833
|
}
|
|
1043
834
|
}
|
|
1044
|
-
function
|
|
835
|
+
function Gt(e = "") {
|
|
1045
836
|
return document.createTextNode(e);
|
|
1046
837
|
}
|
|
1047
838
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1048
|
-
function
|
|
1049
|
-
return
|
|
839
|
+
function Kt(e) {
|
|
840
|
+
return Ht.call(e);
|
|
1050
841
|
}
|
|
1051
842
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1052
|
-
function
|
|
1053
|
-
return
|
|
843
|
+
function qt(e) {
|
|
844
|
+
return Ut.call(e);
|
|
1054
845
|
}
|
|
1055
|
-
function
|
|
1056
|
-
if (!
|
|
1057
|
-
var n = /* @__PURE__ */
|
|
1058
|
-
if (n === null) n =
|
|
846
|
+
function Jt(e, t) {
|
|
847
|
+
if (!N) return /* @__PURE__ */ Kt(e);
|
|
848
|
+
var n = /* @__PURE__ */ Kt(F);
|
|
849
|
+
if (n === null) n = F.appendChild(Gt());
|
|
1059
850
|
else if (t && n.nodeType !== 3) {
|
|
1060
|
-
var r =
|
|
1061
|
-
return n?.before(r),
|
|
851
|
+
var r = Gt();
|
|
852
|
+
return n?.before(r), I(r), r;
|
|
1062
853
|
}
|
|
1063
|
-
return t &&
|
|
854
|
+
return t && tn(n), I(n), n;
|
|
1064
855
|
}
|
|
1065
|
-
function
|
|
1066
|
-
if (!
|
|
1067
|
-
var n = /* @__PURE__ */
|
|
1068
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
856
|
+
function Yt(e, t = !1) {
|
|
857
|
+
if (!N) {
|
|
858
|
+
var n = /* @__PURE__ */ Kt(e);
|
|
859
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ qt(n) : n;
|
|
1069
860
|
}
|
|
1070
861
|
if (t) {
|
|
1071
|
-
if (
|
|
1072
|
-
var r =
|
|
1073
|
-
return
|
|
862
|
+
if (F?.nodeType !== 3) {
|
|
863
|
+
var r = Gt();
|
|
864
|
+
return F?.before(r), I(r), r;
|
|
1074
865
|
}
|
|
1075
|
-
|
|
866
|
+
tn(F);
|
|
1076
867
|
}
|
|
1077
|
-
return
|
|
868
|
+
return F;
|
|
1078
869
|
}
|
|
1079
|
-
function
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
870
|
+
function Xt(e, t = !1) {
|
|
871
|
+
if (!N) return /* @__PURE__ */ Kt(e);
|
|
872
|
+
var n = Jt(e, t);
|
|
873
|
+
return be(e), n;
|
|
874
|
+
}
|
|
875
|
+
function Zt(e, t = 1, n = !1) {
|
|
876
|
+
let r = N ? F : e;
|
|
877
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ qt(r);
|
|
878
|
+
if (!N) return r;
|
|
1083
879
|
if (n) {
|
|
1084
880
|
if (r?.nodeType !== 3) {
|
|
1085
|
-
var a =
|
|
1086
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
881
|
+
var a = Gt();
|
|
882
|
+
return r === null ? i?.after(a) : r.before(a), I(a), a;
|
|
1087
883
|
}
|
|
1088
|
-
|
|
884
|
+
tn(r);
|
|
1089
885
|
}
|
|
1090
|
-
return
|
|
886
|
+
return I(r), r;
|
|
1091
887
|
}
|
|
1092
|
-
function
|
|
888
|
+
function Qt(e) {
|
|
1093
889
|
e.textContent = "";
|
|
1094
890
|
}
|
|
1095
|
-
function
|
|
891
|
+
function $t() {
|
|
1096
892
|
return !1;
|
|
1097
893
|
}
|
|
1098
|
-
function
|
|
894
|
+
function en(e, t, n) {
|
|
1099
895
|
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);
|
|
1100
896
|
}
|
|
1101
|
-
function
|
|
897
|
+
function tn(e) {
|
|
1102
898
|
if (e.nodeValue.length < 65536) return;
|
|
1103
899
|
let t = e.nextSibling;
|
|
1104
900
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1105
901
|
}
|
|
902
|
+
function nn(e) {
|
|
903
|
+
var t = J;
|
|
904
|
+
if (t === null) return K.f |= ce, e;
|
|
905
|
+
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
906
|
+
rn(e, t);
|
|
907
|
+
}
|
|
908
|
+
function rn(e, t) {
|
|
909
|
+
if (!(t !== null && t.f & 16384)) {
|
|
910
|
+
for (; t !== null;) {
|
|
911
|
+
if (t.f & 128 && !(t.f & 33570816)) {
|
|
912
|
+
if (!(t.f & 32768)) throw e;
|
|
913
|
+
try {
|
|
914
|
+
t.b.error(e);
|
|
915
|
+
return;
|
|
916
|
+
} catch (t) {
|
|
917
|
+
e = t;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
t = t.parent;
|
|
921
|
+
}
|
|
922
|
+
throw e;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
1106
925
|
//#endregion
|
|
1107
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1108
|
-
function
|
|
1109
|
-
|
|
926
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
927
|
+
function an(e) {
|
|
928
|
+
J === null && (K === null && Ae(e), ke()), Mn && Oe(e);
|
|
1110
929
|
}
|
|
1111
|
-
function
|
|
930
|
+
function on(e, t) {
|
|
1112
931
|
var n = t.last;
|
|
1113
932
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1114
933
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var n =
|
|
1117
|
-
n !== null && n.f & 8192 && (e |=
|
|
934
|
+
function sn(e, t) {
|
|
935
|
+
var n = J;
|
|
936
|
+
n !== null && n.f & 8192 && (e |= w);
|
|
1118
937
|
var r = {
|
|
1119
938
|
ctx: R,
|
|
1120
939
|
deps: null,
|
|
1121
940
|
nodes: null,
|
|
1122
|
-
f: e |
|
|
941
|
+
f: e | C | 512,
|
|
1123
942
|
first: null,
|
|
1124
943
|
fn: t,
|
|
1125
944
|
last: null,
|
|
@@ -1133,249 +952,255 @@ function ln(e, t) {
|
|
|
1133
952
|
};
|
|
1134
953
|
V?.register_created_effect(r);
|
|
1135
954
|
var i = r;
|
|
1136
|
-
if (e & 4)
|
|
955
|
+
if (e & 4) vt === null ? St.ensure().schedule(r) : vt.push(r);
|
|
1137
956
|
else if (t !== null) {
|
|
1138
957
|
try {
|
|
1139
|
-
|
|
958
|
+
Zn(r);
|
|
1140
959
|
} catch (e) {
|
|
1141
|
-
throw
|
|
960
|
+
throw G(r), e;
|
|
1142
961
|
}
|
|
1143
|
-
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 |=
|
|
962
|
+
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));
|
|
1144
963
|
}
|
|
1145
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1146
|
-
var a =
|
|
964
|
+
if (i !== null && (i.parent = n, n !== null && on(i, n), K !== null && K.f & 2 && !(e & 64))) {
|
|
965
|
+
var a = K;
|
|
1147
966
|
(a.effects ??= []).push(i);
|
|
1148
967
|
}
|
|
1149
968
|
return r;
|
|
1150
969
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
970
|
+
function cn() {
|
|
971
|
+
return K !== null && !Pn;
|
|
1153
972
|
}
|
|
1154
|
-
function
|
|
1155
|
-
let t =
|
|
1156
|
-
return z(t,
|
|
973
|
+
function ln(e) {
|
|
974
|
+
let t = sn(8, null);
|
|
975
|
+
return z(t, S), t.teardown = e, t;
|
|
1157
976
|
}
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1160
|
-
var t =
|
|
1161
|
-
if (!
|
|
977
|
+
function un(e) {
|
|
978
|
+
an("$effect");
|
|
979
|
+
var t = J.f;
|
|
980
|
+
if (!K && t & 32 && R !== null && !R.i) {
|
|
1162
981
|
var n = R;
|
|
1163
982
|
(n.e ??= []).push(e);
|
|
1164
|
-
} else return
|
|
983
|
+
} else return dn(e);
|
|
1165
984
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
985
|
+
function dn(e) {
|
|
986
|
+
return sn(4 | ae, e);
|
|
1168
987
|
}
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1171
|
-
let t =
|
|
988
|
+
function fn(e) {
|
|
989
|
+
St.ensure();
|
|
990
|
+
let t = sn(64 | D, e);
|
|
1172
991
|
return () => {
|
|
1173
|
-
|
|
992
|
+
G(t);
|
|
1174
993
|
};
|
|
1175
994
|
}
|
|
1176
|
-
function
|
|
1177
|
-
|
|
1178
|
-
let t =
|
|
995
|
+
function pn(e) {
|
|
996
|
+
St.ensure();
|
|
997
|
+
let t = sn(64 | D, e);
|
|
1179
998
|
return (e = {}) => new Promise((n) => {
|
|
1180
|
-
e.outro ?
|
|
1181
|
-
|
|
1182
|
-
}) : (
|
|
999
|
+
e.outro ? Tn(t, () => {
|
|
1000
|
+
G(t), n(void 0);
|
|
1001
|
+
}) : (G(t), n(void 0));
|
|
1183
1002
|
});
|
|
1184
1003
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1004
|
+
function mn(e) {
|
|
1005
|
+
return sn(4, e);
|
|
1187
1006
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1007
|
+
function hn(e) {
|
|
1008
|
+
return sn(k | D, e);
|
|
1190
1009
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return
|
|
1010
|
+
function gn(e, t = 0) {
|
|
1011
|
+
return sn(8 | t, e);
|
|
1193
1012
|
}
|
|
1194
|
-
function
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
e(...t.map(
|
|
1013
|
+
function _n(e, t = [], n = [], r = []) {
|
|
1014
|
+
et(r, t, n, (t) => {
|
|
1015
|
+
sn(8, () => {
|
|
1016
|
+
e(...t.map(Z));
|
|
1198
1017
|
});
|
|
1199
1018
|
});
|
|
1200
1019
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return
|
|
1020
|
+
function vn(e, t = 0) {
|
|
1021
|
+
return sn(16 | t, e);
|
|
1203
1022
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1023
|
+
function yn(e) {
|
|
1024
|
+
return sn(32 | D, e);
|
|
1206
1025
|
}
|
|
1207
|
-
function
|
|
1026
|
+
function bn(e) {
|
|
1208
1027
|
var t = e.teardown;
|
|
1209
1028
|
if (t !== null) {
|
|
1210
|
-
let
|
|
1211
|
-
|
|
1029
|
+
let n = Mn, r = K;
|
|
1030
|
+
Nn(!0), q(null);
|
|
1212
1031
|
try {
|
|
1213
1032
|
t.call(null);
|
|
1033
|
+
} catch (t) {
|
|
1034
|
+
rn(t, e.parent);
|
|
1214
1035
|
} finally {
|
|
1215
|
-
|
|
1036
|
+
Nn(n), q(r);
|
|
1216
1037
|
}
|
|
1217
1038
|
}
|
|
1218
1039
|
}
|
|
1219
|
-
function
|
|
1040
|
+
function xn(e, t = !1) {
|
|
1220
1041
|
var n = e.first;
|
|
1221
1042
|
for (e.first = e.last = null; n !== null;) {
|
|
1222
1043
|
let e = n.ac;
|
|
1223
1044
|
e !== null && $e(() => {
|
|
1224
|
-
e.abort(
|
|
1045
|
+
e.abort(me);
|
|
1225
1046
|
});
|
|
1226
1047
|
var r = n.next;
|
|
1227
|
-
n.f & 64 ? n.parent = null :
|
|
1048
|
+
n.f & 64 ? n.parent = null : G(n, t), n = r;
|
|
1228
1049
|
}
|
|
1229
1050
|
}
|
|
1230
|
-
function
|
|
1051
|
+
function Sn(e) {
|
|
1231
1052
|
for (var t = e.first; t !== null;) {
|
|
1232
1053
|
var n = t.next;
|
|
1233
|
-
t.f & 32 ||
|
|
1054
|
+
t.f & 32 || G(t), t = n;
|
|
1234
1055
|
}
|
|
1235
1056
|
}
|
|
1236
|
-
function
|
|
1057
|
+
function G(e, t = !0) {
|
|
1237
1058
|
var n = !1;
|
|
1238
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1059
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, xn(e, t && !n), Xn(e, 0);
|
|
1239
1060
|
var r = e.nodes && e.nodes.t;
|
|
1240
1061
|
if (r !== null) for (let e of r) e.stop();
|
|
1241
|
-
|
|
1062
|
+
bn(e), e.f ^= ie, e.f |= T;
|
|
1242
1063
|
var i = e.parent;
|
|
1243
|
-
i !== null && i.first !== null &&
|
|
1064
|
+
i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1244
1065
|
}
|
|
1245
|
-
function
|
|
1066
|
+
function Cn(e, t) {
|
|
1246
1067
|
for (; e !== null;) {
|
|
1247
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1068
|
+
var n = e === t ? null : /* @__PURE__ */ qt(e);
|
|
1248
1069
|
e.remove(), e = n;
|
|
1249
1070
|
}
|
|
1250
1071
|
}
|
|
1251
|
-
function
|
|
1072
|
+
function wn(e) {
|
|
1252
1073
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1253
1074
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1254
1075
|
}
|
|
1255
|
-
function
|
|
1076
|
+
function Tn(e, t, n = !0) {
|
|
1256
1077
|
var r = [];
|
|
1257
|
-
|
|
1078
|
+
e.f |= 256, En(e, r, !0);
|
|
1258
1079
|
var i = () => {
|
|
1259
|
-
n &&
|
|
1080
|
+
n && G(e), t && t();
|
|
1260
1081
|
}, a = r.length;
|
|
1261
1082
|
if (a > 0) {
|
|
1262
1083
|
var o = () => --a || i();
|
|
1263
1084
|
for (var s of r) s.out(o);
|
|
1264
1085
|
} else i();
|
|
1265
1086
|
}
|
|
1266
|
-
function
|
|
1087
|
+
function En(e, t, n) {
|
|
1267
1088
|
if (!(e.f & 8192)) {
|
|
1268
|
-
e.f ^=
|
|
1089
|
+
e.f ^= w;
|
|
1269
1090
|
var r = e.nodes && e.nodes.t;
|
|
1270
1091
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1271
1092
|
for (var i = e.first; i !== null;) {
|
|
1272
1093
|
var a = i.next;
|
|
1273
1094
|
if (!(i.f & 64)) {
|
|
1274
1095
|
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1275
|
-
|
|
1096
|
+
En(i, t, o ? n : !1);
|
|
1276
1097
|
}
|
|
1277
1098
|
i = a;
|
|
1278
1099
|
}
|
|
1279
1100
|
}
|
|
1280
1101
|
}
|
|
1281
|
-
function
|
|
1282
|
-
|
|
1102
|
+
function Dn(e) {
|
|
1103
|
+
e.f &= -257, On(e, !0);
|
|
1283
1104
|
}
|
|
1284
|
-
function
|
|
1285
|
-
if (e.f & 8192) {
|
|
1286
|
-
e.f ^=
|
|
1105
|
+
function On(e, t) {
|
|
1106
|
+
if (!(e.f & 256) && e.f & 8192) {
|
|
1107
|
+
e.f ^= w, e.f & 1024 || (z(e, C), St.ensure().schedule(e));
|
|
1287
1108
|
for (var n = e.first; n !== null;) {
|
|
1288
1109
|
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1289
|
-
|
|
1110
|
+
On(n, i ? t : !1), n = r;
|
|
1290
1111
|
}
|
|
1291
1112
|
var a = e.nodes && e.nodes.t;
|
|
1292
1113
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1293
1114
|
}
|
|
1294
1115
|
}
|
|
1295
|
-
function
|
|
1116
|
+
function kn(e, t) {
|
|
1296
1117
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1297
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1118
|
+
var i = n === r ? null : /* @__PURE__ */ qt(n);
|
|
1298
1119
|
t.append(n), n = i;
|
|
1299
1120
|
}
|
|
1300
1121
|
}
|
|
1301
1122
|
//#endregion
|
|
1302
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1303
|
-
var
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1123
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
|
|
1124
|
+
var An = null, jn = !1, Mn = !1;
|
|
1125
|
+
function Nn(e) {
|
|
1126
|
+
Mn = e;
|
|
1127
|
+
}
|
|
1128
|
+
var K = null, Pn = !1;
|
|
1129
|
+
function q(e) {
|
|
1130
|
+
K = e;
|
|
1306
1131
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
|
|
1132
|
+
var J = null;
|
|
1133
|
+
function Fn(e) {
|
|
1134
|
+
J = e;
|
|
1310
1135
|
}
|
|
1311
|
-
var
|
|
1136
|
+
var In = null;
|
|
1312
1137
|
function Ln(e) {
|
|
1313
|
-
|
|
1138
|
+
K !== null && (In ??= /* @__PURE__ */ new Set()).add(e);
|
|
1314
1139
|
}
|
|
1315
|
-
var Rn = null;
|
|
1140
|
+
var Y = null, X = 0, Rn = null;
|
|
1316
1141
|
function zn(e) {
|
|
1317
|
-
|
|
1142
|
+
Rn = e;
|
|
1318
1143
|
}
|
|
1319
|
-
var
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1144
|
+
var Bn = 1, Vn = 0, Hn = Vn;
|
|
1145
|
+
function Un(e) {
|
|
1146
|
+
Hn = e;
|
|
1322
1147
|
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
Wn = e;
|
|
1148
|
+
function Wn() {
|
|
1149
|
+
return ++Bn;
|
|
1326
1150
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return ++Hn;
|
|
1329
|
-
}
|
|
1330
|
-
function qn(e) {
|
|
1151
|
+
function Gn(e) {
|
|
1331
1152
|
var t = e.f;
|
|
1332
1153
|
if (t & 2048) return !0;
|
|
1333
|
-
if (t & 2 && (e.f &= ~
|
|
1154
|
+
if (t & 2 && (e.f &= ~oe), t & 4096) {
|
|
1334
1155
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1335
1156
|
var a = n[i];
|
|
1336
|
-
if (
|
|
1157
|
+
if (Gn(a) && ut(a), a.wv > e.wv) return !0;
|
|
1337
1158
|
}
|
|
1338
|
-
t & 512 &&
|
|
1159
|
+
t & 512 && H === null && z(e, S);
|
|
1339
1160
|
}
|
|
1340
1161
|
return !1;
|
|
1341
1162
|
}
|
|
1342
|
-
function
|
|
1163
|
+
function Kn(e, t, n = !0) {
|
|
1343
1164
|
var r = e.reactions;
|
|
1344
|
-
if (r !== null && !(
|
|
1165
|
+
if (r !== null && !(In !== null && In.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1345
1166
|
var a = r[i];
|
|
1346
|
-
a.f & 2 ?
|
|
1167
|
+
a.f & 2 ? Kn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, ne), Dt(a));
|
|
1347
1168
|
}
|
|
1348
1169
|
}
|
|
1349
|
-
function
|
|
1350
|
-
var t =
|
|
1351
|
-
|
|
1352
|
-
e.ac.abort(
|
|
1170
|
+
function qn(e) {
|
|
1171
|
+
var t = Y, n = X, r = Rn, i = K, a = In, o = R, s = Pn, c = Hn, l = e.f;
|
|
1172
|
+
Y = null, X = 0, Rn = null, K = l & 96 ? null : e, In = null, Re(e.ctx), Pn = !1, Hn = ++Vn, e.ac !== null && ($e(() => {
|
|
1173
|
+
e.ac.abort(me);
|
|
1353
1174
|
}), e.ac = null);
|
|
1354
1175
|
try {
|
|
1355
|
-
e.f |=
|
|
1176
|
+
e.f |= se;
|
|
1356
1177
|
var u = e.fn, d = u();
|
|
1357
|
-
e.f |=
|
|
1358
|
-
var f = e
|
|
1359
|
-
if (
|
|
1360
|
-
var m;
|
|
1361
|
-
if (p || Zn(e, Y), f !== null && Y > 0) for (f.length = Y + J.length, m = 0; m < J.length; m++) f[Y + m] = J[m];
|
|
1362
|
-
else e.deps = f = J;
|
|
1363
|
-
if (un() && e.f & 512) for (m = Y; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1364
|
-
} else !p && f !== null && Y < f.length && (Zn(e, Y), f.length = Y);
|
|
1365
|
-
if (Be() && Bn !== null && !In && f !== null && !(e.f & 6146)) for (m = 0; m < Bn.length; m++) Jn(Bn[m], e);
|
|
1178
|
+
e.f |= re;
|
|
1179
|
+
var f = Jn(e);
|
|
1180
|
+
if (He() && Rn !== null && !Pn && f !== null && !(e.f & 6146)) for (var p = 0; p < Rn.length; p++) Kn(Rn[p], e);
|
|
1366
1181
|
if (i !== null && i !== e) {
|
|
1367
|
-
if (
|
|
1368
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1369
|
-
|
|
1182
|
+
if (Vn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Vn;
|
|
1183
|
+
if (t !== null) for (let e of t) e.rv = Vn;
|
|
1184
|
+
Rn !== null && (r === null ? r = Rn : r.push(...Rn));
|
|
1370
1185
|
}
|
|
1371
|
-
return e.f & 8388608 && (e.f ^=
|
|
1372
|
-
} catch (
|
|
1373
|
-
return
|
|
1186
|
+
return e.f & 8388608 && (e.f ^= ce), d;
|
|
1187
|
+
} catch (t) {
|
|
1188
|
+
return Jn(e), nn(t);
|
|
1374
1189
|
} finally {
|
|
1375
|
-
e.f ^=
|
|
1190
|
+
e.f ^= se, Y = t, X = n, Rn = r, K = i, In = a, Re(o), Pn = s, Hn = c;
|
|
1376
1191
|
}
|
|
1377
1192
|
}
|
|
1378
|
-
function
|
|
1193
|
+
function Jn(e) {
|
|
1194
|
+
var t = e.deps, n = V?.is_fork;
|
|
1195
|
+
if (Y !== null) {
|
|
1196
|
+
var r;
|
|
1197
|
+
if (n || Xn(e, X), t !== null && X > 0) for (t.length = X + Y.length, r = 0; r < Y.length; r++) t[X + r] = Y[r];
|
|
1198
|
+
else e.deps = t = Y;
|
|
1199
|
+
if (cn() && e.f & 512) for (r = X; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1200
|
+
} else !n && t !== null && X < t.length && (Xn(e, X), t.length = X);
|
|
1201
|
+
return t;
|
|
1202
|
+
}
|
|
1203
|
+
function Yn(e, t) {
|
|
1379
1204
|
let n = t.reactions;
|
|
1380
1205
|
if (n !== null) {
|
|
1381
1206
|
var r = u.call(n, e);
|
|
@@ -1384,88 +1209,88 @@ function Xn(e, t) {
|
|
|
1384
1209
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1385
1210
|
}
|
|
1386
1211
|
}
|
|
1387
|
-
if (n === null && t.f & 2 && (
|
|
1212
|
+
if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
|
|
1388
1213
|
var a = t;
|
|
1389
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~
|
|
1390
|
-
a.ac.abort(
|
|
1391
|
-
}),
|
|
1214
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~oe), a.v !== s && Je(a), a.ac !== null && $e(() => {
|
|
1215
|
+
a.ac.abort(me), a.ac = null, z(a, C);
|
|
1216
|
+
}), dt(a), Xn(a, 0);
|
|
1392
1217
|
}
|
|
1393
1218
|
}
|
|
1394
|
-
function
|
|
1219
|
+
function Xn(e, t) {
|
|
1395
1220
|
var n = e.deps;
|
|
1396
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1221
|
+
if (n !== null) for (var r = t; r < n.length; r++) Yn(e, n[r]);
|
|
1397
1222
|
}
|
|
1398
|
-
function
|
|
1223
|
+
function Zn(e) {
|
|
1399
1224
|
var t = e.f;
|
|
1400
1225
|
if (!(t & 16384)) {
|
|
1401
|
-
z(e,
|
|
1402
|
-
var n =
|
|
1403
|
-
|
|
1226
|
+
z(e, S);
|
|
1227
|
+
var n = J, r = jn;
|
|
1228
|
+
J = e, jn = !(t & 96);
|
|
1404
1229
|
try {
|
|
1405
|
-
t & 16777232 ?
|
|
1406
|
-
var i =
|
|
1407
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1230
|
+
t & 16777232 ? Sn(e) : xn(e), bn(e);
|
|
1231
|
+
var i = qn(e);
|
|
1232
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Bn;
|
|
1408
1233
|
} finally {
|
|
1409
|
-
|
|
1234
|
+
jn = r, J = n;
|
|
1410
1235
|
}
|
|
1411
1236
|
}
|
|
1412
1237
|
}
|
|
1413
|
-
function
|
|
1238
|
+
function Z(e) {
|
|
1414
1239
|
var t = !!(e.f & 2);
|
|
1415
|
-
if (
|
|
1416
|
-
var n =
|
|
1417
|
-
if (
|
|
1240
|
+
if (An?.add(e), K !== null && !Pn && !(J !== null && J.f & 16384) && (In === null || !In.has(e))) {
|
|
1241
|
+
var n = K.deps;
|
|
1242
|
+
if (K.f & 2097152) e.rv < Vn && (e.rv = Vn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1418
1243
|
else {
|
|
1419
|
-
|
|
1244
|
+
K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
|
|
1420
1245
|
var r = e.reactions;
|
|
1421
|
-
r === null ? e.reactions = [
|
|
1246
|
+
r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
|
|
1422
1247
|
}
|
|
1423
1248
|
}
|
|
1424
|
-
if (
|
|
1249
|
+
if (Mn && jt.has(e)) return jt.get(e);
|
|
1425
1250
|
if (t) {
|
|
1426
1251
|
var i = e;
|
|
1427
|
-
if (
|
|
1252
|
+
if (Mn) {
|
|
1428
1253
|
var a = i.v;
|
|
1429
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1254
|
+
return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = lt(i)), jt.set(i, a), a;
|
|
1430
1255
|
}
|
|
1431
|
-
var o = !(i.f & 512) && !
|
|
1432
|
-
|
|
1256
|
+
var o = !(i.f & 512) && !Pn && K !== null && (jn || !!(K.f & 512)), s = (i.f & re) === 0;
|
|
1257
|
+
Gn(i) && (o && (i.f |= 512), ut(i)), o && !s && (ft(i), Qn(i));
|
|
1433
1258
|
}
|
|
1434
|
-
if (
|
|
1259
|
+
if (H?.has(e)) return H.get(e);
|
|
1435
1260
|
if (e.f & 8388608) throw e.v;
|
|
1436
1261
|
return e.v;
|
|
1437
1262
|
}
|
|
1438
|
-
function
|
|
1439
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1263
|
+
function Qn(e) {
|
|
1264
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ft(t), Qn(t));
|
|
1440
1265
|
}
|
|
1441
|
-
function
|
|
1266
|
+
function $n(e) {
|
|
1442
1267
|
if (e.v === s) return !0;
|
|
1443
1268
|
if (e.deps === null) return !1;
|
|
1444
|
-
for (let t of e.deps) if (
|
|
1269
|
+
for (let t of e.deps) if (jt.has(t) || t.f & 2 && $n(t)) return !0;
|
|
1445
1270
|
return !1;
|
|
1446
1271
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var t =
|
|
1272
|
+
function er(e) {
|
|
1273
|
+
var t = Pn;
|
|
1449
1274
|
try {
|
|
1450
|
-
return
|
|
1275
|
+
return Pn = !0, e();
|
|
1451
1276
|
} finally {
|
|
1452
|
-
|
|
1277
|
+
Pn = t;
|
|
1453
1278
|
}
|
|
1454
1279
|
}
|
|
1455
|
-
function
|
|
1280
|
+
function tr(e) {
|
|
1456
1281
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1457
|
-
if (
|
|
1282
|
+
if (A in e) nr(e);
|
|
1458
1283
|
else if (!Array.isArray(e)) for (let t in e) {
|
|
1459
1284
|
let n = e[t];
|
|
1460
|
-
typeof n == "object" && n &&
|
|
1285
|
+
typeof n == "object" && n && A in n && nr(n);
|
|
1461
1286
|
}
|
|
1462
1287
|
}
|
|
1463
1288
|
}
|
|
1464
|
-
function
|
|
1289
|
+
function nr(e, t = /* @__PURE__ */ new Set()) {
|
|
1465
1290
|
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1466
1291
|
t.add(e), e instanceof Date && e.getTime();
|
|
1467
1292
|
for (let n in e) try {
|
|
1468
|
-
|
|
1293
|
+
nr(e[n], t);
|
|
1469
1294
|
} catch {}
|
|
1470
1295
|
let n = y(e);
|
|
1471
1296
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
@@ -1480,24 +1305,26 @@ function rr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1480
1305
|
}
|
|
1481
1306
|
}
|
|
1482
1307
|
//#endregion
|
|
1483
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1486
|
-
(t[
|
|
1308
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1309
|
+
var rr = Symbol("events"), ir = /* @__PURE__ */ new Set(), ar = /* @__PURE__ */ new Set();
|
|
1310
|
+
function or(e, t, n) {
|
|
1311
|
+
(t[rr] ??= {})[e] = n;
|
|
1487
1312
|
}
|
|
1488
|
-
function
|
|
1489
|
-
for (var t = 0; t < e.length; t++)
|
|
1490
|
-
for (var n of
|
|
1313
|
+
function sr(e) {
|
|
1314
|
+
for (var t = 0; t < e.length; t++) ir.add(e[t]);
|
|
1315
|
+
for (var n of ar) n(e);
|
|
1491
1316
|
}
|
|
1492
|
-
var lr =
|
|
1317
|
+
var cr = null, lr = !1;
|
|
1493
1318
|
function ur(e) {
|
|
1494
1319
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1495
|
-
lr =
|
|
1496
|
-
|
|
1320
|
+
cr = e, lr || (lr = !0, setTimeout(() => {
|
|
1321
|
+
lr = !1, cr = null;
|
|
1322
|
+
}));
|
|
1323
|
+
var o = 0, s = cr === e && e[rr];
|
|
1497
1324
|
if (s) {
|
|
1498
1325
|
var c = i.indexOf(s);
|
|
1499
1326
|
if (c !== -1 && (t === document || t === window)) {
|
|
1500
|
-
e[
|
|
1327
|
+
e[rr] = t;
|
|
1501
1328
|
return;
|
|
1502
1329
|
}
|
|
1503
1330
|
var l = i.indexOf(t);
|
|
@@ -1511,12 +1338,12 @@ function ur(e) {
|
|
|
1511
1338
|
return a || n;
|
|
1512
1339
|
}
|
|
1513
1340
|
});
|
|
1514
|
-
var u =
|
|
1515
|
-
|
|
1341
|
+
var u = K, d = J;
|
|
1342
|
+
q(null), Fn(null);
|
|
1516
1343
|
try {
|
|
1517
1344
|
for (var f, p = []; a !== null && a !== t;) {
|
|
1518
1345
|
try {
|
|
1519
|
-
var h = a[
|
|
1346
|
+
var h = a[rr]?.[r];
|
|
1520
1347
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1521
1348
|
} catch (e) {
|
|
1522
1349
|
f ? p.push(e) : f = e;
|
|
@@ -1531,24 +1358,24 @@ function ur(e) {
|
|
|
1531
1358
|
throw f;
|
|
1532
1359
|
}
|
|
1533
1360
|
} finally {
|
|
1534
|
-
e[
|
|
1361
|
+
e[rr] = t, delete e.currentTarget, q(u), Fn(d);
|
|
1535
1362
|
}
|
|
1536
1363
|
}
|
|
1537
1364
|
}
|
|
1538
1365
|
//#endregion
|
|
1539
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1366
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1540
1367
|
var dr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1541
1368
|
function fr(e) {
|
|
1542
1369
|
return dr?.createHTML(e) ?? e;
|
|
1543
1370
|
}
|
|
1544
1371
|
function pr(e) {
|
|
1545
|
-
var t =
|
|
1372
|
+
var t = en("template");
|
|
1546
1373
|
return t.innerHTML = fr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1547
1374
|
}
|
|
1548
1375
|
//#endregion
|
|
1549
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1376
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1550
1377
|
function mr(e, t) {
|
|
1551
|
-
var n =
|
|
1378
|
+
var n = J;
|
|
1552
1379
|
n.nodes === null && (n.nodes = {
|
|
1553
1380
|
start: e,
|
|
1554
1381
|
end: t,
|
|
@@ -1560,104 +1387,306 @@ function mr(e, t) {
|
|
|
1560
1387
|
function hr(e, t) {
|
|
1561
1388
|
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1562
1389
|
return () => {
|
|
1563
|
-
if (
|
|
1564
|
-
i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */
|
|
1565
|
-
var t = r ||
|
|
1390
|
+
if (N) return mr(F, null), F;
|
|
1391
|
+
i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Kt(i)));
|
|
1392
|
+
var t = r || Vt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1566
1393
|
if (n) {
|
|
1567
|
-
var o = /* @__PURE__ */
|
|
1394
|
+
var o = /* @__PURE__ */ Kt(t), s = t.lastChild;
|
|
1568
1395
|
mr(o, s);
|
|
1569
1396
|
} else mr(t, t);
|
|
1570
1397
|
return t;
|
|
1571
1398
|
};
|
|
1572
1399
|
}
|
|
1573
1400
|
function gr() {
|
|
1574
|
-
if (
|
|
1575
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1401
|
+
if (N) return mr(F, null), F;
|
|
1402
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = Gt();
|
|
1576
1403
|
return e.append(t, n), mr(t, n), e;
|
|
1577
1404
|
}
|
|
1578
|
-
function
|
|
1579
|
-
if (
|
|
1580
|
-
var n =
|
|
1581
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1405
|
+
function _r(e, t) {
|
|
1406
|
+
if (N) {
|
|
1407
|
+
var n = J;
|
|
1408
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ye();
|
|
1582
1409
|
return;
|
|
1583
1410
|
}
|
|
1584
1411
|
e !== null && e.before(t);
|
|
1585
1412
|
}
|
|
1586
1413
|
[.../* @__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(".")];
|
|
1587
|
-
var
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1414
|
+
var vr = ["touchstart", "touchmove"];
|
|
1415
|
+
function yr(e) {
|
|
1416
|
+
return vr.includes(e);
|
|
1590
1417
|
}
|
|
1591
|
-
|
|
1418
|
+
//#endregion
|
|
1419
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1420
|
+
function br(e) {
|
|
1421
|
+
let t = 0, n = Nt(0), r;
|
|
1422
|
+
return () => {
|
|
1423
|
+
cn() && (Z(n), gn(() => (t === 0 && (r = er(() => e(() => Lt(n)))), t += 1, () => {
|
|
1424
|
+
Ge(() => {
|
|
1425
|
+
--t, t === 0 && (r?.(), r = void 0, Lt(n));
|
|
1426
|
+
});
|
|
1427
|
+
})));
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1432
|
+
var xr = E | D;
|
|
1433
|
+
function Sr(e, t, n, r) {
|
|
1434
|
+
new Cr(e, t, n, r);
|
|
1435
|
+
}
|
|
1436
|
+
var Cr = class {
|
|
1437
|
+
parent;
|
|
1438
|
+
is_pending = !1;
|
|
1439
|
+
transform_error;
|
|
1440
|
+
#e;
|
|
1441
|
+
#t = N ? F : null;
|
|
1442
|
+
#n;
|
|
1443
|
+
#r;
|
|
1444
|
+
#i;
|
|
1445
|
+
#a = null;
|
|
1446
|
+
#o = null;
|
|
1447
|
+
#s = null;
|
|
1448
|
+
#c = null;
|
|
1449
|
+
#l = 0;
|
|
1450
|
+
#u = 0;
|
|
1451
|
+
#d = !1;
|
|
1452
|
+
#f = /* @__PURE__ */ new Set();
|
|
1453
|
+
#p = /* @__PURE__ */ new Set();
|
|
1454
|
+
#m = null;
|
|
1455
|
+
#h = br(() => (this.#m = Nt(this.#l), () => {
|
|
1456
|
+
this.#m = null;
|
|
1457
|
+
}));
|
|
1458
|
+
constructor(e, t, n, r) {
|
|
1459
|
+
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1460
|
+
var t = J;
|
|
1461
|
+
t.b = this, t.f |= 128, n(e);
|
|
1462
|
+
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = vn(() => {
|
|
1463
|
+
if (N) {
|
|
1464
|
+
let e = this.#t;
|
|
1465
|
+
ye();
|
|
1466
|
+
let t = e.data === "[!";
|
|
1467
|
+
if (e.data.startsWith("[?")) {
|
|
1468
|
+
let t = JSON.parse(e.data.slice(2));
|
|
1469
|
+
this.#_(t);
|
|
1470
|
+
} else t ? this.#y() : this.#g();
|
|
1471
|
+
} else this.#b();
|
|
1472
|
+
}, xr), N && (this.#e = F);
|
|
1473
|
+
}
|
|
1474
|
+
#g() {
|
|
1475
|
+
try {
|
|
1476
|
+
this.#a = yn(() => this.#r(this.#e));
|
|
1477
|
+
} catch (e) {
|
|
1478
|
+
this.error(e);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
#_(e) {
|
|
1482
|
+
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1483
|
+
Ge(r), t && (this.#s = yn(() => {
|
|
1484
|
+
t(this.#e, () => e, () => n);
|
|
1485
|
+
}));
|
|
1486
|
+
}
|
|
1487
|
+
#v(e) {
|
|
1488
|
+
var t = !1, n = !1;
|
|
1489
|
+
let r = () => {
|
|
1490
|
+
if (t) {
|
|
1491
|
+
ve();
|
|
1492
|
+
return;
|
|
1493
|
+
}
|
|
1494
|
+
t = !0, n && Le(), this.#s !== null && Tn(this.#s, () => {
|
|
1495
|
+
this.#s = null;
|
|
1496
|
+
}), this.#S(() => {
|
|
1497
|
+
this.#b();
|
|
1498
|
+
});
|
|
1499
|
+
};
|
|
1500
|
+
return {
|
|
1501
|
+
reset: r,
|
|
1502
|
+
invoke_onerror: () => {
|
|
1503
|
+
try {
|
|
1504
|
+
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1505
|
+
} catch (e) {
|
|
1506
|
+
rn(e, this.#i && this.#i.parent);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
#y() {
|
|
1512
|
+
let e = this.#n.pending;
|
|
1513
|
+
e && (this.is_pending = !0, this.#o = yn(() => e(this.#e)), Ge(() => {
|
|
1514
|
+
var e = this.#c = document.createDocumentFragment(), t = Gt(), n = !1;
|
|
1515
|
+
if (e.append(t), this.#a = this.#S(() => {
|
|
1516
|
+
try {
|
|
1517
|
+
return yn(() => this.#r(t));
|
|
1518
|
+
} catch (e) {
|
|
1519
|
+
try {
|
|
1520
|
+
this.error(e), n = !0;
|
|
1521
|
+
} catch (e) {
|
|
1522
|
+
rn(e, this.#i.parent);
|
|
1523
|
+
}
|
|
1524
|
+
return null;
|
|
1525
|
+
}
|
|
1526
|
+
}), this.#a === null) {
|
|
1527
|
+
this.#c = null, n && this.#x(V);
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1530
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
|
|
1531
|
+
this.#o = null;
|
|
1532
|
+
}), this.#x(V));
|
|
1533
|
+
}));
|
|
1534
|
+
}
|
|
1535
|
+
#b() {
|
|
1536
|
+
try {
|
|
1537
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = yn(() => {
|
|
1538
|
+
this.#r(this.#e);
|
|
1539
|
+
}), this.#u > 0) {
|
|
1540
|
+
var e = this.#c = document.createDocumentFragment();
|
|
1541
|
+
kn(this.#a, e);
|
|
1542
|
+
let t = this.#n.pending;
|
|
1543
|
+
this.#o = yn(() => t(this.#e));
|
|
1544
|
+
} else this.#x(V);
|
|
1545
|
+
} catch (e) {
|
|
1546
|
+
this.error(e);
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
#x(e) {
|
|
1550
|
+
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1551
|
+
}
|
|
1552
|
+
defer_effect(e) {
|
|
1553
|
+
Xe(e, this.#f, this.#p);
|
|
1554
|
+
}
|
|
1555
|
+
is_rendered() {
|
|
1556
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1557
|
+
}
|
|
1558
|
+
has_pending_snippet() {
|
|
1559
|
+
return !!this.#n.pending;
|
|
1560
|
+
}
|
|
1561
|
+
#S(e) {
|
|
1562
|
+
var t = J, n = K, r = R;
|
|
1563
|
+
Fn(this.#i), q(this.#i), Re(this.#i.ctx);
|
|
1564
|
+
try {
|
|
1565
|
+
return St.ensure(), e();
|
|
1566
|
+
} finally {
|
|
1567
|
+
Fn(t), q(n), Re(r);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
#C(e, t) {
|
|
1571
|
+
if (!this.has_pending_snippet()) {
|
|
1572
|
+
this.parent && this.parent.#C(e, t);
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
|
|
1576
|
+
this.#o = null;
|
|
1577
|
+
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1578
|
+
}
|
|
1579
|
+
update_pending_count(e, t) {
|
|
1580
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ge(() => {
|
|
1581
|
+
this.#d = !1, this.#m && Ft(this.#m, this.#l);
|
|
1582
|
+
}));
|
|
1583
|
+
}
|
|
1584
|
+
get_effect_pending() {
|
|
1585
|
+
return this.#h(), Z(this.#m);
|
|
1586
|
+
}
|
|
1587
|
+
error(e) {
|
|
1588
|
+
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1589
|
+
V?.is_fork ? (this.#a && V.skip_effect(this.#a), this.#o && V.skip_effect(this.#o), this.#s && V.skip_effect(this.#s), V.oncommit(() => {
|
|
1590
|
+
this.#w(e);
|
|
1591
|
+
})) : this.#w(e);
|
|
1592
|
+
}
|
|
1593
|
+
#w(e) {
|
|
1594
|
+
this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), N && (I(this.#t), xe(), I(L()));
|
|
1595
|
+
let t = this.#n.failed, n = (e) => {
|
|
1596
|
+
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1597
|
+
r(), t && (this.#s = this.#S(() => {
|
|
1598
|
+
try {
|
|
1599
|
+
return yn(() => {
|
|
1600
|
+
var r = J;
|
|
1601
|
+
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1602
|
+
});
|
|
1603
|
+
} catch (e) {
|
|
1604
|
+
return rn(e, this.#i.parent), null;
|
|
1605
|
+
}
|
|
1606
|
+
}));
|
|
1607
|
+
};
|
|
1608
|
+
Ge(() => {
|
|
1609
|
+
var t;
|
|
1610
|
+
try {
|
|
1611
|
+
t = this.transform_error(e);
|
|
1612
|
+
} catch (e) {
|
|
1613
|
+
rn(e, this.#i && this.#i.parent);
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rn(e, this.#i && this.#i.parent)) : n(t);
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
function wr(e, t) {
|
|
1592
1621
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1593
|
-
n !== (e[
|
|
1622
|
+
n !== (e[pe] ??= e.nodeValue) && (e[pe] = n, e.nodeValue = `${n}`);
|
|
1594
1623
|
}
|
|
1595
|
-
function
|
|
1596
|
-
return
|
|
1624
|
+
function Tr(e, t) {
|
|
1625
|
+
return Or(e, t);
|
|
1597
1626
|
}
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
let n = t.target, r =
|
|
1627
|
+
function Er(e, t) {
|
|
1628
|
+
Wt(), t.intro = t.intro ?? !1;
|
|
1629
|
+
let n = t.target, r = N, i = F;
|
|
1601
1630
|
try {
|
|
1602
|
-
for (var a = /* @__PURE__ */
|
|
1631
|
+
for (var a = /* @__PURE__ */ Kt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ qt(a);
|
|
1603
1632
|
if (!a) throw o;
|
|
1604
|
-
|
|
1605
|
-
let r =
|
|
1633
|
+
P(!0), I(a);
|
|
1634
|
+
let r = Or(e, {
|
|
1606
1635
|
...t,
|
|
1607
1636
|
anchor: a
|
|
1608
1637
|
});
|
|
1609
|
-
return
|
|
1638
|
+
return P(!1), r;
|
|
1610
1639
|
} catch (r) {
|
|
1611
1640
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1612
|
-
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 &&
|
|
1641
|
+
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Me(), Wt(), Qt(n), P(!1), Tr(e, t);
|
|
1613
1642
|
} finally {
|
|
1614
|
-
|
|
1643
|
+
P(r), I(i);
|
|
1615
1644
|
}
|
|
1616
1645
|
}
|
|
1617
|
-
var
|
|
1618
|
-
function
|
|
1619
|
-
|
|
1620
|
-
var l = void 0, u =
|
|
1621
|
-
var s = n ?? t.appendChild(
|
|
1622
|
-
|
|
1623
|
-
|
|
1646
|
+
var Dr = /* @__PURE__ */ new Map();
|
|
1647
|
+
function Or(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
|
|
1648
|
+
Wt();
|
|
1649
|
+
var l = void 0, u = pn(() => {
|
|
1650
|
+
var s = n ?? t.appendChild(Gt());
|
|
1651
|
+
Sr(s, { pending: () => {} }, (t) => {
|
|
1652
|
+
ze({});
|
|
1624
1653
|
var n = R;
|
|
1625
|
-
if (a && (n.c = a), i && (r.$$events = i),
|
|
1626
|
-
|
|
1654
|
+
if (a && (n.c = a), i && (r.$$events = i), N && mr(t, null), l = e(t, r) || Ve(), N && (J.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw _e(), o;
|
|
1655
|
+
Be();
|
|
1627
1656
|
}, c);
|
|
1628
1657
|
var u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
1629
1658
|
for (var n = 0; n < e.length; n++) {
|
|
1630
1659
|
var r = e[n];
|
|
1631
1660
|
if (!u.has(r)) {
|
|
1632
1661
|
u.add(r);
|
|
1633
|
-
var i =
|
|
1662
|
+
var i = yr(r);
|
|
1634
1663
|
for (let e of [t, document]) {
|
|
1635
|
-
var a =
|
|
1636
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1664
|
+
var a = Dr.get(e);
|
|
1665
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Dr.set(e, a));
|
|
1637
1666
|
var o = a.get(r);
|
|
1638
1667
|
o === void 0 ? (e.addEventListener(r, ur, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1639
1668
|
}
|
|
1640
1669
|
}
|
|
1641
1670
|
}
|
|
1642
1671
|
};
|
|
1643
|
-
return d(f(
|
|
1672
|
+
return d(f(ir)), ar.add(d), () => {
|
|
1644
1673
|
for (var e of u) for (let n of [t, document]) {
|
|
1645
|
-
var r =
|
|
1646
|
-
--i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 &&
|
|
1674
|
+
var r = Dr.get(n), i = r.get(e);
|
|
1675
|
+
--i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Dr.delete(n)) : r.set(e, i);
|
|
1647
1676
|
}
|
|
1648
|
-
|
|
1677
|
+
ar.delete(d), s !== n && s.parentNode?.removeChild(s);
|
|
1649
1678
|
};
|
|
1650
1679
|
});
|
|
1651
|
-
return
|
|
1680
|
+
return kr.set(l, u), l;
|
|
1652
1681
|
}
|
|
1653
|
-
var
|
|
1654
|
-
function
|
|
1655
|
-
let n =
|
|
1656
|
-
return n ? (
|
|
1682
|
+
var kr = /* @__PURE__ */ new WeakMap();
|
|
1683
|
+
function Ar(e, t) {
|
|
1684
|
+
let n = kr.get(e);
|
|
1685
|
+
return n ? (kr.delete(e), n(t)) : Promise.resolve();
|
|
1657
1686
|
}
|
|
1658
1687
|
//#endregion
|
|
1659
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1660
|
-
var
|
|
1688
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1689
|
+
var jr = class {
|
|
1661
1690
|
anchor;
|
|
1662
1691
|
#e = /* @__PURE__ */ new Map();
|
|
1663
1692
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1670,73 +1699,73 @@ var Er = class {
|
|
|
1670
1699
|
#a = (e) => {
|
|
1671
1700
|
if (this.#e.has(e)) {
|
|
1672
1701
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1673
|
-
if (n)
|
|
1702
|
+
if (n) Dn(n), this.#r.delete(t);
|
|
1674
1703
|
else {
|
|
1675
1704
|
var r = this.#n.get(t);
|
|
1676
|
-
r && (
|
|
1705
|
+
r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1677
1706
|
}
|
|
1678
1707
|
for (let [t, n] of this.#e) {
|
|
1679
1708
|
if (this.#e.delete(t), t === e) break;
|
|
1680
1709
|
let r = this.#n.get(n);
|
|
1681
|
-
r && (
|
|
1710
|
+
r && (G(r.effect), this.#n.delete(n));
|
|
1682
1711
|
}
|
|
1683
1712
|
for (let [e, r] of this.#t) {
|
|
1684
1713
|
if (e === t || this.#r.has(e)) continue;
|
|
1685
1714
|
let i = () => {
|
|
1686
1715
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1687
1716
|
var t = document.createDocumentFragment();
|
|
1688
|
-
|
|
1717
|
+
kn(r, t), t.append(Gt()), this.#n.set(e, {
|
|
1689
1718
|
effect: r,
|
|
1690
1719
|
fragment: t
|
|
1691
1720
|
});
|
|
1692
|
-
} else
|
|
1721
|
+
} else G(r);
|
|
1693
1722
|
this.#r.delete(e), this.#t.delete(e);
|
|
1694
1723
|
};
|
|
1695
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1724
|
+
this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
|
|
1696
1725
|
}
|
|
1697
1726
|
}
|
|
1698
1727
|
};
|
|
1699
1728
|
#o = (e) => {
|
|
1700
1729
|
this.#e.delete(e);
|
|
1701
1730
|
let t = Array.from(this.#e.values());
|
|
1702
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1731
|
+
for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
|
|
1703
1732
|
};
|
|
1704
1733
|
ensure(e, t) {
|
|
1705
|
-
var n = V, r =
|
|
1734
|
+
var n = V, r = $t();
|
|
1706
1735
|
if (t && !this.#t.has(e) && !this.#n.has(e)) {
|
|
1707
1736
|
if (r) {
|
|
1708
|
-
var i = document.createDocumentFragment(), a =
|
|
1737
|
+
var i = document.createDocumentFragment(), a = Gt();
|
|
1709
1738
|
i.append(a), this.#n.set(e, {
|
|
1710
|
-
effect:
|
|
1739
|
+
effect: yn(() => t(a)),
|
|
1711
1740
|
fragment: i
|
|
1712
1741
|
});
|
|
1713
|
-
} else this.#t.set(e,
|
|
1742
|
+
} else this.#t.set(e, yn(() => t(this.anchor)));
|
|
1714
1743
|
}
|
|
1715
1744
|
if (this.#e.set(n, e), r) {
|
|
1716
1745
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1717
1746
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1718
1747
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1719
|
-
} else
|
|
1748
|
+
} else N && (this.anchor = F), this.#a(n);
|
|
1720
1749
|
}
|
|
1721
1750
|
};
|
|
1722
1751
|
//#endregion
|
|
1723
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1724
|
-
function
|
|
1752
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1753
|
+
function Mr(e, t, n = !1) {
|
|
1725
1754
|
var r;
|
|
1726
|
-
|
|
1727
|
-
var i = new
|
|
1755
|
+
N && (r = F, ye());
|
|
1756
|
+
var i = new jr(e), a = n ? E : 0;
|
|
1728
1757
|
function o(e, t) {
|
|
1729
|
-
if (
|
|
1730
|
-
var n =
|
|
1758
|
+
if (N) {
|
|
1759
|
+
var n = Se(r);
|
|
1731
1760
|
if (e !== parseInt(n.substring(1))) {
|
|
1732
|
-
var a =
|
|
1733
|
-
|
|
1761
|
+
var a = L();
|
|
1762
|
+
I(a), i.anchor = a, P(!1), i.ensure(e, t), P(!0);
|
|
1734
1763
|
return;
|
|
1735
1764
|
}
|
|
1736
1765
|
}
|
|
1737
1766
|
i.ensure(e, t);
|
|
1738
1767
|
}
|
|
1739
|
-
|
|
1768
|
+
vn(() => {
|
|
1740
1769
|
var e = !1;
|
|
1741
1770
|
t((t, n = 0) => {
|
|
1742
1771
|
e = !0, o(n, t);
|
|
@@ -1744,32 +1773,32 @@ function Dr(e, t, n = !1) {
|
|
|
1744
1773
|
}, a);
|
|
1745
1774
|
}
|
|
1746
1775
|
//#endregion
|
|
1747
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1748
|
-
function
|
|
1776
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1777
|
+
function Nr(e, t, n) {
|
|
1749
1778
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1750
1779
|
let n = t[s];
|
|
1751
|
-
|
|
1780
|
+
Tn(n, () => {
|
|
1752
1781
|
if (a) {
|
|
1753
1782
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1754
1783
|
var t = e.outrogroups;
|
|
1755
|
-
|
|
1784
|
+
Pr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1756
1785
|
}
|
|
1757
1786
|
} else --o;
|
|
1758
1787
|
}, !1);
|
|
1759
1788
|
}
|
|
1760
1789
|
if (o === 0) {
|
|
1761
|
-
var c = r.length === 0 && n !== null;
|
|
1790
|
+
var c = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1762
1791
|
if (c) {
|
|
1763
1792
|
var l = n, u = l.parentNode;
|
|
1764
|
-
|
|
1793
|
+
Qt(u), u.append(l), e.items.clear();
|
|
1765
1794
|
}
|
|
1766
|
-
|
|
1795
|
+
Pr(e, t, !c);
|
|
1767
1796
|
} else a = {
|
|
1768
1797
|
pending: new Set(t),
|
|
1769
1798
|
done: /* @__PURE__ */ new Set()
|
|
1770
1799
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1771
1800
|
}
|
|
1772
|
-
function
|
|
1801
|
+
function Pr(e, t, n = !0) {
|
|
1773
1802
|
var r;
|
|
1774
1803
|
if (e.pending.size > 0) {
|
|
1775
1804
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1777,23 +1806,23 @@ function kr(e, t, n = !0) {
|
|
|
1777
1806
|
}
|
|
1778
1807
|
for (var i = 0; i < t.length; i++) {
|
|
1779
1808
|
var a = t[i];
|
|
1780
|
-
r?.has(a) ? (a.f |=
|
|
1809
|
+
r?.has(a) ? (a.f |= O, kn(a, document.createDocumentFragment())) : G(t[i], n);
|
|
1781
1810
|
}
|
|
1782
1811
|
}
|
|
1783
|
-
var
|
|
1784
|
-
function
|
|
1812
|
+
var Fr;
|
|
1813
|
+
function Ir(e, t, n, r, i, a = null) {
|
|
1785
1814
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1786
1815
|
if (t & 4) {
|
|
1787
1816
|
var c = e;
|
|
1788
|
-
o =
|
|
1817
|
+
o = N ? I(/* @__PURE__ */ Kt(c)) : c.appendChild(Gt());
|
|
1789
1818
|
}
|
|
1790
|
-
|
|
1791
|
-
var u = null, d = /* @__PURE__ */
|
|
1819
|
+
N && ye();
|
|
1820
|
+
var u = null, d = /* @__PURE__ */ st(() => {
|
|
1792
1821
|
var e = n();
|
|
1793
1822
|
return l(e) ? e : e == null ? [] : f(e);
|
|
1794
1823
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1795
1824
|
function g(e) {
|
|
1796
|
-
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u,
|
|
1825
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Rr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Br(u, null, o)) : Dn(u) : Tn(u, () => {
|
|
1797
1826
|
u = null;
|
|
1798
1827
|
})));
|
|
1799
1828
|
}
|
|
@@ -1801,23 +1830,23 @@ function jr(e, t, n, r, i, a = null) {
|
|
|
1801
1830
|
v.pending.delete(e);
|
|
1802
1831
|
}
|
|
1803
1832
|
var v = {
|
|
1804
|
-
effect:
|
|
1805
|
-
p =
|
|
1833
|
+
effect: vn(() => {
|
|
1834
|
+
p = Z(d);
|
|
1806
1835
|
var e = p.length;
|
|
1807
1836
|
let c = !1;
|
|
1808
|
-
|
|
1809
|
-
for (var l = /* @__PURE__ */ new Set(), f = V, v =
|
|
1810
|
-
|
|
1811
|
-
var
|
|
1812
|
-
|
|
1837
|
+
N && Se(o) === "[!" != (e === 0) && (o = L(), I(o), P(!1), c = !0);
|
|
1838
|
+
for (var l = /* @__PURE__ */ new Set(), f = V, v = $t(), y = 0; y < e; y += 1) {
|
|
1839
|
+
N && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, P(!1));
|
|
1840
|
+
var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
|
|
1841
|
+
x ? (x.v && Ft(x.v, ee), x.i && Ft(x.i, y), v && f.unskip_effect(x.e)) : (x = zr(s, h ? o : Fr ??= Gt(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
|
|
1813
1842
|
}
|
|
1814
|
-
if (e === 0 && a && !u && (h ? u =
|
|
1843
|
+
if (e === 0 && a && !u && (h ? u = yn(() => a(o)) : (u = yn(() => a(Fr ??= Gt())), u.f |= O)), e > l.size && De("", "", ""), N && e > 0 && I(L()), !h) {
|
|
1815
1844
|
if (m.set(f, l), v) {
|
|
1816
1845
|
for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
|
|
1817
1846
|
f.oncommit(g), f.ondiscard(_);
|
|
1818
1847
|
} else g(f);
|
|
1819
1848
|
}
|
|
1820
|
-
c &&
|
|
1849
|
+
c && P(!0), Z(d);
|
|
1821
1850
|
}),
|
|
1822
1851
|
flags: t,
|
|
1823
1852
|
items: s,
|
|
@@ -1825,125 +1854,126 @@ function jr(e, t, n, r, i, a = null) {
|
|
|
1825
1854
|
outrogroups: null,
|
|
1826
1855
|
fallback: u
|
|
1827
1856
|
};
|
|
1828
|
-
h = !1,
|
|
1857
|
+
h = !1, N && (o = F);
|
|
1829
1858
|
}
|
|
1830
|
-
function
|
|
1859
|
+
function Lr(e) {
|
|
1831
1860
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1832
1861
|
return e;
|
|
1833
1862
|
}
|
|
1834
|
-
function
|
|
1835
|
-
var a = !!(r & 8), o = t.length, s = e.items, c =
|
|
1863
|
+
function Rr(e, t, n, r, i) {
|
|
1864
|
+
var a = !!(r & 8), o = t.length, s = e.items, c = Lr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
|
|
1836
1865
|
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(), (d ??= /* @__PURE__ */ new Set()).add(_));
|
|
1837
1866
|
for (v = 0; v < o; v += 1) {
|
|
1838
1867
|
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(_);
|
|
1839
|
-
if (_.f & 8192 && (
|
|
1840
|
-
if (_.f ^=
|
|
1868
|
+
if (_.f & 8192 && (Dn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
|
|
1869
|
+
if (_.f ^= O, _ === c) Br(_, null, n);
|
|
1841
1870
|
else {
|
|
1842
1871
|
var y = u ? u.next : c;
|
|
1843
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev),
|
|
1872
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Vr(e, u, _), Vr(e, _, y), Br(_, y, n), u = _, p = [], m = [], c = Lr(u.next);
|
|
1844
1873
|
continue;
|
|
1845
1874
|
}
|
|
1846
1875
|
}
|
|
1847
1876
|
if (_ !== c) {
|
|
1848
1877
|
if (l !== void 0 && l.has(_)) {
|
|
1849
1878
|
if (p.length < m.length) {
|
|
1850
|
-
var
|
|
1851
|
-
u =
|
|
1852
|
-
var
|
|
1853
|
-
for (
|
|
1854
|
-
for (
|
|
1855
|
-
|
|
1856
|
-
} else l.delete(_),
|
|
1879
|
+
var ee = m[0], b;
|
|
1880
|
+
u = ee.prev;
|
|
1881
|
+
var x = p[0], te = p[p.length - 1];
|
|
1882
|
+
for (b = 0; b < p.length; b += 1) Br(p[b], ee, n);
|
|
1883
|
+
for (b = 0; b < m.length; b += 1) l.delete(m[b]);
|
|
1884
|
+
Vr(e, x.prev, te.next), Vr(e, u, x), Vr(e, te, ee), c = ee, u = te, --v, p = [], m = [];
|
|
1885
|
+
} else l.delete(_), Br(_, c, n), Vr(e, _.prev, _.next), Vr(e, _, u === null ? e.effect.first : u.next), Vr(e, u, _), u = _;
|
|
1857
1886
|
continue;
|
|
1858
1887
|
}
|
|
1859
|
-
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c =
|
|
1888
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Lr(c.next);
|
|
1860
1889
|
if (c === null) continue;
|
|
1861
1890
|
}
|
|
1862
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1891
|
+
_.f & 33554432 || p.push(_), u = _, c = Lr(_.next);
|
|
1863
1892
|
}
|
|
1864
1893
|
if (e.outrogroups !== null) {
|
|
1865
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1894
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Pr(e, f(t.done)), e.outrogroups?.delete(t));
|
|
1866
1895
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1867
1896
|
}
|
|
1868
1897
|
if (c !== null || l !== void 0) {
|
|
1869
|
-
var
|
|
1870
|
-
if (l !== void 0) for (_ of l) _.f & 8192 ||
|
|
1871
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback &&
|
|
1872
|
-
var
|
|
1873
|
-
if (
|
|
1874
|
-
var
|
|
1898
|
+
var S = [];
|
|
1899
|
+
if (l !== void 0) for (_ of l) _.f & 8192 || S.push(_);
|
|
1900
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = Lr(c.next);
|
|
1901
|
+
var C = S.length;
|
|
1902
|
+
if (C > 0) {
|
|
1903
|
+
var ne = r & 4 && o === 0 ? n : null;
|
|
1875
1904
|
if (a) {
|
|
1876
|
-
for (v = 0; v <
|
|
1877
|
-
for (v = 0; v <
|
|
1905
|
+
for (v = 0; v < C; v += 1) S[v].nodes?.a?.measure();
|
|
1906
|
+
for (v = 0; v < C; v += 1) S[v].nodes?.a?.fix();
|
|
1878
1907
|
}
|
|
1879
|
-
|
|
1908
|
+
Nr(e, S, ne);
|
|
1880
1909
|
}
|
|
1881
1910
|
}
|
|
1882
|
-
a &&
|
|
1911
|
+
a && Ge(() => {
|
|
1883
1912
|
if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
|
|
1884
1913
|
});
|
|
1885
1914
|
}
|
|
1886
|
-
function
|
|
1887
|
-
var c = o & 1 ? o & 16 ?
|
|
1915
|
+
function zr(e, t, n, r, i, a, o, s) {
|
|
1916
|
+
var c = o & 1 ? o & 16 ? Nt(n) : /* @__PURE__ */ Pt(n, !1, !1) : null, l = o & 2 ? Nt(i) : null;
|
|
1888
1917
|
return {
|
|
1889
1918
|
v: c,
|
|
1890
1919
|
i: l,
|
|
1891
|
-
e:
|
|
1920
|
+
e: yn(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1892
1921
|
e.delete(r);
|
|
1893
1922
|
}))
|
|
1894
1923
|
};
|
|
1895
1924
|
}
|
|
1896
|
-
function
|
|
1925
|
+
function Br(e, t, n) {
|
|
1897
1926
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1898
|
-
var o = /* @__PURE__ */
|
|
1927
|
+
var o = /* @__PURE__ */ qt(r);
|
|
1899
1928
|
if (a.before(r), r === i) return;
|
|
1900
1929
|
r = o;
|
|
1901
1930
|
}
|
|
1902
1931
|
}
|
|
1903
|
-
function
|
|
1932
|
+
function Vr(e, t, n) {
|
|
1904
1933
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1905
1934
|
}
|
|
1906
1935
|
//#endregion
|
|
1907
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1908
|
-
function
|
|
1909
|
-
|
|
1936
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1937
|
+
function Hr(e, t) {
|
|
1938
|
+
mn(() => {
|
|
1939
|
+
e = J?.parent?.nodes?.start ?? e;
|
|
1910
1940
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1911
1941
|
if (!r.querySelector("#" + t.hash)) {
|
|
1912
|
-
let e =
|
|
1942
|
+
let e = en("style");
|
|
1913
1943
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1914
1944
|
}
|
|
1915
1945
|
});
|
|
1916
1946
|
}
|
|
1917
1947
|
//#endregion
|
|
1918
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1919
|
-
function
|
|
1920
|
-
|
|
1921
|
-
var r =
|
|
1948
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
1949
|
+
function Ur(e, t, n) {
|
|
1950
|
+
mn(() => {
|
|
1951
|
+
var r = er(() => t(e, n?.()) || {});
|
|
1922
1952
|
if (n && r?.update) {
|
|
1923
1953
|
var i = !1, a = {};
|
|
1924
|
-
|
|
1954
|
+
gn(() => {
|
|
1925
1955
|
var e = n();
|
|
1926
|
-
|
|
1956
|
+
tr(e), i && we(a, e) && (a = e, r.update(e));
|
|
1927
1957
|
}), i = !0;
|
|
1928
1958
|
}
|
|
1929
1959
|
if (r?.destroy) return () => r.destroy();
|
|
1930
1960
|
});
|
|
1931
1961
|
}
|
|
1932
1962
|
//#endregion
|
|
1933
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1934
|
-
var
|
|
1935
|
-
function
|
|
1963
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/shared/attributes.js
|
|
1964
|
+
var Wr = [..." \n\r\f\xA0\v"];
|
|
1965
|
+
function Gr(e, t, n) {
|
|
1936
1966
|
var r = e == null ? "" : "" + e;
|
|
1937
1967
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1938
1968
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1939
1969
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1940
1970
|
var s = o + a;
|
|
1941
|
-
(o === 0 ||
|
|
1971
|
+
(o === 0 || Wr.includes(r[o - 1])) && (s === r.length || Wr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
1942
1972
|
}
|
|
1943
1973
|
}
|
|
1944
1974
|
return r === "" ? null : r;
|
|
1945
1975
|
}
|
|
1946
|
-
function
|
|
1976
|
+
function Kr(e, t = !1) {
|
|
1947
1977
|
var n = t ? " !important;" : ";", r = "";
|
|
1948
1978
|
for (var i of Object.keys(e)) {
|
|
1949
1979
|
var a = e[i];
|
|
@@ -1951,16 +1981,16 @@ function Vr(e, t = !1) {
|
|
|
1951
1981
|
}
|
|
1952
1982
|
return r;
|
|
1953
1983
|
}
|
|
1954
|
-
function
|
|
1984
|
+
function qr(e) {
|
|
1955
1985
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1956
1986
|
}
|
|
1957
|
-
function
|
|
1987
|
+
function Jr(e, t) {
|
|
1958
1988
|
if (t) {
|
|
1959
1989
|
var n = "", r, i;
|
|
1960
1990
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
1961
|
-
e = String(e).replaceAll(
|
|
1991
|
+
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
1962
1992
|
var a = !1, o = 0, s = !1, c = [];
|
|
1963
|
-
r && c.push(...Object.keys(r).map(
|
|
1993
|
+
r && c.push(...Object.keys(r).map(qr)), i && c.push(...Object.keys(i).map(qr));
|
|
1964
1994
|
var l = 0, u = -1;
|
|
1965
1995
|
let t = e.length;
|
|
1966
1996
|
for (var d = 0; d < t; d++) {
|
|
@@ -1969,7 +1999,7 @@ function Ur(e, t) {
|
|
|
1969
1999
|
if (f === ":" && u === -1) u = d;
|
|
1970
2000
|
else if (f === ";" || d === t - 1) {
|
|
1971
2001
|
if (u !== -1) {
|
|
1972
|
-
var p =
|
|
2002
|
+
var p = qr(e.substring(l, u).trim());
|
|
1973
2003
|
if (!c.includes(p)) {
|
|
1974
2004
|
f !== ";" && d++;
|
|
1975
2005
|
var m = e.substring(l, d).trim();
|
|
@@ -1981,17 +2011,17 @@ function Ur(e, t) {
|
|
|
1981
2011
|
}
|
|
1982
2012
|
}
|
|
1983
2013
|
}
|
|
1984
|
-
return r && (n +=
|
|
2014
|
+
return r && (n += Kr(r)), i && (n += Kr(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
1985
2015
|
}
|
|
1986
2016
|
return e == null ? null : String(e);
|
|
1987
2017
|
}
|
|
1988
2018
|
//#endregion
|
|
1989
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1990
|
-
function
|
|
1991
|
-
var o = e[
|
|
1992
|
-
if (
|
|
1993
|
-
var s =
|
|
1994
|
-
(!
|
|
2019
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2020
|
+
function Yr(e, t, n, r, i, a) {
|
|
2021
|
+
var o = e[de];
|
|
2022
|
+
if (N || o !== n || o === void 0) {
|
|
2023
|
+
var s = Gr(n, r, a);
|
|
2024
|
+
(!N || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[de] = n;
|
|
1995
2025
|
} else if (a && i !== a) for (var c in a) {
|
|
1996
2026
|
var l = !!a[c];
|
|
1997
2027
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -1999,73 +2029,73 @@ function Wr(e, t, n, r, i, a) {
|
|
|
1999
2029
|
return a;
|
|
2000
2030
|
}
|
|
2001
2031
|
//#endregion
|
|
2002
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2003
|
-
function
|
|
2032
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
2033
|
+
function Xr(e, t = {}, n, r) {
|
|
2004
2034
|
for (var i in n) {
|
|
2005
2035
|
var a = n[i];
|
|
2006
2036
|
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
2007
2037
|
}
|
|
2008
2038
|
}
|
|
2009
|
-
function
|
|
2010
|
-
var i = e[
|
|
2011
|
-
if (
|
|
2012
|
-
var a =
|
|
2013
|
-
(!
|
|
2014
|
-
} else r && (Array.isArray(r) ? (
|
|
2039
|
+
function Zr(e, t, n, r) {
|
|
2040
|
+
var i = e[fe];
|
|
2041
|
+
if (N || i !== t) {
|
|
2042
|
+
var a = Jr(t, r);
|
|
2043
|
+
(!N || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[fe] = t;
|
|
2044
|
+
} else r && (Array.isArray(r) ? (Xr(e, n?.[0], r[0]), Xr(e, n?.[1], r[1], "important")) : Xr(e, n, r));
|
|
2015
2045
|
return r;
|
|
2016
2046
|
}
|
|
2017
2047
|
//#endregion
|
|
2018
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2019
|
-
var
|
|
2048
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2049
|
+
var Qr = Symbol("is custom element"), $r = Symbol("is html"), ei = he ? "link" : "LINK";
|
|
2020
2050
|
function Q(e, t, n, r) {
|
|
2021
|
-
var i =
|
|
2022
|
-
|
|
2051
|
+
var i = ni(e);
|
|
2052
|
+
N && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ei) || i[t] !== (i[t] = n) && (t === "loading" && (e[le] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ii(e).has(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2023
2053
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var r =
|
|
2026
|
-
let a =
|
|
2027
|
-
|
|
2054
|
+
function ti(e, t, n) {
|
|
2055
|
+
var r = K, i = J;
|
|
2056
|
+
let a = N;
|
|
2057
|
+
N && P(!1), q(null), Fn(null);
|
|
2028
2058
|
try {
|
|
2029
|
-
t !== "style" && (
|
|
2059
|
+
t !== "style" && (ri.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ii(e).has(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
|
|
2030
2060
|
} finally {
|
|
2031
|
-
|
|
2061
|
+
q(r), Fn(i), a && P(!0);
|
|
2032
2062
|
}
|
|
2033
2063
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return e[
|
|
2036
|
-
[
|
|
2037
|
-
[
|
|
2064
|
+
function ni(e) {
|
|
2065
|
+
return e[ue] ??= {
|
|
2066
|
+
[Qr]: e.nodeName.includes("-"),
|
|
2067
|
+
[$r]: e.namespaceURI === c
|
|
2038
2068
|
};
|
|
2039
2069
|
}
|
|
2040
|
-
var
|
|
2041
|
-
function
|
|
2042
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2070
|
+
var ri = /* @__PURE__ */ new Map();
|
|
2071
|
+
function ii(e) {
|
|
2072
|
+
var t = e.getAttribute("is") || e.nodeName, n = ri.get(t);
|
|
2043
2073
|
if (n) return n;
|
|
2044
|
-
|
|
2074
|
+
ri.set(t, n = /* @__PURE__ */ new Set());
|
|
2045
2075
|
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
2046
|
-
for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.
|
|
2076
|
+
for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
|
|
2047
2077
|
i = y(i);
|
|
2048
2078
|
}
|
|
2049
2079
|
return n;
|
|
2050
2080
|
}
|
|
2051
2081
|
//#endregion
|
|
2052
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2053
|
-
function
|
|
2054
|
-
return e === t || e?.[
|
|
2082
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2083
|
+
function ai(e, t) {
|
|
2084
|
+
return e === t || e?.[A] === t;
|
|
2055
2085
|
}
|
|
2056
|
-
function
|
|
2057
|
-
var i = R.r, a =
|
|
2058
|
-
return
|
|
2086
|
+
function oi(e = Ve(), t, n, r) {
|
|
2087
|
+
var i = R.r, a = J;
|
|
2088
|
+
return mn(() => {
|
|
2059
2089
|
var o, s;
|
|
2060
|
-
return
|
|
2061
|
-
o = s, s = r?.() || [],
|
|
2062
|
-
|
|
2090
|
+
return gn(() => {
|
|
2091
|
+
o = s, s = r?.() || [], er(() => {
|
|
2092
|
+
ai(n(...s), e) || (t(e, ...s), o && ai(n(...o), e) && t(null, ...o));
|
|
2063
2093
|
});
|
|
2064
2094
|
}), () => {
|
|
2065
2095
|
let r = a;
|
|
2066
2096
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2067
2097
|
let o = () => {
|
|
2068
|
-
s &&
|
|
2098
|
+
s && ai(n(...s), e) && t(null, ...s);
|
|
2069
2099
|
}, c = r.teardown;
|
|
2070
2100
|
r.teardown = () => {
|
|
2071
2101
|
o(), c?.();
|
|
@@ -2074,16 +2104,16 @@ function ti(e = {}, t, n, r) {
|
|
|
2074
2104
|
}), e;
|
|
2075
2105
|
}
|
|
2076
2106
|
//#endregion
|
|
2077
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2078
|
-
function
|
|
2079
|
-
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */
|
|
2107
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2108
|
+
function si(e, t, n, r) {
|
|
2109
|
+
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ it(r), Z(l)) : (c && (c = !1, s = o ? er(r) : r), s);
|
|
2080
2110
|
let d;
|
|
2081
2111
|
if (a) {
|
|
2082
|
-
var f =
|
|
2112
|
+
var f = A in e || M in e;
|
|
2083
2113
|
d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2084
2114
|
}
|
|
2085
2115
|
var p, m = !1;
|
|
2086
|
-
a ? [p, m] = Qe(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i &&
|
|
2116
|
+
a ? [p, m] = Qe(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ne(t), d(p)));
|
|
2087
2117
|
var g = i ? () => {
|
|
2088
2118
|
var n = e[t];
|
|
2089
2119
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2098,28 +2128,28 @@ function ni(e, t, n, r) {
|
|
|
2098
2128
|
return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
|
|
2099
2129
|
});
|
|
2100
2130
|
}
|
|
2101
|
-
var v = !1, y = (n & 1 ?
|
|
2102
|
-
a &&
|
|
2103
|
-
var
|
|
2131
|
+
var v = !1, y = (n & 1 ? it : st)(() => (v = !1, g()));
|
|
2132
|
+
a && Z(y);
|
|
2133
|
+
var ee = J;
|
|
2104
2134
|
return (function(e, t) {
|
|
2105
2135
|
if (arguments.length > 0) {
|
|
2106
|
-
let n = t ?
|
|
2107
|
-
return
|
|
2136
|
+
let n = t ? Z(y) : i && a ? zt(e) : e;
|
|
2137
|
+
return W(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2108
2138
|
}
|
|
2109
|
-
return
|
|
2139
|
+
return Mn && v || ee.f & 16384 ? y.v : Z(y);
|
|
2110
2140
|
});
|
|
2111
2141
|
}
|
|
2112
2142
|
//#endregion
|
|
2113
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
2114
|
-
function
|
|
2115
|
-
return new
|
|
2143
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
|
|
2144
|
+
function ci(e) {
|
|
2145
|
+
return new li(e);
|
|
2116
2146
|
}
|
|
2117
|
-
var
|
|
2147
|
+
var li = class {
|
|
2118
2148
|
#e;
|
|
2119
2149
|
#t;
|
|
2120
2150
|
constructor(e) {
|
|
2121
2151
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2122
|
-
var r = /* @__PURE__ */
|
|
2152
|
+
var r = /* @__PURE__ */ Pt(n, !1, !1);
|
|
2123
2153
|
return t.set(e, r), r;
|
|
2124
2154
|
};
|
|
2125
2155
|
let r = new Proxy({
|
|
@@ -2127,16 +2157,16 @@ var ii = class {
|
|
|
2127
2157
|
$$events: {}
|
|
2128
2158
|
}, {
|
|
2129
2159
|
get(e, r) {
|
|
2130
|
-
return
|
|
2160
|
+
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2131
2161
|
},
|
|
2132
2162
|
has(e, r) {
|
|
2133
|
-
return r === M || (
|
|
2163
|
+
return r === M || (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2134
2164
|
},
|
|
2135
2165
|
set(e, r, i) {
|
|
2136
|
-
return
|
|
2166
|
+
return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2137
2167
|
}
|
|
2138
2168
|
});
|
|
2139
|
-
this.#t = (e.hydrate ?
|
|
2169
|
+
this.#t = (e.hydrate ? Er : Tr)(e.component, {
|
|
2140
2170
|
target: e.target,
|
|
2141
2171
|
anchor: e.anchor,
|
|
2142
2172
|
props: r,
|
|
@@ -2144,7 +2174,7 @@ var ii = class {
|
|
|
2144
2174
|
intro: e.intro ?? !1,
|
|
2145
2175
|
recover: e.recover,
|
|
2146
2176
|
transformError: e.transformError
|
|
2147
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
2177
|
+
}), (!e?.props?.$$host || e.sync === !1) && Ct(), this.#e = r.$$events;
|
|
2148
2178
|
for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && m(this, e, {
|
|
2149
2179
|
get() {
|
|
2150
2180
|
return this.#t[e];
|
|
@@ -2157,7 +2187,7 @@ var ii = class {
|
|
|
2157
2187
|
this.#t.$set = (e) => {
|
|
2158
2188
|
Object.assign(r, e);
|
|
2159
2189
|
}, this.#t.$destroy = () => {
|
|
2160
|
-
|
|
2190
|
+
Ar(this.#t);
|
|
2161
2191
|
};
|
|
2162
2192
|
}
|
|
2163
2193
|
$set(e) {
|
|
@@ -2173,8 +2203,8 @@ var ii = class {
|
|
|
2173
2203
|
$destroy() {
|
|
2174
2204
|
this.#t.$destroy();
|
|
2175
2205
|
}
|
|
2176
|
-
},
|
|
2177
|
-
typeof HTMLElement == "function" && (
|
|
2206
|
+
}, ui;
|
|
2207
|
+
typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
2178
2208
|
$$ctor;
|
|
2179
2209
|
$$s;
|
|
2180
2210
|
$$c;
|
|
@@ -2207,18 +2237,18 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2207
2237
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2208
2238
|
function e(e) {
|
|
2209
2239
|
return (t) => {
|
|
2210
|
-
let n =
|
|
2211
|
-
e !== "default" && (n.name = e),
|
|
2240
|
+
let n = en("slot");
|
|
2241
|
+
e !== "default" && (n.name = e), _r(t, n);
|
|
2212
2242
|
};
|
|
2213
2243
|
}
|
|
2214
|
-
let t = {}, n =
|
|
2244
|
+
let t = {}, n = fi(this);
|
|
2215
2245
|
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));
|
|
2216
2246
|
for (let e of this.attributes) {
|
|
2217
2247
|
let t = this.$$g_p(e.name);
|
|
2218
|
-
t in this.$$d || (this.$$d[t] =
|
|
2248
|
+
t in this.$$d || (this.$$d[t] = di(t, e.value, this.$$p_d, "toProp"));
|
|
2219
2249
|
}
|
|
2220
2250
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
2221
|
-
this.$$c =
|
|
2251
|
+
this.$$c = ci({
|
|
2222
2252
|
component: this.$$ctor,
|
|
2223
2253
|
target: this.$$shadowRoot || this,
|
|
2224
2254
|
props: {
|
|
@@ -2226,13 +2256,13 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2226
2256
|
$$slots: t,
|
|
2227
2257
|
$$host: this
|
|
2228
2258
|
}
|
|
2229
|
-
}), this.$$me =
|
|
2230
|
-
|
|
2259
|
+
}), this.$$me = fn(() => {
|
|
2260
|
+
gn(() => {
|
|
2231
2261
|
this.$$r = !0;
|
|
2232
2262
|
for (let e of p(this.$$c)) {
|
|
2233
2263
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
2234
2264
|
this.$$d[e] = this.$$c[e];
|
|
2235
|
-
let t =
|
|
2265
|
+
let t = di(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
2236
2266
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
2237
2267
|
}
|
|
2238
2268
|
this.$$r = !1;
|
|
@@ -2246,7 +2276,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2246
2276
|
}
|
|
2247
2277
|
}
|
|
2248
2278
|
attributeChangedCallback(e, t, n) {
|
|
2249
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2279
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = di(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2250
2280
|
}
|
|
2251
2281
|
disconnectedCallback() {
|
|
2252
2282
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2257,7 +2287,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2257
2287
|
return p(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2258
2288
|
}
|
|
2259
2289
|
});
|
|
2260
|
-
function
|
|
2290
|
+
function di(e, t, n, r) {
|
|
2261
2291
|
let i = n[e]?.type;
|
|
2262
2292
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2263
2293
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2275,14 +2305,14 @@ function oi(e, t, n, r) {
|
|
|
2275
2305
|
default: return t;
|
|
2276
2306
|
}
|
|
2277
2307
|
}
|
|
2278
|
-
function
|
|
2308
|
+
function fi(e) {
|
|
2279
2309
|
let t = {};
|
|
2280
2310
|
return e.childNodes.forEach((e) => {
|
|
2281
2311
|
t[e.slot || "default"] = !0;
|
|
2282
2312
|
}), t;
|
|
2283
2313
|
}
|
|
2284
|
-
function
|
|
2285
|
-
let o = class extends
|
|
2314
|
+
function pi(e, t, n, r, i, a) {
|
|
2315
|
+
let o = class extends ui {
|
|
2286
2316
|
constructor() {
|
|
2287
2317
|
super(e, n, i), this.$$p_d = t;
|
|
2288
2318
|
}
|
|
@@ -2296,7 +2326,7 @@ function ci(e, t, n, r, i, a) {
|
|
|
2296
2326
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2297
2327
|
},
|
|
2298
2328
|
set(n) {
|
|
2299
|
-
n =
|
|
2329
|
+
n = di(e, n, t), this.$$d[e] = n;
|
|
2300
2330
|
var r = this.$$c;
|
|
2301
2331
|
r && (h(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2302
2332
|
}
|
|
@@ -2309,37 +2339,37 @@ function ci(e, t, n, r, i, a) {
|
|
|
2309
2339
|
}
|
|
2310
2340
|
//#endregion
|
|
2311
2341
|
//#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
|
|
2312
|
-
var
|
|
2342
|
+
var mi = globalThis, hi = mi.ShadowRoot && (mi.ShadyCSS === void 0 || mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = Symbol(), _i = /* @__PURE__ */ new WeakMap(), vi = class {
|
|
2313
2343
|
constructor(e, t, n) {
|
|
2314
|
-
if (this._$cssResult$ = !0, n !==
|
|
2344
|
+
if (this._$cssResult$ = !0, n !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2315
2345
|
this.cssText = e, this.t = t;
|
|
2316
2346
|
}
|
|
2317
2347
|
get styleSheet() {
|
|
2318
2348
|
let e = this.o, t = this.t;
|
|
2319
|
-
if (
|
|
2349
|
+
if (hi && e === void 0) {
|
|
2320
2350
|
let n = t !== void 0 && t.length === 1;
|
|
2321
|
-
n && (e =
|
|
2351
|
+
n && (e = _i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && _i.set(t, e));
|
|
2322
2352
|
}
|
|
2323
2353
|
return e;
|
|
2324
2354
|
}
|
|
2325
2355
|
toString() {
|
|
2326
2356
|
return this.cssText;
|
|
2327
2357
|
}
|
|
2328
|
-
},
|
|
2329
|
-
if (
|
|
2358
|
+
}, yi = (e) => new vi(typeof e == "string" ? e : e + "", void 0, gi), bi = (e, t) => {
|
|
2359
|
+
if (hi) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
2330
2360
|
else for (let n of t) {
|
|
2331
|
-
let t = document.createElement("style"), r =
|
|
2361
|
+
let t = document.createElement("style"), r = mi.litNonce;
|
|
2332
2362
|
r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
|
|
2333
2363
|
}
|
|
2334
|
-
},
|
|
2364
|
+
}, xi = hi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
2335
2365
|
let t = "";
|
|
2336
2366
|
for (let n of e.cssRules) t += n.cssText;
|
|
2337
|
-
return
|
|
2338
|
-
})(e) : e, { is:
|
|
2367
|
+
return yi(t);
|
|
2368
|
+
})(e) : e, { is: Si, defineProperty: Ci, getOwnPropertyDescriptor: wi, getOwnPropertyNames: Ti, getOwnPropertySymbols: Ei, getPrototypeOf: Di } = Object, Oi = globalThis, ki = Oi.trustedTypes, Ai = ki ? ki.emptyScript : "", ji = Oi.reactiveElementPolyfillSupport, Mi = (e, t) => e, Ni = {
|
|
2339
2369
|
toAttribute(e, t) {
|
|
2340
2370
|
switch (t) {
|
|
2341
2371
|
case Boolean:
|
|
2342
|
-
e = e ?
|
|
2372
|
+
e = e ? Ai : null;
|
|
2343
2373
|
break;
|
|
2344
2374
|
case Object:
|
|
2345
2375
|
case Array: e = e == null ? e : JSON.stringify(e);
|
|
@@ -2364,30 +2394,30 @@ var li = globalThis, ui = li.ShadowRoot && (li.ShadyCSS === void 0 || li.ShadyCS
|
|
|
2364
2394
|
}
|
|
2365
2395
|
return n;
|
|
2366
2396
|
}
|
|
2367
|
-
},
|
|
2397
|
+
}, Pi = (e, t) => !Si(e, t), Fi = {
|
|
2368
2398
|
attribute: !0,
|
|
2369
2399
|
type: String,
|
|
2370
|
-
converter:
|
|
2400
|
+
converter: Ni,
|
|
2371
2401
|
reflect: !1,
|
|
2372
2402
|
useDefault: !1,
|
|
2373
|
-
hasChanged:
|
|
2403
|
+
hasChanged: Pi
|
|
2374
2404
|
};
|
|
2375
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
2376
|
-
var
|
|
2405
|
+
Symbol.metadata ??= Symbol("metadata"), Oi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
2406
|
+
var Ii = class extends HTMLElement {
|
|
2377
2407
|
static addInitializer(e) {
|
|
2378
2408
|
this._$Ei(), (this.l ??= []).push(e);
|
|
2379
2409
|
}
|
|
2380
2410
|
static get observedAttributes() {
|
|
2381
2411
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2382
2412
|
}
|
|
2383
|
-
static createProperty(e, t =
|
|
2413
|
+
static createProperty(e, t = Fi) {
|
|
2384
2414
|
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) {
|
|
2385
2415
|
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
2386
|
-
r !== void 0 &&
|
|
2416
|
+
r !== void 0 && Ci(this.prototype, e, r);
|
|
2387
2417
|
}
|
|
2388
2418
|
}
|
|
2389
2419
|
static getPropertyDescriptor(e, t, n) {
|
|
2390
|
-
let { get: r, set: i } =
|
|
2420
|
+
let { get: r, set: i } = wi(this.prototype, e) ?? {
|
|
2391
2421
|
get() {
|
|
2392
2422
|
return this[t];
|
|
2393
2423
|
},
|
|
@@ -2406,17 +2436,17 @@ var ji = class extends HTMLElement {
|
|
|
2406
2436
|
};
|
|
2407
2437
|
}
|
|
2408
2438
|
static getPropertyOptions(e) {
|
|
2409
|
-
return this.elementProperties.get(e) ??
|
|
2439
|
+
return this.elementProperties.get(e) ?? Fi;
|
|
2410
2440
|
}
|
|
2411
2441
|
static _$Ei() {
|
|
2412
|
-
if (this.hasOwnProperty(
|
|
2413
|
-
let e =
|
|
2442
|
+
if (this.hasOwnProperty(Mi("elementProperties"))) return;
|
|
2443
|
+
let e = Di(this);
|
|
2414
2444
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
2415
2445
|
}
|
|
2416
2446
|
static finalize() {
|
|
2417
|
-
if (this.hasOwnProperty(
|
|
2418
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
2419
|
-
let e = this.properties, t = [...
|
|
2447
|
+
if (this.hasOwnProperty(Mi("finalized"))) return;
|
|
2448
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mi("properties"))) {
|
|
2449
|
+
let e = this.properties, t = [...Ti(e), ...Ei(e)];
|
|
2420
2450
|
for (let n of t) this.createProperty(n, e[n]);
|
|
2421
2451
|
}
|
|
2422
2452
|
let e = this[Symbol.metadata];
|
|
@@ -2435,8 +2465,8 @@ var ji = class extends HTMLElement {
|
|
|
2435
2465
|
let t = [];
|
|
2436
2466
|
if (Array.isArray(e)) {
|
|
2437
2467
|
let n = new Set(e.flat(1 / 0).reverse());
|
|
2438
|
-
for (let e of n) t.unshift(
|
|
2439
|
-
} else e !== void 0 && t.push(
|
|
2468
|
+
for (let e of n) t.unshift(xi(e));
|
|
2469
|
+
} else e !== void 0 && t.push(xi(e));
|
|
2440
2470
|
return t;
|
|
2441
2471
|
}
|
|
2442
2472
|
static _$Eu(e, t) {
|
|
@@ -2462,7 +2492,7 @@ var ji = class extends HTMLElement {
|
|
|
2462
2492
|
}
|
|
2463
2493
|
createRenderRoot() {
|
|
2464
2494
|
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2465
|
-
return
|
|
2495
|
+
return bi(e, this.constructor.elementStyles), e;
|
|
2466
2496
|
}
|
|
2467
2497
|
connectedCallback() {
|
|
2468
2498
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
@@ -2477,14 +2507,14 @@ var ji = class extends HTMLElement {
|
|
|
2477
2507
|
_$ET(e, t) {
|
|
2478
2508
|
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
2479
2509
|
if (r !== void 0 && n.reflect === !0) {
|
|
2480
|
-
let i = (n.converter?.toAttribute === void 0 ?
|
|
2510
|
+
let i = (n.converter?.toAttribute === void 0 ? Ni : n.converter).toAttribute(t, n.type);
|
|
2481
2511
|
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
2482
2512
|
}
|
|
2483
2513
|
}
|
|
2484
2514
|
_$AK(e, t) {
|
|
2485
2515
|
let n = this.constructor, r = n._$Eh.get(e);
|
|
2486
2516
|
if (r !== void 0 && this._$Em !== r) {
|
|
2487
|
-
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ?
|
|
2517
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Ni : e.converter;
|
|
2488
2518
|
this._$Em = r;
|
|
2489
2519
|
let a = i.fromAttribute(t, e.type);
|
|
2490
2520
|
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
@@ -2493,7 +2523,7 @@ var ji = class extends HTMLElement {
|
|
|
2493
2523
|
requestUpdate(e, t, n) {
|
|
2494
2524
|
if (e !== void 0) {
|
|
2495
2525
|
let r = this.constructor, i = this[e];
|
|
2496
|
-
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ??
|
|
2526
|
+
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Pi)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
|
|
2497
2527
|
this.C(e, t, n);
|
|
2498
2528
|
}
|
|
2499
2529
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -2557,88 +2587,88 @@ var ji = class extends HTMLElement {
|
|
|
2557
2587
|
updated(e) {}
|
|
2558
2588
|
firstUpdated(e) {}
|
|
2559
2589
|
};
|
|
2560
|
-
|
|
2561
|
-
var
|
|
2562
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
2590
|
+
Ii.elementStyles = [], Ii.shadowRootOptions = { mode: "open" }, Ii[Mi("elementProperties")] = /* @__PURE__ */ new Map(), Ii[Mi("finalized")] = /* @__PURE__ */ new Map(), ji?.({ ReactiveElement: Ii }), (Oi.reactiveElementVersions ??= []).push("2.1.1");
|
|
2591
|
+
var Li = globalThis, Ri = Li.trustedTypes, zi = Ri ? Ri.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Bi = "$lit$", Vi = `lit$${Math.random().toFixed(9).slice(2)}$`, Hi = "?" + Vi, Ui = `<${Hi}>`, Wi = document, Gi = () => Wi.createComment(""), Ki = (e) => e === null || typeof e != "object" && typeof e != "function", qi = Array.isArray, Ji = (e) => qi(e) || typeof e?.[Symbol.iterator] == "function", Yi = "[ \n\f\r]", Xi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zi = /-->/g, Qi = />/g, $i = RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
|
|
2592
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ea = /'/g, ta = /"/g, na = /^(?:script|style|textarea|title)$/i, ra = ((e) => (t, ...n) => ({
|
|
2563
2593
|
_$litType$: e,
|
|
2564
2594
|
strings: t,
|
|
2565
2595
|
values: n
|
|
2566
|
-
}))(1),
|
|
2567
|
-
function
|
|
2568
|
-
if (!
|
|
2569
|
-
return
|
|
2596
|
+
}))(1), ia = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), aa = /* @__PURE__ */ new WeakMap(), oa = Wi.createTreeWalker(Wi, 129);
|
|
2597
|
+
function sa(e, t) {
|
|
2598
|
+
if (!qi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
2599
|
+
return zi === void 0 ? t : zi.createHTML(t);
|
|
2570
2600
|
}
|
|
2571
|
-
var
|
|
2572
|
-
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
2601
|
+
var ca = (e, t) => {
|
|
2602
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Xi;
|
|
2573
2603
|
for (let t = 0; t < n; t++) {
|
|
2574
2604
|
let n = e[t], s, c, l = -1, u = 0;
|
|
2575
|
-
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o ===
|
|
2576
|
-
let d = o ===
|
|
2577
|
-
a += o ===
|
|
2605
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Xi ? c[1] === "!--" ? o = Zi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = $i) : (na.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = $i) : o = Qi : o === $i ? c[0] === ">" ? (o = i ?? Xi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? $i : c[3] === "\"" ? ta : ea) : o === ta || o === ea ? o = $i : o === Zi || o === Qi ? o = Xi : (o = $i, i = void 0);
|
|
2606
|
+
let d = o === $i && e[t + 1].startsWith("/>") ? " " : "";
|
|
2607
|
+
a += o === Xi ? n + Ui : l >= 0 ? (r.push(s), n.slice(0, l) + Bi + n.slice(l) + Vi + d) : n + Vi + (l === -2 ? t : d);
|
|
2578
2608
|
}
|
|
2579
|
-
return [
|
|
2580
|
-
},
|
|
2609
|
+
return [sa(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
2610
|
+
}, la = class e {
|
|
2581
2611
|
constructor({ strings: t, _$litType$: n }, r) {
|
|
2582
2612
|
let i;
|
|
2583
2613
|
this.parts = [];
|
|
2584
|
-
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] =
|
|
2585
|
-
if (this.el = e.createElement(l, r),
|
|
2614
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ca(t, n);
|
|
2615
|
+
if (this.el = e.createElement(l, r), oa.currentNode = this.el.content, n === 2 || n === 3) {
|
|
2586
2616
|
let e = this.el.content.firstChild;
|
|
2587
2617
|
e.replaceWith(...e.childNodes);
|
|
2588
2618
|
}
|
|
2589
|
-
for (; (i =
|
|
2619
|
+
for (; (i = oa.nextNode()) !== null && c.length < s;) {
|
|
2590
2620
|
if (i.nodeType === 1) {
|
|
2591
|
-
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(
|
|
2592
|
-
let t = u[o++], n = i.getAttribute(e).split(
|
|
2621
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Bi)) {
|
|
2622
|
+
let t = u[o++], n = i.getAttribute(e).split(Vi), r = /([.?@])?(.*)/.exec(t);
|
|
2593
2623
|
c.push({
|
|
2594
2624
|
type: 1,
|
|
2595
2625
|
index: a,
|
|
2596
2626
|
name: r[2],
|
|
2597
2627
|
strings: n,
|
|
2598
|
-
ctor: r[1] === "." ?
|
|
2628
|
+
ctor: r[1] === "." ? ma : r[1] === "?" ? ha : r[1] === "@" ? ga : pa
|
|
2599
2629
|
}), i.removeAttribute(e);
|
|
2600
|
-
} else e.startsWith(
|
|
2630
|
+
} else e.startsWith(Vi) && (c.push({
|
|
2601
2631
|
type: 6,
|
|
2602
2632
|
index: a
|
|
2603
2633
|
}), i.removeAttribute(e));
|
|
2604
|
-
if (
|
|
2605
|
-
let e = i.textContent.split(
|
|
2634
|
+
if (na.test(i.tagName)) {
|
|
2635
|
+
let e = i.textContent.split(Vi), t = e.length - 1;
|
|
2606
2636
|
if (t > 0) {
|
|
2607
|
-
i.textContent =
|
|
2608
|
-
for (let n = 0; n < t; n++) i.append(e[n],
|
|
2637
|
+
i.textContent = Ri ? Ri.emptyScript : "";
|
|
2638
|
+
for (let n = 0; n < t; n++) i.append(e[n], Gi()), oa.nextNode(), c.push({
|
|
2609
2639
|
type: 2,
|
|
2610
2640
|
index: ++a
|
|
2611
2641
|
});
|
|
2612
|
-
i.append(e[t],
|
|
2642
|
+
i.append(e[t], Gi());
|
|
2613
2643
|
}
|
|
2614
2644
|
}
|
|
2615
2645
|
} else if (i.nodeType === 8) {
|
|
2616
|
-
if (i.data ===
|
|
2646
|
+
if (i.data === Hi) c.push({
|
|
2617
2647
|
type: 2,
|
|
2618
2648
|
index: a
|
|
2619
2649
|
});
|
|
2620
2650
|
else {
|
|
2621
2651
|
let e = -1;
|
|
2622
|
-
for (; (e = i.data.indexOf(
|
|
2652
|
+
for (; (e = i.data.indexOf(Vi, e + 1)) !== -1;) c.push({
|
|
2623
2653
|
type: 7,
|
|
2624
2654
|
index: a
|
|
2625
|
-
}), e +=
|
|
2655
|
+
}), e += Vi.length - 1;
|
|
2626
2656
|
}
|
|
2627
2657
|
}
|
|
2628
2658
|
a++;
|
|
2629
2659
|
}
|
|
2630
2660
|
}
|
|
2631
2661
|
static createElement(e, t) {
|
|
2632
|
-
let n =
|
|
2662
|
+
let n = Wi.createElement("template");
|
|
2633
2663
|
return n.innerHTML = e, n;
|
|
2634
2664
|
}
|
|
2635
2665
|
};
|
|
2636
|
-
function
|
|
2637
|
-
if (t ===
|
|
2638
|
-
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a =
|
|
2639
|
-
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 =
|
|
2666
|
+
function ua(e, t, n = e, r) {
|
|
2667
|
+
if (t === ia) return t;
|
|
2668
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ki(t) ? void 0 : t._$litDirective$;
|
|
2669
|
+
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 = ua(e, i._$AS(e, t.values), i, r)), t;
|
|
2640
2670
|
}
|
|
2641
|
-
var
|
|
2671
|
+
var da = class {
|
|
2642
2672
|
constructor(e, t) {
|
|
2643
2673
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
2644
2674
|
}
|
|
@@ -2649,23 +2679,23 @@ var oa = class {
|
|
|
2649
2679
|
return this._$AM._$AU;
|
|
2650
2680
|
}
|
|
2651
2681
|
u(e) {
|
|
2652
|
-
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ??
|
|
2653
|
-
|
|
2654
|
-
let i =
|
|
2682
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Wi).importNode(t, !0);
|
|
2683
|
+
oa.currentNode = r;
|
|
2684
|
+
let i = oa.nextNode(), a = 0, o = 0, s = n[0];
|
|
2655
2685
|
for (; s !== void 0;) {
|
|
2656
2686
|
if (a === s.index) {
|
|
2657
2687
|
let t;
|
|
2658
|
-
s.type === 2 ? t = new
|
|
2688
|
+
s.type === 2 ? t = new fa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new _a(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
2659
2689
|
}
|
|
2660
|
-
a !== s?.index && (i =
|
|
2690
|
+
a !== s?.index && (i = oa.nextNode(), a++);
|
|
2661
2691
|
}
|
|
2662
|
-
return
|
|
2692
|
+
return oa.currentNode = Wi, r;
|
|
2663
2693
|
}
|
|
2664
2694
|
p(e) {
|
|
2665
2695
|
let t = 0;
|
|
2666
2696
|
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++;
|
|
2667
2697
|
}
|
|
2668
|
-
},
|
|
2698
|
+
}, fa = class e {
|
|
2669
2699
|
get _$AU() {
|
|
2670
2700
|
return this._$AM?._$AU ?? this._$Cv;
|
|
2671
2701
|
}
|
|
@@ -2683,7 +2713,7 @@ var oa = class {
|
|
|
2683
2713
|
return this._$AB;
|
|
2684
2714
|
}
|
|
2685
2715
|
_$AI(e, t = this) {
|
|
2686
|
-
e =
|
|
2716
|
+
e = ua(this, e, t), Ki(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ia && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ji(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
2687
2717
|
}
|
|
2688
2718
|
O(e) {
|
|
2689
2719
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -2692,24 +2722,24 @@ var oa = class {
|
|
|
2692
2722
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
2693
2723
|
}
|
|
2694
2724
|
_(e) {
|
|
2695
|
-
this._$AH !== $ &&
|
|
2725
|
+
this._$AH !== $ && Ki(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Wi.createTextNode(e)), this._$AH = e;
|
|
2696
2726
|
}
|
|
2697
2727
|
$(e) {
|
|
2698
|
-
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
|
2728
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = la.createElement(sa(n.h, n.h[0]), this.options)), n);
|
|
2699
2729
|
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
2700
2730
|
else {
|
|
2701
|
-
let e = new
|
|
2731
|
+
let e = new da(r, this), n = e.u(this.options);
|
|
2702
2732
|
e.p(t), this.T(n), this._$AH = e;
|
|
2703
2733
|
}
|
|
2704
2734
|
}
|
|
2705
2735
|
_$AC(e) {
|
|
2706
|
-
let t =
|
|
2707
|
-
return t === void 0 &&
|
|
2736
|
+
let t = aa.get(e.strings);
|
|
2737
|
+
return t === void 0 && aa.set(e.strings, t = new la(e)), t;
|
|
2708
2738
|
}
|
|
2709
2739
|
k(t) {
|
|
2710
|
-
|
|
2740
|
+
qi(this._$AH) || (this._$AH = [], this._$AR());
|
|
2711
2741
|
let n = this._$AH, r, i = 0;
|
|
2712
|
-
for (let a of t) i === n.length ? n.push(r = new e(this.O(
|
|
2742
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(Gi()), this.O(Gi()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
2713
2743
|
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
2714
2744
|
}
|
|
2715
2745
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -2721,7 +2751,7 @@ var oa = class {
|
|
|
2721
2751
|
setConnected(e) {
|
|
2722
2752
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
2723
2753
|
}
|
|
2724
|
-
},
|
|
2754
|
+
}, pa = class {
|
|
2725
2755
|
get tagName() {
|
|
2726
2756
|
return this.element.tagName;
|
|
2727
2757
|
}
|
|
@@ -2733,43 +2763,43 @@ var oa = class {
|
|
|
2733
2763
|
}
|
|
2734
2764
|
_$AI(e, t = this, n, r) {
|
|
2735
2765
|
let i = this.strings, a = !1;
|
|
2736
|
-
if (i === void 0) e =
|
|
2766
|
+
if (i === void 0) e = ua(this, e, t, 0), a = !Ki(e) || e !== this._$AH && e !== ia, a && (this._$AH = e);
|
|
2737
2767
|
else {
|
|
2738
2768
|
let r = e, o, s;
|
|
2739
|
-
for (e = i[0], o = 0; o < i.length - 1; o++) s =
|
|
2769
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = ua(this, r[n + o], t, o), s === ia && (s = this._$AH[o]), a ||= !Ki(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
2740
2770
|
}
|
|
2741
2771
|
a && !r && this.j(e);
|
|
2742
2772
|
}
|
|
2743
2773
|
j(e) {
|
|
2744
2774
|
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
2745
2775
|
}
|
|
2746
|
-
},
|
|
2776
|
+
}, ma = class extends pa {
|
|
2747
2777
|
constructor() {
|
|
2748
2778
|
super(...arguments), this.type = 3;
|
|
2749
2779
|
}
|
|
2750
2780
|
j(e) {
|
|
2751
2781
|
this.element[this.name] = e === $ ? void 0 : e;
|
|
2752
2782
|
}
|
|
2753
|
-
},
|
|
2783
|
+
}, ha = class extends pa {
|
|
2754
2784
|
constructor() {
|
|
2755
2785
|
super(...arguments), this.type = 4;
|
|
2756
2786
|
}
|
|
2757
2787
|
j(e) {
|
|
2758
2788
|
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
2759
2789
|
}
|
|
2760
|
-
},
|
|
2790
|
+
}, ga = class extends pa {
|
|
2761
2791
|
constructor(e, t, n, r, i) {
|
|
2762
2792
|
super(e, t, n, r, i), this.type = 5;
|
|
2763
2793
|
}
|
|
2764
2794
|
_$AI(e, t = this) {
|
|
2765
|
-
if ((e =
|
|
2795
|
+
if ((e = ua(this, e, t, 0) ?? $) === ia) return;
|
|
2766
2796
|
let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
|
|
2767
2797
|
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
2768
2798
|
}
|
|
2769
2799
|
handleEvent(e) {
|
|
2770
2800
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
2771
2801
|
}
|
|
2772
|
-
},
|
|
2802
|
+
}, _a = class {
|
|
2773
2803
|
constructor(e, t, n) {
|
|
2774
2804
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
2775
2805
|
}
|
|
@@ -2777,18 +2807,18 @@ var oa = class {
|
|
|
2777
2807
|
return this._$AM._$AU;
|
|
2778
2808
|
}
|
|
2779
2809
|
_$AI(e) {
|
|
2780
|
-
|
|
2810
|
+
ua(this, e);
|
|
2781
2811
|
}
|
|
2782
|
-
},
|
|
2783
|
-
|
|
2784
|
-
var
|
|
2812
|
+
}, va = Li.litHtmlPolyfillSupport;
|
|
2813
|
+
va?.(la, fa), (Li.litHtmlVersions ??= []).push("3.3.1");
|
|
2814
|
+
var ya = (e, t, n) => {
|
|
2785
2815
|
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
2786
2816
|
if (i === void 0) {
|
|
2787
2817
|
let e = n?.renderBefore ?? null;
|
|
2788
|
-
r._$litPart$ = i = new
|
|
2818
|
+
r._$litPart$ = i = new fa(t.insertBefore(Gi(), e), e, void 0, n ?? {});
|
|
2789
2819
|
}
|
|
2790
2820
|
return i._$AI(e), i;
|
|
2791
|
-
},
|
|
2821
|
+
}, ba = globalThis, xa = class extends Ii {
|
|
2792
2822
|
constructor() {
|
|
2793
2823
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2794
2824
|
}
|
|
@@ -2798,7 +2828,7 @@ var ma = (e, t, n) => {
|
|
|
2798
2828
|
}
|
|
2799
2829
|
update(e) {
|
|
2800
2830
|
let t = this.render();
|
|
2801
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
2831
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ya(t, this.renderRoot, this.renderOptions);
|
|
2802
2832
|
}
|
|
2803
2833
|
connectedCallback() {
|
|
2804
2834
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -2807,23 +2837,23 @@ var ma = (e, t, n) => {
|
|
|
2807
2837
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
2808
2838
|
}
|
|
2809
2839
|
render() {
|
|
2810
|
-
return
|
|
2840
|
+
return ia;
|
|
2811
2841
|
}
|
|
2812
2842
|
};
|
|
2813
|
-
|
|
2814
|
-
var
|
|
2815
|
-
|
|
2816
|
-
var
|
|
2843
|
+
xa._$litElement$ = !0, xa.finalized = !0, ba.litElementHydrateSupport?.({ LitElement: xa });
|
|
2844
|
+
var Sa = ba.litElementPolyfillSupport;
|
|
2845
|
+
Sa?.({ LitElement: xa }), (ba.litElementVersions ??= []).push("4.2.1");
|
|
2846
|
+
var Ca = (e) => (t, n) => {
|
|
2817
2847
|
n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
|
|
2818
2848
|
customElements.get(e) || customElements.define(e, t);
|
|
2819
2849
|
}));
|
|
2820
|
-
},
|
|
2850
|
+
}, wa = {
|
|
2821
2851
|
attribute: !0,
|
|
2822
2852
|
type: String,
|
|
2823
|
-
converter:
|
|
2853
|
+
converter: Ni,
|
|
2824
2854
|
reflect: !1,
|
|
2825
|
-
hasChanged:
|
|
2826
|
-
},
|
|
2855
|
+
hasChanged: Pi
|
|
2856
|
+
}, Ta = (e = wa, t, n) => {
|
|
2827
2857
|
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
2828
2858
|
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") {
|
|
2829
2859
|
let { name: r } = n;
|
|
@@ -2846,16 +2876,16 @@ var va = (e) => (t, n) => {
|
|
|
2846
2876
|
}
|
|
2847
2877
|
throw Error("Unsupported decorator location: " + r);
|
|
2848
2878
|
};
|
|
2849
|
-
function
|
|
2850
|
-
return (t, n) => typeof n == "object" ?
|
|
2879
|
+
function Ea(e) {
|
|
2880
|
+
return (t, n) => typeof n == "object" ? Ta(e, t, n) : ((e, t, n) => {
|
|
2851
2881
|
let r = t.hasOwnProperty(n);
|
|
2852
2882
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
2853
2883
|
})(e, t, n);
|
|
2854
2884
|
}
|
|
2855
|
-
var
|
|
2856
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
2857
|
-
return r && i &&
|
|
2858
|
-
},
|
|
2885
|
+
var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t, n, r) => {
|
|
2886
|
+
for (var i = r > 1 ? void 0 : r ? Oa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
|
|
2887
|
+
return r && i && Da(t, n, i), i;
|
|
2888
|
+
}, Aa = class extends xa {
|
|
2859
2889
|
constructor() {
|
|
2860
2890
|
super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
|
|
2861
2891
|
}
|
|
@@ -2896,7 +2926,7 @@ var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t
|
|
|
2896
2926
|
}));
|
|
2897
2927
|
}
|
|
2898
2928
|
render() {
|
|
2899
|
-
return
|
|
2929
|
+
return ra`
|
|
2900
2930
|
<style>
|
|
2901
2931
|
nds-icon-button {
|
|
2902
2932
|
display: inline-block;
|
|
@@ -3090,46 +3120,46 @@ var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t
|
|
|
3090
3120
|
`;
|
|
3091
3121
|
}
|
|
3092
3122
|
};
|
|
3093
|
-
|
|
3123
|
+
ka([Ea()], Aa.prototype, "variant", 2), ka([Ea()], Aa.prototype, "size", 2), ka([Ea()], Aa.prototype, "type", 2), ka([Ea()], Aa.prototype, "state", 2), ka([Ea({ attribute: "icon-name" })], Aa.prototype, "iconName", 2), ka([Ea({ type: Boolean })], Aa.prototype, "disabled", 2), ka([Ea({ attribute: "button-aria-label" })], Aa.prototype, "buttonAriaLabel", 2), ka([Ea()], Aa.prototype, "shape", 1), Aa = ka([Ca("nds-icon-button")], Aa);
|
|
3094
3124
|
//#endregion
|
|
3095
3125
|
//#region ../players-shared/src/ui/zoom-compensation.ts
|
|
3096
|
-
var
|
|
3126
|
+
var ja = {
|
|
3097
3127
|
maxZoom: 2,
|
|
3098
3128
|
minCompensation: .25
|
|
3099
3129
|
};
|
|
3100
|
-
function
|
|
3130
|
+
function Ma(e, t) {
|
|
3101
3131
|
let n = e / t;
|
|
3102
3132
|
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
3103
3133
|
}
|
|
3104
|
-
function
|
|
3134
|
+
function Na(e, t, n) {
|
|
3105
3135
|
return Math.max(n, Math.min(1, t / e));
|
|
3106
3136
|
}
|
|
3107
3137
|
//#endregion
|
|
3108
3138
|
//#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
|
|
3109
|
-
function
|
|
3110
|
-
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */
|
|
3139
|
+
function Pa(e) {
|
|
3140
|
+
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
|
|
3111
3141
|
function a() {
|
|
3112
|
-
let e =
|
|
3113
|
-
|
|
3142
|
+
let e = Ma(window.outerWidth, window.innerWidth);
|
|
3143
|
+
W(i, e, !0), W(r, Na(e, t, n), !0);
|
|
3114
3144
|
}
|
|
3115
|
-
return
|
|
3145
|
+
return un(() => {
|
|
3116
3146
|
if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
3117
3147
|
}), {
|
|
3118
3148
|
get current() {
|
|
3119
|
-
return
|
|
3149
|
+
return Z(r);
|
|
3120
3150
|
},
|
|
3121
3151
|
get zoom() {
|
|
3122
|
-
return
|
|
3152
|
+
return Z(i);
|
|
3123
3153
|
}
|
|
3124
3154
|
};
|
|
3125
3155
|
}
|
|
3126
3156
|
//#endregion
|
|
3127
3157
|
//#region ../players-shared/dist/i18n/language-tags.js
|
|
3128
|
-
function
|
|
3158
|
+
function Fa(e) {
|
|
3129
3159
|
return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
|
|
3130
3160
|
}
|
|
3131
|
-
function
|
|
3132
|
-
let t =
|
|
3161
|
+
function Ia(e) {
|
|
3162
|
+
let t = Fa(e);
|
|
3133
3163
|
if (!t) return [];
|
|
3134
3164
|
let n = t.split("-"), r = [];
|
|
3135
3165
|
for (let e = n.length; e > 0; e--) {
|
|
@@ -3138,15 +3168,15 @@ function ja(e) {
|
|
|
3138
3168
|
}
|
|
3139
3169
|
return r;
|
|
3140
3170
|
}
|
|
3141
|
-
function
|
|
3142
|
-
for (let n of
|
|
3143
|
-
let e = t.find((e) =>
|
|
3171
|
+
function La(e, t) {
|
|
3172
|
+
for (let n of Ia(e)) {
|
|
3173
|
+
let e = t.find((e) => Fa(e) === n);
|
|
3144
3174
|
if (e != null) return e;
|
|
3145
3175
|
}
|
|
3146
3176
|
}
|
|
3147
3177
|
//#endregion
|
|
3148
3178
|
//#region ../players-shared/dist/i18n/messages/en-US.js
|
|
3149
|
-
var
|
|
3179
|
+
var Ra = {
|
|
3150
3180
|
common: {
|
|
3151
3181
|
close: "Close",
|
|
3152
3182
|
cancel: "Cancel",
|
|
@@ -3645,7 +3675,7 @@ var Na = {
|
|
|
3645
3675
|
coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
|
|
3646
3676
|
}
|
|
3647
3677
|
}
|
|
3648
|
-
},
|
|
3678
|
+
}, za = "en-US", Ba = /* @__PURE__ */ new Set([
|
|
3649
3679
|
"ar",
|
|
3650
3680
|
"ckb",
|
|
3651
3681
|
"dv",
|
|
@@ -3661,7 +3691,7 @@ var Na = {
|
|
|
3661
3691
|
"ug",
|
|
3662
3692
|
"ur",
|
|
3663
3693
|
"yi"
|
|
3664
|
-
]),
|
|
3694
|
+
]), Va = /* @__PURE__ */ new Set([
|
|
3665
3695
|
"zero",
|
|
3666
3696
|
"one",
|
|
3667
3697
|
"two",
|
|
@@ -3669,20 +3699,20 @@ var Na = {
|
|
|
3669
3699
|
"many",
|
|
3670
3700
|
"other"
|
|
3671
3701
|
]);
|
|
3672
|
-
function
|
|
3702
|
+
function Ha(e) {
|
|
3673
3703
|
if (typeof e != "object" || !e) return !1;
|
|
3674
3704
|
let t = Object.keys(e);
|
|
3675
|
-
return t.length > 0 && t.every((e) =>
|
|
3705
|
+
return t.length > 0 && t.every((e) => Va.has(e));
|
|
3676
3706
|
}
|
|
3677
|
-
function
|
|
3707
|
+
function Ua(e) {
|
|
3678
3708
|
try {
|
|
3679
3709
|
let t = new Intl.Locale(e).textInfo;
|
|
3680
3710
|
if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
|
|
3681
3711
|
} catch {}
|
|
3682
|
-
let t =
|
|
3683
|
-
return
|
|
3712
|
+
let t = Fa(e).split("-")[0] ?? "";
|
|
3713
|
+
return Ba.has(t) ? "rtl" : "ltr";
|
|
3684
3714
|
}
|
|
3685
|
-
var
|
|
3715
|
+
var Wa = class e {
|
|
3686
3716
|
static pluralRules = /* @__PURE__ */ new Map();
|
|
3687
3717
|
locale;
|
|
3688
3718
|
fallbackLocale;
|
|
@@ -3692,7 +3722,7 @@ var za = class e {
|
|
|
3692
3722
|
listeners = /* @__PURE__ */ new Set();
|
|
3693
3723
|
config;
|
|
3694
3724
|
constructor(e = {}) {
|
|
3695
|
-
this.config = { ...e }, this.fallbackLocale =
|
|
3725
|
+
this.config = { ...e }, this.fallbackLocale = Ga(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[za, Ra]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
|
|
3696
3726
|
}
|
|
3697
3727
|
async initialize(e) {
|
|
3698
3728
|
if (this.config = {
|
|
@@ -3707,7 +3737,7 @@ var za = class e {
|
|
|
3707
3737
|
async setLocale(e) {
|
|
3708
3738
|
let t = this.resolveLocaleTag(e);
|
|
3709
3739
|
if (!t) {
|
|
3710
|
-
this.locale =
|
|
3740
|
+
this.locale = Ga(e) || "en-US", this.notify();
|
|
3711
3741
|
return;
|
|
3712
3742
|
}
|
|
3713
3743
|
if (!this.catalogs.has(t)) {
|
|
@@ -3727,14 +3757,14 @@ var za = class e {
|
|
|
3727
3757
|
}
|
|
3728
3758
|
t(e, t) {
|
|
3729
3759
|
let n = this.lookup(e);
|
|
3730
|
-
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) :
|
|
3760
|
+
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : qa(n, t);
|
|
3731
3761
|
}
|
|
3732
3762
|
plural(e, t) {
|
|
3733
3763
|
let n = this.lookupNode(e);
|
|
3734
|
-
return n === void 0 || !
|
|
3764
|
+
return n === void 0 || !Ha(n) ? this.t(e, t) : qa(n[this.selectPluralCategory(t.count)] ?? n.other, t);
|
|
3735
3765
|
}
|
|
3736
3766
|
getDirection() {
|
|
3737
|
-
return
|
|
3767
|
+
return Ua(this.locale);
|
|
3738
3768
|
}
|
|
3739
3769
|
getAvailableLocales() {
|
|
3740
3770
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -3756,11 +3786,11 @@ var za = class e {
|
|
|
3756
3786
|
return this.lookup(e) !== void 0;
|
|
3757
3787
|
}
|
|
3758
3788
|
addCustomMessages(e, t) {
|
|
3759
|
-
let n =
|
|
3760
|
-
this.customMessages[n] =
|
|
3789
|
+
let n = Ga(e);
|
|
3790
|
+
this.customMessages[n] = Ja(this.customMessages[n] ?? {}, t), this.notify();
|
|
3761
3791
|
}
|
|
3762
3792
|
withLocale(t) {
|
|
3763
|
-
let n = this.resolveLocaleTag(t) ??
|
|
3793
|
+
let n = this.resolveLocaleTag(t) ?? Ga(t);
|
|
3764
3794
|
if (n === this.locale) return this;
|
|
3765
3795
|
let r = new e({
|
|
3766
3796
|
...this.config,
|
|
@@ -3772,14 +3802,14 @@ var za = class e {
|
|
|
3772
3802
|
try {
|
|
3773
3803
|
return new Intl.NumberFormat(this.locale, t).format(e);
|
|
3774
3804
|
} catch {
|
|
3775
|
-
return new Intl.NumberFormat(
|
|
3805
|
+
return new Intl.NumberFormat(za, t).format(e);
|
|
3776
3806
|
}
|
|
3777
3807
|
}
|
|
3778
3808
|
formatDate(e, t) {
|
|
3779
3809
|
try {
|
|
3780
3810
|
return new Intl.DateTimeFormat(this.locale, t).format(e);
|
|
3781
3811
|
} catch {
|
|
3782
|
-
return new Intl.DateTimeFormat(
|
|
3812
|
+
return new Intl.DateTimeFormat(za, t).format(e);
|
|
3783
3813
|
}
|
|
3784
3814
|
}
|
|
3785
3815
|
getBundle(e = this.locale) {
|
|
@@ -3789,15 +3819,15 @@ var za = class e {
|
|
|
3789
3819
|
if (n) return {
|
|
3790
3820
|
locale: t,
|
|
3791
3821
|
translations: n,
|
|
3792
|
-
direction:
|
|
3822
|
+
direction: Ua(t)
|
|
3793
3823
|
};
|
|
3794
3824
|
}
|
|
3795
3825
|
resolveLocaleTag(e) {
|
|
3796
3826
|
if (!e) return;
|
|
3797
|
-
let t = this.getAvailableLocales(), n =
|
|
3827
|
+
let t = this.getAvailableLocales(), n = La(e, t);
|
|
3798
3828
|
if (n) return n;
|
|
3799
|
-
let r =
|
|
3800
|
-
if (r) return t.find((e) =>
|
|
3829
|
+
let r = Fa(e).split("-")[0];
|
|
3830
|
+
if (r) return t.find((e) => Fa(e).split("-")[0] === r);
|
|
3801
3831
|
}
|
|
3802
3832
|
async loadCatalog(e) {
|
|
3803
3833
|
let t = this.config.loadCatalog;
|
|
@@ -3815,14 +3845,14 @@ var za = class e {
|
|
|
3815
3845
|
this.catalogs.get(this.fallbackLocale)
|
|
3816
3846
|
];
|
|
3817
3847
|
for (let n of t) {
|
|
3818
|
-
let t =
|
|
3848
|
+
let t = Ka(n, e);
|
|
3819
3849
|
if (t !== void 0) return t;
|
|
3820
3850
|
}
|
|
3821
3851
|
}
|
|
3822
3852
|
lookup(e) {
|
|
3823
3853
|
let t = this.lookupNode(e);
|
|
3824
3854
|
if (typeof t == "string") return t;
|
|
3825
|
-
if (t !== void 0 &&
|
|
3855
|
+
if (t !== void 0 && Ha(t)) return t.other;
|
|
3826
3856
|
}
|
|
3827
3857
|
selectPluralCategory(t) {
|
|
3828
3858
|
let n = e.pluralRules.get(this.locale);
|
|
@@ -3840,35 +3870,35 @@ var za = class e {
|
|
|
3840
3870
|
for (let e of this.listeners) e();
|
|
3841
3871
|
}
|
|
3842
3872
|
};
|
|
3843
|
-
function
|
|
3873
|
+
function Ga(e) {
|
|
3844
3874
|
return e ? e.trim().replace(/_/g, "-") : "";
|
|
3845
3875
|
}
|
|
3846
|
-
function
|
|
3876
|
+
function Ka(e, t) {
|
|
3847
3877
|
if (!e) return;
|
|
3848
3878
|
let n = e;
|
|
3849
3879
|
for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
|
|
3850
3880
|
return n;
|
|
3851
3881
|
}
|
|
3852
|
-
function
|
|
3882
|
+
function qa(e, t) {
|
|
3853
3883
|
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
3854
3884
|
let r = t[n];
|
|
3855
3885
|
return r == null ? e : String(r);
|
|
3856
3886
|
}) : e;
|
|
3857
3887
|
}
|
|
3858
|
-
function
|
|
3888
|
+
function Ja(e, t) {
|
|
3859
3889
|
let n = { ...e };
|
|
3860
3890
|
for (let [e, r] of Object.entries(t)) {
|
|
3861
3891
|
let t = n[e];
|
|
3862
|
-
n[e] = r && typeof r == "object" && t && typeof t == "object" ?
|
|
3892
|
+
n[e] = r && typeof r == "object" && t && typeof t == "object" ? Ja(t, r) : r;
|
|
3863
3893
|
}
|
|
3864
3894
|
return n;
|
|
3865
3895
|
}
|
|
3866
|
-
var
|
|
3867
|
-
function
|
|
3868
|
-
return
|
|
3896
|
+
var Ya;
|
|
3897
|
+
function Xa() {
|
|
3898
|
+
return Ya ||= new Wa(), Ya;
|
|
3869
3899
|
}
|
|
3870
|
-
function
|
|
3871
|
-
let t = e?.i18n ??
|
|
3900
|
+
function Za(e) {
|
|
3901
|
+
let t = e?.i18n ?? Xa();
|
|
3872
3902
|
return {
|
|
3873
3903
|
getLocale: () => t.getLocale(),
|
|
3874
3904
|
setLocale: (e) => t.setLocale(e),
|
|
@@ -3881,15 +3911,15 @@ function Ka(e) {
|
|
|
3881
3911
|
}
|
|
3882
3912
|
//#endregion
|
|
3883
3913
|
//#region tool-tts-inline.svelte
|
|
3884
|
-
var
|
|
3914
|
+
var Qa = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), $a = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), eo = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), to = /* @__PURE__ */ hr("<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>"), no = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), ro = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><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=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><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=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), io = /* @__PURE__ */ hr("<!> <!>", 1), ao = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), oo = {
|
|
3885
3915
|
hash: "svelte-18mzc0g",
|
|
3886
|
-
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 the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-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);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-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 The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-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));\n /* --pie-white, not --pie-background: the base light theme sets\n --pie-background to rgba(255,255,255,0) so page content shows through,\n and a floating card cannot be transparent. --pie-white is the theme's\n opaque page surface (DaisyUI base-100; #000 under the dark theme). */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-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 glyph, 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, var(--pie-button-color, var(--pie-text, #222)));}.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, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-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;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-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, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-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, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-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 chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-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, var(--pie-button-color, var(--pie-text, #222)));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, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-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 }"
|
|
3916
|
+
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 the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-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);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-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 The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-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));\n /* --pie-white is the surface role every built-in sets to its page colour\n (DaisyUI base-100; #000 under the dark theme). --pie-background is the\n page token, which a host may point at its own backdrop, and a floating\n card needs a surface it owns. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-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 glyph, 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, var(--pie-button-color, var(--pie-text, #222)));}.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, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-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;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-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, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-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, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-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 chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-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, var(--pie-button-color, var(--pie-text, #222)));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, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-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 }"
|
|
3887
3917
|
};
|
|
3888
|
-
function
|
|
3889
|
-
|
|
3890
|
-
let c =
|
|
3891
|
-
if (!(!m ||
|
|
3892
|
-
if (
|
|
3918
|
+
function so(o, s) {
|
|
3919
|
+
ze(s, !0), Hr(o, oo);
|
|
3920
|
+
let c = si(s, "catalogId", 7, ""), l = si(s, "language", 7, "en-US"), u = si(s, "size", 7, "md"), d = si(s, "speedOptions", 7, void 0), f = si(s, "showSingleSpeedOption", 7, !1), p = si(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, ee = !1, b = () => {
|
|
3921
|
+
if (!(!m || ee)) {
|
|
3922
|
+
if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
3893
3923
|
let e = document.createElement("link");
|
|
3894
3924
|
e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
|
|
3895
3925
|
}
|
|
@@ -3905,12 +3935,12 @@ function no(o, s) {
|
|
|
3905
3935
|
}
|
|
3906
3936
|
}
|
|
3907
3937
|
}
|
|
3908
|
-
},
|
|
3938
|
+
}, x = "__pieFaTtsShadowInstalled", te = (e) => {
|
|
3909
3939
|
let t = e.getRootNode();
|
|
3910
3940
|
if (!(t instanceof ShadowRoot)) return;
|
|
3911
3941
|
let n = t;
|
|
3912
|
-
if (n[
|
|
3913
|
-
n[
|
|
3942
|
+
if (n[x]) return;
|
|
3943
|
+
n[x] = !0;
|
|
3914
3944
|
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
3915
3945
|
if (!e || r.has(e)) return;
|
|
3916
3946
|
r.add(e);
|
|
@@ -3918,8 +3948,8 @@ function no(o, s) {
|
|
|
3918
3948
|
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
3919
3949
|
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
|
|
3920
3950
|
for (let e of a) i(e.href);
|
|
3921
|
-
},
|
|
3922
|
-
|
|
3951
|
+
}, S = (e) => {
|
|
3952
|
+
b(), te(e);
|
|
3923
3953
|
let t = () => {
|
|
3924
3954
|
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
3925
3955
|
};
|
|
@@ -3933,7 +3963,7 @@ function no(o, s) {
|
|
|
3933
3963
|
}), { destroy() {
|
|
3934
3964
|
n.disconnect();
|
|
3935
3965
|
} };
|
|
3936
|
-
},
|
|
3966
|
+
}, C = (e, t) => {
|
|
3937
3967
|
let n = t, r = () => {
|
|
3938
3968
|
let t = e.querySelector("button");
|
|
3939
3969
|
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
@@ -3951,61 +3981,61 @@ function no(o, s) {
|
|
|
3951
3981
|
i.disconnect();
|
|
3952
3982
|
}
|
|
3953
3983
|
};
|
|
3954
|
-
},
|
|
3955
|
-
function
|
|
3984
|
+
}, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), re = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ B(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ B(() => Za(Z(re))), D = /* @__PURE__ */ U(null), ae = /* @__PURE__ */ U(null), O = /* @__PURE__ */ B(() => Z(re)?.ttsService), oe = /* @__PURE__ */ B(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ B(() => Z(ae)?.scopeElement || Z(D)?.scopeElement || null), k = /* @__PURE__ */ U(!1), ce = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(""), le = /* @__PURE__ */ U(null), ue = /* @__PURE__ */ U(null), de = /* @__PURE__ */ U(!1), fe = /* @__PURE__ */ U(!1), pe = /* @__PURE__ */ U(!1), me = null, he = /* @__PURE__ */ B(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ B(() => a(d())), ve = /* @__PURE__ */ B(() => Ee(Z(_e))), N = /* @__PURE__ */ B(() => Z(_e).length > 1 || f() ? Z(_e) : []), P = /* @__PURE__ */ B(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : De(Z(_e))), F = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, I = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, ye = `${F}-controls`;
|
|
3985
|
+
function xe() {
|
|
3956
3986
|
if (!m) return null;
|
|
3957
3987
|
let e = window[h];
|
|
3958
3988
|
return typeof e == "string" ? e : null;
|
|
3959
3989
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return
|
|
3990
|
+
function L() {
|
|
3991
|
+
return xe() === F;
|
|
3962
3992
|
}
|
|
3963
|
-
function
|
|
3993
|
+
function Se(e, t) {
|
|
3964
3994
|
m && window.dispatchEvent(new CustomEvent(g, { detail: {
|
|
3965
3995
|
ownerId: e,
|
|
3966
3996
|
previousOwnerId: t
|
|
3967
3997
|
} }));
|
|
3968
3998
|
}
|
|
3969
|
-
function
|
|
3999
|
+
function Ce() {
|
|
3970
4000
|
if (!m) return;
|
|
3971
|
-
let e =
|
|
3972
|
-
e !==
|
|
4001
|
+
let e = xe();
|
|
4002
|
+
e !== F && (window[h] = F, Se(F, e));
|
|
3973
4003
|
}
|
|
3974
|
-
function
|
|
3975
|
-
m &&
|
|
4004
|
+
function we() {
|
|
4005
|
+
m && xe() === F && (delete window[h], Se(null, F));
|
|
3976
4006
|
}
|
|
3977
|
-
function
|
|
3978
|
-
|
|
4007
|
+
function Te(e = "", t = !1) {
|
|
4008
|
+
W(fe, !1), W(A, !1), W(j, !1), W(k, t, !0), W(M, e, !0);
|
|
3979
4009
|
}
|
|
3980
|
-
function
|
|
4010
|
+
function Ee(e) {
|
|
3981
4011
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
3982
4012
|
}
|
|
3983
|
-
function
|
|
4013
|
+
function De(e) {
|
|
3984
4014
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
3985
4015
|
}
|
|
3986
|
-
async function
|
|
4016
|
+
async function Oe(e, t) {
|
|
3987
4017
|
if (typeof e.setPlaybackRate == "function") {
|
|
3988
4018
|
await e.setPlaybackRate(t);
|
|
3989
4019
|
return;
|
|
3990
4020
|
}
|
|
3991
4021
|
await e.updateSettings({ rate: t });
|
|
3992
4022
|
}
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
3995
|
-
let e =
|
|
4023
|
+
function ke() {
|
|
4024
|
+
if (!Z(w) || !Z(T)) return !1;
|
|
4025
|
+
let e = Z(w).getRootNode();
|
|
3996
4026
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
3997
4027
|
let t = e.activeElement;
|
|
3998
|
-
return !!(t &&
|
|
4028
|
+
return !!(t && Z(T).contains(t));
|
|
3999
4029
|
}
|
|
4000
|
-
function
|
|
4001
|
-
if (!
|
|
4002
|
-
let e =
|
|
4030
|
+
function Ae() {
|
|
4031
|
+
if (!Z(T)) return !1;
|
|
4032
|
+
let e = Z(T).getRootNode();
|
|
4003
4033
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
4004
4034
|
let t = e.activeElement;
|
|
4005
|
-
return !t || !
|
|
4035
|
+
return !t || !Z(T).contains(t) ? !1 : t.matches(Le);
|
|
4006
4036
|
}
|
|
4007
4037
|
function je() {
|
|
4008
|
-
let e =
|
|
4038
|
+
let e = Z(T)?.querySelector(R);
|
|
4009
4039
|
if (e && !e.disabled) {
|
|
4010
4040
|
e.focus();
|
|
4011
4041
|
return;
|
|
@@ -4013,98 +4043,98 @@ function no(o, s) {
|
|
|
4013
4043
|
Me(!0);
|
|
4014
4044
|
}
|
|
4015
4045
|
function Me(e) {
|
|
4016
|
-
if (!
|
|
4017
|
-
let t =
|
|
4046
|
+
if (!Z(w) || !e) return;
|
|
4047
|
+
let t = Z(w).getRootNode();
|
|
4018
4048
|
if (!(t instanceof ShadowRoot)) return;
|
|
4019
4049
|
let n = t.querySelector(".pie-tool-tts-inline__trigger");
|
|
4020
4050
|
(n?.querySelector("button") ?? n)?.focus();
|
|
4021
4051
|
}
|
|
4022
|
-
function Ne(e =
|
|
4023
|
-
if (!
|
|
4024
|
-
|
|
4052
|
+
function Ne(e = Z(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
|
|
4053
|
+
if (!Z(pe) && !(!Z(k) && !L())) {
|
|
4054
|
+
W(pe, !0);
|
|
4025
4055
|
try {
|
|
4026
|
-
let n =
|
|
4027
|
-
|
|
4056
|
+
let n = ke();
|
|
4057
|
+
L() && we(), Te(e), qe(), t && queueMicrotask(() => {
|
|
4028
4058
|
Me(n);
|
|
4029
4059
|
});
|
|
4030
4060
|
} finally {
|
|
4031
|
-
|
|
4061
|
+
W(pe, !1);
|
|
4032
4062
|
}
|
|
4033
4063
|
}
|
|
4034
4064
|
}
|
|
4035
|
-
|
|
4036
|
-
if (
|
|
4037
|
-
|
|
4065
|
+
un(() => {
|
|
4066
|
+
if (Z(w)) return r(Z(w), (e) => {
|
|
4067
|
+
W(re, e, !0);
|
|
4038
4068
|
});
|
|
4039
|
-
}),
|
|
4040
|
-
if (!
|
|
4041
|
-
let e = i(
|
|
4042
|
-
|
|
4043
|
-
}), t = n(
|
|
4044
|
-
|
|
4069
|
+
}), un(() => {
|
|
4070
|
+
if (!Z(w)) return;
|
|
4071
|
+
let e = i(Z(w), (e) => {
|
|
4072
|
+
W(D, e, !0);
|
|
4073
|
+
}), t = n(Z(w), (e) => {
|
|
4074
|
+
W(ae, e, !0);
|
|
4045
4075
|
});
|
|
4046
4076
|
return () => {
|
|
4047
4077
|
t(), e();
|
|
4048
4078
|
};
|
|
4049
|
-
}),
|
|
4050
|
-
if (!
|
|
4079
|
+
}), un(() => {
|
|
4080
|
+
if (!Z(O)) return;
|
|
4051
4081
|
let e = (e) => {
|
|
4052
|
-
if (!
|
|
4053
|
-
|
|
4082
|
+
if (!Z(k) || !L()) {
|
|
4083
|
+
W(A, !1), W(j, !1);
|
|
4054
4084
|
return;
|
|
4055
4085
|
}
|
|
4056
|
-
|
|
4086
|
+
W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
|
|
4057
4087
|
}, t = (t) => {
|
|
4058
|
-
let n = String(t), r =
|
|
4059
|
-
e(n), n === "playing" && (
|
|
4088
|
+
let n = String(t), r = Ae();
|
|
4089
|
+
e(n), n === "playing" && (Z(fe) && W(M, Z(E).t("tools.textToSpeech.inline.started"), !0), W(fe, !1)), (n === "error" || n === "idle") && W(fe, !1), r && !Z(A) && queueMicrotask(je);
|
|
4060
4090
|
};
|
|
4061
|
-
return
|
|
4062
|
-
|
|
4091
|
+
return Z(O).onStateChange(I, t), e(Z(O).getState()), () => {
|
|
4092
|
+
Z(O).offStateChange(I, t);
|
|
4063
4093
|
};
|
|
4064
|
-
}),
|
|
4094
|
+
}), un(() => {
|
|
4065
4095
|
if (!m) return;
|
|
4066
4096
|
let e = (e) => {
|
|
4067
4097
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
4068
|
-
n ===
|
|
4098
|
+
n === F && t !== F && Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"));
|
|
4069
4099
|
};
|
|
4070
4100
|
return window.addEventListener(g, e), () => {
|
|
4071
4101
|
window.removeEventListener(g, e);
|
|
4072
4102
|
};
|
|
4073
|
-
}),
|
|
4103
|
+
}), un(() => {
|
|
4074
4104
|
if (!m) return;
|
|
4075
4105
|
let t = () => {
|
|
4076
|
-
Ne(
|
|
4106
|
+
Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"), !0);
|
|
4077
4107
|
};
|
|
4078
4108
|
return window.addEventListener(e, t), () => {
|
|
4079
4109
|
window.removeEventListener(e, t);
|
|
4080
4110
|
};
|
|
4081
|
-
}),
|
|
4082
|
-
|
|
4111
|
+
}), un(() => () => {
|
|
4112
|
+
we(), qe();
|
|
4083
4113
|
});
|
|
4084
4114
|
async function Pe() {
|
|
4085
|
-
if (!
|
|
4115
|
+
if (!Z(O)) return !1;
|
|
4086
4116
|
try {
|
|
4087
|
-
return await
|
|
4117
|
+
return await Z(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
4088
4118
|
} catch (e) {
|
|
4089
4119
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
4090
4120
|
}
|
|
4091
4121
|
}
|
|
4092
|
-
let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]",
|
|
4093
|
-
function
|
|
4094
|
-
return
|
|
4122
|
+
let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", Le = "[data-pie-tts-seek]", R = "[data-pie-tts-stop]";
|
|
4123
|
+
function Re(e) {
|
|
4124
|
+
return Z(T) ? Array.from(Z(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
|
|
4095
4125
|
}
|
|
4096
4126
|
function Ve(e, t) {
|
|
4097
|
-
let n =
|
|
4127
|
+
let n = Re(e);
|
|
4098
4128
|
if (!n.length) return;
|
|
4099
4129
|
let r = n[(t + n.length) % n.length];
|
|
4100
4130
|
if (r.focus(), e !== Fe) return;
|
|
4101
|
-
let i = Number(r.dataset.pieTtsSpeedRate), a =
|
|
4131
|
+
let i = Number(r.dataset.pieTtsSpeedRate), a = Z(N).find((e) => e.rate === i);
|
|
4102
4132
|
a && et(a);
|
|
4103
4133
|
}
|
|
4104
4134
|
function He(e, t) {
|
|
4105
|
-
let n =
|
|
4135
|
+
let n = Re(e);
|
|
4106
4136
|
if (!n.length) return;
|
|
4107
|
-
let r =
|
|
4137
|
+
let r = Z(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
|
|
4108
4138
|
Ve(e, a === -1 ? 0 : a + t);
|
|
4109
4139
|
}
|
|
4110
4140
|
function Ue(e, t) {
|
|
@@ -4124,66 +4154,66 @@ function no(o, s) {
|
|
|
4124
4154
|
}
|
|
4125
4155
|
}
|
|
4126
4156
|
function We() {
|
|
4127
|
-
if (!
|
|
4128
|
-
let e =
|
|
4157
|
+
if (!Z(se)) return null;
|
|
4158
|
+
let e = Z(se);
|
|
4129
4159
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
4130
4160
|
let t = e.querySelector?.("[data-region='content']");
|
|
4131
4161
|
return t instanceof Element ? t : e;
|
|
4132
4162
|
}
|
|
4133
4163
|
function Ge() {
|
|
4134
|
-
if (
|
|
4135
|
-
kind:
|
|
4136
|
-
assessmentId:
|
|
4137
|
-
sectionId:
|
|
4138
|
-
itemId:
|
|
4139
|
-
canonicalItemId:
|
|
4164
|
+
if (Z(D)) return t({
|
|
4165
|
+
kind: Z(D).kind,
|
|
4166
|
+
assessmentId: Z(re)?.assessmentId,
|
|
4167
|
+
sectionId: Z(re)?.sectionId,
|
|
4168
|
+
itemId: Z(D).itemId,
|
|
4169
|
+
canonicalItemId: Z(D).canonicalItemId || Z(D).itemId
|
|
4140
4170
|
});
|
|
4141
4171
|
}
|
|
4142
4172
|
function Ke(e) {
|
|
4143
|
-
return qe(),
|
|
4173
|
+
return qe(), me = Z(O)?.setHighlightTargetResolverProvider?.(() => ({
|
|
4144
4174
|
context: {
|
|
4145
|
-
scopeElement:
|
|
4146
|
-
kind:
|
|
4147
|
-
itemId:
|
|
4148
|
-
canonicalItemId:
|
|
4149
|
-
contentKind:
|
|
4150
|
-
regionPolicy:
|
|
4175
|
+
scopeElement: Z(ae)?.scopeElement || e || null,
|
|
4176
|
+
kind: Z(D)?.kind,
|
|
4177
|
+
itemId: Z(D)?.itemId,
|
|
4178
|
+
canonicalItemId: Z(D)?.canonicalItemId,
|
|
4179
|
+
contentKind: Z(D)?.contentKind,
|
|
4180
|
+
regionPolicy: Z(D)?.regionPolicy
|
|
4151
4181
|
},
|
|
4152
|
-
resolver:
|
|
4153
|
-
})) || null,
|
|
4182
|
+
resolver: Z(ae)?.ttsHighlightTargetResolver || null
|
|
4183
|
+
})) || null, me;
|
|
4154
4184
|
}
|
|
4155
|
-
function qe(e =
|
|
4156
|
-
e?.(), e ===
|
|
4185
|
+
function qe(e = me) {
|
|
4186
|
+
e?.(), e === me && (me = null);
|
|
4157
4187
|
}
|
|
4158
4188
|
function z() {
|
|
4159
|
-
if (!
|
|
4160
|
-
let e = String(
|
|
4189
|
+
if (!L()) return !1;
|
|
4190
|
+
let e = String(Z(O)?.getState?.() || "");
|
|
4161
4191
|
return e === "playing" || e === "paused" || e === "loading";
|
|
4162
4192
|
}
|
|
4163
4193
|
function Je(e) {
|
|
4164
|
-
let t =
|
|
4165
|
-
|
|
4194
|
+
let t = ke();
|
|
4195
|
+
Te(Z(E).t("tools.textToSpeech.inline.startFailed")), L() && we(), Z(oe) && Z(oe).clearTTS(), qe(e), t && queueMicrotask(() => {
|
|
4166
4196
|
Me(!0);
|
|
4167
4197
|
});
|
|
4168
4198
|
}
|
|
4169
4199
|
async function Ye() {
|
|
4170
|
-
if (!
|
|
4200
|
+
if (!Z(O)) return;
|
|
4171
4201
|
let e = null, t = We();
|
|
4172
4202
|
if (!t) {
|
|
4173
4203
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
4174
4204
|
return;
|
|
4175
4205
|
}
|
|
4176
4206
|
try {
|
|
4177
|
-
|
|
4207
|
+
W(k, !0);
|
|
4178
4208
|
let n = t.textContent || "";
|
|
4179
4209
|
if (!n) {
|
|
4180
4210
|
console.warn("[TTS Inline] No text content found");
|
|
4181
4211
|
return;
|
|
4182
4212
|
}
|
|
4183
|
-
|
|
4184
|
-
service:
|
|
4185
|
-
choicesKey:
|
|
4186
|
-
}, e = Ke(t),
|
|
4213
|
+
Z(oe) && Z(O).setHighlightCoordinator && Z(O).setHighlightCoordinator(Z(oe)), await Oe(Z(O), Z(P)), ge = {
|
|
4214
|
+
service: Z(O),
|
|
4215
|
+
choicesKey: Z(ve)
|
|
4216
|
+
}, e = Ke(t), Z(O).setRootElement?.(t), W(fe, !0), W(M, Z(E).t("tools.textToSpeech.inline.starting"), !0), Z(O).speak(n, {
|
|
4187
4217
|
catalogId: c() || void 0,
|
|
4188
4218
|
catalogContext: Ge(),
|
|
4189
4219
|
language: l(),
|
|
@@ -4198,86 +4228,86 @@ function no(o, s) {
|
|
|
4198
4228
|
}
|
|
4199
4229
|
}
|
|
4200
4230
|
async function Xe() {
|
|
4201
|
-
if (
|
|
4202
|
-
if (
|
|
4203
|
-
|
|
4231
|
+
if (Z(O) && !(Z(he) || L() && String(Z(O).getState?.() || "") === "loading")) {
|
|
4232
|
+
if (L() && Z(j)) {
|
|
4233
|
+
Z(O).resume(), W(M, Z(E).t("tools.textToSpeech.inline.resumed"), !0);
|
|
4204
4234
|
return;
|
|
4205
4235
|
}
|
|
4206
|
-
if (
|
|
4207
|
-
|
|
4236
|
+
if (L() && Z(A) && !Z(j)) {
|
|
4237
|
+
Z(O).pause(), W(M, Z(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
|
|
4208
4238
|
return;
|
|
4209
4239
|
}
|
|
4210
|
-
if (!
|
|
4211
|
-
|
|
4240
|
+
if (!Z(de)) {
|
|
4241
|
+
W(de, !0);
|
|
4212
4242
|
try {
|
|
4213
|
-
if (
|
|
4214
|
-
|
|
4243
|
+
if (W(M, Z(E).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
|
|
4244
|
+
W(M, Z(E).t("tools.textToSpeech.inline.initFailed"), !0);
|
|
4215
4245
|
return;
|
|
4216
4246
|
}
|
|
4217
|
-
let e = String(
|
|
4218
|
-
(e === "playing" || e === "paused" || e === "loading") && !
|
|
4247
|
+
let e = String(Z(O).getState?.() || "");
|
|
4248
|
+
(e === "playing" || e === "paused" || e === "loading") && !L() && Z(O).stop(), Ce(), await Ye();
|
|
4219
4249
|
} finally {
|
|
4220
|
-
|
|
4250
|
+
W(de, !1);
|
|
4221
4251
|
}
|
|
4222
4252
|
}
|
|
4223
4253
|
}
|
|
4224
4254
|
}
|
|
4225
4255
|
function Ze() {
|
|
4226
|
-
if (!
|
|
4227
|
-
let e =
|
|
4228
|
-
|
|
4256
|
+
if (!Z(O)) return;
|
|
4257
|
+
let e = ke();
|
|
4258
|
+
Z(O).stop(), we(), Te(Z(E).t("tools.textToSpeech.inline.stopped")), Z(oe) && Z(oe).clearTTS(), qe(), e && queueMicrotask(() => {
|
|
4229
4259
|
Me(!0);
|
|
4230
4260
|
});
|
|
4231
4261
|
}
|
|
4232
4262
|
async function Qe() {
|
|
4233
|
-
if (!(!
|
|
4234
|
-
await
|
|
4263
|
+
if (!(!Z(O) || !Z(A))) try {
|
|
4264
|
+
await Z(O).seekForward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedForward"), !0);
|
|
4235
4265
|
} catch (e) {
|
|
4236
|
-
console.error("[TTS Inline] Seek forward failed:", e),
|
|
4266
|
+
console.error("[TTS Inline] Seek forward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
|
|
4237
4267
|
}
|
|
4238
4268
|
}
|
|
4239
4269
|
async function $e() {
|
|
4240
|
-
if (!(!
|
|
4241
|
-
await
|
|
4270
|
+
if (!(!Z(O) || !Z(A))) try {
|
|
4271
|
+
await Z(O).seekBackward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
|
|
4242
4272
|
} catch (e) {
|
|
4243
|
-
console.error("[TTS Inline] Seek backward failed:", e),
|
|
4273
|
+
console.error("[TTS Inline] Seek backward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
|
|
4244
4274
|
}
|
|
4245
4275
|
}
|
|
4246
4276
|
async function et(e) {
|
|
4247
|
-
let t =
|
|
4277
|
+
let t = Z(O);
|
|
4248
4278
|
if (!t) return;
|
|
4249
|
-
if (
|
|
4250
|
-
|
|
4279
|
+
if (Z(P) === e.rate) {
|
|
4280
|
+
W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
4251
4281
|
return;
|
|
4252
4282
|
}
|
|
4253
|
-
let n =
|
|
4254
|
-
|
|
4283
|
+
let n = Z(le), r = Z(ue);
|
|
4284
|
+
W(le, e.rate, !0), W(ue, Z(ve), !0), W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
4255
4285
|
let i = {
|
|
4256
4286
|
service: t,
|
|
4257
|
-
choicesKey:
|
|
4287
|
+
choicesKey: Z(ve)
|
|
4258
4288
|
};
|
|
4259
|
-
|
|
4289
|
+
ge = i;
|
|
4260
4290
|
try {
|
|
4261
|
-
await
|
|
4291
|
+
await Oe(t, e.rate);
|
|
4262
4292
|
} catch (e) {
|
|
4263
|
-
|
|
4293
|
+
ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), W(le, n, !0), W(ue, r, !0), W(M, Z(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
|
|
4264
4294
|
}
|
|
4265
4295
|
}
|
|
4266
|
-
let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() =>
|
|
4267
|
-
|
|
4268
|
-
let e =
|
|
4269
|
-
if (!e || !n || !
|
|
4296
|
+
let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() => Z(rt) || Z(it)), ot = Pa(ja), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ U(""), lt = /* @__PURE__ */ U(0);
|
|
4297
|
+
un(() => {
|
|
4298
|
+
let e = Z(O), t = Z(ve), n = Z(A) || Z(j);
|
|
4299
|
+
if (!e || !n || !L() || ge?.service === e && ge.choicesKey === t) return;
|
|
4270
4300
|
let r = {
|
|
4271
4301
|
service: e,
|
|
4272
4302
|
choicesKey: t
|
|
4273
4303
|
};
|
|
4274
|
-
|
|
4304
|
+
ge = r;
|
|
4275
4305
|
let i = !1;
|
|
4276
4306
|
return queueMicrotask(() => {
|
|
4277
|
-
if (i ||
|
|
4278
|
-
let t =
|
|
4279
|
-
|
|
4280
|
-
|
|
4307
|
+
if (i || ge !== r) return;
|
|
4308
|
+
let t = Z(P);
|
|
4309
|
+
Oe(e, t).catch((e) => {
|
|
4310
|
+
ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
|
|
4281
4311
|
});
|
|
4282
4312
|
}), () => {
|
|
4283
4313
|
i = !0;
|
|
@@ -4292,7 +4322,7 @@ function no(o, s) {
|
|
|
4292
4322
|
return null;
|
|
4293
4323
|
}
|
|
4294
4324
|
function dt() {
|
|
4295
|
-
let e =
|
|
4325
|
+
let e = Z(w)?.getRootNode();
|
|
4296
4326
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
4297
4327
|
}
|
|
4298
4328
|
function ft(e) {
|
|
@@ -4301,19 +4331,19 @@ function no(o, s) {
|
|
|
4301
4331
|
}
|
|
4302
4332
|
function pt() {
|
|
4303
4333
|
let e = dt();
|
|
4304
|
-
if (!e || !
|
|
4334
|
+
if (!e || !Z(T)) return;
|
|
4305
4335
|
let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
|
|
4306
|
-
if (!
|
|
4307
|
-
let e = ft(
|
|
4308
|
-
e > 0 &&
|
|
4336
|
+
if (!Z(ce)) {
|
|
4337
|
+
let e = ft(Z(T));
|
|
4338
|
+
e > 0 && W(lt, e, !0);
|
|
4309
4339
|
}
|
|
4310
|
-
|
|
4311
|
-
let i =
|
|
4312
|
-
|
|
4340
|
+
W(ce, Z(lt) > 0 && r < Z(lt), !0);
|
|
4341
|
+
let i = Z(T).offsetHeight || t.height, a = Z(ce) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
|
|
4342
|
+
W(ct, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
|
|
4313
4343
|
}
|
|
4314
|
-
|
|
4315
|
-
if (!
|
|
4316
|
-
|
|
4344
|
+
un(() => {
|
|
4345
|
+
if (!Z(it) || !Z(k)) {
|
|
4346
|
+
W(ct, ""), W(ce, !1), W(lt, 0);
|
|
4317
4347
|
return;
|
|
4318
4348
|
}
|
|
4319
4349
|
if (typeof window > "u") return;
|
|
@@ -4324,7 +4354,7 @@ function no(o, s) {
|
|
|
4324
4354
|
};
|
|
4325
4355
|
pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
4326
4356
|
let n = dt(), r = new ResizeObserver(t);
|
|
4327
|
-
n && r.observe(n),
|
|
4357
|
+
n && r.observe(n), Z(T) && r.observe(Z(T));
|
|
4328
4358
|
let i = n ? ut(n, st) : null;
|
|
4329
4359
|
i && r.observe(i);
|
|
4330
4360
|
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
@@ -4332,15 +4362,15 @@ function no(o, s) {
|
|
|
4332
4362
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
4333
4363
|
};
|
|
4334
4364
|
});
|
|
4335
|
-
function
|
|
4336
|
-
if (!
|
|
4337
|
-
let e =
|
|
4365
|
+
function V() {
|
|
4366
|
+
if (!Z(w)) return null;
|
|
4367
|
+
let e = Z(w).getRootNode();
|
|
4338
4368
|
return e instanceof ShadowRoot ? e.host : null;
|
|
4339
4369
|
}
|
|
4340
|
-
|
|
4341
|
-
let e =
|
|
4370
|
+
un(() => {
|
|
4371
|
+
let e = V();
|
|
4342
4372
|
if (!e) return;
|
|
4343
|
-
let t =
|
|
4373
|
+
let t = Z(k) === !0;
|
|
4344
4374
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
4345
4375
|
let n = !1;
|
|
4346
4376
|
return queueMicrotask(() => {
|
|
@@ -4353,133 +4383,133 @@ function no(o, s) {
|
|
|
4353
4383
|
n = !0;
|
|
4354
4384
|
};
|
|
4355
4385
|
});
|
|
4356
|
-
var
|
|
4386
|
+
var mt = {
|
|
4357
4387
|
get catalogId() {
|
|
4358
4388
|
return c();
|
|
4359
4389
|
},
|
|
4360
4390
|
set catalogId(e = "") {
|
|
4361
|
-
c(e),
|
|
4391
|
+
c(e), Ct();
|
|
4362
4392
|
},
|
|
4363
4393
|
get language() {
|
|
4364
4394
|
return l();
|
|
4365
4395
|
},
|
|
4366
4396
|
set language(e = "en-US") {
|
|
4367
|
-
l(e),
|
|
4397
|
+
l(e), Ct();
|
|
4368
4398
|
},
|
|
4369
4399
|
get size() {
|
|
4370
4400
|
return u();
|
|
4371
4401
|
},
|
|
4372
4402
|
set size(e = "md") {
|
|
4373
|
-
u(e),
|
|
4403
|
+
u(e), Ct();
|
|
4374
4404
|
},
|
|
4375
4405
|
get speedOptions() {
|
|
4376
4406
|
return d();
|
|
4377
4407
|
},
|
|
4378
4408
|
set speedOptions(e = void 0) {
|
|
4379
|
-
d(e),
|
|
4409
|
+
d(e), Ct();
|
|
4380
4410
|
},
|
|
4381
4411
|
get showSingleSpeedOption() {
|
|
4382
4412
|
return f();
|
|
4383
4413
|
},
|
|
4384
4414
|
set showSingleSpeedOption(e = !1) {
|
|
4385
|
-
f(e),
|
|
4415
|
+
f(e), Ct();
|
|
4386
4416
|
},
|
|
4387
4417
|
get layoutMode() {
|
|
4388
4418
|
return p();
|
|
4389
4419
|
},
|
|
4390
4420
|
set layoutMode(e = "expanding-row") {
|
|
4391
|
-
p(e),
|
|
4421
|
+
p(e), Ct();
|
|
4392
4422
|
}
|
|
4393
|
-
},
|
|
4394
|
-
var t =
|
|
4423
|
+
}, H = gr(), ht = Yt(H), gt = (e) => {
|
|
4424
|
+
var t = ao();
|
|
4395
4425
|
let n;
|
|
4396
4426
|
{
|
|
4397
4427
|
let e = (e) => {
|
|
4398
|
-
var t =
|
|
4399
|
-
var t =
|
|
4400
|
-
|
|
4401
|
-
"aria-expanded":
|
|
4402
|
-
"aria-controls":
|
|
4403
|
-
"aria-pressed":
|
|
4404
|
-
"aria-busy":
|
|
4405
|
-
})),
|
|
4428
|
+
var t = eo(), n = Jt(t), r = (e) => {
|
|
4429
|
+
var t = Qa();
|
|
4430
|
+
ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), _n(() => ti(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), _n((e) => ti(t, "button-aria-label", e), [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), _n(() => ti(t, "disabled", !Z(O))), Ur(t, (e) => S?.(e)), Ur(t, (e, t) => C?.(e, t), () => ({
|
|
4431
|
+
"aria-expanded": Z(k) ? "true" : "false",
|
|
4432
|
+
"aria-controls": Z(k) ? ye : null,
|
|
4433
|
+
"aria-pressed": Z(k) ? "true" : "false",
|
|
4434
|
+
"aria-busy": Z(he) ? "true" : null
|
|
4435
|
+
})), _n(() => Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), _r(e, t);
|
|
4406
4436
|
}, i = (e) => {
|
|
4407
|
-
var t =
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
}, [() =>
|
|
4437
|
+
var t = $a(), n = Xt(t);
|
|
4438
|
+
Ur(t, (e) => ne?.(e)), _n((e) => {
|
|
4439
|
+
Yr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(tt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(k) ? "true" : "false"), Q(t, "aria-controls", Z(k) ? ye : void 0), Q(t, "aria-pressed", Z(k) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", Z(he) ? "true" : void 0), t.disabled = !Z(O), Yr(n, 1, `fa-solid ${Z(A) && !Z(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
|
|
4440
|
+
}, [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), or("click", t, Xe), _r(e, t);
|
|
4411
4441
|
};
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
}),
|
|
4442
|
+
Mr(n, (e) => {
|
|
4443
|
+
Z(ie) ? e(r) : e(i, -1);
|
|
4444
|
+
}), be(t), _r(e, t);
|
|
4415
4445
|
}, n = (e) => {
|
|
4416
|
-
var t = gr(), n =
|
|
4417
|
-
var t =
|
|
4446
|
+
var t = gr(), n = Yt(t), r = (e) => {
|
|
4447
|
+
var t = ro();
|
|
4418
4448
|
let n;
|
|
4419
|
-
var r =
|
|
4420
|
-
var t =
|
|
4449
|
+
var r = Jt(t), i = (e) => {
|
|
4450
|
+
var t = no();
|
|
4421
4451
|
let n;
|
|
4422
|
-
|
|
4423
|
-
var n =
|
|
4424
|
-
|
|
4425
|
-
Q(n, "data-pie-tts-speed-rate",
|
|
4426
|
-
}),
|
|
4427
|
-
}),
|
|
4428
|
-
n =
|
|
4429
|
-
}, [() =>
|
|
4452
|
+
Ir(t, 21, () => Z(N), (e) => e.rate, (e, t) => {
|
|
4453
|
+
var n = to(), r = Jt(n), i = Xt(r, !0);
|
|
4454
|
+
be(n), _n(() => {
|
|
4455
|
+
Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(P) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(P) === Z(t).rate), n.disabled = !Z(O), Q(r, "data-label", Z(t).label), wr(i, Z(t).label);
|
|
4456
|
+
}), or("click", n, () => et(Z(t))), or("keydown", n, (e) => Ue(Fe, e)), _r(e, n);
|
|
4457
|
+
}), be(t), _n((e) => {
|
|
4458
|
+
n = Yr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(ce) }), Q(t, "aria-label", e);
|
|
4459
|
+
}, [() => Z(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
|
|
4430
4460
|
};
|
|
4431
|
-
|
|
4432
|
-
|
|
4461
|
+
Mr(r, (e) => {
|
|
4462
|
+
Z(N).length > 0 && e(i);
|
|
4433
4463
|
});
|
|
4434
|
-
var a =
|
|
4435
|
-
|
|
4436
|
-
Q(t, "id",
|
|
4437
|
-
"pie-tool-tts-inline__panel--floating":
|
|
4438
|
-
"pie-tool-tts-inline__panel--row":
|
|
4439
|
-
"pie-tool-tts-inline__panel--left-aligned-inline":
|
|
4440
|
-
"pie-tool-tts-inline__panel--compact":
|
|
4441
|
-
}),
|
|
4464
|
+
var a = Zt(r, 2), o = Zt(a, 2), s = Zt(o, 2);
|
|
4465
|
+
be(t), oi(t, (e) => W(T, e), () => Z(T)), _n((e, r, i, c) => {
|
|
4466
|
+
Q(t, "id", ye), n = Yr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
4467
|
+
"pie-tool-tts-inline__panel--floating": Z(rt),
|
|
4468
|
+
"pie-tool-tts-inline__panel--row": Z(nt),
|
|
4469
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Z(it),
|
|
4470
|
+
"pie-tool-tts-inline__panel--compact": Z(it) && Z(ce)
|
|
4471
|
+
}), Zr(t, Z(it) ? Z(ct) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(O) || !Z(A), Q(o, "aria-label", i), o.disabled = !Z(O) || !Z(A), Q(s, "aria-label", c), s.disabled = !Z(O);
|
|
4442
4472
|
}, [
|
|
4443
|
-
() =>
|
|
4444
|
-
() =>
|
|
4445
|
-
() =>
|
|
4446
|
-
() =>
|
|
4447
|
-
]),
|
|
4473
|
+
() => Z(E).t("tools.textToSpeech.inline.controlsA11y"),
|
|
4474
|
+
() => Z(E).t("tools.textToSpeech.inline.rewindA11y"),
|
|
4475
|
+
() => Z(E).t("tools.textToSpeech.inline.fastForwardA11y"),
|
|
4476
|
+
() => Z(E).t("tools.textToSpeech.inline.stopA11y")
|
|
4477
|
+
]), or("click", a, $e), or("keydown", a, (e) => Ue(Ie, e)), or("click", o, Qe), or("keydown", o, (e) => Ue(Ie, e)), or("click", s, Ze), or("keydown", s, (e) => Ue(Ie, e)), _r(e, t);
|
|
4448
4478
|
};
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
}),
|
|
4479
|
+
Mr(n, (e) => {
|
|
4480
|
+
Z(k) && e(r);
|
|
4481
|
+
}), _r(e, t);
|
|
4452
4482
|
};
|
|
4453
|
-
var r =
|
|
4454
|
-
var r =
|
|
4483
|
+
var r = Jt(t), i = (t) => {
|
|
4484
|
+
var r = io(), i = Yt(r);
|
|
4455
4485
|
n(i);
|
|
4456
|
-
var a =
|
|
4457
|
-
e(a),
|
|
4486
|
+
var a = Zt(i, 2);
|
|
4487
|
+
e(a), _r(t, r);
|
|
4458
4488
|
}, a = (t) => {
|
|
4459
|
-
var r =
|
|
4489
|
+
var r = io(), i = Yt(r);
|
|
4460
4490
|
e(i);
|
|
4461
|
-
var a =
|
|
4462
|
-
n(a),
|
|
4491
|
+
var a = Zt(i, 2);
|
|
4492
|
+
n(a), _r(t, r);
|
|
4463
4493
|
};
|
|
4464
|
-
|
|
4465
|
-
|
|
4494
|
+
Mr(r, (e) => {
|
|
4495
|
+
Z(at) ? e(i) : e(a, -1);
|
|
4466
4496
|
});
|
|
4467
|
-
var o =
|
|
4468
|
-
|
|
4497
|
+
var o = Xt(Zt(r, 2), !0);
|
|
4498
|
+
be(t), oi(t, (e) => W(w, e), () => Z(w)), _n(() => wr(o, Z(M)));
|
|
4469
4499
|
}
|
|
4470
|
-
|
|
4471
|
-
n =
|
|
4472
|
-
"pie-tool-tts-inline--controls-row":
|
|
4473
|
-
"pie-tool-tts-inline--floating":
|
|
4474
|
-
"pie-tool-tts-inline--left-aligned":
|
|
4475
|
-
}),
|
|
4476
|
-
}),
|
|
4500
|
+
_n(() => {
|
|
4501
|
+
n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
4502
|
+
"pie-tool-tts-inline--controls-row": Z(nt),
|
|
4503
|
+
"pie-tool-tts-inline--floating": Z(rt),
|
|
4504
|
+
"pie-tool-tts-inline--left-aligned": Z(it)
|
|
4505
|
+
}), Zr(t, `--pie-tts-zoom-comp: ${ot.current};`);
|
|
4506
|
+
}), _r(e, t);
|
|
4477
4507
|
};
|
|
4478
|
-
return
|
|
4479
|
-
m && e(
|
|
4480
|
-
}),
|
|
4508
|
+
return Mr(ht, (e) => {
|
|
4509
|
+
m && e(gt);
|
|
4510
|
+
}), _r(o, H), Be(mt);
|
|
4481
4511
|
}
|
|
4482
|
-
|
|
4512
|
+
sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(so, {
|
|
4483
4513
|
catalogId: {
|
|
4484
4514
|
attribute: "catalog-id",
|
|
4485
4515
|
type: "String"
|
|
@@ -4506,4 +4536,4 @@ cr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(no, {
|
|
|
4506
4536
|
}
|
|
4507
4537
|
}, [], [], { mode: "open" }));
|
|
4508
4538
|
//#endregion
|
|
4509
|
-
export {
|
|
4539
|
+
export { so as default };
|