@pie-qti/player-elements 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar-SA-BDmOol_3.js +854 -0
- package/dist/ar-SA-BDmOol_3.js.map +1 -0
- package/dist/{define-CqE08oOW.js → define-D7_K0JFy.js} +2131 -1146
- package/dist/define-D7_K0JFy.js.map +1 -0
- package/dist/{dist-CQEJemjs.js → dist-BRTWr852.js} +2385 -1637
- package/dist/dist-BRTWr852.js.map +1 -0
- package/dist/{dist-DQ_jFQFX.js → dist-BaQdJU08.js} +192 -121
- package/dist/dist-BaQdJU08.js.map +1 -0
- package/dist/{dist-B1Rc9Jhz.js → dist-DwvskOs6.js} +2 -2
- package/dist/{dist-B1Rc9Jhz.js.map → dist-DwvskOs6.js.map} +1 -1
- package/dist/{dist-CsEP48m1.js → dist-ffJZTPTU.js} +859 -770
- package/dist/dist-ffJZTPTU.js.map +1 -0
- package/dist/{element-DU-n15ch.js → element-DSCNeDLu.js} +2 -2
- package/dist/{element-DU-n15ch.js.map → element-DSCNeDLu.js.map} +1 -1
- package/dist/{element-class-DBV-1lkb-BeszDwN_.js → element-class-DQy2cIPM-CldZrSRR.js} +3379 -3154
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +1 -0
- package/dist/elements/BaseSvelteMountElement.d.ts +1 -0
- package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -0
- package/dist/elements.js +3 -3
- package/dist/es-ES-C98YtDtb.js +802 -0
- package/dist/es-ES-C98YtDtb.js.map +1 -0
- package/dist/fr-FR-CrmmiRPf.js +802 -0
- package/dist/fr-FR-CrmmiRPf.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BW9Y_n5x.js +1990 -0
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +1 -0
- package/dist/{types-BFOGFD4R.js → language-tags-DVlRltrl.js} +24 -3
- package/dist/language-tags-DVlRltrl.js.map +1 -0
- package/dist/nl-NL-BeQBX6yq.js +505 -0
- package/dist/nl-NL-BeQBX6yq.js.map +1 -0
- package/dist/nl-NL-CAR7pgVz.js +802 -0
- package/dist/nl-NL-CAR7pgVz.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-BGOTMhdG.js → pie-assessment-toolkit-element-CpiB3twr.js} +1382 -1109
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +1 -0
- package/dist/{pie-tool-calculator-CkQb5qxg.js → pie-tool-calculator-BiWMTJe7.js} +1159 -410
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +1 -0
- package/dist/{root-Dqg3cyBt.js → provider-Y5PhmTAu.js} +4 -44
- package/dist/provider-Y5PhmTAu.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register.js +6596 -6737
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-DhQQhD2k.js → resolveItems-D8DJkv-4.js} +2 -2
- package/dist/{resolveItems-DhQQhD2k.js.map → resolveItems-D8DJkv-4.js.map} +1 -1
- package/dist/ro-RO-DTZbhL0e.js +802 -0
- package/dist/ro-RO-DTZbhL0e.js.map +1 -0
- package/dist/root-DSkIM1v3.js +47 -0
- package/dist/root-DSkIM1v3.js.map +1 -0
- package/dist/th-TH-aqlT_oK3.js +802 -0
- package/dist/th-TH-aqlT_oK3.js.map +1 -0
- package/dist/{tool-tts-inline-CA3VjWU4.js → tool-tts-inline-B71NTBbb.js} +1706 -941
- package/dist/tool-tts-inline-B71NTBbb.js.map +1 -0
- package/dist/zh-CN-DCqaRRhU.js +802 -0
- package/dist/zh-CN-DCqaRRhU.js.map +1 -0
- package/package.json +7 -7
- package/dist/define-CqE08oOW.js.map +0 -1
- package/dist/dist-CQEJemjs.js.map +0 -1
- package/dist/dist-CsEP48m1.js.map +0 -1
- package/dist/dist-DQ_jFQFX.js.map +0 -1
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +0 -1
- package/dist/item-toolbar-element-iE73NEkH.js +0 -1922
- package/dist/item-toolbar-element-iE73NEkH.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +0 -1
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +0 -1
- package/dist/root-Dqg3cyBt.js.map +0 -1
- package/dist/tool-tts-inline-CA3VjWU4.js.map +0 -1
- package/dist/types-BFOGFD4R.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as e, a as t, f as n, g as r, h as i, v as a } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.bun/@pie-players+pie-tool-tts-inline@0.3.
|
|
1
|
+
import { _ as e, a as t, f as n, g as r, h as i, v as a } from "./dist-ffJZTPTU.js";
|
|
2
|
+
//#region ../../node_modules/.bun/@pie-players+pie-tool-tts-inline@0.3.68+0f70b067cf29f19a/node_modules/@pie-players/pie-tool-tts-inline/dist/tool-tts-inline.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
|
-
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,
|
|
5
|
-
function
|
|
4
|
+
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, b = Object.isExtensible, x = () => {};
|
|
5
|
+
function S(e) {
|
|
6
6
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ee() {
|
|
9
9
|
var e, t;
|
|
10
10
|
return {
|
|
11
11
|
promise: new Promise((n, r) => {
|
|
@@ -15,81 +15,81 @@ function te() {
|
|
|
15
15
|
reject: t
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var C = 1024, w = 2048, te = 4096, T = 8192, E = 16384, ne = 32768, re = 1 << 25, D = 65536, O = 1 << 19, ie = 1 << 20, k = 1 << 25, ae = 65536, oe = 1 << 21, A = 1 << 22, se = 1 << 23, j = Symbol("$state"), M = Symbol("legacy props"), N = Symbol(""), ce = Symbol("attributes"), le = Symbol("class"), ue = Symbol("style"), de = Symbol("text"), fe = new class extends Error {
|
|
19
19
|
name = "StaleReactionError";
|
|
20
20
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
21
|
-
}(),
|
|
22
|
-
function
|
|
21
|
+
}(), pe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
22
|
+
function me() {
|
|
23
23
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function he(e, t, n) {
|
|
26
26
|
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ge(e) {
|
|
29
29
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function _e() {
|
|
32
32
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ve(e) {
|
|
35
35
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ye() {
|
|
38
38
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function be() {
|
|
41
41
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function xe(e) {
|
|
44
44
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Se() {
|
|
47
47
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Ce() {
|
|
50
50
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function we() {
|
|
53
53
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Te() {
|
|
56
56
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ee() {
|
|
59
59
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function De(e) {
|
|
62
62
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Oe() {
|
|
65
65
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function N(e) {
|
|
69
|
-
M = e;
|
|
70
|
-
}
|
|
71
|
-
var P;
|
|
67
|
+
var P = !1;
|
|
72
68
|
function F(e) {
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
P = e;
|
|
70
|
+
}
|
|
71
|
+
var I;
|
|
72
|
+
function L(e) {
|
|
73
|
+
if (e === null) throw De(), o;
|
|
74
|
+
return I = e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function ke() {
|
|
77
|
+
return L(/* @__PURE__ */ Qt(I));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
if (/* @__PURE__ */ Qt(
|
|
82
|
-
|
|
79
|
+
function Ae(e) {
|
|
80
|
+
if (P) {
|
|
81
|
+
if (/* @__PURE__ */ Qt(I) !== null) throw De(), o;
|
|
82
|
+
I = e;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
for (var t = e, n =
|
|
88
|
-
|
|
85
|
+
function je(e = 1) {
|
|
86
|
+
if (P) {
|
|
87
|
+
for (var t = e, n = I; t--;) n = /* @__PURE__ */ Qt(n);
|
|
88
|
+
I = n;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
for (var t = 0, n =
|
|
91
|
+
function Me(e = !0) {
|
|
92
|
+
for (var t = 0, n = I;;) {
|
|
93
93
|
if (n.nodeType === 8) {
|
|
94
94
|
var r = n.data;
|
|
95
95
|
if (r === "]") {
|
|
@@ -101,70 +101,70 @@ function Pe(e = !0) {
|
|
|
101
101
|
e && n.remove(), n = i;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!e || e.nodeType !== 8) throw
|
|
104
|
+
function Ne(e) {
|
|
105
|
+
if (!e || e.nodeType !== 8) throw De(), o;
|
|
106
106
|
return e.data;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Pe(e) {
|
|
109
109
|
return e === this.v;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Fe(e, t) {
|
|
112
112
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return !
|
|
114
|
+
function Ie(e) {
|
|
115
|
+
return !Fe(e, this.v);
|
|
116
116
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
119
|
-
|
|
117
|
+
var R = null;
|
|
118
|
+
function Le(e) {
|
|
119
|
+
R = e;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
p:
|
|
121
|
+
function Re(e, t = !1, n) {
|
|
122
|
+
R = {
|
|
123
|
+
p: R,
|
|
124
124
|
i: !1,
|
|
125
125
|
c: null,
|
|
126
126
|
e: null,
|
|
127
127
|
s: e,
|
|
128
128
|
x: null,
|
|
129
|
-
r:
|
|
129
|
+
r: q,
|
|
130
130
|
l: null
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
var t =
|
|
133
|
+
function ze(e) {
|
|
134
|
+
var t = R, n = t.e;
|
|
135
135
|
if (n !== null) {
|
|
136
136
|
t.e = null;
|
|
137
137
|
for (var r of n) pn(r);
|
|
138
138
|
}
|
|
139
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
139
|
+
return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Be() {
|
|
142
142
|
return !0;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
var e =
|
|
147
|
-
|
|
144
|
+
var Ve = [];
|
|
145
|
+
function He() {
|
|
146
|
+
var e = Ve;
|
|
147
|
+
Ve = [], S(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
151
|
-
var t =
|
|
149
|
+
function Ue(e) {
|
|
150
|
+
if (Ve.length === 0 && !xt) {
|
|
151
|
+
var t = Ve;
|
|
152
152
|
queueMicrotask(() => {
|
|
153
|
-
t ===
|
|
153
|
+
t === Ve && He();
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
Ve.push(e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
for (;
|
|
158
|
+
function We() {
|
|
159
|
+
for (; Ve.length > 0;) He();
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
var t =
|
|
163
|
-
if (t === null) return
|
|
161
|
+
function Ge(e) {
|
|
162
|
+
var t = q;
|
|
163
|
+
if (t === null) return G.f |= se, e;
|
|
164
164
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
165
|
-
|
|
165
|
+
Ke(e, t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Ke(e, t) {
|
|
168
168
|
if (!(t !== null && t.f & 16384)) {
|
|
169
169
|
for (; t !== null;) {
|
|
170
170
|
if (t.f & 128) {
|
|
@@ -181,57 +181,57 @@ function L(e, t) {
|
|
|
181
181
|
throw e;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
e.f = e.f &
|
|
184
|
+
var qe = ~(w | te | C);
|
|
185
|
+
function z(e, t) {
|
|
186
|
+
e.f = e.f & qe | t;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.f & 512 || e.deps === null ?
|
|
188
|
+
function Je(e) {
|
|
189
|
+
e.f & 512 || e.deps === null ? z(e, C) : z(e, te);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
191
|
+
function Ye(e) {
|
|
192
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Ye(t.deps));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
194
|
+
function Xe(e, t, n) {
|
|
195
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ye(e.deps), z(e, C);
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
199
|
-
var t =
|
|
197
|
+
var Ze = !1;
|
|
198
|
+
function Qe(e) {
|
|
199
|
+
var t = Ze;
|
|
200
200
|
try {
|
|
201
|
-
return
|
|
201
|
+
return Ze = !1, [e(), Ze];
|
|
202
202
|
} finally {
|
|
203
|
-
|
|
203
|
+
Ze = t;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
var t =
|
|
208
|
-
|
|
206
|
+
function $e(e) {
|
|
207
|
+
var t = G, n = q;
|
|
208
|
+
K(null), Ln(null);
|
|
209
209
|
try {
|
|
210
210
|
return e();
|
|
211
211
|
} finally {
|
|
212
|
-
|
|
212
|
+
K(t), Ln(n);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
let t = 0, n =
|
|
215
|
+
function et(e) {
|
|
216
|
+
let t = 0, n = Rt(0), r;
|
|
217
217
|
return () => {
|
|
218
|
-
un() && (
|
|
219
|
-
|
|
220
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
218
|
+
un() && (X(n), vn(() => (t === 0 && (r = tr(() => e(() => Ht(n)))), t += 1, () => {
|
|
219
|
+
Ue(() => {
|
|
220
|
+
--t, t === 0 && (r?.(), r = void 0, Ht(n));
|
|
221
221
|
});
|
|
222
222
|
})));
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
new
|
|
225
|
+
var tt = D | O;
|
|
226
|
+
function nt(e, t, n, r) {
|
|
227
|
+
new rt(e, t, n, r);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var rt = class {
|
|
230
230
|
parent;
|
|
231
231
|
is_pending = !1;
|
|
232
232
|
transform_error;
|
|
233
233
|
#e;
|
|
234
|
-
#t =
|
|
234
|
+
#t = P ? I : null;
|
|
235
235
|
#n;
|
|
236
236
|
#r;
|
|
237
237
|
#i;
|
|
@@ -245,35 +245,35 @@ var it = class {
|
|
|
245
245
|
#f = /* @__PURE__ */ new Set();
|
|
246
246
|
#p = /* @__PURE__ */ new Set();
|
|
247
247
|
#m = null;
|
|
248
|
-
#h =
|
|
248
|
+
#h = et(() => (this.#m = Rt(this.#l), () => {
|
|
249
249
|
this.#m = null;
|
|
250
250
|
}));
|
|
251
251
|
constructor(e, t, n, r) {
|
|
252
252
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
253
|
-
var t =
|
|
253
|
+
var t = q;
|
|
254
254
|
t.b = this, t.f |= 128, n(e);
|
|
255
|
-
}, this.parent =
|
|
256
|
-
if (
|
|
255
|
+
}, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
|
|
256
|
+
if (P) {
|
|
257
257
|
let e = this.#t;
|
|
258
|
-
|
|
258
|
+
ke();
|
|
259
259
|
let t = e.data === "[!";
|
|
260
260
|
if (e.data.startsWith("[?")) {
|
|
261
261
|
let t = JSON.parse(e.data.slice(2));
|
|
262
262
|
this.#_(t);
|
|
263
263
|
} else t ? this.#y() : this.#g();
|
|
264
264
|
} else this.#b();
|
|
265
|
-
},
|
|
265
|
+
}, tt), P && (this.#e = I);
|
|
266
266
|
}
|
|
267
267
|
#g() {
|
|
268
268
|
try {
|
|
269
|
-
this.#a =
|
|
269
|
+
this.#a = xn(() => this.#r(this.#e));
|
|
270
270
|
} catch (e) {
|
|
271
271
|
this.error(e);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
#_(e) {
|
|
275
275
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
276
|
-
|
|
276
|
+
Ue(r), t && (this.#s = xn(() => {
|
|
277
277
|
t(this.#e, () => e, () => n);
|
|
278
278
|
}));
|
|
279
279
|
}
|
|
@@ -281,10 +281,10 @@ var it = class {
|
|
|
281
281
|
var t = !1, n = !1;
|
|
282
282
|
let r = () => {
|
|
283
283
|
if (t) {
|
|
284
|
-
|
|
284
|
+
Oe();
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
|
-
t = !0, n &&
|
|
287
|
+
t = !0, n && Te(), this.#s !== null && Dn(this.#s, () => {
|
|
288
288
|
this.#s = null;
|
|
289
289
|
}), this.#S(() => {
|
|
290
290
|
this.#b();
|
|
@@ -296,30 +296,30 @@ var it = class {
|
|
|
296
296
|
try {
|
|
297
297
|
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
298
298
|
} catch (e) {
|
|
299
|
-
|
|
299
|
+
Ke(e, this.#i && this.#i.parent);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
#y() {
|
|
305
305
|
let e = this.#n.pending;
|
|
306
|
-
e && (this.is_pending = !0, this.#o =
|
|
307
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
308
|
-
e.append(t), this.#a = this.#S(() =>
|
|
306
|
+
e && (this.is_pending = !0, this.#o = xn(() => e(this.#e)), Ue(() => {
|
|
307
|
+
var e = this.#c = document.createDocumentFragment(), t = Xt();
|
|
308
|
+
e.append(t), this.#a = this.#S(() => xn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
|
|
309
309
|
this.#o = null;
|
|
310
|
-
}), this.#x(
|
|
310
|
+
}), this.#x(V));
|
|
311
311
|
}));
|
|
312
312
|
}
|
|
313
313
|
#b() {
|
|
314
314
|
try {
|
|
315
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
315
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = xn(() => {
|
|
316
316
|
this.#r(this.#e);
|
|
317
317
|
}), this.#u > 0) {
|
|
318
318
|
var e = this.#c = document.createDocumentFragment();
|
|
319
|
-
|
|
319
|
+
jn(this.#a, e);
|
|
320
320
|
let t = this.#n.pending;
|
|
321
|
-
this.#o =
|
|
322
|
-
} else this.#x(
|
|
321
|
+
this.#o = xn(() => t(this.#e));
|
|
322
|
+
} else this.#x(V);
|
|
323
323
|
} catch (e) {
|
|
324
324
|
this.error(e);
|
|
325
325
|
}
|
|
@@ -328,7 +328,7 @@ var it = class {
|
|
|
328
328
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
329
329
|
}
|
|
330
330
|
defer_effect(e) {
|
|
331
|
-
|
|
331
|
+
Xe(e, this.#f, this.#p);
|
|
332
332
|
}
|
|
333
333
|
is_rendered() {
|
|
334
334
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -337,14 +337,14 @@ var it = class {
|
|
|
337
337
|
return !!this.#n.pending;
|
|
338
338
|
}
|
|
339
339
|
#S(e) {
|
|
340
|
-
var t =
|
|
341
|
-
|
|
340
|
+
var t = q, n = G, r = R;
|
|
341
|
+
Ln(this.#i), K(this.#i), Le(this.#i.ctx);
|
|
342
342
|
try {
|
|
343
|
-
return
|
|
343
|
+
return Dt.ensure(), e();
|
|
344
344
|
} catch (e) {
|
|
345
|
-
return
|
|
345
|
+
return Ge(e), null;
|
|
346
346
|
} finally {
|
|
347
|
-
|
|
347
|
+
Ln(t), K(n), Le(r);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
#C(e, t) {
|
|
@@ -352,144 +352,144 @@ var it = class {
|
|
|
352
352
|
this.parent && this.parent.#C(e, t);
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
355
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
|
|
356
356
|
this.#o = null;
|
|
357
357
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
358
358
|
}
|
|
359
359
|
update_pending_count(e, t) {
|
|
360
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
361
|
-
this.#d = !1, this.#m &&
|
|
360
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ue(() => {
|
|
361
|
+
this.#d = !1, this.#m && Bt(this.#m, this.#l);
|
|
362
362
|
}));
|
|
363
363
|
}
|
|
364
364
|
get_effect_pending() {
|
|
365
|
-
return this.#h(),
|
|
365
|
+
return this.#h(), X(this.#m);
|
|
366
366
|
}
|
|
367
367
|
error(e) {
|
|
368
368
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
369
|
-
|
|
369
|
+
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(() => {
|
|
370
370
|
this.#w(e);
|
|
371
371
|
})) : this.#w(e);
|
|
372
372
|
}
|
|
373
373
|
#w(e) {
|
|
374
|
-
this.#a &&= (
|
|
374
|
+
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()));
|
|
375
375
|
let t = this.#n.failed, n = (e) => {
|
|
376
376
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
377
377
|
r(), t && (this.#s = this.#S(() => {
|
|
378
378
|
try {
|
|
379
|
-
return
|
|
380
|
-
var r =
|
|
379
|
+
return xn(() => {
|
|
380
|
+
var r = q;
|
|
381
381
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
382
382
|
});
|
|
383
383
|
} catch (e) {
|
|
384
|
-
return
|
|
384
|
+
return Ke(e, this.#i.parent), null;
|
|
385
385
|
}
|
|
386
386
|
}));
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
Ue(() => {
|
|
389
389
|
var t;
|
|
390
390
|
try {
|
|
391
391
|
t = this.transform_error(e);
|
|
392
392
|
} catch (e) {
|
|
393
|
-
|
|
393
|
+
Ke(e, this.#i && this.#i.parent);
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) =>
|
|
396
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Ke(e, this.#i && this.#i.parent)) : n(t);
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
-
function
|
|
401
|
-
let i =
|
|
400
|
+
function it(e, t, n, r) {
|
|
401
|
+
let i = Be() ? ct : dt;
|
|
402
402
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
403
403
|
if (n.length === 0 && a.length === 0) {
|
|
404
404
|
r(o);
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
var s =
|
|
407
|
+
var s = q, c = at(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
408
408
|
function u(e) {
|
|
409
409
|
if (!(s.f & 16384)) {
|
|
410
410
|
c();
|
|
411
411
|
try {
|
|
412
412
|
r([...o, ...e]);
|
|
413
413
|
} catch (e) {
|
|
414
|
-
|
|
414
|
+
Ke(e, s);
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
ot();
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var d =
|
|
419
|
+
var d = st();
|
|
420
420
|
if (n.length === 0) {
|
|
421
421
|
l.then(() => u([])).finally(d);
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
function f() {
|
|
425
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
425
|
+
Promise.all(n.map((e) => /* @__PURE__ */ ut(e))).then(u).catch((e) => Ke(e, s)).finally(d);
|
|
426
426
|
}
|
|
427
427
|
l ? l.then(() => {
|
|
428
|
-
c(), f(),
|
|
428
|
+
c(), f(), ot();
|
|
429
429
|
}) : f();
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
var e =
|
|
431
|
+
function at() {
|
|
432
|
+
var e = q, t = G, n = R, r = V;
|
|
433
433
|
return function(i = !0) {
|
|
434
|
-
|
|
434
|
+
Ln(e), K(t), Le(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
437
|
+
function ot(e = !0) {
|
|
438
|
+
Ln(null), K(null), Le(null), e && V?.deactivate();
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
var e =
|
|
440
|
+
function st() {
|
|
441
|
+
var e = q, t = e.b, n = V, r = !!t?.is_rendered();
|
|
442
442
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
443
443
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
446
|
/*#__NO_SIDE_EFFECTS__*/
|
|
447
|
-
function
|
|
448
|
-
var t = 2 |
|
|
449
|
-
return
|
|
450
|
-
ctx:
|
|
447
|
+
function ct(e) {
|
|
448
|
+
var t = 2 | w;
|
|
449
|
+
return q !== null && (q.f |= O), {
|
|
450
|
+
ctx: R,
|
|
451
451
|
deps: null,
|
|
452
452
|
effects: null,
|
|
453
|
-
equals:
|
|
453
|
+
equals: Pe,
|
|
454
454
|
f: t,
|
|
455
455
|
fn: e,
|
|
456
456
|
reactions: null,
|
|
457
457
|
rv: 0,
|
|
458
458
|
v: s,
|
|
459
459
|
wv: 0,
|
|
460
|
-
parent:
|
|
460
|
+
parent: q,
|
|
461
461
|
ac: null
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
-
var
|
|
464
|
+
var lt = Symbol("obsolete");
|
|
465
465
|
/*#__NO_SIDE_EFFECTS__*/
|
|
466
|
-
function
|
|
467
|
-
let r =
|
|
468
|
-
r === null &&
|
|
469
|
-
var i = void 0, a =
|
|
466
|
+
function ut(e, t, n) {
|
|
467
|
+
let r = q;
|
|
468
|
+
r === null && me();
|
|
469
|
+
var i = void 0, a = Rt(s), o = !G, c = /* @__PURE__ */ new Set();
|
|
470
470
|
return _n(() => {
|
|
471
|
-
var t =
|
|
471
|
+
var t = q, n = ee();
|
|
472
472
|
i = n.promise;
|
|
473
473
|
try {
|
|
474
474
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
475
|
-
e !==
|
|
476
|
-
}).finally(
|
|
475
|
+
e !== fe && n.reject(e);
|
|
476
|
+
}).finally(ot);
|
|
477
477
|
} catch (e) {
|
|
478
|
-
n.reject(e),
|
|
478
|
+
n.reject(e), ot();
|
|
479
479
|
}
|
|
480
|
-
var s =
|
|
480
|
+
var s = V;
|
|
481
481
|
if (o) {
|
|
482
|
-
if (t.f & 32768) var l =
|
|
483
|
-
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(
|
|
484
|
-
else for (let e of c.values()) e.reject(
|
|
482
|
+
if (t.f & 32768) var l = st();
|
|
483
|
+
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(lt);
|
|
484
|
+
else for (let e of c.values()) e.reject(lt);
|
|
485
485
|
c.add(n), s.async_deriveds.set(t, n);
|
|
486
486
|
}
|
|
487
487
|
let u = (e, t = void 0) => {
|
|
488
|
-
l?.(), c.delete(n), t !==
|
|
488
|
+
l?.(), c.delete(n), t !== lt && (s.activate(), t ? (a.f |= se, Bt(a, t)) : (a.f & 8388608 && (a.f ^= se), Bt(a, e)), s.deactivate());
|
|
489
489
|
};
|
|
490
490
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
491
491
|
}), dn(() => {
|
|
492
|
-
for (let e of c) e.reject(
|
|
492
|
+
for (let e of c) e.reject(lt);
|
|
493
493
|
}), new Promise((e) => {
|
|
494
494
|
function t(n) {
|
|
495
495
|
function r() {
|
|
@@ -501,51 +501,51 @@ function dt(e, t, n) {
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
/*#__NO_SIDE_EFFECTS__*/
|
|
504
|
-
function
|
|
505
|
-
let t = /* @__PURE__ */
|
|
506
|
-
return
|
|
504
|
+
function B(e) {
|
|
505
|
+
let t = /* @__PURE__ */ ct(e);
|
|
506
|
+
return zn(t), t;
|
|
507
507
|
}
|
|
508
508
|
/*#__NO_SIDE_EFFECTS__*/
|
|
509
|
-
function
|
|
510
|
-
let t = /* @__PURE__ */
|
|
511
|
-
return t.equals =
|
|
509
|
+
function dt(e) {
|
|
510
|
+
let t = /* @__PURE__ */ ct(e);
|
|
511
|
+
return t.equals = Ie, t;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function ft(e) {
|
|
514
514
|
var t = e.effects;
|
|
515
515
|
if (t !== null) {
|
|
516
516
|
e.effects = null;
|
|
517
|
-
for (var n = 0; n < t.length; n += 1)
|
|
517
|
+
for (var n = 0; n < t.length; n += 1) W(t[n]);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
var t, n =
|
|
522
|
-
if (!
|
|
523
|
-
|
|
520
|
+
function pt(e) {
|
|
521
|
+
var t, n = q, r = e.parent;
|
|
522
|
+
if (!Pn && r !== null && e.v !== s && r.f & 24576) return Ee(), e.v;
|
|
523
|
+
Ln(r);
|
|
524
524
|
try {
|
|
525
|
-
e.f &= ~
|
|
525
|
+
e.f &= ~ae, ft(e), t = Yn(e);
|
|
526
526
|
} finally {
|
|
527
|
-
|
|
527
|
+
Ln(n);
|
|
528
528
|
}
|
|
529
529
|
return t;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
var t =
|
|
533
|
-
if (!e.equals(t) && (e.wv =
|
|
534
|
-
|
|
531
|
+
function mt(e) {
|
|
532
|
+
var t = pt(e);
|
|
533
|
+
if (!e.equals(t) && (e.wv = Kn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), vt?.capture(e, t, !0)), e.deps === null))) {
|
|
534
|
+
z(e, C);
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
Pn || (yt === null ? Je(e) : (un() || V?.is_fork) && yt.set(e, t));
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
541
|
-
t.ac.abort(
|
|
542
|
-
}), t.fn !== null && (t.teardown =
|
|
539
|
+
function ht(e) {
|
|
540
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $e(() => {
|
|
541
|
+
t.ac.abort(fe), t.ac = null;
|
|
542
|
+
}), t.fn !== null && (t.teardown = x), Zn(t, 0), Cn(t));
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
544
|
+
function gt(e) {
|
|
545
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Qn(t);
|
|
546
546
|
}
|
|
547
|
-
var
|
|
548
|
-
id =
|
|
547
|
+
var _t = null, V = null, vt = null, yt = null, bt = null, xt = !1, St = !1, Ct = null, wt = null, Tt = 0, Et = 1, Dt = class e {
|
|
548
|
+
id = Et++;
|
|
549
549
|
#e = !1;
|
|
550
550
|
linked = !0;
|
|
551
551
|
#t = null;
|
|
@@ -567,7 +567,7 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
567
567
|
is_fork = !1;
|
|
568
568
|
#m = !1;
|
|
569
569
|
constructor() {
|
|
570
|
-
|
|
570
|
+
_t === null ? _t = this : (_t.#n = this, this.#t = _t), _t = this;
|
|
571
571
|
}
|
|
572
572
|
#h() {
|
|
573
573
|
if (this.is_fork) return !0;
|
|
@@ -593,31 +593,31 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
593
593
|
var n = this.#f.get(e);
|
|
594
594
|
if (n) {
|
|
595
595
|
this.#f.delete(e);
|
|
596
|
-
for (var r of n.d)
|
|
597
|
-
for (r of n.m)
|
|
596
|
+
for (var r of n.d) z(r, w), t(r);
|
|
597
|
+
for (r of n.m) z(r, te), t(r);
|
|
598
598
|
}
|
|
599
599
|
this.#p.add(e);
|
|
600
600
|
}
|
|
601
601
|
#g() {
|
|
602
|
-
this.#e = !0,
|
|
603
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
604
|
-
for (let e of this.#d)
|
|
602
|
+
this.#e = !0, Tt++ > 1e3 && (this.#x(), kt());
|
|
603
|
+
for (let e of this.#u) this.#d.delete(e), z(e, w), this.schedule(e);
|
|
604
|
+
for (let e of this.#d) z(e, te), this.schedule(e);
|
|
605
605
|
let t = this.#c;
|
|
606
606
|
this.#c = [], this.apply();
|
|
607
|
-
var n =
|
|
607
|
+
var n = Ct = [], r = [], i = wt = [];
|
|
608
608
|
for (let e of t) try {
|
|
609
609
|
this.#_(e, n, r);
|
|
610
610
|
} catch (t) {
|
|
611
|
-
throw
|
|
611
|
+
throw Pt(e), this.#h() || this.discard(), t;
|
|
612
612
|
}
|
|
613
|
-
if (
|
|
613
|
+
if (V = null, i.length > 0) {
|
|
614
614
|
var a = e.ensure();
|
|
615
615
|
for (let e of i) a.schedule(e);
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
617
|
+
if (Ct = null, wt = null, this.#h()) {
|
|
618
618
|
this.#b(r), this.#b(n);
|
|
619
|
-
for (let [e, t] of this.#f)
|
|
620
|
-
i.length > 0 &&
|
|
619
|
+
for (let [e, t] of this.#f) Nt(e, t);
|
|
620
|
+
i.length > 0 && V.#g();
|
|
621
621
|
return;
|
|
622
622
|
}
|
|
623
623
|
let o = this.#v();
|
|
@@ -627,8 +627,8 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
627
627
|
}
|
|
628
628
|
this.#u.clear(), this.#d.clear();
|
|
629
629
|
for (let e of this.#r) e(this);
|
|
630
|
-
this.#r.clear(),
|
|
631
|
-
var s =
|
|
630
|
+
this.#r.clear(), vt = this, jt(r), jt(n), vt = null, this.#s?.resolve();
|
|
631
|
+
var s = V;
|
|
632
632
|
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
|
|
633
633
|
if (s !== null) {
|
|
634
634
|
let e = s;
|
|
@@ -638,11 +638,11 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
638
638
|
s !== null && s.#g();
|
|
639
639
|
}
|
|
640
640
|
#_(e, t, n) {
|
|
641
|
-
e.f ^=
|
|
641
|
+
e.f ^= C;
|
|
642
642
|
for (var r = e.first; r !== null;) {
|
|
643
643
|
var i = r.f, a = !!(i & 96);
|
|
644
644
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
645
|
-
a ? r.f ^=
|
|
645
|
+
a ? r.f ^= C : i & 4 ? t.push(r) : qn(r) && (i & 16 && this.#d.add(r), Qn(r));
|
|
646
646
|
var o = r.first;
|
|
647
647
|
if (o !== null) {
|
|
648
648
|
r = o;
|
|
@@ -682,36 +682,36 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
682
682
|
if (r & 2) t(e);
|
|
683
683
|
else {
|
|
684
684
|
var i = e;
|
|
685
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
685
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, w), this.schedule(i));
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
689
|
for (let e of this.current.keys()) t(e);
|
|
690
|
-
this.oncommit(() => e.discard()), e.#x(),
|
|
690
|
+
this.oncommit(() => e.discard()), e.#x(), V = this, this.#g();
|
|
691
691
|
}
|
|
692
692
|
#b(e) {
|
|
693
|
-
for (var t = 0; t < e.length; t += 1)
|
|
693
|
+
for (var t = 0; t < e.length; t += 1) Xe(e[t], this.#u, this.#d);
|
|
694
694
|
}
|
|
695
695
|
capture(e, t, n = !1) {
|
|
696
|
-
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]),
|
|
696
|
+
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), yt?.set(e, t)), this.is_fork || (e.v = t);
|
|
697
697
|
}
|
|
698
698
|
activate() {
|
|
699
|
-
|
|
699
|
+
V = this;
|
|
700
700
|
}
|
|
701
701
|
deactivate() {
|
|
702
|
-
|
|
702
|
+
V = null, yt = null;
|
|
703
703
|
}
|
|
704
704
|
flush() {
|
|
705
705
|
try {
|
|
706
|
-
|
|
706
|
+
St = !0, V = this, this.#g();
|
|
707
707
|
} finally {
|
|
708
|
-
|
|
708
|
+
Tt = 0, bt = null, Ct = null, wt = null, St = !1, V = null, yt = null, It.clear();
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
discard() {
|
|
712
712
|
for (let e of this.#i) e(this);
|
|
713
713
|
this.#i.clear();
|
|
714
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
714
|
+
for (let e of this.async_deriveds.values()) e.reject(lt);
|
|
715
715
|
this.#x(), this.#s?.resolve();
|
|
716
716
|
}
|
|
717
717
|
register_created_effect(e) {
|
|
@@ -728,7 +728,7 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
728
728
|
let e = this.#o.get(t) ?? 0;
|
|
729
729
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
730
730
|
}
|
|
731
|
-
this.#m || (this.#m = !0,
|
|
731
|
+
this.#m || (this.#m = !0, Ue(() => {
|
|
732
732
|
this.#m = !1, this.linked && this.flush();
|
|
733
733
|
}));
|
|
734
734
|
}
|
|
@@ -744,32 +744,32 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
744
744
|
this.#i.add(e);
|
|
745
745
|
}
|
|
746
746
|
settled() {
|
|
747
|
-
return (this.#s ??=
|
|
747
|
+
return (this.#s ??= ee()).promise;
|
|
748
748
|
}
|
|
749
749
|
static ensure() {
|
|
750
|
-
if (
|
|
751
|
-
let t =
|
|
752
|
-
!
|
|
750
|
+
if (V === null) {
|
|
751
|
+
let t = V = new e();
|
|
752
|
+
!St && !xt && Ue(() => {
|
|
753
753
|
t.#e || t.flush();
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
|
-
return
|
|
756
|
+
return V;
|
|
757
757
|
}
|
|
758
758
|
apply() {
|
|
759
|
-
|
|
759
|
+
yt = null;
|
|
760
760
|
}
|
|
761
761
|
schedule(e) {
|
|
762
|
-
if (
|
|
762
|
+
if (bt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
763
763
|
e.b.defer_effect(e);
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
766
|
for (var t = e; t.parent !== null;) {
|
|
767
767
|
t = t.parent;
|
|
768
768
|
var n = t.f;
|
|
769
|
-
if (
|
|
769
|
+
if (Ct !== null && t === q && (G === null || !(G.f & 2))) return;
|
|
770
770
|
if (n & 96) {
|
|
771
771
|
if (!(n & 1024)) return;
|
|
772
|
-
t.f ^=
|
|
772
|
+
t.f ^= C;
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
this.#c.push(t);
|
|
@@ -777,171 +777,171 @@ var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt =
|
|
|
777
777
|
#x() {
|
|
778
778
|
if (this.linked) {
|
|
779
779
|
var e = this.#t, t = this.#n;
|
|
780
|
-
e === null || (e.#n = t), t === null ?
|
|
780
|
+
e === null || (e.#n = t), t === null ? _t = e : t.#t = e, this.linked = !1;
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
|
-
function
|
|
785
|
-
var t =
|
|
786
|
-
|
|
784
|
+
function Ot(e) {
|
|
785
|
+
var t = xt;
|
|
786
|
+
xt = !0;
|
|
787
787
|
try {
|
|
788
788
|
var n;
|
|
789
|
-
for (e && (
|
|
790
|
-
if (
|
|
791
|
-
|
|
789
|
+
for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
|
|
790
|
+
if (We(), V === null) return n;
|
|
791
|
+
V.flush();
|
|
792
792
|
}
|
|
793
793
|
} finally {
|
|
794
|
-
|
|
794
|
+
xt = t;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function kt() {
|
|
798
798
|
try {
|
|
799
|
-
|
|
799
|
+
ye();
|
|
800
800
|
} catch (e) {
|
|
801
|
-
|
|
801
|
+
Ke(e, bt);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
804
|
+
var At = null;
|
|
805
|
+
function jt(e) {
|
|
806
806
|
var t = e.length;
|
|
807
807
|
if (t !== 0) {
|
|
808
808
|
for (var n = 0; n < t;) {
|
|
809
809
|
var r = e[n++];
|
|
810
|
-
if (!(r.f & 24576) &&
|
|
811
|
-
|
|
812
|
-
for (let e of
|
|
810
|
+
if (!(r.f & 24576) && qn(r) && (At = /* @__PURE__ */ new Set(), Qn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && En(r), At?.size > 0)) {
|
|
811
|
+
It.clear();
|
|
812
|
+
for (let e of At) {
|
|
813
813
|
if (e.f & 24576) continue;
|
|
814
814
|
let t = [e], n = e.parent;
|
|
815
|
-
for (; n !== null;)
|
|
815
|
+
for (; n !== null;) At.has(n) && (At.delete(n), t.push(n)), n = n.parent;
|
|
816
816
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
817
817
|
let n = t[e];
|
|
818
|
-
n.f & 24576 ||
|
|
818
|
+
n.f & 24576 || Qn(n);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
|
|
821
|
+
At.clear();
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
At = null;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
|
|
827
|
+
function Mt(e) {
|
|
828
|
+
V.schedule(e);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Nt(e, t) {
|
|
831
831
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
832
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
833
|
-
for (var n = e.first; n !== null;)
|
|
832
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, C);
|
|
833
|
+
for (var n = e.first; n !== null;) Nt(n, t), n = n.next;
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
|
|
838
|
-
for (var t = e.first; t !== null;)
|
|
836
|
+
function Pt(e) {
|
|
837
|
+
z(e, C);
|
|
838
|
+
for (var t = e.first; t !== null;) Pt(t), t = t.next;
|
|
839
839
|
}
|
|
840
|
-
var
|
|
841
|
-
function
|
|
840
|
+
var Ft = /* @__PURE__ */ new Set(), It = /* @__PURE__ */ new Map(), Lt = !1;
|
|
841
|
+
function Rt(e, t) {
|
|
842
842
|
return {
|
|
843
843
|
f: 0,
|
|
844
844
|
v: e,
|
|
845
845
|
reactions: null,
|
|
846
|
-
equals:
|
|
846
|
+
equals: Pe,
|
|
847
847
|
rv: 0,
|
|
848
848
|
wv: 0
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
/*#__NO_SIDE_EFFECTS__*/
|
|
852
|
-
function
|
|
853
|
-
let n =
|
|
854
|
-
return
|
|
852
|
+
function H(e, t) {
|
|
853
|
+
let n = Rt(e, t);
|
|
854
|
+
return zn(n), n;
|
|
855
855
|
}
|
|
856
856
|
/*#__NO_SIDE_EFFECTS__*/
|
|
857
|
-
function
|
|
858
|
-
let r =
|
|
859
|
-
return t || (r.equals =
|
|
857
|
+
function zt(e, t = !1, n = !0) {
|
|
858
|
+
let r = Rt(e);
|
|
859
|
+
return t || (r.equals = Ie), r;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
return
|
|
861
|
+
function U(e, t, n = !1) {
|
|
862
|
+
return G !== null && (!In || G.f & 131072) && Be() && G.f & 4325394 && (Rn === null || !Rn.has(e)) && we(), Bt(e, n ? Wt(t) : t, wt);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Bt(e, t, n = null) {
|
|
865
865
|
if (!e.equals(t)) {
|
|
866
|
-
|
|
867
|
-
var r =
|
|
866
|
+
It.set(e, Pn ? t : e.v);
|
|
867
|
+
var r = Dt.ensure();
|
|
868
868
|
if (r.capture(e, t), e.f & 2) {
|
|
869
869
|
let t = e;
|
|
870
|
-
e.f & 2048 &&
|
|
870
|
+
e.f & 2048 && pt(t), yt === null && Je(t);
|
|
871
871
|
}
|
|
872
|
-
e.wv =
|
|
872
|
+
e.wv = Kn(), Ut(e, w, n), Be() && q !== null && q.f & 1024 && !(q.f & 96) && (Bn === null ? Vn([e]) : Bn.push(e)), !r.is_fork && Ft.size > 0 && !Lt && Vt();
|
|
873
873
|
}
|
|
874
874
|
return t;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
|
|
878
|
-
for (let e of
|
|
879
|
-
e.f & 1024 &&
|
|
876
|
+
function Vt() {
|
|
877
|
+
Lt = !1;
|
|
878
|
+
for (let e of Ft) {
|
|
879
|
+
e.f & 1024 && z(e, te);
|
|
880
880
|
let t;
|
|
881
881
|
try {
|
|
882
|
-
t =
|
|
882
|
+
t = qn(e);
|
|
883
883
|
} catch {
|
|
884
884
|
t = !0;
|
|
885
885
|
}
|
|
886
|
-
t &&
|
|
886
|
+
t && Qn(e);
|
|
887
887
|
}
|
|
888
|
-
|
|
888
|
+
Ft.clear();
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
|
|
890
|
+
function Ht(e) {
|
|
891
|
+
U(e, e.v + 1);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function Ut(e, t, n) {
|
|
894
894
|
var r = e.reactions;
|
|
895
|
-
if (r !== null) for (var i =
|
|
895
|
+
if (r !== null) for (var i = Be(), a = r.length, o = 0; o < a; o++) {
|
|
896
896
|
var s = r[o], c = s.f;
|
|
897
|
-
if (!(!i && s ===
|
|
898
|
-
var l = (c &
|
|
899
|
-
if (l &&
|
|
897
|
+
if (!(!i && s === q)) {
|
|
898
|
+
var l = (c & w) === 0;
|
|
899
|
+
if (l && z(s, t), c & 131072) Ft.add(s);
|
|
900
900
|
else if (c & 2) {
|
|
901
901
|
var u = s;
|
|
902
|
-
|
|
902
|
+
yt?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |= ae), Ut(u, te, n));
|
|
903
903
|
} else if (l) {
|
|
904
904
|
var d = s;
|
|
905
|
-
c & 16 &&
|
|
905
|
+
c & 16 && At !== null && At.add(d), n === null ? Mt(d) : n.push(d);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
if (typeof e != "object" || !e ||
|
|
910
|
+
function Wt(e) {
|
|
911
|
+
if (typeof e != "object" || !e || j in e) return e;
|
|
912
912
|
let t = y(e);
|
|
913
913
|
if (t !== _ && t !== v) return e;
|
|
914
|
-
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */
|
|
915
|
-
if (
|
|
916
|
-
var t =
|
|
917
|
-
|
|
914
|
+
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ H(0), a = null, o = Wn, c = (e) => {
|
|
915
|
+
if (Wn === o) return e();
|
|
916
|
+
var t = G, n = Wn;
|
|
917
|
+
K(null), Gn(o);
|
|
918
918
|
var r = e();
|
|
919
|
-
return
|
|
919
|
+
return K(t), Gn(n), r;
|
|
920
920
|
};
|
|
921
|
-
return r && n.set("length", /* @__PURE__ */
|
|
921
|
+
return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
|
|
922
922
|
defineProperty(e, t, r) {
|
|
923
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
923
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Se();
|
|
924
924
|
var i = n.get(t);
|
|
925
925
|
return i === void 0 ? c(() => {
|
|
926
|
-
var e = /* @__PURE__ */
|
|
926
|
+
var e = /* @__PURE__ */ H(r.value, a);
|
|
927
927
|
return n.set(t, e), e;
|
|
928
|
-
}) :
|
|
928
|
+
}) : U(i, r.value, !0), !0;
|
|
929
929
|
},
|
|
930
930
|
deleteProperty(e, t) {
|
|
931
931
|
var r = n.get(t);
|
|
932
932
|
if (r === void 0) {
|
|
933
933
|
if (t in e) {
|
|
934
|
-
let e = c(() => /* @__PURE__ */
|
|
935
|
-
n.set(t, e),
|
|
934
|
+
let e = c(() => /* @__PURE__ */ H(s, a));
|
|
935
|
+
n.set(t, e), Ht(i);
|
|
936
936
|
}
|
|
937
|
-
} else
|
|
937
|
+
} else U(r, s), Ht(i);
|
|
938
938
|
return !0;
|
|
939
939
|
},
|
|
940
940
|
get(t, r, i) {
|
|
941
|
-
if (r ===
|
|
941
|
+
if (r === j) return e;
|
|
942
942
|
var o = n.get(r), l = r in t;
|
|
943
|
-
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */
|
|
944
|
-
var u =
|
|
943
|
+
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ H(Wt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
|
|
944
|
+
var u = X(o);
|
|
945
945
|
return u === s ? void 0 : u;
|
|
946
946
|
}
|
|
947
947
|
return Reflect.get(t, r, i);
|
|
@@ -950,7 +950,7 @@ function Gt(e) {
|
|
|
950
950
|
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
951
951
|
if (r && "value" in r) {
|
|
952
952
|
var i = n.get(t);
|
|
953
|
-
i && (r.value =
|
|
953
|
+
i && (r.value = X(i));
|
|
954
954
|
} else if (r === void 0) {
|
|
955
955
|
var a = n.get(t), o = a?.v;
|
|
956
956
|
if (a !== void 0 && o !== s) return {
|
|
@@ -963,34 +963,34 @@ function Gt(e) {
|
|
|
963
963
|
return r;
|
|
964
964
|
},
|
|
965
965
|
has(e, t) {
|
|
966
|
-
if (t ===
|
|
966
|
+
if (t === j) return !0;
|
|
967
967
|
var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
|
|
968
|
-
return (r !== void 0 ||
|
|
968
|
+
return (r !== void 0 || q !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ H(i ? Wt(e[t]) : s, a)), n.set(t, r)), X(r) === s) ? !1 : i;
|
|
969
969
|
},
|
|
970
970
|
set(e, t, o, l) {
|
|
971
971
|
var u = n.get(t), d = t in e;
|
|
972
972
|
if (r && t === "length") for (var f = o; f < u.v; f += 1) {
|
|
973
973
|
var p = n.get(f + "");
|
|
974
|
-
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */
|
|
974
|
+
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ H(s, a)), n.set(f + "", p)) : U(p, s);
|
|
975
975
|
}
|
|
976
|
-
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */
|
|
976
|
+
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ H(void 0, a)), U(u, Wt(o)), n.set(t, u));
|
|
977
977
|
else {
|
|
978
978
|
d = u.v !== s;
|
|
979
|
-
var m = c(() =>
|
|
980
|
-
|
|
979
|
+
var m = c(() => Wt(o));
|
|
980
|
+
U(u, m);
|
|
981
981
|
}
|
|
982
982
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
983
983
|
if (g?.set && g.set.call(l, o), !d) {
|
|
984
984
|
if (r && typeof t == "string") {
|
|
985
985
|
var _ = n.get("length"), v = Number(t);
|
|
986
|
-
Number.isInteger(v) && v >= _.v &&
|
|
986
|
+
Number.isInteger(v) && v >= _.v && U(_, v + 1);
|
|
987
987
|
}
|
|
988
|
-
|
|
988
|
+
Ht(i);
|
|
989
989
|
}
|
|
990
990
|
return !0;
|
|
991
991
|
},
|
|
992
992
|
ownKeys(e) {
|
|
993
|
-
|
|
993
|
+
X(i);
|
|
994
994
|
var t = Reflect.ownKeys(e).filter((e) => {
|
|
995
995
|
var t = n.get(e);
|
|
996
996
|
return t === void 0 || t.v !== s;
|
|
@@ -999,65 +999,65 @@ function Gt(e) {
|
|
|
999
999
|
return t;
|
|
1000
1000
|
},
|
|
1001
1001
|
setPrototypeOf() {
|
|
1002
|
-
|
|
1002
|
+
Ce();
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
|
-
var Kt, qt, Jt
|
|
1007
|
-
function
|
|
1008
|
-
if (
|
|
1009
|
-
|
|
1006
|
+
var Gt, Kt, qt, Jt;
|
|
1007
|
+
function Yt() {
|
|
1008
|
+
if (Gt === void 0) {
|
|
1009
|
+
Gt = window, Kt = /Firefox/.test(navigator.userAgent);
|
|
1010
1010
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1011
|
-
|
|
1011
|
+
qt = h(t, "firstChild").get, Jt = h(t, "nextSibling").get, b(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), b(n) && (n[de] = void 0);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function Xt(e = "") {
|
|
1015
1015
|
return document.createTextNode(e);
|
|
1016
1016
|
}
|
|
1017
1017
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1018
1018
|
function Zt(e) {
|
|
1019
|
-
return
|
|
1019
|
+
return qt.call(e);
|
|
1020
1020
|
}
|
|
1021
1021
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1022
1022
|
function Qt(e) {
|
|
1023
|
-
return
|
|
1023
|
+
return Jt.call(e);
|
|
1024
1024
|
}
|
|
1025
1025
|
function $t(e, t) {
|
|
1026
|
-
if (!
|
|
1027
|
-
var n = /* @__PURE__ */ Zt(
|
|
1028
|
-
if (n === null) n =
|
|
1026
|
+
if (!P) return /* @__PURE__ */ Zt(e);
|
|
1027
|
+
var n = /* @__PURE__ */ Zt(I);
|
|
1028
|
+
if (n === null) n = I.appendChild(Xt());
|
|
1029
1029
|
else if (t && n.nodeType !== 3) {
|
|
1030
|
-
var r =
|
|
1031
|
-
return n?.before(r),
|
|
1030
|
+
var r = Xt();
|
|
1031
|
+
return n?.before(r), L(r), r;
|
|
1032
1032
|
}
|
|
1033
|
-
return t && on(n),
|
|
1033
|
+
return t && on(n), L(n), n;
|
|
1034
1034
|
}
|
|
1035
1035
|
function en(e, t = !1) {
|
|
1036
|
-
if (!
|
|
1036
|
+
if (!P) {
|
|
1037
1037
|
var n = /* @__PURE__ */ Zt(e);
|
|
1038
1038
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
|
|
1039
1039
|
}
|
|
1040
1040
|
if (t) {
|
|
1041
|
-
if (
|
|
1042
|
-
var r =
|
|
1043
|
-
return
|
|
1041
|
+
if (I?.nodeType !== 3) {
|
|
1042
|
+
var r = Xt();
|
|
1043
|
+
return I?.before(r), L(r), r;
|
|
1044
1044
|
}
|
|
1045
|
-
on(
|
|
1045
|
+
on(I);
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1047
|
+
return I;
|
|
1048
1048
|
}
|
|
1049
1049
|
function tn(e, t = 1, n = !1) {
|
|
1050
|
-
let r =
|
|
1050
|
+
let r = P ? I : e;
|
|
1051
1051
|
for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
|
|
1052
|
-
if (!
|
|
1052
|
+
if (!P) return r;
|
|
1053
1053
|
if (n) {
|
|
1054
1054
|
if (r?.nodeType !== 3) {
|
|
1055
|
-
var a =
|
|
1056
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1055
|
+
var a = Xt();
|
|
1056
|
+
return r === null ? i?.after(a) : r.before(a), L(a), a;
|
|
1057
1057
|
}
|
|
1058
1058
|
on(r);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return L(r), r;
|
|
1061
1061
|
}
|
|
1062
1062
|
function nn(e) {
|
|
1063
1063
|
e.textContent = "";
|
|
@@ -1074,20 +1074,20 @@ function on(e) {
|
|
|
1074
1074
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1075
1075
|
}
|
|
1076
1076
|
function sn(e) {
|
|
1077
|
-
|
|
1077
|
+
q === null && (G === null && ve(e), _e()), Pn && ge(e);
|
|
1078
1078
|
}
|
|
1079
1079
|
function cn(e, t) {
|
|
1080
1080
|
var n = t.last;
|
|
1081
1081
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1082
1082
|
}
|
|
1083
1083
|
function ln(e, t) {
|
|
1084
|
-
var n =
|
|
1085
|
-
n !== null && n.f & 8192 && (e |=
|
|
1084
|
+
var n = q;
|
|
1085
|
+
n !== null && n.f & 8192 && (e |= T);
|
|
1086
1086
|
var r = {
|
|
1087
|
-
ctx:
|
|
1087
|
+
ctx: R,
|
|
1088
1088
|
deps: null,
|
|
1089
1089
|
nodes: null,
|
|
1090
|
-
f: e |
|
|
1090
|
+
f: e | w | 512,
|
|
1091
1091
|
first: null,
|
|
1092
1092
|
fn: t,
|
|
1093
1093
|
last: null,
|
|
@@ -1099,249 +1099,249 @@ function ln(e, t) {
|
|
|
1099
1099
|
wv: 0,
|
|
1100
1100
|
ac: null
|
|
1101
1101
|
};
|
|
1102
|
-
|
|
1102
|
+
V?.register_created_effect(r);
|
|
1103
1103
|
var i = r;
|
|
1104
|
-
if (e & 4)
|
|
1104
|
+
if (e & 4) Ct === null ? Dt.ensure().schedule(r) : Ct.push(r);
|
|
1105
1105
|
else if (t !== null) {
|
|
1106
1106
|
try {
|
|
1107
|
-
|
|
1107
|
+
Qn(r);
|
|
1108
1108
|
} catch (e) {
|
|
1109
|
-
throw
|
|
1109
|
+
throw W(r), e;
|
|
1110
1110
|
}
|
|
1111
|
-
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 |=
|
|
1111
|
+
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 |= D));
|
|
1112
1112
|
}
|
|
1113
|
-
if (i !== null && (i.parent = n, n !== null && cn(i, n),
|
|
1114
|
-
var a =
|
|
1113
|
+
if (i !== null && (i.parent = n, n !== null && cn(i, n), G !== null && G.f & 2 && !(e & 64))) {
|
|
1114
|
+
var a = G;
|
|
1115
1115
|
(a.effects ??= []).push(i);
|
|
1116
1116
|
}
|
|
1117
1117
|
return r;
|
|
1118
1118
|
}
|
|
1119
1119
|
function un() {
|
|
1120
|
-
return
|
|
1120
|
+
return G !== null && !In;
|
|
1121
1121
|
}
|
|
1122
1122
|
function dn(e) {
|
|
1123
1123
|
let t = ln(8, null);
|
|
1124
|
-
return
|
|
1124
|
+
return z(t, C), t.teardown = e, t;
|
|
1125
1125
|
}
|
|
1126
1126
|
function fn(e) {
|
|
1127
1127
|
sn("$effect");
|
|
1128
|
-
var t =
|
|
1129
|
-
if (!
|
|
1130
|
-
var n =
|
|
1128
|
+
var t = q.f;
|
|
1129
|
+
if (!G && t & 32 && R !== null && !R.i) {
|
|
1130
|
+
var n = R;
|
|
1131
1131
|
(n.e ??= []).push(e);
|
|
1132
1132
|
} else return pn(e);
|
|
1133
1133
|
}
|
|
1134
1134
|
function pn(e) {
|
|
1135
|
-
return ln(4 |
|
|
1135
|
+
return ln(4 | ie, e);
|
|
1136
1136
|
}
|
|
1137
1137
|
function mn(e) {
|
|
1138
|
-
|
|
1139
|
-
let t = ln(64 |
|
|
1138
|
+
Dt.ensure();
|
|
1139
|
+
let t = ln(64 | O, e);
|
|
1140
1140
|
return () => {
|
|
1141
|
-
|
|
1141
|
+
W(t);
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
1144
|
function hn(e) {
|
|
1145
|
-
|
|
1146
|
-
let t = ln(64 |
|
|
1145
|
+
Dt.ensure();
|
|
1146
|
+
let t = ln(64 | O, e);
|
|
1147
1147
|
return (e = {}) => new Promise((n) => {
|
|
1148
|
-
e.outro ?
|
|
1149
|
-
|
|
1150
|
-
}) : (
|
|
1148
|
+
e.outro ? Dn(t, () => {
|
|
1149
|
+
W(t), n(void 0);
|
|
1150
|
+
}) : (W(t), n(void 0));
|
|
1151
1151
|
});
|
|
1152
1152
|
}
|
|
1153
1153
|
function gn(e) {
|
|
1154
1154
|
return ln(4, e);
|
|
1155
1155
|
}
|
|
1156
1156
|
function _n(e) {
|
|
1157
|
-
return ln(
|
|
1157
|
+
return ln(A | O, e);
|
|
1158
1158
|
}
|
|
1159
1159
|
function vn(e, t = 0) {
|
|
1160
1160
|
return ln(8 | t, e);
|
|
1161
1161
|
}
|
|
1162
1162
|
function yn(e, t = [], n = [], r = []) {
|
|
1163
|
-
|
|
1163
|
+
it(r, t, n, (t) => {
|
|
1164
1164
|
ln(8, () => {
|
|
1165
|
-
e(...t.map(
|
|
1165
|
+
e(...t.map(X));
|
|
1166
1166
|
});
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
1169
|
function bn(e, t = 0) {
|
|
1170
1170
|
return ln(16 | t, e);
|
|
1171
1171
|
}
|
|
1172
|
-
function W(e) {
|
|
1173
|
-
return ln(32 | ae, e);
|
|
1174
|
-
}
|
|
1175
1172
|
function xn(e) {
|
|
1173
|
+
return ln(32 | O, e);
|
|
1174
|
+
}
|
|
1175
|
+
function Sn(e) {
|
|
1176
1176
|
var t = e.teardown;
|
|
1177
1177
|
if (t !== null) {
|
|
1178
|
-
let e =
|
|
1179
|
-
|
|
1178
|
+
let e = Pn, n = G;
|
|
1179
|
+
Fn(!0), K(null);
|
|
1180
1180
|
try {
|
|
1181
1181
|
t.call(null);
|
|
1182
1182
|
} finally {
|
|
1183
|
-
|
|
1183
|
+
Fn(e), K(n);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Cn(e, t = !1) {
|
|
1188
1188
|
var n = e.first;
|
|
1189
1189
|
for (e.first = e.last = null; n !== null;) {
|
|
1190
1190
|
let e = n.ac;
|
|
1191
|
-
e !== null &&
|
|
1192
|
-
e.abort(
|
|
1191
|
+
e !== null && $e(() => {
|
|
1192
|
+
e.abort(fe);
|
|
1193
1193
|
});
|
|
1194
1194
|
var r = n.next;
|
|
1195
|
-
n.f & 64 ? n.parent = null :
|
|
1195
|
+
n.f & 64 ? n.parent = null : W(n, t), n = r;
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function wn(e) {
|
|
1199
1199
|
for (var t = e.first; t !== null;) {
|
|
1200
1200
|
var n = t.next;
|
|
1201
|
-
t.f & 32 ||
|
|
1201
|
+
t.f & 32 || W(t), t = n;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function W(e, t = !0) {
|
|
1205
1205
|
var n = !1;
|
|
1206
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1206
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Tn(e.nodes.start, e.nodes.end), n = !0), e.f |= re, Cn(e, t && !n), Zn(e, 0);
|
|
1207
1207
|
var r = e.nodes && e.nodes.t;
|
|
1208
1208
|
if (r !== null) for (let e of r) e.stop();
|
|
1209
|
-
|
|
1209
|
+
Sn(e), e.f ^= re, e.f |= E;
|
|
1210
1210
|
var i = e.parent;
|
|
1211
|
-
i !== null && i.first !== null &&
|
|
1211
|
+
i !== null && i.first !== null && En(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Tn(e, t) {
|
|
1214
1214
|
for (; e !== null;) {
|
|
1215
1215
|
var n = e === t ? null : /* @__PURE__ */ Qt(e);
|
|
1216
1216
|
e.remove(), e = n;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function En(e) {
|
|
1220
1220
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1221
1221
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function Dn(e, t, n = !0) {
|
|
1224
1224
|
var r = [];
|
|
1225
|
-
|
|
1225
|
+
On(e, r, !0);
|
|
1226
1226
|
var i = () => {
|
|
1227
|
-
n &&
|
|
1227
|
+
n && W(e), t && t();
|
|
1228
1228
|
}, a = r.length;
|
|
1229
1229
|
if (a > 0) {
|
|
1230
1230
|
var o = () => --a || i();
|
|
1231
1231
|
for (var s of r) s.out(o);
|
|
1232
1232
|
} else i();
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function On(e, t, n) {
|
|
1235
1235
|
if (!(e.f & 8192)) {
|
|
1236
|
-
e.f ^=
|
|
1236
|
+
e.f ^= T;
|
|
1237
1237
|
var r = e.nodes && e.nodes.t;
|
|
1238
1238
|
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1239
1239
|
for (var i = e.first; i !== null;) {
|
|
1240
1240
|
var a = i.next;
|
|
1241
1241
|
if (!(i.f & 64)) {
|
|
1242
1242
|
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1243
|
-
|
|
1243
|
+
On(i, t, o ? n : !1);
|
|
1244
1244
|
}
|
|
1245
1245
|
i = a;
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1249
|
+
function kn(e) {
|
|
1250
|
+
An(e, !0);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function An(e, t) {
|
|
1253
1253
|
if (e.f & 8192) {
|
|
1254
|
-
e.f ^=
|
|
1254
|
+
e.f ^= T, e.f & 1024 || (z(e, w), Dt.ensure().schedule(e));
|
|
1255
1255
|
for (var n = e.first; n !== null;) {
|
|
1256
1256
|
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1257
|
-
|
|
1257
|
+
An(n, i ? t : !1), n = r;
|
|
1258
1258
|
}
|
|
1259
1259
|
var a = e.nodes && e.nodes.t;
|
|
1260
1260
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function jn(e, t) {
|
|
1264
1264
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1265
1265
|
var i = n === r ? null : /* @__PURE__ */ Qt(n);
|
|
1266
1266
|
t.append(n), n = i;
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
var
|
|
1270
|
-
function
|
|
1271
|
-
|
|
1269
|
+
var Mn = null, Nn = !1, Pn = !1;
|
|
1270
|
+
function Fn(e) {
|
|
1271
|
+
Pn = e;
|
|
1272
1272
|
}
|
|
1273
|
-
var
|
|
1274
|
-
function
|
|
1275
|
-
|
|
1273
|
+
var G = null, In = !1;
|
|
1274
|
+
function K(e) {
|
|
1275
|
+
G = e;
|
|
1276
1276
|
}
|
|
1277
|
-
var
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1277
|
+
var q = null;
|
|
1278
|
+
function Ln(e) {
|
|
1279
|
+
q = e;
|
|
1280
1280
|
}
|
|
1281
|
-
var
|
|
1282
|
-
function
|
|
1283
|
-
|
|
1281
|
+
var Rn = null;
|
|
1282
|
+
function zn(e) {
|
|
1283
|
+
G !== null && (Rn ??= /* @__PURE__ */ new Set()).add(e);
|
|
1284
1284
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1287
|
-
|
|
1285
|
+
var J = null, Y = 0, Bn = null;
|
|
1286
|
+
function Vn(e) {
|
|
1287
|
+
Bn = e;
|
|
1288
1288
|
}
|
|
1289
|
-
var
|
|
1290
|
-
function
|
|
1291
|
-
|
|
1289
|
+
var Hn = 1, Un = 0, Wn = Un;
|
|
1290
|
+
function Gn(e) {
|
|
1291
|
+
Wn = e;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return ++
|
|
1293
|
+
function Kn() {
|
|
1294
|
+
return ++Hn;
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function qn(e) {
|
|
1297
1297
|
var t = e.f;
|
|
1298
1298
|
if (t & 2048) return !0;
|
|
1299
|
-
if (t & 2 && (e.f &= ~
|
|
1299
|
+
if (t & 2 && (e.f &= ~ae), t & 4096) {
|
|
1300
1300
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1301
1301
|
var a = n[i];
|
|
1302
|
-
if (
|
|
1302
|
+
if (qn(a) && mt(a), a.wv > e.wv) return !0;
|
|
1303
1303
|
}
|
|
1304
|
-
t & 512 &&
|
|
1304
|
+
t & 512 && yt === null && z(e, C);
|
|
1305
1305
|
}
|
|
1306
1306
|
return !1;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Jn(e, t, n = !0) {
|
|
1309
1309
|
var r = e.reactions;
|
|
1310
|
-
if (r !== null && !(
|
|
1310
|
+
if (r !== null && !(Rn !== null && Rn.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1311
1311
|
var a = r[i];
|
|
1312
|
-
a.f & 2 ?
|
|
1312
|
+
a.f & 2 ? Jn(a, t, !1) : t === a && (n ? z(a, w) : a.f & 1024 && z(a, te), Mt(a));
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
var t =
|
|
1317
|
-
|
|
1318
|
-
e.ac.abort(
|
|
1315
|
+
function Yn(e) {
|
|
1316
|
+
var t = J, n = Y, r = Bn, i = G, a = Rn, o = R, s = In, c = Wn, l = e.f;
|
|
1317
|
+
J = null, Y = 0, Bn = null, G = l & 96 ? null : e, Rn = null, Le(e.ctx), In = !1, Wn = ++Un, e.ac !== null && ($e(() => {
|
|
1318
|
+
e.ac.abort(fe);
|
|
1319
1319
|
}), e.ac = null);
|
|
1320
1320
|
try {
|
|
1321
|
-
e.f |=
|
|
1321
|
+
e.f |= oe;
|
|
1322
1322
|
var u = e.fn, d = u();
|
|
1323
|
-
e.f |=
|
|
1324
|
-
var f = e.deps, p =
|
|
1325
|
-
if (
|
|
1323
|
+
e.f |= ne;
|
|
1324
|
+
var f = e.deps, p = V?.is_fork;
|
|
1325
|
+
if (J !== null) {
|
|
1326
1326
|
var m;
|
|
1327
|
-
if (p ||
|
|
1328
|
-
else e.deps = f =
|
|
1329
|
-
if (un() && e.f & 512) for (m =
|
|
1330
|
-
} else !p && f !== null &&
|
|
1331
|
-
if (
|
|
1327
|
+
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];
|
|
1328
|
+
else e.deps = f = J;
|
|
1329
|
+
if (un() && e.f & 512) for (m = Y; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1330
|
+
} else !p && f !== null && Y < f.length && (Zn(e, Y), f.length = Y);
|
|
1331
|
+
if (Be() && Bn !== null && !In && f !== null && !(e.f & 6146)) for (m = 0; m < Bn.length; m++) Jn(Bn[m], e);
|
|
1332
1332
|
if (i !== null && i !== e) {
|
|
1333
|
-
if (
|
|
1334
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1335
|
-
|
|
1333
|
+
if (Un++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Un;
|
|
1334
|
+
if (t !== null) for (let e of t) e.rv = Un;
|
|
1335
|
+
Bn !== null && (r === null ? r = Bn : r.push(...Bn));
|
|
1336
1336
|
}
|
|
1337
|
-
return e.f & 8388608 && (e.f ^=
|
|
1337
|
+
return e.f & 8388608 && (e.f ^= se), d;
|
|
1338
1338
|
} catch (e) {
|
|
1339
|
-
return
|
|
1339
|
+
return Ge(e);
|
|
1340
1340
|
} finally {
|
|
1341
|
-
e.f ^=
|
|
1341
|
+
e.f ^= oe, J = t, Y = n, Bn = r, G = i, Rn = a, Le(o), In = s, Wn = c;
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Xn(e, t) {
|
|
1345
1345
|
let n = t.reactions;
|
|
1346
1346
|
if (n !== null) {
|
|
1347
1347
|
var r = u.call(n, e);
|
|
@@ -1350,88 +1350,88 @@ function Yn(e, t) {
|
|
|
1350
1350
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
if (n === null && t.f & 2 && (
|
|
1353
|
+
if (n === null && t.f & 2 && (J === null || !d.call(J, t))) {
|
|
1354
1354
|
var a = t;
|
|
1355
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~
|
|
1356
|
-
a.ac.abort(
|
|
1357
|
-
}),
|
|
1355
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== s && Je(a), a.ac !== null && $e(() => {
|
|
1356
|
+
a.ac.abort(fe), a.ac = null, z(a, w);
|
|
1357
|
+
}), ht(a), Zn(a, 0);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Zn(e, t) {
|
|
1361
1361
|
var n = e.deps;
|
|
1362
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1362
|
+
if (n !== null) for (var r = t; r < n.length; r++) Xn(e, n[r]);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Qn(e) {
|
|
1365
1365
|
var t = e.f;
|
|
1366
1366
|
if (!(t & 16384)) {
|
|
1367
|
-
|
|
1368
|
-
var n =
|
|
1369
|
-
|
|
1367
|
+
z(e, C);
|
|
1368
|
+
var n = q, r = Nn;
|
|
1369
|
+
q = e, Nn = !(t & 96);
|
|
1370
1370
|
try {
|
|
1371
|
-
t & 16777232 ?
|
|
1372
|
-
var i =
|
|
1373
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1371
|
+
t & 16777232 ? wn(e) : Cn(e), Sn(e);
|
|
1372
|
+
var i = Yn(e);
|
|
1373
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Hn;
|
|
1374
1374
|
} finally {
|
|
1375
|
-
|
|
1375
|
+
Nn = r, q = n;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function X(e) {
|
|
1380
1380
|
var t = !!(e.f & 2);
|
|
1381
|
-
if (
|
|
1382
|
-
var n =
|
|
1383
|
-
if (
|
|
1381
|
+
if (Mn?.add(e), G !== null && !In && !(q !== null && q.f & 16384) && (Rn === null || !Rn.has(e))) {
|
|
1382
|
+
var n = G.deps;
|
|
1383
|
+
if (G.f & 2097152) e.rv < Un && (e.rv = Un, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
|
|
1384
1384
|
else {
|
|
1385
|
-
|
|
1385
|
+
G.deps ??= [], d.call(G.deps, e) || G.deps.push(e);
|
|
1386
1386
|
var r = e.reactions;
|
|
1387
|
-
r === null ? e.reactions = [
|
|
1387
|
+
r === null ? e.reactions = [G] : d.call(r, G) || r.push(G);
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
if (
|
|
1390
|
+
if (Pn && It.has(e)) return It.get(e);
|
|
1391
1391
|
if (t) {
|
|
1392
1392
|
var i = e;
|
|
1393
|
-
if (
|
|
1393
|
+
if (Pn) {
|
|
1394
1394
|
var a = i.v;
|
|
1395
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1395
|
+
return (!(i.f & 1024) && i.reactions !== null || er(i)) && (a = pt(i)), It.set(i, a), a;
|
|
1396
1396
|
}
|
|
1397
|
-
var o = !(i.f & 512) && !
|
|
1398
|
-
|
|
1397
|
+
var o = !(i.f & 512) && !In && G !== null && (Nn || !!(G.f & 512)), s = (i.f & ne) === 0;
|
|
1398
|
+
qn(i) && (o && (i.f |= 512), mt(i)), o && !s && (gt(i), $n(i));
|
|
1399
1399
|
}
|
|
1400
|
-
if (
|
|
1400
|
+
if (yt?.has(e)) return yt.get(e);
|
|
1401
1401
|
if (e.f & 8388608) throw e.v;
|
|
1402
1402
|
return e.v;
|
|
1403
1403
|
}
|
|
1404
|
-
function Qn(e) {
|
|
1405
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (_t(t), Qn(t));
|
|
1406
|
-
}
|
|
1407
1404
|
function $n(e) {
|
|
1405
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (gt(t), $n(t));
|
|
1406
|
+
}
|
|
1407
|
+
function er(e) {
|
|
1408
1408
|
if (e.v === s) return !0;
|
|
1409
1409
|
if (e.deps === null) return !1;
|
|
1410
|
-
for (let t of e.deps) if (
|
|
1410
|
+
for (let t of e.deps) if (It.has(t) || t.f & 2 && er(t)) return !0;
|
|
1411
1411
|
return !1;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1414
|
-
var t =
|
|
1413
|
+
function tr(e) {
|
|
1414
|
+
var t = In;
|
|
1415
1415
|
try {
|
|
1416
|
-
return
|
|
1416
|
+
return In = !0, e();
|
|
1417
1417
|
} finally {
|
|
1418
|
-
|
|
1418
|
+
In = t;
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function nr(e) {
|
|
1422
1422
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1423
|
-
if (
|
|
1423
|
+
if (j in e) rr(e);
|
|
1424
1424
|
else if (!Array.isArray(e)) for (let t in e) {
|
|
1425
1425
|
let n = e[t];
|
|
1426
|
-
typeof n == "object" && n &&
|
|
1426
|
+
typeof n == "object" && n && j in n && rr(n);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function rr(e, t = /* @__PURE__ */ new Set()) {
|
|
1431
1431
|
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1432
1432
|
t.add(e), e instanceof Date && e.getTime();
|
|
1433
1433
|
for (let n in e) try {
|
|
1434
|
-
|
|
1434
|
+
rr(e[n], t);
|
|
1435
1435
|
} catch {}
|
|
1436
1436
|
let n = y(e);
|
|
1437
1437
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
@@ -1445,23 +1445,23 @@ function nr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1449
|
-
function
|
|
1450
|
-
(t[
|
|
1448
|
+
var ir = Symbol("events"), ar = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
|
|
1449
|
+
function sr(e, t, n) {
|
|
1450
|
+
(t[ir] ??= {})[e] = n;
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
for (var t = 0; t < e.length; t++)
|
|
1454
|
-
for (var n of
|
|
1452
|
+
function cr(e) {
|
|
1453
|
+
for (var t = 0; t < e.length; t++) ar.add(e[t]);
|
|
1454
|
+
for (var n of or) n(e);
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1457
|
-
function
|
|
1456
|
+
var lr = null;
|
|
1457
|
+
function ur(e) {
|
|
1458
1458
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1459
|
-
|
|
1460
|
-
var o = 0, s =
|
|
1459
|
+
lr = e;
|
|
1460
|
+
var o = 0, s = lr === e && e[ir];
|
|
1461
1461
|
if (s) {
|
|
1462
1462
|
var c = i.indexOf(s);
|
|
1463
1463
|
if (c !== -1 && (t === document || t === window)) {
|
|
1464
|
-
e[
|
|
1464
|
+
e[ir] = t;
|
|
1465
1465
|
return;
|
|
1466
1466
|
}
|
|
1467
1467
|
var l = i.indexOf(t);
|
|
@@ -1475,12 +1475,12 @@ function lr(e) {
|
|
|
1475
1475
|
return a || n;
|
|
1476
1476
|
}
|
|
1477
1477
|
});
|
|
1478
|
-
var u =
|
|
1479
|
-
|
|
1478
|
+
var u = G, d = q;
|
|
1479
|
+
K(null), Ln(null);
|
|
1480
1480
|
try {
|
|
1481
1481
|
for (var f, p = []; a !== null && a !== t;) {
|
|
1482
1482
|
try {
|
|
1483
|
-
var h = a[
|
|
1483
|
+
var h = a[ir]?.[r];
|
|
1484
1484
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1485
1485
|
} catch (e) {
|
|
1486
1486
|
f ? p.push(e) : f = e;
|
|
@@ -1495,20 +1495,20 @@ function lr(e) {
|
|
|
1495
1495
|
throw f;
|
|
1496
1496
|
}
|
|
1497
1497
|
} finally {
|
|
1498
|
-
e[
|
|
1498
|
+
e[ir] = t, delete e.currentTarget, K(u), Ln(d);
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
var
|
|
1503
|
-
function dr(e) {
|
|
1504
|
-
return ur?.createHTML(e) ?? e;
|
|
1505
|
-
}
|
|
1502
|
+
var dr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1506
1503
|
function fr(e) {
|
|
1504
|
+
return dr?.createHTML(e) ?? e;
|
|
1505
|
+
}
|
|
1506
|
+
function pr(e) {
|
|
1507
1507
|
var t = an("template");
|
|
1508
|
-
return t.innerHTML =
|
|
1508
|
+
return t.innerHTML = fr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1511
|
-
var n =
|
|
1510
|
+
function mr(e, t) {
|
|
1511
|
+
var n = q;
|
|
1512
1512
|
n.nodes === null && (n.nodes = {
|
|
1513
1513
|
start: e,
|
|
1514
1514
|
end: t,
|
|
@@ -1517,105 +1517,105 @@ function pr(e, t) {
|
|
|
1517
1517
|
});
|
|
1518
1518
|
}
|
|
1519
1519
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1520
|
-
function
|
|
1520
|
+
function hr(e, t) {
|
|
1521
1521
|
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1522
1522
|
return () => {
|
|
1523
|
-
if (
|
|
1524
|
-
i === void 0 && (i =
|
|
1525
|
-
var t = r ||
|
|
1523
|
+
if (P) return mr(I, null), I;
|
|
1524
|
+
i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(i)));
|
|
1525
|
+
var t = r || Kt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1526
1526
|
if (n) {
|
|
1527
1527
|
var o = /* @__PURE__ */ Zt(t), s = t.lastChild;
|
|
1528
|
-
|
|
1529
|
-
} else
|
|
1528
|
+
mr(o, s);
|
|
1529
|
+
} else mr(t, t);
|
|
1530
1530
|
return t;
|
|
1531
1531
|
};
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
if (
|
|
1535
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1536
|
-
return e.append(t, n),
|
|
1533
|
+
function gr() {
|
|
1534
|
+
if (P) return mr(I, null), I;
|
|
1535
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = Xt();
|
|
1536
|
+
return e.append(t, n), mr(t, n), e;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
if (
|
|
1540
|
-
var n =
|
|
1541
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1538
|
+
function Z(e, t) {
|
|
1539
|
+
if (P) {
|
|
1540
|
+
var n = q;
|
|
1541
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), ke();
|
|
1542
1542
|
return;
|
|
1543
1543
|
}
|
|
1544
1544
|
e !== null && e.before(t);
|
|
1545
1545
|
}
|
|
1546
1546
|
[.../* @__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(".")];
|
|
1547
|
-
var
|
|
1548
|
-
function
|
|
1549
|
-
return
|
|
1550
|
-
}
|
|
1551
|
-
function vr(e, t) {
|
|
1552
|
-
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1553
|
-
n !== (e[pe] ??= e.nodeValue) && (e[pe] = n, e.nodeValue = `${n}`);
|
|
1547
|
+
var _r = ["touchstart", "touchmove"];
|
|
1548
|
+
function vr(e) {
|
|
1549
|
+
return _r.includes(e);
|
|
1554
1550
|
}
|
|
1555
1551
|
function yr(e, t) {
|
|
1556
|
-
|
|
1552
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1553
|
+
n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
|
|
1557
1554
|
}
|
|
1558
1555
|
function br(e, t) {
|
|
1559
|
-
|
|
1560
|
-
|
|
1556
|
+
return Cr(e, t);
|
|
1557
|
+
}
|
|
1558
|
+
function xr(e, t) {
|
|
1559
|
+
Yt(), t.intro = t.intro ?? !1;
|
|
1560
|
+
let n = t.target, r = P, i = I;
|
|
1561
1561
|
try {
|
|
1562
1562
|
for (var a = /* @__PURE__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
|
|
1563
1563
|
if (!a) throw o;
|
|
1564
|
-
|
|
1565
|
-
let r =
|
|
1564
|
+
F(!0), L(a);
|
|
1565
|
+
let r = Cr(e, {
|
|
1566
1566
|
...t,
|
|
1567
1567
|
anchor: a
|
|
1568
1568
|
});
|
|
1569
|
-
return
|
|
1569
|
+
return F(!1), r;
|
|
1570
1570
|
} catch (r) {
|
|
1571
1571
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1572
|
-
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 &&
|
|
1572
|
+
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && be(), Yt(), nn(n), F(!1), br(e, t);
|
|
1573
1573
|
} finally {
|
|
1574
|
-
|
|
1574
|
+
F(r), L(i);
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1577
|
+
var Sr = /* @__PURE__ */ new Map();
|
|
1578
|
+
function Cr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
|
|
1579
|
+
Yt();
|
|
1580
1580
|
var l = void 0, u = hn(() => {
|
|
1581
|
-
var s = n ?? t.appendChild(
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
var n =
|
|
1585
|
-
if (a && (n.c = a), i && (r.$$events = i),
|
|
1586
|
-
|
|
1581
|
+
var s = n ?? t.appendChild(Xt());
|
|
1582
|
+
nt(s, { pending: () => {} }, (t) => {
|
|
1583
|
+
Re({});
|
|
1584
|
+
var n = R;
|
|
1585
|
+
if (a && (n.c = a), i && (r.$$events = i), P && mr(t, null), l = e(t, r) || {}, P && (q.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw De(), o;
|
|
1586
|
+
ze();
|
|
1587
1587
|
}, c);
|
|
1588
1588
|
var u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
1589
1589
|
for (var n = 0; n < e.length; n++) {
|
|
1590
1590
|
var r = e[n];
|
|
1591
1591
|
if (!u.has(r)) {
|
|
1592
1592
|
u.add(r);
|
|
1593
|
-
var i =
|
|
1593
|
+
var i = vr(r);
|
|
1594
1594
|
for (let e of [t, document]) {
|
|
1595
|
-
var a =
|
|
1596
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1595
|
+
var a = Sr.get(e);
|
|
1596
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Sr.set(e, a));
|
|
1597
1597
|
var o = a.get(r);
|
|
1598
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1598
|
+
o === void 0 ? (e.addEventListener(r, ur, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
|
-
return d(f(
|
|
1603
|
+
return d(f(ar)), or.add(d), () => {
|
|
1604
1604
|
for (var e of u) for (let n of [t, document]) {
|
|
1605
|
-
var r =
|
|
1606
|
-
--i == 0 ? (n.removeEventListener(e,
|
|
1605
|
+
var r = Sr.get(n), i = r.get(e);
|
|
1606
|
+
--i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Sr.delete(n)) : r.set(e, i);
|
|
1607
1607
|
}
|
|
1608
|
-
|
|
1608
|
+
or.delete(d), s !== n && s.parentNode?.removeChild(s);
|
|
1609
1609
|
};
|
|
1610
1610
|
});
|
|
1611
|
-
return
|
|
1611
|
+
return wr.set(l, u), l;
|
|
1612
1612
|
}
|
|
1613
|
-
var
|
|
1614
|
-
function
|
|
1615
|
-
let n =
|
|
1616
|
-
return n ? (
|
|
1613
|
+
var wr = /* @__PURE__ */ new WeakMap();
|
|
1614
|
+
function Tr(e, t) {
|
|
1615
|
+
let n = wr.get(e);
|
|
1616
|
+
return n ? (wr.delete(e), n(t)) : Promise.resolve();
|
|
1617
1617
|
}
|
|
1618
|
-
var
|
|
1618
|
+
var Er = class {
|
|
1619
1619
|
anchor;
|
|
1620
1620
|
#e = /* @__PURE__ */ new Map();
|
|
1621
1621
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1628,65 +1628,65 @@ var Tr = class {
|
|
|
1628
1628
|
#a = (e) => {
|
|
1629
1629
|
if (this.#e.has(e)) {
|
|
1630
1630
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1631
|
-
if (n)
|
|
1631
|
+
if (n) kn(n), this.#r.delete(t);
|
|
1632
1632
|
else {
|
|
1633
1633
|
var r = this.#n.get(t);
|
|
1634
|
-
r && (
|
|
1634
|
+
r && (kn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1635
1635
|
}
|
|
1636
1636
|
for (let [t, n] of this.#e) {
|
|
1637
1637
|
if (this.#e.delete(t), t === e) break;
|
|
1638
1638
|
let r = this.#n.get(n);
|
|
1639
|
-
r && (
|
|
1639
|
+
r && (W(r.effect), this.#n.delete(n));
|
|
1640
1640
|
}
|
|
1641
1641
|
for (let [e, r] of this.#t) {
|
|
1642
1642
|
if (e === t || this.#r.has(e)) continue;
|
|
1643
1643
|
let i = () => {
|
|
1644
1644
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1645
1645
|
var t = document.createDocumentFragment();
|
|
1646
|
-
|
|
1646
|
+
jn(r, t), t.append(Xt()), this.#n.set(e, {
|
|
1647
1647
|
effect: r,
|
|
1648
1648
|
fragment: t
|
|
1649
1649
|
});
|
|
1650
|
-
} else
|
|
1650
|
+
} else W(r);
|
|
1651
1651
|
this.#r.delete(e), this.#t.delete(e);
|
|
1652
1652
|
};
|
|
1653
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1653
|
+
this.#i || !n ? (this.#r.add(e), Dn(r, i, !1)) : i();
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
};
|
|
1657
1657
|
#o = (e) => {
|
|
1658
1658
|
this.#e.delete(e);
|
|
1659
1659
|
let t = Array.from(this.#e.values());
|
|
1660
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1660
|
+
for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
|
|
1661
1661
|
};
|
|
1662
1662
|
ensure(e, t) {
|
|
1663
|
-
var n =
|
|
1663
|
+
var n = V, r = rn();
|
|
1664
1664
|
if (t && !this.#t.has(e) && !this.#n.has(e)) {
|
|
1665
1665
|
if (r) {
|
|
1666
|
-
var i = document.createDocumentFragment(), a =
|
|
1666
|
+
var i = document.createDocumentFragment(), a = Xt();
|
|
1667
1667
|
i.append(a), this.#n.set(e, {
|
|
1668
|
-
effect:
|
|
1668
|
+
effect: xn(() => t(a)),
|
|
1669
1669
|
fragment: i
|
|
1670
1670
|
});
|
|
1671
|
-
} else this.#t.set(e,
|
|
1671
|
+
} else this.#t.set(e, xn(() => t(this.anchor)));
|
|
1672
1672
|
}
|
|
1673
1673
|
if (this.#e.set(n, e), r) {
|
|
1674
1674
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1675
1675
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1676
1676
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1677
|
-
} else
|
|
1677
|
+
} else P && (this.anchor = I), this.#a(n);
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
|
-
function
|
|
1680
|
+
function Dr(e, t, n = !1) {
|
|
1681
1681
|
var r;
|
|
1682
|
-
|
|
1683
|
-
var i = new
|
|
1682
|
+
P && (r = I, ke());
|
|
1683
|
+
var i = new Er(e), a = n ? D : 0;
|
|
1684
1684
|
function o(e, t) {
|
|
1685
|
-
if (
|
|
1686
|
-
var n =
|
|
1685
|
+
if (P) {
|
|
1686
|
+
var n = Ne(r);
|
|
1687
1687
|
if (e !== parseInt(n.substring(1))) {
|
|
1688
|
-
var a =
|
|
1689
|
-
|
|
1688
|
+
var a = Me();
|
|
1689
|
+
L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
@@ -1699,14 +1699,14 @@ function Er(e, t, n = !1) {
|
|
|
1699
1699
|
}), e || o(-1, null);
|
|
1700
1700
|
}, a);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Or(e, t, n) {
|
|
1703
1703
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1704
1704
|
let n = t[s];
|
|
1705
|
-
|
|
1705
|
+
Dn(n, () => {
|
|
1706
1706
|
if (a) {
|
|
1707
1707
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1708
1708
|
var t = e.outrogroups;
|
|
1709
|
-
|
|
1709
|
+
kr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1710
1710
|
}
|
|
1711
1711
|
} else --o;
|
|
1712
1712
|
}, !1);
|
|
@@ -1717,13 +1717,13 @@ function Dr(e, t, n) {
|
|
|
1717
1717
|
var l = n, u = l.parentNode;
|
|
1718
1718
|
nn(u), u.append(l), e.items.clear();
|
|
1719
1719
|
}
|
|
1720
|
-
|
|
1720
|
+
kr(e, t, !c);
|
|
1721
1721
|
} else a = {
|
|
1722
1722
|
pending: new Set(t),
|
|
1723
1723
|
done: /* @__PURE__ */ new Set()
|
|
1724
1724
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function kr(e, t, n = !0) {
|
|
1727
1727
|
var r;
|
|
1728
1728
|
if (e.pending.size > 0) {
|
|
1729
1729
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1731,23 +1731,23 @@ function Or(e, t, n = !0) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
for (var i = 0; i < t.length; i++) {
|
|
1733
1733
|
var a = t[i];
|
|
1734
|
-
r?.has(a) ? (a.f |=
|
|
1734
|
+
r?.has(a) ? (a.f |= k, jn(a, document.createDocumentFragment())) : W(t[i], n);
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
function
|
|
1737
|
+
var Ar;
|
|
1738
|
+
function jr(e, t, n, r, i, a = null) {
|
|
1739
1739
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1740
1740
|
if (t & 4) {
|
|
1741
1741
|
var c = e;
|
|
1742
|
-
o =
|
|
1742
|
+
o = P ? L(/* @__PURE__ */ Zt(c)) : c.appendChild(Xt());
|
|
1743
1743
|
}
|
|
1744
|
-
|
|
1745
|
-
var u = null, d = /* @__PURE__ */
|
|
1744
|
+
P && ke();
|
|
1745
|
+
var u = null, d = /* @__PURE__ */ dt(() => {
|
|
1746
1746
|
var e = n();
|
|
1747
1747
|
return l(e) ? e : e == null ? [] : f(e);
|
|
1748
1748
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1749
1749
|
function g(e) {
|
|
1750
|
-
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u,
|
|
1750
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Nr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Fr(u, null, o)) : kn(u) : Dn(u, () => {
|
|
1751
1751
|
u = null;
|
|
1752
1752
|
})));
|
|
1753
1753
|
}
|
|
@@ -1756,22 +1756,22 @@ function Ar(e, t, n, r, i, a = null) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
var v = {
|
|
1758
1758
|
effect: bn(() => {
|
|
1759
|
-
p =
|
|
1759
|
+
p = X(d);
|
|
1760
1760
|
var e = p.length;
|
|
1761
1761
|
let c = !1;
|
|
1762
|
-
|
|
1763
|
-
for (var l = /* @__PURE__ */ new Set(), f =
|
|
1764
|
-
|
|
1765
|
-
var
|
|
1766
|
-
|
|
1762
|
+
P && Ne(o) === "[!" != (e === 0) && (o = Me(), L(o), F(!1), c = !0);
|
|
1763
|
+
for (var l = /* @__PURE__ */ new Set(), f = V, v = rn(), y = 0; y < e; y += 1) {
|
|
1764
|
+
P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
|
|
1765
|
+
var b = p[y], x = r(b, y), S = h ? null : s.get(x);
|
|
1766
|
+
S ? (S.v && Bt(S.v, b), S.i && Bt(S.i, y), v && f.unskip_effect(S.e)) : (S = Pr(s, h ? o : Ar ??= Xt(), b, x, y, i, t, n), h || (S.e.f |= k), s.set(x, S)), l.add(x);
|
|
1767
1767
|
}
|
|
1768
|
-
if (e === 0 && a && !u && (h ? u =
|
|
1768
|
+
if (e === 0 && a && !u && (h ? u = xn(() => a(o)) : (u = xn(() => a(Ar ??= Xt())), u.f |= k)), e > l.size && he("", "", ""), P && e > 0 && L(Me()), !h) {
|
|
1769
1769
|
if (m.set(f, l), v) {
|
|
1770
1770
|
for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
|
|
1771
1771
|
f.oncommit(g), f.ondiscard(_);
|
|
1772
1772
|
} else g(f);
|
|
1773
1773
|
}
|
|
1774
|
-
c &&
|
|
1774
|
+
c && F(!0), X(d);
|
|
1775
1775
|
}),
|
|
1776
1776
|
flags: t,
|
|
1777
1777
|
items: s,
|
|
@@ -1779,85 +1779,85 @@ function Ar(e, t, n, r, i, a = null) {
|
|
|
1779
1779
|
outrogroups: null,
|
|
1780
1780
|
fallback: u
|
|
1781
1781
|
};
|
|
1782
|
-
h = !1,
|
|
1782
|
+
h = !1, P && (o = I);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Mr(e) {
|
|
1785
1785
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1786
1786
|
return e;
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1789
|
-
var a = !!(r & 8), o = t.length, s = e.items, c =
|
|
1788
|
+
function Nr(e, t, n, r, i) {
|
|
1789
|
+
var a = !!(r & 8), o = t.length, s = e.items, c = Mr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
|
|
1790
1790
|
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(_));
|
|
1791
1791
|
for (v = 0; v < o; v += 1) {
|
|
1792
1792
|
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(_);
|
|
1793
|
-
if (_.f & 8192 && (
|
|
1794
|
-
if (_.f ^=
|
|
1793
|
+
if (_.f & 8192 && (kn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
|
|
1794
|
+
if (_.f ^= k, _ === c) Fr(_, null, n);
|
|
1795
1795
|
else {
|
|
1796
1796
|
var y = u ? u.next : c;
|
|
1797
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev),
|
|
1797
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Ir(e, u, _), Ir(e, _, y), Fr(_, y, n), u = _, p = [], m = [], c = Mr(u.next);
|
|
1798
1798
|
continue;
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
if (_ !== c) {
|
|
1802
1802
|
if (l !== void 0 && l.has(_)) {
|
|
1803
1803
|
if (p.length < m.length) {
|
|
1804
|
-
var
|
|
1805
|
-
u =
|
|
1806
|
-
var
|
|
1807
|
-
for (
|
|
1808
|
-
for (
|
|
1809
|
-
|
|
1810
|
-
} else l.delete(_),
|
|
1804
|
+
var b = m[0], x;
|
|
1805
|
+
u = b.prev;
|
|
1806
|
+
var S = p[0], ee = p[p.length - 1];
|
|
1807
|
+
for (x = 0; x < p.length; x += 1) Fr(p[x], b, n);
|
|
1808
|
+
for (x = 0; x < m.length; x += 1) l.delete(m[x]);
|
|
1809
|
+
Ir(e, S.prev, ee.next), Ir(e, u, S), Ir(e, ee, b), c = b, u = ee, --v, p = [], m = [];
|
|
1810
|
+
} else l.delete(_), Fr(_, c, n), Ir(e, _.prev, _.next), Ir(e, _, u === null ? e.effect.first : u.next), Ir(e, u, _), u = _;
|
|
1811
1811
|
continue;
|
|
1812
1812
|
}
|
|
1813
|
-
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c =
|
|
1813
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Mr(c.next);
|
|
1814
1814
|
if (c === null) continue;
|
|
1815
1815
|
}
|
|
1816
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1816
|
+
_.f & 33554432 || p.push(_), u = _, c = Mr(_.next);
|
|
1817
1817
|
}
|
|
1818
1818
|
if (e.outrogroups !== null) {
|
|
1819
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1819
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (kr(e, f(t.done)), e.outrogroups?.delete(t));
|
|
1820
1820
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1821
1821
|
}
|
|
1822
1822
|
if (c !== null || l !== void 0) {
|
|
1823
|
-
var
|
|
1824
|
-
if (l !== void 0) for (_ of l) _.f & 8192 ||
|
|
1825
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback &&
|
|
1826
|
-
var
|
|
1827
|
-
if (
|
|
1828
|
-
var
|
|
1823
|
+
var C = [];
|
|
1824
|
+
if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
|
|
1825
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Mr(c.next);
|
|
1826
|
+
var w = C.length;
|
|
1827
|
+
if (w > 0) {
|
|
1828
|
+
var te = r & 4 && o === 0 ? n : null;
|
|
1829
1829
|
if (a) {
|
|
1830
|
-
for (v = 0; v <
|
|
1831
|
-
for (v = 0; v <
|
|
1830
|
+
for (v = 0; v < w; v += 1) C[v].nodes?.a?.measure();
|
|
1831
|
+
for (v = 0; v < w; v += 1) C[v].nodes?.a?.fix();
|
|
1832
1832
|
}
|
|
1833
|
-
|
|
1833
|
+
Or(e, C, te);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
|
-
a &&
|
|
1836
|
+
a && Ue(() => {
|
|
1837
1837
|
if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1841
|
-
var c = o & 1 ? o & 16 ?
|
|
1840
|
+
function Pr(e, t, n, r, i, a, o, s) {
|
|
1841
|
+
var c = o & 1 ? o & 16 ? Rt(n) : /* @__PURE__ */ zt(n, !1, !1) : null, l = o & 2 ? Rt(i) : null;
|
|
1842
1842
|
return {
|
|
1843
1843
|
v: c,
|
|
1844
1844
|
i: l,
|
|
1845
|
-
e:
|
|
1845
|
+
e: xn(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1846
1846
|
e.delete(r);
|
|
1847
1847
|
}))
|
|
1848
1848
|
};
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function Fr(e, t, n) {
|
|
1851
1851
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1852
1852
|
var o = /* @__PURE__ */ Qt(r);
|
|
1853
1853
|
if (a.before(r), r === i) return;
|
|
1854
1854
|
r = o;
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function Ir(e, t, n) {
|
|
1858
1858
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Lr(e, t) {
|
|
1861
1861
|
gn(() => {
|
|
1862
1862
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1863
1863
|
if (!r.querySelector("#" + t.hash)) {
|
|
@@ -1866,32 +1866,32 @@ function Ir(e, t) {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
});
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function Rr(e, t, n) {
|
|
1870
1870
|
gn(() => {
|
|
1871
|
-
var r =
|
|
1871
|
+
var r = tr(() => t(e, n?.()) || {});
|
|
1872
1872
|
if (n && r?.update) {
|
|
1873
1873
|
var i = !1, a = {};
|
|
1874
1874
|
vn(() => {
|
|
1875
1875
|
var e = n();
|
|
1876
|
-
|
|
1876
|
+
nr(e), i && Fe(a, e) && (a = e, r.update(e));
|
|
1877
1877
|
}), i = !0;
|
|
1878
1878
|
}
|
|
1879
1879
|
if (r?.destroy) return () => r.destroy();
|
|
1880
1880
|
});
|
|
1881
1881
|
}
|
|
1882
|
-
var
|
|
1883
|
-
function
|
|
1882
|
+
var zr = [..." \n\r\f\xA0\v"];
|
|
1883
|
+
function Br(e, t, n) {
|
|
1884
1884
|
var r = e == null ? "" : "" + e;
|
|
1885
1885
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1886
1886
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1887
1887
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1888
1888
|
var s = o + a;
|
|
1889
|
-
(o === 0 ||
|
|
1889
|
+
(o === 0 || zr.includes(r[o - 1])) && (s === r.length || zr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
return r === "" ? null : r;
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function Vr(e, t = !1) {
|
|
1895
1895
|
var n = t ? " !important;" : ";", r = "";
|
|
1896
1896
|
for (var i of Object.keys(e)) {
|
|
1897
1897
|
var a = e[i];
|
|
@@ -1899,16 +1899,16 @@ function Br(e, t = !1) {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
return r;
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Hr(e) {
|
|
1903
1903
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Ur(e, t) {
|
|
1906
1906
|
if (t) {
|
|
1907
1907
|
var n = "", r, i;
|
|
1908
1908
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
1909
1909
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1910
1910
|
var a = !1, o = 0, s = !1, c = [];
|
|
1911
|
-
r && c.push(...Object.keys(r).map(
|
|
1911
|
+
r && c.push(...Object.keys(r).map(Hr)), i && c.push(...Object.keys(i).map(Hr));
|
|
1912
1912
|
var l = 0, u = -1;
|
|
1913
1913
|
let t = e.length;
|
|
1914
1914
|
for (var d = 0; d < t; d++) {
|
|
@@ -1917,7 +1917,7 @@ function Hr(e, t) {
|
|
|
1917
1917
|
if (f === ":" && u === -1) u = d;
|
|
1918
1918
|
else if (f === ";" || d === t - 1) {
|
|
1919
1919
|
if (u !== -1) {
|
|
1920
|
-
var p =
|
|
1920
|
+
var p = Hr(e.substring(l, u).trim());
|
|
1921
1921
|
if (!c.includes(p)) {
|
|
1922
1922
|
f !== ";" && d++;
|
|
1923
1923
|
var m = e.substring(l, d).trim();
|
|
@@ -1929,54 +1929,54 @@ function Hr(e, t) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
return r && (n +=
|
|
1932
|
+
return r && (n += Vr(r)), i && (n += Vr(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
1933
1933
|
}
|
|
1934
1934
|
return e == null ? null : String(e);
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1937
|
-
var o = e[
|
|
1938
|
-
if (
|
|
1939
|
-
var s =
|
|
1940
|
-
(!
|
|
1936
|
+
function Wr(e, t, n, r, i, a) {
|
|
1937
|
+
var o = e[le];
|
|
1938
|
+
if (P || o !== n || o === void 0) {
|
|
1939
|
+
var s = Br(n, r, a);
|
|
1940
|
+
(!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[le] = n;
|
|
1941
1941
|
} else if (a && i !== a) for (var c in a) {
|
|
1942
1942
|
var l = !!a[c];
|
|
1943
1943
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
1944
1944
|
}
|
|
1945
1945
|
return a;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Gr(e, t = {}, n, r) {
|
|
1948
1948
|
for (var i in n) {
|
|
1949
1949
|
var a = n[i];
|
|
1950
1950
|
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1954
|
-
var i = e[
|
|
1955
|
-
if (
|
|
1956
|
-
var a =
|
|
1957
|
-
(!
|
|
1958
|
-
} else r && (Array.isArray(r) ? (
|
|
1953
|
+
function Kr(e, t, n, r) {
|
|
1954
|
+
var i = e[ue];
|
|
1955
|
+
if (P || i !== t) {
|
|
1956
|
+
var a = Ur(t, r);
|
|
1957
|
+
(!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ue] = t;
|
|
1958
|
+
} else r && (Array.isArray(r) ? (Gr(e, n?.[0], r[0]), Gr(e, n?.[1], r[1], "important")) : Gr(e, n, r));
|
|
1959
1959
|
return r;
|
|
1960
1960
|
}
|
|
1961
|
-
var
|
|
1962
|
-
function
|
|
1961
|
+
var qr = Symbol("is custom element"), Jr = Symbol("is html"), Yr = pe ? "link" : "LINK";
|
|
1962
|
+
function Q(e, t, n, r) {
|
|
1963
1963
|
var i = Zr(e);
|
|
1964
|
-
|
|
1964
|
+
P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Yr) || i[t] !== (i[t] = n) && (t === "loading" && (e[N] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && $r(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1965
1965
|
}
|
|
1966
1966
|
function Xr(e, t, n) {
|
|
1967
|
-
var r =
|
|
1968
|
-
let a =
|
|
1969
|
-
|
|
1967
|
+
var r = G, i = q;
|
|
1968
|
+
let a = P;
|
|
1969
|
+
P && F(!1), K(null), Ln(null);
|
|
1970
1970
|
try {
|
|
1971
|
-
t !== "style" && (Qr.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? $r(e).includes(t) : n && typeof n == "object") ? e[t] = n :
|
|
1971
|
+
t !== "style" && (Qr.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? $r(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
|
|
1972
1972
|
} finally {
|
|
1973
|
-
|
|
1973
|
+
K(r), Ln(i), a && F(!0);
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
function Zr(e) {
|
|
1977
|
-
return e[
|
|
1978
|
-
[
|
|
1979
|
-
[
|
|
1977
|
+
return e[ce] ??= {
|
|
1978
|
+
[qr]: e.nodeName.includes("-"),
|
|
1979
|
+
[Jr]: e.namespaceURI === c
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
1982
|
var Qr = /* @__PURE__ */ new Map();
|
|
@@ -1991,14 +1991,14 @@ function $r(e) {
|
|
|
1991
1991
|
return n;
|
|
1992
1992
|
}
|
|
1993
1993
|
function ei(e, t) {
|
|
1994
|
-
return e === t || e?.[
|
|
1994
|
+
return e === t || e?.[j] === t;
|
|
1995
1995
|
}
|
|
1996
1996
|
function ti(e = {}, t, n, r) {
|
|
1997
|
-
var i =
|
|
1997
|
+
var i = R.r, a = q;
|
|
1998
1998
|
return gn(() => {
|
|
1999
1999
|
var o, s;
|
|
2000
2000
|
return vn(() => {
|
|
2001
|
-
o = s, s = r?.() || [],
|
|
2001
|
+
o = s, s = r?.() || [], tr(() => {
|
|
2002
2002
|
ei(n(...s), e) || (t(e, ...s), o && ei(n(...o), e) && t(null, ...o));
|
|
2003
2003
|
});
|
|
2004
2004
|
}), () => {
|
|
@@ -2014,14 +2014,14 @@ function ti(e = {}, t, n, r) {
|
|
|
2014
2014
|
}), e;
|
|
2015
2015
|
}
|
|
2016
2016
|
function ni(e, t, n, r) {
|
|
2017
|
-
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */
|
|
2017
|
+
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ct(r), X(l)) : (c && (c = !1, s = o ? tr(r) : r), s);
|
|
2018
2018
|
let d;
|
|
2019
2019
|
if (a) {
|
|
2020
|
-
var f =
|
|
2020
|
+
var f = j in e || M in e;
|
|
2021
2021
|
d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2022
2022
|
}
|
|
2023
2023
|
var p, m = !1;
|
|
2024
|
-
a ? [p, m] =
|
|
2024
|
+
a ? [p, m] = Qe(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xe(t), d(p)));
|
|
2025
2025
|
var g = i ? () => {
|
|
2026
2026
|
var n = e[t];
|
|
2027
2027
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2036,15 +2036,15 @@ function ni(e, t, n, r) {
|
|
|
2036
2036
|
return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
|
-
var v = !1, y = (n & 1 ?
|
|
2040
|
-
a &&
|
|
2041
|
-
var
|
|
2039
|
+
var v = !1, y = (n & 1 ? ct : dt)(() => (v = !1, g()));
|
|
2040
|
+
a && X(y);
|
|
2041
|
+
var b = q;
|
|
2042
2042
|
return (function(e, t) {
|
|
2043
2043
|
if (arguments.length > 0) {
|
|
2044
|
-
let n = t ?
|
|
2045
|
-
return
|
|
2044
|
+
let n = t ? X(y) : i && a ? Wt(e) : e;
|
|
2045
|
+
return U(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2046
2046
|
}
|
|
2047
|
-
return
|
|
2047
|
+
return Pn && v || b.f & 16384 ? y.v : X(y);
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
function ri(e) {
|
|
@@ -2055,7 +2055,7 @@ var ii = class {
|
|
|
2055
2055
|
#t;
|
|
2056
2056
|
constructor(e) {
|
|
2057
2057
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2058
|
-
var r = /* @__PURE__ */
|
|
2058
|
+
var r = /* @__PURE__ */ zt(n, !1, !1);
|
|
2059
2059
|
return t.set(e, r), r;
|
|
2060
2060
|
};
|
|
2061
2061
|
let r = new Proxy({
|
|
@@ -2063,16 +2063,16 @@ var ii = class {
|
|
|
2063
2063
|
$$events: {}
|
|
2064
2064
|
}, {
|
|
2065
2065
|
get(e, r) {
|
|
2066
|
-
return
|
|
2066
|
+
return X(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2067
2067
|
},
|
|
2068
2068
|
has(e, r) {
|
|
2069
|
-
return r ===
|
|
2069
|
+
return r === M || (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2070
2070
|
},
|
|
2071
2071
|
set(e, r, i) {
|
|
2072
|
-
return
|
|
2072
|
+
return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2073
2073
|
}
|
|
2074
2074
|
});
|
|
2075
|
-
this.#t = (e.hydrate ?
|
|
2075
|
+
this.#t = (e.hydrate ? xr : br)(e.component, {
|
|
2076
2076
|
target: e.target,
|
|
2077
2077
|
anchor: e.anchor,
|
|
2078
2078
|
props: r,
|
|
@@ -2080,8 +2080,8 @@ var ii = class {
|
|
|
2080
2080
|
intro: e.intro ?? !1,
|
|
2081
2081
|
recover: e.recover,
|
|
2082
2082
|
transformError: e.transformError
|
|
2083
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
2084
|
-
for (let e of Object.keys(this.#t)) e
|
|
2083
|
+
}), (!e?.props?.$$host || e.sync === !1) && Ot(), this.#e = r.$$events;
|
|
2084
|
+
for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && m(this, e, {
|
|
2085
2085
|
get() {
|
|
2086
2086
|
return this.#t[e];
|
|
2087
2087
|
},
|
|
@@ -2093,7 +2093,7 @@ var ii = class {
|
|
|
2093
2093
|
this.#t.$set = (e) => {
|
|
2094
2094
|
Object.assign(r, e);
|
|
2095
2095
|
}, this.#t.$destroy = () => {
|
|
2096
|
-
|
|
2096
|
+
Tr(this.#t);
|
|
2097
2097
|
};
|
|
2098
2098
|
}
|
|
2099
2099
|
$set(e) {
|
|
@@ -2144,7 +2144,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2144
2144
|
function e(e) {
|
|
2145
2145
|
return (t) => {
|
|
2146
2146
|
let n = an("slot");
|
|
2147
|
-
e !== "default" && (n.name = e),
|
|
2147
|
+
e !== "default" && (n.name = e), Z(t, n);
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
2150
|
let t = {}, n = si(this);
|
|
@@ -2368,7 +2368,7 @@ var ji = class extends HTMLElement {
|
|
|
2368
2368
|
static finalizeStyles(e) {
|
|
2369
2369
|
let t = [];
|
|
2370
2370
|
if (Array.isArray(e)) {
|
|
2371
|
-
let n = new Set(e.flat(
|
|
2371
|
+
let n = new Set(e.flat(1 / 0).reverse());
|
|
2372
2372
|
for (let e of n) t.unshift(gi(e));
|
|
2373
2373
|
} else e !== void 0 && t.push(gi(e));
|
|
2374
2374
|
return t;
|
|
@@ -3037,31 +3037,783 @@ function Oa(e, t, n) {
|
|
|
3037
3037
|
return Math.max(n, Math.min(1, t / e));
|
|
3038
3038
|
}
|
|
3039
3039
|
function ka(e) {
|
|
3040
|
-
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */
|
|
3040
|
+
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ H(1), i = /* @__PURE__ */ H(1);
|
|
3041
3041
|
function a() {
|
|
3042
3042
|
let e = Da(window.outerWidth, window.innerWidth);
|
|
3043
|
-
|
|
3043
|
+
U(i, e, !0), U(r, Oa(e, t, n), !0);
|
|
3044
3044
|
}
|
|
3045
3045
|
return fn(() => {
|
|
3046
3046
|
if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
3047
3047
|
}), {
|
|
3048
3048
|
get current() {
|
|
3049
|
-
return
|
|
3049
|
+
return X(r);
|
|
3050
3050
|
},
|
|
3051
3051
|
get zoom() {
|
|
3052
|
-
return
|
|
3052
|
+
return X(i);
|
|
3053
|
+
}
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
function Aa(e) {
|
|
3057
|
+
return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
|
|
3058
|
+
}
|
|
3059
|
+
function ja(e) {
|
|
3060
|
+
let t = Aa(e);
|
|
3061
|
+
if (!t) return [];
|
|
3062
|
+
let n = t.split("-"), r = [];
|
|
3063
|
+
for (let e = n.length; e > 0; e--) {
|
|
3064
|
+
let t = n.slice(0, e);
|
|
3065
|
+
t.length > 1 && t[t.length - 1].length === 1 || r.push(t.join("-"));
|
|
3066
|
+
}
|
|
3067
|
+
return r;
|
|
3068
|
+
}
|
|
3069
|
+
function Ma(e, t) {
|
|
3070
|
+
for (let n of ja(e)) {
|
|
3071
|
+
let e = t.find((e) => Aa(e) === n);
|
|
3072
|
+
if (e != null) return e;
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
var Na = {
|
|
3076
|
+
common: {
|
|
3077
|
+
close: "Close",
|
|
3078
|
+
cancel: "Cancel",
|
|
3079
|
+
save: "Save",
|
|
3080
|
+
reset: "Reset",
|
|
3081
|
+
retry: "Retry",
|
|
3082
|
+
back: "Back",
|
|
3083
|
+
next: "Next",
|
|
3084
|
+
previous: "Previous",
|
|
3085
|
+
submit: "Submit",
|
|
3086
|
+
continue: "Continue",
|
|
3087
|
+
finish: "Finish",
|
|
3088
|
+
yes: "Yes",
|
|
3089
|
+
no: "No",
|
|
3090
|
+
ok: "OK",
|
|
3091
|
+
any: "Any",
|
|
3092
|
+
off: "Off",
|
|
3093
|
+
auto: "Auto",
|
|
3094
|
+
all: "All",
|
|
3095
|
+
none: "None",
|
|
3096
|
+
loading: "Loading…",
|
|
3097
|
+
error: "Error",
|
|
3098
|
+
settings: "Settings",
|
|
3099
|
+
language: "Language",
|
|
3100
|
+
theme: "Theme",
|
|
3101
|
+
preview: "Preview",
|
|
3102
|
+
author: "Author",
|
|
3103
|
+
unknown: "Unknown",
|
|
3104
|
+
untitled: "Untitled",
|
|
3105
|
+
apply: "Apply",
|
|
3106
|
+
enabled: "Enabled",
|
|
3107
|
+
disabled: "Disabled",
|
|
3108
|
+
closeA11y: "Close",
|
|
3109
|
+
settingsA11y: "Open settings menu"
|
|
3110
|
+
},
|
|
3111
|
+
player: {
|
|
3112
|
+
passage: "Passage",
|
|
3113
|
+
passages: "Passages",
|
|
3114
|
+
question: "Question",
|
|
3115
|
+
questionNumbered: "Question {position}",
|
|
3116
|
+
questions: "Questions",
|
|
3117
|
+
items: "Items",
|
|
3118
|
+
section: "Section",
|
|
3119
|
+
loadingSection: "Loading section content…",
|
|
3120
|
+
loadingPassage: "Loading passage content…",
|
|
3121
|
+
configurationError: "Configuration Error",
|
|
3122
|
+
playerError: "Player Error",
|
|
3123
|
+
authoringBackendError: "Authoring Backend Configuration Error",
|
|
3124
|
+
itemLoadError: "Question could not be loaded.",
|
|
3125
|
+
sectionTabsA11y: "Section content tabs",
|
|
3126
|
+
passagesRegionA11y: "Passages",
|
|
3127
|
+
itemsRegionA11y: "Items",
|
|
3128
|
+
sectionToolsA11y: "Section tools",
|
|
3129
|
+
scrollDownA11y: "Scroll down",
|
|
3130
|
+
resizePanels: "Resize panels",
|
|
3131
|
+
resizePassagesAndItemsA11y: "Resize passages and items panels",
|
|
3132
|
+
resizeMediaRegion: "Resize media region",
|
|
3133
|
+
resizeQuestionAndMediaA11y: "Resize question and media panels",
|
|
3134
|
+
resizePassageAndMediaA11y: "Resize passage and media panels",
|
|
3135
|
+
assessment: {
|
|
3136
|
+
sectionPosition: "Section {position} of {total}",
|
|
3137
|
+
noSections: "No sections"
|
|
3138
|
+
},
|
|
3139
|
+
formative: {
|
|
3140
|
+
checkAnswer: "Check answer",
|
|
3141
|
+
tryAgain: "Try again",
|
|
3142
|
+
answerRecorded: "Answer recorded.",
|
|
3143
|
+
correct: "Correct.",
|
|
3144
|
+
partlyCorrect: "Partly correct.",
|
|
3145
|
+
notCorrect: "Not correct.",
|
|
3146
|
+
notAutoScored: "Answer recorded. This question is not scored automatically.",
|
|
3147
|
+
checkFailed: "This question could not be checked. Try again.",
|
|
3148
|
+
triesLeft: {
|
|
3149
|
+
one: "{count} try left.",
|
|
3150
|
+
other: "{count} tries left."
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
timedMedia: {
|
|
3154
|
+
waitingForMedia: "Questions will appear as the media plays.",
|
|
3155
|
+
questionAvailable: "Question {position} is now available.",
|
|
3156
|
+
playbackPaused: "Playback paused. Answer question {position} to continue.",
|
|
3157
|
+
playbackAdvisory: "Answer question {position} before continuing with the media.",
|
|
3158
|
+
playbackReleased: "Answer accepted. Continue playing the media."
|
|
3159
|
+
}
|
|
3160
|
+
},
|
|
3161
|
+
toolkit: {
|
|
3162
|
+
toolsA11y: "Assessment tools",
|
|
3163
|
+
toolbarInitError: "Unable to initialize assessment toolkit.",
|
|
3164
|
+
settingsTitle: "Settings",
|
|
3165
|
+
closeSettingsA11y: "Close settings",
|
|
3166
|
+
dragPanelA11y: "Drag panel",
|
|
3167
|
+
closePanelA11y: "Close panel",
|
|
3168
|
+
resizeWindow: "Resize window",
|
|
3169
|
+
minimize: "Minimize",
|
|
3170
|
+
maximize: "Maximize",
|
|
3171
|
+
minimizePanelA11y: "Minimize panel",
|
|
3172
|
+
maximizePanelA11y: "Maximize panel",
|
|
3173
|
+
window: {
|
|
3174
|
+
moveLeftA11y: "Move tool left",
|
|
3175
|
+
moveRightA11y: "Move tool right",
|
|
3176
|
+
moveUpA11y: "Move tool up",
|
|
3177
|
+
moveDownA11y: "Move tool down",
|
|
3178
|
+
shrinkA11y: "Shrink tool window",
|
|
3179
|
+
growA11y: "Grow tool window",
|
|
3180
|
+
centerA11y: "Center tool window",
|
|
3181
|
+
closeA11y: "Close tool"
|
|
3182
|
+
},
|
|
3183
|
+
announce: {
|
|
3184
|
+
movedUp: "Moved up to {position}",
|
|
3185
|
+
movedDown: "Moved down to {position}",
|
|
3186
|
+
movedLeft: "Moved left to {position}",
|
|
3187
|
+
movedRight: "Moved right to {position}",
|
|
3188
|
+
rotatedTo: "Rotated to {degrees} degrees"
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3191
|
+
tools: {
|
|
3192
|
+
calculator: {
|
|
3193
|
+
name: "Calculator",
|
|
3194
|
+
nameBasic: "Basic Calculator",
|
|
3195
|
+
nameScientific: "Scientific Calculator",
|
|
3196
|
+
nameGraphing: "Graphing Calculator",
|
|
3197
|
+
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3198
|
+
openedBasic: "Basic calculator opened",
|
|
3199
|
+
openedScientific: "Scientific calculator opened",
|
|
3200
|
+
openedGraphing: "Graphing calculator opened",
|
|
3201
|
+
closedBasic: "Basic calculator closed",
|
|
3202
|
+
closedScientific: "Scientific calculator closed",
|
|
3203
|
+
closedGraphing: "Graphing calculator closed",
|
|
3204
|
+
toolA11y: "Calculator tool",
|
|
3205
|
+
loading: "Loading calculator…",
|
|
3206
|
+
providerUnavailable: "The calculator is unavailable."
|
|
3207
|
+
},
|
|
3208
|
+
graph: {
|
|
3209
|
+
name: "Graph",
|
|
3210
|
+
description: "Graphing calculator and coordinate plane",
|
|
3211
|
+
buttonA11y: "Graph, graphing calculator",
|
|
3212
|
+
tooltip: "Graph",
|
|
3213
|
+
toolA11y: "Graph tool — draw points and lines on a coordinate grid",
|
|
3214
|
+
canvasA11y: "Graph canvas — use tools to add points and draw lines",
|
|
3215
|
+
grid: "Grid:",
|
|
3216
|
+
gridOpacityA11y: "Grid opacity",
|
|
3217
|
+
pointA11y: "Graph point {id}",
|
|
3218
|
+
modeSelector: "Selector",
|
|
3219
|
+
modeSelectorHint: "Selector: click and drag points to move them or associated lines.",
|
|
3220
|
+
modePoint: "Point",
|
|
3221
|
+
modePointHint: "Point: click on the grid to add points.",
|
|
3222
|
+
modeLine: "Line",
|
|
3223
|
+
modeLineHint: "Line: click a starting point, then an ending point to draw a line.",
|
|
3224
|
+
modeDelete: "Delete",
|
|
3225
|
+
modeDeleteHint: "Delete: click on a point to delete it and any connected lines."
|
|
3226
|
+
},
|
|
3227
|
+
periodicTable: {
|
|
3228
|
+
name: "Periodic Table",
|
|
3229
|
+
description: "Chemistry periodic table reference",
|
|
3230
|
+
buttonA11y: "Periodic Table, chemistry reference",
|
|
3231
|
+
tooltip: "Periodic Table",
|
|
3232
|
+
toolA11y: "Periodic table — select an element to view its details",
|
|
3233
|
+
elementsA11y: "Periodic table elements",
|
|
3234
|
+
showAllA11y: "Show all elements",
|
|
3235
|
+
allElements: "All Elements",
|
|
3236
|
+
atomicMass: "Atomic Mass",
|
|
3237
|
+
atomicNumber: "Atomic No",
|
|
3238
|
+
electronConfig: "Electron Config",
|
|
3239
|
+
phase: "Phase",
|
|
3240
|
+
filterByA11y: "Filter by {category}",
|
|
3241
|
+
elementA11y: "{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",
|
|
3242
|
+
outsideFilterA11y: ", outside the current filter",
|
|
3243
|
+
category: {
|
|
3244
|
+
unknown: "Unknown",
|
|
3245
|
+
alkaliMetal: "Alkali Metal",
|
|
3246
|
+
alkalineEarthMetal: "Alkaline Earth Metal",
|
|
3247
|
+
transitionMetal: "Transition Metal",
|
|
3248
|
+
postTransitionMetal: "Post-transition Metal",
|
|
3249
|
+
metalloid: "Metalloid",
|
|
3250
|
+
diatomicNonmetal: "Diatomic Nonmetal",
|
|
3251
|
+
polyatomicNonmetal: "Polyatomic Nonmetal",
|
|
3252
|
+
nobleGas: "Noble Gas",
|
|
3253
|
+
lanthanide: "Lanthanide",
|
|
3254
|
+
actinide: "Actinide"
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
ruler: {
|
|
3258
|
+
name: "Ruler",
|
|
3259
|
+
description: "On-screen ruler for measurements",
|
|
3260
|
+
buttonA11y: "Ruler",
|
|
3261
|
+
tooltip: "Ruler",
|
|
3262
|
+
toolA11y: "Draggable and rotatable ruler measurement tool",
|
|
3263
|
+
unitSelectionA11y: "Ruler unit selection",
|
|
3264
|
+
inches: "Inches",
|
|
3265
|
+
centimeters: "Centimeters",
|
|
3266
|
+
inchesInSentence: "inches",
|
|
3267
|
+
centimetersInSentence: "centimeters",
|
|
3268
|
+
switchToInchesA11y: "Switch to inches",
|
|
3269
|
+
switchToCentimetersA11y: "Switch to centimeters",
|
|
3270
|
+
switchedTo: "Switched to {unit}",
|
|
3271
|
+
applicationA11y: "Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",
|
|
3272
|
+
imageAlt: "Ruler showing {unit}"
|
|
3273
|
+
},
|
|
3274
|
+
protractor: {
|
|
3275
|
+
name: "Protractor",
|
|
3276
|
+
description: "On-screen protractor for angle measurements",
|
|
3277
|
+
buttonA11y: "Protractor",
|
|
3278
|
+
tooltip: "Protractor",
|
|
3279
|
+
toolA11y: "Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",
|
|
3280
|
+
roleA11y: "Draggable and rotatable protractor measurement tool",
|
|
3281
|
+
imageAlt: "Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"
|
|
3282
|
+
},
|
|
3283
|
+
dictionary: {
|
|
3284
|
+
name: "Dictionary",
|
|
3285
|
+
description: "Look up word definitions",
|
|
3286
|
+
buttonA11y: "Dictionary, look up word definitions",
|
|
3287
|
+
tooltip: "Dictionary",
|
|
3288
|
+
toolA11y: "Dictionary"
|
|
3289
|
+
},
|
|
3290
|
+
pictureDictionary: {
|
|
3291
|
+
name: "Picture Dictionary",
|
|
3292
|
+
description: "Look up pictures for words",
|
|
3293
|
+
buttonA11y: "Picture Dictionary, look up pictures for words",
|
|
3294
|
+
tooltip: "Picture Dictionary",
|
|
3295
|
+
toolA11y: "Picture Dictionary"
|
|
3296
|
+
},
|
|
3297
|
+
dictionarySpanish: {
|
|
3298
|
+
name: "Spanish Dictionary",
|
|
3299
|
+
description: "Look up word definitions in Spanish",
|
|
3300
|
+
buttonA11y: "Spanish Dictionary, look up word definitions in Spanish",
|
|
3301
|
+
tooltip: "Spanish Dictionary",
|
|
3302
|
+
toolA11y: "Spanish Dictionary"
|
|
3303
|
+
},
|
|
3304
|
+
pictureDictionarySpanish: {
|
|
3305
|
+
name: "Spanish Picture Dictionary",
|
|
3306
|
+
description: "Look up pictures for words in Spanish",
|
|
3307
|
+
buttonA11y: "Spanish Picture Dictionary, look up pictures for words in Spanish",
|
|
3308
|
+
tooltip: "Spanish Picture Dictionary",
|
|
3309
|
+
toolA11y: "Spanish Picture Dictionary"
|
|
3310
|
+
},
|
|
3311
|
+
lineReader: {
|
|
3312
|
+
name: "Line Reader",
|
|
3313
|
+
description: "Reading guide overlay",
|
|
3314
|
+
buttonA11y: "Line Reader, reading guide",
|
|
3315
|
+
tooltip: "Line Reader",
|
|
3316
|
+
roleA11y: "Draggable and resizable reading guide overlay",
|
|
3317
|
+
close: "Close line reader",
|
|
3318
|
+
resizeWindowA11y: "Drag to resize the reading window",
|
|
3319
|
+
resizeFrameA11y: "Drag to resize the frame and window width",
|
|
3320
|
+
windowHeightAnnounce: "Reading window height {pixels} pixels",
|
|
3321
|
+
frameHeightAnnounce: "Frame height {pixels} pixels",
|
|
3322
|
+
widthAnnounce: "Width {pixels} pixels",
|
|
3323
|
+
applicationA11y: "Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",
|
|
3324
|
+
resizeWindowFullA11y: "Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",
|
|
3325
|
+
resizeFrameFullA11y: "Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"
|
|
3326
|
+
},
|
|
3327
|
+
answerEliminator: {
|
|
3328
|
+
name: "Answer Eliminator",
|
|
3329
|
+
description: "Strike through answer choices",
|
|
3330
|
+
buttonA11y: "Strike Through, eliminate answer choices",
|
|
3331
|
+
tooltip: "Strike Through"
|
|
3332
|
+
},
|
|
3333
|
+
highlighter: {
|
|
3334
|
+
name: "Highlighter",
|
|
3335
|
+
description: "Highlight and annotate text",
|
|
3336
|
+
buttonA11y: "Highlight text",
|
|
3337
|
+
tooltip: "Highlight"
|
|
3338
|
+
},
|
|
3339
|
+
annotationToolbar: {
|
|
3340
|
+
name: "Annotation",
|
|
3341
|
+
description: "Highlight and annotate text",
|
|
3342
|
+
buttonA11y: "Annotate, highlight and mark up text",
|
|
3343
|
+
tooltip: "Annotate",
|
|
3344
|
+
toolbarA11y: "Text annotation toolbar",
|
|
3345
|
+
underline: "Underline",
|
|
3346
|
+
underlineA11y: "Underline selected text",
|
|
3347
|
+
readAloud: "Read Aloud",
|
|
3348
|
+
readAloudA11y: "Read selected text aloud",
|
|
3349
|
+
remove: "Remove",
|
|
3350
|
+
removeA11y: "Remove this annotation",
|
|
3351
|
+
clearAll: "Clear All",
|
|
3352
|
+
clearAllA11y: "Clear all annotations from document",
|
|
3353
|
+
highlightYellowA11y: "Yellow highlight",
|
|
3354
|
+
highlightPinkA11y: "Pink highlight",
|
|
3355
|
+
highlightBlueA11y: "Blue highlight",
|
|
3356
|
+
highlightGreenA11y: "Green highlight"
|
|
3357
|
+
},
|
|
3358
|
+
theme: {
|
|
3359
|
+
name: "Theme",
|
|
3360
|
+
description: "Accessible themes and contrast",
|
|
3361
|
+
buttonA11y: "Theme, change colors and contrast",
|
|
3362
|
+
tooltip: "Theme",
|
|
3363
|
+
selectorA11y: "Theme selector",
|
|
3364
|
+
hint: "Select a theme to improve readability and reduce eye strain.",
|
|
3365
|
+
selectA11y: "Select theme",
|
|
3366
|
+
selectCurrentA11y: "Select theme. Current theme: {name}",
|
|
3367
|
+
optionUnavailableA11y: "{name}, unavailable",
|
|
3368
|
+
unavailableName: "Unavailable theme: {id}",
|
|
3369
|
+
unavailableDescription: "PIE's managed base theme remains active until this theme becomes available again.",
|
|
3370
|
+
unavailableStatus: "The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."
|
|
3371
|
+
},
|
|
3372
|
+
textToSpeech: {
|
|
3373
|
+
name: "Text to Speech",
|
|
3374
|
+
description: "Read content aloud",
|
|
3375
|
+
toolA11y: "Text-to-speech tool",
|
|
3376
|
+
title: "Text-to-Speech",
|
|
3377
|
+
initializing: "Initializing…",
|
|
3378
|
+
initFailed: "Failed to initialize text-to-speech.",
|
|
3379
|
+
selectText: "Select text on the page to read it aloud.",
|
|
3380
|
+
speed: "Speed:",
|
|
3381
|
+
play: "Play",
|
|
3382
|
+
pause: "Pause",
|
|
3383
|
+
resume: "Resume",
|
|
3384
|
+
stop: "Stop",
|
|
3385
|
+
speaking: "Speaking…",
|
|
3386
|
+
paused: "Paused",
|
|
3387
|
+
charactersSelected: {
|
|
3388
|
+
one: "{count} character selected",
|
|
3389
|
+
other: "{count} characters selected"
|
|
3390
|
+
},
|
|
3391
|
+
rate: {
|
|
3392
|
+
slow: "Slow",
|
|
3393
|
+
slower: "Slower",
|
|
3394
|
+
normal: "Normal",
|
|
3395
|
+
faster: "Faster",
|
|
3396
|
+
fast: "Fast",
|
|
3397
|
+
veryFast: "Very Fast"
|
|
3398
|
+
},
|
|
3399
|
+
inline: {
|
|
3400
|
+
controlsA11y: "Reading controls",
|
|
3401
|
+
playbackSpeedA11y: "Playback speed",
|
|
3402
|
+
rewindA11y: "Rewind",
|
|
3403
|
+
fastForwardA11y: "Fast-forward",
|
|
3404
|
+
stopA11y: "Stop reading",
|
|
3405
|
+
initializing: "Initializing text-to-speech",
|
|
3406
|
+
initFailed: "Unable to initialize text-to-speech. Try again.",
|
|
3407
|
+
starting: "Starting reading",
|
|
3408
|
+
started: "Reading started",
|
|
3409
|
+
resumed: "Reading resumed",
|
|
3410
|
+
pausedAnnouncement: "Reading paused",
|
|
3411
|
+
stopped: "Reading stopped",
|
|
3412
|
+
switchedSection: "Reading switched to another section",
|
|
3413
|
+
startFailed: "Unable to start reading",
|
|
3414
|
+
skippedForward: "Skipped forward",
|
|
3415
|
+
skipForwardFailed: "Unable to skip forward",
|
|
3416
|
+
skippedBackward: "Skipped backward",
|
|
3417
|
+
skipBackwardFailed: "Unable to skip backward",
|
|
3418
|
+
speedChangeFailed: "Unable to change playback speed",
|
|
3419
|
+
speedAnnounce: "Playback speed {label}",
|
|
3420
|
+
playA11y: "Play reading",
|
|
3421
|
+
pauseA11y: "Pause reading",
|
|
3422
|
+
resumeA11y: "Resume reading"
|
|
3423
|
+
}
|
|
3424
|
+
},
|
|
3425
|
+
signLanguage: {
|
|
3426
|
+
name: "Sign Language",
|
|
3427
|
+
description: "Signed alternate for authored content",
|
|
3428
|
+
generic: "Sign language",
|
|
3429
|
+
unknown: "Sign language ({code})",
|
|
3430
|
+
ase: "American Sign Language",
|
|
3431
|
+
bfi: "British Sign Language",
|
|
3432
|
+
fsl: "French Sign Language",
|
|
3433
|
+
gss: "Greek Sign Language",
|
|
3434
|
+
mfs: "Mexican Sign Language",
|
|
3435
|
+
signedEnglish: "Signed English",
|
|
3436
|
+
regionA11y: "{language} translation"
|
|
3437
|
+
},
|
|
3438
|
+
audioTranscript: {
|
|
3439
|
+
name: "Audio Transcript",
|
|
3440
|
+
description: "Text transcript of audio content",
|
|
3441
|
+
regionA11y: "Transcript"
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
debug: {
|
|
3445
|
+
session: "Session",
|
|
3446
|
+
sessionData: "Session Data",
|
|
3447
|
+
sessionDataPersistent: "PIE Session Data (Persistent)",
|
|
3448
|
+
noItemSessionYet: "No item session data yet. Interact with the item to see updates here.",
|
|
3449
|
+
itemSessionsSnapshot: "Item Sessions Snapshot",
|
|
3450
|
+
sectionControllerUnavailable: "Section controller not available for this section yet.",
|
|
3451
|
+
filteredModel: "Filtered Model",
|
|
3452
|
+
environment: "Environment",
|
|
3453
|
+
events: "Events",
|
|
3454
|
+
controllerEvents: "Controller Events",
|
|
3455
|
+
instrumentation: "Instrumentation",
|
|
3456
|
+
databaseState: "Database state",
|
|
3457
|
+
sessionDb: "Session DB (Server)",
|
|
3458
|
+
noRows: "No rows",
|
|
3459
|
+
noRecords: "No instrumentation records yet.",
|
|
3460
|
+
selectRecord: "Select a record to inspect details.",
|
|
3461
|
+
selectEvent: "Select an event to inspect payload details.",
|
|
3462
|
+
showRawTables: "Show raw tables",
|
|
3463
|
+
showReconstructedSnapshots: "Show reconstructed snapshots",
|
|
3464
|
+
showSectionRequest: "Show section request",
|
|
3465
|
+
showAssessmentRequest: "Show assessment request",
|
|
3466
|
+
liveUpdatesUnsupported: "Live updates are not supported in this browser",
|
|
3467
|
+
liveUpdatesDisconnected: "Live updates disconnected; retrying…",
|
|
3468
|
+
fieldType: "Type:",
|
|
3469
|
+
fieldTarget: "Target:",
|
|
3470
|
+
fieldItem: "Item:",
|
|
3471
|
+
fieldCanonical: "Canonical:",
|
|
3472
|
+
fieldIntent: "Intent:",
|
|
3473
|
+
fieldDuplicates: "Duplicates:",
|
|
3474
|
+
fieldSemanticRepeats: "Semantic Repeats:",
|
|
3475
|
+
dragItemSessionPanelA11y: "Drag item session panel",
|
|
3476
|
+
debuggerTabsA11y: "Debugger tabs",
|
|
3477
|
+
sessionDataJsonA11y: "Session data JSON",
|
|
3478
|
+
environmentJsonA11y: "Environment JSON",
|
|
3479
|
+
filteredModelJsonA11y: "Filtered model JSON",
|
|
3480
|
+
sectionSessionJsonA11y: "Section session snapshot JSON",
|
|
3481
|
+
eventLevelFilterA11y: "Event level filter",
|
|
3482
|
+
controllerEventDetailsA11y: "Controller event details",
|
|
3483
|
+
instrumentationFilterA11y: "Filter instrumentation record type",
|
|
3484
|
+
instrumentationDetailsA11y: "Instrumentation record details",
|
|
3485
|
+
toggleSessionPanelA11y: "Toggle session panel",
|
|
3486
|
+
toggleEventPanelA11y: "Toggle event broadcast panel",
|
|
3487
|
+
toggleDatabasePanelA11y: "Toggle database state panel",
|
|
3488
|
+
toggleInstrumentationPanelA11y: "Toggle instrumentation panel",
|
|
3489
|
+
pnp: {
|
|
3490
|
+
title: "PNP Profile",
|
|
3491
|
+
noAssessmentBound: "No assessment bound",
|
|
3492
|
+
determinationReadOnly: "Determination (read-only)",
|
|
3493
|
+
toolsEditor: "Tools Editor",
|
|
3494
|
+
enforcement: "PNP enforcement",
|
|
3495
|
+
allAvailableTools: "All available tools",
|
|
3496
|
+
clearPlacement: "Clear placement",
|
|
3497
|
+
tool: "Tool",
|
|
3498
|
+
placement: "Placement",
|
|
3499
|
+
provider: "Provider",
|
|
3500
|
+
simulation: "PNP simulation",
|
|
3501
|
+
resolvedTools: "Resolved Tools (toolkit)",
|
|
3502
|
+
provenanceSummary: "Tool Policy Provenance Summary",
|
|
3503
|
+
perToolDecisions: "Per-Tool Decisions",
|
|
3504
|
+
profileReadOnly: "PNP Profile (read-only)"
|
|
3505
|
+
},
|
|
3506
|
+
tts: {
|
|
3507
|
+
title: "TTS settings",
|
|
3508
|
+
closeA11y: "Close TTS settings",
|
|
3509
|
+
toolbarLayoutMode: "Toolbar layout mode",
|
|
3510
|
+
reservedRow: "Reserved row",
|
|
3511
|
+
expandingRow: "Expanding row",
|
|
3512
|
+
floatingOverlay: "Floating overlay",
|
|
3513
|
+
leftAlignedControls: "Left-aligned controls",
|
|
3514
|
+
inlineSpeedButtons: "Inline speed buttons",
|
|
3515
|
+
resetToDefaults: "Reset to defaults",
|
|
3516
|
+
mathHighlighting: "Math highlighting",
|
|
3517
|
+
checkingAvailability: "Checking availability…",
|
|
3518
|
+
recheck: "Recheck",
|
|
3519
|
+
voice: "Voice",
|
|
3520
|
+
bestAvailableVoice: "Best available voice (auto)",
|
|
3521
|
+
unnamedVoice: "Unnamed voice",
|
|
3522
|
+
apiEndpoint: "API endpoint",
|
|
3523
|
+
gender: "Gender",
|
|
3524
|
+
any: "Any",
|
|
3525
|
+
male: "Male",
|
|
3526
|
+
female: "Female",
|
|
3527
|
+
neutral: "Neutral",
|
|
3528
|
+
engine: "Engine",
|
|
3529
|
+
neural: "Neural",
|
|
3530
|
+
standard: "Standard",
|
|
3531
|
+
providerDefault: "Provider default",
|
|
3532
|
+
format: "Format",
|
|
3533
|
+
sampleRate: "Sample rate",
|
|
3534
|
+
speechMarks: "Speech marks",
|
|
3535
|
+
word: "Word",
|
|
3536
|
+
wordAndSentence: "Word + sentence",
|
|
3537
|
+
voiceType: "Voice type",
|
|
3538
|
+
wavenetVoiceType: "WaveNet",
|
|
3539
|
+
studioVoiceType: "Studio",
|
|
3540
|
+
plainText: "Plain text",
|
|
3541
|
+
sampleText: "Sample text",
|
|
3542
|
+
resetSample: "Reset sample",
|
|
3543
|
+
providerAvailable: "Provider available.",
|
|
3544
|
+
providerUnavailable: "Provider unavailable.",
|
|
3545
|
+
providerCheckFailed: "Provider availability check failed.",
|
|
3546
|
+
providerNotChecked: "Provider availability has not been checked yet.",
|
|
3547
|
+
webSpeechUnavailable: "Web Speech API is not available in this browser.",
|
|
3548
|
+
browserNoVoices: "Browser text-to-speech is available, but no voices were returned yet.",
|
|
3549
|
+
browserUnavailable: "Browser text-to-speech is not available.",
|
|
3550
|
+
googleUnavailable: "Google Cloud TTS is not available from the configured API.",
|
|
3551
|
+
pollyUnavailable: "AWS Polly is not available from the configured API.",
|
|
3552
|
+
recommendedVoices: "Recommended voices",
|
|
3553
|
+
allVoices: "All available voices",
|
|
3554
|
+
previewVoice: "Preview voice",
|
|
3555
|
+
stopPreview: "Stop preview",
|
|
3556
|
+
applying: "Applying…",
|
|
3557
|
+
ssmlPreviewUnsupported: "SSML preview is not supported in the Browser backend.",
|
|
3558
|
+
pollySsmlHint: "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",
|
|
3559
|
+
mathHighlightParts: "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",
|
|
3560
|
+
mathHighlightBlock: "Highlighting each formula as a single block instead of breaking it into parts.",
|
|
3561
|
+
previewFailed: "Failed to play preview audio.",
|
|
3562
|
+
previewNoAudio: "Preview response did not include audio content.",
|
|
3563
|
+
previewEnterText: "Enter preview text before starting playback.",
|
|
3564
|
+
previewUnavailable: "Cannot preview while this service is unavailable.",
|
|
3565
|
+
browserSynthesisUnavailable: "Browser speech synthesis is unavailable.",
|
|
3566
|
+
browserSynthesisEndedEarly: "Browser speech synthesis ended before audio started. Restart the browser and try again.",
|
|
3567
|
+
browserSynthesisQueueFailed: "Browser speech synthesis failed to queue preview audio.",
|
|
3568
|
+
browserPreviewFailed: "Failed to play browser voice preview.",
|
|
3569
|
+
ssmlWordTrackingDisabled: "Google SSML preview preserves authored SSML, so word tracking is disabled.",
|
|
3570
|
+
applyUnavailable: "Cannot apply settings while this service is unavailable.",
|
|
3571
|
+
coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
}, Pa = "en-US", Fa = /* @__PURE__ */ new Set([
|
|
3575
|
+
"ar",
|
|
3576
|
+
"ckb",
|
|
3577
|
+
"dv",
|
|
3578
|
+
"fa",
|
|
3579
|
+
"he",
|
|
3580
|
+
"iw",
|
|
3581
|
+
"ks",
|
|
3582
|
+
"ku",
|
|
3583
|
+
"nqo",
|
|
3584
|
+
"ps",
|
|
3585
|
+
"sd",
|
|
3586
|
+
"syr",
|
|
3587
|
+
"ug",
|
|
3588
|
+
"ur",
|
|
3589
|
+
"yi"
|
|
3590
|
+
]), Ia = /* @__PURE__ */ new Set([
|
|
3591
|
+
"zero",
|
|
3592
|
+
"one",
|
|
3593
|
+
"two",
|
|
3594
|
+
"few",
|
|
3595
|
+
"many",
|
|
3596
|
+
"other"
|
|
3597
|
+
]);
|
|
3598
|
+
function La(e) {
|
|
3599
|
+
if (typeof e != "object" || !e) return !1;
|
|
3600
|
+
let t = Object.keys(e);
|
|
3601
|
+
return t.length > 0 && t.every((e) => Ia.has(e));
|
|
3602
|
+
}
|
|
3603
|
+
function Ra(e) {
|
|
3604
|
+
try {
|
|
3605
|
+
let t = new Intl.Locale(e).textInfo;
|
|
3606
|
+
if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
|
|
3607
|
+
} catch {}
|
|
3608
|
+
let t = Aa(e).split("-")[0] ?? "";
|
|
3609
|
+
return Fa.has(t) ? "rtl" : "ltr";
|
|
3610
|
+
}
|
|
3611
|
+
var za = class e {
|
|
3612
|
+
static pluralRules = /* @__PURE__ */ new Map();
|
|
3613
|
+
locale;
|
|
3614
|
+
fallbackLocale;
|
|
3615
|
+
catalogs;
|
|
3616
|
+
customMessages;
|
|
3617
|
+
loading;
|
|
3618
|
+
listeners = /* @__PURE__ */ new Set();
|
|
3619
|
+
config;
|
|
3620
|
+
constructor(e = {}) {
|
|
3621
|
+
this.config = { ...e }, this.fallbackLocale = Ba(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[Pa, Na]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
|
|
3622
|
+
}
|
|
3623
|
+
async initialize(e) {
|
|
3624
|
+
if (this.config = {
|
|
3625
|
+
...this.config,
|
|
3626
|
+
...e
|
|
3627
|
+
}, e.customMessages) for (let [t, n] of Object.entries(e.customMessages)) this.addCustomMessages(t, n);
|
|
3628
|
+
await this.setLocale(e.locale ?? this.locale);
|
|
3629
|
+
}
|
|
3630
|
+
getLocale() {
|
|
3631
|
+
return this.locale;
|
|
3632
|
+
}
|
|
3633
|
+
async setLocale(e) {
|
|
3634
|
+
let t = this.resolveLocaleTag(e);
|
|
3635
|
+
if (!t) {
|
|
3636
|
+
this.locale = Ba(e) || "en-US", this.notify();
|
|
3637
|
+
return;
|
|
3638
|
+
}
|
|
3639
|
+
if (!this.catalogs.has(t)) {
|
|
3640
|
+
let e = this.loading.get(t);
|
|
3641
|
+
if (e) await e;
|
|
3642
|
+
else {
|
|
3643
|
+
let e = this.loadCatalog(t);
|
|
3644
|
+
this.loading.set(t, e);
|
|
3645
|
+
try {
|
|
3646
|
+
await e;
|
|
3647
|
+
} finally {
|
|
3648
|
+
this.loading.delete(t);
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
this.locale = t, this.notify();
|
|
3653
|
+
}
|
|
3654
|
+
t(e, t) {
|
|
3655
|
+
let n = this.lookup(e);
|
|
3656
|
+
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : Ha(n, t);
|
|
3657
|
+
}
|
|
3658
|
+
plural(e, t) {
|
|
3659
|
+
let n = this.lookupNode(e);
|
|
3660
|
+
return n === void 0 || !La(n) ? this.t(e, t) : Ha(n[this.selectPluralCategory(t.count)] ?? n.other, t);
|
|
3661
|
+
}
|
|
3662
|
+
getDirection() {
|
|
3663
|
+
return Ra(this.locale);
|
|
3664
|
+
}
|
|
3665
|
+
getAvailableLocales() {
|
|
3666
|
+
return [.../* @__PURE__ */ new Set([
|
|
3667
|
+
...this.catalogs.keys(),
|
|
3668
|
+
...this.config.availableLocales ?? [],
|
|
3669
|
+
...Object.keys(this.customMessages)
|
|
3670
|
+
])];
|
|
3671
|
+
}
|
|
3672
|
+
isLocaleLoaded(e) {
|
|
3673
|
+
let t = this.resolveLocaleTag(e);
|
|
3674
|
+
return t !== void 0 && this.catalogs.has(t);
|
|
3675
|
+
}
|
|
3676
|
+
subscribe(e) {
|
|
3677
|
+
return this.listeners.add(e), () => {
|
|
3678
|
+
this.listeners.delete(e);
|
|
3679
|
+
};
|
|
3680
|
+
}
|
|
3681
|
+
hasKey(e) {
|
|
3682
|
+
return this.lookup(e) !== void 0;
|
|
3683
|
+
}
|
|
3684
|
+
addCustomMessages(e, t) {
|
|
3685
|
+
let n = Ba(e);
|
|
3686
|
+
this.customMessages[n] = Ua(this.customMessages[n] ?? {}, t), this.notify();
|
|
3687
|
+
}
|
|
3688
|
+
withLocale(t) {
|
|
3689
|
+
let n = this.resolveLocaleTag(t) ?? Ba(t);
|
|
3690
|
+
if (n === this.locale) return this;
|
|
3691
|
+
let r = new e({
|
|
3692
|
+
...this.config,
|
|
3693
|
+
locale: n
|
|
3694
|
+
});
|
|
3695
|
+
return r.locale = n || "en-US", r.catalogs = this.catalogs, r.customMessages = this.customMessages, r.loading = this.loading, r;
|
|
3696
|
+
}
|
|
3697
|
+
formatNumber(e, t) {
|
|
3698
|
+
try {
|
|
3699
|
+
return new Intl.NumberFormat(this.locale, t).format(e);
|
|
3700
|
+
} catch {
|
|
3701
|
+
return new Intl.NumberFormat(Pa, t).format(e);
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
formatDate(e, t) {
|
|
3705
|
+
try {
|
|
3706
|
+
return new Intl.DateTimeFormat(this.locale, t).format(e);
|
|
3707
|
+
} catch {
|
|
3708
|
+
return new Intl.DateTimeFormat(Pa, t).format(e);
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
getBundle(e = this.locale) {
|
|
3712
|
+
let t = this.resolveLocaleTag(e);
|
|
3713
|
+
if (!t) return;
|
|
3714
|
+
let n = this.catalogs.get(t);
|
|
3715
|
+
if (n) return {
|
|
3716
|
+
locale: t,
|
|
3717
|
+
translations: n,
|
|
3718
|
+
direction: Ra(t)
|
|
3719
|
+
};
|
|
3720
|
+
}
|
|
3721
|
+
resolveLocaleTag(e) {
|
|
3722
|
+
if (!e) return;
|
|
3723
|
+
let t = this.getAvailableLocales(), n = Ma(e, t);
|
|
3724
|
+
if (n) return n;
|
|
3725
|
+
let r = Aa(e).split("-")[0];
|
|
3726
|
+
if (r) return t.find((e) => Aa(e).split("-")[0] === r);
|
|
3727
|
+
}
|
|
3728
|
+
async loadCatalog(e) {
|
|
3729
|
+
let t = this.config.loadCatalog;
|
|
3730
|
+
if (t) try {
|
|
3731
|
+
this.catalogs.set(e, await t(e));
|
|
3732
|
+
} catch (t) {
|
|
3733
|
+
throw Error(`Failed to load i18n catalog for locale: ${e}`, { cause: t });
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
lookupNode(e) {
|
|
3737
|
+
let t = [
|
|
3738
|
+
this.customMessages[this.locale],
|
|
3739
|
+
this.catalogs.get(this.locale),
|
|
3740
|
+
this.customMessages[this.fallbackLocale],
|
|
3741
|
+
this.catalogs.get(this.fallbackLocale)
|
|
3742
|
+
];
|
|
3743
|
+
for (let n of t) {
|
|
3744
|
+
let t = Va(n, e);
|
|
3745
|
+
if (t !== void 0) return t;
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
lookup(e) {
|
|
3749
|
+
let t = this.lookupNode(e);
|
|
3750
|
+
if (typeof t == "string") return t;
|
|
3751
|
+
if (t !== void 0 && La(t)) return t.other;
|
|
3752
|
+
}
|
|
3753
|
+
selectPluralCategory(t) {
|
|
3754
|
+
let n = e.pluralRules.get(this.locale);
|
|
3755
|
+
if (!n) {
|
|
3756
|
+
try {
|
|
3757
|
+
n = new Intl.PluralRules(this.locale);
|
|
3758
|
+
} catch {
|
|
3759
|
+
return t === 1 ? "one" : "other";
|
|
3760
|
+
}
|
|
3761
|
+
e.pluralRules.set(this.locale, n);
|
|
3053
3762
|
}
|
|
3763
|
+
return n.select(t);
|
|
3764
|
+
}
|
|
3765
|
+
notify() {
|
|
3766
|
+
for (let e of this.listeners) e();
|
|
3767
|
+
}
|
|
3768
|
+
};
|
|
3769
|
+
function Ba(e) {
|
|
3770
|
+
return e ? e.trim().replace(/_/g, "-") : "";
|
|
3771
|
+
}
|
|
3772
|
+
function Va(e, t) {
|
|
3773
|
+
if (!e) return;
|
|
3774
|
+
let n = e;
|
|
3775
|
+
for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
|
|
3776
|
+
return n;
|
|
3777
|
+
}
|
|
3778
|
+
function Ha(e, t) {
|
|
3779
|
+
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
3780
|
+
let r = t[n];
|
|
3781
|
+
return r == null ? e : String(r);
|
|
3782
|
+
}) : e;
|
|
3783
|
+
}
|
|
3784
|
+
function Ua(e, t) {
|
|
3785
|
+
let n = { ...e };
|
|
3786
|
+
for (let [e, r] of Object.entries(t)) {
|
|
3787
|
+
let t = n[e];
|
|
3788
|
+
n[e] = r && typeof r == "object" && t && typeof t == "object" ? Ua(t, r) : r;
|
|
3789
|
+
}
|
|
3790
|
+
return n;
|
|
3791
|
+
}
|
|
3792
|
+
var Wa;
|
|
3793
|
+
function Ga() {
|
|
3794
|
+
return Wa ||= new za(), Wa;
|
|
3795
|
+
}
|
|
3796
|
+
function Ka(e) {
|
|
3797
|
+
let t = e?.i18n ?? Ga();
|
|
3798
|
+
return {
|
|
3799
|
+
getLocale: () => t.getLocale(),
|
|
3800
|
+
setLocale: (e) => t.setLocale(e),
|
|
3801
|
+
t: (e, n) => t.t(e, n),
|
|
3802
|
+
plural: (e, n) => t.plural?.(e, n) ?? t.t(e, n),
|
|
3803
|
+
getDirection: () => t.getDirection?.() ?? "ltr",
|
|
3804
|
+
hasKey: (e) => t.hasKey?.(e) ?? !1,
|
|
3805
|
+
subscribe: (e) => t.subscribe?.(e) ?? (() => {})
|
|
3054
3806
|
};
|
|
3055
3807
|
}
|
|
3056
|
-
var
|
|
3808
|
+
var qa = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), Ja = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Ya = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Xa = /* @__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>"), Za = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), Qa = /* @__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>"), $a = /* @__PURE__ */ hr("<!> <!>", 1), eo = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), to = {
|
|
3057
3809
|
hash: "svelte-18mzc0g",
|
|
3058
3810
|
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 }"
|
|
3059
3811
|
};
|
|
3060
|
-
function
|
|
3061
|
-
|
|
3062
|
-
let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 7, void 0), f = ni(s, "showSingleSpeedOption", 7, !1), p = ni(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,
|
|
3063
|
-
if (!(!m ||
|
|
3064
|
-
if (
|
|
3812
|
+
function no(o, s) {
|
|
3813
|
+
Re(s, !0), Lr(o, to);
|
|
3814
|
+
let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 7, void 0), f = ni(s, "showSingleSpeedOption", 7, !1), p = ni(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, b = !1, x = () => {
|
|
3815
|
+
if (!(!m || b)) {
|
|
3816
|
+
if (b = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
3065
3817
|
let e = document.createElement("link");
|
|
3066
3818
|
e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
|
|
3067
3819
|
}
|
|
@@ -3077,12 +3829,12 @@ function za(o, s) {
|
|
|
3077
3829
|
}
|
|
3078
3830
|
}
|
|
3079
3831
|
}
|
|
3080
|
-
},
|
|
3832
|
+
}, S = "__pieFaTtsShadowInstalled", ee = (e) => {
|
|
3081
3833
|
let t = e.getRootNode();
|
|
3082
3834
|
if (!(t instanceof ShadowRoot)) return;
|
|
3083
3835
|
let n = t;
|
|
3084
|
-
if (n[
|
|
3085
|
-
n[
|
|
3836
|
+
if (n[S]) return;
|
|
3837
|
+
n[S] = !0;
|
|
3086
3838
|
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
3087
3839
|
if (!e || r.has(e)) return;
|
|
3088
3840
|
r.add(e);
|
|
@@ -3090,8 +3842,8 @@ function za(o, s) {
|
|
|
3090
3842
|
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
3091
3843
|
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
|
|
3092
3844
|
for (let e of a) i(e.href);
|
|
3093
|
-
},
|
|
3094
|
-
|
|
3845
|
+
}, C = (e) => {
|
|
3846
|
+
x(), ee(e);
|
|
3095
3847
|
let t = () => {
|
|
3096
3848
|
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
3097
3849
|
};
|
|
@@ -3105,7 +3857,7 @@ function za(o, s) {
|
|
|
3105
3857
|
}), { destroy() {
|
|
3106
3858
|
n.disconnect();
|
|
3107
3859
|
} };
|
|
3108
|
-
},
|
|
3860
|
+
}, w = (e, t) => {
|
|
3109
3861
|
let n = t, r = () => {
|
|
3110
3862
|
let t = e.querySelector("button");
|
|
3111
3863
|
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
@@ -3123,121 +3875,121 @@ function za(o, s) {
|
|
|
3123
3875
|
i.disconnect();
|
|
3124
3876
|
}
|
|
3125
3877
|
};
|
|
3126
|
-
},
|
|
3127
|
-
function
|
|
3878
|
+
}, te = (e) => (x(), ee(e), {}), T = /* @__PURE__ */ H(void 0), E = /* @__PURE__ */ H(void 0), ne = /* @__PURE__ */ H(null), re = /* @__PURE__ */ B(() => X(ne)?.ndsIcons === !0), D = /* @__PURE__ */ B(() => Ka(X(ne))), O = /* @__PURE__ */ H(null), ie = /* @__PURE__ */ H(null), k = /* @__PURE__ */ B(() => X(ne)?.ttsService), ae = /* @__PURE__ */ B(() => X(ne)?.highlightCoordinator), oe = /* @__PURE__ */ B(() => X(ie)?.scopeElement || X(O)?.scopeElement || null), A = /* @__PURE__ */ H(!1), se = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(!1), M = /* @__PURE__ */ H(!1), N = /* @__PURE__ */ H(""), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ H(null), ue = /* @__PURE__ */ H(!1), de = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), pe = null, me = /* @__PURE__ */ B(() => X(ue) || X(de)), he = null, ge = /* @__PURE__ */ B(() => t(d())), _e = /* @__PURE__ */ B(() => P(X(ge))), ve = /* @__PURE__ */ B(() => X(ge).length > 1 || f() ? X(ge) : []), ye = /* @__PURE__ */ B(() => X(ce) !== null && X(le) === X(_e) && X(ge).some((e) => e.rate === X(ce)) ? X(ce) : F(X(ge))), be = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, xe = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Se = `${be}-controls`;
|
|
3879
|
+
function Ce() {
|
|
3128
3880
|
if (!m) return null;
|
|
3129
3881
|
let e = window[h];
|
|
3130
3882
|
return typeof e == "string" ? e : null;
|
|
3131
3883
|
}
|
|
3132
|
-
function
|
|
3133
|
-
return
|
|
3884
|
+
function we() {
|
|
3885
|
+
return Ce() === be;
|
|
3134
3886
|
}
|
|
3135
|
-
function
|
|
3887
|
+
function Te(e, t) {
|
|
3136
3888
|
m && window.dispatchEvent(new CustomEvent(g, { detail: {
|
|
3137
3889
|
ownerId: e,
|
|
3138
3890
|
previousOwnerId: t
|
|
3139
3891
|
} }));
|
|
3140
3892
|
}
|
|
3141
|
-
function
|
|
3893
|
+
function Ee() {
|
|
3142
3894
|
if (!m) return;
|
|
3143
|
-
let e =
|
|
3144
|
-
e !==
|
|
3895
|
+
let e = Ce();
|
|
3896
|
+
e !== be && (window[h] = be, Te(be, e));
|
|
3145
3897
|
}
|
|
3146
|
-
function
|
|
3147
|
-
m &&
|
|
3898
|
+
function De() {
|
|
3899
|
+
m && Ce() === be && (delete window[h], Te(null, be));
|
|
3148
3900
|
}
|
|
3149
|
-
function
|
|
3150
|
-
|
|
3901
|
+
function Oe(e = "", t = !1) {
|
|
3902
|
+
U(de, !1), U(j, !1), U(M, !1), U(A, t, !0), U(N, e, !0);
|
|
3151
3903
|
}
|
|
3152
|
-
function
|
|
3904
|
+
function P(e) {
|
|
3153
3905
|
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
3154
3906
|
}
|
|
3155
|
-
function
|
|
3907
|
+
function F(e) {
|
|
3156
3908
|
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
3157
3909
|
}
|
|
3158
|
-
async function
|
|
3910
|
+
async function I(e, t) {
|
|
3159
3911
|
if (typeof e.setPlaybackRate == "function") {
|
|
3160
3912
|
await e.setPlaybackRate(t);
|
|
3161
3913
|
return;
|
|
3162
3914
|
}
|
|
3163
3915
|
await e.updateSettings({ rate: t });
|
|
3164
3916
|
}
|
|
3165
|
-
function
|
|
3166
|
-
if (!
|
|
3167
|
-
let e =
|
|
3917
|
+
function L() {
|
|
3918
|
+
if (!X(T) || !X(E)) return !1;
|
|
3919
|
+
let e = X(T).getRootNode();
|
|
3168
3920
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
3169
3921
|
let t = e.activeElement;
|
|
3170
|
-
return !!(t &&
|
|
3922
|
+
return !!(t && X(E).contains(t));
|
|
3171
3923
|
}
|
|
3172
|
-
function
|
|
3173
|
-
if (!
|
|
3174
|
-
let e =
|
|
3924
|
+
function ke() {
|
|
3925
|
+
if (!X(E)) return !1;
|
|
3926
|
+
let e = X(E).getRootNode();
|
|
3175
3927
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
3176
3928
|
let t = e.activeElement;
|
|
3177
|
-
return !t || !
|
|
3929
|
+
return !t || !X(E).contains(t) ? !1 : t.matches(R);
|
|
3178
3930
|
}
|
|
3179
3931
|
function je() {
|
|
3180
|
-
let e =
|
|
3932
|
+
let e = X(E)?.querySelector(Le);
|
|
3181
3933
|
if (e && !e.disabled) {
|
|
3182
3934
|
e.focus();
|
|
3183
3935
|
return;
|
|
3184
3936
|
}
|
|
3185
|
-
|
|
3937
|
+
Me(!0);
|
|
3186
3938
|
}
|
|
3187
|
-
function
|
|
3188
|
-
if (!
|
|
3189
|
-
let t =
|
|
3939
|
+
function Me(e) {
|
|
3940
|
+
if (!X(T) || !e) return;
|
|
3941
|
+
let t = X(T).getRootNode();
|
|
3190
3942
|
if (!(t instanceof ShadowRoot)) return;
|
|
3191
3943
|
let n = t.querySelector(".pie-tool-tts-inline__trigger");
|
|
3192
3944
|
(n?.querySelector("button") ?? n)?.focus();
|
|
3193
3945
|
}
|
|
3194
|
-
function
|
|
3195
|
-
if (!
|
|
3196
|
-
|
|
3946
|
+
function Ne(e = X(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
|
|
3947
|
+
if (!X(fe) && !(!X(A) && !we())) {
|
|
3948
|
+
U(fe, !0);
|
|
3197
3949
|
try {
|
|
3198
|
-
let n =
|
|
3199
|
-
|
|
3200
|
-
|
|
3950
|
+
let n = L();
|
|
3951
|
+
we() && De(), Oe(e), qe(), t && queueMicrotask(() => {
|
|
3952
|
+
Me(n);
|
|
3201
3953
|
});
|
|
3202
3954
|
} finally {
|
|
3203
|
-
|
|
3955
|
+
U(fe, !1);
|
|
3204
3956
|
}
|
|
3205
3957
|
}
|
|
3206
3958
|
}
|
|
3207
3959
|
fn(() => {
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
3960
|
+
if (X(T)) return r(X(T), (e) => {
|
|
3961
|
+
U(ne, e, !0);
|
|
3210
3962
|
});
|
|
3211
3963
|
}), fn(() => {
|
|
3212
|
-
if (!
|
|
3213
|
-
let t = e(
|
|
3214
|
-
|
|
3215
|
-
}), n = i(
|
|
3216
|
-
|
|
3964
|
+
if (!X(T)) return;
|
|
3965
|
+
let t = e(X(T), (e) => {
|
|
3966
|
+
U(O, e, !0);
|
|
3967
|
+
}), n = i(X(T), (e) => {
|
|
3968
|
+
U(ie, e, !0);
|
|
3217
3969
|
});
|
|
3218
3970
|
return () => {
|
|
3219
3971
|
n(), t();
|
|
3220
3972
|
};
|
|
3221
3973
|
}), fn(() => {
|
|
3222
|
-
if (!
|
|
3974
|
+
if (!X(k)) return;
|
|
3223
3975
|
let e = (e) => {
|
|
3224
|
-
if (!
|
|
3225
|
-
|
|
3976
|
+
if (!X(A) || !we()) {
|
|
3977
|
+
U(j, !1), U(M, !1);
|
|
3226
3978
|
return;
|
|
3227
3979
|
}
|
|
3228
|
-
|
|
3980
|
+
U(j, e === "playing" || e === "paused", !0), U(M, e === "paused");
|
|
3229
3981
|
}, t = (t) => {
|
|
3230
|
-
let n = String(t), r =
|
|
3231
|
-
e(n), n === "playing" &&
|
|
3982
|
+
let n = String(t), r = ke();
|
|
3983
|
+
e(n), n === "playing" && (X(de) && U(N, X(D).t("tools.textToSpeech.inline.started"), !0), U(de, !1)), (n === "error" || n === "idle") && U(de, !1), r && !X(j) && queueMicrotask(je);
|
|
3232
3984
|
};
|
|
3233
|
-
return
|
|
3234
|
-
|
|
3985
|
+
return X(k).onStateChange(xe, t), e(X(k).getState()), () => {
|
|
3986
|
+
X(k).offStateChange(xe, t);
|
|
3235
3987
|
};
|
|
3236
3988
|
}), fn(() => {
|
|
3237
3989
|
if (!m) return;
|
|
3238
3990
|
let e = (e) => {
|
|
3239
3991
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
3240
|
-
n ===
|
|
3992
|
+
n === be && t !== be && Ne(X(D).t("tools.textToSpeech.inline.switchedSection"));
|
|
3241
3993
|
};
|
|
3242
3994
|
return window.addEventListener(g, e), () => {
|
|
3243
3995
|
window.removeEventListener(g, e);
|
|
@@ -3245,209 +3997,211 @@ function za(o, s) {
|
|
|
3245
3997
|
}), fn(() => {
|
|
3246
3998
|
if (!m) return;
|
|
3247
3999
|
let e = () => {
|
|
3248
|
-
|
|
4000
|
+
Ne(X(D).t("tools.textToSpeech.inline.switchedSection"), !0);
|
|
3249
4001
|
};
|
|
3250
4002
|
return window.addEventListener(n, e), () => {
|
|
3251
4003
|
window.removeEventListener(n, e);
|
|
3252
4004
|
};
|
|
3253
4005
|
}), fn(() => () => {
|
|
3254
|
-
|
|
4006
|
+
De(), qe();
|
|
3255
4007
|
});
|
|
3256
|
-
async function
|
|
3257
|
-
if (!
|
|
4008
|
+
async function Pe() {
|
|
4009
|
+
if (!X(k)) return !1;
|
|
3258
4010
|
try {
|
|
3259
|
-
return await
|
|
4011
|
+
return await X(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
3260
4012
|
} catch (e) {
|
|
3261
4013
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
3262
4014
|
}
|
|
3263
4015
|
}
|
|
3264
|
-
let
|
|
3265
|
-
function
|
|
3266
|
-
return
|
|
4016
|
+
let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", R = "[data-pie-tts-seek]", Le = "[data-pie-tts-stop]";
|
|
4017
|
+
function Be(e) {
|
|
4018
|
+
return X(E) ? Array.from(X(E).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
|
|
3267
4019
|
}
|
|
3268
|
-
function
|
|
3269
|
-
let n =
|
|
4020
|
+
function Ve(e, t) {
|
|
4021
|
+
let n = Be(e);
|
|
3270
4022
|
if (!n.length) return;
|
|
3271
4023
|
let r = n[(t + n.length) % n.length];
|
|
3272
|
-
if (r.focus(), e !==
|
|
3273
|
-
let i = Number(r.dataset.pieTtsSpeedRate), a =
|
|
4024
|
+
if (r.focus(), e !== Fe) return;
|
|
4025
|
+
let i = Number(r.dataset.pieTtsSpeedRate), a = X(ve).find((e) => e.rate === i);
|
|
3274
4026
|
a && et(a);
|
|
3275
4027
|
}
|
|
3276
|
-
function
|
|
3277
|
-
let n =
|
|
4028
|
+
function He(e, t) {
|
|
4029
|
+
let n = Be(e);
|
|
3278
4030
|
if (!n.length) return;
|
|
3279
|
-
let r =
|
|
3280
|
-
|
|
4031
|
+
let r = X(E)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
|
|
4032
|
+
Ve(e, a === -1 ? 0 : a + t);
|
|
3281
4033
|
}
|
|
3282
|
-
function
|
|
4034
|
+
function Ue(e, t) {
|
|
3283
4035
|
switch (t.key) {
|
|
3284
4036
|
case "ArrowDown":
|
|
3285
4037
|
case "ArrowRight":
|
|
3286
|
-
t.preventDefault(),
|
|
4038
|
+
t.preventDefault(), He(e, 1);
|
|
3287
4039
|
break;
|
|
3288
4040
|
case "ArrowUp":
|
|
3289
4041
|
case "ArrowLeft":
|
|
3290
|
-
t.preventDefault(),
|
|
4042
|
+
t.preventDefault(), He(e, -1);
|
|
3291
4043
|
break;
|
|
3292
4044
|
case "Home":
|
|
3293
|
-
t.preventDefault(),
|
|
4045
|
+
t.preventDefault(), Ve(e, 0);
|
|
3294
4046
|
break;
|
|
3295
|
-
case "End": t.preventDefault(),
|
|
4047
|
+
case "End": t.preventDefault(), Ve(e, -1);
|
|
3296
4048
|
}
|
|
3297
4049
|
}
|
|
3298
|
-
function
|
|
3299
|
-
if (!
|
|
3300
|
-
let e =
|
|
4050
|
+
function We() {
|
|
4051
|
+
if (!X(oe)) return null;
|
|
4052
|
+
let e = X(oe);
|
|
3301
4053
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
3302
4054
|
let t = e.querySelector?.("[data-region='content']");
|
|
3303
4055
|
return t instanceof Element ? t : e;
|
|
3304
4056
|
}
|
|
3305
|
-
function
|
|
3306
|
-
if (
|
|
3307
|
-
kind:
|
|
3308
|
-
assessmentId:
|
|
3309
|
-
sectionId:
|
|
3310
|
-
itemId:
|
|
3311
|
-
canonicalItemId:
|
|
4057
|
+
function Ge() {
|
|
4058
|
+
if (X(O)) return a({
|
|
4059
|
+
kind: X(O).kind,
|
|
4060
|
+
assessmentId: X(ne)?.assessmentId,
|
|
4061
|
+
sectionId: X(ne)?.sectionId,
|
|
4062
|
+
itemId: X(O).itemId,
|
|
4063
|
+
canonicalItemId: X(O).canonicalItemId || X(O).itemId
|
|
3312
4064
|
});
|
|
3313
4065
|
}
|
|
3314
|
-
function
|
|
3315
|
-
return
|
|
4066
|
+
function Ke(e) {
|
|
4067
|
+
return qe(), pe = X(k)?.setHighlightTargetResolverProvider?.(() => ({
|
|
3316
4068
|
context: {
|
|
3317
|
-
scopeElement:
|
|
3318
|
-
kind:
|
|
3319
|
-
itemId:
|
|
3320
|
-
canonicalItemId:
|
|
3321
|
-
contentKind:
|
|
3322
|
-
regionPolicy:
|
|
4069
|
+
scopeElement: X(ie)?.scopeElement || e || null,
|
|
4070
|
+
kind: X(O)?.kind,
|
|
4071
|
+
itemId: X(O)?.itemId,
|
|
4072
|
+
canonicalItemId: X(O)?.canonicalItemId,
|
|
4073
|
+
contentKind: X(O)?.contentKind,
|
|
4074
|
+
regionPolicy: X(O)?.regionPolicy
|
|
3323
4075
|
},
|
|
3324
|
-
resolver:
|
|
3325
|
-
})) || null,
|
|
4076
|
+
resolver: X(ie)?.ttsHighlightTargetResolver || null
|
|
4077
|
+
})) || null, pe;
|
|
3326
4078
|
}
|
|
3327
|
-
function
|
|
3328
|
-
e?.(), e ===
|
|
4079
|
+
function qe(e = pe) {
|
|
4080
|
+
e?.(), e === pe && (pe = null);
|
|
3329
4081
|
}
|
|
3330
|
-
function
|
|
3331
|
-
if (!
|
|
3332
|
-
let e = String(
|
|
4082
|
+
function z() {
|
|
4083
|
+
if (!we()) return !1;
|
|
4084
|
+
let e = String(X(k)?.getState?.() || "");
|
|
3333
4085
|
return e === "playing" || e === "paused" || e === "loading";
|
|
3334
4086
|
}
|
|
3335
|
-
function
|
|
3336
|
-
let t =
|
|
3337
|
-
|
|
3338
|
-
|
|
4087
|
+
function Je(e) {
|
|
4088
|
+
let t = L();
|
|
4089
|
+
Oe(X(D).t("tools.textToSpeech.inline.startFailed")), we() && De(), X(ae) && X(ae).clearTTS(), qe(e), t && queueMicrotask(() => {
|
|
4090
|
+
Me(!0);
|
|
3339
4091
|
});
|
|
3340
4092
|
}
|
|
3341
4093
|
async function Ye() {
|
|
3342
|
-
if (!
|
|
3343
|
-
let e = null, t =
|
|
4094
|
+
if (!X(k)) return;
|
|
4095
|
+
let e = null, t = We();
|
|
3344
4096
|
if (!t) {
|
|
3345
4097
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
3346
4098
|
return;
|
|
3347
4099
|
}
|
|
3348
4100
|
try {
|
|
3349
|
-
|
|
4101
|
+
U(A, !0);
|
|
3350
4102
|
let n = t.textContent || "";
|
|
3351
4103
|
if (!n) {
|
|
3352
4104
|
console.warn("[TTS Inline] No text content found");
|
|
3353
4105
|
return;
|
|
3354
4106
|
}
|
|
3355
|
-
|
|
3356
|
-
service:
|
|
3357
|
-
choicesKey:
|
|
3358
|
-
}, e =
|
|
4107
|
+
X(ae) && X(k).setHighlightCoordinator && X(k).setHighlightCoordinator(X(ae)), await I(X(k), X(ye)), he = {
|
|
4108
|
+
service: X(k),
|
|
4109
|
+
choicesKey: X(_e)
|
|
4110
|
+
}, e = Ke(t), X(k).setRootElement?.(t), U(de, !0), U(N, X(D).t("tools.textToSpeech.inline.starting"), !0), X(k).speak(n, {
|
|
3359
4111
|
catalogId: c() || void 0,
|
|
3360
|
-
catalogContext:
|
|
4112
|
+
catalogContext: Ge(),
|
|
3361
4113
|
language: l(),
|
|
3362
4114
|
contentElement: t
|
|
3363
4115
|
}).catch((t) => {
|
|
3364
|
-
console.error("[TTS Inline] Error:", t),
|
|
4116
|
+
console.error("[TTS Inline] Error:", t), Je(e);
|
|
3365
4117
|
}).finally(() => {
|
|
3366
|
-
|
|
4118
|
+
z() || qe(e);
|
|
3367
4119
|
});
|
|
3368
4120
|
} catch (t) {
|
|
3369
|
-
console.error("[TTS Inline] Error:", t),
|
|
4121
|
+
console.error("[TTS Inline] Error:", t), Je(e);
|
|
3370
4122
|
}
|
|
3371
4123
|
}
|
|
3372
4124
|
async function Xe() {
|
|
3373
|
-
if (
|
|
3374
|
-
if (
|
|
3375
|
-
|
|
4125
|
+
if (X(k) && !(X(me) || we() && String(X(k).getState?.() || "") === "loading")) {
|
|
4126
|
+
if (we() && X(M)) {
|
|
4127
|
+
X(k).resume(), U(N, X(D).t("tools.textToSpeech.inline.resumed"), !0);
|
|
3376
4128
|
return;
|
|
3377
4129
|
}
|
|
3378
|
-
if (
|
|
3379
|
-
|
|
4130
|
+
if (we() && X(j) && !X(M)) {
|
|
4131
|
+
X(k).pause(), U(N, X(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
|
|
3380
4132
|
return;
|
|
3381
4133
|
}
|
|
3382
|
-
if (!
|
|
3383
|
-
|
|
4134
|
+
if (!X(ue)) {
|
|
4135
|
+
U(ue, !0);
|
|
3384
4136
|
try {
|
|
3385
|
-
if (
|
|
3386
|
-
|
|
4137
|
+
if (U(N, X(D).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
|
|
4138
|
+
U(N, X(D).t("tools.textToSpeech.inline.initFailed"), !0);
|
|
3387
4139
|
return;
|
|
3388
4140
|
}
|
|
3389
|
-
let e = String(
|
|
3390
|
-
(e === "playing" || e === "paused" || e === "loading") && !
|
|
4141
|
+
let e = String(X(k).getState?.() || "");
|
|
4142
|
+
(e === "playing" || e === "paused" || e === "loading") && !we() && X(k).stop(), Ee(), await Ye();
|
|
3391
4143
|
} finally {
|
|
3392
|
-
|
|
4144
|
+
U(ue, !1);
|
|
3393
4145
|
}
|
|
3394
4146
|
}
|
|
3395
4147
|
}
|
|
3396
4148
|
}
|
|
3397
4149
|
function Ze() {
|
|
3398
|
-
if (!
|
|
3399
|
-
let e =
|
|
3400
|
-
|
|
3401
|
-
|
|
4150
|
+
if (!X(k)) return;
|
|
4151
|
+
let e = L();
|
|
4152
|
+
X(k).stop(), De(), Oe(X(D).t("tools.textToSpeech.inline.stopped")), X(ae) && X(ae).clearTTS(), qe(), e && queueMicrotask(() => {
|
|
4153
|
+
Me(!0);
|
|
3402
4154
|
});
|
|
3403
4155
|
}
|
|
3404
4156
|
async function Qe() {
|
|
3405
|
-
if (!(!
|
|
3406
|
-
await
|
|
4157
|
+
if (!(!X(k) || !X(j))) try {
|
|
4158
|
+
await X(k).seekForward?.(1), U(N, X(D).t("tools.textToSpeech.inline.skippedForward"), !0);
|
|
3407
4159
|
} catch (e) {
|
|
3408
|
-
console.error("[TTS Inline] Seek forward failed:", e),
|
|
4160
|
+
console.error("[TTS Inline] Seek forward failed:", e), U(N, X(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
|
|
3409
4161
|
}
|
|
3410
4162
|
}
|
|
3411
4163
|
async function $e() {
|
|
3412
|
-
if (!(!
|
|
3413
|
-
await
|
|
4164
|
+
if (!(!X(k) || !X(j))) try {
|
|
4165
|
+
await X(k).seekBackward?.(1), U(N, X(D).t("tools.textToSpeech.inline.skippedBackward"), !0);
|
|
3414
4166
|
} catch (e) {
|
|
3415
|
-
console.error("[TTS Inline] Seek backward failed:", e),
|
|
4167
|
+
console.error("[TTS Inline] Seek backward failed:", e), U(N, X(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
|
|
3416
4168
|
}
|
|
3417
4169
|
}
|
|
3418
4170
|
async function et(e) {
|
|
3419
|
-
let t =
|
|
4171
|
+
let t = X(k);
|
|
3420
4172
|
if (!t) return;
|
|
3421
|
-
if (
|
|
3422
|
-
|
|
4173
|
+
if (X(ye) === e.rate) {
|
|
4174
|
+
U(N, X(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
3423
4175
|
return;
|
|
3424
4176
|
}
|
|
3425
|
-
let n =
|
|
3426
|
-
|
|
4177
|
+
let n = X(ce), r = X(le);
|
|
4178
|
+
U(ce, e.rate, !0), U(le, X(_e), !0), U(N, X(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
|
|
3427
4179
|
let i = {
|
|
3428
4180
|
service: t,
|
|
3429
|
-
choicesKey:
|
|
4181
|
+
choicesKey: X(_e)
|
|
3430
4182
|
};
|
|
3431
|
-
|
|
4183
|
+
he = i;
|
|
3432
4184
|
try {
|
|
3433
|
-
await
|
|
4185
|
+
await I(t, e.rate);
|
|
3434
4186
|
} catch (e) {
|
|
3435
|
-
|
|
4187
|
+
he === i && (he = null), console.error("[TTS Inline] Playback speed change failed:", e), U(ce, n, !0), U(le, r, !0), U(N, X(D).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
|
|
3436
4188
|
}
|
|
3437
4189
|
}
|
|
3438
|
-
let tt = /* @__PURE__ */
|
|
4190
|
+
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(() => X(rt) || X(it)), ot = ka(Ea), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ H(""), lt = /* @__PURE__ */ H(0);
|
|
3439
4191
|
fn(() => {
|
|
3440
|
-
let e =
|
|
3441
|
-
if (!e || !n || !
|
|
4192
|
+
let e = X(k), t = X(_e), n = X(j) || X(M);
|
|
4193
|
+
if (!e || !n || !we() || he?.service === e && he.choicesKey === t) return;
|
|
3442
4194
|
let r = {
|
|
3443
4195
|
service: e,
|
|
3444
4196
|
choicesKey: t
|
|
3445
4197
|
};
|
|
3446
|
-
|
|
4198
|
+
he = r;
|
|
3447
4199
|
let i = !1;
|
|
3448
4200
|
return queueMicrotask(() => {
|
|
3449
|
-
i ||
|
|
3450
|
-
|
|
4201
|
+
if (i || he !== r) return;
|
|
4202
|
+
let t = X(ye);
|
|
4203
|
+
I(e, t).catch((e) => {
|
|
4204
|
+
he === r && (he = null), console.error("[TTS Inline] External playback speed sync failed:", e);
|
|
3451
4205
|
});
|
|
3452
4206
|
}), () => {
|
|
3453
4207
|
i = !0;
|
|
@@ -3462,7 +4216,7 @@ function za(o, s) {
|
|
|
3462
4216
|
return null;
|
|
3463
4217
|
}
|
|
3464
4218
|
function dt() {
|
|
3465
|
-
let e =
|
|
4219
|
+
let e = X(T)?.getRootNode();
|
|
3466
4220
|
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
3467
4221
|
}
|
|
3468
4222
|
function ft(e) {
|
|
@@ -3471,19 +4225,19 @@ function za(o, s) {
|
|
|
3471
4225
|
}
|
|
3472
4226
|
function pt() {
|
|
3473
4227
|
let e = dt();
|
|
3474
|
-
if (!e || !
|
|
4228
|
+
if (!e || !X(E)) return;
|
|
3475
4229
|
let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
|
|
3476
|
-
if (!
|
|
3477
|
-
let e = ft(
|
|
3478
|
-
e > 0 &&
|
|
4230
|
+
if (!X(se)) {
|
|
4231
|
+
let e = ft(X(E));
|
|
4232
|
+
e > 0 && U(lt, e, !0);
|
|
3479
4233
|
}
|
|
3480
|
-
|
|
3481
|
-
let i =
|
|
3482
|
-
|
|
4234
|
+
U(se, X(lt) > 0 && r < X(lt), !0);
|
|
4235
|
+
let i = X(E).offsetHeight || t.height, a = X(se) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
|
|
4236
|
+
U(ct, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
|
|
3483
4237
|
}
|
|
3484
4238
|
fn(() => {
|
|
3485
|
-
if (!
|
|
3486
|
-
|
|
4239
|
+
if (!X(it) || !X(A)) {
|
|
4240
|
+
U(ct, ""), U(se, !1), U(lt, 0);
|
|
3487
4241
|
return;
|
|
3488
4242
|
}
|
|
3489
4243
|
if (typeof window > "u") return;
|
|
@@ -3494,7 +4248,7 @@ function za(o, s) {
|
|
|
3494
4248
|
};
|
|
3495
4249
|
pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
3496
4250
|
let n = dt(), r = new ResizeObserver(t);
|
|
3497
|
-
n && r.observe(n),
|
|
4251
|
+
n && r.observe(n), X(E) && r.observe(X(E));
|
|
3498
4252
|
let i = n ? ut(n, st) : null;
|
|
3499
4253
|
i && r.observe(i);
|
|
3500
4254
|
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
@@ -3503,14 +4257,14 @@ function za(o, s) {
|
|
|
3503
4257
|
};
|
|
3504
4258
|
});
|
|
3505
4259
|
function mt() {
|
|
3506
|
-
if (!
|
|
3507
|
-
let e =
|
|
4260
|
+
if (!X(T)) return null;
|
|
4261
|
+
let e = X(T).getRootNode();
|
|
3508
4262
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3509
4263
|
}
|
|
3510
4264
|
fn(() => {
|
|
3511
4265
|
let e = mt();
|
|
3512
4266
|
if (!e) return;
|
|
3513
|
-
let t =
|
|
4267
|
+
let t = X(A) === !0;
|
|
3514
4268
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
3515
4269
|
let n = !1;
|
|
3516
4270
|
return queueMicrotask(() => {
|
|
@@ -3528,117 +4282,128 @@ function za(o, s) {
|
|
|
3528
4282
|
return c();
|
|
3529
4283
|
},
|
|
3530
4284
|
set catalogId(e = "") {
|
|
3531
|
-
c(e),
|
|
4285
|
+
c(e), Ot();
|
|
3532
4286
|
},
|
|
3533
4287
|
get language() {
|
|
3534
4288
|
return l();
|
|
3535
4289
|
},
|
|
3536
4290
|
set language(e = "en-US") {
|
|
3537
|
-
l(e),
|
|
4291
|
+
l(e), Ot();
|
|
3538
4292
|
},
|
|
3539
4293
|
get size() {
|
|
3540
4294
|
return u();
|
|
3541
4295
|
},
|
|
3542
4296
|
set size(e = "md") {
|
|
3543
|
-
u(e),
|
|
4297
|
+
u(e), Ot();
|
|
3544
4298
|
},
|
|
3545
4299
|
get speedOptions() {
|
|
3546
4300
|
return d();
|
|
3547
4301
|
},
|
|
3548
4302
|
set speedOptions(e = void 0) {
|
|
3549
|
-
d(e),
|
|
4303
|
+
d(e), Ot();
|
|
3550
4304
|
},
|
|
3551
4305
|
get showSingleSpeedOption() {
|
|
3552
4306
|
return f();
|
|
3553
4307
|
},
|
|
3554
4308
|
set showSingleSpeedOption(e = !1) {
|
|
3555
|
-
f(e),
|
|
4309
|
+
f(e), Ot();
|
|
3556
4310
|
},
|
|
3557
4311
|
get layoutMode() {
|
|
3558
4312
|
return p();
|
|
3559
4313
|
},
|
|
3560
4314
|
set layoutMode(e = "expanding-row") {
|
|
3561
|
-
p(e),
|
|
4315
|
+
p(e), Ot();
|
|
3562
4316
|
}
|
|
3563
|
-
}, gt =
|
|
3564
|
-
var t =
|
|
4317
|
+
}, gt = gr(), _t = en(gt), V = (e) => {
|
|
4318
|
+
var t = eo();
|
|
3565
4319
|
let n;
|
|
3566
4320
|
{
|
|
3567
4321
|
let e = (e) => {
|
|
3568
|
-
var t =
|
|
3569
|
-
var t =
|
|
3570
|
-
Xr(t, "type", "circle"), Xr(t, "size", "small"), Xr(t, "variant", "tertiary"), yn(() => Xr(t, "icon-name",
|
|
3571
|
-
"aria-expanded":
|
|
3572
|
-
"aria-controls":
|
|
3573
|
-
"aria-pressed":
|
|
3574
|
-
"aria-busy":
|
|
3575
|
-
})), yn(() =>
|
|
4322
|
+
var t = Ya(), n = $t(t), r = (e) => {
|
|
4323
|
+
var t = qa();
|
|
4324
|
+
Xr(t, "type", "circle"), Xr(t, "size", "small"), Xr(t, "variant", "tertiary"), yn(() => Xr(t, "icon-name", X(j) && !X(M) ? "pause" : "play")), yn(() => Xr(t, "button-aria-label", X(D).t(X(j) && !X(M) ? "tools.textToSpeech.inline.pauseA11y" : X(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y"))), yn(() => Xr(t, "disabled", !X(k))), Rr(t, (e) => C?.(e)), Rr(t, (e, t) => w?.(e, t), () => ({
|
|
4325
|
+
"aria-expanded": X(A) ? "true" : "false",
|
|
4326
|
+
"aria-controls": X(A) ? Se : null,
|
|
4327
|
+
"aria-pressed": X(A) ? "true" : "false",
|
|
4328
|
+
"aria-busy": X(me) ? "true" : null
|
|
4329
|
+
})), yn(() => Wr(t, 1, `pie-tool-tts-inline__trigger ${X(tt) ?? ""}`, "svelte-18mzc0g")), sr("click", t, Xe), Z(e, t);
|
|
3576
4330
|
}, i = (e) => {
|
|
3577
|
-
var t =
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
}),
|
|
4331
|
+
var t = Ja(), n = $t(t);
|
|
4332
|
+
Ae(t), Rr(t, (e) => te?.(e)), yn((e) => {
|
|
4333
|
+
Wr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${X(tt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", X(A) ? "true" : "false"), Q(t, "aria-controls", X(A) ? Se : void 0), Q(t, "aria-pressed", X(A) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", X(me) ? "true" : void 0), t.disabled = !X(k), Wr(n, 1, `fa-solid ${X(j) && !X(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
|
|
4334
|
+
}, [() => X(D).t(X(j) && !X(M) ? "tools.textToSpeech.inline.pauseA11y" : X(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), sr("click", t, Xe), Z(e, t);
|
|
3581
4335
|
};
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
}),
|
|
4336
|
+
Dr(n, (e) => {
|
|
4337
|
+
X(re) ? e(r) : e(i, -1);
|
|
4338
|
+
}), Ae(t), Z(e, t);
|
|
3585
4339
|
}, n = (e) => {
|
|
3586
|
-
var t =
|
|
3587
|
-
var t =
|
|
4340
|
+
var t = gr(), n = en(t), r = (e) => {
|
|
4341
|
+
var t = Qa();
|
|
3588
4342
|
let n;
|
|
3589
4343
|
var r = $t(t), i = (e) => {
|
|
3590
|
-
var t =
|
|
4344
|
+
var t = Za();
|
|
3591
4345
|
let n;
|
|
3592
|
-
|
|
3593
|
-
var n =
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
}),
|
|
3597
|
-
}),
|
|
4346
|
+
jr(t, 21, () => X(ve), (e) => e.rate, (e, t) => {
|
|
4347
|
+
var n = Xa(), r = $t(n), i = $t(r, !0);
|
|
4348
|
+
Ae(r), Ae(n), yn(() => {
|
|
4349
|
+
Q(n, "data-pie-tts-speed-rate", X(t).rate), Q(n, "tabindex", X(ye) === X(t).rate ? 0 : -1), Q(n, "aria-label", X(t).ariaLabel), Q(n, "aria-checked", X(ye) === X(t).rate), n.disabled = !X(k), Q(r, "data-label", X(t).label), yr(i, X(t).label);
|
|
4350
|
+
}), sr("click", n, () => et(X(t))), sr("keydown", n, (e) => Ue(Fe, e)), Z(e, n);
|
|
4351
|
+
}), Ae(t), yn((e) => {
|
|
4352
|
+
n = Wr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": X(se) }), Q(t, "aria-label", e);
|
|
4353
|
+
}, [() => X(D).t("tools.textToSpeech.inline.playbackSpeedA11y")]), Z(e, t);
|
|
3598
4354
|
};
|
|
3599
|
-
|
|
3600
|
-
|
|
4355
|
+
Dr(r, (e) => {
|
|
4356
|
+
X(ve).length > 0 && e(i);
|
|
3601
4357
|
});
|
|
3602
4358
|
var a = tn(r, 2), o = tn(a, 2), s = tn(o, 2);
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
"pie-tool-tts-inline__panel--floating":
|
|
3606
|
-
"pie-tool-tts-inline__panel--row":
|
|
3607
|
-
"pie-tool-tts-inline__panel--left-aligned-inline":
|
|
3608
|
-
"pie-tool-tts-inline__panel--compact":
|
|
3609
|
-
}),
|
|
3610
|
-
}
|
|
4359
|
+
Ae(t), ti(t, (e) => U(E, e), () => X(E)), yn((e, r, i, c) => {
|
|
4360
|
+
Q(t, "id", Se), n = Wr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
4361
|
+
"pie-tool-tts-inline__panel--floating": X(rt),
|
|
4362
|
+
"pie-tool-tts-inline__panel--row": X(nt),
|
|
4363
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": X(it),
|
|
4364
|
+
"pie-tool-tts-inline__panel--compact": X(it) && X(se)
|
|
4365
|
+
}), Kr(t, X(it) ? X(ct) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !X(k) || !X(j), Q(o, "aria-label", i), o.disabled = !X(k) || !X(j), Q(s, "aria-label", c), s.disabled = !X(k);
|
|
4366
|
+
}, [
|
|
4367
|
+
() => X(D).t("tools.textToSpeech.inline.controlsA11y"),
|
|
4368
|
+
() => X(D).t("tools.textToSpeech.inline.rewindA11y"),
|
|
4369
|
+
() => X(D).t("tools.textToSpeech.inline.fastForwardA11y"),
|
|
4370
|
+
() => X(D).t("tools.textToSpeech.inline.stopA11y")
|
|
4371
|
+
]), sr("click", a, $e), sr("keydown", a, (e) => Ue(Ie, e)), sr("click", o, Qe), sr("keydown", o, (e) => Ue(Ie, e)), sr("click", s, Ze), sr("keydown", s, (e) => Ue(Ie, e)), Z(e, t);
|
|
3611
4372
|
};
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
}),
|
|
4373
|
+
Dr(n, (e) => {
|
|
4374
|
+
X(A) && e(r);
|
|
4375
|
+
}), Z(e, t);
|
|
3615
4376
|
};
|
|
3616
4377
|
var r = $t(t), i = (t) => {
|
|
3617
|
-
var r =
|
|
3618
|
-
n(i)
|
|
4378
|
+
var r = $a(), i = en(r);
|
|
4379
|
+
n(i);
|
|
4380
|
+
var a = tn(i, 2);
|
|
4381
|
+
e(a), Z(t, r);
|
|
3619
4382
|
}, a = (t) => {
|
|
3620
|
-
var r =
|
|
3621
|
-
e(i)
|
|
4383
|
+
var r = $a(), i = en(r);
|
|
4384
|
+
e(i);
|
|
4385
|
+
var a = tn(i, 2);
|
|
4386
|
+
n(a), Z(t, r);
|
|
3622
4387
|
};
|
|
3623
|
-
|
|
3624
|
-
|
|
4388
|
+
Dr(r, (e) => {
|
|
4389
|
+
X(at) ? e(i) : e(a, -1);
|
|
3625
4390
|
});
|
|
3626
4391
|
var o = tn(r, 2), s = $t(o, !0);
|
|
3627
|
-
|
|
4392
|
+
Ae(o), Ae(t), ti(t, (e) => U(T, e), () => X(T)), yn(() => yr(s, X(N)));
|
|
3628
4393
|
}
|
|
3629
4394
|
yn(() => {
|
|
3630
|
-
n =
|
|
3631
|
-
"pie-tool-tts-inline--controls-row":
|
|
3632
|
-
"pie-tool-tts-inline--floating":
|
|
3633
|
-
"pie-tool-tts-inline--left-aligned":
|
|
3634
|
-
}),
|
|
3635
|
-
}),
|
|
4395
|
+
n = Wr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
4396
|
+
"pie-tool-tts-inline--controls-row": X(nt),
|
|
4397
|
+
"pie-tool-tts-inline--floating": X(rt),
|
|
4398
|
+
"pie-tool-tts-inline--left-aligned": X(it)
|
|
4399
|
+
}), Kr(t, `--pie-tts-zoom-comp: ${ot.current};`);
|
|
4400
|
+
}), Z(e, t);
|
|
3636
4401
|
};
|
|
3637
|
-
return
|
|
3638
|
-
m && e(
|
|
3639
|
-
}),
|
|
4402
|
+
return Dr(_t, (e) => {
|
|
4403
|
+
m && e(V);
|
|
4404
|
+
}), Z(o, gt), ze(ht);
|
|
3640
4405
|
}
|
|
3641
|
-
|
|
4406
|
+
cr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(no, {
|
|
3642
4407
|
catalogId: {
|
|
3643
4408
|
attribute: "catalog-id",
|
|
3644
4409
|
type: "String"
|
|
@@ -3665,6 +4430,6 @@ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(za, {
|
|
|
3665
4430
|
}
|
|
3666
4431
|
}, [], [], { mode: "open" }));
|
|
3667
4432
|
//#endregion
|
|
3668
|
-
export {
|
|
4433
|
+
export { no as default };
|
|
3669
4434
|
|
|
3670
|
-
//# sourceMappingURL=tool-tts-inline-
|
|
4435
|
+
//# sourceMappingURL=tool-tts-inline-B71NTBbb.js.map
|