@pie-players/pie-tool-text-to-speech 0.3.26 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-text-to-speech.js +1279 -1216
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as g } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var dn, pn;
|
|
4
|
+
((dn = (pn = window).__svelte ?? (pn.__svelte = {})).v ?? (dn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var at = {}, C = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var at = {}, C = Symbol(), Xl = Symbol("filename");
|
|
7
|
+
var Wo = Array.isArray, Vo = Array.prototype.indexOf, lt = Array.prototype.includes, Ho = Array.from, Xt = Object.keys, Jt = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Go = Object.getOwnPropertyDescriptors, qo = Object.prototype, Yo = Array.prototype, Qn = Object.getPrototypeOf, hn = Object.isExtensible, Ko = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function Xo(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Zn() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,81 +19,81 @@ function Xn() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Jl = 1 << 24, te = 1024, he = 2048, Ye = 4096, Fr = 8192, Jo = 16384, Ur = 32768, vn = 1 << 25, Wr = 65536, Ql = 1 << 17, Zl = 1 << 18, pt = 1 << 19, Qo = 1 << 20, ec = 1 << 25, Lt = 65536, _n = 1 << 21, Zo = 1 << 22, Qt = 1 << 23, St = Symbol("$state"), ei = Symbol("legacy props"), es = Symbol(""), ts = Symbol("proxy path"), ye = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
|
-
super(...t),
|
|
24
|
+
super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), ti = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function rs(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ns() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function is(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function os() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ss(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function as() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ls() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function cs(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function us() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function fs() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function ds() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ps() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function or(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function hs() {
|
|
67
67
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
68
68
|
}
|
|
69
69
|
var A = !1;
|
|
70
70
|
function ot(e) {
|
|
71
71
|
A = e;
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var E;
|
|
74
74
|
function re(e) {
|
|
75
75
|
if (e === null)
|
|
76
|
-
throw
|
|
77
|
-
return
|
|
76
|
+
throw or(), at;
|
|
77
|
+
return E = e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return re(/* @__PURE__ */ Te(
|
|
79
|
+
function Vr() {
|
|
80
|
+
return re(/* @__PURE__ */ Te(E));
|
|
81
81
|
}
|
|
82
82
|
function N(e) {
|
|
83
83
|
if (A) {
|
|
84
|
-
if (/* @__PURE__ */ Te(
|
|
85
|
-
throw
|
|
86
|
-
|
|
84
|
+
if (/* @__PURE__ */ Te(E) !== null)
|
|
85
|
+
throw or(), at;
|
|
86
|
+
E = e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ar(e = 1) {
|
|
90
90
|
if (A) {
|
|
91
|
-
for (var t = e, r =
|
|
92
|
-
|
|
91
|
+
for (var t = e, r = E; t--; ) r = /* @__PURE__ */ Te(r);
|
|
92
|
+
E = r;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
for (var t = 0, r =
|
|
95
|
+
function ri(e = !0) {
|
|
96
|
+
for (var t = 0, r = E; ; ) {
|
|
97
97
|
if (r.nodeType === 8) {
|
|
98
98
|
var n = r.data;
|
|
99
99
|
if (n === "]") {
|
|
@@ -105,84 +105,84 @@ function Zn(e = !0) {
|
|
|
105
105
|
e && r.remove(), r = i;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function vs(e) {
|
|
109
109
|
if (!e || e.nodeType !== 8)
|
|
110
|
-
throw
|
|
110
|
+
throw or(), at;
|
|
111
111
|
return e.data;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ni(e) {
|
|
114
114
|
return e === this.v;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function _s(e, t) {
|
|
117
117
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return !
|
|
119
|
+
function ii(e) {
|
|
120
|
+
return !_s(e, this.v);
|
|
121
121
|
}
|
|
122
|
-
var ze = !1,
|
|
123
|
-
function
|
|
124
|
-
return e.label = t,
|
|
122
|
+
var ze = !1, Pt = !1;
|
|
123
|
+
function gn(e, t) {
|
|
124
|
+
return e.label = t, gs(e.v, t), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return e?.[
|
|
126
|
+
function gs(e, t) {
|
|
127
|
+
return e?.[ts]?.(t), e;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var M = null;
|
|
130
130
|
function ct(e) {
|
|
131
|
-
|
|
131
|
+
M = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
-
p:
|
|
133
|
+
function oi(e, t = !1, r) {
|
|
134
|
+
M = {
|
|
135
|
+
p: M,
|
|
136
136
|
i: !1,
|
|
137
137
|
c: null,
|
|
138
138
|
e: null,
|
|
139
139
|
s: e,
|
|
140
140
|
x: null,
|
|
141
141
|
r: T,
|
|
142
|
-
l:
|
|
142
|
+
l: Pt && !t ? {
|
|
143
143
|
s: null,
|
|
144
144
|
u: null,
|
|
145
145
|
$: []
|
|
146
146
|
} : null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
var t =
|
|
149
|
+
function si(e) {
|
|
150
|
+
var t = M, r = t.e;
|
|
151
151
|
if (r !== null) {
|
|
152
152
|
t.e = null;
|
|
153
|
-
for (var n of r)
|
|
153
|
+
for (var n of r) Oi(n);
|
|
154
154
|
}
|
|
155
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
155
|
+
return e !== void 0 && (t.x = e), t.i = !0, M = t.p, e ?? {};
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return !
|
|
157
|
+
function Ot() {
|
|
158
|
+
return !Pt || M !== null && M.l === null;
|
|
159
159
|
}
|
|
160
160
|
var Be = [];
|
|
161
|
-
function
|
|
161
|
+
function ai() {
|
|
162
162
|
var e = Be;
|
|
163
|
-
Be = [],
|
|
163
|
+
Be = [], Xo(e);
|
|
164
164
|
}
|
|
165
165
|
function qe(e) {
|
|
166
166
|
if (Be.length === 0 && !xt) {
|
|
167
167
|
var t = Be;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t === Be &&
|
|
169
|
+
t === Be && ai();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
Be.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (; Be.length > 0; )
|
|
174
|
+
function ms() {
|
|
175
|
+
for (; Be.length > 0; ) ai();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function li(e) {
|
|
178
178
|
var t = T;
|
|
179
179
|
if (t === null)
|
|
180
180
|
return S.f |= Qt, e;
|
|
181
181
|
if (!(t.f & 32768) && !(t.f & 4))
|
|
182
182
|
throw e;
|
|
183
|
-
|
|
183
|
+
Le(e, t);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Le(e, t) {
|
|
186
186
|
for (; t !== null; ) {
|
|
187
187
|
if (t.f & 128) {
|
|
188
188
|
if (!(t.f & 32768)) throw e;
|
|
@@ -197,23 +197,23 @@ function Pe(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
throw e;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
e.f = e.f &
|
|
200
|
+
var bs = ~(he | Ye | te);
|
|
201
|
+
function R(e, t) {
|
|
202
|
+
e.f = e.f & bs | t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.f & 512 || e.deps === null ?
|
|
204
|
+
function Hr(e) {
|
|
205
|
+
e.f & 512 || e.deps === null ? R(e, te) : R(e, Ye);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ci(e) {
|
|
208
208
|
if (e !== null)
|
|
209
209
|
for (const t of e)
|
|
210
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
210
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= Lt, ci(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
212
|
+
function ui(e, t, r) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), ci(e.deps), R(e, te);
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
215
|
+
var ys = !1, Nt = !1;
|
|
216
|
+
function ws(e) {
|
|
217
217
|
var t = Nt;
|
|
218
218
|
try {
|
|
219
219
|
return Nt = !1, [e(), Nt];
|
|
@@ -221,29 +221,29 @@ function gs(e) {
|
|
|
221
221
|
Nt = t;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function fi(e, t) {
|
|
225
225
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
function Gr(e, t) {
|
|
228
|
+
fi(e, t), t.add(e);
|
|
229
229
|
}
|
|
230
230
|
function k(e, t, r) {
|
|
231
|
-
|
|
231
|
+
fi(e, t), t.set(e, r);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function L(e, t, r) {
|
|
234
234
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
235
235
|
throw new TypeError("Private element is not present on this object");
|
|
236
236
|
}
|
|
237
237
|
function l(e, t) {
|
|
238
|
-
return e.get(
|
|
238
|
+
return e.get(L(e, t));
|
|
239
239
|
}
|
|
240
240
|
function y(e, t, r) {
|
|
241
|
-
return e.set(
|
|
241
|
+
return e.set(L(e, t), r), r;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
var
|
|
243
|
+
var di, we = /* @__PURE__ */ new Set(), I = null, mn = null, W = null, $r = null, xt = !1, mr = !1, ut = null, Zt = null, pi = 0;
|
|
244
|
+
var ks = 1, er = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakSet(), Ke = class hi {
|
|
245
245
|
constructor() {
|
|
246
|
-
|
|
246
|
+
Gr(this, fe), g(this, "id", ks++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), k(this, er, /* @__PURE__ */ new Set()), k(this, jt, /* @__PURE__ */ new Set()), k(this, tt, 0), k(this, rt, 0), k(this, Ht, null), k(this, oe, []), k(this, It, /* @__PURE__ */ new Set()), k(this, We, /* @__PURE__ */ new Set()), k(this, je, /* @__PURE__ */ new Map()), g(this, "is_fork", !1), k(this, Bt, !1);
|
|
247
247
|
}
|
|
248
248
|
skip_effect(t) {
|
|
249
249
|
l(je, this).has(t) || l(je, this).set(t, {
|
|
@@ -256,26 +256,26 @@ var ms = 1, er = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap
|
|
|
256
256
|
if (r) {
|
|
257
257
|
l(je, this).delete(t);
|
|
258
258
|
for (var n of r.d)
|
|
259
|
-
|
|
259
|
+
R(n, he), this.schedule(n);
|
|
260
260
|
for (n of r.m)
|
|
261
|
-
|
|
261
|
+
R(n, Ye), this.schedule(n);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
capture(t, r) {
|
|
265
|
-
r !== C && !this.previous.has(t) && this.previous.set(t, r), t.f & 8388608 || (this.current.set(t, t.v),
|
|
265
|
+
r !== C && !this.previous.has(t) && this.previous.set(t, r), t.f & 8388608 || (this.current.set(t, t.v), W?.set(t, t.v));
|
|
266
266
|
}
|
|
267
267
|
activate() {
|
|
268
|
-
|
|
268
|
+
I = this;
|
|
269
269
|
}
|
|
270
270
|
deactivate() {
|
|
271
|
-
|
|
271
|
+
I = null, W = null;
|
|
272
272
|
}
|
|
273
273
|
flush() {
|
|
274
274
|
var t = null;
|
|
275
275
|
try {
|
|
276
|
-
|
|
276
|
+
mr = !0, I = this, L(fe, this, vi).call(this);
|
|
277
277
|
} finally {
|
|
278
|
-
|
|
278
|
+
pi = 0, $r = null, ut = null, Zt = null, mr = !1, I = null, W = null, Me.clear();
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
discard() {
|
|
@@ -291,8 +291,8 @@ var ms = 1, er = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap
|
|
|
291
291
|
}));
|
|
292
292
|
}
|
|
293
293
|
transfer_effects(t, r) {
|
|
294
|
-
for (const n of t) l(
|
|
295
|
-
for (const n of r) l(
|
|
294
|
+
for (const n of t) l(It, this).add(n);
|
|
295
|
+
for (const n of r) l(We, this).add(n);
|
|
296
296
|
t.clear(), r.clear();
|
|
297
297
|
}
|
|
298
298
|
oncommit(t) {
|
|
@@ -302,36 +302,36 @@ var ms = 1, er = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap
|
|
|
302
302
|
l(jt, this).add(t);
|
|
303
303
|
}
|
|
304
304
|
settled() {
|
|
305
|
-
return (l(Ht, this) ?? y(Ht, this,
|
|
305
|
+
return (l(Ht, this) ?? y(Ht, this, Zn())).promise;
|
|
306
306
|
}
|
|
307
307
|
static ensure() {
|
|
308
|
-
if (
|
|
309
|
-
const t =
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
if (I === null) {
|
|
309
|
+
const t = I = new hi();
|
|
310
|
+
mr || (we.add(I), xt || qe(() => {
|
|
311
|
+
I === t && t.flush();
|
|
312
312
|
}));
|
|
313
313
|
}
|
|
314
|
-
return
|
|
314
|
+
return I;
|
|
315
315
|
}
|
|
316
316
|
apply() {
|
|
317
317
|
if (!ze || !this.is_fork && we.size === 1) {
|
|
318
|
-
|
|
318
|
+
W = null;
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
W = new Map(this.current);
|
|
322
322
|
for (const t of we)
|
|
323
323
|
if (!(t === this || t.is_fork))
|
|
324
|
-
for (const [r, n] of t.previous)
|
|
324
|
+
for (const [r, n] of t.previous) W.has(r) || W.set(r, n);
|
|
325
325
|
}
|
|
326
326
|
schedule(t) {
|
|
327
|
-
if (
|
|
327
|
+
if ($r = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
|
|
328
328
|
t.b.defer_effect(t);
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
for (var r = t; r.parent !== null; ) {
|
|
332
332
|
r = r.parent;
|
|
333
333
|
var n = r.f;
|
|
334
|
-
if (ut !== null && r === T && (ze || (S === null || !(S.f & 2)) && !
|
|
334
|
+
if (ut !== null && r === T && (ze || (S === null || !(S.f & 2)) && !ys))
|
|
335
335
|
return;
|
|
336
336
|
if (n & 96) {
|
|
337
337
|
if (!(n & 1024)) return;
|
|
@@ -341,90 +341,90 @@ var ms = 1, er = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap
|
|
|
341
341
|
l(oe, this).push(r);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
di = Ke;
|
|
345
|
+
function bn() {
|
|
346
346
|
return this.is_fork || l(rt, this) > 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
350
|
-
for (const
|
|
351
|
-
l(
|
|
352
|
-
for (const
|
|
353
|
-
|
|
348
|
+
function vi() {
|
|
349
|
+
if (pi++ > 1e3 && (we.delete(this), Ss()), !L(fe, this, bn).call(this)) {
|
|
350
|
+
for (const a of l(It, this))
|
|
351
|
+
l(We, this).delete(a), R(a, he), this.schedule(a);
|
|
352
|
+
for (const a of l(We, this))
|
|
353
|
+
R(a, Ye), this.schedule(a);
|
|
354
354
|
}
|
|
355
355
|
const e = l(oe, this);
|
|
356
356
|
y(oe, this, []), this.apply();
|
|
357
357
|
var t = ut = [], r = [], n = Zt = [];
|
|
358
|
-
for (const
|
|
359
|
-
|
|
360
|
-
} catch (
|
|
361
|
-
throw
|
|
358
|
+
for (const a of e) try {
|
|
359
|
+
L(fe, this, _i).call(this, a, t, r);
|
|
360
|
+
} catch (s) {
|
|
361
|
+
throw yi(a), s;
|
|
362
362
|
}
|
|
363
|
-
if (
|
|
364
|
-
var i =
|
|
365
|
-
for (const
|
|
363
|
+
if (I = null, n.length > 0) {
|
|
364
|
+
var i = di.ensure();
|
|
365
|
+
for (const a of n) i.schedule(a);
|
|
366
366
|
}
|
|
367
|
-
if (ut = null, Zt = null,
|
|
368
|
-
|
|
369
|
-
for (const [
|
|
367
|
+
if (ut = null, Zt = null, L(fe, this, bn).call(this)) {
|
|
368
|
+
L(fe, this, yn).call(this, r), L(fe, this, yn).call(this, t);
|
|
369
|
+
for (const [a, s] of l(je, this)) bi(a, s);
|
|
370
370
|
} else {
|
|
371
|
-
l(tt, this) === 0 && we.delete(this), l(
|
|
372
|
-
for (const
|
|
373
|
-
l(er, this).clear(),
|
|
371
|
+
l(tt, this) === 0 && we.delete(this), l(It, this).clear(), l(We, this).clear();
|
|
372
|
+
for (const a of l(er, this)) a(this);
|
|
373
|
+
l(er, this).clear(), mn = this, wn(r), wn(t), mn = null, l(Ht, this)?.resolve();
|
|
374
374
|
}
|
|
375
|
-
var o =
|
|
375
|
+
var o = I;
|
|
376
376
|
if (l(oe, this).length > 0) {
|
|
377
|
-
const
|
|
378
|
-
l(oe,
|
|
377
|
+
const a = o ?? (o = this);
|
|
378
|
+
l(oe, a).push(...l(oe, this).filter((s) => !l(oe, a).includes(s)));
|
|
379
379
|
}
|
|
380
|
-
o !== null && (we.add(o),
|
|
380
|
+
o !== null && (we.add(o), L(fe, o, vi).call(o)), we.has(this) || L(fe, this, Ts).call(this);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function _i(e, t, r) {
|
|
383
383
|
e.f ^= te;
|
|
384
384
|
for (var n = e.first; n !== null; ) {
|
|
385
385
|
var i = n.f, o = (i & 96) !== 0;
|
|
386
386
|
if (!(o && i & 1024 || i & 8192 || l(je, this).has(n)) && n.fn !== null) {
|
|
387
|
-
o ? n.f ^= te : i & 4 ? t.push(n) : ze && i & 16777224 ? r.push(n) : zt(n) && (i & 16 && l(
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
390
|
-
n =
|
|
387
|
+
o ? n.f ^= te : i & 4 ? t.push(n) : ze && i & 16777224 ? r.push(n) : zt(n) && (i & 16 && l(We, this).add(n), dt(n));
|
|
388
|
+
var a = n.first;
|
|
389
|
+
if (a !== null) {
|
|
390
|
+
n = a;
|
|
391
391
|
continue;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
for (; n !== null; ) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
397
|
-
n =
|
|
395
|
+
var s = n.next;
|
|
396
|
+
if (s !== null) {
|
|
397
|
+
n = s;
|
|
398
398
|
break;
|
|
399
399
|
}
|
|
400
400
|
n = n.parent;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
for (var t = 0; t < e.length; t += 1)
|
|
404
|
+
function yn(e) {
|
|
405
|
+
for (var t = 0; t < e.length; t += 1) ui(e[t], l(It, this), l(We, this));
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
for (const
|
|
409
|
-
var e =
|
|
410
|
-
for (const [c,
|
|
411
|
-
if (
|
|
407
|
+
function Ts() {
|
|
408
|
+
for (const s of we) {
|
|
409
|
+
var e = s.id < this.id, t = [];
|
|
410
|
+
for (const [c, d] of this.current) {
|
|
411
|
+
if (s.current.has(c)) if (e && d !== s.current.get(c)) s.current.set(c, d);
|
|
412
412
|
else continue;
|
|
413
413
|
t.push(c);
|
|
414
414
|
}
|
|
415
|
-
var r = [...
|
|
415
|
+
var r = [...s.current.keys()].filter((c) => !this.current.has(c));
|
|
416
416
|
if (r.length === 0)
|
|
417
|
-
e &&
|
|
417
|
+
e && s.discard();
|
|
418
418
|
else if (t.length > 0) {
|
|
419
|
-
|
|
419
|
+
s.activate();
|
|
420
420
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
422
|
-
if (l(oe,
|
|
423
|
-
|
|
424
|
-
for (var
|
|
425
|
-
y(oe,
|
|
421
|
+
for (var o of t) gi(o, r, n, i);
|
|
422
|
+
if (l(oe, s).length > 0) {
|
|
423
|
+
s.apply();
|
|
424
|
+
for (var a of l(oe, s)) L(fe, s, _i).call(s, a, [], []);
|
|
425
|
+
y(oe, s, []);
|
|
426
426
|
}
|
|
427
|
-
|
|
427
|
+
s.deactivate();
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -433,42 +433,42 @@ function Tt(e) {
|
|
|
433
433
|
xt = !0;
|
|
434
434
|
try {
|
|
435
435
|
var r;
|
|
436
|
-
for (e && (
|
|
437
|
-
if (
|
|
438
|
-
|
|
436
|
+
for (e && (I !== null && !I.is_fork && I.flush(), r = e()); ; ) {
|
|
437
|
+
if (ms(), I === null) return r;
|
|
438
|
+
I.flush();
|
|
439
439
|
}
|
|
440
440
|
} finally {
|
|
441
441
|
xt = t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Ss() {
|
|
445
445
|
if (0) {
|
|
446
446
|
var e;
|
|
447
|
-
for (const r of
|
|
447
|
+
for (const r of I.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
448
448
|
var t;
|
|
449
449
|
}
|
|
450
450
|
try {
|
|
451
|
-
|
|
451
|
+
as();
|
|
452
452
|
} catch (r) {
|
|
453
|
-
|
|
453
|
+
Le(r, $r);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
var de = null;
|
|
457
|
-
function
|
|
457
|
+
function wn(e) {
|
|
458
458
|
var t = e.length;
|
|
459
459
|
if (t !== 0) {
|
|
460
460
|
for (var r = 0; r < t; ) {
|
|
461
461
|
var n = e[r++];
|
|
462
|
-
if (!(n.f & 24576) && zt(n) && (de = /* @__PURE__ */ new Set(), dt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
463
|
-
|
|
462
|
+
if (!(n.f & 24576) && zt(n) && (de = /* @__PURE__ */ new Set(), dt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ci(n), de?.size > 0)) {
|
|
463
|
+
Me.clear();
|
|
464
464
|
for (const i of de) {
|
|
465
465
|
if (i.f & 24576) continue;
|
|
466
466
|
const o = [i];
|
|
467
|
-
let
|
|
468
|
-
for (;
|
|
469
|
-
de.has(
|
|
470
|
-
for (let
|
|
471
|
-
const c = o[
|
|
467
|
+
let a = i.parent;
|
|
468
|
+
for (; a !== null; )
|
|
469
|
+
de.has(a) && (de.delete(a), o.push(a)), a = a.parent;
|
|
470
|
+
for (let s = o.length - 1; s >= 0; s--) {
|
|
471
|
+
const c = o[s];
|
|
472
472
|
c.f & 24576 || dt(c);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
@@ -478,73 +478,73 @@ function bn(e) {
|
|
|
478
478
|
de = null;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function gi(e, t, r, n) {
|
|
482
482
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
483
483
|
for (const i of e.reactions) {
|
|
484
484
|
const o = i.f;
|
|
485
|
-
o & 2 ?
|
|
485
|
+
o & 2 ? gi(i, t, r, n) : o & 4194320 && !(o & 2048) && mi(i, t, n) && (R(i, he), qr(i));
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function mi(e, t, r) {
|
|
489
489
|
const n = r.get(e);
|
|
490
490
|
if (n !== void 0) return n;
|
|
491
491
|
if (e.deps !== null) for (const i of e.deps) {
|
|
492
492
|
if (lt.call(t, i)) return !0;
|
|
493
|
-
if (i.f & 2 &&
|
|
493
|
+
if (i.f & 2 && mi(i, t, r))
|
|
494
494
|
return r.set(i, !0), !0;
|
|
495
495
|
}
|
|
496
496
|
return r.set(e, !1), !1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
498
|
+
function qr(e) {
|
|
499
|
+
I.schedule(e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function bi(e, t) {
|
|
502
502
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
503
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
503
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, te);
|
|
504
504
|
for (var r = e.first; r !== null; )
|
|
505
|
-
|
|
505
|
+
bi(r, t), r = r.next;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
|
|
508
|
+
function yi(e) {
|
|
509
|
+
R(e, te);
|
|
510
510
|
for (var t = e.first; t !== null; )
|
|
511
|
-
|
|
511
|
+
yi(t), t = t.next;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
let t = 0, r =
|
|
513
|
+
function xs(e) {
|
|
514
|
+
let t = 0, r = Mt(0), n;
|
|
515
515
|
return () => {
|
|
516
|
-
|
|
516
|
+
Jr() && (_(r), Qr(() => (t === 0 && (n = lr(() => e(() => Et(r)))), t += 1, () => {
|
|
517
517
|
qe(() => {
|
|
518
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
518
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Et(r));
|
|
519
519
|
});
|
|
520
520
|
})));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
new
|
|
523
|
+
var Es = Wr | pt;
|
|
524
|
+
function Is(e, t, r, n) {
|
|
525
|
+
new As(e, t, r, n);
|
|
526
526
|
}
|
|
527
|
-
var se = /* @__PURE__ */ new WeakMap(),
|
|
527
|
+
var se = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), As = class {
|
|
528
528
|
constructor(e, t, r, n) {
|
|
529
|
-
|
|
529
|
+
Gr(this, F), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), k(this, se, void 0), k(this, br, A ? E : null), k(this, $e, void 0), k(this, At, void 0), k(this, Q, void 0), k(this, Pe, null), k(this, ae, null), k(this, be, null), k(this, Ve, null), k(this, nt, 0), k(this, He, 0), k(this, Ft, !1), k(this, Lr, /* @__PURE__ */ new Set()), k(this, Pr, /* @__PURE__ */ new Set()), k(this, De, null), k(this, kn, xs(() => (y(De, this, Mt(l(nt, this))), () => {
|
|
530
530
|
y(De, this, null);
|
|
531
531
|
}))), y(se, this, e), y($e, this, t), y(At, this, (i) => {
|
|
532
532
|
var o = T;
|
|
533
533
|
o.b = this, o.f |= 128, r(i);
|
|
534
|
-
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), y(Q, this,
|
|
534
|
+
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), y(Q, this, Ri(() => {
|
|
535
535
|
if (A) {
|
|
536
|
-
const i = l(
|
|
537
|
-
|
|
536
|
+
const i = l(br, this);
|
|
537
|
+
Vr();
|
|
538
538
|
const o = i.data === "[!";
|
|
539
539
|
if (i.data.startsWith("[?")) {
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
} else o ?
|
|
543
|
-
} else
|
|
544
|
-
},
|
|
540
|
+
const a = JSON.parse(i.data.slice(2));
|
|
541
|
+
L(F, this, Ls).call(this, a);
|
|
542
|
+
} else o ? L(F, this, Ps).call(this) : L(F, this, $s).call(this);
|
|
543
|
+
} else L(F, this, Tn).call(this);
|
|
544
|
+
}, Es)), A && y(se, this, E);
|
|
545
545
|
}
|
|
546
546
|
defer_effect(e) {
|
|
547
|
-
|
|
547
|
+
ui(e, l(Lr, this), l(Pr, this));
|
|
548
548
|
}
|
|
549
549
|
is_rendered() {
|
|
550
550
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -553,174 +553,174 @@ var se = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), $e =
|
|
|
553
553
|
return !!l($e, this).pending;
|
|
554
554
|
}
|
|
555
555
|
update_pending_count(e, t) {
|
|
556
|
-
|
|
556
|
+
L(F, this, wi).call(this, e, t), y(nt, this, l(nt, this) + e), !(!l(De, this) || l(Ft, this)) && (y(Ft, this, !0), qe(() => {
|
|
557
557
|
y(Ft, this, !1), l(De, this) && rr(l(De, this), l(nt, this));
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
get_effect_pending() {
|
|
561
|
-
return l(
|
|
561
|
+
return l(kn, this).call(this), _(l(De, this));
|
|
562
562
|
}
|
|
563
563
|
error(e) {
|
|
564
564
|
var t = l($e, this).onerror;
|
|
565
565
|
let r = l($e, this).failed;
|
|
566
566
|
if (!t && !r) throw e;
|
|
567
|
-
l(
|
|
567
|
+
l(Pe, this) && (V(l(Pe, this)), y(Pe, this, null)), l(ae, this) && (V(l(ae, this)), y(ae, this, null)), l(be, this) && (V(l(be, this)), y(be, this, null)), A && (re(l(br, this)), Ar(), re(ri()));
|
|
568
568
|
var n = !1, i = !1;
|
|
569
569
|
const o = () => {
|
|
570
570
|
if (n) {
|
|
571
|
-
|
|
571
|
+
hs();
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
n = !0, i &&
|
|
574
|
+
n = !0, i && ps(), l(be, this) !== null && Rt(l(be, this), () => {
|
|
575
575
|
y(be, this, null);
|
|
576
|
-
}),
|
|
577
|
-
|
|
576
|
+
}), L(F, this, Or).call(this, () => {
|
|
577
|
+
L(F, this, Tn).call(this);
|
|
578
578
|
});
|
|
579
|
-
},
|
|
579
|
+
}, a = (s) => {
|
|
580
580
|
try {
|
|
581
|
-
i = !0, t?.(
|
|
581
|
+
i = !0, t?.(s, o), i = !1;
|
|
582
582
|
} catch (c) {
|
|
583
|
-
|
|
583
|
+
Le(c, l(Q, this) && l(Q, this).parent);
|
|
584
584
|
}
|
|
585
|
-
r && y(be, this,
|
|
585
|
+
r && y(be, this, L(F, this, Or).call(this, () => {
|
|
586
586
|
try {
|
|
587
587
|
return ke(() => {
|
|
588
588
|
var c = T;
|
|
589
|
-
c.b = this, c.f |= 128, r(l(se, this), () =>
|
|
589
|
+
c.b = this, c.f |= 128, r(l(se, this), () => s, () => o);
|
|
590
590
|
});
|
|
591
591
|
} catch (c) {
|
|
592
|
-
return
|
|
592
|
+
return Le(c, l(Q, this).parent), null;
|
|
593
593
|
}
|
|
594
594
|
}));
|
|
595
595
|
};
|
|
596
596
|
qe(() => {
|
|
597
|
-
var
|
|
597
|
+
var s;
|
|
598
598
|
try {
|
|
599
|
-
|
|
599
|
+
s = this.transform_error(e);
|
|
600
600
|
} catch (c) {
|
|
601
|
-
|
|
601
|
+
Le(c, l(Q, this) && l(Q, this).parent);
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
s !== null && typeof s == "object" && typeof s.then == "function" ? s.then(a, (c) => Le(c, l(Q, this) && l(Q, this).parent)) : a(s);
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function $s() {
|
|
609
609
|
try {
|
|
610
|
-
y(
|
|
610
|
+
y(Pe, this, ke(() => l(At, this).call(this, l(se, this))));
|
|
611
611
|
} catch (e) {
|
|
612
612
|
this.error(e);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Ls(e) {
|
|
616
616
|
const t = l($e, this).failed;
|
|
617
617
|
t && y(be, this, ke(() => {
|
|
618
618
|
t(l(se, this), () => e, () => () => {
|
|
619
619
|
});
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Ps() {
|
|
623
623
|
const e = l($e, this).pending;
|
|
624
624
|
e && (this.is_pending = !0, y(ae, this, ke(() => e(l(se, this)))), qe(() => {
|
|
625
|
-
var t = y(
|
|
626
|
-
t.append(r), y(
|
|
625
|
+
var t = y(Ve, this, document.createDocumentFragment()), r = ce();
|
|
626
|
+
t.append(r), y(Pe, this, L(F, this, Or).call(this, () => ke(() => l(At, this).call(this, r)))), l(He, this) === 0 && (l(se, this).before(t), y(Ve, this, null), Rt(l(ae, this), () => {
|
|
627
627
|
y(ae, this, null);
|
|
628
|
-
}),
|
|
628
|
+
}), L(F, this, Yr).call(this, I));
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Tn() {
|
|
632
632
|
try {
|
|
633
|
-
if (this.is_pending = this.has_pending_snippet(), y(He, this, 0), y(nt, this, 0), y(
|
|
633
|
+
if (this.is_pending = this.has_pending_snippet(), y(He, this, 0), y(nt, this, 0), y(Pe, this, ke(() => {
|
|
634
634
|
l(At, this).call(this, l(se, this));
|
|
635
635
|
})), l(He, this) > 0) {
|
|
636
|
-
var e = y(
|
|
637
|
-
|
|
636
|
+
var e = y(Ve, this, document.createDocumentFragment());
|
|
637
|
+
ji(l(Pe, this), e);
|
|
638
638
|
const t = l($e, this).pending;
|
|
639
639
|
y(ae, this, ke(() => t(l(se, this))));
|
|
640
|
-
} else
|
|
640
|
+
} else L(F, this, Yr).call(this, I);
|
|
641
641
|
} catch (t) {
|
|
642
642
|
this.error(t);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
this.is_pending = !1, e.transfer_effects(l(
|
|
645
|
+
function Yr(e) {
|
|
646
|
+
this.is_pending = !1, e.transfer_effects(l(Lr, this), l(Pr, this));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
var t = T, r = S, n =
|
|
648
|
+
function Or(e) {
|
|
649
|
+
var t = T, r = S, n = M;
|
|
650
650
|
pe(l(Q, this)), ne(l(Q, this)), ct(l(Q, this).ctx);
|
|
651
651
|
try {
|
|
652
652
|
return Ke.ensure(), e();
|
|
653
653
|
} catch (i) {
|
|
654
|
-
return
|
|
654
|
+
return li(i), null;
|
|
655
655
|
} finally {
|
|
656
656
|
pe(t), ne(r), ct(n);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function wi(e, t) {
|
|
660
660
|
if (!this.has_pending_snippet()) {
|
|
661
661
|
if (this.parent) {
|
|
662
662
|
var r;
|
|
663
|
-
|
|
663
|
+
L(F, r = this.parent, wi).call(r, e, t);
|
|
664
664
|
}
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
|
-
y(He, this, l(He, this) + e), l(He, this) === 0 && (
|
|
667
|
+
y(He, this, l(He, this) + e), l(He, this) === 0 && (L(F, this, Yr).call(this, t), l(ae, this) && Rt(l(ae, this), () => {
|
|
668
668
|
y(ae, this, null);
|
|
669
|
-
}), l(
|
|
669
|
+
}), l(Ve, this) && (l(se, this).before(l(Ve, this)), y(Ve, this, null)));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const i =
|
|
671
|
+
function Os(e, t, r, n) {
|
|
672
|
+
const i = Ot() ? sr : Ti;
|
|
673
673
|
var o = e.filter((u) => !u.settled);
|
|
674
674
|
if (r.length === 0 && o.length === 0) {
|
|
675
675
|
n(t.map(i));
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
var
|
|
679
|
-
function
|
|
680
|
-
|
|
678
|
+
var a = T, s = Ms(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((u) => u.promise)) : null;
|
|
679
|
+
function d(u) {
|
|
680
|
+
s();
|
|
681
681
|
try {
|
|
682
682
|
n(u);
|
|
683
|
-
} catch (
|
|
684
|
-
|
|
683
|
+
} catch (p) {
|
|
684
|
+
a.f & 16384 || Le(p, a);
|
|
685
685
|
}
|
|
686
686
|
tr();
|
|
687
687
|
}
|
|
688
688
|
if (r.length === 0) {
|
|
689
|
-
c.then(() =>
|
|
689
|
+
c.then(() => d(t.map(i)));
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
var
|
|
693
|
-
function
|
|
694
|
-
Promise.all(r.map((u) => /* @__PURE__ */
|
|
692
|
+
var f = ki();
|
|
693
|
+
function v() {
|
|
694
|
+
Promise.all(r.map((u) => /* @__PURE__ */ Rs(u))).then((u) => d([...t.map(i), ...u])).catch((u) => Le(u, a)).finally(() => f());
|
|
695
695
|
}
|
|
696
696
|
c ? c.then(() => {
|
|
697
|
-
|
|
698
|
-
}) :
|
|
697
|
+
s(), v(), tr();
|
|
698
|
+
}) : v();
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
var e = T, t = S, r =
|
|
700
|
+
function Ms() {
|
|
701
|
+
var e = T, t = S, r = M, n = I;
|
|
702
702
|
if (0) var i;
|
|
703
|
-
return function(
|
|
704
|
-
pe(e), ne(t), ct(r),
|
|
703
|
+
return function(a = !0) {
|
|
704
|
+
pe(e), ne(t), ct(r), a && !(e.f & 16384) && (n?.activate(), n?.apply());
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
function tr(e = !0) {
|
|
708
|
-
pe(null), ne(null), ct(null), e &&
|
|
708
|
+
pe(null), ne(null), ct(null), e && I?.deactivate();
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
var e = T.b, t =
|
|
710
|
+
function ki() {
|
|
711
|
+
var e = T.b, t = I, r = e.is_rendered();
|
|
712
712
|
return e.update_pending_count(1, t), t.increment(r), (n = !1) => {
|
|
713
713
|
e.update_pending_count(-1, t), t.decrement(r, n);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
// @__NO_SIDE_EFFECTS__
|
|
717
|
-
function
|
|
717
|
+
function sr(e) {
|
|
718
718
|
var t = 2 | he, r = S !== null && S.f & 2 ? S : null;
|
|
719
719
|
return T !== null && (T.f |= pt), {
|
|
720
|
-
ctx:
|
|
720
|
+
ctx: M,
|
|
721
721
|
deps: null,
|
|
722
722
|
effects: null,
|
|
723
|
-
equals:
|
|
723
|
+
equals: ni,
|
|
724
724
|
f: t,
|
|
725
725
|
fn: e,
|
|
726
726
|
reactions: null,
|
|
@@ -732,240 +732,240 @@ function or(e) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
// @__NO_SIDE_EFFECTS__
|
|
735
|
-
function
|
|
735
|
+
function Rs(e, t, r) {
|
|
736
736
|
let n = T;
|
|
737
|
-
n === null &&
|
|
738
|
-
var i = void 0, o =
|
|
739
|
-
return
|
|
740
|
-
var c = T,
|
|
741
|
-
i =
|
|
737
|
+
n === null && ns();
|
|
738
|
+
var i = void 0, o = Mt(C), a = !S, s = /* @__PURE__ */ new Map();
|
|
739
|
+
return Qs(() => {
|
|
740
|
+
var c = T, d = Zn();
|
|
741
|
+
i = d.promise;
|
|
742
742
|
try {
|
|
743
|
-
Promise.resolve(e()).then(
|
|
744
|
-
} catch (
|
|
745
|
-
|
|
743
|
+
Promise.resolve(e()).then(d.resolve, d.reject).finally(tr);
|
|
744
|
+
} catch (p) {
|
|
745
|
+
d.reject(p), tr();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
if (
|
|
749
|
-
if (c.f & 32768) var
|
|
747
|
+
var f = I;
|
|
748
|
+
if (a) {
|
|
749
|
+
if (c.f & 32768) var v = ki();
|
|
750
750
|
if (n.b.is_rendered())
|
|
751
|
-
|
|
751
|
+
s.get(f)?.reject(ye), s.delete(f);
|
|
752
752
|
else {
|
|
753
|
-
for (const
|
|
754
|
-
|
|
753
|
+
for (const p of s.values()) p.reject(ye);
|
|
754
|
+
s.clear();
|
|
755
755
|
}
|
|
756
|
-
|
|
756
|
+
s.set(f, d);
|
|
757
757
|
}
|
|
758
|
-
const u = (
|
|
759
|
-
if (
|
|
760
|
-
if (
|
|
761
|
-
o.f |= Qt, rr(o,
|
|
758
|
+
const u = (p, h = void 0) => {
|
|
759
|
+
if (v && v(h === ye), !(h === ye || c.f & 16384)) {
|
|
760
|
+
if (f.activate(), h)
|
|
761
|
+
o.f |= Qt, rr(o, h);
|
|
762
762
|
else {
|
|
763
|
-
o.f & 8388608 && (o.f ^= Qt), rr(o,
|
|
764
|
-
for (const [m, b] of
|
|
765
|
-
if (
|
|
763
|
+
o.f & 8388608 && (o.f ^= Qt), rr(o, p);
|
|
764
|
+
for (const [m, b] of s) {
|
|
765
|
+
if (s.delete(m), m === f) break;
|
|
766
766
|
b.reject(ye);
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
|
|
769
|
+
f.deactivate();
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
|
-
|
|
773
|
-
}),
|
|
774
|
-
for (const c of
|
|
772
|
+
d.promise.then(u, (p) => u(null, p || "unknown"));
|
|
773
|
+
}), Ks(() => {
|
|
774
|
+
for (const c of s.values()) c.reject(ye);
|
|
775
775
|
}), new Promise((c) => {
|
|
776
|
-
function f
|
|
777
|
-
function
|
|
778
|
-
|
|
776
|
+
function d(f) {
|
|
777
|
+
function v() {
|
|
778
|
+
f === i ? c(o) : d(i);
|
|
779
779
|
}
|
|
780
|
-
|
|
780
|
+
f.then(v, v);
|
|
781
781
|
}
|
|
782
|
-
|
|
782
|
+
d(i);
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
785
|
// @__NO_SIDE_EFFECTS__
|
|
786
|
-
function
|
|
787
|
-
const t = /* @__PURE__ */
|
|
788
|
-
return ze ||
|
|
786
|
+
function zs(e) {
|
|
787
|
+
const t = /* @__PURE__ */ sr(e);
|
|
788
|
+
return ze || Bi(t), t;
|
|
789
789
|
}
|
|
790
790
|
// @__NO_SIDE_EFFECTS__
|
|
791
|
-
function
|
|
792
|
-
const t = /* @__PURE__ */
|
|
793
|
-
return t.equals =
|
|
791
|
+
function Ti(e) {
|
|
792
|
+
const t = /* @__PURE__ */ sr(e);
|
|
793
|
+
return t.equals = ii, t;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Cs(e) {
|
|
796
796
|
var t = e.effects;
|
|
797
797
|
if (t !== null) {
|
|
798
798
|
e.effects = null;
|
|
799
|
-
for (var r = 0; r < t.length; r += 1)
|
|
799
|
+
for (var r = 0; r < t.length; r += 1) V(t[r]);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Ds(e) {
|
|
803
803
|
for (var t = e.parent; t !== null; ) {
|
|
804
804
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
805
805
|
t = t.parent;
|
|
806
806
|
}
|
|
807
807
|
return null;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Kr(e) {
|
|
810
810
|
var t, r = T;
|
|
811
|
-
if (pe(
|
|
811
|
+
if (pe(Ds(e)), 0)
|
|
812
812
|
try {
|
|
813
813
|
} finally {
|
|
814
814
|
}
|
|
815
815
|
else try {
|
|
816
|
-
e.f &= ~
|
|
816
|
+
e.f &= ~Lt, Cs(e), t = Vi(e);
|
|
817
817
|
} finally {
|
|
818
818
|
pe(r);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
var t = e.v, r =
|
|
824
|
-
if (!e.equals(r) && (e.wv =
|
|
825
|
-
|
|
822
|
+
function Si(e) {
|
|
823
|
+
var t = e.v, r = Kr(e);
|
|
824
|
+
if (!e.equals(r) && (e.wv = Ui(), (!I?.is_fork || e.deps === null) && (e.v = r, I?.capture(e, t), e.deps === null))) {
|
|
825
|
+
R(e, te);
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
|
-
Ce || (
|
|
828
|
+
Ce || (W !== null ? (Jr() || I?.is_fork) && W.set(e, r) : Hr(e));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Ns(e) {
|
|
831
831
|
if (e.effects !== null)
|
|
832
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ye), t.teardown =
|
|
832
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ye), t.teardown = Ko, t.ac = null, $t(t, 0), Zr(t));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function xi(e) {
|
|
835
835
|
if (e.effects !== null)
|
|
836
836
|
for (const t of e.effects) t.teardown && dt(t);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
var
|
|
840
|
-
function
|
|
838
|
+
var Mr = /* @__PURE__ */ new Set(), Me = /* @__PURE__ */ new Map();
|
|
839
|
+
var Ei = !1;
|
|
840
|
+
function Mt(e, t) {
|
|
841
841
|
var r = {
|
|
842
842
|
f: 0,
|
|
843
843
|
v: e,
|
|
844
844
|
reactions: null,
|
|
845
|
-
equals:
|
|
845
|
+
equals: ni,
|
|
846
846
|
rv: 0,
|
|
847
847
|
wv: 0
|
|
848
848
|
};
|
|
849
849
|
return r;
|
|
850
850
|
}
|
|
851
851
|
// @__NO_SIDE_EFFECTS__
|
|
852
|
-
function
|
|
853
|
-
const r =
|
|
854
|
-
return
|
|
852
|
+
function O(e, t) {
|
|
853
|
+
const r = Mt(e, t);
|
|
854
|
+
return Bi(r), r;
|
|
855
855
|
}
|
|
856
856
|
// @__NO_SIDE_EFFECTS__
|
|
857
|
-
function
|
|
858
|
-
const n =
|
|
859
|
-
if (t || (n.equals =
|
|
857
|
+
function js(e, t = !1, r = !0) {
|
|
858
|
+
const n = Mt(e);
|
|
859
|
+
if (t || (n.equals = ii), Pt && r && M !== null && M.l !== null) {
|
|
860
860
|
var i;
|
|
861
|
-
((i =
|
|
861
|
+
((i = M.l).s ?? (i.s = [])).push(n);
|
|
862
862
|
}
|
|
863
863
|
return n;
|
|
864
864
|
}
|
|
865
865
|
function x(e, t, r = !1) {
|
|
866
|
-
S !== null && (!le || S.f & 131072) &&
|
|
867
|
-
let n = r ?
|
|
866
|
+
S !== null && (!le || S.f & 131072) && Ot() && S.f & 4325394 && (ee === null || !lt.call(ee, e)) && ds();
|
|
867
|
+
let n = r ? Oe(t) : t;
|
|
868
868
|
return rr(e, n, Zt);
|
|
869
869
|
}
|
|
870
870
|
function rr(e, t, r = null) {
|
|
871
871
|
if (!e.equals(t)) {
|
|
872
872
|
var n = e.v;
|
|
873
|
-
Ce ?
|
|
873
|
+
Ce ? Me.set(e, t) : Me.set(e, n), e.v = t;
|
|
874
874
|
var i = Ke.ensure();
|
|
875
875
|
if (i.capture(e, n), e.f & 2) {
|
|
876
876
|
const o = e;
|
|
877
|
-
e.f & 2048 &&
|
|
877
|
+
e.f & 2048 && Kr(o), W === null && Hr(o);
|
|
878
878
|
}
|
|
879
|
-
e.wv =
|
|
879
|
+
e.wv = Ui(), Ii(e, he, r), Ot() && T !== null && T.f & 1024 && !(T.f & 96) && (Z === null ? na([e]) : Z.push(e)), !i.is_fork && Mr.size > 0 && !Ei && Bs();
|
|
880
880
|
}
|
|
881
881
|
return t;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
885
|
-
for (const e of
|
|
886
|
-
e.f & 1024 &&
|
|
887
|
-
|
|
883
|
+
function Bs() {
|
|
884
|
+
Ei = !1;
|
|
885
|
+
for (const e of Mr)
|
|
886
|
+
e.f & 1024 && R(e, Ye), zt(e) && dt(e);
|
|
887
|
+
Mr.clear();
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Et(e) {
|
|
890
890
|
x(e, e.v + 1);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Ii(e, t, r) {
|
|
893
893
|
var n = e.reactions;
|
|
894
894
|
if (n !== null)
|
|
895
|
-
for (var i =
|
|
896
|
-
var
|
|
897
|
-
if (!(!i &&
|
|
898
|
-
var
|
|
899
|
-
if (
|
|
900
|
-
var
|
|
901
|
-
|
|
902
|
-
} else if (
|
|
903
|
-
var
|
|
904
|
-
c & 16 && de !== null && de.add(
|
|
895
|
+
for (var i = Ot(), o = n.length, a = 0; a < o; a++) {
|
|
896
|
+
var s = n[a], c = s.f;
|
|
897
|
+
if (!(!i && s === T)) {
|
|
898
|
+
var d = (c & he) === 0;
|
|
899
|
+
if (d && R(s, t), c & 2) {
|
|
900
|
+
var f = s;
|
|
901
|
+
W?.delete(f), c & 65536 || (c & 512 && (s.f |= Lt), Ii(f, Ye, r));
|
|
902
|
+
} else if (d) {
|
|
903
|
+
var v = s;
|
|
904
|
+
c & 16 && de !== null && de.add(v), r !== null ? r.push(v) : qr(v);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
function
|
|
909
|
+
var Fs = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
910
|
+
function Oe(e) {
|
|
911
911
|
if (typeof e != "object" || e === null || St in e) return e;
|
|
912
|
-
const t =
|
|
913
|
-
if (t !==
|
|
914
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
915
|
-
if (Ge ===
|
|
916
|
-
var u = S,
|
|
917
|
-
ne(null),
|
|
918
|
-
var
|
|
919
|
-
return ne(u),
|
|
912
|
+
const t = Qn(e);
|
|
913
|
+
if (t !== qo && t !== Yo) return e;
|
|
914
|
+
var r = /* @__PURE__ */ new Map(), n = Wo(e), i = /* @__PURE__ */ O(0), o = null, a = Ge, s = (v) => {
|
|
915
|
+
if (Ge === a) return v();
|
|
916
|
+
var u = S, p = Ge;
|
|
917
|
+
ne(null), An(a);
|
|
918
|
+
var h = v();
|
|
919
|
+
return ne(u), An(p), h;
|
|
920
920
|
};
|
|
921
|
-
n && r.set("length", /* @__PURE__ */
|
|
921
|
+
n && r.set("length", /* @__PURE__ */ O(e.length, o));
|
|
922
922
|
var c = "";
|
|
923
|
-
let
|
|
924
|
-
function
|
|
925
|
-
if (!
|
|
926
|
-
|
|
927
|
-
for (const [u,
|
|
928
|
-
|
|
923
|
+
let d = !1;
|
|
924
|
+
function f(v) {
|
|
925
|
+
if (!d) {
|
|
926
|
+
d = !0, c = v, gn(i, `${c} version`);
|
|
927
|
+
for (const [u, p] of r) gn(p, Us(c, u));
|
|
928
|
+
d = !1;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
return new Proxy(e, {
|
|
932
|
-
defineProperty(
|
|
933
|
-
(!("value" in
|
|
934
|
-
var
|
|
935
|
-
return
|
|
936
|
-
var m = /* @__PURE__ */
|
|
932
|
+
defineProperty(v, u, p) {
|
|
933
|
+
(!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && us();
|
|
934
|
+
var h = r.get(u);
|
|
935
|
+
return h === void 0 ? s(() => {
|
|
936
|
+
var m = /* @__PURE__ */ O(p.value, o);
|
|
937
937
|
return r.set(u, m), m;
|
|
938
|
-
}) : x(
|
|
938
|
+
}) : x(h, p.value, !0), !0;
|
|
939
939
|
},
|
|
940
|
-
deleteProperty(
|
|
941
|
-
var
|
|
942
|
-
if (
|
|
943
|
-
if (u in
|
|
944
|
-
const
|
|
945
|
-
r.set(u,
|
|
940
|
+
deleteProperty(v, u) {
|
|
941
|
+
var p = r.get(u);
|
|
942
|
+
if (p === void 0) {
|
|
943
|
+
if (u in v) {
|
|
944
|
+
const h = s(() => /* @__PURE__ */ O(C, o));
|
|
945
|
+
r.set(u, h), Et(i);
|
|
946
946
|
}
|
|
947
947
|
} else
|
|
948
|
-
x(
|
|
948
|
+
x(p, C), Et(i);
|
|
949
949
|
return !0;
|
|
950
950
|
},
|
|
951
|
-
get(
|
|
951
|
+
get(v, u, p) {
|
|
952
952
|
if (u === St) return e;
|
|
953
|
-
var
|
|
954
|
-
if (
|
|
955
|
-
var $ = /* @__PURE__ */
|
|
953
|
+
var h = r.get(u), m = u in v;
|
|
954
|
+
if (h === void 0 && (!m || Ue(v, u)?.writable) && (h = s(() => {
|
|
955
|
+
var $ = /* @__PURE__ */ O(Oe(m ? v[u] : C), o);
|
|
956
956
|
return $;
|
|
957
|
-
}), r.set(u,
|
|
958
|
-
var b =
|
|
957
|
+
}), r.set(u, h)), h !== void 0) {
|
|
958
|
+
var b = _(h);
|
|
959
959
|
return b === C ? void 0 : b;
|
|
960
960
|
}
|
|
961
|
-
return Reflect.get(
|
|
961
|
+
return Reflect.get(v, u, p);
|
|
962
962
|
},
|
|
963
|
-
getOwnPropertyDescriptor(
|
|
964
|
-
var
|
|
965
|
-
if (
|
|
966
|
-
var
|
|
967
|
-
|
|
968
|
-
} else if (
|
|
963
|
+
getOwnPropertyDescriptor(v, u) {
|
|
964
|
+
var p = Reflect.getOwnPropertyDescriptor(v, u);
|
|
965
|
+
if (p && "value" in p) {
|
|
966
|
+
var h = r.get(u);
|
|
967
|
+
h && (p.value = _(h));
|
|
968
|
+
} else if (p === void 0) {
|
|
969
969
|
var m = r.get(u), b = m?.v;
|
|
970
970
|
if (m !== void 0 && b !== C) return {
|
|
971
971
|
enumerable: !0,
|
|
@@ -974,62 +974,62 @@ function Le(e) {
|
|
|
974
974
|
writable: !0
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return p;
|
|
978
978
|
},
|
|
979
|
-
has(
|
|
979
|
+
has(v, u) {
|
|
980
980
|
if (u === St) return !0;
|
|
981
|
-
var
|
|
982
|
-
return (
|
|
983
|
-
var m = /* @__PURE__ */
|
|
981
|
+
var p = r.get(u), h = p !== void 0 && p.v !== C || Reflect.has(v, u);
|
|
982
|
+
return (p !== void 0 || T !== null && (!h || Ue(v, u)?.writable)) && (p === void 0 && (p = s(() => {
|
|
983
|
+
var m = /* @__PURE__ */ O(h ? Oe(v[u]) : C, o);
|
|
984
984
|
return m;
|
|
985
|
-
}), r.set(u,
|
|
985
|
+
}), r.set(u, p)), _(p) === C) ? !1 : h;
|
|
986
986
|
},
|
|
987
|
-
set(
|
|
988
|
-
var m = r.get(u), b = u in
|
|
989
|
-
if (n && u === "length") for (var $ =
|
|
987
|
+
set(v, u, p, h) {
|
|
988
|
+
var m = r.get(u), b = u in v;
|
|
989
|
+
if (n && u === "length") for (var $ = p; $ < m.v; $ += 1) {
|
|
990
990
|
var H = r.get($ + "");
|
|
991
|
-
H !== void 0 ? x(H, C) : $ in
|
|
991
|
+
H !== void 0 ? x(H, C) : $ in v && (H = s(() => /* @__PURE__ */ O(C, o)), r.set($ + "", H));
|
|
992
992
|
}
|
|
993
993
|
if (m === void 0)
|
|
994
|
-
(!b || Ue(
|
|
994
|
+
(!b || Ue(v, u)?.writable) && (m = s(() => /* @__PURE__ */ O(void 0, o)), x(m, Oe(p)), r.set(u, m));
|
|
995
995
|
else {
|
|
996
996
|
b = m.v !== C;
|
|
997
|
-
var
|
|
998
|
-
x(m,
|
|
997
|
+
var P = s(() => Oe(p));
|
|
998
|
+
x(m, P);
|
|
999
999
|
}
|
|
1000
|
-
var D = Reflect.getOwnPropertyDescriptor(
|
|
1001
|
-
if (D?.set && D.set.call(
|
|
1000
|
+
var D = Reflect.getOwnPropertyDescriptor(v, u);
|
|
1001
|
+
if (D?.set && D.set.call(h, p), !b) {
|
|
1002
1002
|
if (n && typeof u == "string") {
|
|
1003
|
-
var
|
|
1004
|
-
Number.isInteger(_t) && _t >=
|
|
1003
|
+
var Ee = r.get("length"), _t = Number(u);
|
|
1004
|
+
Number.isInteger(_t) && _t >= Ee.v && x(Ee, _t + 1);
|
|
1005
1005
|
}
|
|
1006
|
-
|
|
1006
|
+
Et(i);
|
|
1007
1007
|
}
|
|
1008
1008
|
return !0;
|
|
1009
1009
|
},
|
|
1010
|
-
ownKeys(
|
|
1011
|
-
|
|
1012
|
-
var u = Reflect.ownKeys(
|
|
1010
|
+
ownKeys(v) {
|
|
1011
|
+
_(i);
|
|
1012
|
+
var u = Reflect.ownKeys(v).filter((m) => {
|
|
1013
1013
|
var b = r.get(m);
|
|
1014
1014
|
return b === void 0 || b.v !== C;
|
|
1015
1015
|
});
|
|
1016
|
-
for (var [
|
|
1016
|
+
for (var [p, h] of r) h.v !== C && !(p in v) && u.push(p);
|
|
1017
1017
|
return u;
|
|
1018
1018
|
},
|
|
1019
1019
|
setPrototypeOf() {
|
|
1020
|
-
|
|
1020
|
+
fs();
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1024
|
+
function Us(e, t) {
|
|
1025
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Fs.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1028
|
-
function
|
|
1029
|
-
if (
|
|
1030
|
-
|
|
1027
|
+
var Sn, Ws, Ai, $i, Li;
|
|
1028
|
+
function Rr() {
|
|
1029
|
+
if (Sn === void 0) {
|
|
1030
|
+
Sn = window, Ws = document, Ai = /Firefox/.test(navigator.userAgent);
|
|
1031
1031
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1032
|
-
|
|
1032
|
+
$i = Ue(t, "firstChild").get, Li = Ue(t, "nextSibling").get, hn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), hn(r) && (r.__t = void 0);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
function ce(e = "") {
|
|
@@ -1037,38 +1037,38 @@ function ce(e = "") {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
// @__NO_SIDE_EFFECTS__
|
|
1039
1039
|
function ft(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return $i.call(e);
|
|
1041
1041
|
}
|
|
1042
1042
|
// @__NO_SIDE_EFFECTS__
|
|
1043
1043
|
function Te(e) {
|
|
1044
|
-
return
|
|
1044
|
+
return Li.call(e);
|
|
1045
1045
|
}
|
|
1046
1046
|
function j(e, t) {
|
|
1047
1047
|
if (!A) return /* @__PURE__ */ ft(e);
|
|
1048
|
-
var r = /* @__PURE__ */ ft(
|
|
1049
|
-
if (r === null) r =
|
|
1048
|
+
var r = /* @__PURE__ */ ft(E);
|
|
1049
|
+
if (r === null) r = E.appendChild(ce());
|
|
1050
1050
|
else if (t && r.nodeType !== 3) {
|
|
1051
1051
|
var n = ce();
|
|
1052
1052
|
return r?.before(n), re(n), n;
|
|
1053
1053
|
}
|
|
1054
|
-
return t &&
|
|
1054
|
+
return t && ar(r), re(r), r;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function xn(e, t = !1) {
|
|
1057
1057
|
if (!A) {
|
|
1058
1058
|
var r = /* @__PURE__ */ ft(e);
|
|
1059
1059
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Te(r) : r;
|
|
1060
1060
|
}
|
|
1061
1061
|
if (t) {
|
|
1062
|
-
if (
|
|
1062
|
+
if (E?.nodeType !== 3) {
|
|
1063
1063
|
var n = ce();
|
|
1064
|
-
return
|
|
1064
|
+
return E?.before(n), re(n), n;
|
|
1065
1065
|
}
|
|
1066
|
-
|
|
1066
|
+
ar(E);
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1068
|
+
return E;
|
|
1069
1069
|
}
|
|
1070
1070
|
function X(e, t = 1, r = !1) {
|
|
1071
|
-
let n = A ?
|
|
1071
|
+
let n = A ? E : e;
|
|
1072
1072
|
for (var i; t--; )
|
|
1073
1073
|
i = n, n = /* @__PURE__ */ Te(n);
|
|
1074
1074
|
if (!A) return n;
|
|
@@ -1077,35 +1077,35 @@ function X(e, t = 1, r = !1) {
|
|
|
1077
1077
|
var o = ce();
|
|
1078
1078
|
return n === null ? i?.after(o) : n.before(o), re(o), o;
|
|
1079
1079
|
}
|
|
1080
|
-
|
|
1080
|
+
ar(n);
|
|
1081
1081
|
}
|
|
1082
1082
|
return re(n), n;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Vs(e) {
|
|
1085
1085
|
e.textContent = "";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return !ze || de !== null ? !1 : (T.f &
|
|
1087
|
+
function Hs() {
|
|
1088
|
+
return !ze || de !== null ? !1 : (T.f & Ur) !== 0;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function Xr(e, t, r) {
|
|
1091
1091
|
let n = r ? { is: r } : void 0;
|
|
1092
1092
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, n);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function ar(e) {
|
|
1095
1095
|
if (e.nodeValue.length < 65536) return;
|
|
1096
1096
|
let t = e.nextSibling;
|
|
1097
1097
|
for (; t !== null && t.nodeType === 3; )
|
|
1098
1098
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1099
1099
|
}
|
|
1100
|
-
var
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1100
|
+
var En = !1;
|
|
1101
|
+
function Gs() {
|
|
1102
|
+
En || (En = !0, document.addEventListener("reset", (e) => {
|
|
1103
1103
|
Promise.resolve().then(() => {
|
|
1104
1104
|
if (!e.defaultPrevented) for (const t of e.target.elements) t.__on_r?.();
|
|
1105
1105
|
});
|
|
1106
1106
|
}, { capture: !0 }));
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Pi(e) {
|
|
1109
1109
|
var t = S, r = T;
|
|
1110
1110
|
ne(null), pe(null);
|
|
1111
1111
|
try {
|
|
@@ -1114,18 +1114,18 @@ function Ai(e) {
|
|
|
1114
1114
|
ne(t), pe(r);
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
T === null && (S === null &&
|
|
1117
|
+
function qs(e) {
|
|
1118
|
+
T === null && (S === null && ss(e), os()), Ce && is(e);
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function Ys(e, t) {
|
|
1121
1121
|
var r = t.last;
|
|
1122
1122
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1123
1123
|
}
|
|
1124
1124
|
function ve(e, t) {
|
|
1125
1125
|
var r = T;
|
|
1126
|
-
r !== null && r.f & 8192 && (e |=
|
|
1126
|
+
r !== null && r.f & 8192 && (e |= Fr);
|
|
1127
1127
|
var n = {
|
|
1128
|
-
ctx:
|
|
1128
|
+
ctx: M,
|
|
1129
1129
|
deps: null,
|
|
1130
1130
|
nodes: null,
|
|
1131
1131
|
f: e | he | 512,
|
|
@@ -1144,167 +1144,167 @@ function ve(e, t) {
|
|
|
1144
1144
|
else if (t !== null) {
|
|
1145
1145
|
try {
|
|
1146
1146
|
dt(n);
|
|
1147
|
-
} catch (
|
|
1148
|
-
throw
|
|
1147
|
+
} catch (a) {
|
|
1148
|
+
throw V(n), a;
|
|
1149
1149
|
}
|
|
1150
|
-
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 |=
|
|
1150
|
+
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 |= Wr));
|
|
1151
1151
|
}
|
|
1152
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1152
|
+
if (i !== null && (i.parent = r, r !== null && Ys(i, r), S !== null && S.f & 2 && !(e & 64))) {
|
|
1153
1153
|
var o = S;
|
|
1154
1154
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1155
1155
|
}
|
|
1156
1156
|
return n;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Jr() {
|
|
1159
1159
|
return S !== null && !le;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Ks(e) {
|
|
1162
1162
|
const t = ve(8, null);
|
|
1163
|
-
return
|
|
1163
|
+
return R(t, te), t.teardown = e, t;
|
|
1164
1164
|
}
|
|
1165
1165
|
function Gt(e) {
|
|
1166
|
-
|
|
1166
|
+
qs("$effect");
|
|
1167
1167
|
var t = T.f;
|
|
1168
1168
|
if (!S && t & 32 && !(t & 32768)) {
|
|
1169
|
-
var r =
|
|
1169
|
+
var r = M;
|
|
1170
1170
|
(r.e ?? (r.e = [])).push(e);
|
|
1171
|
-
} else return
|
|
1171
|
+
} else return Oi(e);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return ve(4 |
|
|
1173
|
+
function Oi(e) {
|
|
1174
|
+
return ve(4 | Qo, e);
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Xs(e) {
|
|
1177
1177
|
Ke.ensure();
|
|
1178
1178
|
const t = ve(64 | pt, e);
|
|
1179
1179
|
return () => {
|
|
1180
|
-
|
|
1180
|
+
V(t);
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function Js(e) {
|
|
1184
1184
|
Ke.ensure();
|
|
1185
1185
|
const t = ve(64 | pt, e);
|
|
1186
1186
|
return (r = {}) => new Promise((n) => {
|
|
1187
|
-
r.outro ?
|
|
1188
|
-
|
|
1189
|
-
}) : (
|
|
1187
|
+
r.outro ? Rt(t, () => {
|
|
1188
|
+
V(t), n(void 0);
|
|
1189
|
+
}) : (V(t), n(void 0));
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function Mi(e) {
|
|
1193
1193
|
return ve(4, e);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return ve(
|
|
1195
|
+
function Qs(e) {
|
|
1196
|
+
return ve(Zo | pt, e);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Qr(e, t = 0) {
|
|
1199
1199
|
return ve(8 | t, e);
|
|
1200
1200
|
}
|
|
1201
1201
|
function yt(e, t = [], r = [], n = []) {
|
|
1202
|
-
|
|
1203
|
-
ve(8, () => e(...i.map(
|
|
1202
|
+
Os(n, t, r, (i) => {
|
|
1203
|
+
ve(8, () => e(...i.map(_)));
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Ri(e, t = 0) {
|
|
1207
1207
|
var r = ve(16 | t, e);
|
|
1208
1208
|
return r;
|
|
1209
1209
|
}
|
|
1210
1210
|
function ke(e) {
|
|
1211
1211
|
return ve(32 | pt, e);
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function zi(e) {
|
|
1214
1214
|
var t = e.teardown;
|
|
1215
1215
|
if (t !== null) {
|
|
1216
1216
|
const r = Ce, n = S;
|
|
1217
|
-
|
|
1217
|
+
In(!0), ne(null);
|
|
1218
1218
|
try {
|
|
1219
1219
|
t.call(null);
|
|
1220
1220
|
} finally {
|
|
1221
|
-
|
|
1221
|
+
In(r), ne(n);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function Zr(e, t = !1) {
|
|
1226
1226
|
var r = e.first;
|
|
1227
1227
|
for (e.first = e.last = null; r !== null; ) {
|
|
1228
1228
|
const i = r.ac;
|
|
1229
|
-
i !== null &&
|
|
1229
|
+
i !== null && Pi(() => {
|
|
1230
1230
|
i.abort(ye);
|
|
1231
1231
|
});
|
|
1232
1232
|
var n = r.next;
|
|
1233
|
-
r.f & 64 ? r.parent = null :
|
|
1233
|
+
r.f & 64 ? r.parent = null : V(r, t), r = n;
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Zs(e) {
|
|
1237
1237
|
for (var t = e.first; t !== null; ) {
|
|
1238
1238
|
var r = t.next;
|
|
1239
|
-
t.f & 32 ||
|
|
1239
|
+
t.f & 32 || V(t), t = r;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function V(e, t = !0) {
|
|
1243
1243
|
var r = !1;
|
|
1244
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1244
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ea(e.nodes.start, e.nodes.end), r = !0), R(e, vn), Zr(e, t && !r), $t(e, 0);
|
|
1245
1245
|
var n = e.nodes && e.nodes.t;
|
|
1246
1246
|
if (n !== null) for (const o of n) o.stop();
|
|
1247
|
-
|
|
1247
|
+
zi(e), e.f ^= vn, e.f |= Jo;
|
|
1248
1248
|
var i = e.parent;
|
|
1249
|
-
i !== null && i.first !== null &&
|
|
1249
|
+
i !== null && i.first !== null && Ci(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function ea(e, t) {
|
|
1252
1252
|
for (; e !== null; ) {
|
|
1253
1253
|
var r = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1254
1254
|
e.remove(), e = r;
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Ci(e) {
|
|
1258
1258
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1259
1259
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Rt(e, t, r = !0) {
|
|
1262
1262
|
var n = [];
|
|
1263
|
-
|
|
1263
|
+
Di(e, n, !0);
|
|
1264
1264
|
var i = () => {
|
|
1265
|
-
r &&
|
|
1265
|
+
r && V(e), t && t();
|
|
1266
1266
|
}, o = n.length;
|
|
1267
1267
|
if (o > 0) {
|
|
1268
|
-
var
|
|
1269
|
-
for (var
|
|
1268
|
+
var a = () => --o || i();
|
|
1269
|
+
for (var s of n) s.out(a);
|
|
1270
1270
|
} else i();
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Di(e, t, r) {
|
|
1273
1273
|
if (!(e.f & 8192)) {
|
|
1274
|
-
e.f ^=
|
|
1274
|
+
e.f ^= Fr;
|
|
1275
1275
|
var n = e.nodes && e.nodes.t;
|
|
1276
1276
|
if (n !== null)
|
|
1277
|
-
for (const
|
|
1277
|
+
for (const s of n) (s.is_global || r) && t.push(s);
|
|
1278
1278
|
for (var i = e.first; i !== null; ) {
|
|
1279
|
-
var o = i.next,
|
|
1280
|
-
|
|
1279
|
+
var o = i.next, a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1280
|
+
Di(i, t, a ? r : !1), i = o;
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1285
|
-
|
|
1284
|
+
function ta(e) {
|
|
1285
|
+
Ni(e, !0);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Ni(e, t) {
|
|
1288
1288
|
if (e.f & 8192) {
|
|
1289
|
-
e.f ^=
|
|
1289
|
+
e.f ^= Fr, e.f & 1024 || (R(e, he), Ke.ensure().schedule(e));
|
|
1290
1290
|
for (var r = e.first; r !== null; ) {
|
|
1291
1291
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1292
|
-
|
|
1292
|
+
Ni(r, i ? t : !1), r = n;
|
|
1293
1293
|
}
|
|
1294
1294
|
var o = e.nodes && e.nodes.t;
|
|
1295
1295
|
if (o !== null)
|
|
1296
|
-
for (const
|
|
1296
|
+
for (const a of o) (a.is_global || t) && a.in();
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function ji(e, t) {
|
|
1300
1300
|
if (e.nodes)
|
|
1301
1301
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1302
1302
|
var i = r === n ? null : /* @__PURE__ */ Te(r);
|
|
1303
1303
|
t.append(r), r = i;
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
var
|
|
1307
|
-
function
|
|
1306
|
+
var ra = null, qt = !1, Ce = !1;
|
|
1307
|
+
function In(e) {
|
|
1308
1308
|
Ce = e;
|
|
1309
1309
|
}
|
|
1310
1310
|
var S = null, le = !1;
|
|
@@ -1316,77 +1316,77 @@ function pe(e) {
|
|
|
1316
1316
|
T = e;
|
|
1317
1317
|
}
|
|
1318
1318
|
var ee = null;
|
|
1319
|
-
function
|
|
1319
|
+
function Bi(e) {
|
|
1320
1320
|
S !== null && (!ze || S.f & 2) && (ee === null ? ee = [e] : ee.push(e));
|
|
1321
1321
|
}
|
|
1322
1322
|
var U = null, Y = 0, Z = null;
|
|
1323
|
-
function
|
|
1323
|
+
function na(e) {
|
|
1324
1324
|
Z = e;
|
|
1325
1325
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1326
|
+
var Fi = 1, Fe = 0, Ge = Fe;
|
|
1327
|
+
function An(e) {
|
|
1328
1328
|
Ge = e;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return ++
|
|
1330
|
+
function Ui() {
|
|
1331
|
+
return ++Fi;
|
|
1332
1332
|
}
|
|
1333
1333
|
function zt(e) {
|
|
1334
1334
|
var t = e.f;
|
|
1335
1335
|
if (t & 2048) return !0;
|
|
1336
|
-
if (t & 2 && (e.f &= ~
|
|
1336
|
+
if (t & 2 && (e.f &= ~Lt), t & 4096) {
|
|
1337
1337
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1338
1338
|
var o = r[i];
|
|
1339
|
-
if (zt(o) &&
|
|
1339
|
+
if (zt(o) && Si(o), o.wv > e.wv) return !0;
|
|
1340
1340
|
}
|
|
1341
|
-
t & 512 &&
|
|
1341
|
+
t & 512 && W === null && R(e, te);
|
|
1342
1342
|
}
|
|
1343
1343
|
return !1;
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Wi(e, t, r = !0) {
|
|
1346
1346
|
var n = e.reactions;
|
|
1347
1347
|
if (n !== null && !(!ze && ee !== null && lt.call(ee, e)))
|
|
1348
1348
|
for (var i = 0; i < n.length; i++) {
|
|
1349
1349
|
var o = n[i];
|
|
1350
|
-
o.f & 2 ?
|
|
1350
|
+
o.f & 2 ? Wi(o, t, !1) : t === o && (r ? R(o, he) : o.f & 1024 && R(o, Ye), qr(o));
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
var t = U, r = Y, n = Z, i = S, o = ee,
|
|
1355
|
-
U = null, Y = 0, Z = null, S =
|
|
1353
|
+
function Vi(e) {
|
|
1354
|
+
var t = U, r = Y, n = Z, i = S, o = ee, a = M, s = le, c = Ge, d = e.f;
|
|
1355
|
+
U = null, Y = 0, Z = null, S = d & 96 ? null : e, ee = null, ct(e.ctx), le = !1, Ge = ++Fe, e.ac !== null && (Pi(() => {
|
|
1356
1356
|
e.ac.abort(ye);
|
|
1357
1357
|
}), e.ac = null);
|
|
1358
1358
|
try {
|
|
1359
|
-
e.f |=
|
|
1360
|
-
var
|
|
1361
|
-
e.f |=
|
|
1362
|
-
var u = e.deps,
|
|
1359
|
+
e.f |= _n;
|
|
1360
|
+
var f = e.fn, v = f();
|
|
1361
|
+
e.f |= Ur;
|
|
1362
|
+
var u = e.deps, p = I?.is_fork;
|
|
1363
1363
|
if (U !== null) {
|
|
1364
|
-
var
|
|
1365
|
-
if (
|
|
1366
|
-
for (u.length = Y + U.length,
|
|
1364
|
+
var h;
|
|
1365
|
+
if (p || $t(e, Y), u !== null && Y > 0)
|
|
1366
|
+
for (u.length = Y + U.length, h = 0; h < U.length; h++) u[Y + h] = U[h];
|
|
1367
1367
|
else e.deps = u = U;
|
|
1368
|
-
if (
|
|
1368
|
+
if (Jr() && e.f & 512) for (h = Y; h < u.length; h++) {
|
|
1369
1369
|
var m;
|
|
1370
|
-
((m = u[
|
|
1370
|
+
((m = u[h]).reactions ?? (m.reactions = [])).push(e);
|
|
1371
1371
|
}
|
|
1372
|
-
} else !
|
|
1373
|
-
if (
|
|
1372
|
+
} else !p && u !== null && Y < u.length && ($t(e, Y), u.length = Y);
|
|
1373
|
+
if (Ot() && Z !== null && !le && u !== null && !(e.f & 6146)) for (h = 0; h < Z.length; h++) Wi(Z[h], e);
|
|
1374
1374
|
if (i !== null && i !== e) {
|
|
1375
1375
|
if (Fe++, i.deps !== null) for (let b = 0; b < r; b += 1) i.deps[b].rv = Fe;
|
|
1376
1376
|
if (t !== null) for (const b of t) b.rv = Fe;
|
|
1377
1377
|
Z !== null && (n === null ? n = Z : n.push(...Z));
|
|
1378
1378
|
}
|
|
1379
|
-
return e.f & 8388608 && (e.f ^= Qt),
|
|
1379
|
+
return e.f & 8388608 && (e.f ^= Qt), v;
|
|
1380
1380
|
} catch (b) {
|
|
1381
|
-
return
|
|
1381
|
+
return li(b);
|
|
1382
1382
|
} finally {
|
|
1383
|
-
e.f ^=
|
|
1383
|
+
e.f ^= _n, U = t, Y = r, Z = n, S = i, ee = o, ct(a), le = s, Ge = c;
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function ia(e, t) {
|
|
1387
1387
|
let r = t.reactions;
|
|
1388
1388
|
if (r !== null) {
|
|
1389
|
-
var n =
|
|
1389
|
+
var n = Vo.call(r, e);
|
|
1390
1390
|
if (n !== -1) {
|
|
1391
1391
|
var i = r.length - 1;
|
|
1392
1392
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1394,34 +1394,34 @@ function ea(e, t) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
if (r === null && t.f & 2 && (U === null || !lt.call(U, t))) {
|
|
1396
1396
|
var o = t;
|
|
1397
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~
|
|
1397
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~Lt), Hr(o), Ns(o), $t(o, 0);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
function $t(e, t) {
|
|
1401
1401
|
var r = e.deps;
|
|
1402
1402
|
if (r !== null)
|
|
1403
|
-
for (var n = t; n < r.length; n++)
|
|
1403
|
+
for (var n = t; n < r.length; n++) ia(e, r[n]);
|
|
1404
1404
|
}
|
|
1405
1405
|
function dt(e) {
|
|
1406
1406
|
var t = e.f;
|
|
1407
1407
|
if (!(t & 16384)) {
|
|
1408
|
-
|
|
1408
|
+
R(e, te);
|
|
1409
1409
|
var r = T, n = qt;
|
|
1410
1410
|
if (T = e, qt = !0, 0)
|
|
1411
1411
|
var i, o;
|
|
1412
1412
|
try {
|
|
1413
|
-
t & 16777232 ?
|
|
1414
|
-
var
|
|
1415
|
-
if (e.teardown = typeof
|
|
1416
|
-
for (var
|
|
1413
|
+
t & 16777232 ? Zs(e) : Zr(e), zi(e);
|
|
1414
|
+
var a = Vi(e);
|
|
1415
|
+
if (e.teardown = typeof a == "function" ? a : null, e.wv = Fi, 0)
|
|
1416
|
+
for (var s of e.deps) ;
|
|
1417
1417
|
} finally {
|
|
1418
1418
|
qt = n, T = r;
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function _(e) {
|
|
1423
1423
|
var t = (e.f & 2) !== 0;
|
|
1424
|
-
if (
|
|
1424
|
+
if (ra?.add(e), S !== null && !le && !(T !== null && T.f & 16384) && (ee === null || !lt.call(ee, e))) {
|
|
1425
1425
|
var r = S.deps;
|
|
1426
1426
|
if (S.f & 2097152)
|
|
1427
1427
|
e.rv < Fe && (e.rv = Fe, U === null && r !== null && r[Y] === e ? Y++ : U === null ? U = [e] : U.push(e));
|
|
@@ -1437,36 +1437,36 @@ function v(e) {
|
|
|
1437
1437
|
var o;
|
|
1438
1438
|
if (tracing_mode_flag && !le && tracing_expressions !== null && S !== null && tracing_expressions.reaction === S && !e.trace) {
|
|
1439
1439
|
if (o)
|
|
1440
|
-
var
|
|
1440
|
+
var a, s;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
if (Ce &&
|
|
1443
|
+
if (Ce && Me.has(e)) return Me.get(e);
|
|
1444
1444
|
if (t) {
|
|
1445
1445
|
var c = e;
|
|
1446
1446
|
if (Ce) {
|
|
1447
|
-
var
|
|
1448
|
-
return (!(c.f & 1024) && c.reactions !== null ||
|
|
1447
|
+
var d = c.v;
|
|
1448
|
+
return (!(c.f & 1024) && c.reactions !== null || Gi(c)) && (d = Kr(c)), Me.set(c, d), d;
|
|
1449
1449
|
}
|
|
1450
|
-
var
|
|
1451
|
-
zt(c) && (
|
|
1450
|
+
var f = (c.f & 512) === 0 && !le && S !== null && (qt || (S.f & 512) !== 0), v = (c.f & Ur) === 0;
|
|
1451
|
+
zt(c) && (f && (c.f |= 512), Si(c)), f && !v && (xi(c), Hi(c));
|
|
1452
1452
|
}
|
|
1453
|
-
if (
|
|
1453
|
+
if (W?.has(e)) return W.get(e);
|
|
1454
1454
|
if (e.f & 8388608) throw e.v;
|
|
1455
1455
|
return e.v;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Hi(e) {
|
|
1458
1458
|
if (e.f |= 512, e.deps !== null)
|
|
1459
1459
|
for (const t of e.deps)
|
|
1460
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1460
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (xi(t), Hi(t));
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Gi(e) {
|
|
1463
1463
|
if (e.v === C) return !0;
|
|
1464
1464
|
if (e.deps === null) return !1;
|
|
1465
1465
|
for (const t of e.deps)
|
|
1466
|
-
if (
|
|
1466
|
+
if (Me.has(t) || t.f & 2 && Gi(t)) return !0;
|
|
1467
1467
|
return !1;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function lr(e) {
|
|
1470
1470
|
var t = le;
|
|
1471
1471
|
try {
|
|
1472
1472
|
return le = !0, e();
|
|
@@ -1474,70 +1474,70 @@ function ar(e) {
|
|
|
1474
1474
|
le = t;
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
var st = Symbol("events"),
|
|
1477
|
+
var st = Symbol("events"), qi = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
|
|
1478
1478
|
function Ze(e, t, r) {
|
|
1479
1479
|
(t[st] ?? (t[st] = {}))[e] = r;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1482
|
-
for (var t = 0; t < e.length; t++)
|
|
1483
|
-
for (var r of
|
|
1481
|
+
function oa(e) {
|
|
1482
|
+
for (var t = 0; t < e.length; t++) qi.add(e[t]);
|
|
1483
|
+
for (var r of zr) r(e);
|
|
1484
1484
|
}
|
|
1485
|
-
var
|
|
1486
|
-
function
|
|
1485
|
+
var $n = null;
|
|
1486
|
+
function Ln(e) {
|
|
1487
1487
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1488
|
-
|
|
1489
|
-
var
|
|
1490
|
-
if (
|
|
1491
|
-
var c = i.indexOf(
|
|
1488
|
+
$n = e;
|
|
1489
|
+
var a = 0, s = $n === e && e[st];
|
|
1490
|
+
if (s) {
|
|
1491
|
+
var c = i.indexOf(s);
|
|
1492
1492
|
if (c !== -1 && (t === document || t === window)) {
|
|
1493
1493
|
e[st] = t;
|
|
1494
1494
|
return;
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1497
|
-
if (
|
|
1498
|
-
c <=
|
|
1496
|
+
var d = i.indexOf(t);
|
|
1497
|
+
if (d === -1) return;
|
|
1498
|
+
c <= d && (a = c);
|
|
1499
1499
|
}
|
|
1500
|
-
if (o = i[
|
|
1500
|
+
if (o = i[a] || e.target, o !== t) {
|
|
1501
1501
|
Jt(e, "currentTarget", {
|
|
1502
1502
|
configurable: !0,
|
|
1503
1503
|
get() {
|
|
1504
1504
|
return o || r;
|
|
1505
1505
|
}
|
|
1506
1506
|
});
|
|
1507
|
-
var
|
|
1507
|
+
var f = S, v = T;
|
|
1508
1508
|
ne(null), pe(null);
|
|
1509
1509
|
try {
|
|
1510
|
-
for (var u,
|
|
1511
|
-
var
|
|
1510
|
+
for (var u, p = []; o !== null; ) {
|
|
1511
|
+
var h = o.assignedSlot || o.parentNode || o.host || null;
|
|
1512
1512
|
try {
|
|
1513
1513
|
var m = o[st]?.[n];
|
|
1514
1514
|
m != null && (!o.disabled || e.target === o) && m.call(o, e);
|
|
1515
1515
|
} catch (b) {
|
|
1516
|
-
u ?
|
|
1516
|
+
u ? p.push(b) : u = b;
|
|
1517
1517
|
}
|
|
1518
|
-
if (e.cancelBubble ||
|
|
1519
|
-
o =
|
|
1518
|
+
if (e.cancelBubble || h === t || h === null) break;
|
|
1519
|
+
o = h;
|
|
1520
1520
|
}
|
|
1521
1521
|
if (u) {
|
|
1522
|
-
for (let b of
|
|
1522
|
+
for (let b of p) queueMicrotask(() => {
|
|
1523
1523
|
throw b;
|
|
1524
1524
|
});
|
|
1525
1525
|
throw u;
|
|
1526
1526
|
}
|
|
1527
1527
|
} finally {
|
|
1528
|
-
e[st] = t, delete e.currentTarget, ne(
|
|
1528
|
+
e[st] = t, delete e.currentTarget, ne(f), pe(v);
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
var
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1532
|
+
var sa = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1533
|
+
function aa(e) {
|
|
1534
|
+
return sa?.createHTML(e) ?? e;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
var t =
|
|
1538
|
-
return t.innerHTML =
|
|
1536
|
+
function la(e) {
|
|
1537
|
+
var t = Xr("template");
|
|
1538
|
+
return t.innerHTML = aa(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Re(e, t) {
|
|
1541
1541
|
var r = T;
|
|
1542
1542
|
r.nodes === null && (r.nodes = {
|
|
1543
1543
|
start: e,
|
|
@@ -1551,39 +1551,39 @@ function _e(e, t) {
|
|
|
1551
1551
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1552
1552
|
return () => {
|
|
1553
1553
|
if (A)
|
|
1554
|
-
return
|
|
1555
|
-
i === void 0 && (i =
|
|
1556
|
-
var
|
|
1554
|
+
return Re(E, null), E;
|
|
1555
|
+
i === void 0 && (i = la(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ ft(i)));
|
|
1556
|
+
var a = n || Ai ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1557
1557
|
if (r) {
|
|
1558
|
-
var
|
|
1559
|
-
|
|
1560
|
-
} else
|
|
1561
|
-
return
|
|
1558
|
+
var s = /* @__PURE__ */ ft(a), c = a.lastChild;
|
|
1559
|
+
Re(s, c);
|
|
1560
|
+
} else Re(a, a);
|
|
1561
|
+
return a;
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function ca(e = "") {
|
|
1565
1565
|
if (!A) {
|
|
1566
1566
|
var t = ce(e + "");
|
|
1567
|
-
return
|
|
1567
|
+
return Re(t, t), t;
|
|
1568
1568
|
}
|
|
1569
|
-
var r =
|
|
1570
|
-
return r.nodeType !== 3 ? (r.before(r = ce()), re(r)) :
|
|
1569
|
+
var r = E;
|
|
1570
|
+
return r.nodeType !== 3 ? (r.before(r = ce()), re(r)) : ar(r), Re(r, r), r;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function ua() {
|
|
1573
1573
|
if (A)
|
|
1574
|
-
return
|
|
1574
|
+
return Re(E, null), E;
|
|
1575
1575
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = ce();
|
|
1576
|
-
return e.append(t, r),
|
|
1576
|
+
return e.append(t, r), Re(t, r), e;
|
|
1577
1577
|
}
|
|
1578
1578
|
function q(e, t) {
|
|
1579
1579
|
if (A) {
|
|
1580
1580
|
var r = T;
|
|
1581
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end =
|
|
1581
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = E), Vr();
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
1584
|
e !== null && e.before(t);
|
|
1585
1585
|
}
|
|
1586
|
-
var
|
|
1586
|
+
var fa = [
|
|
1587
1587
|
"allowfullscreen",
|
|
1588
1588
|
"async",
|
|
1589
1589
|
"autofocus",
|
|
@@ -1612,8 +1612,8 @@ var aa = [
|
|
|
1612
1612
|
"defer",
|
|
1613
1613
|
"disablepictureinpicture",
|
|
1614
1614
|
"disableremoteplayback"
|
|
1615
|
-
],
|
|
1616
|
-
...
|
|
1615
|
+
], rc = [
|
|
1616
|
+
...fa,
|
|
1617
1617
|
"formNoValidate",
|
|
1618
1618
|
"isMap",
|
|
1619
1619
|
"noModule",
|
|
@@ -1628,17 +1628,17 @@ var aa = [
|
|
|
1628
1628
|
"allowFullscreen",
|
|
1629
1629
|
"disablePictureInPicture",
|
|
1630
1630
|
"disableRemotePlayback"
|
|
1631
|
-
],
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1631
|
+
], da = ["touchstart", "touchmove"];
|
|
1632
|
+
function pa(e) {
|
|
1633
|
+
return da.includes(e);
|
|
1634
1634
|
}
|
|
1635
|
-
var
|
|
1635
|
+
var ha = [
|
|
1636
1636
|
"$state",
|
|
1637
1637
|
"$state.raw",
|
|
1638
1638
|
"$derived",
|
|
1639
1639
|
"$derived.by"
|
|
1640
|
-
],
|
|
1641
|
-
...
|
|
1640
|
+
], nc = [
|
|
1641
|
+
...ha,
|
|
1642
1642
|
"$state.eager",
|
|
1643
1643
|
"$state.snapshot",
|
|
1644
1644
|
"$props",
|
|
@@ -1653,116 +1653,116 @@ var ua = [
|
|
|
1653
1653
|
"$inspect().with",
|
|
1654
1654
|
"$inspect.trace",
|
|
1655
1655
|
"$host"
|
|
1656
|
-
],
|
|
1656
|
+
], Pn = !0;
|
|
1657
1657
|
function Ut(e, t) {
|
|
1658
1658
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1659
1659
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1662
|
-
return
|
|
1661
|
+
function Yi(e, t) {
|
|
1662
|
+
return Ki(e, t);
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1665
|
-
|
|
1666
|
-
const r = t.target, n = A, i =
|
|
1664
|
+
function va(e, t) {
|
|
1665
|
+
Rr(), t.intro = t.intro ?? !1;
|
|
1666
|
+
const r = t.target, n = A, i = E;
|
|
1667
1667
|
try {
|
|
1668
1668
|
for (var o = /* @__PURE__ */ ft(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1669
1669
|
if (!o) throw at;
|
|
1670
1670
|
ot(!0), re(o);
|
|
1671
|
-
const
|
|
1671
|
+
const a = Ki(e, {
|
|
1672
1672
|
...t,
|
|
1673
1673
|
anchor: o
|
|
1674
1674
|
});
|
|
1675
|
-
return ot(!1),
|
|
1676
|
-
} catch (
|
|
1677
|
-
if (
|
|
1678
|
-
`).some((
|
|
1679
|
-
return
|
|
1675
|
+
return ot(!1), a;
|
|
1676
|
+
} catch (a) {
|
|
1677
|
+
if (a instanceof Error && a.message.split(`
|
|
1678
|
+
`).some((s) => s.startsWith("https://svelte.dev/e/"))) throw a;
|
|
1679
|
+
return a !== at && console.warn("Failed to hydrate: ", a), t.recover === !1 && ls(), Rr(), Vs(r), ot(!1), Yi(e, t);
|
|
1680
1680
|
} finally {
|
|
1681
1681
|
ot(n), re(i);
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
var
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
-
var c = void 0,
|
|
1688
|
-
var
|
|
1689
|
-
|
|
1690
|
-
} }, (
|
|
1691
|
-
|
|
1692
|
-
var
|
|
1693
|
-
if (o && (
|
|
1694
|
-
throw
|
|
1695
|
-
|
|
1696
|
-
},
|
|
1697
|
-
var
|
|
1698
|
-
for (var
|
|
1699
|
-
var m =
|
|
1700
|
-
if (!
|
|
1701
|
-
|
|
1702
|
-
var b =
|
|
1703
|
-
for (const
|
|
1704
|
-
var $ =
|
|
1705
|
-
$ === void 0 && ($ = /* @__PURE__ */ new Map(),
|
|
1684
|
+
var Wt = /* @__PURE__ */ new Map();
|
|
1685
|
+
function Ki(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: a = !0, transformError: s }) {
|
|
1686
|
+
Rr();
|
|
1687
|
+
var c = void 0, d = Js(() => {
|
|
1688
|
+
var f = r ?? t.appendChild(ce());
|
|
1689
|
+
Is(f, { pending: () => {
|
|
1690
|
+
} }, (p) => {
|
|
1691
|
+
oi({});
|
|
1692
|
+
var h = M;
|
|
1693
|
+
if (o && (h.c = o), i && (n.$$events = i), A && Re(p, null), Pn = a, c = e(p, n) || {}, Pn = !0, A && (T.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]"))
|
|
1694
|
+
throw or(), at;
|
|
1695
|
+
si();
|
|
1696
|
+
}, s);
|
|
1697
|
+
var v = /* @__PURE__ */ new Set(), u = (p) => {
|
|
1698
|
+
for (var h = 0; h < p.length; h++) {
|
|
1699
|
+
var m = p[h];
|
|
1700
|
+
if (!v.has(m)) {
|
|
1701
|
+
v.add(m);
|
|
1702
|
+
var b = pa(m);
|
|
1703
|
+
for (const P of [t, document]) {
|
|
1704
|
+
var $ = Wt.get(P);
|
|
1705
|
+
$ === void 0 && ($ = /* @__PURE__ */ new Map(), Wt.set(P, $));
|
|
1706
1706
|
var H = $.get(m);
|
|
1707
|
-
H === void 0 ? (
|
|
1707
|
+
H === void 0 ? (P.addEventListener(m, Ln, { passive: b }), $.set(m, 1)) : $.set(m, H + 1);
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
1711
|
};
|
|
1712
|
-
return u(
|
|
1713
|
-
for (var
|
|
1714
|
-
var
|
|
1715
|
-
--m == 0 ? (b.removeEventListener(
|
|
1712
|
+
return u(Ho(qi)), zr.add(u), () => {
|
|
1713
|
+
for (var p of v) for (const b of [t, document]) {
|
|
1714
|
+
var h = Wt.get(b), m = h.get(p);
|
|
1715
|
+
--m == 0 ? (b.removeEventListener(p, Ln), h.delete(p), h.size === 0 && Wt.delete(b)) : h.set(p, m);
|
|
1716
1716
|
}
|
|
1717
|
-
|
|
1717
|
+
zr.delete(u), f !== r && f.parentNode?.removeChild(f);
|
|
1718
1718
|
};
|
|
1719
1719
|
});
|
|
1720
|
-
return
|
|
1720
|
+
return Cr.set(c, d), c;
|
|
1721
1721
|
}
|
|
1722
|
-
var
|
|
1723
|
-
function
|
|
1724
|
-
const r =
|
|
1725
|
-
return r ? (
|
|
1722
|
+
var Cr = /* @__PURE__ */ new WeakMap();
|
|
1723
|
+
function _a(e, t) {
|
|
1724
|
+
const r = Cr.get(e);
|
|
1725
|
+
return r ? (Cr.delete(e), r(t)) : Promise.resolve();
|
|
1726
1726
|
}
|
|
1727
|
-
var me = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(),
|
|
1727
|
+
var me = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), ga = class {
|
|
1728
1728
|
constructor(e, t = !0) {
|
|
1729
|
-
|
|
1729
|
+
g(this, "anchor", void 0), k(this, me, /* @__PURE__ */ new Map()), k(this, Ae, /* @__PURE__ */ new Map()), k(this, ie, /* @__PURE__ */ new Map()), k(this, wt, /* @__PURE__ */ new Set()), k(this, yr, !0), k(this, wr, (r) => {
|
|
1730
1730
|
if (l(me, this).has(r)) {
|
|
1731
1731
|
var n = l(me, this).get(r), i = l(Ae, this).get(n);
|
|
1732
1732
|
if (i)
|
|
1733
|
-
|
|
1733
|
+
ta(i), l(wt, this).delete(n);
|
|
1734
1734
|
else {
|
|
1735
1735
|
var o = l(ie, this).get(n);
|
|
1736
1736
|
o && (l(Ae, this).set(n, o.effect), l(ie, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1737
1737
|
}
|
|
1738
|
-
for (const [
|
|
1739
|
-
if (l(me, this).delete(
|
|
1740
|
-
const c = l(ie, this).get(
|
|
1741
|
-
c && (
|
|
1738
|
+
for (const [a, s] of l(me, this)) {
|
|
1739
|
+
if (l(me, this).delete(a), a === r) break;
|
|
1740
|
+
const c = l(ie, this).get(s);
|
|
1741
|
+
c && (V(c.effect), l(ie, this).delete(s));
|
|
1742
1742
|
}
|
|
1743
|
-
for (const [
|
|
1744
|
-
if (
|
|
1743
|
+
for (const [a, s] of l(Ae, this)) {
|
|
1744
|
+
if (a === n || l(wt, this).has(a)) continue;
|
|
1745
1745
|
const c = () => {
|
|
1746
|
-
if (Array.from(l(me, this).values()).includes(
|
|
1747
|
-
var
|
|
1748
|
-
|
|
1749
|
-
effect:
|
|
1750
|
-
fragment:
|
|
1746
|
+
if (Array.from(l(me, this).values()).includes(a)) {
|
|
1747
|
+
var d = document.createDocumentFragment();
|
|
1748
|
+
ji(s, d), d.append(ce()), l(ie, this).set(a, {
|
|
1749
|
+
effect: s,
|
|
1750
|
+
fragment: d
|
|
1751
1751
|
});
|
|
1752
|
-
} else
|
|
1753
|
-
l(wt, this).delete(
|
|
1752
|
+
} else V(s);
|
|
1753
|
+
l(wt, this).delete(a), l(Ae, this).delete(a);
|
|
1754
1754
|
};
|
|
1755
|
-
l(
|
|
1755
|
+
l(yr, this) || !i ? (l(wt, this).add(a), Rt(s, c, !1)) : c();
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
-
}), k(this,
|
|
1758
|
+
}), k(this, On, (r) => {
|
|
1759
1759
|
l(me, this).delete(r);
|
|
1760
1760
|
const n = Array.from(l(me, this).values());
|
|
1761
|
-
for (const [i, o] of l(ie, this)) n.includes(i) || (
|
|
1762
|
-
}), this.anchor = e, y(
|
|
1761
|
+
for (const [i, o] of l(ie, this)) n.includes(i) || (V(o.effect), l(ie, this).delete(i));
|
|
1762
|
+
}), this.anchor = e, y(yr, this, t);
|
|
1763
1763
|
}
|
|
1764
1764
|
ensure(e, t) {
|
|
1765
|
-
var r =
|
|
1765
|
+
var r = I, n = Hs();
|
|
1766
1766
|
if (t && !l(Ae, this).has(e) && !l(ie, this).has(e)) if (n) {
|
|
1767
1767
|
var i = document.createDocumentFragment(), o = ce();
|
|
1768
1768
|
i.append(o), l(ie, this).set(e, {
|
|
@@ -1771,20 +1771,20 @@ var me = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ie =
|
|
|
1771
1771
|
});
|
|
1772
1772
|
} else l(Ae, this).set(e, ke(() => t(this.anchor)));
|
|
1773
1773
|
if (l(me, this).set(r, e), n) {
|
|
1774
|
-
for (const [
|
|
1775
|
-
for (const [
|
|
1776
|
-
r.oncommit(l(
|
|
1774
|
+
for (const [a, s] of l(Ae, this)) a === e ? r.unskip_effect(s) : r.skip_effect(s);
|
|
1775
|
+
for (const [a, s] of l(ie, this)) a === e ? r.unskip_effect(s.effect) : r.skip_effect(s.effect);
|
|
1776
|
+
r.oncommit(l(wr, this)), r.ondiscard(l(On, this));
|
|
1777
1777
|
} else
|
|
1778
|
-
A && (this.anchor =
|
|
1778
|
+
A && (this.anchor = E), l(wr, this).call(this, r);
|
|
1779
1779
|
}
|
|
1780
1780
|
};
|
|
1781
|
-
function
|
|
1782
|
-
|
|
1783
|
-
const t =
|
|
1781
|
+
function ma(e) {
|
|
1782
|
+
M === null && rs("onMount"), Pt && M.l !== null ? ba(M).m.push(e) : Gt(() => {
|
|
1783
|
+
const t = lr(e);
|
|
1784
1784
|
if (typeof t == "function") return t;
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function ba(e) {
|
|
1788
1788
|
var t = e.l;
|
|
1789
1789
|
return t.u ?? (t.u = {
|
|
1790
1790
|
a: [],
|
|
@@ -1794,50 +1794,50 @@ function va(e) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
function et(e, t, r = !1) {
|
|
1796
1796
|
var n;
|
|
1797
|
-
A && (n =
|
|
1798
|
-
var i = new
|
|
1799
|
-
function s
|
|
1797
|
+
A && (n = E, Vr());
|
|
1798
|
+
var i = new ga(e), o = r ? Wr : 0;
|
|
1799
|
+
function a(s, c) {
|
|
1800
1800
|
if (A) {
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1803
|
-
var
|
|
1804
|
-
re(
|
|
1801
|
+
var d = vs(n);
|
|
1802
|
+
if (s !== parseInt(d.substring(1))) {
|
|
1803
|
+
var f = ri();
|
|
1804
|
+
re(f), i.anchor = f, ot(!1), i.ensure(s, c), ot(!0);
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
|
-
i.ensure(
|
|
1808
|
+
i.ensure(s, c);
|
|
1809
1809
|
}
|
|
1810
|
-
|
|
1811
|
-
var
|
|
1812
|
-
t((c,
|
|
1813
|
-
|
|
1814
|
-
}),
|
|
1810
|
+
Ri(() => {
|
|
1811
|
+
var s = !1;
|
|
1812
|
+
t((c, d = 0) => {
|
|
1813
|
+
s = !0, a(d, c);
|
|
1814
|
+
}), s || a(-1, null);
|
|
1815
1815
|
}, o);
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1818
|
-
|
|
1817
|
+
function ya(e, t) {
|
|
1818
|
+
Mi(() => {
|
|
1819
1819
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1820
1820
|
if (!n.querySelector("#" + t.hash)) {
|
|
1821
|
-
const i =
|
|
1821
|
+
const i = Xr("style");
|
|
1822
1822
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1826
|
+
var Mn = [...`
|
|
1827
1827
|
\r\f \v\uFEFF`];
|
|
1828
|
-
function
|
|
1828
|
+
function wa(e, t, r) {
|
|
1829
1829
|
var n = e == null ? "" : "" + e;
|
|
1830
1830
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
1831
1831
|
for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
|
|
1832
1832
|
else if (n.length)
|
|
1833
|
-
for (var o = i.length,
|
|
1834
|
-
var
|
|
1835
|
-
(
|
|
1833
|
+
for (var o = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
1834
|
+
var s = a + o;
|
|
1835
|
+
(a === 0 || Mn.includes(n[a - 1])) && (s === n.length || Mn.includes(n[s])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(s + 1) : a = s;
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
return n === "" ? null : n;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function Rn(e, t = !1) {
|
|
1841
1841
|
var r = t ? " !important;" : ";", n = "";
|
|
1842
1842
|
for (var i of Object.keys(e)) {
|
|
1843
1843
|
var o = e[i];
|
|
@@ -1845,217 +1845,217 @@ function Ln(e, t = !1) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
return n;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function kr(e) {
|
|
1849
1849
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function ka(e, t) {
|
|
1852
1852
|
if (t) {
|
|
1853
1853
|
var r = "", n, i;
|
|
1854
1854
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
1855
1855
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1856
|
-
var o = !1,
|
|
1857
|
-
n && c.push(...Object.keys(n).map(
|
|
1858
|
-
var
|
|
1856
|
+
var o = !1, a = 0, s = !1, c = [];
|
|
1857
|
+
n && c.push(...Object.keys(n).map(kr)), i && c.push(...Object.keys(i).map(kr));
|
|
1858
|
+
var d = 0, f = -1;
|
|
1859
1859
|
const m = e.length;
|
|
1860
|
-
for (var
|
|
1861
|
-
var u = e[
|
|
1862
|
-
if (
|
|
1863
|
-
if (u === ":" &&
|
|
1864
|
-
else if (u === ";" ||
|
|
1865
|
-
if (
|
|
1866
|
-
var
|
|
1867
|
-
if (!c.includes(
|
|
1868
|
-
u !== ";" &&
|
|
1869
|
-
var
|
|
1870
|
-
r += " " +
|
|
1860
|
+
for (var v = 0; v < m; v++) {
|
|
1861
|
+
var u = e[v];
|
|
1862
|
+
if (s ? u === "/" && e[v - 1] === "*" && (s = !1) : o ? o === u && (o = !1) : u === "/" && e[v + 1] === "*" ? s = !0 : u === '"' || u === "'" ? o = u : u === "(" ? a++ : u === ")" && a--, !s && o === !1 && a === 0) {
|
|
1863
|
+
if (u === ":" && f === -1) f = v;
|
|
1864
|
+
else if (u === ";" || v === m - 1) {
|
|
1865
|
+
if (f !== -1) {
|
|
1866
|
+
var p = kr(e.substring(d, f).trim());
|
|
1867
|
+
if (!c.includes(p)) {
|
|
1868
|
+
u !== ";" && v++;
|
|
1869
|
+
var h = e.substring(d, v).trim();
|
|
1870
|
+
r += " " + h + ";";
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
|
|
1873
|
+
d = v + 1, f = -1;
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
return n && (r +=
|
|
1878
|
+
return n && (r += Rn(n)), i && (r += Rn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
1879
1879
|
}
|
|
1880
1880
|
return e == null ? null : String(e);
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1883
|
-
var
|
|
1884
|
-
if (A ||
|
|
1885
|
-
var
|
|
1886
|
-
(!A ||
|
|
1882
|
+
function Ta(e, t, r, n, i, o) {
|
|
1883
|
+
var a = e.__className;
|
|
1884
|
+
if (A || a !== r || a === void 0) {
|
|
1885
|
+
var s = wa(r, n, o);
|
|
1886
|
+
(!A || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e.__className = r;
|
|
1887
1887
|
} else if (o && i !== o) for (var c in o) {
|
|
1888
|
-
var
|
|
1889
|
-
(i == null ||
|
|
1888
|
+
var d = !!o[c];
|
|
1889
|
+
(i == null || d !== !!i[c]) && e.classList.toggle(c, d);
|
|
1890
1890
|
}
|
|
1891
1891
|
return o;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function Tr(e, t = {}, r, n) {
|
|
1894
1894
|
for (var i in r) {
|
|
1895
1895
|
var o = r[i];
|
|
1896
1896
|
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Sa(e, t, r, n) {
|
|
1900
1900
|
var i = e.__style;
|
|
1901
1901
|
if (A || i !== t) {
|
|
1902
|
-
var o =
|
|
1902
|
+
var o = ka(t, n);
|
|
1903
1903
|
(!A || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1904
|
-
} else n && (Array.isArray(n) ? (
|
|
1904
|
+
} else n && (Array.isArray(n) ? (Tr(e, r?.[0], n[0]), Tr(e, r?.[1], n[1], "important")) : Tr(e, r, n));
|
|
1905
1905
|
return n;
|
|
1906
1906
|
}
|
|
1907
|
-
var
|
|
1908
|
-
function
|
|
1907
|
+
var xa = Symbol("is custom element"), Ea = Symbol("is html"), Ia = ti ? "link" : "LINK", Aa = ti ? "progress" : "PROGRESS";
|
|
1908
|
+
function $a(e) {
|
|
1909
1909
|
if (A) {
|
|
1910
1910
|
var t = !1, r = () => {
|
|
1911
1911
|
if (!t) {
|
|
1912
1912
|
if (t = !0, e.hasAttribute("value")) {
|
|
1913
1913
|
var n = e.value;
|
|
1914
|
-
|
|
1914
|
+
Dr(e, "value", null), e.value = n;
|
|
1915
1915
|
}
|
|
1916
1916
|
if (e.hasAttribute("checked")) {
|
|
1917
1917
|
var i = e.checked;
|
|
1918
|
-
|
|
1918
|
+
Dr(e, "checked", null), e.checked = i;
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
|
-
e.__on_r = r, qe(r),
|
|
1922
|
+
e.__on_r = r, qe(r), Gs();
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
var r =
|
|
1927
|
-
r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !==
|
|
1925
|
+
function La(e, t) {
|
|
1926
|
+
var r = Xi(e);
|
|
1927
|
+
r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !== Aa) || (e.value = t ?? "");
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1930
|
-
var i =
|
|
1931
|
-
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1929
|
+
function Dr(e, t, r, n) {
|
|
1930
|
+
var i = Xi(e);
|
|
1931
|
+
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ia)) {
|
|
1932
1932
|
n || void 0;
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
1935
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[es] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Pa(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Xi(e) {
|
|
1938
1938
|
return e.__attributes ?? (e.__attributes = {
|
|
1939
|
-
[
|
|
1940
|
-
[
|
|
1939
|
+
[xa]: e.nodeName.includes("-"),
|
|
1940
|
+
[Ea]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
|
-
var
|
|
1944
|
-
function
|
|
1945
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
1943
|
+
var zn = /* @__PURE__ */ new Map();
|
|
1944
|
+
function Pa(e) {
|
|
1945
|
+
var t = e.getAttribute("is") || e.nodeName, r = zn.get(t);
|
|
1946
1946
|
if (r) return r;
|
|
1947
|
-
|
|
1947
|
+
zn.set(t, r = []);
|
|
1948
1948
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
1949
|
-
n =
|
|
1950
|
-
for (var
|
|
1951
|
-
i =
|
|
1949
|
+
n = Go(i);
|
|
1950
|
+
for (var a in n) n[a].set && r.push(a);
|
|
1951
|
+
i = Qn(i);
|
|
1952
1952
|
}
|
|
1953
1953
|
return r;
|
|
1954
1954
|
}
|
|
1955
|
-
var
|
|
1955
|
+
var Ji, it = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakSet(), Qi = class {
|
|
1956
1956
|
constructor(e) {
|
|
1957
|
-
|
|
1957
|
+
Gr(this, Cn), k(this, it, /* @__PURE__ */ new WeakMap()), k(this, nr, void 0), k(this, Sr, void 0), y(Sr, this, e);
|
|
1958
1958
|
}
|
|
1959
1959
|
observe(e, t) {
|
|
1960
1960
|
var r = l(it, this).get(e) || /* @__PURE__ */ new Set();
|
|
1961
|
-
return r.add(t), l(it, this).set(e, r),
|
|
1961
|
+
return r.add(t), l(it, this).set(e, r), L(Cn, this, Oa).call(this).observe(e, l(Sr, this)), () => {
|
|
1962
1962
|
var n = l(it, this).get(e);
|
|
1963
1963
|
n.delete(t), n.size === 0 && (l(it, this).delete(e), l(nr, this).unobserve(e));
|
|
1964
1964
|
};
|
|
1965
1965
|
}
|
|
1966
1966
|
};
|
|
1967
|
-
|
|
1968
|
-
function
|
|
1967
|
+
Ji = Qi;
|
|
1968
|
+
function Oa() {
|
|
1969
1969
|
return l(nr, this) ?? y(nr, this, new ResizeObserver((e) => {
|
|
1970
1970
|
for (var t of e) {
|
|
1971
|
-
|
|
1971
|
+
Ji.entries.set(t.target, t);
|
|
1972
1972
|
for (var r of l(it, this).get(t.target) || []) r(t);
|
|
1973
1973
|
}
|
|
1974
1974
|
}));
|
|
1975
1975
|
}
|
|
1976
|
-
|
|
1977
|
-
function
|
|
1976
|
+
g(Qi, "entries", /* @__PURE__ */ new WeakMap());
|
|
1977
|
+
function Dn(e, t) {
|
|
1978
1978
|
return e === t || e?.[St] === t;
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1981
|
-
var i =
|
|
1982
|
-
return
|
|
1983
|
-
var
|
|
1984
|
-
return
|
|
1985
|
-
|
|
1986
|
-
e !== r(...
|
|
1980
|
+
function Nn(e = {}, t, r, n) {
|
|
1981
|
+
var i = M.r, o = T;
|
|
1982
|
+
return Mi(() => {
|
|
1983
|
+
var a, s;
|
|
1984
|
+
return Qr(() => {
|
|
1985
|
+
a = s, s = n?.() || [], lr(() => {
|
|
1986
|
+
e !== r(...s) && (t(e, ...s), a && Dn(r(...a), e) && t(null, ...a));
|
|
1987
1987
|
});
|
|
1988
1988
|
}), () => {
|
|
1989
1989
|
let c = o;
|
|
1990
1990
|
for (; c !== i && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
},
|
|
1991
|
+
const d = () => {
|
|
1992
|
+
s && Dn(r(...s), e) && t(null, ...s);
|
|
1993
|
+
}, f = c.teardown;
|
|
1994
1994
|
c.teardown = () => {
|
|
1995
|
-
|
|
1995
|
+
d(), f?.();
|
|
1996
1996
|
};
|
|
1997
1997
|
};
|
|
1998
1998
|
}), e;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var i = !
|
|
2002
|
-
let
|
|
2000
|
+
function Vt(e, t, r, n) {
|
|
2001
|
+
var i = !Pt || (r & 2) !== 0, o = (r & 8) !== 0, a = (r & 16) !== 0, s = n, c = !0, d = () => (c && (c = !1, s = a ? lr(n) : n), s);
|
|
2002
|
+
let f;
|
|
2003
2003
|
if (o) {
|
|
2004
|
-
var
|
|
2005
|
-
|
|
2006
|
-
}
|
|
2007
|
-
var u,
|
|
2008
|
-
o ? [u,
|
|
2009
|
-
var
|
|
2010
|
-
if (i ?
|
|
2011
|
-
var
|
|
2012
|
-
return
|
|
2013
|
-
} :
|
|
2014
|
-
var
|
|
2015
|
-
return
|
|
2016
|
-
}, i && !(r & 4)) return
|
|
2017
|
-
if (
|
|
2004
|
+
var v = St in e || ei in e;
|
|
2005
|
+
f = Ue(e, t)?.set ?? (v && t in e ? (P) => e[t] = P : void 0);
|
|
2006
|
+
}
|
|
2007
|
+
var u, p = !1;
|
|
2008
|
+
o ? [u, p] = ws(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = d(), f && (i && cs(t), f(u)));
|
|
2009
|
+
var h;
|
|
2010
|
+
if (i ? h = () => {
|
|
2011
|
+
var P = e[t];
|
|
2012
|
+
return P === void 0 ? d() : (c = !0, P);
|
|
2013
|
+
} : h = () => {
|
|
2014
|
+
var P = e[t];
|
|
2015
|
+
return P !== void 0 && (s = void 0), P === void 0 ? s : P;
|
|
2016
|
+
}, i && !(r & 4)) return h;
|
|
2017
|
+
if (f) {
|
|
2018
2018
|
var m = e.$$legacy;
|
|
2019
|
-
return function(
|
|
2020
|
-
return arguments.length > 0 ? ((!i || !D || m ||
|
|
2019
|
+
return function(P, D) {
|
|
2020
|
+
return arguments.length > 0 ? ((!i || !D || m || p) && f(D ? h() : P), P) : h();
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
|
-
var b = !1, $ = (r & 1 ?
|
|
2024
|
-
o &&
|
|
2023
|
+
var b = !1, $ = (r & 1 ? sr : Ti)(() => (b = !1, h()));
|
|
2024
|
+
o && _($);
|
|
2025
2025
|
var H = T;
|
|
2026
|
-
return function(
|
|
2026
|
+
return function(P, D) {
|
|
2027
2027
|
if (arguments.length > 0) {
|
|
2028
|
-
const
|
|
2029
|
-
return x($,
|
|
2028
|
+
const Ee = D ? _($) : i && o ? Oe(P) : P;
|
|
2029
|
+
return x($, Ee), b = !0, s !== void 0 && (s = Ee), P;
|
|
2030
2030
|
}
|
|
2031
|
-
return Ce && b || H.f & 16384 ? $.v :
|
|
2031
|
+
return Ce && b || H.f & 16384 ? $.v : _($);
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return new
|
|
2034
|
+
function Ma(e) {
|
|
2035
|
+
return new Ra(e);
|
|
2036
2036
|
}
|
|
2037
|
-
var Ne = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(),
|
|
2037
|
+
var Ne = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Ra = class {
|
|
2038
2038
|
constructor(e) {
|
|
2039
2039
|
k(this, Ne, void 0), k(this, ue, void 0);
|
|
2040
2040
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2041
|
-
var
|
|
2042
|
-
return t.set(i,
|
|
2041
|
+
var a = /* @__PURE__ */ js(o, !1, !1);
|
|
2042
|
+
return t.set(i, a), a;
|
|
2043
2043
|
};
|
|
2044
2044
|
const n = new Proxy({
|
|
2045
2045
|
...e.props || {},
|
|
2046
2046
|
$$events: {}
|
|
2047
2047
|
}, {
|
|
2048
2048
|
get(i, o) {
|
|
2049
|
-
return
|
|
2049
|
+
return _(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2050
2050
|
},
|
|
2051
2051
|
has(i, o) {
|
|
2052
|
-
return o ===
|
|
2052
|
+
return o === ei ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2053
2053
|
},
|
|
2054
|
-
set(i, o,
|
|
2055
|
-
return x(t.get(o) ?? r(o,
|
|
2054
|
+
set(i, o, a) {
|
|
2055
|
+
return x(t.get(o) ?? r(o, a), a), Reflect.set(i, o, a);
|
|
2056
2056
|
}
|
|
2057
2057
|
});
|
|
2058
|
-
y(ue, this, (e.hydrate ?
|
|
2058
|
+
y(ue, this, (e.hydrate ? va : Yi)(e.component, {
|
|
2059
2059
|
target: e.target,
|
|
2060
2060
|
anchor: e.anchor,
|
|
2061
2061
|
props: n,
|
|
@@ -2077,7 +2077,7 @@ var Ne = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Pa =
|
|
|
2077
2077
|
l(ue, this).$set = (i) => {
|
|
2078
2078
|
Object.assign(n, i);
|
|
2079
2079
|
}, l(ue, this).$destroy = () => {
|
|
2080
|
-
|
|
2080
|
+
_a(l(ue, this));
|
|
2081
2081
|
};
|
|
2082
2082
|
}
|
|
2083
2083
|
$set(e) {
|
|
@@ -2093,10 +2093,10 @@ var Ne = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Pa =
|
|
|
2093
2093
|
$destroy() {
|
|
2094
2094
|
l(ue, this).$destroy();
|
|
2095
2095
|
}
|
|
2096
|
-
},
|
|
2097
|
-
typeof HTMLElement == "function" && (
|
|
2096
|
+
}, Zi;
|
|
2097
|
+
typeof HTMLElement == "function" && (Zi = class extends HTMLElement {
|
|
2098
2098
|
constructor(e, t, r) {
|
|
2099
|
-
super(),
|
|
2099
|
+
super(), g(this, "$$ctor", void 0), g(this, "$$s", void 0), g(this, "$$c", void 0), g(this, "$$cn", !1), g(this, "$$d", {}), g(this, "$$r", !1), g(this, "$$p_d", {}), g(this, "$$l", {}), g(this, "$$l_u", /* @__PURE__ */ new Map()), g(this, "$$me", void 0), g(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2100
2100
|
}
|
|
2101
2101
|
addEventListener(e, t, r) {
|
|
2102
2102
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2115,19 +2115,19 @@ typeof HTMLElement == "function" && (Xi = class extends HTMLElement {
|
|
|
2115
2115
|
if (this.$$cn = !0, !this.$$c) {
|
|
2116
2116
|
let e = function(n) {
|
|
2117
2117
|
return (i) => {
|
|
2118
|
-
const o =
|
|
2118
|
+
const o = Xr("slot");
|
|
2119
2119
|
n !== "default" && (o.name = n), q(i, o);
|
|
2120
2120
|
};
|
|
2121
2121
|
};
|
|
2122
2122
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2123
|
-
const t = {}, r =
|
|
2123
|
+
const t = {}, r = za(this);
|
|
2124
2124
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2125
2125
|
for (const n of this.attributes) {
|
|
2126
2126
|
const i = this.$$g_p(n.name);
|
|
2127
2127
|
i in this.$$d || (this.$$d[i] = Yt(i, n.value, this.$$p_d, "toProp"));
|
|
2128
2128
|
}
|
|
2129
2129
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2130
|
-
this.$$c =
|
|
2130
|
+
this.$$c = Ma({
|
|
2131
2131
|
component: this.$$ctor,
|
|
2132
2132
|
target: this.$$shadowRoot || this,
|
|
2133
2133
|
props: {
|
|
@@ -2135,8 +2135,8 @@ typeof HTMLElement == "function" && (Xi = class extends HTMLElement {
|
|
|
2135
2135
|
$$slots: t,
|
|
2136
2136
|
$$host: this
|
|
2137
2137
|
}
|
|
2138
|
-
}), this.$$me =
|
|
2139
|
-
|
|
2138
|
+
}), this.$$me = Xs(() => {
|
|
2139
|
+
Qr(() => {
|
|
2140
2140
|
this.$$r = !0;
|
|
2141
2141
|
for (const n of Xt(this.$$c)) {
|
|
2142
2142
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -2192,68 +2192,68 @@ function Yt(e, t, r, n) {
|
|
|
2192
2192
|
return t;
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function za(e) {
|
|
2196
2196
|
const t = {};
|
|
2197
2197
|
return e.childNodes.forEach((r) => {
|
|
2198
2198
|
t[r.slot || "default"] = !0;
|
|
2199
2199
|
}), t;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2202
|
-
let
|
|
2201
|
+
function Ca(e, t, r, n, i, o) {
|
|
2202
|
+
let a = class extends Zi {
|
|
2203
2203
|
constructor() {
|
|
2204
2204
|
super(e, r, i), this.$$p_d = t;
|
|
2205
2205
|
}
|
|
2206
2206
|
static get observedAttributes() {
|
|
2207
|
-
return Xt(t).map((
|
|
2207
|
+
return Xt(t).map((s) => (t[s].attribute || s).toLowerCase());
|
|
2208
2208
|
}
|
|
2209
2209
|
};
|
|
2210
|
-
return Xt(t).forEach((
|
|
2211
|
-
Jt(
|
|
2210
|
+
return Xt(t).forEach((s) => {
|
|
2211
|
+
Jt(a.prototype, s, {
|
|
2212
2212
|
get() {
|
|
2213
|
-
return this.$$c &&
|
|
2213
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
2214
2214
|
},
|
|
2215
2215
|
set(c) {
|
|
2216
|
-
c = Yt(
|
|
2217
|
-
var
|
|
2218
|
-
|
|
2216
|
+
c = Yt(s, c, t), this.$$d[s] = c;
|
|
2217
|
+
var d = this.$$c;
|
|
2218
|
+
d && (Ue(d, s)?.get ? d[s] = c : d.$set({ [s]: c }));
|
|
2219
2219
|
}
|
|
2220
2220
|
});
|
|
2221
|
-
}), n.forEach((
|
|
2222
|
-
Jt(
|
|
2223
|
-
return this.$$c?.[
|
|
2221
|
+
}), n.forEach((s) => {
|
|
2222
|
+
Jt(a.prototype, s, { get() {
|
|
2223
|
+
return this.$$c?.[s];
|
|
2224
2224
|
} });
|
|
2225
|
-
}), o && (
|
|
2225
|
+
}), o && (a = o(a)), e.element = a, a;
|
|
2226
2226
|
}
|
|
2227
|
-
var
|
|
2227
|
+
var cr = (e) => e, ic = cr(Symbol.for("pie.assessmentToolkit.runtimeContext")), oc = cr(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), sc = cr(Symbol.for("pie.assessmentToolkit.shellContext")), ac = cr(Symbol.for("pie.assessmentToolkit.regionScopeContext")), jn;
|
|
2228
2228
|
(function(e) {
|
|
2229
2229
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2230
|
-
})(
|
|
2231
|
-
var
|
|
2230
|
+
})(jn || (jn = {}));
|
|
2231
|
+
var Bn;
|
|
2232
2232
|
(function(e) {
|
|
2233
2233
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2234
|
-
})(
|
|
2235
|
-
function
|
|
2234
|
+
})(Bn || (Bn = {}));
|
|
2235
|
+
function eo(e) {
|
|
2236
2236
|
return (...t) => {
|
|
2237
2237
|
console.debug(`[${e}]`, ...t);
|
|
2238
2238
|
};
|
|
2239
2239
|
}
|
|
2240
|
-
var
|
|
2240
|
+
var lc = eo("I18nService"), xr = {
|
|
2241
2241
|
assessment: [],
|
|
2242
2242
|
section: [],
|
|
2243
2243
|
item: [],
|
|
2244
2244
|
passage: [],
|
|
2245
2245
|
rubric: [],
|
|
2246
2246
|
element: []
|
|
2247
|
-
},
|
|
2248
|
-
section: [...
|
|
2249
|
-
item: [...
|
|
2250
|
-
passage: [...
|
|
2247
|
+
}, cc = {
|
|
2248
|
+
section: [...xr.section],
|
|
2249
|
+
item: [...xr.item],
|
|
2250
|
+
passage: [...xr.passage]
|
|
2251
2251
|
};
|
|
2252
|
-
function
|
|
2252
|
+
function Da(e) {
|
|
2253
2253
|
const t = e.trim();
|
|
2254
2254
|
return t || "";
|
|
2255
2255
|
}
|
|
2256
|
-
var
|
|
2256
|
+
var Na = [
|
|
2257
2257
|
"assessment",
|
|
2258
2258
|
"section",
|
|
2259
2259
|
"item",
|
|
@@ -2264,10 +2264,10 @@ var Ma = [
|
|
|
2264
2264
|
function Kt(e, t) {
|
|
2265
2265
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Fn(e) {
|
|
2268
2268
|
if (Kt(e.toolId, "toolId"), Kt(e.name, "name"), Kt(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2269
2269
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2270
|
-
const t = e.supportedLevels.find((r) => !
|
|
2270
|
+
const t = e.supportedLevels.find((r) => !Na.includes(r));
|
|
2271
2271
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2272
2272
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
2273
2273
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2276,23 +2276,23 @@ function jn(e) {
|
|
|
2276
2276
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2277
2277
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2278
2278
|
}
|
|
2279
|
-
var
|
|
2279
|
+
var ja = class {
|
|
2280
2280
|
constructor() {
|
|
2281
|
-
|
|
2281
|
+
g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2282
2282
|
}
|
|
2283
2283
|
normalizeToolId(e) {
|
|
2284
|
-
return
|
|
2284
|
+
return Da(e);
|
|
2285
2285
|
}
|
|
2286
2286
|
normalizeToolIds(e) {
|
|
2287
2287
|
return e.map((t) => this.normalizeToolId(t));
|
|
2288
2288
|
}
|
|
2289
2289
|
register(e) {
|
|
2290
|
-
if (
|
|
2290
|
+
if (Fn(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2291
2291
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2292
2292
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2293
2293
|
}
|
|
2294
2294
|
override(e) {
|
|
2295
|
-
if (
|
|
2295
|
+
if (Fn(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2296
2296
|
const t = this.tools.get(e.toolId);
|
|
2297
2297
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2298
2298
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2419,35 +2419,35 @@ var za = class {
|
|
|
2419
2419
|
return n.renderToolbar(t, i);
|
|
2420
2420
|
}
|
|
2421
2421
|
};
|
|
2422
|
-
function
|
|
2422
|
+
function to(e) {
|
|
2423
2423
|
return e.level === "item";
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Ba(e) {
|
|
2426
2426
|
return e.level === "passage";
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function Fa(e) {
|
|
2429
2429
|
return e.level === "rubric";
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function ro(e) {
|
|
2432
2432
|
return e.level === "element";
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2435
|
-
if (
|
|
2434
|
+
function en(e) {
|
|
2435
|
+
if (ro(e)) {
|
|
2436
2436
|
const t = e.item.config;
|
|
2437
2437
|
if (!t) return "";
|
|
2438
|
-
const r = [], n = (
|
|
2438
|
+
const r = [], n = (s) => s.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
2439
2439
|
i && typeof i == "string" && r.push(n(i));
|
|
2440
|
-
const o = t.models,
|
|
2441
|
-
if (
|
|
2442
|
-
for (const
|
|
2443
|
-
if (typeof
|
|
2444
|
-
for (const c of
|
|
2445
|
-
for (const
|
|
2440
|
+
const o = t.models, a = (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).find((s) => s && typeof s == "object" && s.id === e.elementId);
|
|
2441
|
+
if (a) {
|
|
2442
|
+
for (const s of Object.values(a))
|
|
2443
|
+
if (typeof s == "string" && r.push(n(s)), Array.isArray(s)) {
|
|
2444
|
+
for (const c of s) if (c && typeof c == "object")
|
|
2445
|
+
for (const d of Object.values(c)) typeof d == "string" && r.push(n(d));
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
2448
|
return r.filter(Boolean).join(" ").trim();
|
|
2449
2449
|
}
|
|
2450
|
-
if (
|
|
2450
|
+
if (to(e)) {
|
|
2451
2451
|
const t = e.item;
|
|
2452
2452
|
if (!t?.config) return "";
|
|
2453
2453
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2455,18 +2455,18 @@ function Qr(e) {
|
|
|
2455
2455
|
const o = r.elements;
|
|
2456
2456
|
if (o && typeof o == "object")
|
|
2457
2457
|
for (const c of Object.values(o)) typeof c == "string" && n.push(i(c));
|
|
2458
|
-
const
|
|
2459
|
-
for (const c of
|
|
2458
|
+
const a = r.models, s = Array.isArray(a) ? a : a && typeof a == "object" ? Object.values(a) : [];
|
|
2459
|
+
for (const c of s)
|
|
2460
2460
|
if (!(!c || typeof c != "object")) {
|
|
2461
|
-
for (const
|
|
2462
|
-
if (typeof
|
|
2463
|
-
for (const
|
|
2464
|
-
for (const
|
|
2461
|
+
for (const d of Object.values(c))
|
|
2462
|
+
if (typeof d == "string" && n.push(i(d)), Array.isArray(d)) {
|
|
2463
|
+
for (const f of d) if (f && typeof f == "object")
|
|
2464
|
+
for (const v of Object.values(f)) typeof v == "string" && n.push(i(v));
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
2467
|
return n.filter(Boolean).join(" ").trim();
|
|
2468
2468
|
}
|
|
2469
|
-
if (
|
|
2469
|
+
if (Ba(e)) {
|
|
2470
2470
|
const t = e.passage;
|
|
2471
2471
|
if (!t?.config) return "";
|
|
2472
2472
|
const r = t.config, n = [], i = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2474,25 +2474,25 @@ function Qr(e) {
|
|
|
2474
2474
|
const o = r.elements;
|
|
2475
2475
|
if (o && typeof o == "object")
|
|
2476
2476
|
for (const c of Object.values(o)) typeof c == "string" && n.push(i(c));
|
|
2477
|
-
const
|
|
2478
|
-
for (const c of
|
|
2477
|
+
const a = r.models, s = Array.isArray(a) ? a : a && typeof a == "object" ? Object.values(a) : [];
|
|
2478
|
+
for (const c of s)
|
|
2479
2479
|
if (!(!c || typeof c != "object")) {
|
|
2480
|
-
for (const
|
|
2481
|
-
if (typeof
|
|
2482
|
-
for (const
|
|
2483
|
-
for (const
|
|
2480
|
+
for (const d of Object.values(c))
|
|
2481
|
+
if (typeof d == "string" && n.push(i(d)), Array.isArray(d)) {
|
|
2482
|
+
for (const f of d) if (f && typeof f == "object")
|
|
2483
|
+
for (const v of Object.values(f)) typeof v == "string" && n.push(i(v));
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
return n.filter(Boolean).join(" ").trim();
|
|
2487
2487
|
}
|
|
2488
|
-
if (
|
|
2488
|
+
if (Fa(e)) {
|
|
2489
2489
|
const t = e.rubricBlock;
|
|
2490
2490
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2491
2491
|
}
|
|
2492
2492
|
return "";
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2495
|
-
const t =
|
|
2494
|
+
function ur(e) {
|
|
2495
|
+
const t = en(e);
|
|
2496
2496
|
return [
|
|
2497
2497
|
/<math[>\s]/i,
|
|
2498
2498
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2502,7 +2502,7 @@ function cr(e) {
|
|
|
2502
2502
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2503
2503
|
].some((r) => r.test(t));
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Ua(e) {
|
|
2506
2506
|
const t = [
|
|
2507
2507
|
"pie-multiple-choice",
|
|
2508
2508
|
"pie-inline-choice",
|
|
@@ -2511,7 +2511,7 @@ function Na(e) {
|
|
|
2511
2511
|
"inline-choice",
|
|
2512
2512
|
"select-text"
|
|
2513
2513
|
];
|
|
2514
|
-
if (
|
|
2514
|
+
if (ro(e)) {
|
|
2515
2515
|
const r = e.item.config;
|
|
2516
2516
|
if (!r?.models) return !1;
|
|
2517
2517
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2519,7 +2519,7 @@ function Na(e) {
|
|
|
2519
2519
|
const i = n.element || "";
|
|
2520
2520
|
return t.includes(i);
|
|
2521
2521
|
}
|
|
2522
|
-
if (
|
|
2522
|
+
if (to(e)) {
|
|
2523
2523
|
const r = e.item.config?.models;
|
|
2524
2524
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2525
2525
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2529,11 +2529,11 @@ function Na(e) {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
return !1;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return
|
|
2532
|
+
function fr(e) {
|
|
2533
|
+
return en(e).trim().length >= 10;
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2536
|
-
const t =
|
|
2535
|
+
function Wa(e) {
|
|
2536
|
+
const t = en(e);
|
|
2537
2537
|
return [
|
|
2538
2538
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2539
2539
|
/periodic\s+table/i,
|
|
@@ -2543,25 +2543,25 @@ function ja(e) {
|
|
|
2543
2543
|
/physics|force|energy|velocity|acceleration/i
|
|
2544
2544
|
].some((r) => r.test(t));
|
|
2545
2545
|
}
|
|
2546
|
-
var
|
|
2546
|
+
var Va = [
|
|
2547
2547
|
"assessment",
|
|
2548
2548
|
"section",
|
|
2549
2549
|
"item",
|
|
2550
2550
|
"passage",
|
|
2551
2551
|
"rubric"
|
|
2552
|
-
],
|
|
2553
|
-
function
|
|
2554
|
-
return
|
|
2552
|
+
], Ha = new Set(Va);
|
|
2553
|
+
function Ga(e) {
|
|
2554
|
+
return Ha.has(e);
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function tn(e, t, r) {
|
|
2557
2557
|
const n = e.trim(), i = r.trim();
|
|
2558
2558
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2559
|
-
if (!
|
|
2559
|
+
if (!Ga(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2560
2560
|
return `${n}:${t}:${i}`;
|
|
2561
2561
|
}
|
|
2562
|
-
var
|
|
2562
|
+
var qa = class {
|
|
2563
2563
|
constructor() {
|
|
2564
|
-
|
|
2564
|
+
g(this, "providerId", "desmos-calculator"), g(this, "providerName", "Desmos Calculator"), g(this, "category", "calculator"), g(this, "version", "1.10"), g(this, "requiresAuth", !0), g(this, "desmosProvider", null), g(this, "config", null);
|
|
2565
2565
|
}
|
|
2566
2566
|
async emitTelemetry(e, t) {
|
|
2567
2567
|
try {
|
|
@@ -2634,41 +2634,41 @@ var Va = class {
|
|
|
2634
2634
|
destroy() {
|
|
2635
2635
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2636
2636
|
}
|
|
2637
|
-
},
|
|
2637
|
+
}, Ya = (e, t) => {
|
|
2638
2638
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2639
2639
|
try {
|
|
2640
2640
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
2641
|
-
const
|
|
2642
|
-
if (typeof
|
|
2643
|
-
const
|
|
2644
|
-
text:
|
|
2645
|
-
offset:
|
|
2646
|
-
})).filter((
|
|
2641
|
+
const a = globalThis.Intl?.Segmenter;
|
|
2642
|
+
if (typeof a == "function") {
|
|
2643
|
+
const s = new a(t?.locale, { granularity: "sentence" }), c = Array.from(s.segment(e)).map((d) => ({
|
|
2644
|
+
text: d.segment,
|
|
2645
|
+
offset: d.index
|
|
2646
|
+
})).filter((d) => d.text.trim().length > 0);
|
|
2647
2647
|
if (c.length > 0) return c;
|
|
2648
2648
|
}
|
|
2649
2649
|
} catch {
|
|
2650
2650
|
}
|
|
2651
2651
|
const n = e.match(/[^.!?]+(?:[.!?]+|$)/g) || [e], i = [];
|
|
2652
2652
|
let o = 0;
|
|
2653
|
-
for (const
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2656
|
-
text:
|
|
2657
|
-
offset:
|
|
2658
|
-
}), o =
|
|
2653
|
+
for (const a of n) {
|
|
2654
|
+
const s = e.indexOf(a, o);
|
|
2655
|
+
s !== -1 && (i.push({
|
|
2656
|
+
text: a,
|
|
2657
|
+
offset: s
|
|
2658
|
+
}), o = s + a.length);
|
|
2659
2659
|
}
|
|
2660
2660
|
return i.length > 0 ? i : [{
|
|
2661
2661
|
text: e,
|
|
2662
2662
|
offset: 0
|
|
2663
2663
|
}];
|
|
2664
|
-
},
|
|
2664
|
+
}, no = class {
|
|
2665
2665
|
constructor() {
|
|
2666
|
-
|
|
2666
|
+
g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
|
|
2667
2667
|
}
|
|
2668
2668
|
async initialize(e) {
|
|
2669
2669
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2670
2670
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2671
|
-
return new
|
|
2671
|
+
return new Ka(e);
|
|
2672
2672
|
}
|
|
2673
2673
|
supportsFeature(e) {
|
|
2674
2674
|
return !0;
|
|
@@ -2685,9 +2685,9 @@ var Va = class {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
destroy() {
|
|
2687
2687
|
}
|
|
2688
|
-
},
|
|
2688
|
+
}, Ka = class {
|
|
2689
2689
|
constructor(e) {
|
|
2690
|
-
|
|
2690
|
+
g(this, "utterance", null), g(this, "config", null), g(this, "_isPlaying", !1), g(this, "_isPaused", !1), g(this, "speakRunId", 0), g(this, "onWordBoundary", void 0), this.config = e;
|
|
2691
2691
|
}
|
|
2692
2692
|
async speak(e) {
|
|
2693
2693
|
if (!this.config) throw new Error("TTS not initialized");
|
|
@@ -2720,19 +2720,19 @@ var Va = class {
|
|
|
2720
2720
|
}];
|
|
2721
2721
|
const r = this.segmentSentences(e), n = [];
|
|
2722
2722
|
let i = "", o = 0;
|
|
2723
|
-
for (const
|
|
2724
|
-
const
|
|
2725
|
-
if (!
|
|
2726
|
-
const c =
|
|
2723
|
+
for (const a of r) {
|
|
2724
|
+
const s = a.text.trim();
|
|
2725
|
+
if (!s) continue;
|
|
2726
|
+
const c = a.text.search(/\S/), d = a.offset + (c === -1 ? 0 : c);
|
|
2727
2727
|
if (!i) {
|
|
2728
|
-
i =
|
|
2728
|
+
i = s, o = d;
|
|
2729
2729
|
continue;
|
|
2730
2730
|
}
|
|
2731
|
-
const
|
|
2732
|
-
|
|
2731
|
+
const f = `${i} ${s}`;
|
|
2732
|
+
f.length <= 260 ? i = f : (n.push({
|
|
2733
2733
|
text: i,
|
|
2734
2734
|
offset: o
|
|
2735
|
-
}), i =
|
|
2735
|
+
}), i = s, o = d);
|
|
2736
2736
|
}
|
|
2737
2737
|
return i && n.push({
|
|
2738
2738
|
text: i,
|
|
@@ -2755,7 +2755,7 @@ var Va = class {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
segmentSentences(e) {
|
|
2757
2757
|
const t = this.getSegmentationPolicy();
|
|
2758
|
-
return
|
|
2758
|
+
return Ya(e, {
|
|
2759
2759
|
locale: t.locale,
|
|
2760
2760
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2761
2761
|
});
|
|
@@ -2771,7 +2771,7 @@ var Va = class {
|
|
|
2771
2771
|
return;
|
|
2772
2772
|
}
|
|
2773
2773
|
if (this.utterance = new SpeechSynthesisUtterance(e), this.config?.voice) {
|
|
2774
|
-
const o = speechSynthesis.getVoices().find((
|
|
2774
|
+
const o = speechSynthesis.getVoices().find((a) => a.name === this.config.voice);
|
|
2775
2775
|
o && (this.utterance.voice = o);
|
|
2776
2776
|
}
|
|
2777
2777
|
this.config?.rate && (this.utterance.rate = this.config.rate), this.config?.pitch && (this.utterance.pitch = this.config.pitch), this.utterance.onstart = () => {
|
|
@@ -2798,8 +2798,8 @@ var Va = class {
|
|
|
2798
2798
|
r === this.speakRunId && (this._isPaused = !1);
|
|
2799
2799
|
}, this.utterance.onboundary = (o) => {
|
|
2800
2800
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
2801
|
-
const
|
|
2802
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:",
|
|
2801
|
+
const a = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), s = Number(o.charLength || 0), c = this.inferWordLength(e, a), d = Number.isFinite(s) && s > 0 && s <= 80 && a + s <= e.length ? s : c, f = e.substring(a, Math.min(e.length, a + d)).trim(), v = t + a;
|
|
2802
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", f, "at position:", v), this.onWordBoundary(f, v, d);
|
|
2803
2803
|
}, speechSynthesis.speak(this.utterance);
|
|
2804
2804
|
});
|
|
2805
2805
|
}
|
|
@@ -2824,7 +2824,7 @@ var Va = class {
|
|
|
2824
2824
|
...e.providerOptions || {}
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
|
-
},
|
|
2827
|
+
}, Xa = class {
|
|
2828
2828
|
async emitTelemetry(e, t) {
|
|
2829
2829
|
try {
|
|
2830
2830
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -2833,7 +2833,7 @@ var Va = class {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
constructor(e = "browser") {
|
|
2836
|
-
|
|
2836
|
+
g(this, "providerId", "tts-service"), g(this, "providerName", "Text-to-Speech"), g(this, "category", "tts"), g(this, "version", "1.0"), g(this, "requiresAuth", void 0), g(this, "ttsProvider", null), g(this, "config", null), this.requiresAuth = e !== "browser";
|
|
2837
2837
|
}
|
|
2838
2838
|
async initialize(e) {
|
|
2839
2839
|
if (this.ttsProvider) {
|
|
@@ -2856,7 +2856,7 @@ var Va = class {
|
|
|
2856
2856
|
}
|
|
2857
2857
|
async _initializeBrowserTTS(e) {
|
|
2858
2858
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2859
|
-
this.ttsProvider = new
|
|
2859
|
+
this.ttsProvider = new no(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2860
2860
|
}
|
|
2861
2861
|
async _initializeServerTTS(e) {
|
|
2862
2862
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2912,7 +2912,7 @@ var Va = class {
|
|
|
2912
2912
|
destroy() {
|
|
2913
2913
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2914
2914
|
}
|
|
2915
|
-
},
|
|
2915
|
+
}, Ja = /* @__PURE__ */ new Set([
|
|
2916
2916
|
"annotation-xml",
|
|
2917
2917
|
"color-profile",
|
|
2918
2918
|
"font-face",
|
|
@@ -2921,16 +2921,16 @@ var Va = class {
|
|
|
2921
2921
|
"font-face-format",
|
|
2922
2922
|
"font-face-name",
|
|
2923
2923
|
"missing-glyph"
|
|
2924
|
-
]),
|
|
2924
|
+
]), Qa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Za = (e, t = "custom element tag") => {
|
|
2925
2925
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
2926
2926
|
const r = e.trim();
|
|
2927
2927
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
2928
2928
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
2929
2929
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
2930
|
-
if (
|
|
2931
|
-
if (!
|
|
2930
|
+
if (Ja.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
2931
|
+
if (!Qa.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2932
2932
|
return r;
|
|
2933
|
-
},
|
|
2933
|
+
}, io = {
|
|
2934
2934
|
calculator: "pie-tool-calculator",
|
|
2935
2935
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2936
2936
|
ruler: "pie-tool-ruler",
|
|
@@ -2943,22 +2943,22 @@ var Va = class {
|
|
|
2943
2943
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2944
2944
|
graph: "pie-tool-graph",
|
|
2945
2945
|
periodicTable: "pie-tool-periodic-table"
|
|
2946
|
-
},
|
|
2947
|
-
const i =
|
|
2946
|
+
}, el = (e, t) => Za(t?.toolTagMap?.[e] ?? io[e] ?? e, `tool component tag for "${e}"`), tl = (e) => document.createElement(e), ge = (e, t, r, n) => {
|
|
2947
|
+
const i = el(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
2948
2948
|
return o ? o({
|
|
2949
2949
|
toolId: e,
|
|
2950
2950
|
tagName: i,
|
|
2951
2951
|
context: t,
|
|
2952
2952
|
toolbarContext: r
|
|
2953
|
-
}) :
|
|
2954
|
-
},
|
|
2953
|
+
}) : tl(i);
|
|
2954
|
+
}, rl = {
|
|
2955
2955
|
toolId: "calculator",
|
|
2956
2956
|
name: "Calculator",
|
|
2957
2957
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2958
2958
|
icon: "calculator",
|
|
2959
2959
|
provider: {
|
|
2960
2960
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
2961
|
-
createProvider: () => new
|
|
2961
|
+
createProvider: () => new qa(),
|
|
2962
2962
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
2963
2963
|
getAuthFetcher: (e) => {
|
|
2964
2964
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -2981,10 +2981,10 @@ var Va = class {
|
|
|
2981
2981
|
"scientificCalculator"
|
|
2982
2982
|
],
|
|
2983
2983
|
isVisibleInContext(e) {
|
|
2984
|
-
return
|
|
2984
|
+
return ur(e);
|
|
2985
2985
|
},
|
|
2986
2986
|
renderToolbar(e, t) {
|
|
2987
|
-
const r =
|
|
2987
|
+
const r = tn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = ge(this.toolId, e, t, n);
|
|
2988
2988
|
i.setAttribute("tool-id", r), i.toolkitCoordinator = t.toolkitCoordinator;
|
|
2989
2989
|
const o = {
|
|
2990
2990
|
toolId: this.toolId,
|
|
@@ -2996,7 +2996,7 @@ var Va = class {
|
|
|
2996
2996
|
onClick: () => t.toggleTool(this.toolId),
|
|
2997
2997
|
active: t.isToolVisible(r)
|
|
2998
2998
|
};
|
|
2999
|
-
let
|
|
2999
|
+
let a = o.active;
|
|
3000
3000
|
return i.visible = o.active, {
|
|
3001
3001
|
toolId: this.toolId,
|
|
3002
3002
|
elements: [{
|
|
@@ -3015,46 +3015,64 @@ var Va = class {
|
|
|
3015
3015
|
}],
|
|
3016
3016
|
button: o,
|
|
3017
3017
|
sync: () => {
|
|
3018
|
-
const
|
|
3019
|
-
o.active =
|
|
3018
|
+
const s = t.isToolVisible(r);
|
|
3019
|
+
o.active = s, o.ariaLabel = s ? "Close scientific calculator" : "Open scientific calculator", o.tooltip = s ? "Close calculator" : "Calculator", a !== s && (i.visible = s, a = s), i.toolkitCoordinator !== t.toolkitCoordinator && (i.toolkitCoordinator = t.toolkitCoordinator);
|
|
3020
3020
|
},
|
|
3021
|
-
subscribeActive: (
|
|
3022
|
-
|
|
3021
|
+
subscribeActive: (s) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3022
|
+
s(t.isToolVisible(r));
|
|
3023
3023
|
}) : () => {
|
|
3024
3024
|
}
|
|
3025
3025
|
};
|
|
3026
3026
|
}
|
|
3027
|
-
},
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3027
|
+
}, nl = /* @__PURE__ */ new Set([
|
|
3028
|
+
"reserved-row",
|
|
3029
|
+
"expanding-row",
|
|
3030
|
+
"floating-overlay",
|
|
3031
|
+
"left-aligned"
|
|
3032
|
+
]), Un = (e) => e && typeof e == "object" ? e : {}, il = (e) => e === "polly" || e === "google" || e === "server", J = (e, t) => e === void 0 ? t : e, ir = (e, t = "left-aligned") => typeof e == "string" && nl.has(e) ? e : t, Wn = Object.freeze([0.8, 1.25]), Er = (e) => {
|
|
3033
|
+
if (!Array.isArray(e)) return [...Wn];
|
|
3034
|
+
if (e.length === 0) return [];
|
|
3035
|
+
const t = /* @__PURE__ */ new Set();
|
|
3036
|
+
for (const r of e) {
|
|
3037
|
+
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
3038
|
+
const n = Math.round(r * 100) / 100;
|
|
3039
|
+
n !== 1 && t.add(n);
|
|
3040
|
+
}
|
|
3041
|
+
return t.size ? Array.from(t) : [...Wn];
|
|
3042
|
+
}, ol = (e) => {
|
|
3043
|
+
const t = {
|
|
3031
3044
|
...e,
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3045
|
+
layoutMode: ir(e.layoutMode)
|
|
3046
|
+
}, r = e.backend || "browser";
|
|
3047
|
+
if (!il(r)) return t;
|
|
3048
|
+
const n = {
|
|
3049
|
+
...t,
|
|
3050
|
+
apiEndpoint: J(t.apiEndpoint, "/api/tts"),
|
|
3051
|
+
transportMode: J(t.transportMode, "pie"),
|
|
3052
|
+
endpointValidationMode: J(t.endpointValidationMode, "voices"),
|
|
3053
|
+
validateEndpoint: J(t.validateEndpoint, !0),
|
|
3054
|
+
includeAuthOnAssetFetch: J(t.includeAuthOnAssetFetch, !1),
|
|
3055
|
+
rate: J(t.rate, 1),
|
|
3056
|
+
language: J(t.language, "en-US")
|
|
3039
3057
|
};
|
|
3040
|
-
return
|
|
3041
|
-
...
|
|
3042
|
-
defaultVoice: J(
|
|
3043
|
-
engine: J(
|
|
3044
|
-
format: J(
|
|
3045
|
-
speechMarksMode: J(
|
|
3046
|
-
} :
|
|
3047
|
-
...
|
|
3048
|
-
defaultVoice: J(
|
|
3049
|
-
} :
|
|
3050
|
-
},
|
|
3051
|
-
const t =
|
|
3052
|
-
return
|
|
3058
|
+
return r === "polly" ? {
|
|
3059
|
+
...n,
|
|
3060
|
+
defaultVoice: J(n.defaultVoice, "Joanna"),
|
|
3061
|
+
engine: J(n.engine, "neural"),
|
|
3062
|
+
format: J(n.format, "mp3"),
|
|
3063
|
+
speechMarksMode: J(n.speechMarksMode, "word+sentence")
|
|
3064
|
+
} : r === "google" ? {
|
|
3065
|
+
...n,
|
|
3066
|
+
defaultVoice: J(n.defaultVoice, "en-US-Wavenet-A")
|
|
3067
|
+
} : n;
|
|
3068
|
+
}, Ir = (e) => {
|
|
3069
|
+
const t = Un(e), r = Un(e?.settings);
|
|
3070
|
+
return ol({
|
|
3053
3071
|
...t,
|
|
3054
3072
|
...r
|
|
3055
3073
|
});
|
|
3056
|
-
},
|
|
3057
|
-
const t =
|
|
3074
|
+
}, Nr = (e) => e.backend || "browser", oo = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, so = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), sl = (e) => {
|
|
3075
|
+
const t = Nr(e), r = oo(e, t), n = so(e, r);
|
|
3058
3076
|
return {
|
|
3059
3077
|
voice: e.defaultVoice,
|
|
3060
3078
|
rate: e.rate,
|
|
@@ -3078,37 +3096,60 @@ var Va = class {
|
|
|
3078
3096
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3079
3097
|
validateEndpoint: e.validateEndpoint
|
|
3080
3098
|
};
|
|
3081
|
-
},
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3099
|
+
}, ao = (e) => ir(e.layoutMode), al = (e) => {
|
|
3100
|
+
switch (ao(e)) {
|
|
3101
|
+
case "reserved-row":
|
|
3102
|
+
return {
|
|
3103
|
+
mount: "before-buttons",
|
|
3104
|
+
controlsRow: {
|
|
3105
|
+
reserveSpace: !0,
|
|
3106
|
+
expandWhenToolActive: !1
|
|
3107
|
+
}
|
|
3108
|
+
};
|
|
3109
|
+
case "expanding-row":
|
|
3110
|
+
return {
|
|
3111
|
+
mount: "before-buttons",
|
|
3112
|
+
controlsRow: {
|
|
3113
|
+
reserveSpace: !1,
|
|
3114
|
+
expandWhenToolActive: !0
|
|
3115
|
+
}
|
|
3116
|
+
};
|
|
3117
|
+
default:
|
|
3118
|
+
return {
|
|
3119
|
+
mount: "before-buttons",
|
|
3120
|
+
controlsRow: {
|
|
3121
|
+
reserveSpace: !1,
|
|
3122
|
+
expandWhenToolActive: !1
|
|
3123
|
+
}
|
|
3124
|
+
};
|
|
3089
3125
|
}
|
|
3090
|
-
|
|
3091
|
-
}, il = {
|
|
3126
|
+
}, kt = /* @__PURE__ */ new Map(), ll = "__pieToolElementUnmount", Vn = "pie-tool-active-change", cl = {
|
|
3092
3127
|
toolId: "textToSpeech",
|
|
3093
3128
|
name: "Text to Speech",
|
|
3094
3129
|
description: "Read content aloud",
|
|
3095
3130
|
icon: "volume-up",
|
|
3096
3131
|
provider: {
|
|
3097
3132
|
getProviderId: () => "tts",
|
|
3098
|
-
createProvider: (e) => new
|
|
3133
|
+
createProvider: (e) => new Xa(Nr(Ir(e))),
|
|
3099
3134
|
getInitConfig: (e) => {
|
|
3100
|
-
const t =
|
|
3135
|
+
const t = Ir(e), r = Nr(t), n = oo(t, r);
|
|
3101
3136
|
return {
|
|
3102
3137
|
backend: r,
|
|
3103
3138
|
serverProvider: n,
|
|
3104
|
-
transportMode:
|
|
3105
|
-
...
|
|
3139
|
+
transportMode: so(t, n),
|
|
3140
|
+
...sl(t)
|
|
3106
3141
|
};
|
|
3107
3142
|
},
|
|
3108
3143
|
getAuthFetcher: (e) => {
|
|
3109
3144
|
const t = e?.provider?.runtime?.authFetcher;
|
|
3110
3145
|
return typeof t == "function" ? t : void 0;
|
|
3111
3146
|
},
|
|
3147
|
+
sanitizeConfig: (e) => {
|
|
3148
|
+
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
3149
|
+
t && "layoutMode" in t && (t.layoutMode = ir(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Er(t.speedOptions));
|
|
3150
|
+
const r = { ...e };
|
|
3151
|
+
return "layoutMode" in r && (r.layoutMode = ir(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Er(r.speedOptions)), t && (r.settings = t), r;
|
|
3152
|
+
},
|
|
3112
3153
|
lazy: !0
|
|
3113
3154
|
},
|
|
3114
3155
|
supportedLevels: [
|
|
@@ -3124,34 +3165,47 @@ var Va = class {
|
|
|
3124
3165
|
"speechOutput"
|
|
3125
3166
|
],
|
|
3126
3167
|
isVisibleInContext(e) {
|
|
3127
|
-
return
|
|
3168
|
+
return fr(e);
|
|
3128
3169
|
},
|
|
3129
3170
|
renderToolbar(e, t) {
|
|
3130
|
-
const r = () =>
|
|
3131
|
-
const
|
|
3132
|
-
return
|
|
3133
|
-
},
|
|
3134
|
-
let
|
|
3135
|
-
return
|
|
3136
|
-
kt.get(
|
|
3137
|
-
}, kt.set(
|
|
3138
|
-
};
|
|
3171
|
+
const r = () => Ir(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Er(r().speedOptions), i = () => ao(r()), o = () => al(r()), a = tn(this.toolId, t.scope.level, t.scope.scopeId), s = () => {
|
|
3172
|
+
const f = t.ui?.size;
|
|
3173
|
+
return f === "sm" || f === "lg" ? f : "md";
|
|
3174
|
+
}, c = () => {
|
|
3175
|
+
let f = kt.get(a);
|
|
3176
|
+
return f && typeof f.isConnected == "boolean" && !f.isConnected && (kt.delete(a), f = void 0), f || (f = document.createElement("pie-tool-tts-inline"), f[ll] = () => {
|
|
3177
|
+
kt.get(a) === f && kt.delete(a);
|
|
3178
|
+
}, kt.set(a, f)), f.setAttribute("tool-id", a), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", s()), f.setAttribute("layout-mode", i()), f.speedOptions = n(), f;
|
|
3179
|
+
}, d = o();
|
|
3139
3180
|
return {
|
|
3140
3181
|
toolId: this.toolId,
|
|
3141
3182
|
button: null,
|
|
3142
3183
|
elements: [{
|
|
3143
|
-
element:
|
|
3144
|
-
mount:
|
|
3184
|
+
element: c(),
|
|
3185
|
+
mount: d.mount,
|
|
3186
|
+
layoutHints: { controlsRow: {
|
|
3187
|
+
reserveSpace: d.controlsRow.reserveSpace,
|
|
3188
|
+
showWhenToolActive: d.controlsRow.expandWhenToolActive
|
|
3189
|
+
} }
|
|
3145
3190
|
}],
|
|
3191
|
+
subscribeActive: (f) => {
|
|
3192
|
+
const v = c(), u = (p) => {
|
|
3193
|
+
const h = p.detail;
|
|
3194
|
+
f(h?.active === !0);
|
|
3195
|
+
};
|
|
3196
|
+
return v.addEventListener(Vn, u), () => {
|
|
3197
|
+
v.removeEventListener(Vn, u);
|
|
3198
|
+
};
|
|
3199
|
+
},
|
|
3146
3200
|
sync: () => {
|
|
3147
|
-
const
|
|
3148
|
-
|
|
3201
|
+
const f = c();
|
|
3202
|
+
f.setAttribute("tool-id", a), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", s()), f.setAttribute("layout-mode", i()), f.speedOptions = n();
|
|
3149
3203
|
}
|
|
3150
3204
|
};
|
|
3151
3205
|
}
|
|
3152
3206
|
};
|
|
3153
3207
|
function Se(e, t) {
|
|
3154
|
-
const r =
|
|
3208
|
+
const r = tn(e, t.scope.level, t.scope.scopeId);
|
|
3155
3209
|
return {
|
|
3156
3210
|
fullToolId: r,
|
|
3157
3211
|
isActive: () => t.isToolVisible(r),
|
|
@@ -3165,18 +3219,22 @@ function xe(e) {
|
|
|
3165
3219
|
const t = e.isActive();
|
|
3166
3220
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3167
3221
|
}
|
|
3168
|
-
function
|
|
3222
|
+
function rn(e, t) {
|
|
3169
3223
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3170
3224
|
}
|
|
3171
|
-
var
|
|
3225
|
+
var ul = {
|
|
3172
3226
|
toolId: "ruler",
|
|
3173
3227
|
name: "Ruler",
|
|
3174
3228
|
description: "On-screen ruler for measurements",
|
|
3175
3229
|
icon: "ruler",
|
|
3176
|
-
supportedLevels: [
|
|
3230
|
+
supportedLevels: [
|
|
3231
|
+
"section",
|
|
3232
|
+
"item",
|
|
3233
|
+
"element"
|
|
3234
|
+
],
|
|
3177
3235
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3178
3236
|
isVisibleInContext(e) {
|
|
3179
|
-
return
|
|
3237
|
+
return ur(e);
|
|
3180
3238
|
},
|
|
3181
3239
|
renderToolbar(e, t) {
|
|
3182
3240
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3189,7 +3247,7 @@ var ol = {
|
|
|
3189
3247
|
onClick: () => t.toggleTool(this.toolId),
|
|
3190
3248
|
active: r.isActive()
|
|
3191
3249
|
}, i = t.componentOverrides ?? {}, o = ge(this.toolId, e, t, i);
|
|
3192
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3250
|
+
return o.setAttribute("tool-id", r.fullToolId), rn(o, "frameless"), {
|
|
3193
3251
|
toolId: this.toolId,
|
|
3194
3252
|
button: n,
|
|
3195
3253
|
elements: [{
|
|
@@ -3206,15 +3264,19 @@ var ol = {
|
|
|
3206
3264
|
subscribeActive: r.subscribeActive
|
|
3207
3265
|
};
|
|
3208
3266
|
}
|
|
3209
|
-
},
|
|
3267
|
+
}, fl = {
|
|
3210
3268
|
toolId: "protractor",
|
|
3211
3269
|
name: "Protractor",
|
|
3212
3270
|
description: "On-screen protractor for angle measurements",
|
|
3213
3271
|
icon: "protractor",
|
|
3214
|
-
supportedLevels: [
|
|
3272
|
+
supportedLevels: [
|
|
3273
|
+
"section",
|
|
3274
|
+
"item",
|
|
3275
|
+
"element"
|
|
3276
|
+
],
|
|
3215
3277
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3216
3278
|
isVisibleInContext(e) {
|
|
3217
|
-
return
|
|
3279
|
+
return ur(e);
|
|
3218
3280
|
},
|
|
3219
3281
|
renderToolbar(e, t) {
|
|
3220
3282
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3227,7 +3289,7 @@ var ol = {
|
|
|
3227
3289
|
onClick: () => t.toggleTool(this.toolId),
|
|
3228
3290
|
active: r.isActive()
|
|
3229
3291
|
}, i = t.componentOverrides ?? {}, o = ge(this.toolId, e, t, i);
|
|
3230
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3292
|
+
return o.setAttribute("tool-id", r.fullToolId), rn(o, "frameless"), {
|
|
3231
3293
|
toolId: this.toolId,
|
|
3232
3294
|
button: n,
|
|
3233
3295
|
elements: [{
|
|
@@ -3244,7 +3306,7 @@ var ol = {
|
|
|
3244
3306
|
subscribeActive: r.subscribeActive
|
|
3245
3307
|
};
|
|
3246
3308
|
}
|
|
3247
|
-
},
|
|
3309
|
+
}, dl = {
|
|
3248
3310
|
toolId: "answerEliminator",
|
|
3249
3311
|
name: "Answer Eliminator",
|
|
3250
3312
|
description: "Strike through answer choices",
|
|
@@ -3257,7 +3319,7 @@ var ol = {
|
|
|
3257
3319
|
"choiceMasking"
|
|
3258
3320
|
],
|
|
3259
3321
|
isVisibleInContext(e) {
|
|
3260
|
-
return
|
|
3322
|
+
return Ua(e);
|
|
3261
3323
|
},
|
|
3262
3324
|
renderToolbar(e, t) {
|
|
3263
3325
|
const r = Se(this.toolId, t), n = t.componentOverrides ?? {}, i = ge(this.toolId, e, t, n);
|
|
@@ -3285,13 +3347,13 @@ var ol = {
|
|
|
3285
3347
|
overlay: i,
|
|
3286
3348
|
isActive: r.isActive
|
|
3287
3349
|
}), t.toolCoordinator && (i.coordinator = t.toolCoordinator), i.scopeElement = t.getScopeElement?.() || null, t.elementToolStateStore && (i.elementToolStateStore = t.elementToolStateStore);
|
|
3288
|
-
const
|
|
3289
|
-
|
|
3350
|
+
const a = t.getGlobalElementId?.();
|
|
3351
|
+
a && (i.globalElementId = a);
|
|
3290
3352
|
},
|
|
3291
3353
|
subscribeActive: r.subscribeActive
|
|
3292
3354
|
};
|
|
3293
3355
|
}
|
|
3294
|
-
},
|
|
3356
|
+
}, pl = {
|
|
3295
3357
|
toolId: "highlighter",
|
|
3296
3358
|
name: "Highlighter",
|
|
3297
3359
|
description: "Highlight text",
|
|
@@ -3309,7 +3371,7 @@ var ol = {
|
|
|
3309
3371
|
"annotation"
|
|
3310
3372
|
],
|
|
3311
3373
|
isVisibleInContext(e) {
|
|
3312
|
-
return
|
|
3374
|
+
return fr(e);
|
|
3313
3375
|
},
|
|
3314
3376
|
renderToolbar(e, t) {
|
|
3315
3377
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3334,20 +3396,21 @@ var ol = {
|
|
|
3334
3396
|
button: n,
|
|
3335
3397
|
overlay: o,
|
|
3336
3398
|
isActive: r.isActive,
|
|
3337
|
-
onActiveChange: (
|
|
3338
|
-
o.enabled =
|
|
3399
|
+
onActiveChange: (a) => {
|
|
3400
|
+
o.enabled = a;
|
|
3339
3401
|
}
|
|
3340
3402
|
}), t.ttsService && (o.ttsService = t.ttsService);
|
|
3341
3403
|
},
|
|
3342
3404
|
subscribeActive: r.subscribeActive
|
|
3343
3405
|
};
|
|
3344
3406
|
}
|
|
3345
|
-
},
|
|
3407
|
+
}, hl = {
|
|
3346
3408
|
toolId: "lineReader",
|
|
3347
3409
|
name: "Line Reader",
|
|
3348
3410
|
description: "Reading guide overlay",
|
|
3349
3411
|
icon: "bars-3",
|
|
3350
3412
|
supportedLevels: [
|
|
3413
|
+
"section",
|
|
3351
3414
|
"passage",
|
|
3352
3415
|
"rubric",
|
|
3353
3416
|
"item"
|
|
@@ -3360,7 +3423,7 @@ var ol = {
|
|
|
3360
3423
|
"trackingGuide"
|
|
3361
3424
|
],
|
|
3362
3425
|
isVisibleInContext(e) {
|
|
3363
|
-
return
|
|
3426
|
+
return fr(e);
|
|
3364
3427
|
},
|
|
3365
3428
|
renderToolbar(e, t) {
|
|
3366
3429
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3373,7 +3436,7 @@ var ol = {
|
|
|
3373
3436
|
onClick: () => t.toggleTool(this.toolId),
|
|
3374
3437
|
active: r.isActive()
|
|
3375
3438
|
}, i = t.componentOverrides ?? {}, o = ge(this.toolId, e, t, i);
|
|
3376
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3439
|
+
return o.setAttribute("tool-id", r.fullToolId), rn(o, "frameless"), {
|
|
3377
3440
|
toolId: this.toolId,
|
|
3378
3441
|
button: n,
|
|
3379
3442
|
elements: [{
|
|
@@ -3390,7 +3453,7 @@ var ol = {
|
|
|
3390
3453
|
subscribeActive: r.subscribeActive
|
|
3391
3454
|
};
|
|
3392
3455
|
}
|
|
3393
|
-
},
|
|
3456
|
+
}, vl = {
|
|
3394
3457
|
toolId: "theme",
|
|
3395
3458
|
name: "Theme",
|
|
3396
3459
|
description: "Accessible themes and contrast",
|
|
@@ -3446,7 +3509,7 @@ var ol = {
|
|
|
3446
3509
|
subscribeActive: r.subscribeActive
|
|
3447
3510
|
};
|
|
3448
3511
|
}
|
|
3449
|
-
},
|
|
3512
|
+
}, _l = {
|
|
3450
3513
|
toolId: "annotationToolbar",
|
|
3451
3514
|
name: "Highlighter",
|
|
3452
3515
|
description: "Highlight and annotate text",
|
|
@@ -3467,7 +3530,7 @@ var ol = {
|
|
|
3467
3530
|
"annotation"
|
|
3468
3531
|
],
|
|
3469
3532
|
isVisibleInContext(e) {
|
|
3470
|
-
return
|
|
3533
|
+
return fr(e);
|
|
3471
3534
|
},
|
|
3472
3535
|
renderToolbar(e, t) {
|
|
3473
3536
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3497,7 +3560,7 @@ var ol = {
|
|
|
3497
3560
|
subscribeActive: r.subscribeActive
|
|
3498
3561
|
};
|
|
3499
3562
|
}
|
|
3500
|
-
},
|
|
3563
|
+
}, gl = {
|
|
3501
3564
|
toolId: "graph",
|
|
3502
3565
|
name: "Graph",
|
|
3503
3566
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3510,7 +3573,7 @@ var ol = {
|
|
|
3510
3573
|
"graphingTool"
|
|
3511
3574
|
],
|
|
3512
3575
|
isVisibleInContext(e) {
|
|
3513
|
-
return
|
|
3576
|
+
return ur(e);
|
|
3514
3577
|
},
|
|
3515
3578
|
renderToolbar(e, t) {
|
|
3516
3579
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3550,7 +3613,7 @@ var ol = {
|
|
|
3550
3613
|
subscribeActive: r.subscribeActive
|
|
3551
3614
|
};
|
|
3552
3615
|
}
|
|
3553
|
-
},
|
|
3616
|
+
}, ml = {
|
|
3554
3617
|
toolId: "periodicTable",
|
|
3555
3618
|
name: "Periodic Table",
|
|
3556
3619
|
description: "Chemistry periodic table reference",
|
|
@@ -3562,7 +3625,7 @@ var ol = {
|
|
|
3562
3625
|
"elementReference"
|
|
3563
3626
|
],
|
|
3564
3627
|
isVisibleInContext(e) {
|
|
3565
|
-
return
|
|
3628
|
+
return Wa(e);
|
|
3566
3629
|
},
|
|
3567
3630
|
renderToolbar(e, t) {
|
|
3568
3631
|
const r = Se(this.toolId, t), n = {
|
|
@@ -3602,54 +3665,54 @@ var ol = {
|
|
|
3602
3665
|
subscribeActive: r.subscribeActive
|
|
3603
3666
|
};
|
|
3604
3667
|
}
|
|
3605
|
-
},
|
|
3606
|
-
|
|
3607
|
-
il,
|
|
3608
|
-
ol,
|
|
3609
|
-
sl,
|
|
3610
|
-
al,
|
|
3611
|
-
ll,
|
|
3668
|
+
}, bl = [
|
|
3669
|
+
rl,
|
|
3612
3670
|
cl,
|
|
3613
3671
|
ul,
|
|
3614
3672
|
fl,
|
|
3615
3673
|
dl,
|
|
3616
|
-
pl
|
|
3674
|
+
pl,
|
|
3675
|
+
hl,
|
|
3676
|
+
vl,
|
|
3677
|
+
_l,
|
|
3678
|
+
gl,
|
|
3679
|
+
ml
|
|
3617
3680
|
];
|
|
3618
|
-
function
|
|
3619
|
-
const t = new
|
|
3681
|
+
function yl(e = {}) {
|
|
3682
|
+
const t = new ja(), r = {
|
|
3620
3683
|
toolTagMap: {
|
|
3621
|
-
...
|
|
3684
|
+
...io,
|
|
3622
3685
|
...e.toolTagMap || {}
|
|
3623
3686
|
},
|
|
3624
3687
|
toolComponentFactory: e.toolComponentFactory,
|
|
3625
3688
|
toolComponentFactories: e.toolComponentFactories
|
|
3626
3689
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3627
|
-
return e.includePackagedTools &&
|
|
3690
|
+
return e.includePackagedTools && wl(t, {
|
|
3628
3691
|
toolIds: e.toolIds,
|
|
3629
3692
|
applyOverrides: n
|
|
3630
3693
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3631
3694
|
}
|
|
3632
|
-
function
|
|
3695
|
+
function wl(e, t = {}) {
|
|
3633
3696
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3634
|
-
for (const i of
|
|
3697
|
+
for (const i of bl)
|
|
3635
3698
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3636
3699
|
}
|
|
3637
|
-
function
|
|
3638
|
-
return
|
|
3700
|
+
function kl(e = {}) {
|
|
3701
|
+
return yl({
|
|
3639
3702
|
...e,
|
|
3640
3703
|
includePackagedTools: !0
|
|
3641
3704
|
});
|
|
3642
3705
|
}
|
|
3643
|
-
function
|
|
3644
|
-
const e =
|
|
3706
|
+
function Tl() {
|
|
3707
|
+
const e = kl(), t = /* @__PURE__ */ new Set();
|
|
3645
3708
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
3646
3709
|
return [...t].sort();
|
|
3647
3710
|
}
|
|
3648
|
-
var
|
|
3649
|
-
supports: [...
|
|
3711
|
+
var Sl = Tl(), uc = {
|
|
3712
|
+
supports: [...Sl],
|
|
3650
3713
|
prohibitedSupports: [],
|
|
3651
3714
|
activateAtInit: []
|
|
3652
|
-
},
|
|
3715
|
+
}, xl = {
|
|
3653
3716
|
visual: {
|
|
3654
3717
|
magnification: "magnification",
|
|
3655
3718
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3762,16 +3825,16 @@ var bl = ml(), oc = {
|
|
|
3762
3825
|
itemGlossary: "itemGlossary",
|
|
3763
3826
|
tutorialAvailable: "tutorialAvailable"
|
|
3764
3827
|
}
|
|
3765
|
-
},
|
|
3828
|
+
}, fc = Object.values(xl).flatMap((e) => Object.values(e)), dc = eo("ToolCoordinator"), jr;
|
|
3766
3829
|
(function(e) {
|
|
3767
3830
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3768
|
-
})(
|
|
3769
|
-
var
|
|
3831
|
+
})(jr || (jr = {}));
|
|
3832
|
+
var Hn;
|
|
3770
3833
|
(function(e) {
|
|
3771
3834
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3772
|
-
})(
|
|
3773
|
-
var
|
|
3774
|
-
function
|
|
3835
|
+
})(Hn || (Hn = {}));
|
|
3836
|
+
var lo = "https://proxy.pie-api.com", El = `${lo}/bundles/`;
|
|
3837
|
+
function co(e) {
|
|
3775
3838
|
try {
|
|
3776
3839
|
const t = {
|
|
3777
3840
|
BASE_URL: "/",
|
|
@@ -3784,7 +3847,7 @@ function oo(e) {
|
|
|
3784
3847
|
} catch {
|
|
3785
3848
|
}
|
|
3786
3849
|
}
|
|
3787
|
-
var
|
|
3850
|
+
var pc = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || co("PUBLIC_BUILDER_ORIGIN_URL") || lo, Il = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || co("PUBLIC_BUILDER_BUNDLE_URL") || El;
|
|
3788
3851
|
function ht(e, t) {
|
|
3789
3852
|
const r = `[${e}]`;
|
|
3790
3853
|
return {
|
|
@@ -3799,115 +3862,115 @@ function ht(e, t) {
|
|
|
3799
3862
|
function vt() {
|
|
3800
3863
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
3801
3864
|
}
|
|
3802
|
-
var
|
|
3865
|
+
var Br;
|
|
3803
3866
|
(function(e) {
|
|
3804
3867
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
3805
|
-
})(
|
|
3806
|
-
var
|
|
3868
|
+
})(Br || (Br = {}));
|
|
3869
|
+
var Gn;
|
|
3807
3870
|
(function(e) {
|
|
3808
3871
|
e.loading = "loading", e.loaded = "loaded";
|
|
3809
|
-
})(
|
|
3872
|
+
})(Gn || (Gn = {}));
|
|
3810
3873
|
typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
|
|
3811
3874
|
loadingScripts: {},
|
|
3812
3875
|
loadingPromises: {},
|
|
3813
3876
|
globalLoadQueue: Promise.resolve(),
|
|
3814
3877
|
activeBundleUrl: null
|
|
3815
3878
|
});
|
|
3816
|
-
var
|
|
3879
|
+
var qn;
|
|
3817
3880
|
(function(e) {
|
|
3818
3881
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
3819
|
-
})(
|
|
3820
|
-
var
|
|
3882
|
+
})(qn || (qn = {}));
|
|
3883
|
+
var Yn;
|
|
3821
3884
|
(function(e) {
|
|
3822
3885
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
3823
|
-
})(
|
|
3824
|
-
var
|
|
3886
|
+
})(Yn || (Yn = {}));
|
|
3887
|
+
var Kn;
|
|
3825
3888
|
(function(e) {
|
|
3826
3889
|
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
3827
|
-
})(
|
|
3828
|
-
var
|
|
3890
|
+
})(Kn || (Kn = {}));
|
|
3891
|
+
var Xn;
|
|
3829
3892
|
(function(e) {
|
|
3830
3893
|
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
3831
|
-
})(
|
|
3832
|
-
var
|
|
3894
|
+
})(Xn || (Xn = {}));
|
|
3895
|
+
var Al = class uo extends CustomEvent {
|
|
3833
3896
|
constructor(t, r = !1) {
|
|
3834
|
-
super(
|
|
3897
|
+
super(uo.TYPE, {
|
|
3835
3898
|
bubbles: !0,
|
|
3836
3899
|
detail: {
|
|
3837
3900
|
update: t,
|
|
3838
3901
|
reset: r
|
|
3839
3902
|
}
|
|
3840
|
-
}),
|
|
3903
|
+
}), g(this, "update", void 0), g(this, "reset", void 0), this.update = t, this.reset = r;
|
|
3841
3904
|
}
|
|
3842
3905
|
};
|
|
3843
|
-
|
|
3844
|
-
var
|
|
3906
|
+
g(Al, "TYPE", "model.updated");
|
|
3907
|
+
var $l = class fo extends CustomEvent {
|
|
3845
3908
|
constructor(t, r) {
|
|
3846
|
-
super(
|
|
3909
|
+
super(fo.TYPE, {
|
|
3847
3910
|
bubbles: !0,
|
|
3848
3911
|
detail: {
|
|
3849
3912
|
src: t,
|
|
3850
3913
|
done: r
|
|
3851
3914
|
}
|
|
3852
|
-
}),
|
|
3915
|
+
}), g(this, "src", void 0), g(this, "done", void 0), this.src = t, this.done = r;
|
|
3853
3916
|
}
|
|
3854
3917
|
};
|
|
3855
|
-
|
|
3856
|
-
var
|
|
3918
|
+
g($l, "TYPE", "delete.image");
|
|
3919
|
+
var Ll = class po extends CustomEvent {
|
|
3857
3920
|
constructor(t) {
|
|
3858
|
-
super(
|
|
3921
|
+
super(po.TYPE, {
|
|
3859
3922
|
bubbles: !0,
|
|
3860
3923
|
detail: t
|
|
3861
|
-
}),
|
|
3924
|
+
}), g(this, "handler", void 0), this.handler = t;
|
|
3862
3925
|
}
|
|
3863
3926
|
};
|
|
3864
|
-
|
|
3865
|
-
var
|
|
3927
|
+
g(Ll, "TYPE", "insert.image");
|
|
3928
|
+
var Pl = class ho extends CustomEvent {
|
|
3866
3929
|
constructor(t, r) {
|
|
3867
|
-
super(
|
|
3930
|
+
super(ho.TYPE, {
|
|
3868
3931
|
bubbles: !0,
|
|
3869
3932
|
detail: {
|
|
3870
3933
|
src: t,
|
|
3871
3934
|
done: r
|
|
3872
3935
|
}
|
|
3873
|
-
}),
|
|
3936
|
+
}), g(this, "src", void 0), g(this, "done", void 0), this.src = t, this.done = r;
|
|
3874
3937
|
}
|
|
3875
3938
|
};
|
|
3876
|
-
|
|
3877
|
-
var
|
|
3939
|
+
g(Pl, "TYPE", "delete.sound");
|
|
3940
|
+
var Ol = class vo extends CustomEvent {
|
|
3878
3941
|
constructor(t) {
|
|
3879
|
-
super(
|
|
3942
|
+
super(vo.TYPE, {
|
|
3880
3943
|
bubbles: !0,
|
|
3881
3944
|
detail: t
|
|
3882
|
-
}),
|
|
3945
|
+
}), g(this, "handler", void 0), this.handler = t;
|
|
3883
3946
|
}
|
|
3884
3947
|
};
|
|
3885
|
-
|
|
3886
|
-
var
|
|
3948
|
+
g(Ol, "TYPE", "insert.sound");
|
|
3949
|
+
var Ml = class _o extends CustomEvent {
|
|
3887
3950
|
constructor(t, r) {
|
|
3888
|
-
super(
|
|
3951
|
+
super(_o.TYPE, {
|
|
3889
3952
|
bubbles: !0,
|
|
3890
3953
|
composed: !0,
|
|
3891
3954
|
detail: {
|
|
3892
3955
|
complete: r,
|
|
3893
3956
|
component: t
|
|
3894
3957
|
}
|
|
3895
|
-
}),
|
|
3958
|
+
}), g(this, "component", void 0), g(this, "complete", void 0), this.component = t, this.complete = r;
|
|
3896
3959
|
}
|
|
3897
3960
|
};
|
|
3898
|
-
|
|
3899
|
-
var
|
|
3961
|
+
g(Ml, "TYPE", "session-changed");
|
|
3962
|
+
var Jn;
|
|
3900
3963
|
(function(e) {
|
|
3901
3964
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
3902
|
-
})(
|
|
3903
|
-
var
|
|
3904
|
-
buildServiceBase:
|
|
3905
|
-
bundleType:
|
|
3965
|
+
})(Jn || (Jn = {}));
|
|
3966
|
+
var hc = ht("math-rendering", () => vt()), vc = ht("pie-scoring", () => vt()), _c = ht("pie-updates", () => vt()), gc = ht("pie-initialization", () => vt()), mc = {
|
|
3967
|
+
buildServiceBase: Il,
|
|
3968
|
+
bundleType: Br.player,
|
|
3906
3969
|
env: {
|
|
3907
3970
|
mode: "gather",
|
|
3908
3971
|
role: "student"
|
|
3909
3972
|
}
|
|
3910
|
-
},
|
|
3973
|
+
}, bc = ht("instrumentation-event-bridge", () => vt()), yc = ht("instrumentation-provider-resolution", () => vt()), Rl = [
|
|
3911
3974
|
"a[href]",
|
|
3912
3975
|
"button:not([disabled])",
|
|
3913
3976
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -3915,16 +3978,16 @@ var cc = ht("math-rendering", () => vt()), uc = ht("pie-scoring", () => vt()), f
|
|
|
3915
3978
|
"textarea:not([disabled])",
|
|
3916
3979
|
"[tabindex]:not([tabindex='-1'])"
|
|
3917
3980
|
].join(",");
|
|
3918
|
-
function
|
|
3919
|
-
return Array.from(e.querySelectorAll(
|
|
3981
|
+
function go(e) {
|
|
3982
|
+
return Array.from(e.querySelectorAll(Rl)).filter((t) => t.hasAttribute("disabled") ? !1 : t.offsetParent !== null || t.getClientRects().length > 0);
|
|
3920
3983
|
}
|
|
3921
|
-
function
|
|
3984
|
+
function zl(e, t) {
|
|
3922
3985
|
try {
|
|
3923
3986
|
if (t && e.contains(t)) {
|
|
3924
3987
|
t.focus();
|
|
3925
3988
|
return;
|
|
3926
3989
|
}
|
|
3927
|
-
const r =
|
|
3990
|
+
const r = go(e);
|
|
3928
3991
|
if (r.length > 0) {
|
|
3929
3992
|
r[0].focus();
|
|
3930
3993
|
return;
|
|
@@ -3933,26 +3996,26 @@ function Pl(e, t) {
|
|
|
3933
3996
|
} catch {
|
|
3934
3997
|
}
|
|
3935
3998
|
}
|
|
3936
|
-
function
|
|
3999
|
+
function Cl(e, t = {}) {
|
|
3937
4000
|
const r = typeof document < "u" ? document.activeElement : null, n = (i) => {
|
|
3938
4001
|
if (i.key === "Escape") {
|
|
3939
4002
|
t.onEscape?.();
|
|
3940
4003
|
return;
|
|
3941
4004
|
}
|
|
3942
4005
|
if (i.key !== "Tab") return;
|
|
3943
|
-
const o =
|
|
4006
|
+
const o = go(e);
|
|
3944
4007
|
if (!o.length) {
|
|
3945
4008
|
i.preventDefault(), e.focus?.();
|
|
3946
4009
|
return;
|
|
3947
4010
|
}
|
|
3948
|
-
const
|
|
4011
|
+
const a = document.activeElement, s = o.indexOf(a || o[0]);
|
|
3949
4012
|
if (i.shiftKey) {
|
|
3950
|
-
|
|
4013
|
+
s <= 0 && (i.preventDefault(), o[o.length - 1].focus());
|
|
3951
4014
|
return;
|
|
3952
4015
|
}
|
|
3953
|
-
|
|
4016
|
+
s === o.length - 1 && (i.preventDefault(), o[0].focus());
|
|
3954
4017
|
};
|
|
3955
|
-
return queueMicrotask(() =>
|
|
4018
|
+
return queueMicrotask(() => zl(e, t.initialFocus)), e.addEventListener("keydown", n), () => {
|
|
3956
4019
|
e.removeEventListener("keydown", n);
|
|
3957
4020
|
try {
|
|
3958
4021
|
r?.focus?.();
|
|
@@ -3960,7 +4023,7 @@ function Ol(e, t = {}) {
|
|
|
3960
4023
|
}
|
|
3961
4024
|
};
|
|
3962
4025
|
}
|
|
3963
|
-
var
|
|
4026
|
+
var Dl = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech__error-message svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Nl = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech__loading-message svelte-xk676z"><span class="svelte-xk676z">Initializing...</span></div>'), jl = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech__selection-info svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Bl = /* @__PURE__ */ _e('<p class="svelte-xk676z">Select text on the page to read it aloud.</p>'), Fl = /* @__PURE__ */ _e('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Resume</span>', 1), Ul = /* @__PURE__ */ _e('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Pause</span>', 1), Wl = /* @__PURE__ */ _e('<span class="pie-tool-text-to-speech__pulse svelte-xk676z"></span>'), Vl = /* @__PURE__ */ _e('<div><div class="pie-tool-text-to-speech__status-icon svelte-xk676z"><!></div> <span class="svelte-xk676z"> </span></div>'), Hl = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech__instructions svelte-xk676z"><!></div> <div class="pie-tool-text-to-speech__control-group svelte-xk676z"><label for="tts-speed" class="svelte-xk676z"><span class="svelte-xk676z">Speed:</span> <strong class="svelte-xk676z"> </strong></label> <input id="tts-speed" type="range" min="0.5" max="2.0" step="0.25" class="svelte-xk676z"/></div> <div class="pie-tool-text-to-speech__playback-controls svelte-xk676z"><button class="pie-tool-text-to-speech__button-primary svelte-xk676z" aria-label="Play" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Play</span></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" type="button"><!></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" aria-label="Stop" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Stop</span></button></div> <!>', 1), Gl = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech svelte-xk676z" role="dialog" aria-label="Text-to-Speech Tool" tabindex="-1"><div class="pie-tool-text-to-speech__header svelte-xk676z"><div class="pie-tool-text-to-speech__header-left svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.858 18.142a3 3 0 104.243-4.242L12 12.142 7.757 7.899a3 3 0 000 4.242z" class="svelte-xk676z"></path></svg> <span class="pie-tool-text-to-speech__title svelte-xk676z">Text-to-Speech</span></div> <button class="pie-tool-text-to-speech__close-button svelte-xk676z" aria-label="Close" type="button">×</button></div> <div class="pie-tool-text-to-speech__content svelte-xk676z"><!></div></div>'), ql = {
|
|
3964
4027
|
hash: "svelte-xk676z",
|
|
3965
4028
|
code: `.pie-tool-text-to-speech.svelte-xk676z {position:fixed;width:300px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);cursor:move;user-select:none;font-family:system-ui, -apple-system, sans-serif;}.pie-tool-text-to-speech__header.svelte-xk676z {display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--pie-primary-dark, #283593);color:var(--pie-white, #fff);border-radius:8px 8px 0 0;cursor:move;}.pie-tool-text-to-speech__header-left.svelte-xk676z {display:flex;align-items:center;gap:8px;}.pie-tool-text-to-speech__title.svelte-xk676z {font-weight:600;font-size:14px;}.pie-tool-text-to-speech__close-button.svelte-xk676z {background:rgb(255 255 255 / 0.2);border:none;color:var(--pie-white, #fff);width:24px;height:24px;border-radius:4px;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s;}.pie-tool-text-to-speech__close-button.svelte-xk676z:hover {background:rgb(255 255 255 / 0.3);}.pie-tool-text-to-speech__content.svelte-xk676z {padding:16px;}.pie-tool-text-to-speech__error-message.svelte-xk676z,
|
|
3966
4029
|
.pie-tool-text-to-speech__loading-message.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:12px;border-radius:6px;font-size:13px;}.pie-tool-text-to-speech__error-message.svelte-xk676z {background:color-mix(in srgb, var(--pie-incorrect, #c33) 12%, transparent);color:var(--pie-incorrect-icon, #c33);border:1px solid color-mix(in srgb, var(--pie-incorrect, #c33) 30%, transparent);}.pie-tool-text-to-speech__loading-message.svelte-xk676z {background:var(--pie-secondary-background, #f0f4f8);color:var(--pie-text, #4a5568);justify-content:center;}.pie-tool-text-to-speech__instructions.svelte-xk676z {margin-bottom:16px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__instructions.svelte-xk676z p:where(.svelte-xk676z) {margin:0;line-height:1.5;}.pie-tool-text-to-speech__selection-info.svelte-xk676z {display:flex;align-items:center;gap:6px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #10b981) 12%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #10b981) 35%, transparent);border-radius:6px;color:var(--pie-correct-icon, #234e52);font-size:12px;}.pie-tool-text-to-speech__selection-info.svelte-xk676z svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__control-group.svelte-xk676z {margin-bottom:16px;}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) strong:where(.svelte-xk676z) {color:var(--pie-primary, #667eea);font-weight:600;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z) {width:100%;height:6px;border-radius:3px;background:var(--pie-secondary-background, #e2e8f0);outline:none;-webkit-appearance:none;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb {-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--pie-primary, #667eea);cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb:hover {background:var(--pie-primary-dark, #764ba2);transform:scale(1.1);}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z {display:flex;gap:8px;margin-bottom:12px;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) {flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__button-primary.svelte-xk676z {background:var(--pie-primary, #667eea);color:var(--pie-white, #fff);}.pie-tool-text-to-speech__button-primary.svelte-xk676z:hover:not(:disabled) {transform:translateY(-1px);box-shadow:0 4px 6px color-mix(in srgb, var(--pie-primary, #667eea) 35%, transparent);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z {background:var(--pie-button-bg, #f7fafc);color:var(--pie-button-color, #4a5568);border:1px solid var(--pie-button-border, #e2e8f0);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z:hover:not(:disabled) {background:var(--pie-button-hover-bg, #edf2f7);}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;transform:none !important;}.pie-tool-text-to-speech__status-indicator.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #4caf50) 10%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #4caf50) 30%, transparent);border-radius:6px;font-size:12px;color:var(--pie-correct-icon, #166534);
|
|
@@ -3997,107 +4060,107 @@ var Ll = /* @__PURE__ */ _e('<div class="pie-tool-text-to-speech__error-message
|
|
|
3997
4060
|
animation: none !important;transition:none !important;}
|
|
3998
4061
|
}`
|
|
3999
4062
|
};
|
|
4000
|
-
function
|
|
4001
|
-
|
|
4002
|
-
let r =
|
|
4003
|
-
const
|
|
4004
|
-
let
|
|
4005
|
-
x:
|
|
4063
|
+
function Yl(e, t) {
|
|
4064
|
+
oi(t, !0), ya(e, ql);
|
|
4065
|
+
let r = Vt(t, "visible", 7, !1), n = Vt(t, "toolId", 7, "textToSpeech"), i = Vt(t, "coordinator", 7), o = Vt(t, "ttsService", 7);
|
|
4066
|
+
const a = typeof window < "u";
|
|
4067
|
+
let s = /* @__PURE__ */ O(void 0), c = /* @__PURE__ */ O(void 0), d = /* @__PURE__ */ O(!1), f = /* @__PURE__ */ O(Oe({
|
|
4068
|
+
x: a ? window.innerWidth - 320 : 400,
|
|
4006
4069
|
y: 100
|
|
4007
|
-
})),
|
|
4070
|
+
})), v = /* @__PURE__ */ O(Oe({
|
|
4008
4071
|
x: 0,
|
|
4009
4072
|
y: 0
|
|
4010
|
-
})), u = /* @__PURE__ */
|
|
4073
|
+
})), u = /* @__PURE__ */ O(!1), p = /* @__PURE__ */ O(!1), h = /* @__PURE__ */ O(!1), m = /* @__PURE__ */ O(""), b = /* @__PURE__ */ O(1), $ = /* @__PURE__ */ O(!1), H = /* @__PURE__ */ O(null), P = /* @__PURE__ */ O(!1), D = null;
|
|
4011
4074
|
Gt(() => {
|
|
4012
|
-
i() && n() && !
|
|
4013
|
-
}),
|
|
4014
|
-
if (
|
|
4075
|
+
i() && n() && !_(P) && (i().registerTool(n(), "Text-to-Speech", void 0, jr.MODAL), x(P, !0));
|
|
4076
|
+
}), ma(async () => {
|
|
4077
|
+
if (a) {
|
|
4015
4078
|
try {
|
|
4016
|
-
const w = new
|
|
4079
|
+
const w = new no();
|
|
4017
4080
|
await o().initialize(w), x(u, !0);
|
|
4018
4081
|
} catch (w) {
|
|
4019
4082
|
console.error("[TTSTool] Failed to initialize TTS:", w), x(H, w instanceof Error ? w.message : "Failed to initialize TTS", !0);
|
|
4020
4083
|
}
|
|
4021
|
-
return document.addEventListener("selectionchange",
|
|
4022
|
-
|
|
4084
|
+
return document.addEventListener("selectionchange", Ee), () => {
|
|
4085
|
+
a && (document.removeEventListener("selectionchange", Ee), o().stop()), D?.(), D = null, i() && n() && i().unregisterTool(n());
|
|
4023
4086
|
};
|
|
4024
4087
|
}
|
|
4025
4088
|
}), Gt(() => {
|
|
4026
|
-
i() &&
|
|
4089
|
+
i() && _(s) && n() && i().updateToolElement(n(), _(s));
|
|
4027
4090
|
}), Gt(() => {
|
|
4028
|
-
if (!r() || !
|
|
4091
|
+
if (!r() || !_(s)) {
|
|
4029
4092
|
D?.(), D = null;
|
|
4030
4093
|
return;
|
|
4031
4094
|
}
|
|
4032
|
-
return D?.(), D =
|
|
4033
|
-
initialFocus:
|
|
4034
|
-
onEscape:
|
|
4095
|
+
return D?.(), D = Cl(_(s), {
|
|
4096
|
+
initialFocus: _(c) || null,
|
|
4097
|
+
onEscape: sn
|
|
4035
4098
|
}), () => {
|
|
4036
4099
|
D?.(), D = null;
|
|
4037
4100
|
};
|
|
4038
4101
|
});
|
|
4039
|
-
function
|
|
4102
|
+
function Ee() {
|
|
4040
4103
|
const w = window.getSelection();
|
|
4041
4104
|
w && w.toString().trim().length > 0 ? (x(m, w.toString().trim(), !0), x($, !0)) : x($, !1);
|
|
4042
4105
|
}
|
|
4043
4106
|
async function _t() {
|
|
4044
|
-
if (!(!
|
|
4107
|
+
if (!(!_(u) || !_($) || !_(m)))
|
|
4045
4108
|
try {
|
|
4046
4109
|
const w = window.getSelection();
|
|
4047
4110
|
if (!w || w.rangeCount === 0) return;
|
|
4048
4111
|
const K = w.getRangeAt(0).commonAncestorContainer.parentElement;
|
|
4049
4112
|
if (!K) return;
|
|
4050
|
-
x(
|
|
4113
|
+
x(p, !0), x(h, !1), o().setRootElement(K);
|
|
4051
4114
|
const gt = K.closest("[data-catalog-id]")?.getAttribute("data-catalog-id") || void 0;
|
|
4052
|
-
await o().speak(
|
|
4115
|
+
await o().speak(_(m), {
|
|
4053
4116
|
catalogId: gt,
|
|
4054
|
-
rate:
|
|
4117
|
+
rate: _(b),
|
|
4055
4118
|
highlightWords: !0
|
|
4056
4119
|
}, {
|
|
4057
4120
|
onEnd: () => {
|
|
4058
|
-
x(
|
|
4121
|
+
x(p, !1), x(h, !1);
|
|
4059
4122
|
},
|
|
4060
4123
|
onError: (Ct) => {
|
|
4061
|
-
console.error("[TTSTool] TTS error:", Ct), x(
|
|
4124
|
+
console.error("[TTSTool] TTS error:", Ct), x(p, !1), x(h, !1);
|
|
4062
4125
|
}
|
|
4063
4126
|
});
|
|
4064
4127
|
} catch (w) {
|
|
4065
|
-
console.error("[TTSTool] Failed to speak:", w), x(
|
|
4128
|
+
console.error("[TTSTool] Failed to speak:", w), x(p, !1), x(h, !1);
|
|
4066
4129
|
}
|
|
4067
4130
|
}
|
|
4068
|
-
function
|
|
4069
|
-
|
|
4131
|
+
function mo() {
|
|
4132
|
+
_(p) && (_(h) ? (o().resume(), x(h, !1)) : (o().pause(), x(h, !0)));
|
|
4070
4133
|
}
|
|
4071
|
-
function
|
|
4072
|
-
o().stop(), x(
|
|
4134
|
+
function bo() {
|
|
4135
|
+
o().stop(), x(p, !1), x(h, !1);
|
|
4073
4136
|
}
|
|
4074
|
-
function
|
|
4137
|
+
function yo(w) {
|
|
4075
4138
|
const K = w.target;
|
|
4076
4139
|
x(b, parseFloat(K.value), !0);
|
|
4077
4140
|
}
|
|
4078
|
-
function
|
|
4079
|
-
w.target.closest("button, input, select") ||
|
|
4141
|
+
function wo(w) {
|
|
4142
|
+
w.target.closest("button, input, select") || ko(w);
|
|
4080
4143
|
}
|
|
4081
|
-
function
|
|
4082
|
-
|
|
4083
|
-
x: w.clientX -
|
|
4084
|
-
y: w.clientY -
|
|
4085
|
-
}, !0), i()?.bringToFront(
|
|
4144
|
+
function ko(w) {
|
|
4145
|
+
_(s) && (_(s).setPointerCapture(w.pointerId), x(d, !0), x(v, {
|
|
4146
|
+
x: w.clientX - _(f).x,
|
|
4147
|
+
y: w.clientY - _(f).y
|
|
4148
|
+
}, !0), i()?.bringToFront(_(s)), _(s).addEventListener("pointermove", nn), _(s).addEventListener("pointerup", on), w.preventDefault());
|
|
4086
4149
|
}
|
|
4087
|
-
function
|
|
4088
|
-
|
|
4089
|
-
x: w.clientX - v
|
|
4090
|
-
y: w.clientY - v
|
|
4150
|
+
function nn(w) {
|
|
4151
|
+
_(d) && (x(f, {
|
|
4152
|
+
x: w.clientX - _(v).x,
|
|
4153
|
+
y: w.clientY - _(v).y
|
|
4091
4154
|
}, !0), w.preventDefault());
|
|
4092
4155
|
}
|
|
4093
|
-
function
|
|
4094
|
-
|
|
4156
|
+
function on(w) {
|
|
4157
|
+
_(d) && _(s) && (_(s).releasePointerCapture(w.pointerId), x(d, !1), _(s).removeEventListener("pointermove", nn), _(s).removeEventListener("pointerup", on));
|
|
4095
4158
|
}
|
|
4096
|
-
function
|
|
4159
|
+
function sn() {
|
|
4097
4160
|
i()?.hideTool(n());
|
|
4098
4161
|
}
|
|
4099
|
-
const
|
|
4100
|
-
var
|
|
4162
|
+
const To = /* @__PURE__ */ zs(() => _(b) === 0.5 ? "Slow" : _(b) === 0.75 ? "Slower" : _(b) === 1 ? "Normal" : _(b) === 1.25 ? "Faster" : _(b) === 1.5 ? "Fast" : _(b) === 2 ? "Very Fast" : `${_(b)}x`);
|
|
4163
|
+
var So = {
|
|
4101
4164
|
get visible() {
|
|
4102
4165
|
return r();
|
|
4103
4166
|
},
|
|
@@ -4122,80 +4185,80 @@ function Vl(e, t) {
|
|
|
4122
4185
|
set ttsService(w) {
|
|
4123
4186
|
o(w), Tt();
|
|
4124
4187
|
}
|
|
4125
|
-
},
|
|
4126
|
-
var K =
|
|
4127
|
-
|
|
4128
|
-
var
|
|
4129
|
-
var
|
|
4130
|
-
N(Xe), N(
|
|
4131
|
-
},
|
|
4132
|
-
var
|
|
4133
|
-
q(G,
|
|
4134
|
-
},
|
|
4135
|
-
var
|
|
4136
|
-
var B =
|
|
4137
|
-
N(mt), N(B), yt(() => Ut(bt, `${
|
|
4138
|
-
},
|
|
4139
|
-
var B =
|
|
4188
|
+
}, an = ua(), xo = xn(an), Eo = (w) => {
|
|
4189
|
+
var K = Gl(), gt = j(K), Ct = X(j(gt), 2);
|
|
4190
|
+
Nn(Ct, (G) => x(c, G), () => _(c)), N(gt);
|
|
4191
|
+
var ln = X(gt, 2), Io = j(ln), Ao = (G) => {
|
|
4192
|
+
var Ie = Dl(), Xe = X(j(Ie), 2), dr = j(Xe, !0);
|
|
4193
|
+
N(Xe), N(Ie), yt(() => Ut(dr, _(H))), q(G, Ie);
|
|
4194
|
+
}, $o = (G) => {
|
|
4195
|
+
var Ie = Nl();
|
|
4196
|
+
q(G, Ie);
|
|
4197
|
+
}, Lo = (G) => {
|
|
4198
|
+
var Ie = Hl(), Xe = xn(Ie), dr = j(Xe), Po = (z) => {
|
|
4199
|
+
var B = jl(), mt = X(j(B), 2), bt = j(mt);
|
|
4200
|
+
N(mt), N(B), yt(() => Ut(bt, `${_(m).length ?? ""} characters selected`)), q(z, B);
|
|
4201
|
+
}, Oo = (z) => {
|
|
4202
|
+
var B = Bl();
|
|
4140
4203
|
q(z, B);
|
|
4141
4204
|
};
|
|
4142
|
-
et(
|
|
4143
|
-
|
|
4205
|
+
et(dr, (z) => {
|
|
4206
|
+
_($) ? z(Po) : z(Oo, -1);
|
|
4144
4207
|
}), N(Xe);
|
|
4145
|
-
var
|
|
4146
|
-
N(
|
|
4147
|
-
var Dt = X(
|
|
4148
|
-
|
|
4149
|
-
var
|
|
4150
|
-
var B =
|
|
4151
|
-
|
|
4152
|
-
},
|
|
4153
|
-
var B =
|
|
4154
|
-
|
|
4208
|
+
var pr = X(Xe, 2), hr = j(pr), cn = X(j(hr), 2), Mo = j(cn, !0);
|
|
4209
|
+
N(cn), N(hr);
|
|
4210
|
+
var Dt = X(hr, 2);
|
|
4211
|
+
$a(Dt), N(pr);
|
|
4212
|
+
var vr = X(pr, 2), _r = j(vr), Je = X(_r, 2), Ro = j(Je), zo = (z) => {
|
|
4213
|
+
var B = Fl();
|
|
4214
|
+
Ar(2), q(z, B);
|
|
4215
|
+
}, Co = (z) => {
|
|
4216
|
+
var B = Ul();
|
|
4217
|
+
Ar(2), q(z, B);
|
|
4155
4218
|
};
|
|
4156
|
-
et(
|
|
4157
|
-
|
|
4219
|
+
et(Ro, (z) => {
|
|
4220
|
+
_(h) ? z(zo) : z(Co, -1);
|
|
4158
4221
|
}), N(Je);
|
|
4159
|
-
var
|
|
4160
|
-
N(
|
|
4161
|
-
var
|
|
4162
|
-
var B =
|
|
4222
|
+
var un = X(Je, 2);
|
|
4223
|
+
N(vr);
|
|
4224
|
+
var Do = X(vr, 2), No = (z) => {
|
|
4225
|
+
var B = Vl();
|
|
4163
4226
|
let mt;
|
|
4164
|
-
var bt = j(B),
|
|
4165
|
-
var
|
|
4166
|
-
q(Qe,
|
|
4167
|
-
},
|
|
4168
|
-
var
|
|
4169
|
-
q(Qe,
|
|
4227
|
+
var bt = j(B), jo = j(bt), Bo = (Qe) => {
|
|
4228
|
+
var gr = ca("⏸");
|
|
4229
|
+
q(Qe, gr);
|
|
4230
|
+
}, Fo = (Qe) => {
|
|
4231
|
+
var gr = Wl();
|
|
4232
|
+
q(Qe, gr);
|
|
4170
4233
|
};
|
|
4171
|
-
et(
|
|
4172
|
-
|
|
4234
|
+
et(jo, (Qe) => {
|
|
4235
|
+
_(h) ? Qe(Bo) : Qe(Fo, -1);
|
|
4173
4236
|
}), N(bt);
|
|
4174
|
-
var
|
|
4175
|
-
N(
|
|
4176
|
-
mt =
|
|
4237
|
+
var fn = X(bt, 2), Uo = j(fn, !0);
|
|
4238
|
+
N(fn), N(B), yt(() => {
|
|
4239
|
+
mt = Ta(B, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, mt, { "pie-tool-text-to-speech__status-indicator--paused": _(h) }), Ut(Uo, _(h) ? "Paused" : "Speaking...");
|
|
4177
4240
|
}), q(z, B);
|
|
4178
4241
|
};
|
|
4179
|
-
et(
|
|
4180
|
-
|
|
4242
|
+
et(Do, (z) => {
|
|
4243
|
+
_(p) && z(No);
|
|
4181
4244
|
}), yt(() => {
|
|
4182
|
-
Ut(
|
|
4183
|
-
}), Ze("input", Dt,
|
|
4245
|
+
Ut(Mo, _(To)), La(Dt, _(b)), Dt.disabled = _(p), _r.disabled = !_($) || _(p), Je.disabled = !_(p), Dr(Je, "aria-label", _(h) ? "Resume" : "Pause"), un.disabled = !_(p);
|
|
4246
|
+
}), Ze("input", Dt, yo), Ze("click", _r, _t), Ze("click", Je, mo), Ze("click", un, bo), q(G, Ie);
|
|
4184
4247
|
};
|
|
4185
|
-
et(
|
|
4186
|
-
|
|
4187
|
-
}), N(
|
|
4248
|
+
et(Io, (G) => {
|
|
4249
|
+
_(H) ? G(Ao) : _(u) ? G(Lo, -1) : G($o, 1);
|
|
4250
|
+
}), N(ln), N(K), Nn(K, (G) => x(s, G), () => _(s)), yt(() => Sa(K, `left: ${_(f).x ?? ""}px; top: ${_(f).y ?? ""}px;`)), Ze("pointerdown", K, wo), Ze("click", Ct, sn), q(w, K);
|
|
4188
4251
|
};
|
|
4189
|
-
return et(
|
|
4190
|
-
r() &&
|
|
4191
|
-
}), q(e,
|
|
4252
|
+
return et(xo, (w) => {
|
|
4253
|
+
r() && a && w(Eo);
|
|
4254
|
+
}), q(e, an), si(So);
|
|
4192
4255
|
}
|
|
4193
|
-
|
|
4256
|
+
oa([
|
|
4194
4257
|
"pointerdown",
|
|
4195
4258
|
"click",
|
|
4196
4259
|
"input"
|
|
4197
4260
|
]);
|
|
4198
|
-
customElements.define("pie-tool-text-to-speech",
|
|
4261
|
+
customElements.define("pie-tool-text-to-speech", Ca(Yl, {
|
|
4199
4262
|
visible: {
|
|
4200
4263
|
attribute: "visible",
|
|
4201
4264
|
type: "Boolean"
|
|
@@ -4208,5 +4271,5 @@ customElements.define("pie-tool-text-to-speech", La(Vl, {
|
|
|
4208
4271
|
ttsService: {}
|
|
4209
4272
|
}, [], [], { mode: "open" }));
|
|
4210
4273
|
export {
|
|
4211
|
-
|
|
4274
|
+
Yl as default
|
|
4212
4275
|
};
|