@pie-players/pie-tool-text-to-speech 0.3.54 → 0.3.56
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 +324 -309
- package/package.json +3 -3
|
@@ -19,9 +19,9 @@ if (typeof window < "u") {
|
|
|
19
19
|
((Xo = (Ko = window).__svelte ?? (Ko.__svelte = {})).v ?? (Xo.v = /* @__PURE__ */ new Set())).add("5");
|
|
20
20
|
}
|
|
21
21
|
var Cn = {}, Q = /* @__PURE__ */ Symbol("uninitialized");
|
|
22
|
-
var Sc = Array.isArray, wc = Array.prototype.indexOf, zr = Array.prototype.includes, kc = Array.from, Dr = Object.keys,
|
|
22
|
+
var Sc = Array.isArray, wc = Array.prototype.indexOf, zr = Array.prototype.includes, kc = Array.from, Dr = Object.keys, Wr = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, Ec = Object.getOwnPropertyDescriptors, xc = Object.prototype, Ac = Array.prototype, ia = Object.getPrototypeOf, Jo = Object.isExtensible, Cc = () => {
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function Oc(e) {
|
|
25
25
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
26
26
|
}
|
|
27
27
|
function oa() {
|
|
@@ -34,7 +34,7 @@ function oa() {
|
|
|
34
34
|
reject: t
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
var fg = 1 << 24,
|
|
37
|
+
var fg = 1 << 24, Oe = 1024, Le = 2048, on = 4096, go = 8192, Mc = 16384, mo = 32768, Zo = 1 << 25, vo = 65536, hg = 1 << 17, pg = 1 << 18, Nn = 1 << 19, Ic = 1 << 20, cr = 65536, Qo = 1 << 21, Rc = 1 << 22, Hr = 1 << 23, rr = /* @__PURE__ */ Symbol("$state"), sa = /* @__PURE__ */ Symbol("legacy props"), Lc = /* @__PURE__ */ Symbol(""), Nc = /* @__PURE__ */ Symbol("proxy path"), Pi = /* @__PURE__ */ Symbol("attributes"), $i = /* @__PURE__ */ Symbol("class"), zi = /* @__PURE__ */ Symbol("style"), Cr = /* @__PURE__ */ Symbol("text"), aa = /* @__PURE__ */ Symbol("form reset");
|
|
38
38
|
var ei = new class extends Error {
|
|
39
39
|
constructor(...t) {
|
|
40
40
|
super(...t), v(this, "name", "StaleReactionError"), v(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
@@ -52,10 +52,10 @@ function zc(e) {
|
|
|
52
52
|
function Dc() {
|
|
53
53
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Wc(e) {
|
|
56
56
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Hc() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
60
60
|
}
|
|
61
61
|
function Fc() {
|
|
@@ -90,13 +90,13 @@ function En(e) {
|
|
|
90
90
|
D = e;
|
|
91
91
|
}
|
|
92
92
|
var $;
|
|
93
|
-
function
|
|
93
|
+
function Me(e) {
|
|
94
94
|
if (e === null)
|
|
95
95
|
throw ti(), Cn;
|
|
96
96
|
return $ = e;
|
|
97
97
|
}
|
|
98
98
|
function _o() {
|
|
99
|
-
return
|
|
99
|
+
return Me(/* @__PURE__ */ gt($));
|
|
100
100
|
}
|
|
101
101
|
function oe(e) {
|
|
102
102
|
if (D) {
|
|
@@ -146,7 +146,7 @@ function Jc(e, t) {
|
|
|
146
146
|
return e?.[Nc]?.(t), e;
|
|
147
147
|
}
|
|
148
148
|
var B = null;
|
|
149
|
-
function
|
|
149
|
+
function On(e) {
|
|
150
150
|
B = e;
|
|
151
151
|
}
|
|
152
152
|
function fa(e, t = !1, n) {
|
|
@@ -179,7 +179,7 @@ function dr() {
|
|
|
179
179
|
var Bt = [];
|
|
180
180
|
function pa() {
|
|
181
181
|
var e = Bt;
|
|
182
|
-
Bt = [],
|
|
182
|
+
Bt = [], Oc(e);
|
|
183
183
|
}
|
|
184
184
|
function en(e) {
|
|
185
185
|
if (Bt.length === 0 && !ir) {
|
|
@@ -196,7 +196,7 @@ function Zc() {
|
|
|
196
196
|
function ga(e) {
|
|
197
197
|
var t = C;
|
|
198
198
|
if (t === null)
|
|
199
|
-
return L.f |=
|
|
199
|
+
return L.f |= Hr, e;
|
|
200
200
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
201
201
|
throw e;
|
|
202
202
|
Ct(e, t);
|
|
@@ -216,12 +216,12 @@ function Ct(e, t) {
|
|
|
216
216
|
}
|
|
217
217
|
throw e;
|
|
218
218
|
}
|
|
219
|
-
var Qc = ~(Le | on |
|
|
219
|
+
var Qc = ~(Le | on | Oe);
|
|
220
220
|
function V(e, t) {
|
|
221
221
|
e.f = e.f & Qc | t;
|
|
222
222
|
}
|
|
223
223
|
function bo(e) {
|
|
224
|
-
(e.f & 512) !== 0 || e.deps === null ? V(e,
|
|
224
|
+
(e.f & 512) !== 0 || e.deps === null ? V(e, Oe) : V(e, on);
|
|
225
225
|
}
|
|
226
226
|
function ma(e) {
|
|
227
227
|
if (e !== null)
|
|
@@ -229,7 +229,7 @@ function ma(e) {
|
|
|
229
229
|
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= cr, ma(t.deps));
|
|
230
230
|
}
|
|
231
231
|
function va(e, t, n) {
|
|
232
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), ma(e.deps), V(e,
|
|
232
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), ma(e.deps), V(e, Oe);
|
|
233
233
|
}
|
|
234
234
|
var eu = !1, yr = !1;
|
|
235
235
|
function tu(e) {
|
|
@@ -249,26 +249,26 @@ function yo(e, t) {
|
|
|
249
249
|
function A(e, t, n) {
|
|
250
250
|
_a(e, t), t.set(e, n);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function M(e, t, n) {
|
|
253
253
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
254
254
|
throw new TypeError("Private element is not present on this object");
|
|
255
255
|
}
|
|
256
256
|
function E(e, t, n) {
|
|
257
|
-
return e.set(
|
|
257
|
+
return e.set(M(e, t), n), n;
|
|
258
258
|
}
|
|
259
259
|
function h(e, t) {
|
|
260
|
-
return e.get(
|
|
260
|
+
return e.get(M(e, t));
|
|
261
261
|
}
|
|
262
|
-
var ba, Fr = null, Tn = null, R = null,
|
|
263
|
-
var nu = 1, Ur = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(),
|
|
262
|
+
var ba, Fr = null, Tn = null, R = null, Wi = null, de = null, Hi = null, ir = !1, vi = !1, Mn = null, Br = null, ya = 0;
|
|
263
|
+
var nu = 1, Ur = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), sn = class Ta {
|
|
264
264
|
constructor() {
|
|
265
|
-
yo(this, q), v(this, "id", nu++), A(this, Ur, !1), v(this, "linked", !0), A(this, qt, null), A(this, Ut, null), v(this, "async_deriveds", /* @__PURE__ */ new Map()), v(this, "current", /* @__PURE__ */ new Map()), v(this, "previous", /* @__PURE__ */ new Map()), A(this, jr, /* @__PURE__ */ new Set()), A(this, Tr, /* @__PURE__ */ new Set()), A(this, Sn, 0), A(this, Ft, /* @__PURE__ */ new Map()), A(this, Jn, null), A(this, Ae, []), A(this, Fi, []), A(this, tn, /* @__PURE__ */ new Set()), A(this, ct, /* @__PURE__ */ new Set()), A(this, At, /* @__PURE__ */ new Map()), A(this,
|
|
265
|
+
yo(this, q), v(this, "id", nu++), A(this, Ur, !1), v(this, "linked", !0), A(this, qt, null), A(this, Ut, null), v(this, "async_deriveds", /* @__PURE__ */ new Map()), v(this, "current", /* @__PURE__ */ new Map()), v(this, "previous", /* @__PURE__ */ new Map()), A(this, jr, /* @__PURE__ */ new Set()), A(this, Tr, /* @__PURE__ */ new Set()), A(this, Sn, 0), A(this, Ft, /* @__PURE__ */ new Map()), A(this, Jn, null), A(this, Ae, []), A(this, Fi, []), A(this, tn, /* @__PURE__ */ new Set()), A(this, ct, /* @__PURE__ */ new Set()), A(this, At, /* @__PURE__ */ new Map()), A(this, Or, /* @__PURE__ */ new Set()), v(this, "is_fork", !1), A(this, Zn, !1), Tn === null ? Fr = Tn = this : (E(Ut, Tn, this), E(qt, this, Tn)), Tn = this;
|
|
266
266
|
}
|
|
267
267
|
skip_effect(t) {
|
|
268
268
|
h(At, this).has(t) || h(At, this).set(t, {
|
|
269
269
|
d: [],
|
|
270
270
|
m: []
|
|
271
|
-
}), h(
|
|
271
|
+
}), h(Or, this).delete(t);
|
|
272
272
|
}
|
|
273
273
|
unskip_effect(t, n = (r) => this.schedule(r)) {
|
|
274
274
|
var r = h(At, this).get(t);
|
|
@@ -279,7 +279,7 @@ var nu = 1, Ur = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
279
279
|
for (i of r.m)
|
|
280
280
|
V(i, on), n(i);
|
|
281
281
|
}
|
|
282
|
-
h(
|
|
282
|
+
h(Or, this).add(t);
|
|
283
283
|
}
|
|
284
284
|
capture(t, n, r = !1) {
|
|
285
285
|
t.v !== Q && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), de?.set(t, n)), this.is_fork || (t.v = n);
|
|
@@ -292,14 +292,14 @@ var nu = 1, Ur = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
292
292
|
}
|
|
293
293
|
flush() {
|
|
294
294
|
try {
|
|
295
|
-
vi = !0, R = this,
|
|
295
|
+
vi = !0, R = this, M(q, this, Gr).call(this);
|
|
296
296
|
} finally {
|
|
297
|
-
ya = 0,
|
|
297
|
+
ya = 0, Hi = null, Mn = null, Br = null, vi = !1, R = null, de = null, Kt.clear();
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
discard() {
|
|
301
301
|
for (const t of h(Tr, this)) t(this);
|
|
302
|
-
h(Tr, this).clear(),
|
|
302
|
+
h(Tr, this).clear(), M(q, this, Vr).call(this), h(Jn, this)?.resolve();
|
|
303
303
|
}
|
|
304
304
|
register_created_effect(t) {
|
|
305
305
|
h(Fi, this).push(t);
|
|
@@ -364,18 +364,18 @@ var nu = 1, Ur = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
schedule(t) {
|
|
367
|
-
if (
|
|
367
|
+
if (Hi = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
368
368
|
t.b.defer_effect(t);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
371
|
for (var n = t; n.parent !== null; ) {
|
|
372
372
|
n = n.parent;
|
|
373
373
|
var r = n.f;
|
|
374
|
-
if (
|
|
374
|
+
if (Mn !== null && n === C && (ut || (L === null || (L.f & 2) === 0) && !eu))
|
|
375
375
|
return;
|
|
376
376
|
if ((r & 96) !== 0) {
|
|
377
377
|
if ((r & 1024) === 0) return;
|
|
378
|
-
n.f ^=
|
|
378
|
+
n.f ^= Oe;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
h(Ae, this).push(n);
|
|
@@ -397,50 +397,50 @@ function ts() {
|
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
399
|
function Gr() {
|
|
400
|
-
E(Ur, this, !0), ya++ > 1e3 && (
|
|
400
|
+
E(Ur, this, !0), ya++ > 1e3 && (M(q, this, Vr).call(this), su());
|
|
401
401
|
for (const a of h(tn, this))
|
|
402
402
|
h(ct, this).delete(a), V(a, Le), this.schedule(a);
|
|
403
403
|
for (const a of h(ct, this))
|
|
404
404
|
V(a, on), this.schedule(a);
|
|
405
405
|
const e = h(Ae, this);
|
|
406
406
|
E(Ae, this, []), this.apply();
|
|
407
|
-
var t =
|
|
407
|
+
var t = Mn = [], n = [], r = Br = [];
|
|
408
408
|
for (const a of e) try {
|
|
409
|
-
|
|
409
|
+
M(q, this, Sa).call(this, a, t, n);
|
|
410
410
|
} catch (l) {
|
|
411
|
-
throw Ea(a),
|
|
411
|
+
throw Ea(a), M(q, this, ts).call(this) || this.discard(), l;
|
|
412
412
|
}
|
|
413
413
|
if (R = null, r.length > 0) {
|
|
414
414
|
var i = ba.ensure();
|
|
415
415
|
for (const a of r) i.schedule(a);
|
|
416
416
|
}
|
|
417
|
-
if (
|
|
418
|
-
|
|
417
|
+
if (Mn = null, Br = null, M(q, this, ts).call(this)) {
|
|
418
|
+
M(q, this, Qn).call(this, n), M(q, this, Qn).call(this, t);
|
|
419
419
|
for (const [a, l] of h(At, this)) ka(a, l);
|
|
420
|
-
r.length > 0 &&
|
|
420
|
+
r.length > 0 && M(q, R, Gr).call(R);
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
|
-
const o =
|
|
423
|
+
const o = M(q, this, ru).call(this);
|
|
424
424
|
if (o) {
|
|
425
|
-
|
|
425
|
+
M(q, this, Qn).call(this, n), M(q, this, Qn).call(this, t), M(q, o, iu).call(o, this);
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
428
|
h(tn, this).clear(), h(ct, this).clear();
|
|
429
429
|
for (const a of h(jr, this)) a(this);
|
|
430
|
-
h(jr, this).clear(),
|
|
430
|
+
h(jr, this).clear(), Wi = this, ns(n), ns(t), Wi = null, h(Jn, this)?.resolve();
|
|
431
431
|
var s = R;
|
|
432
|
-
if (h(Sn, this) === 0 && (h(Ae, this).length === 0 || s !== null) && (
|
|
432
|
+
if (h(Sn, this) === 0 && (h(Ae, this).length === 0 || s !== null) && (M(q, this, Vr).call(this), ut && (M(q, this, ou).call(this), R = s)), h(Ae, this).length > 0) if (s !== null) {
|
|
433
433
|
const a = s;
|
|
434
434
|
h(Ae, a).push(...h(Ae, this).filter((l) => !h(Ae, a).includes(l)));
|
|
435
435
|
} else s = this;
|
|
436
|
-
s !== null &&
|
|
436
|
+
s !== null && M(q, s, Gr).call(s);
|
|
437
437
|
}
|
|
438
438
|
function Sa(e, t, n) {
|
|
439
|
-
e.f ^=
|
|
439
|
+
e.f ^= Oe;
|
|
440
440
|
for (var r = e.first; r !== null; ) {
|
|
441
441
|
var i = r.f, o = (i & 96) !== 0;
|
|
442
442
|
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || h(At, this).has(r)) && r.fn !== null) {
|
|
443
|
-
o ? r.f ^=
|
|
443
|
+
o ? r.f ^= Oe : (i & 4) !== 0 ? t.push(r) : ut && (i & 16777224) !== 0 ? n.push(r) : pr(r) && ((i & 16) !== 0 && h(ct, this).add(r), Rn(r));
|
|
444
444
|
var s = r.first;
|
|
445
445
|
if (s !== null) {
|
|
446
446
|
r = s;
|
|
@@ -487,7 +487,7 @@ function iu(e) {
|
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
for (const n of this.current.keys()) t(n);
|
|
490
|
-
this.oncommit(() => e.discard()),
|
|
490
|
+
this.oncommit(() => e.discard()), M(q, e, Vr).call(e), R = this, M(q, this, Gr).call(this);
|
|
491
491
|
}
|
|
492
492
|
function Qn(e) {
|
|
493
493
|
for (var t = 0; t < e.length; t += 1) va(e[t], h(tn, this), h(ct, this));
|
|
@@ -512,8 +512,8 @@ function ou() {
|
|
|
512
512
|
if (r.length === 0)
|
|
513
513
|
e && c.discard();
|
|
514
514
|
else if (t.length > 0) {
|
|
515
|
-
if (e) for (const u of h(
|
|
516
|
-
(f.f & 4194320) !== 0 ? c.schedule(f) :
|
|
515
|
+
if (e) for (const u of h(Or, this)) c.unskip_effect(u, (f) => {
|
|
516
|
+
(f.f & 4194320) !== 0 ? c.schedule(f) : M(q, c, Qn).call(c, [f]);
|
|
517
517
|
});
|
|
518
518
|
c.activate();
|
|
519
519
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
@@ -527,7 +527,7 @@ function ou() {
|
|
|
527
527
|
for (const u of h(Fi, this)) (u.f & 155648) === 0 && To(u, a, o) && ((u.f & 4194320) !== 0 ? (V(u, Le), c.schedule(u)) : h(tn, c).add(u));
|
|
528
528
|
if (h(Ae, c).length > 0 && !h(Zn, c)) {
|
|
529
529
|
c.apply();
|
|
530
|
-
for (var l of h(Ae, c))
|
|
530
|
+
for (var l of h(Ae, c)) M(q, c, Sa).call(c, l, [], []);
|
|
531
531
|
E(Ae, c, []);
|
|
532
532
|
}
|
|
533
533
|
c.deactivate();
|
|
@@ -561,9 +561,9 @@ function su() {
|
|
|
561
561
|
var t;
|
|
562
562
|
}
|
|
563
563
|
try {
|
|
564
|
-
|
|
564
|
+
Hc();
|
|
565
565
|
} catch (n) {
|
|
566
|
-
Ct(n,
|
|
566
|
+
Ct(n, Hi);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
var qe = null;
|
|
@@ -613,13 +613,13 @@ function So(e) {
|
|
|
613
613
|
}
|
|
614
614
|
function ka(e, t) {
|
|
615
615
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
616
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), V(e,
|
|
616
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), V(e, Oe);
|
|
617
617
|
for (var n = e.first; n !== null; )
|
|
618
618
|
ka(n, t), n = n.next;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Ea(e) {
|
|
622
|
-
V(e,
|
|
622
|
+
V(e, Oe);
|
|
623
623
|
for (var t = e.first; t !== null; )
|
|
624
624
|
Ea(t), t = t.next;
|
|
625
625
|
}
|
|
@@ -637,24 +637,24 @@ var lu = vo | Nn;
|
|
|
637
637
|
function cu(e, t, n, r) {
|
|
638
638
|
new uu(e, t, n, r);
|
|
639
639
|
}
|
|
640
|
-
var
|
|
640
|
+
var He = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakSet(), uu = class {
|
|
641
641
|
constructor(e, t, n, r) {
|
|
642
|
-
yo(this, ae), v(this, "parent", void 0), v(this, "is_pending", !1), v(this, "transform_error", void 0), A(this,
|
|
643
|
-
E(
|
|
644
|
-
}))), E(
|
|
642
|
+
yo(this, ae), v(this, "parent", void 0), v(this, "is_pending", !1), v(this, "transform_error", void 0), A(this, He, void 0), A(this, Bi, D ? $ : null), A(this, Ye, void 0), A(this, sr, void 0), A(this, Ce, void 0), A(this, Xe, null), A(this, _e, null), A(this, De, null), A(this, Yt, null), A(this, wn, 0), A(this, Xt, 0), A(this, Sr, !1), A(this, Ui, /* @__PURE__ */ new Set()), A(this, ji, /* @__PURE__ */ new Set()), A(this, Wt, null), A(this, rs, au(() => (E(Wt, this, fr(h(wn, this))), () => {
|
|
643
|
+
E(Wt, this, null);
|
|
644
|
+
}))), E(He, this, e), E(Ye, this, t), E(sr, this, (i) => {
|
|
645
645
|
var o = C;
|
|
646
646
|
o.b = this, o.f |= 128, n(i);
|
|
647
|
-
}), this.parent = C.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), E(Ce, this,
|
|
647
|
+
}), this.parent = C.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), E(Ce, this, Ha(() => {
|
|
648
648
|
if (D) {
|
|
649
649
|
const i = h(Bi, this);
|
|
650
650
|
_o();
|
|
651
651
|
const o = i.data === "[!";
|
|
652
652
|
if (i.data.startsWith("[?")) {
|
|
653
653
|
const s = JSON.parse(i.data.slice(2));
|
|
654
|
-
|
|
655
|
-
} else o ?
|
|
656
|
-
} else
|
|
657
|
-
}, lu)), D && E(
|
|
654
|
+
M(ae, this, fu).call(this, s);
|
|
655
|
+
} else o ? M(ae, this, hu).call(this) : M(ae, this, du).call(this);
|
|
656
|
+
} else M(ae, this, xa).call(this);
|
|
657
|
+
}, lu)), D && E(He, this, $);
|
|
658
658
|
}
|
|
659
659
|
defer_effect(e) {
|
|
660
660
|
va(e, h(Ui, this), h(ji, this));
|
|
@@ -666,23 +666,23 @@ var We = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ye =
|
|
|
666
666
|
return !!h(Ye, this).pending;
|
|
667
667
|
}
|
|
668
668
|
update_pending_count(e, t) {
|
|
669
|
-
|
|
670
|
-
E(Sr, this, !1), h(
|
|
669
|
+
M(ae, this, Aa).call(this, e, t), E(wn, this, h(wn, this) + e), !(!h(Wt, this) || h(Sr, this)) && (E(Sr, this, !0), en(() => {
|
|
670
|
+
E(Sr, this, !1), h(Wt, this) && Xr(h(Wt, this), h(wn, this));
|
|
671
671
|
}));
|
|
672
672
|
}
|
|
673
673
|
get_effect_pending() {
|
|
674
|
-
return h(rs, this).call(this), y(h(
|
|
674
|
+
return h(rs, this).call(this), y(h(Wt, this));
|
|
675
675
|
}
|
|
676
676
|
error(e) {
|
|
677
677
|
if (!h(Ye, this).onerror && !h(Ye, this).failed) throw e;
|
|
678
678
|
R?.is_fork ? (h(Xe, this) && R.skip_effect(h(Xe, this)), h(_e, this) && R.skip_effect(h(_e, this)), h(De, this) && R.skip_effect(h(De, this)), R.oncommit(() => {
|
|
679
|
-
|
|
680
|
-
})) :
|
|
679
|
+
M(ae, this, is).call(this, e);
|
|
680
|
+
})) : M(ae, this, is).call(this, e);
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
function du() {
|
|
684
684
|
try {
|
|
685
|
-
E(Xe, this, dt(() => h(sr, this).call(this, h(
|
|
685
|
+
E(Xe, this, dt(() => h(sr, this).call(this, h(He, this))));
|
|
686
686
|
} catch (e) {
|
|
687
687
|
this.error(e);
|
|
688
688
|
}
|
|
@@ -690,29 +690,29 @@ function du() {
|
|
|
690
690
|
function fu(e) {
|
|
691
691
|
const t = h(Ye, this).failed;
|
|
692
692
|
t && E(De, this, dt(() => {
|
|
693
|
-
t(h(
|
|
693
|
+
t(h(He, this), () => e, () => () => {
|
|
694
694
|
});
|
|
695
695
|
}));
|
|
696
696
|
}
|
|
697
697
|
function hu() {
|
|
698
698
|
const e = h(Ye, this).pending;
|
|
699
|
-
e && (this.is_pending = !0, E(_e, this, dt(() => e(h(
|
|
699
|
+
e && (this.is_pending = !0, E(_e, this, dt(() => e(h(He, this)))), en(() => {
|
|
700
700
|
var t = E(Yt, this, document.createDocumentFragment()), n = Be();
|
|
701
|
-
t.append(n), E(Xe, this,
|
|
701
|
+
t.append(n), E(Xe, this, M(ae, this, Gi).call(this, () => dt(() => h(sr, this).call(this, n)))), h(Xt, this) === 0 && (h(He, this).before(t), E(Yt, this, null), hr(h(_e, this), () => {
|
|
702
702
|
E(_e, this, null);
|
|
703
|
-
}),
|
|
703
|
+
}), M(ae, this, wo).call(this, R));
|
|
704
704
|
}));
|
|
705
705
|
}
|
|
706
706
|
function xa() {
|
|
707
707
|
try {
|
|
708
708
|
if (this.is_pending = this.has_pending_snippet(), E(Xt, this, 0), E(wn, this, 0), E(Xe, this, dt(() => {
|
|
709
|
-
h(sr, this).call(this, h(
|
|
709
|
+
h(sr, this).call(this, h(He, this));
|
|
710
710
|
})), h(Xt, this) > 0) {
|
|
711
711
|
var e = E(Yt, this, document.createDocumentFragment());
|
|
712
712
|
Ga(h(Xe, this), e);
|
|
713
713
|
const t = h(Ye, this).pending;
|
|
714
|
-
E(_e, this, dt(() => t(h(
|
|
715
|
-
} else
|
|
714
|
+
E(_e, this, dt(() => t(h(He, this))));
|
|
715
|
+
} else M(ae, this, wo).call(this, R);
|
|
716
716
|
} catch (t) {
|
|
717
717
|
this.error(t);
|
|
718
718
|
}
|
|
@@ -722,29 +722,29 @@ function wo(e) {
|
|
|
722
722
|
}
|
|
723
723
|
function Gi(e) {
|
|
724
724
|
var t = C, n = L, r = B;
|
|
725
|
-
Ke(h(Ce, this)), Ie(h(Ce, this)),
|
|
725
|
+
Ke(h(Ce, this)), Ie(h(Ce, this)), On(h(Ce, this).ctx);
|
|
726
726
|
try {
|
|
727
727
|
return sn.ensure(), e();
|
|
728
728
|
} catch (i) {
|
|
729
729
|
return ga(i), null;
|
|
730
730
|
} finally {
|
|
731
|
-
Ke(t), Ie(n),
|
|
731
|
+
Ke(t), Ie(n), On(r);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
function Aa(e, t) {
|
|
735
735
|
if (!this.has_pending_snippet()) {
|
|
736
736
|
if (this.parent) {
|
|
737
737
|
var n;
|
|
738
|
-
|
|
738
|
+
M(ae, n = this.parent, Aa).call(n, e, t);
|
|
739
739
|
}
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
|
-
E(Xt, this, h(Xt, this) + e), h(Xt, this) === 0 && (
|
|
742
|
+
E(Xt, this, h(Xt, this) + e), h(Xt, this) === 0 && (M(ae, this, wo).call(this, t), h(_e, this) && hr(h(_e, this), () => {
|
|
743
743
|
E(_e, this, null);
|
|
744
|
-
}), h(Yt, this) && (h(
|
|
744
|
+
}), h(Yt, this) && (h(He, this).before(h(Yt, this)), E(Yt, this, null)));
|
|
745
745
|
}
|
|
746
746
|
function is(e) {
|
|
747
|
-
h(Xe, this) && (ge(h(Xe, this)), E(Xe, this, null)), h(_e, this) && (ge(h(_e, this)), E(_e, this, null)), h(De, this) && (ge(h(De, this)), E(De, this, null)), D && (
|
|
747
|
+
h(Xe, this) && (ge(h(Xe, this)), E(Xe, this, null)), h(_e, this) && (ge(h(_e, this)), E(_e, this, null)), h(De, this) && (ge(h(De, this)), E(De, this, null)), D && (Me(h(Bi, this)), Di(), Me(ca()));
|
|
748
748
|
var t = h(Ye, this).onerror;
|
|
749
749
|
let n = h(Ye, this).failed;
|
|
750
750
|
var r = !1, i = !1;
|
|
@@ -755,8 +755,8 @@ function is(e) {
|
|
|
755
755
|
}
|
|
756
756
|
r = !0, i && Vc(), h(De, this) !== null && hr(h(De, this), () => {
|
|
757
757
|
E(De, this, null);
|
|
758
|
-
}),
|
|
759
|
-
|
|
758
|
+
}), M(ae, this, Gi).call(this, () => {
|
|
759
|
+
M(ae, this, xa).call(this);
|
|
760
760
|
});
|
|
761
761
|
}, s = (a) => {
|
|
762
762
|
try {
|
|
@@ -764,11 +764,11 @@ function is(e) {
|
|
|
764
764
|
} catch (l) {
|
|
765
765
|
Ct(l, h(Ce, this) && h(Ce, this).parent);
|
|
766
766
|
}
|
|
767
|
-
n && E(De, this,
|
|
767
|
+
n && E(De, this, M(ae, this, Gi).call(this, () => {
|
|
768
768
|
try {
|
|
769
769
|
return dt(() => {
|
|
770
770
|
var l = C;
|
|
771
|
-
l.b = this, l.f |= 128, n(h(
|
|
771
|
+
l.b = this, l.f |= 128, n(h(He, this), () => a, () => o);
|
|
772
772
|
});
|
|
773
773
|
} catch (l) {
|
|
774
774
|
return Ct(l, h(Ce, this).parent), null;
|
|
@@ -787,7 +787,7 @@ function is(e) {
|
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
789
|
function pu(e, t, n, r) {
|
|
790
|
-
const i = dr() ? ar :
|
|
790
|
+
const i = dr() ? ar : Oa;
|
|
791
791
|
var o = e.filter((p) => !p.settled);
|
|
792
792
|
if (n.length === 0 && o.length === 0) {
|
|
793
793
|
r(t.map(i));
|
|
@@ -821,11 +821,11 @@ function gu() {
|
|
|
821
821
|
var e = C, t = L, n = B, r = R;
|
|
822
822
|
if (0) var i;
|
|
823
823
|
return function(s = !0) {
|
|
824
|
-
Ke(e), Ie(t),
|
|
824
|
+
Ke(e), Ie(t), On(n), s && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
function qr(e = !0) {
|
|
828
|
-
Ke(null), Ie(null),
|
|
828
|
+
Ke(null), Ie(null), On(null), e && R?.deactivate();
|
|
829
829
|
}
|
|
830
830
|
function Ca() {
|
|
831
831
|
var e = C, t = e.b, n = R, r = !!t?.is_rendered();
|
|
@@ -875,10 +875,10 @@ function mu(e, t, n) {
|
|
|
875
875
|
a.add(c), u.async_deriveds.set(l, c);
|
|
876
876
|
}
|
|
877
877
|
const p = (g, m = void 0) => {
|
|
878
|
-
f?.(), a.delete(c), m !== wr && (u.activate(), m ? (o.f |=
|
|
878
|
+
f?.(), a.delete(c), m !== wr && (u.activate(), m ? (o.f |= Hr, Xr(o, m)) : ((o.f & 8388608) !== 0 && (o.f ^= Hr), Xr(o, g)), u.deactivate());
|
|
879
879
|
};
|
|
880
880
|
c.promise.then(p, (g) => p(null, g || "unknown"));
|
|
881
|
-
}),
|
|
881
|
+
}), Mu(() => {
|
|
882
882
|
for (const l of a) l.reject(wr);
|
|
883
883
|
}), new Promise((l) => {
|
|
884
884
|
function c(u) {
|
|
@@ -896,7 +896,7 @@ function vu(e) {
|
|
|
896
896
|
return ut || Va(t), t;
|
|
897
897
|
}
|
|
898
898
|
// @__NO_SIDE_EFFECTS__
|
|
899
|
-
function
|
|
899
|
+
function Oa(e) {
|
|
900
900
|
const t = /* @__PURE__ */ ar(e);
|
|
901
901
|
return t.equals = da, t;
|
|
902
902
|
}
|
|
@@ -919,10 +919,10 @@ function ko(e) {
|
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ma(e) {
|
|
923
923
|
var t = ko(e);
|
|
924
|
-
if (!e.equals(t) && (e.wv = Ya(), (!R?.is_fork || e.deps === null) && (R !== null ? (R.capture(e, t, !0),
|
|
925
|
-
V(e,
|
|
924
|
+
if (!e.equals(t) && (e.wv = Ya(), (!R?.is_fork || e.deps === null) && (R !== null ? (R.capture(e, t, !0), Wi?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
925
|
+
V(e, Oe);
|
|
926
926
|
return;
|
|
927
927
|
}
|
|
928
928
|
ft || (de !== null ? (xo() || R?.is_fork) && de.set(e, t) : bo(e));
|
|
@@ -963,8 +963,8 @@ function yu(e, t = !1, n = !0) {
|
|
|
963
963
|
return r;
|
|
964
964
|
}
|
|
965
965
|
function N(e, t, n = !1) {
|
|
966
|
-
L !== null && (!
|
|
967
|
-
let r = n ?
|
|
966
|
+
L !== null && (!We || (L.f & 131072) !== 0) && dr() && (L.f & 4325394) !== 0 && (Fe === null || !Fe.has(e)) && Gc();
|
|
967
|
+
let r = n ? Ot(t) : t;
|
|
968
968
|
return Xr(e, r, Br);
|
|
969
969
|
}
|
|
970
970
|
function Xr(e, t, n = null) {
|
|
@@ -1015,7 +1015,7 @@ function La(e, t, n) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
var Su = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
1018
|
-
function
|
|
1018
|
+
function Ot(e) {
|
|
1019
1019
|
if (typeof e != "object" || e === null || rr in e) return e;
|
|
1020
1020
|
const t = ia(e);
|
|
1021
1021
|
if (t !== xc && t !== Ac) return e;
|
|
@@ -1060,7 +1060,7 @@ function Mt(e) {
|
|
|
1060
1060
|
if (p === rr) return e;
|
|
1061
1061
|
var m = n.get(p), b = p in f;
|
|
1062
1062
|
if (m === void 0 && (!b || Vt(f, p)?.writable) && (m = a(() => {
|
|
1063
|
-
var I = /* @__PURE__ */ Y(
|
|
1063
|
+
var I = /* @__PURE__ */ Y(Ot(b ? f[p] : Q), o);
|
|
1064
1064
|
return I;
|
|
1065
1065
|
}), n.set(p, m)), m !== void 0) {
|
|
1066
1066
|
var T = y(m);
|
|
@@ -1088,21 +1088,21 @@ function Mt(e) {
|
|
|
1088
1088
|
if (p === rr) return !0;
|
|
1089
1089
|
var g = n.get(p), m = g !== void 0 && g.v !== Q || Reflect.has(f, p);
|
|
1090
1090
|
return (g !== void 0 || C !== null && (!m || Vt(f, p)?.writable)) && (g === void 0 && (g = a(() => {
|
|
1091
|
-
var b = /* @__PURE__ */ Y(m ?
|
|
1091
|
+
var b = /* @__PURE__ */ Y(m ? Ot(f[p]) : Q, o);
|
|
1092
1092
|
return b;
|
|
1093
1093
|
}), n.set(p, g)), y(g) === Q) ? !1 : m;
|
|
1094
1094
|
},
|
|
1095
1095
|
set(f, p, g, m) {
|
|
1096
1096
|
var b = n.get(p), T = p in f;
|
|
1097
1097
|
if (r && p === "length") for (var I = g; I < b.v; I += 1) {
|
|
1098
|
-
var
|
|
1099
|
-
|
|
1098
|
+
var W = n.get(I + "");
|
|
1099
|
+
W !== void 0 ? N(W, Q) : I in f && (W = a(() => /* @__PURE__ */ Y(Q, o)), n.set(I + "", W));
|
|
1100
1100
|
}
|
|
1101
1101
|
if (b === void 0)
|
|
1102
|
-
(!T || Vt(f, p)?.writable) && (b = a(() => /* @__PURE__ */ Y(void 0, o)), N(b,
|
|
1102
|
+
(!T || Vt(f, p)?.writable) && (b = a(() => /* @__PURE__ */ Y(void 0, o)), N(b, Ot(g)), n.set(p, b));
|
|
1103
1103
|
else {
|
|
1104
1104
|
T = b.v !== Q;
|
|
1105
|
-
var J = a(() =>
|
|
1105
|
+
var J = a(() => Ot(g));
|
|
1106
1106
|
N(b, J);
|
|
1107
1107
|
}
|
|
1108
1108
|
var w = Reflect.getOwnPropertyDescriptor(f, p);
|
|
@@ -1157,9 +1157,9 @@ function se(e, t) {
|
|
|
1157
1157
|
if (n === null) n = $.appendChild(Be());
|
|
1158
1158
|
else if (t && n.nodeType !== 3) {
|
|
1159
1159
|
var r = Be();
|
|
1160
|
-
return n?.before(r),
|
|
1160
|
+
return n?.before(r), Me(r), r;
|
|
1161
1161
|
}
|
|
1162
|
-
return t && ni(n),
|
|
1162
|
+
return t && ni(n), Me(n), n;
|
|
1163
1163
|
}
|
|
1164
1164
|
function ss(e, t = !1) {
|
|
1165
1165
|
if (!D) {
|
|
@@ -1169,7 +1169,7 @@ function ss(e, t = !1) {
|
|
|
1169
1169
|
if (t) {
|
|
1170
1170
|
if ($?.nodeType !== 3) {
|
|
1171
1171
|
var r = Be();
|
|
1172
|
-
return $?.before(r),
|
|
1172
|
+
return $?.before(r), Me(r), r;
|
|
1173
1173
|
}
|
|
1174
1174
|
ni($);
|
|
1175
1175
|
}
|
|
@@ -1183,11 +1183,11 @@ function ke(e, t = 1, n = !1) {
|
|
|
1183
1183
|
if (n) {
|
|
1184
1184
|
if (r?.nodeType !== 3) {
|
|
1185
1185
|
var o = Be();
|
|
1186
|
-
return r === null ? i?.after(o) : r.before(o),
|
|
1186
|
+
return r === null ? i?.after(o) : r.before(o), Me(o), o;
|
|
1187
1187
|
}
|
|
1188
1188
|
ni(r);
|
|
1189
1189
|
}
|
|
1190
|
-
return
|
|
1190
|
+
return Me(r), r;
|
|
1191
1191
|
}
|
|
1192
1192
|
function Eu(e) {
|
|
1193
1193
|
e.textContent = "";
|
|
@@ -1222,9 +1222,9 @@ function za(e) {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
function Cu(e) {
|
|
1225
|
-
C === null && (L === null &&
|
|
1225
|
+
C === null && (L === null && Wc(e), Dc()), ft && zc(e);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ou(e, t) {
|
|
1228
1228
|
var n = t.last;
|
|
1229
1229
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1230
1230
|
}
|
|
@@ -1249,7 +1249,7 @@ function Je(e, t) {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
R?.register_created_effect(r);
|
|
1251
1251
|
var i = r;
|
|
1252
|
-
if ((e & 4) !== 0)
|
|
1252
|
+
if ((e & 4) !== 0) Mn !== null ? Mn.push(r) : sn.ensure().schedule(r);
|
|
1253
1253
|
else if (t !== null) {
|
|
1254
1254
|
try {
|
|
1255
1255
|
Rn(r);
|
|
@@ -1258,20 +1258,20 @@ function Je(e, t) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= vo));
|
|
1260
1260
|
}
|
|
1261
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1261
|
+
if (i !== null && (i.parent = n, n !== null && Ou(i, n), L !== null && (L.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1262
1262
|
var o = L;
|
|
1263
1263
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1264
1264
|
}
|
|
1265
1265
|
return r;
|
|
1266
1266
|
}
|
|
1267
1267
|
function xo() {
|
|
1268
|
-
return L !== null && !
|
|
1268
|
+
return L !== null && !We;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Mu(e) {
|
|
1271
1271
|
const t = Je(8, null);
|
|
1272
|
-
return V(t,
|
|
1272
|
+
return V(t, Oe), t.teardown = e, t;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Mr(e) {
|
|
1275
1275
|
Cu("$effect");
|
|
1276
1276
|
var t = C.f;
|
|
1277
1277
|
if (!L && (t & 32) !== 0 && B !== null && !B.i) {
|
|
@@ -1298,7 +1298,7 @@ function Ru(e) {
|
|
|
1298
1298
|
}) : (ge(t), r(void 0));
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Wa(e) {
|
|
1302
1302
|
return Je(4, e);
|
|
1303
1303
|
}
|
|
1304
1304
|
function Lu(e) {
|
|
@@ -1312,7 +1312,7 @@ function Un(e, t = [], n = [], r = []) {
|
|
|
1312
1312
|
Je(8, () => e(...i.map(y)));
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Ha(e, t = 0) {
|
|
1316
1316
|
var n = Je(16 | t, e);
|
|
1317
1317
|
return n;
|
|
1318
1318
|
}
|
|
@@ -1353,7 +1353,7 @@ function ge(e, t = !0) {
|
|
|
1353
1353
|
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Pu(e.nodes.start, e.nodes.end), n = !0), V(e, Zo), Co(e, t && !n), lr(e, 0);
|
|
1354
1354
|
var r = e.nodes && e.nodes.t;
|
|
1355
1355
|
if (r !== null) for (const o of r) o.stop();
|
|
1356
|
-
Fa(e), e.f ^= Zo, e.f |=
|
|
1356
|
+
Fa(e), e.f ^= Zo, e.f |= Mc;
|
|
1357
1357
|
var i = e.parent;
|
|
1358
1358
|
i !== null && i.first !== null && Ba(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1359
1359
|
}
|
|
@@ -1420,7 +1420,7 @@ var $u = null, Ir = !1, ft = !1;
|
|
|
1420
1420
|
function cs(e) {
|
|
1421
1421
|
ft = e;
|
|
1422
1422
|
}
|
|
1423
|
-
var L = null,
|
|
1423
|
+
var L = null, We = !1;
|
|
1424
1424
|
function Ie(e) {
|
|
1425
1425
|
L = e;
|
|
1426
1426
|
}
|
|
@@ -1449,9 +1449,9 @@ function pr(e) {
|
|
|
1449
1449
|
if (t & 2 && (e.f &= ~cr), (t & 4096) !== 0) {
|
|
1450
1450
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1451
1451
|
var o = n[i];
|
|
1452
|
-
if (pr(o) &&
|
|
1452
|
+
if (pr(o) && Ma(o), o.wv > e.wv) return !0;
|
|
1453
1453
|
}
|
|
1454
|
-
(t & 512) !== 0 && de === null && V(e,
|
|
1454
|
+
(t & 512) !== 0 && de === null && V(e, Oe);
|
|
1455
1455
|
}
|
|
1456
1456
|
return !1;
|
|
1457
1457
|
}
|
|
@@ -1464,8 +1464,8 @@ function Xa(e, t, n = !0) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
function Ka(e) {
|
|
1467
|
-
var t = pe, n = ve, r = xe, i = L, o = Fe, s = B, a =
|
|
1468
|
-
pe = null, ve = 0, xe = null, L = (c & 96) === 0 ? e : null, Fe = null,
|
|
1467
|
+
var t = pe, n = ve, r = xe, i = L, o = Fe, s = B, a = We, l = Jt, c = e.f;
|
|
1468
|
+
pe = null, ve = 0, xe = null, L = (c & 96) === 0 ? e : null, Fe = null, On(e.ctx), We = !1, Jt = ++jt, e.ac !== null && (za(() => {
|
|
1469
1469
|
e.ac.abort(ei);
|
|
1470
1470
|
}), e.ac = null);
|
|
1471
1471
|
try {
|
|
@@ -1483,17 +1483,17 @@ function Ka(e) {
|
|
|
1483
1483
|
((b = p[m]).reactions ?? (b.reactions = [])).push(e);
|
|
1484
1484
|
}
|
|
1485
1485
|
} else !g && p !== null && ve < p.length && (lr(e, ve), p.length = ve);
|
|
1486
|
-
if (dr() && xe !== null && !
|
|
1486
|
+
if (dr() && xe !== null && !We && p !== null && (e.f & 6146) === 0) for (m = 0; m < xe.length; m++) Xa(xe[m], e);
|
|
1487
1487
|
if (i !== null && i !== e) {
|
|
1488
1488
|
if (jt++, i.deps !== null) for (let T = 0; T < n; T += 1) i.deps[T].rv = jt;
|
|
1489
1489
|
if (t !== null) for (const T of t) T.rv = jt;
|
|
1490
1490
|
xe !== null && (r === null ? r = xe : r.push(...xe));
|
|
1491
1491
|
}
|
|
1492
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1492
|
+
return (e.f & 8388608) !== 0 && (e.f ^= Hr), f;
|
|
1493
1493
|
} catch (T) {
|
|
1494
1494
|
return ga(T);
|
|
1495
1495
|
} finally {
|
|
1496
|
-
e.f ^= Qo, pe = t, ve = n, xe = r, L = i, Fe = o,
|
|
1496
|
+
e.f ^= Qo, pe = t, ve = n, xe = r, L = i, Fe = o, On(s), We = a, Jt = l;
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
1499
|
function Du(e, t) {
|
|
@@ -1518,7 +1518,7 @@ function lr(e, t) {
|
|
|
1518
1518
|
function Rn(e) {
|
|
1519
1519
|
var t = e.f;
|
|
1520
1520
|
if ((t & 16384) === 0) {
|
|
1521
|
-
V(e,
|
|
1521
|
+
V(e, Oe);
|
|
1522
1522
|
var n = C, r = Ir;
|
|
1523
1523
|
if (C = e, Ir = !0, 0)
|
|
1524
1524
|
var i, o;
|
|
@@ -1534,7 +1534,7 @@ function Rn(e) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
function y(e) {
|
|
1536
1536
|
var t = (e.f & 2) !== 0;
|
|
1537
|
-
if ($u?.add(e), L !== null && !
|
|
1537
|
+
if ($u?.add(e), L !== null && !We && !(C !== null && (C.f & 16384) !== 0) && (Fe === null || !Fe.has(e))) {
|
|
1538
1538
|
var n = L.deps;
|
|
1539
1539
|
if ((L.f & 2097152) !== 0)
|
|
1540
1540
|
e.rv < jt && (e.rv = jt, pe === null && n !== null && n[ve] === e ? ve++ : pe === null ? pe = [e] : pe.push(e));
|
|
@@ -1546,9 +1546,9 @@ function y(e) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
1548
|
if (0) {
|
|
1549
|
-
if (!
|
|
1549
|
+
if (!We && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1550
1550
|
var o;
|
|
1551
|
-
if (tracing_mode_flag && !
|
|
1551
|
+
if (tracing_mode_flag && !We && tracing_expressions !== null && L !== null && tracing_expressions.reaction === L && !e.trace) {
|
|
1552
1552
|
if (o)
|
|
1553
1553
|
var s, a;
|
|
1554
1554
|
}
|
|
@@ -1560,8 +1560,8 @@ function y(e) {
|
|
|
1560
1560
|
var c = l.v;
|
|
1561
1561
|
return ((l.f & 1024) === 0 && l.reactions !== null || Za(l)) && (c = ko(l)), Kt.set(l, c), c;
|
|
1562
1562
|
}
|
|
1563
|
-
var u = (l.f & 512) === 0 && !
|
|
1564
|
-
pr(l) && (u && (l.f |= 512),
|
|
1563
|
+
var u = (l.f & 512) === 0 && !We && L !== null && (Ir || (L.f & 512) !== 0), f = (l.f & mo) === 0;
|
|
1564
|
+
pr(l) && (u && (l.f |= 512), Ma(l)), u && !f && (Ia(l), Ja(l));
|
|
1565
1565
|
}
|
|
1566
1566
|
if (de?.has(e)) return de.get(e);
|
|
1567
1567
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
@@ -1580,18 +1580,18 @@ function Za(e) {
|
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
function ri(e) {
|
|
1583
|
-
var t =
|
|
1583
|
+
var t = We;
|
|
1584
1584
|
try {
|
|
1585
|
-
return
|
|
1585
|
+
return We = !0, e();
|
|
1586
1586
|
} finally {
|
|
1587
|
-
|
|
1587
|
+
We = t;
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
var xn = /* @__PURE__ */ Symbol("events"), Qa = /* @__PURE__ */ new Set(), qi = /* @__PURE__ */ new Set();
|
|
1591
1591
|
function vn(e, t, n) {
|
|
1592
1592
|
(t[xn] ?? (t[xn] = {}))[e] = n;
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function Wu(e) {
|
|
1595
1595
|
for (var t = 0; t < e.length; t++) Qa.add(e[t]);
|
|
1596
1596
|
for (var n of qi) n(e);
|
|
1597
1597
|
}
|
|
@@ -1611,7 +1611,7 @@ function fs(e) {
|
|
|
1611
1611
|
l <= c && (s = l);
|
|
1612
1612
|
}
|
|
1613
1613
|
if (o = i[s] || e.target, o !== t) {
|
|
1614
|
-
|
|
1614
|
+
Wr(e, "currentTarget", {
|
|
1615
1615
|
configurable: !0,
|
|
1616
1616
|
get() {
|
|
1617
1617
|
return o || n;
|
|
@@ -1641,15 +1641,15 @@ function fs(e) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
var
|
|
1644
|
+
var Hu = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1645
1645
|
function Fu(e) {
|
|
1646
|
-
return
|
|
1646
|
+
return Hu?.createHTML(e) ?? e;
|
|
1647
1647
|
}
|
|
1648
1648
|
function Bu(e) {
|
|
1649
1649
|
var t = Eo("template");
|
|
1650
1650
|
return t.innerHTML = Fu(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function Mt(e, t) {
|
|
1653
1653
|
var n = C;
|
|
1654
1654
|
n.nodes === null && (n.nodes = {
|
|
1655
1655
|
start: e,
|
|
@@ -1663,29 +1663,29 @@ function Ze(e, t) {
|
|
|
1663
1663
|
var n = (t & 1) !== 0, r = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1664
1664
|
return () => {
|
|
1665
1665
|
if (D)
|
|
1666
|
-
return
|
|
1666
|
+
return Mt($, null), $;
|
|
1667
1667
|
i === void 0 && (i = Bu(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ In(i)));
|
|
1668
1668
|
var s = r || Na ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1669
1669
|
if (n) {
|
|
1670
1670
|
var a = /* @__PURE__ */ In(s), l = s.lastChild;
|
|
1671
|
-
|
|
1672
|
-
} else
|
|
1671
|
+
Mt(a, l);
|
|
1672
|
+
} else Mt(s, s);
|
|
1673
1673
|
return s;
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
1676
|
function Uu(e = "") {
|
|
1677
1677
|
if (!D) {
|
|
1678
1678
|
var t = Be(e + "");
|
|
1679
|
-
return
|
|
1679
|
+
return Mt(t, t), t;
|
|
1680
1680
|
}
|
|
1681
1681
|
var n = $;
|
|
1682
|
-
return n.nodeType !== 3 ? (n.before(n = Be()),
|
|
1682
|
+
return n.nodeType !== 3 ? (n.before(n = Be()), Me(n)) : ni(n), Mt(n, n), n;
|
|
1683
1683
|
}
|
|
1684
1684
|
function ju() {
|
|
1685
1685
|
if (D)
|
|
1686
|
-
return
|
|
1686
|
+
return Mt($, null), $;
|
|
1687
1687
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = Be();
|
|
1688
|
-
return e.append(t, n),
|
|
1688
|
+
return e.append(t, n), Mt(t, n), e;
|
|
1689
1689
|
}
|
|
1690
1690
|
function me(e, t) {
|
|
1691
1691
|
if (D) {
|
|
@@ -1779,7 +1779,7 @@ function Xu(e, t) {
|
|
|
1779
1779
|
try {
|
|
1780
1780
|
for (var o = /* @__PURE__ */ In(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ gt(o);
|
|
1781
1781
|
if (!o) throw Cn;
|
|
1782
|
-
En(!0),
|
|
1782
|
+
En(!0), Me(o);
|
|
1783
1783
|
const s = tl(e, {
|
|
1784
1784
|
...t,
|
|
1785
1785
|
anchor: o
|
|
@@ -1790,7 +1790,7 @@ function Xu(e, t) {
|
|
|
1790
1790
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1791
1791
|
return s !== Cn && console.warn("Failed to hydrate: ", s), t.recover === !1 && Fc(), Vi(), Eu(n), En(!1), el(e, t);
|
|
1792
1792
|
} finally {
|
|
1793
|
-
En(r),
|
|
1793
|
+
En(r), Me(i);
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
var Er = /* @__PURE__ */ new Map();
|
|
@@ -1802,7 +1802,7 @@ function tl(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
|
|
|
1802
1802
|
} }, (g) => {
|
|
1803
1803
|
fa({});
|
|
1804
1804
|
var m = B;
|
|
1805
|
-
if (o && (m.c = o), i && (r.$$events = i), D &&
|
|
1805
|
+
if (o && (m.c = o), i && (r.$$events = i), D && Mt(g, null), hs = s, l = e(g, r) || {}, hs = !0, D && (C.nodes.end = $, $ === null || $.nodeType !== 8 || $.data !== "]"))
|
|
1806
1806
|
throw ti(), Cn;
|
|
1807
1807
|
ha();
|
|
1808
1808
|
}, a);
|
|
@@ -1815,8 +1815,8 @@ function tl(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
|
|
|
1815
1815
|
for (const J of [t, document]) {
|
|
1816
1816
|
var I = Er.get(J);
|
|
1817
1817
|
I === void 0 && (I = /* @__PURE__ */ new Map(), Er.set(J, I));
|
|
1818
|
-
var
|
|
1819
|
-
|
|
1818
|
+
var W = I.get(b);
|
|
1819
|
+
W === void 0 ? (J.addEventListener(b, fs, { passive: T }), I.set(b, 1)) : I.set(b, W + 1);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
@@ -1891,7 +1891,7 @@ var lt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), $e =
|
|
|
1891
1891
|
}
|
|
1892
1892
|
};
|
|
1893
1893
|
function Zu(e) {
|
|
1894
|
-
B === null && Pc("onMount"), ur && B.l !== null ? Qu(B).m.push(e) :
|
|
1894
|
+
B === null && Pc("onMount"), ur && B.l !== null ? Qu(B).m.push(e) : Mr(() => {
|
|
1895
1895
|
const t = ri(e);
|
|
1896
1896
|
if (typeof t == "function") return t;
|
|
1897
1897
|
});
|
|
@@ -1913,13 +1913,13 @@ function _n(e, t, n = !1) {
|
|
|
1913
1913
|
var c = Xc(r);
|
|
1914
1914
|
if (a !== parseInt(c.substring(1))) {
|
|
1915
1915
|
var u = ca();
|
|
1916
|
-
|
|
1916
|
+
Me(u), i.anchor = u, En(!1), i.ensure(a, l), En(!0);
|
|
1917
1917
|
return;
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
i.ensure(a, l);
|
|
1921
1921
|
}
|
|
1922
|
-
|
|
1922
|
+
Ha(() => {
|
|
1923
1923
|
var a = !1;
|
|
1924
1924
|
t((l, c = 0) => {
|
|
1925
1925
|
a = !0, s(c, l);
|
|
@@ -1927,7 +1927,7 @@ function _n(e, t, n = !1) {
|
|
|
1927
1927
|
}, o);
|
|
1928
1928
|
}
|
|
1929
1929
|
function ed(e, t) {
|
|
1930
|
-
|
|
1930
|
+
Wa(() => {
|
|
1931
1931
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1932
1932
|
if (!r.querySelector("#" + t.hash)) {
|
|
1933
1933
|
const i = Eo("style");
|
|
@@ -2071,7 +2071,7 @@ var rl, kn = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(),
|
|
|
2071
2071
|
}
|
|
2072
2072
|
observe(e, t) {
|
|
2073
2073
|
var n = h(kn, this).get(e) || /* @__PURE__ */ new Set();
|
|
2074
|
-
return n.add(t), h(kn, this).set(e, n),
|
|
2074
|
+
return n.add(t), h(kn, this).set(e, n), M(_s, this, fd).call(this).observe(e, h(Si, this)), () => {
|
|
2075
2075
|
var r = h(kn, this).get(e);
|
|
2076
2076
|
r.delete(t), r.size === 0 && (h(kn, this).delete(e), h(Kr, this).unobserve(e));
|
|
2077
2077
|
};
|
|
@@ -2092,7 +2092,7 @@ function wi(e, t) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
function bs(e = {}, t, n, r) {
|
|
2094
2094
|
var i = B.r, o = C;
|
|
2095
|
-
return
|
|
2095
|
+
return Wa(() => {
|
|
2096
2096
|
var s, a;
|
|
2097
2097
|
return Ao(() => {
|
|
2098
2098
|
s = a, a = r?.() || [], ri(() => {
|
|
@@ -2133,23 +2133,23 @@ function xr(e, t, n, r) {
|
|
|
2133
2133
|
return arguments.length > 0 ? ((!i || !X || T || m) && f(X ? b() : w), w) : b();
|
|
2134
2134
|
});
|
|
2135
2135
|
}
|
|
2136
|
-
var I = !1,
|
|
2137
|
-
o && y(
|
|
2136
|
+
var I = !1, W = ((n & 1) !== 0 ? ar : Oa)(() => (I = !1, b()));
|
|
2137
|
+
o && y(W);
|
|
2138
2138
|
var J = C;
|
|
2139
2139
|
return (function(w, X) {
|
|
2140
2140
|
if (arguments.length > 0) {
|
|
2141
|
-
const le = X ? y(
|
|
2142
|
-
return N(
|
|
2141
|
+
const le = X ? y(W) : i && o ? Ot(w) : w;
|
|
2142
|
+
return N(W, le), I = !0, a !== void 0 && (a = le), w;
|
|
2143
2143
|
}
|
|
2144
|
-
return ft && I || (J.f & 16384) !== 0 ?
|
|
2144
|
+
return ft && I || (J.f & 16384) !== 0 ? W.v : y(W);
|
|
2145
2145
|
});
|
|
2146
2146
|
}
|
|
2147
2147
|
function hd(e) {
|
|
2148
2148
|
return new pd(e);
|
|
2149
2149
|
}
|
|
2150
|
-
var
|
|
2150
|
+
var Ht = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), pd = class {
|
|
2151
2151
|
constructor(e) {
|
|
2152
|
-
A(this,
|
|
2152
|
+
A(this, Ht, void 0), A(this, Ge, void 0);
|
|
2153
2153
|
var t = /* @__PURE__ */ new Map(), n = (i, o) => {
|
|
2154
2154
|
var s = /* @__PURE__ */ yu(o, !1, !1);
|
|
2155
2155
|
return t.set(i, s), s;
|
|
@@ -2176,9 +2176,9 @@ var Wt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), pd =
|
|
|
2176
2176
|
intro: e.intro ?? !1,
|
|
2177
2177
|
recover: e.recover,
|
|
2178
2178
|
transformError: e.transformError
|
|
2179
|
-
})), !ut && (!e?.props?.$$host || e.sync === !1) && er(), E(
|
|
2179
|
+
})), !ut && (!e?.props?.$$host || e.sync === !1) && er(), E(Ht, this, r.$$events);
|
|
2180
2180
|
for (const i of Object.keys(h(Ge, this)))
|
|
2181
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2181
|
+
i === "$set" || i === "$destroy" || i === "$on" || Wr(this, i, {
|
|
2182
2182
|
get() {
|
|
2183
2183
|
return h(Ge, this)[i];
|
|
2184
2184
|
},
|
|
@@ -2197,10 +2197,10 @@ var Wt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), pd =
|
|
|
2197
2197
|
h(Ge, this).$set(e);
|
|
2198
2198
|
}
|
|
2199
2199
|
$on(e, t) {
|
|
2200
|
-
h(
|
|
2200
|
+
h(Ht, this)[e] = h(Ht, this)[e] || [];
|
|
2201
2201
|
const n = (...r) => t.call(this, ...r);
|
|
2202
|
-
return h(
|
|
2203
|
-
h(
|
|
2202
|
+
return h(Ht, this)[e].push(n), () => {
|
|
2203
|
+
h(Ht, this)[e] = h(Ht, this)[e].filter((r) => r !== n);
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
2206
|
$destroy() {
|
|
@@ -2321,7 +2321,7 @@ function md(e, t, n, r, i, o) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
};
|
|
2323
2323
|
return Dr(t).forEach((a) => {
|
|
2324
|
-
|
|
2324
|
+
Wr(s.prototype, a, {
|
|
2325
2325
|
get() {
|
|
2326
2326
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2327
2327
|
},
|
|
@@ -2332,7 +2332,7 @@ function md(e, t, n, r, i, o) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
});
|
|
2334
2334
|
}), r.forEach((a) => {
|
|
2335
|
-
|
|
2335
|
+
Wr(s.prototype, a, { get() {
|
|
2336
2336
|
return this.$$c?.[a];
|
|
2337
2337
|
} });
|
|
2338
2338
|
}), o && (s = o(s)), e.element = s, s;
|
|
@@ -2529,7 +2529,7 @@ var sl = class Ki {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
cn > p && (p = cn, f = X);
|
|
2531
2531
|
}
|
|
2532
|
-
const g = Math.max(0.24, Math.min(0.85, f * 0.55)), m = Math.max(0.55, Math.min(0.95, f + 0.2)), b = Math.max(0.22, Math.min(0.6, f * 0.45)), T = l, I = this.blend(T, a, m),
|
|
2532
|
+
const g = Math.max(0.24, Math.min(0.85, f * 0.55)), m = Math.max(0.55, Math.min(0.95, f + 0.2)), b = Math.max(0.22, Math.min(0.6, f * 0.45)), T = l, I = this.blend(T, a, m), W = this.contrastRatio(I, a), J = this.relativeLuminance(a) > 0.45 ? [
|
|
2533
2533
|
0,
|
|
2534
2534
|
0,
|
|
2535
2535
|
0
|
|
@@ -2537,7 +2537,7 @@ var sl = class Ki {
|
|
|
2537
2537
|
255,
|
|
2538
2538
|
255,
|
|
2539
2539
|
255
|
|
2540
|
-
], w =
|
|
2540
|
+
], w = W >= 1.35 ? T : J;
|
|
2541
2541
|
return {
|
|
2542
2542
|
wordHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${f})`,
|
|
2543
2543
|
sentenceHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${g})`,
|
|
@@ -3111,13 +3111,13 @@ function cl(e) {
|
|
|
3111
3111
|
function Cd(e) {
|
|
3112
3112
|
return e.level === "passage";
|
|
3113
3113
|
}
|
|
3114
|
-
function
|
|
3114
|
+
function Od(e) {
|
|
3115
3115
|
return e.level === "rubric";
|
|
3116
3116
|
}
|
|
3117
3117
|
function ul(e) {
|
|
3118
3118
|
return e.level === "element";
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function Oo(e) {
|
|
3121
3121
|
if (ul(e)) {
|
|
3122
3122
|
const t = e.item.config;
|
|
3123
3123
|
if (!t) return "";
|
|
@@ -3171,14 +3171,14 @@ function Mo(e) {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
return r.filter(Boolean).join(" ").trim();
|
|
3173
3173
|
}
|
|
3174
|
-
if (
|
|
3174
|
+
if (Od(e)) {
|
|
3175
3175
|
const t = e.rubricBlock;
|
|
3176
3176
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
3177
3177
|
}
|
|
3178
3178
|
return "";
|
|
3179
3179
|
}
|
|
3180
3180
|
function oi(e) {
|
|
3181
|
-
const t =
|
|
3181
|
+
const t = Oo(e);
|
|
3182
3182
|
return [
|
|
3183
3183
|
/<math[>\s]/i,
|
|
3184
3184
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -3188,7 +3188,7 @@ function oi(e) {
|
|
|
3188
3188
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
3189
3189
|
].some((n) => n.test(t));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function Md(e) {
|
|
3192
3192
|
const t = [
|
|
3193
3193
|
"pie-multiple-choice",
|
|
3194
3194
|
"pie-inline-choice",
|
|
@@ -3216,10 +3216,10 @@ function Od(e) {
|
|
|
3216
3216
|
return !1;
|
|
3217
3217
|
}
|
|
3218
3218
|
function si(e) {
|
|
3219
|
-
return
|
|
3219
|
+
return Oo(e).trim().length >= 10;
|
|
3220
3220
|
}
|
|
3221
3221
|
function Id(e) {
|
|
3222
|
-
const t =
|
|
3222
|
+
const t = Oo(e);
|
|
3223
3223
|
return [
|
|
3224
3224
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
3225
3225
|
/periodic\s+table/i,
|
|
@@ -3239,7 +3239,7 @@ var Rd = [
|
|
|
3239
3239
|
function Nd(e) {
|
|
3240
3240
|
return Ld.has(e);
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function Mo(e, t, n) {
|
|
3243
3243
|
const r = e.trim(), i = n.trim();
|
|
3244
3244
|
if (!r || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
3245
3245
|
if (!Nd(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
@@ -3376,7 +3376,7 @@ var Pd = class {
|
|
|
3376
3376
|
async initialize(e) {
|
|
3377
3377
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
3378
3378
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
3379
|
-
return new
|
|
3379
|
+
return new Wd(e);
|
|
3380
3380
|
}
|
|
3381
3381
|
supportsFeature(e) {
|
|
3382
3382
|
return !0;
|
|
@@ -3394,7 +3394,7 @@ var Pd = class {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
destroy() {
|
|
3396
3396
|
}
|
|
3397
|
-
},
|
|
3397
|
+
}, Wd = class {
|
|
3398
3398
|
constructor(e) {
|
|
3399
3399
|
v(this, "utterance", null), v(this, "config", null), v(this, "_isPlaying", !1), v(this, "_isPaused", !1), v(this, "speakRunId", 0), v(this, "onWordBoundary", void 0), this.config = e;
|
|
3400
3400
|
}
|
|
@@ -3536,7 +3536,7 @@ var Pd = class {
|
|
|
3536
3536
|
...e.providerOptions || {}
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
},
|
|
3539
|
+
}, Hd = class {
|
|
3540
3540
|
async emitTelemetry(e, t) {
|
|
3541
3541
|
try {
|
|
3542
3542
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3723,7 +3723,7 @@ var Xd = {
|
|
|
3723
3723
|
return oi(e);
|
|
3724
3724
|
},
|
|
3725
3725
|
renderToolbar(e, t) {
|
|
3726
|
-
const { calculatorType: n, availableTypes: r, displayName: i } = Yd(t), o =
|
|
3726
|
+
const { calculatorType: n, availableTypes: r, displayName: i } = Yd(t), o = Mo(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = Vd(t.toolCoordinator, o), l = a ?? Qe(this.toolId, e, t, s);
|
|
3727
3727
|
a || qd(t.toolCoordinator, o, l), l.setAttribute("tool-id", o), l.toolkitCoordinator = t.toolkitCoordinator, Ss(l, n, r);
|
|
3728
3728
|
const c = n === null ? "Open scientific calculator" : `Open ${i.toLowerCase()}`, u = n === null ? "Close scientific calculator" : `Close ${i.toLowerCase()}`, f = {
|
|
3729
3729
|
toolId: this.toolId,
|
|
@@ -3818,14 +3818,14 @@ var Xd = {
|
|
|
3818
3818
|
const g = p.textContent || "", m = g.match(/\S/), b = m ? m[0] : null;
|
|
3819
3819
|
!o && !s && gl(l, b, t) && (r.push(" "), a && n.set(i, a), i++, s = !0);
|
|
3820
3820
|
for (let T = 0; T < g.length; T++) {
|
|
3821
|
-
const I = g[T],
|
|
3822
|
-
o ?
|
|
3821
|
+
const I = g[T], W = /\s/.test(I);
|
|
3822
|
+
o ? W || (o = !1, r.push(I), n.set(i, {
|
|
3823
3823
|
node: p,
|
|
3824
3824
|
offset: T
|
|
3825
3825
|
}), a = {
|
|
3826
3826
|
node: p,
|
|
3827
3827
|
offset: T
|
|
3828
|
-
}, i++, s = !1, l = I) :
|
|
3828
|
+
}, i++, s = !1, l = I) : W ? (s || (r.push(" "), n.set(i, {
|
|
3829
3829
|
node: p,
|
|
3830
3830
|
offset: T
|
|
3831
3831
|
}), a = {
|
|
@@ -3945,7 +3945,7 @@ var Xd = {
|
|
|
3945
3945
|
if (typeof e != "string") return;
|
|
3946
3946
|
const t = e.trim();
|
|
3947
3947
|
return t.length ? t : void 0;
|
|
3948
|
-
},
|
|
3948
|
+
}, Os = (e) => `${e}x`, _l = (e, t) => e.toLowerCase() === "normal" ? "Normal speed" : t ? `Speed ${e}` : `${e} speed`, sf = (e, t, n) => t ? t.toLowerCase().includes(e.toLowerCase()) ? t : `${e} ${t}` : _l(e, n), Nr = (e) => {
|
|
3949
3949
|
const t = Array.isArray(e) ? e : [...xs];
|
|
3950
3950
|
if (t.length === 0) return [];
|
|
3951
3951
|
const n = /* @__PURE__ */ new Set(), r = [];
|
|
@@ -3953,7 +3953,7 @@ var Xd = {
|
|
|
3953
3953
|
const a = Zi(s), l = As(typeof s == "number" ? s : a.rate);
|
|
3954
3954
|
if (l === void 0 || n.has(l)) continue;
|
|
3955
3955
|
n.add(l);
|
|
3956
|
-
const c = l === 1 ? "Normal" :
|
|
3956
|
+
const c = l === 1 ? "Normal" : Os(l), u = typeof s == "number" ? c : Cs(a.label) || c, f = typeof s == "number" ? l === 1 ? "Normal speed" : _l(u, !0) : sf(u, Cs(a.ariaLabel), u === c);
|
|
3957
3957
|
r.push({
|
|
3958
3958
|
rate: l,
|
|
3959
3959
|
label: u,
|
|
@@ -4049,7 +4049,8 @@ var Xd = {
|
|
|
4049
4049
|
controlsRow: {
|
|
4050
4050
|
reserveSpace: !0,
|
|
4051
4051
|
expandWhenToolActive: !1
|
|
4052
|
-
}
|
|
4052
|
+
},
|
|
4053
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4053
4054
|
};
|
|
4054
4055
|
case "expanding-row":
|
|
4055
4056
|
return {
|
|
@@ -4057,7 +4058,17 @@ var Xd = {
|
|
|
4057
4058
|
controlsRow: {
|
|
4058
4059
|
reserveSpace: !1,
|
|
4059
4060
|
expandWhenToolActive: !0
|
|
4060
|
-
}
|
|
4061
|
+
},
|
|
4062
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4063
|
+
};
|
|
4064
|
+
case "floating-overlay":
|
|
4065
|
+
return {
|
|
4066
|
+
mount: "before-buttons",
|
|
4067
|
+
controlsRow: {
|
|
4068
|
+
reserveSpace: !1,
|
|
4069
|
+
expandWhenToolActive: !1
|
|
4070
|
+
},
|
|
4071
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4061
4072
|
};
|
|
4062
4073
|
default:
|
|
4063
4074
|
return {
|
|
@@ -4065,17 +4076,18 @@ var Xd = {
|
|
|
4065
4076
|
controlsRow: {
|
|
4066
4077
|
reserveSpace: !1,
|
|
4067
4078
|
expandWhenToolActive: !1
|
|
4068
|
-
}
|
|
4079
|
+
},
|
|
4080
|
+
headerOverlay: { expandWhenToolActive: !0 }
|
|
4069
4081
|
};
|
|
4070
4082
|
}
|
|
4071
|
-
}, Gn = /* @__PURE__ */ new Map(), uf = "__pieToolElementUnmount",
|
|
4083
|
+
}, Gn = /* @__PURE__ */ new Map(), uf = "__pieToolElementUnmount", Ms = "pie-tool-active-change", df = {
|
|
4072
4084
|
toolId: "textToSpeech",
|
|
4073
4085
|
name: "Text to Speech",
|
|
4074
4086
|
description: "Read content aloud",
|
|
4075
4087
|
icon: "volume-up",
|
|
4076
4088
|
provider: {
|
|
4077
4089
|
getProviderId: () => "tts",
|
|
4078
|
-
createProvider: (e) => new
|
|
4090
|
+
createProvider: (e) => new Hd(Qi(Ai(e))),
|
|
4079
4091
|
getInitConfig: (e) => {
|
|
4080
4092
|
const t = Ai(e), n = Qi(t), r = bl(t, n);
|
|
4081
4093
|
return {
|
|
@@ -4108,7 +4120,7 @@ var Xd = {
|
|
|
4108
4120
|
return si(e);
|
|
4109
4121
|
},
|
|
4110
4122
|
renderToolbar(e, t) {
|
|
4111
|
-
const n = () => Ai(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), r = () => Nr(n().speedOptions), i = () => Tl(n()), o = () => cf(n()), s =
|
|
4123
|
+
const n = () => Ai(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), r = () => Nr(n().speedOptions), i = () => Tl(n()), o = () => cf(n()), s = Mo(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
4112
4124
|
const u = t.ui?.size;
|
|
4113
4125
|
return u === "sm" || u === "lg" ? u : "md";
|
|
4114
4126
|
}, l = () => {
|
|
@@ -4123,18 +4135,21 @@ var Xd = {
|
|
|
4123
4135
|
elements: [{
|
|
4124
4136
|
element: l(),
|
|
4125
4137
|
mount: c.mount,
|
|
4126
|
-
layoutHints: {
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4138
|
+
layoutHints: {
|
|
4139
|
+
controlsRow: {
|
|
4140
|
+
reserveSpace: c.controlsRow.reserveSpace,
|
|
4141
|
+
showWhenToolActive: c.controlsRow.expandWhenToolActive
|
|
4142
|
+
},
|
|
4143
|
+
headerOverlay: { showWhenToolActive: c.headerOverlay.expandWhenToolActive }
|
|
4144
|
+
}
|
|
4130
4145
|
}],
|
|
4131
4146
|
subscribeActive: (u) => {
|
|
4132
4147
|
const f = l(), p = (g) => {
|
|
4133
4148
|
const m = g.detail;
|
|
4134
4149
|
u(m?.active === !0);
|
|
4135
4150
|
};
|
|
4136
|
-
return f.addEventListener(
|
|
4137
|
-
f.removeEventListener(
|
|
4151
|
+
return f.addEventListener(Ms, p), () => {
|
|
4152
|
+
f.removeEventListener(Ms, p);
|
|
4138
4153
|
};
|
|
4139
4154
|
},
|
|
4140
4155
|
sync: () => {
|
|
@@ -4145,7 +4160,7 @@ var Xd = {
|
|
|
4145
4160
|
}
|
|
4146
4161
|
};
|
|
4147
4162
|
function mt(e, t) {
|
|
4148
|
-
const n =
|
|
4163
|
+
const n = Mo(e, t.scope.level, t.scope.scopeId);
|
|
4149
4164
|
return {
|
|
4150
4165
|
fullToolId: n,
|
|
4151
4166
|
isActive: () => t.isToolVisible(n),
|
|
@@ -4259,7 +4274,7 @@ var ff = {
|
|
|
4259
4274
|
"choiceMasking"
|
|
4260
4275
|
],
|
|
4261
4276
|
isVisibleInContext(e) {
|
|
4262
|
-
return
|
|
4277
|
+
return Md(e);
|
|
4263
4278
|
},
|
|
4264
4279
|
renderToolbar(e, t) {
|
|
4265
4280
|
const n = mt(this.toolId, t), r = t.componentOverrides ?? {}, i = Qe(this.toolId, e, t, r);
|
|
@@ -4782,7 +4797,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
4782
4797
|
char: t[r],
|
|
4783
4798
|
rawOffset: n === null ? null : n + r
|
|
4784
4799
|
});
|
|
4785
|
-
},
|
|
4800
|
+
}, Of = (e, t, n) => {
|
|
4786
4801
|
const r = t.slice(n).match(/^&(quot|apos|lt|gt|nbsp|amp|#160);/i);
|
|
4787
4802
|
return r ? (Pr(e, Sl(r[0]), n), r[0].length) : 0;
|
|
4788
4803
|
}, Rs = (e) => {
|
|
@@ -4790,7 +4805,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
4790
4805
|
char: " ",
|
|
4791
4806
|
rawOffset: null
|
|
4792
4807
|
});
|
|
4793
|
-
},
|
|
4808
|
+
}, Mf = (e) => {
|
|
4794
4809
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
4795
4810
|
let r = !0;
|
|
4796
4811
|
for (const i of e) {
|
|
@@ -4816,7 +4831,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
4816
4831
|
const s = e[i];
|
|
4817
4832
|
if (s !== "<") {
|
|
4818
4833
|
if (s === "&") {
|
|
4819
|
-
const p =
|
|
4834
|
+
const p = Of(t, e, i);
|
|
4820
4835
|
if (p > 0) {
|
|
4821
4836
|
i += p;
|
|
4822
4837
|
continue;
|
|
@@ -4853,7 +4868,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
4853
4868
|
}
|
|
4854
4869
|
c && !Cf.has(c) && !Is.has(c) && c !== "break" && c !== "sub" && (n = !0), !u && (c === "p" || c === "s") && Rs(t), i = a + 1;
|
|
4855
4870
|
}
|
|
4856
|
-
const o =
|
|
4871
|
+
const o = Mf(t);
|
|
4857
4872
|
return {
|
|
4858
4873
|
spokenText: G(o.text),
|
|
4859
4874
|
rawToSpokenOffsetMap: o.rawToSpokenOffsetMap,
|
|
@@ -5076,7 +5091,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5076
5091
|
return o || s;
|
|
5077
5092
|
}
|
|
5078
5093
|
return $s(e, t, i) || Ps(e, t, i);
|
|
5079
|
-
},
|
|
5094
|
+
}, Wf = (e, t) => {
|
|
5080
5095
|
if (e.playbackMode === "region-fallback") return null;
|
|
5081
5096
|
const n = e.anchors.find((o) => o.spokenStart <= t && t < o.spokenEnd);
|
|
5082
5097
|
if (n) return {
|
|
@@ -5098,7 +5113,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5098
5113
|
start: Math.min(r.visibleStart, i.visibleStart),
|
|
5099
5114
|
end: Math.max(r.visibleEnd, i.visibleEnd)
|
|
5100
5115
|
} : null;
|
|
5101
|
-
},
|
|
5116
|
+
}, Hf = /* @__PURE__ */ new Map([
|
|
5102
5117
|
["+", ["plus"]],
|
|
5103
5118
|
["-", ["minus", "negative"]],
|
|
5104
5119
|
["−", ["minus", "negative"]],
|
|
@@ -5157,7 +5172,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5157
5172
|
default:
|
|
5158
5173
|
return "unknown";
|
|
5159
5174
|
}
|
|
5160
|
-
}, Vf = (e, t) => t === "operator" ? e === "−" ? "-" : e : e.toLowerCase(), qf = (e, t, n) => n === "fraction" ? ["over", "divided by"] : n === "superscript" ? Al.get(e) ?? [] : e === "|" ? ["absolute value"] : t === "operator" ?
|
|
5175
|
+
}, Vf = (e, t) => t === "operator" ? e === "−" ? "-" : e : e.toLowerCase(), qf = (e, t, n) => n === "fraction" ? ["over", "divided by"] : n === "superscript" ? Al.get(e) ?? [] : e === "|" ? ["absolute value"] : t === "operator" ? Hf.get(e) || [] : [], nn = (e) => {
|
|
5161
5176
|
const t = e.normalized ?? Vf(e.text, e.kind || "unknown");
|
|
5162
5177
|
return {
|
|
5163
5178
|
id: `math-token-${e.state.nextId++}`,
|
|
@@ -5391,7 +5406,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5391
5406
|
confidence: r,
|
|
5392
5407
|
fallbackTarget: e.math.expressionTarget
|
|
5393
5408
|
};
|
|
5394
|
-
},
|
|
5409
|
+
}, Ol = hl(), lh = /* @__PURE__ */ new Map([
|
|
5395
5410
|
["zero", "0"],
|
|
5396
5411
|
["one", "1"],
|
|
5397
5412
|
["two", "2"],
|
|
@@ -5403,17 +5418,17 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5403
5418
|
["eight", "8"],
|
|
5404
5419
|
["nine", "9"],
|
|
5405
5420
|
["ten", "10"]
|
|
5406
|
-
]),
|
|
5421
|
+
]), Ml = (e) => {
|
|
5407
5422
|
const t = e.toLowerCase();
|
|
5408
5423
|
return lh.get(t) || t;
|
|
5409
5424
|
}, ch = (e) => {
|
|
5410
5425
|
const t = [];
|
|
5411
|
-
for (const n of e.matchAll(
|
|
5426
|
+
for (const n of e.matchAll(Ol)) {
|
|
5412
5427
|
const r = n[0], i = n.index ?? 0;
|
|
5413
5428
|
t.push({
|
|
5414
5429
|
id: `speech-token-${t.length}`,
|
|
5415
5430
|
text: r,
|
|
5416
|
-
normalized:
|
|
5431
|
+
normalized: Ml(r),
|
|
5417
5432
|
start: i,
|
|
5418
5433
|
end: i + r.length,
|
|
5419
5434
|
sourceStart: i,
|
|
@@ -5435,8 +5450,8 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5435
5450
|
};
|
|
5436
5451
|
}, $o = (e) => {
|
|
5437
5452
|
if (!e || /^<[^>]+>$/.test(e.trim())) return null;
|
|
5438
|
-
const t = e.match(
|
|
5439
|
-
return t?.[0] ?
|
|
5453
|
+
const t = e.match(Ol);
|
|
5454
|
+
return t?.[0] ? Ml(t[0]) : null;
|
|
5440
5455
|
}, uh = (e, t) => e.find((n) => n.start <= t && t < n.end) || null, dh = (e, t) => {
|
|
5441
5456
|
const n = e.rawToSpokenOffsetMap.get(t);
|
|
5442
5457
|
if (n !== void 0) return n;
|
|
@@ -5726,7 +5741,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5726
5741
|
offset: i
|
|
5727
5742
|
}), r = !0, e.lastCharWasWhitespace = !1;
|
|
5728
5743
|
}
|
|
5729
|
-
},
|
|
5744
|
+
}, Oh = (e, t) => {
|
|
5730
5745
|
for (let n = 0; n < t.text.length; n++) {
|
|
5731
5746
|
const r = t.text[n], i = /\s/.test(r), o = t.map.get(n) || null, s = o?.node || e.lastMapped?.node || null, a = o?.offset ?? e.lastMapped?.offset ?? 0, l = o ? {
|
|
5732
5747
|
node: o.node,
|
|
@@ -5754,7 +5769,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5754
5769
|
offset: a
|
|
5755
5770
|
});
|
|
5756
5771
|
}
|
|
5757
|
-
},
|
|
5772
|
+
}, Mh = (e) => {
|
|
5758
5773
|
if (typeof DOMParser > "u") return "";
|
|
5759
5774
|
const t = new DOMParser().parseFromString(e, "application/xml");
|
|
5760
5775
|
if (t.getElementsByTagName("parsererror").length > 0) return "";
|
|
@@ -5782,18 +5797,18 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5782
5797
|
if (!(Pl(l) || $l(l)))
|
|
5783
5798
|
for (const c of Array.from(l.childNodes)) i(c);
|
|
5784
5799
|
};
|
|
5785
|
-
i(e),
|
|
5800
|
+
i(e), Wl(r);
|
|
5786
5801
|
const o = G(r.chars.join(""));
|
|
5787
5802
|
if (o) return {
|
|
5788
5803
|
text: o,
|
|
5789
5804
|
map: r.map
|
|
5790
5805
|
};
|
|
5791
|
-
const s =
|
|
5806
|
+
const s = Mh(t);
|
|
5792
5807
|
return s ? {
|
|
5793
5808
|
text: s,
|
|
5794
5809
|
map: /* @__PURE__ */ new Map()
|
|
5795
5810
|
} : Jr(e, n);
|
|
5796
|
-
},
|
|
5811
|
+
}, Wl = (e) => {
|
|
5797
5812
|
for (; e.chars.length > 0 && /\s/.test(e.chars[e.chars.length - 1]); )
|
|
5798
5813
|
e.chars.pop(), e.position--, e.map.delete(e.position);
|
|
5799
5814
|
}, Rh = (e, t) => {
|
|
@@ -5820,7 +5835,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5820
5835
|
if (p) {
|
|
5821
5836
|
a();
|
|
5822
5837
|
const g = Ih(f, p, t);
|
|
5823
|
-
|
|
5838
|
+
Oh(n, g);
|
|
5824
5839
|
const m = G(g.text);
|
|
5825
5840
|
r.push({
|
|
5826
5841
|
type: "math",
|
|
@@ -5833,7 +5848,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5833
5848
|
for (const g of Array.from(f.childNodes)) l(g);
|
|
5834
5849
|
};
|
|
5835
5850
|
for (const u of Array.from(e.childNodes)) l(u);
|
|
5836
|
-
|
|
5851
|
+
Wl(n), a();
|
|
5837
5852
|
const c = n.chars.join("");
|
|
5838
5853
|
for (; n.map.has(c.length); ) n.map.delete(c.length);
|
|
5839
5854
|
return {
|
|
@@ -5932,7 +5947,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
5932
5947
|
visibleText: n,
|
|
5933
5948
|
plainSpeechText: G(s.join(" "))
|
|
5934
5949
|
};
|
|
5935
|
-
},
|
|
5950
|
+
}, Wh = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Hh = "sre-v1", Fh = 256, so = (e) => Array.isArray(e) ? `array:[${e.map(so).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${so(n)}`).join(",")}}` : e === null ? "null:null" : typeof e > "u" ? "undefined:" : typeof e == "function" ? `function:${e.name || "anonymous"}` : typeof e == "symbol" ? `symbol:${String(e)}` : typeof e == "bigint" ? `bigint:${e.toString()}` : typeof e == "number" ? Number.isFinite(e) ? `number:${e}` : `number:${String(e)}` : `${typeof e}:${JSON.stringify(e)}`, Ds = (e, t, n, r) => `${Hh}\0${Wh(e)}\0${t ? "ssml" : "plain"}\0${so(n ?? null)}\0${r}`, Bh = (e = {}) => {
|
|
5936
5951
|
const t = Math.max(1, e.maxEntries ?? Fh), n = e.resolve ?? ((o, s) => vl([o], s)), r = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
5937
5952
|
for (r.delete(o), r.set(o, s); r.size > t; ) {
|
|
5938
5953
|
const a = r.keys().next().value;
|
|
@@ -6037,7 +6052,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6037
6052
|
quality: "region",
|
|
6038
6053
|
confidence: e.confidence,
|
|
6039
6054
|
reason: e.reason
|
|
6040
|
-
},
|
|
6055
|
+
}, Hl = /* @__PURE__ */ new Map([
|
|
6041
6056
|
["mi", "mjx-mi"],
|
|
6042
6057
|
["mn", "mjx-mn"],
|
|
6043
6058
|
["mo", "mjx-mo"],
|
|
@@ -6057,7 +6072,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6057
6072
|
t = t.parentElement;
|
|
6058
6073
|
}
|
|
6059
6074
|
return null;
|
|
6060
|
-
},
|
|
6075
|
+
}, Ws = (e) => !e || li(e) ? !1 : !Pn(e), jl = (e) => {
|
|
6061
6076
|
const t = e.getBoundingClientRect?.();
|
|
6062
6077
|
return !!(t && t.width > 0 && t.height > 0);
|
|
6063
6078
|
}, lo = (e) => {
|
|
@@ -6070,12 +6085,12 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6070
6085
|
}, Gl = (e, t) => {
|
|
6071
6086
|
if (e.length === 0 || e.length !== t.length) return !1;
|
|
6072
6087
|
for (let n = 0; n < e.length; n += 1) {
|
|
6073
|
-
const r =
|
|
6088
|
+
const r = Hl.get(e[n].localName.toLowerCase());
|
|
6074
6089
|
if (!r || t[n].localName.toLowerCase() !== r) return !1;
|
|
6075
6090
|
}
|
|
6076
6091
|
return !0;
|
|
6077
6092
|
}, qh = (e, t) => {
|
|
6078
|
-
if (!e || !
|
|
6093
|
+
if (!e || !Hl.has(e.localName.toLowerCase()) || t.querySelector(Bl)) return null;
|
|
6079
6094
|
const n = lo(e), r = t.querySelector("mjx-math");
|
|
6080
6095
|
if (!n || !r) return null;
|
|
6081
6096
|
const i = Array.from(n.querySelectorAll(ao)), o = i.indexOf(e);
|
|
@@ -6109,13 +6124,13 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6109
6124
|
element: n
|
|
6110
6125
|
};
|
|
6111
6126
|
}
|
|
6112
|
-
return e.type === "text-range" ?
|
|
6127
|
+
return e.type === "text-range" ? Ws(e.node.parentElement) ? {
|
|
6113
6128
|
type: "text-range",
|
|
6114
6129
|
quality: "semantic-token",
|
|
6115
6130
|
node: e.node,
|
|
6116
6131
|
startOffset: e.startOffset,
|
|
6117
6132
|
endOffset: e.endOffset
|
|
6118
|
-
} : null :
|
|
6133
|
+
} : null : Ws(e.element) ? {
|
|
6119
6134
|
type: "element",
|
|
6120
6135
|
quality: e.quality === "region-fallback" ? "expression" : "semantic-token",
|
|
6121
6136
|
element: e.element
|
|
@@ -6160,7 +6175,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6160
6175
|
}
|
|
6161
6176
|
}, Zh = (e, t) => {
|
|
6162
6177
|
if (!e.catalogAlignment || t.chunkSpokenStart === null) return null;
|
|
6163
|
-
const n =
|
|
6178
|
+
const n = Wf(e.catalogAlignment, t.chunkSpokenStart);
|
|
6164
6179
|
if (!n) return null;
|
|
6165
6180
|
const r = Vl(e.visibleMap, n.start, n.end);
|
|
6166
6181
|
return r ? {
|
|
@@ -6176,7 +6191,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6176
6191
|
type: "element",
|
|
6177
6192
|
quality: "region",
|
|
6178
6193
|
element: e.regionElement
|
|
6179
|
-
} : null,
|
|
6194
|
+
} : null, Hs = (e, t = e.chunk.mathAlignments) => {
|
|
6180
6195
|
if (t.length !== 1) return null;
|
|
6181
6196
|
const n = t[0]?.alignment.result.fallbackTarget;
|
|
6182
6197
|
return n ? e.renderedMathTargetResolver(n) : null;
|
|
@@ -6212,7 +6227,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6212
6227
|
const o = i.chunk.mathAlignments, s = o.length === 1 ? o[0].element : null, a = s ? i.mathCapabilityByElement.get(s) : null;
|
|
6213
6228
|
return bn(a === "expression" ? {
|
|
6214
6229
|
semanticTarget: null,
|
|
6215
|
-
expressionTarget:
|
|
6230
|
+
expressionTarget: Hs(i),
|
|
6216
6231
|
regionTarget: i.regionTarget,
|
|
6217
6232
|
confidence: 0.5,
|
|
6218
6233
|
reason: "initial expression (sticky expression mode)"
|
|
@@ -6257,7 +6272,7 @@ var Cf = /* @__PURE__ */ new Set([
|
|
|
6257
6272
|
}
|
|
6258
6273
|
return bn({
|
|
6259
6274
|
semanticTarget: null,
|
|
6260
|
-
expressionTarget: f ??
|
|
6275
|
+
expressionTarget: f ?? Hs(i, l),
|
|
6261
6276
|
regionTarget: i.regionTarget,
|
|
6262
6277
|
confidence: s.confidence,
|
|
6263
6278
|
reason: s.reason
|
|
@@ -7074,7 +7089,7 @@ var Xl = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7074
7089
|
}), T = a(f, m), I = T ? Qr({
|
|
7075
7090
|
mathElement: T,
|
|
7076
7091
|
speechText: p.content
|
|
7077
|
-
}) : void 0,
|
|
7092
|
+
}) : void 0, W = I ? void 0 : l(f).map((w) => ({
|
|
7078
7093
|
element: w,
|
|
7079
7094
|
alignment: Qr({
|
|
7080
7095
|
mathElement: w,
|
|
@@ -7090,7 +7105,7 @@ var Xl = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7090
7105
|
playbackMode: b.playbackMode,
|
|
7091
7106
|
alignment: b,
|
|
7092
7107
|
mathAlignment: I,
|
|
7093
|
-
mathAlignments:
|
|
7108
|
+
mathAlignments: W,
|
|
7094
7109
|
visibleMap: g.map
|
|
7095
7110
|
});
|
|
7096
7111
|
return;
|
|
@@ -7492,7 +7507,7 @@ function Jl(e) {
|
|
|
7492
7507
|
} catch {
|
|
7493
7508
|
}
|
|
7494
7509
|
}
|
|
7495
|
-
var
|
|
7510
|
+
var Og = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Jl("PUBLIC_BUILDER_ORIGIN_URL") || Kl, bp = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Jl("PUBLIC_BUILDER_BUNDLE_URL") || _p, yp = {
|
|
7496
7511
|
retryDelayMs: 3e3,
|
|
7497
7512
|
timeoutMs: 12e4
|
|
7498
7513
|
}, { entries: Zl, setPrototypeOf: Us, isFrozen: Tp, getPrototypeOf: Sp, getOwnPropertyDescriptor: wp } = Object, { freeze: fe, seal: Re, create: nr } = Object, { apply: fo, construct: ho } = typeof Reflect < "u" && Reflect;
|
|
@@ -7510,7 +7525,7 @@ ho || (ho = function(t) {
|
|
|
7510
7525
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) r[i - 1] = arguments[i];
|
|
7511
7526
|
return new t(...r);
|
|
7512
7527
|
});
|
|
7513
|
-
var Vn = he(Array.prototype.forEach), kp = he(Array.prototype.lastIndexOf), js = he(Array.prototype.pop), qn = he(Array.prototype.push), Ep = he(Array.prototype.splice), $r = he(String.prototype.toLowerCase),
|
|
7528
|
+
var Vn = he(Array.prototype.forEach), kp = he(Array.prototype.lastIndexOf), js = he(Array.prototype.pop), qn = he(Array.prototype.push), Ep = he(Array.prototype.splice), $r = he(String.prototype.toLowerCase), Oi = he(String.prototype.toString), Mi = he(String.prototype.match), yn = he(String.prototype.replace), xp = he(String.prototype.indexOf), Ap = he(String.prototype.trim), ze = he(Object.prototype.hasOwnProperty), ce = he(RegExp.prototype.test), Yn = Cp(TypeError);
|
|
7514
7529
|
function he(e) {
|
|
7515
7530
|
return function(t) {
|
|
7516
7531
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -7524,7 +7539,7 @@ function Cp(e) {
|
|
|
7524
7539
|
return ho(e, n);
|
|
7525
7540
|
};
|
|
7526
7541
|
}
|
|
7527
|
-
function
|
|
7542
|
+
function O(e, t) {
|
|
7528
7543
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $r;
|
|
7529
7544
|
Us && Us(e, null);
|
|
7530
7545
|
let r = t.length;
|
|
@@ -7538,13 +7553,13 @@ function M(e, t) {
|
|
|
7538
7553
|
}
|
|
7539
7554
|
return e;
|
|
7540
7555
|
}
|
|
7541
|
-
function
|
|
7556
|
+
function Op(e) {
|
|
7542
7557
|
for (let t = 0; t < e.length; t++) ze(e, t) || (e[t] = null);
|
|
7543
7558
|
return e;
|
|
7544
7559
|
}
|
|
7545
7560
|
function Ve(e) {
|
|
7546
7561
|
const t = nr(null);
|
|
7547
|
-
for (const [n, r] of Zl(e)) ze(e, n) && (Array.isArray(r) ? t[n] =
|
|
7562
|
+
for (const [n, r] of Zl(e)) ze(e, n) && (Array.isArray(r) ? t[n] = Op(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ve(r) : t[n] = r);
|
|
7548
7563
|
return t;
|
|
7549
7564
|
}
|
|
7550
7565
|
function Xn(e, t) {
|
|
@@ -7755,7 +7770,7 @@ var Gs = fe([
|
|
|
7755
7770
|
"feSpotLight",
|
|
7756
7771
|
"feTile",
|
|
7757
7772
|
"feTurbulence"
|
|
7758
|
-
]),
|
|
7773
|
+
]), Mp = fe([
|
|
7759
7774
|
"animate",
|
|
7760
7775
|
"color-profile",
|
|
7761
7776
|
"cursor",
|
|
@@ -8193,11 +8208,11 @@ var Gs = fe([
|
|
|
8193
8208
|
"xlink:title",
|
|
8194
8209
|
"xml:space",
|
|
8195
8210
|
"xmlns:xlink"
|
|
8196
|
-
]), Rp = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Lp = Re(/<%[\w\W]*|[\w\W]*%>/gm), Np = Re(/\$\{[\w\W]*/gm), Pp = Re(/^data-[\-\w.\u00B7-\uFFFF]+$/), $p = Re(/^aria-[\-\w]+$/), Ql = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), zp = Re(/^(?:\w+script|data):/i), Dp = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ec = Re(/^html$/i),
|
|
8211
|
+
]), Rp = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Lp = Re(/<%[\w\W]*|[\w\W]*%>/gm), Np = Re(/\$\{[\w\W]*/gm), Pp = Re(/^data-[\-\w.\u00B7-\uFFFF]+$/), $p = Re(/^aria-[\-\w]+$/), Ql = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), zp = Re(/^(?:\w+script|data):/i), Dp = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ec = Re(/^html$/i), Wp = Re(/^[a-z][.\w]*(-[.\w]+)+$/i), Xs = /* @__PURE__ */ Object.freeze({
|
|
8197
8212
|
__proto__: null,
|
|
8198
8213
|
ARIA_ATTR: $p,
|
|
8199
8214
|
ATTR_WHITESPACE: Dp,
|
|
8200
|
-
CUSTOM_ELEMENT:
|
|
8215
|
+
CUSTOM_ELEMENT: Wp,
|
|
8201
8216
|
DATA_ATTR: Pp,
|
|
8202
8217
|
DOCTYPE_NAME: ec,
|
|
8203
8218
|
ERB_EXPR: Lp,
|
|
@@ -8211,7 +8226,7 @@ var Gs = fe([
|
|
|
8211
8226
|
progressingInstruction: 7,
|
|
8212
8227
|
comment: 8,
|
|
8213
8228
|
document: 9
|
|
8214
|
-
},
|
|
8229
|
+
}, Hp = function() {
|
|
8215
8230
|
return typeof window > "u" ? null : window;
|
|
8216
8231
|
}, Fp = function(t, n) {
|
|
8217
8232
|
if (typeof t != "object" || typeof t.createPolicy != "function") return null;
|
|
@@ -8245,12 +8260,12 @@ var Gs = fe([
|
|
|
8245
8260
|
};
|
|
8246
8261
|
};
|
|
8247
8262
|
function tc() {
|
|
8248
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
8263
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Hp();
|
|
8249
8264
|
const t = (k) => tc(k);
|
|
8250
8265
|
if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Kn.document || !e.Element)
|
|
8251
8266
|
return t.isSupported = !1, t;
|
|
8252
8267
|
let { document: n } = e;
|
|
8253
|
-
const r = n, i = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: l, NodeFilter: c, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: g } = e, m = l.prototype, b = Xn(m, "cloneNode"), T = Xn(m, "remove"), I = Xn(m, "nextSibling"),
|
|
8268
|
+
const r = n, i = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: l, NodeFilter: c, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: g } = e, m = l.prototype, b = Xn(m, "cloneNode"), T = Xn(m, "remove"), I = Xn(m, "nextSibling"), W = Xn(m, "childNodes"), J = Xn(m, "parentNode");
|
|
8254
8269
|
if (typeof s == "function") {
|
|
8255
8270
|
const k = n.createElement("template");
|
|
8256
8271
|
k.content && k.content.ownerDocument && (n = k.content.ownerDocument);
|
|
@@ -8261,7 +8276,7 @@ function tc() {
|
|
|
8261
8276
|
t.isSupported = typeof Zl == "function" && typeof J == "function" && le && le.createHTMLDocument !== void 0;
|
|
8262
8277
|
const { MUSTACHE_EXPR: It, ERB_EXPR: Rt, TMPLIT_EXPR: Lt, DATA_ATTR: ui, ARIA_ATTR: di, IS_SCRIPT_OR_DATA: mr, ATTR_WHITESPACE: vr, CUSTOM_ELEMENT: fi } = Xs;
|
|
8263
8278
|
let { IS_ALLOWED_URI: x } = Xs, P = null;
|
|
8264
|
-
const yt =
|
|
8279
|
+
const yt = O({}, [
|
|
8265
8280
|
...Gs,
|
|
8266
8281
|
...Ii,
|
|
8267
8282
|
...Ri,
|
|
@@ -8269,7 +8284,7 @@ function tc() {
|
|
|
8269
8284
|
...Vs
|
|
8270
8285
|
]);
|
|
8271
8286
|
let U = null;
|
|
8272
|
-
const $n =
|
|
8287
|
+
const $n = O({}, [
|
|
8273
8288
|
...qs,
|
|
8274
8289
|
...Ni,
|
|
8275
8290
|
...Ys,
|
|
@@ -8312,7 +8327,7 @@ function tc() {
|
|
|
8312
8327
|
let ie = !0, be = !0, et = !1, dn = !0, tt = !1, Pt = !0, Ne = !1, $t = !1, fn = !1, Tt = !1, nt = !1, St = !1, hn = !0, rt = !1;
|
|
8313
8328
|
const hi = "user-content-";
|
|
8314
8329
|
let zn = !0, zt = !1, it = {}, ye = null;
|
|
8315
|
-
const Dn =
|
|
8330
|
+
const Dn = O({}, [
|
|
8316
8331
|
"annotation-xml",
|
|
8317
8332
|
"audio",
|
|
8318
8333
|
"colgroup",
|
|
@@ -8340,7 +8355,7 @@ function tc() {
|
|
|
8340
8355
|
"xmp"
|
|
8341
8356
|
]);
|
|
8342
8357
|
let K = null;
|
|
8343
|
-
const ne =
|
|
8358
|
+
const ne = O({}, [
|
|
8344
8359
|
"audio",
|
|
8345
8360
|
"video",
|
|
8346
8361
|
"img",
|
|
@@ -8349,7 +8364,7 @@ function tc() {
|
|
|
8349
8364
|
"track"
|
|
8350
8365
|
]);
|
|
8351
8366
|
let ot = null;
|
|
8352
|
-
const wt =
|
|
8367
|
+
const wt = O({}, [
|
|
8353
8368
|
"alt",
|
|
8354
8369
|
"class",
|
|
8355
8370
|
"for",
|
|
@@ -8365,20 +8380,20 @@ function tc() {
|
|
|
8365
8380
|
"style",
|
|
8366
8381
|
"xmlns"
|
|
8367
8382
|
]), pn = "http://www.w3.org/1998/Math/MathML", gn = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml";
|
|
8368
|
-
let st = Te,
|
|
8369
|
-
const
|
|
8383
|
+
let st = Te, Wn = !1, je = null;
|
|
8384
|
+
const Hn = O({}, [
|
|
8370
8385
|
pn,
|
|
8371
8386
|
gn,
|
|
8372
8387
|
Te
|
|
8373
|
-
],
|
|
8374
|
-
let _r =
|
|
8388
|
+
], Oi);
|
|
8389
|
+
let _r = O({}, [
|
|
8375
8390
|
"mi",
|
|
8376
8391
|
"mo",
|
|
8377
8392
|
"mn",
|
|
8378
8393
|
"ms",
|
|
8379
8394
|
"mtext"
|
|
8380
|
-
]), br =
|
|
8381
|
-
const uc =
|
|
8395
|
+
]), br = O({}, ["annotation-xml"]);
|
|
8396
|
+
const uc = O({}, [
|
|
8382
8397
|
"title",
|
|
8383
8398
|
"style",
|
|
8384
8399
|
"font",
|
|
@@ -8393,11 +8408,11 @@ function tc() {
|
|
|
8393
8408
|
}, pi = function() {
|
|
8394
8409
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8395
8410
|
if (!(mn && mn === d)) {
|
|
8396
|
-
if ((!d || typeof d != "object") && (d = {}), d = Ve(d), Fn = dc.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? fc : d.PARSER_MEDIA_TYPE, Z = Fn === "application/xhtml+xml" ?
|
|
8411
|
+
if ((!d || typeof d != "object") && (d = {}), d = Ve(d), Fn = dc.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? fc : d.PARSER_MEDIA_TYPE, Z = Fn === "application/xhtml+xml" ? Oi : $r, P = ze(d, "ALLOWED_TAGS") ? O({}, d.ALLOWED_TAGS, Z) : yt, U = ze(d, "ALLOWED_ATTR") ? O({}, d.ALLOWED_ATTR, Z) : $n, je = ze(d, "ALLOWED_NAMESPACES") ? O({}, d.ALLOWED_NAMESPACES, Oi) : Hn, ot = ze(d, "ADD_URI_SAFE_ATTR") ? O(Ve(wt), d.ADD_URI_SAFE_ATTR, Z) : wt, K = ze(d, "ADD_DATA_URI_TAGS") ? O(Ve(ne), d.ADD_DATA_URI_TAGS, Z) : ne, ye = ze(d, "FORBID_CONTENTS") ? O({}, d.FORBID_CONTENTS, Z) : Dn, Nt = ze(d, "FORBID_TAGS") ? O({}, d.FORBID_TAGS, Z) : Ve({}), un = ze(d, "FORBID_ATTR") ? O({}, d.FORBID_ATTR, Z) : Ve({}), it = ze(d, "USE_PROFILES") ? d.USE_PROFILES : !1, ie = d.ALLOW_ARIA_ATTR !== !1, be = d.ALLOW_DATA_ATTR !== !1, et = d.ALLOW_UNKNOWN_PROTOCOLS || !1, dn = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, tt = d.SAFE_FOR_TEMPLATES || !1, Pt = d.SAFE_FOR_XML !== !1, Ne = d.WHOLE_DOCUMENT || !1, Tt = d.RETURN_DOM || !1, nt = d.RETURN_DOM_FRAGMENT || !1, St = d.RETURN_TRUSTED_TYPE || !1, fn = d.FORCE_BODY || !1, hn = d.SANITIZE_DOM !== !1, rt = d.SANITIZE_NAMED_PROPS || !1, zn = d.KEEP_CONTENT !== !1, zt = d.IN_PLACE || !1, x = d.ALLOWED_URI_REGEXP || Ql, st = d.NAMESPACE || Te, _r = d.MATHML_TEXT_INTEGRATION_POINTS || _r, br = d.HTML_INTEGRATION_POINTS || br, F = d.CUSTOM_ELEMENT_HANDLING || nr(null), d.CUSTOM_ELEMENT_HANDLING && zo(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && zo(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), tt && (be = !1), nt && (Tt = !0), it && (P = O({}, Vs), U = nr(null), it.html === !0 && (O(P, Gs), O(U, qs)), it.svg === !0 && (O(P, Ii), O(U, Ni), O(U, Ar)), it.svgFilters === !0 && (O(P, Ri), O(U, Ni), O(U, Ar)), it.mathMl === !0 && (O(P, Li), O(U, Ys), O(U, Ar))), Ue.tagCheck = null, Ue.attributeCheck = null, d.ADD_TAGS && (typeof d.ADD_TAGS == "function" ? Ue.tagCheck = d.ADD_TAGS : (P === yt && (P = Ve(P)), O(P, d.ADD_TAGS, Z))), d.ADD_ATTR && (typeof d.ADD_ATTR == "function" ? Ue.attributeCheck = d.ADD_ATTR : (U === $n && (U = Ve(U)), O(U, d.ADD_ATTR, Z))), d.ADD_URI_SAFE_ATTR && O(ot, d.ADD_URI_SAFE_ATTR, Z), d.FORBID_CONTENTS && (ye === Dn && (ye = Ve(ye)), O(ye, d.FORBID_CONTENTS, Z)), d.ADD_FORBID_CONTENTS && (ye === Dn && (ye = Ve(ye)), O(ye, d.ADD_FORBID_CONTENTS, Z)), zn && (P["#text"] = !0), Ne && O(P, [
|
|
8397
8412
|
"html",
|
|
8398
8413
|
"head",
|
|
8399
8414
|
"body"
|
|
8400
|
-
]), P.table && (
|
|
8415
|
+
]), P.table && (O(P, ["tbody"]), delete Nt.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
8401
8416
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function") throw Yn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
8402
8417
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Yn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
8403
8418
|
w = d.TRUSTED_TYPES_POLICY, X = w.createHTML("");
|
|
@@ -8405,18 +8420,18 @@ function tc() {
|
|
|
8405
8420
|
w === void 0 && (w = Fp(g, i)), w !== null && typeof X == "string" && (X = w.createHTML(""));
|
|
8406
8421
|
fe && fe(d), mn = d;
|
|
8407
8422
|
}
|
|
8408
|
-
}, Do =
|
|
8423
|
+
}, Do = O({}, [
|
|
8409
8424
|
...Ii,
|
|
8410
8425
|
...Ri,
|
|
8411
|
-
...
|
|
8412
|
-
]),
|
|
8426
|
+
...Mp
|
|
8427
|
+
]), Wo = O({}, [...Li, ...Ip]), pc = function(d) {
|
|
8413
8428
|
let _ = J(d);
|
|
8414
8429
|
(!_ || !_.tagName) && (_ = {
|
|
8415
8430
|
namespaceURI: st,
|
|
8416
8431
|
tagName: "template"
|
|
8417
8432
|
});
|
|
8418
8433
|
const S = $r(d.tagName), j = $r(_.tagName);
|
|
8419
|
-
return je[d.namespaceURI] ? d.namespaceURI === gn ? _.namespaceURI === Te ? S === "svg" : _.namespaceURI === pn ? S === "svg" && (j === "annotation-xml" || _r[j]) : !!Do[S] : d.namespaceURI === pn ? _.namespaceURI === Te ? S === "math" : _.namespaceURI === gn ? S === "math" && br[j] : !!
|
|
8434
|
+
return je[d.namespaceURI] ? d.namespaceURI === gn ? _.namespaceURI === Te ? S === "svg" : _.namespaceURI === pn ? S === "svg" && (j === "annotation-xml" || _r[j]) : !!Do[S] : d.namespaceURI === pn ? _.namespaceURI === Te ? S === "math" : _.namespaceURI === gn ? S === "math" && br[j] : !!Wo[S] : d.namespaceURI === Te ? _.namespaceURI === gn && !br[j] || _.namespaceURI === pn && !_r[j] ? !1 : !Wo[S] && (uc[S] || !Do[S]) : !!(Fn === "application/xhtml+xml" && je[d.namespaceURI]) : !1;
|
|
8420
8435
|
}, Pe = function(d) {
|
|
8421
8436
|
qn(t.removed, { element: d });
|
|
8422
8437
|
try {
|
|
@@ -8444,11 +8459,11 @@ function tc() {
|
|
|
8444
8459
|
_.setAttribute(d, "");
|
|
8445
8460
|
} catch {
|
|
8446
8461
|
}
|
|
8447
|
-
},
|
|
8462
|
+
}, Ho = function(d) {
|
|
8448
8463
|
let _ = null, S = null;
|
|
8449
8464
|
if (fn) d = "<remove></remove>" + d;
|
|
8450
8465
|
else {
|
|
8451
|
-
const Se =
|
|
8466
|
+
const Se = Mi(d, /^[\r\n\t ]+/);
|
|
8452
8467
|
S = Se && Se[0];
|
|
8453
8468
|
}
|
|
8454
8469
|
Fn === "application/xhtml+xml" && st === Te && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
@@ -8460,12 +8475,12 @@ function tc() {
|
|
|
8460
8475
|
if (!_ || !_.documentElement) {
|
|
8461
8476
|
_ = le.createDocument(st, "template", null);
|
|
8462
8477
|
try {
|
|
8463
|
-
_.documentElement.innerHTML =
|
|
8478
|
+
_.documentElement.innerHTML = Wn ? X : j;
|
|
8464
8479
|
} catch {
|
|
8465
8480
|
}
|
|
8466
8481
|
}
|
|
8467
|
-
const
|
|
8468
|
-
return d && S &&
|
|
8482
|
+
const H = _.body || _.documentElement;
|
|
8483
|
+
return d && S && H.insertBefore(n.createTextNode(S), H.childNodes[0] || null), st === Te ? cn.call(_, Ne ? "html" : "body")[0] : Ne ? _.documentElement : H;
|
|
8469
8484
|
}, Fo = function(d) {
|
|
8470
8485
|
return an.call(d.ownerDocument || d, d, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
8471
8486
|
}, gi = function(d) {
|
|
@@ -8492,11 +8507,11 @@ function tc() {
|
|
|
8492
8507
|
if (!Nt[S] && jo(S) && (F.tagNameCheck instanceof RegExp && ce(F.tagNameCheck, S) || F.tagNameCheck instanceof Function && F.tagNameCheck(S)))
|
|
8493
8508
|
return !1;
|
|
8494
8509
|
if (zn && !ye[S]) {
|
|
8495
|
-
const j = J(d) || d.parentNode,
|
|
8496
|
-
if (
|
|
8497
|
-
const Se =
|
|
8510
|
+
const j = J(d) || d.parentNode, H = W(d) || d.childNodes;
|
|
8511
|
+
if (H && j) {
|
|
8512
|
+
const Se = H.length;
|
|
8498
8513
|
for (let we = Se - 1; we >= 0; --we) {
|
|
8499
|
-
const ee = b(
|
|
8514
|
+
const ee = b(H[we], !0);
|
|
8500
8515
|
ee.__removalCount = (d.__removalCount || 0) + 1, j.insertBefore(ee, I(d));
|
|
8501
8516
|
}
|
|
8502
8517
|
}
|
|
@@ -8531,7 +8546,7 @@ function tc() {
|
|
|
8531
8546
|
}
|
|
8532
8547
|
return !0;
|
|
8533
8548
|
}, jo = function(d) {
|
|
8534
|
-
return d !== "annotation-xml" &&
|
|
8549
|
+
return d !== "annotation-xml" && Mi(d, fi);
|
|
8535
8550
|
}, Go = function(d) {
|
|
8536
8551
|
at(te.beforeSanitizeAttributes, d, null);
|
|
8537
8552
|
const { attributes: _ } = d;
|
|
@@ -8545,23 +8560,23 @@ function tc() {
|
|
|
8545
8560
|
};
|
|
8546
8561
|
let j = _.length;
|
|
8547
8562
|
for (; j--; ) {
|
|
8548
|
-
const { name:
|
|
8549
|
-
let re =
|
|
8550
|
-
if (S.attrName = ee, S.attrValue = re, S.keepAttr = !0, S.forceKeepAttr = void 0, at(te.uponSanitizeAttribute, d, S), re = S.attrValue, rt && (ee === "id" || ee === "name") && (Dt(
|
|
8551
|
-
Dt(
|
|
8563
|
+
const { name: H, namespaceURI: Se, value: we } = _[j], ee = Z(H), Bn = we;
|
|
8564
|
+
let re = H === "value" ? Bn : Ap(Bn);
|
|
8565
|
+
if (S.attrName = ee, S.attrValue = re, S.keepAttr = !0, S.forceKeepAttr = void 0, at(te.uponSanitizeAttribute, d, S), re = S.attrValue, rt && (ee === "id" || ee === "name") && (Dt(H, d), re = hi + re), Pt && ce(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, re)) {
|
|
8566
|
+
Dt(H, d);
|
|
8552
8567
|
continue;
|
|
8553
8568
|
}
|
|
8554
|
-
if (ee === "attributename" &&
|
|
8555
|
-
Dt(
|
|
8569
|
+
if (ee === "attributename" && Mi(re, "href")) {
|
|
8570
|
+
Dt(H, d);
|
|
8556
8571
|
continue;
|
|
8557
8572
|
}
|
|
8558
8573
|
if (S.forceKeepAttr) continue;
|
|
8559
8574
|
if (!S.keepAttr) {
|
|
8560
|
-
Dt(
|
|
8575
|
+
Dt(H, d);
|
|
8561
8576
|
continue;
|
|
8562
8577
|
}
|
|
8563
8578
|
if (!dn && ce(/\/>/i, re)) {
|
|
8564
|
-
Dt(
|
|
8579
|
+
Dt(H, d);
|
|
8565
8580
|
continue;
|
|
8566
8581
|
}
|
|
8567
8582
|
tt && Vn([
|
|
@@ -8573,7 +8588,7 @@ function tc() {
|
|
|
8573
8588
|
});
|
|
8574
8589
|
const qo = Z(d.nodeName);
|
|
8575
8590
|
if (!Uo(qo, ee, re)) {
|
|
8576
|
-
Dt(
|
|
8591
|
+
Dt(H, d);
|
|
8577
8592
|
continue;
|
|
8578
8593
|
}
|
|
8579
8594
|
if (w && typeof g == "object" && typeof g.getAttributeType == "function" && !Se) switch (g.getAttributeType(qo, ee)) {
|
|
@@ -8585,9 +8600,9 @@ function tc() {
|
|
|
8585
8600
|
break;
|
|
8586
8601
|
}
|
|
8587
8602
|
if (re !== Bn) try {
|
|
8588
|
-
Se ? d.setAttributeNS(Se,
|
|
8603
|
+
Se ? d.setAttributeNS(Se, H, re) : d.setAttribute(H, re), gi(d) ? Pe(d) : js(t.removed);
|
|
8589
8604
|
} catch {
|
|
8590
|
-
Dt(
|
|
8605
|
+
Dt(H, d);
|
|
8591
8606
|
}
|
|
8592
8607
|
}
|
|
8593
8608
|
at(te.afterSanitizeAttributes, d, null);
|
|
@@ -8599,8 +8614,8 @@ function tc() {
|
|
|
8599
8614
|
at(te.afterSanitizeShadowDOM, d, null);
|
|
8600
8615
|
};
|
|
8601
8616
|
return t.sanitize = function(k) {
|
|
8602
|
-
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, S = null, j = null,
|
|
8603
|
-
if (
|
|
8617
|
+
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, S = null, j = null, H = null;
|
|
8618
|
+
if (Wn = !k, Wn && (k = "<!-->"), typeof k != "string" && !mi(k)) if (typeof k.toString == "function") {
|
|
8604
8619
|
if (k = k.toString(), typeof k != "string") throw Yn("dirty is not a string, aborting");
|
|
8605
8620
|
} else throw Yn("toString is not a function");
|
|
8606
8621
|
if (!t.isSupported) return k;
|
|
@@ -8610,10 +8625,10 @@ function tc() {
|
|
|
8610
8625
|
if (!P[ee] || Nt[ee]) throw Yn("root node is forbidden and cannot be sanitized in-place");
|
|
8611
8626
|
}
|
|
8612
8627
|
} else if (k instanceof a)
|
|
8613
|
-
_ =
|
|
8628
|
+
_ = Ho("<!---->"), S = _.ownerDocument.importNode(k, !0), S.nodeType === Kn.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? _ = S : _.appendChild(S);
|
|
8614
8629
|
else {
|
|
8615
8630
|
if (!Tt && !tt && !Ne && k.indexOf("<") === -1) return w && St ? w.createHTML(k) : k;
|
|
8616
|
-
if (_ =
|
|
8631
|
+
if (_ = Ho(k), !_) return Tt ? null : St ? X : "";
|
|
8617
8632
|
}
|
|
8618
8633
|
_ && fn && Pe(_.firstChild);
|
|
8619
8634
|
const Se = Fo(zt ? k : _);
|
|
@@ -8633,9 +8648,9 @@ function tc() {
|
|
|
8633
8648
|
}), _.innerHTML = ee;
|
|
8634
8649
|
}
|
|
8635
8650
|
if (nt)
|
|
8636
|
-
for (
|
|
8637
|
-
else
|
|
8638
|
-
return (U.shadowroot || U.shadowrootmode) && (
|
|
8651
|
+
for (H = ln.call(_.ownerDocument); _.firstChild; ) H.appendChild(_.firstChild);
|
|
8652
|
+
else H = _;
|
|
8653
|
+
return (U.shadowroot || U.shadowrootmode) && (H = ci.call(r, H, !0)), H;
|
|
8639
8654
|
}
|
|
8640
8655
|
let we = Ne ? _.outerHTML : _.innerHTML;
|
|
8641
8656
|
return Ne && P["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && ce(ec, _.ownerDocument.doctype.name) && (we = "<!DOCTYPE " + _.ownerDocument.doctype.name + `>
|
|
@@ -8666,7 +8681,7 @@ function tc() {
|
|
|
8666
8681
|
te = Ks();
|
|
8667
8682
|
}, t;
|
|
8668
8683
|
}
|
|
8669
|
-
var
|
|
8684
|
+
var Mg = tc(), po;
|
|
8670
8685
|
(function(e) {
|
|
8671
8686
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
8672
8687
|
})(po || (po = {}));
|
|
@@ -8782,7 +8797,7 @@ var Rg = _t("math-rendering", () => bt()), Lg = _t("pie-scoring", () => bt()), N
|
|
|
8782
8797
|
mode: "gather",
|
|
8783
8798
|
role: "student"
|
|
8784
8799
|
}
|
|
8785
|
-
}, zg = _t("asset-handler", () => bt()), Dg = _t("authoring", () => bt()),
|
|
8800
|
+
}, zg = _t("asset-handler", () => bt()), Dg = _t("authoring", () => bt()), Wg = _t("instrumentation-event-bridge", () => bt()), Hg = _t("instrumentation-provider-resolution", () => bt()), Fg = Object.freeze([
|
|
8786
8801
|
"composed",
|
|
8787
8802
|
"engine-ready",
|
|
8788
8803
|
"interactive",
|
|
@@ -8895,14 +8910,14 @@ function lg(e, t) {
|
|
|
8895
8910
|
fa(t, !0), ed(e, ag);
|
|
8896
8911
|
let n = xr(t, "visible", 7, !1), r = xr(t, "toolId", 7, "textToSpeech"), i = xr(t, "coordinator", 7), o = xr(t, "ttsService", 7);
|
|
8897
8912
|
const s = typeof window < "u";
|
|
8898
|
-
let a = /* @__PURE__ */ Y(void 0), l = /* @__PURE__ */ Y(void 0), c = /* @__PURE__ */ Y(!1), u = /* @__PURE__ */ Y(
|
|
8913
|
+
let a = /* @__PURE__ */ Y(void 0), l = /* @__PURE__ */ Y(void 0), c = /* @__PURE__ */ Y(!1), u = /* @__PURE__ */ Y(Ot({
|
|
8899
8914
|
x: s ? window.innerWidth - 320 : 400,
|
|
8900
8915
|
y: 100
|
|
8901
|
-
})), f = /* @__PURE__ */ Y(
|
|
8916
|
+
})), f = /* @__PURE__ */ Y(Ot({
|
|
8902
8917
|
x: 0,
|
|
8903
8918
|
y: 0
|
|
8904
|
-
})), p = /* @__PURE__ */ Y(!1), g = /* @__PURE__ */ Y(!1), m = /* @__PURE__ */ Y(!1), b = /* @__PURE__ */ Y(""), T = /* @__PURE__ */ Y(1), I = /* @__PURE__ */ Y(!1),
|
|
8905
|
-
|
|
8919
|
+
})), p = /* @__PURE__ */ Y(!1), g = /* @__PURE__ */ Y(!1), m = /* @__PURE__ */ Y(!1), b = /* @__PURE__ */ Y(""), T = /* @__PURE__ */ Y(1), I = /* @__PURE__ */ Y(!1), W = /* @__PURE__ */ Y(null), J = /* @__PURE__ */ Y(!1), w = null;
|
|
8920
|
+
Mr(() => {
|
|
8906
8921
|
i() && r() && !y(J) && (i().registerTool(r(), "Text-to-Speech", void 0, eo.MODAL), N(J, !0));
|
|
8907
8922
|
}), Zu(async () => {
|
|
8908
8923
|
if (s) {
|
|
@@ -8910,15 +8925,15 @@ function lg(e, t) {
|
|
|
8910
8925
|
const x = new Ro();
|
|
8911
8926
|
await o().initialize(x), N(p, !0);
|
|
8912
8927
|
} catch (x) {
|
|
8913
|
-
console.error("[TTSTool] Failed to initialize TTS:", x), N(
|
|
8928
|
+
console.error("[TTSTool] Failed to initialize TTS:", x), N(W, x instanceof Error ? x.message : "Failed to initialize TTS", !0);
|
|
8914
8929
|
}
|
|
8915
8930
|
return document.addEventListener("selectionchange", X), () => {
|
|
8916
8931
|
s && (document.removeEventListener("selectionchange", X), o().stop()), w?.(), w = null, i() && r() && i().unregisterTool(r());
|
|
8917
8932
|
};
|
|
8918
8933
|
}
|
|
8919
|
-
}),
|
|
8934
|
+
}), Mr(() => {
|
|
8920
8935
|
i() && y(a) && r() && i().updateToolElement(r(), y(a));
|
|
8921
|
-
}),
|
|
8936
|
+
}), Mr(() => {
|
|
8922
8937
|
if (!n() || !y(a)) {
|
|
8923
8938
|
w?.(), w = null;
|
|
8924
8939
|
return;
|
|
@@ -9021,7 +9036,7 @@ function lg(e, t) {
|
|
|
9021
9036
|
bs(U, (ie) => N(l, ie), () => y(l)), oe(yt);
|
|
9022
9037
|
var $n = ke(yt, 2), F = se($n), Nt = (ie) => {
|
|
9023
9038
|
var be = Jp(), et = ke(se(be), 2), dn = se(et, !0);
|
|
9024
|
-
oe(et), oe(be), Un(() => kr(dn, y(
|
|
9039
|
+
oe(et), oe(be), Un(() => kr(dn, y(W))), me(ie, be);
|
|
9025
9040
|
}, un = (ie) => {
|
|
9026
9041
|
var be = Zp();
|
|
9027
9042
|
me(ie, be);
|
|
@@ -9056,18 +9071,18 @@ function lg(e, t) {
|
|
|
9056
9071
|
var ne = ig();
|
|
9057
9072
|
let ot;
|
|
9058
9073
|
var wt = se(ne), pn = se(wt), gn = (je) => {
|
|
9059
|
-
var
|
|
9060
|
-
me(je,
|
|
9074
|
+
var Hn = Uu("⏸");
|
|
9075
|
+
me(je, Hn);
|
|
9061
9076
|
}, Te = (je) => {
|
|
9062
|
-
var
|
|
9063
|
-
me(je,
|
|
9077
|
+
var Hn = rg();
|
|
9078
|
+
me(je, Hn);
|
|
9064
9079
|
};
|
|
9065
9080
|
_n(pn, (je) => {
|
|
9066
9081
|
y(m) ? je(gn) : je(Te, -1);
|
|
9067
9082
|
}), oe(wt);
|
|
9068
|
-
var st = ke(wt, 2),
|
|
9083
|
+
var st = ke(wt, 2), Wn = se(st, !0);
|
|
9069
9084
|
oe(st), oe(ne), Un(() => {
|
|
9070
|
-
ot = rd(ne, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, ot, { "pie-tool-text-to-speech__status-indicator--paused": y(m) }), kr(
|
|
9085
|
+
ot = rd(ne, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, ot, { "pie-tool-text-to-speech__status-indicator--paused": y(m) }), kr(Wn, y(m) ? "Paused" : "Speaking...");
|
|
9071
9086
|
}), me(K, ne);
|
|
9072
9087
|
};
|
|
9073
9088
|
_n(ye, (K) => {
|
|
@@ -9077,14 +9092,14 @@ function lg(e, t) {
|
|
|
9077
9092
|
}), vn("input", nt, cn), vn("click", hn, le), vn("click", rt, an), vn("click", it, ln), me(ie, be);
|
|
9078
9093
|
};
|
|
9079
9094
|
_n(F, (ie) => {
|
|
9080
|
-
y(
|
|
9095
|
+
y(W) ? ie(Nt) : y(p) ? ie(Ue, -1) : ie(un, 1);
|
|
9081
9096
|
}), oe($n), oe(P), bs(P, (ie) => N(a, ie), () => y(a)), Un(() => id(P, `left: ${y(u).x ?? ""}px; top: ${y(u).y ?? ""}px;`)), vn("pointerdown", P, ci), vn("click", U, Lt), me(x, P);
|
|
9082
9097
|
};
|
|
9083
9098
|
return _n(vr, (x) => {
|
|
9084
9099
|
n() && s && x(fi);
|
|
9085
9100
|
}), me(e, mr), ha(di);
|
|
9086
9101
|
}
|
|
9087
|
-
|
|
9102
|
+
Wu([
|
|
9088
9103
|
"pointerdown",
|
|
9089
9104
|
"click",
|
|
9090
9105
|
"input"
|