@pie-players/pie-tool-answer-eliminator 0.3.20 → 0.3.22
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as u } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var dr, fr;
|
|
4
|
+
((dr = (fr = window).__svelte ?? (fr.__svelte = {})).v ?? (dr.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var wt = {}, M = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var wt = {}, M = Symbol(), ko = Symbol("filename");
|
|
7
|
+
var Ki = Array.isArray, Ui = Array.prototype.indexOf, ze = Array.prototype.includes, Yi = Array.from, Tt = Object.keys, At = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, Xi = Object.prototype, Qi = Array.prototype, Ji = Object.getPrototypeOf, hr = Object.isExtensible, Zi = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function en(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function tn() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,48 +19,48 @@ function en() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Co = 1 << 24, ee = 1024, ce = 2048, Pe = 4096, Fr = 8192, rn = 16384, Br = 32768, pr = 1 << 25, jr = 65536, $o = 1 << 17, Oo = 1 << 18, st = 1 << 19, nn = 1 << 20, Lo = 1 << 25, ot = 65536, vr = 1 << 21, Ro = 1 << 22, Vr = 1 << 23, Je = Symbol("$state"), zr = Symbol("legacy props"), sn = Symbol("proxy path"), Xt = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), u(this, "name", "StaleReactionError"), u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), Po = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function on(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function an(e) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ln() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function cn(e) {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function un() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function dn() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function fn(e) {
|
|
46
46
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function hn() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pn() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function vn() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function mn() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Gr(e) {
|
|
61
61
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function gn() {
|
|
64
64
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
65
65
|
}
|
|
66
66
|
var Y = !1;
|
|
@@ -70,19 +70,19 @@ function ct(e) {
|
|
|
70
70
|
var x;
|
|
71
71
|
function tt(e) {
|
|
72
72
|
if (e === null)
|
|
73
|
-
throw
|
|
73
|
+
throw Gr(), wt;
|
|
74
74
|
return x = e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Wr() {
|
|
77
77
|
return tt(/* @__PURE__ */ Ue(x));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function _n(e = 1) {
|
|
80
80
|
if (Y) {
|
|
81
81
|
for (var t = e, r = x; t--; ) r = /* @__PURE__ */ Ue(r);
|
|
82
82
|
x = r;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function yn(e = !0) {
|
|
86
86
|
for (var t = 0, r = x; ; ) {
|
|
87
87
|
if (r.nodeType === 8) {
|
|
88
88
|
var i = r.data;
|
|
@@ -95,27 +95,27 @@ function _n(e = !0) {
|
|
|
95
95
|
e && r.remove(), r = n;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function qr(e) {
|
|
99
99
|
return e === this.v;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function bn(e, t) {
|
|
102
102
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return !
|
|
104
|
+
function Kr(e) {
|
|
105
|
+
return !bn(e, this.v);
|
|
106
106
|
}
|
|
107
107
|
var Re = !1, at = !1;
|
|
108
|
-
function
|
|
109
|
-
return e.label = t,
|
|
108
|
+
function mr(e, t) {
|
|
109
|
+
return e.label = t, wn(e.v, t), e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return e?.[
|
|
111
|
+
function wn(e, t) {
|
|
112
|
+
return e?.[sn]?.(t), e;
|
|
113
113
|
}
|
|
114
114
|
var O = null;
|
|
115
115
|
function St(e) {
|
|
116
116
|
O = e;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ur(e, t = !1, r) {
|
|
119
119
|
O = {
|
|
120
120
|
p: O,
|
|
121
121
|
i: !1,
|
|
@@ -131,11 +131,11 @@ function Kr(e, t = !1, r) {
|
|
|
131
131
|
} : null
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Yr(e) {
|
|
135
135
|
var t = O, r = t.e;
|
|
136
136
|
if (r !== null) {
|
|
137
137
|
t.e = null;
|
|
138
|
-
for (var i of r)
|
|
138
|
+
for (var i of r) Ti(i);
|
|
139
139
|
}
|
|
140
140
|
return e !== void 0 && (t.x = e), t.i = !0, O = t.p, e ?? {};
|
|
141
141
|
}
|
|
@@ -143,26 +143,26 @@ function Ct() {
|
|
|
143
143
|
return !at || O !== null && O.l === null;
|
|
144
144
|
}
|
|
145
145
|
var Ie = [];
|
|
146
|
-
function
|
|
146
|
+
function Xr() {
|
|
147
147
|
var e = Ie;
|
|
148
|
-
Ie = [],
|
|
148
|
+
Ie = [], en(e);
|
|
149
149
|
}
|
|
150
150
|
function Ge(e) {
|
|
151
151
|
if (Ie.length === 0 && !Ze) {
|
|
152
152
|
var t = Ie;
|
|
153
153
|
queueMicrotask(() => {
|
|
154
|
-
t === Ie &&
|
|
154
|
+
t === Ie && Xr();
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
Ie.push(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
for (; Ie.length > 0; )
|
|
159
|
+
function Tn() {
|
|
160
|
+
for (; Ie.length > 0; ) Xr();
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Qr(e) {
|
|
163
163
|
var t = T;
|
|
164
164
|
if (t === null)
|
|
165
|
-
return w.f |=
|
|
165
|
+
return w.f |= Vr, e;
|
|
166
166
|
if (!(t.f & 32768) && !(t.f & 4))
|
|
167
167
|
throw e;
|
|
168
168
|
je(e, t);
|
|
@@ -182,23 +182,23 @@ function je(e, t) {
|
|
|
182
182
|
}
|
|
183
183
|
throw e;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
185
|
+
var An = ~(ce | Pe | ee);
|
|
186
186
|
function R(e, t) {
|
|
187
|
-
e.f = e.f &
|
|
187
|
+
e.f = e.f & An | t;
|
|
188
188
|
}
|
|
189
189
|
function Qt(e) {
|
|
190
190
|
e.f & 512 || e.deps === null ? R(e, ee) : R(e, Pe);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Jr(e) {
|
|
193
193
|
if (e !== null)
|
|
194
194
|
for (const t of e)
|
|
195
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^= ot,
|
|
195
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= ot, Jr(t.deps));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
197
|
+
function Zr(e, t, r) {
|
|
198
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Jr(e.deps), R(e, ee);
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
200
|
+
var Sn = !1, ut = !1;
|
|
201
|
+
function In(e) {
|
|
202
202
|
var t = ut;
|
|
203
203
|
try {
|
|
204
204
|
return ut = !1, [e(), ut];
|
|
@@ -206,14 +206,14 @@ function Sn(e) {
|
|
|
206
206
|
ut = t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function ei(e, t) {
|
|
210
210
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
211
211
|
}
|
|
212
212
|
function Jt(e, t) {
|
|
213
|
-
|
|
213
|
+
ei(e, t), t.add(e);
|
|
214
214
|
}
|
|
215
215
|
function A(e, t, r) {
|
|
216
|
-
|
|
216
|
+
ei(e, t), t.set(e, r);
|
|
217
217
|
}
|
|
218
218
|
function E(e, t, r) {
|
|
219
219
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -225,10 +225,10 @@ function l(e, t) {
|
|
|
225
225
|
function b(e, t, r) {
|
|
226
226
|
return e.set(E(e, t), r), r;
|
|
227
227
|
}
|
|
228
|
-
var
|
|
229
|
-
var
|
|
228
|
+
var ti, le = /* @__PURE__ */ new Set(), C = null, gr = null, F = null, Bt = null, Ze = !1, xt = !1, We = null, It = null, ri = 0;
|
|
229
|
+
var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), Ke = class ii {
|
|
230
230
|
constructor() {
|
|
231
|
-
Jt(this, re), u(this, "id",
|
|
231
|
+
Jt(this, re), u(this, "id", En++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), A(this, Et, /* @__PURE__ */ new Set()), A(this, dt, /* @__PURE__ */ new Set()), A(this, Ne, 0), A(this, De, 0), A(this, mt, null), A(this, U, []), A(this, rt, /* @__PURE__ */ new Set()), A(this, Ce, /* @__PURE__ */ new Set()), A(this, Se, /* @__PURE__ */ new Map()), u(this, "is_fork", !1), A(this, ft, !1);
|
|
232
232
|
}
|
|
233
233
|
skip_effect(t) {
|
|
234
234
|
l(Se, this).has(t) || l(Se, this).set(t, {
|
|
@@ -258,9 +258,9 @@ var In = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
|
|
|
258
258
|
flush() {
|
|
259
259
|
var t = null;
|
|
260
260
|
try {
|
|
261
|
-
xt = !0, C = this, E(re, this,
|
|
261
|
+
xt = !0, C = this, E(re, this, ni).call(this);
|
|
262
262
|
} finally {
|
|
263
|
-
|
|
263
|
+
ri = 0, Bt = null, We = null, It = null, xt = !1, C = null, F = null, me.clear();
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
discard() {
|
|
@@ -287,11 +287,11 @@ var In = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
|
|
|
287
287
|
l(dt, this).add(t);
|
|
288
288
|
}
|
|
289
289
|
settled() {
|
|
290
|
-
return (l(mt, this) ?? b(mt, this,
|
|
290
|
+
return (l(mt, this) ?? b(mt, this, tn())).promise;
|
|
291
291
|
}
|
|
292
292
|
static ensure() {
|
|
293
293
|
if (C === null) {
|
|
294
|
-
const t = C = new
|
|
294
|
+
const t = C = new ii();
|
|
295
295
|
xt || (le.add(C), Ze || Ge(() => {
|
|
296
296
|
C === t && t.flush();
|
|
297
297
|
}));
|
|
@@ -316,7 +316,7 @@ var In = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
|
|
|
316
316
|
for (var r = t; r.parent !== null; ) {
|
|
317
317
|
r = r.parent;
|
|
318
318
|
var i = r.f;
|
|
319
|
-
if (We !== null && r === T && (Re || (w === null || !(w.f & 2)) && !
|
|
319
|
+
if (We !== null && r === T && (Re || (w === null || !(w.f & 2)) && !Sn))
|
|
320
320
|
return;
|
|
321
321
|
if (i & 96) {
|
|
322
322
|
if (!(i & 1024)) return;
|
|
@@ -326,12 +326,12 @@ var In = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
|
|
|
326
326
|
l(U, this).push(r);
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
|
|
330
|
-
function
|
|
329
|
+
ti = Ke;
|
|
330
|
+
function _r() {
|
|
331
331
|
return this.is_fork || l(De, this) > 0;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
if (
|
|
333
|
+
function ni() {
|
|
334
|
+
if (ri++ > 1e3 && (le.delete(this), Cn()), !E(re, this, _r).call(this)) {
|
|
335
335
|
for (const o of l(rt, this))
|
|
336
336
|
l(Ce, this).delete(o), R(o, ce), this.schedule(o);
|
|
337
337
|
for (const o of l(Ce, this))
|
|
@@ -341,30 +341,30 @@ function ii() {
|
|
|
341
341
|
b(U, this, []), this.apply();
|
|
342
342
|
var t = We = [], r = [], i = It = [];
|
|
343
343
|
for (const o of e) try {
|
|
344
|
-
E(re, this,
|
|
344
|
+
E(re, this, si).call(this, o, t, r);
|
|
345
345
|
} catch (a) {
|
|
346
|
-
throw
|
|
346
|
+
throw ci(o), a;
|
|
347
347
|
}
|
|
348
348
|
if (C = null, i.length > 0) {
|
|
349
|
-
var n =
|
|
349
|
+
var n = ti.ensure();
|
|
350
350
|
for (const o of i) n.schedule(o);
|
|
351
351
|
}
|
|
352
|
-
if (We = null, It = null, E(re, this,
|
|
353
|
-
E(re, this,
|
|
354
|
-
for (const [o, a] of l(Se, this))
|
|
352
|
+
if (We = null, It = null, E(re, this, _r).call(this)) {
|
|
353
|
+
E(re, this, yr).call(this, r), E(re, this, yr).call(this, t);
|
|
354
|
+
for (const [o, a] of l(Se, this)) li(o, a);
|
|
355
355
|
} else {
|
|
356
356
|
l(Ne, this) === 0 && le.delete(this), l(rt, this).clear(), l(Ce, this).clear();
|
|
357
357
|
for (const o of l(Et, this)) o(this);
|
|
358
|
-
l(Et, this).clear(),
|
|
358
|
+
l(Et, this).clear(), gr = this, br(r), br(t), gr = null, l(mt, this)?.resolve();
|
|
359
359
|
}
|
|
360
360
|
var s = C;
|
|
361
361
|
if (l(U, this).length > 0) {
|
|
362
362
|
const o = s ?? (s = this);
|
|
363
363
|
l(U, o).push(...l(U, this).filter((a) => !l(U, o).includes(a)));
|
|
364
364
|
}
|
|
365
|
-
s !== null && (le.add(s), E(re, s,
|
|
365
|
+
s !== null && (le.add(s), E(re, s, ni).call(s)), le.has(this) || E(re, this, kn).call(this);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function si(e, t, r) {
|
|
368
368
|
e.f ^= ee;
|
|
369
369
|
for (var i = e.first; i !== null; ) {
|
|
370
370
|
var n = i.f, s = (n & 96) !== 0;
|
|
@@ -386,10 +386,10 @@ function ni(e, t, r) {
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
for (var t = 0; t < e.length; t += 1)
|
|
389
|
+
function yr(e) {
|
|
390
|
+
for (var t = 0; t < e.length; t += 1) Zr(e[t], l(rt, this), l(Ce, this));
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function kn() {
|
|
393
393
|
for (const a of le) {
|
|
394
394
|
var e = a.id < this.id, t = [];
|
|
395
395
|
for (const [c, h] of this.current) {
|
|
@@ -403,10 +403,10 @@ function En() {
|
|
|
403
403
|
else if (t.length > 0) {
|
|
404
404
|
a.activate();
|
|
405
405
|
var i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
406
|
-
for (var s of t)
|
|
406
|
+
for (var s of t) oi(s, r, i, n);
|
|
407
407
|
if (l(U, a).length > 0) {
|
|
408
408
|
a.apply();
|
|
409
|
-
for (var o of l(U, a)) E(re, a,
|
|
409
|
+
for (var o of l(U, a)) E(re, a, si).call(a, o, [], []);
|
|
410
410
|
b(U, a, []);
|
|
411
411
|
}
|
|
412
412
|
a.deactivate();
|
|
@@ -419,32 +419,32 @@ function se(e) {
|
|
|
419
419
|
try {
|
|
420
420
|
var r;
|
|
421
421
|
for (e && (C !== null && !C.is_fork && C.flush(), r = e()); ; ) {
|
|
422
|
-
if (
|
|
422
|
+
if (Tn(), C === null) return r;
|
|
423
423
|
C.flush();
|
|
424
424
|
}
|
|
425
425
|
} finally {
|
|
426
426
|
Ze = t;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Cn() {
|
|
430
430
|
if (0) {
|
|
431
431
|
var e;
|
|
432
432
|
for (const r of C.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
433
433
|
var t;
|
|
434
434
|
}
|
|
435
435
|
try {
|
|
436
|
-
|
|
436
|
+
un();
|
|
437
437
|
} catch (r) {
|
|
438
438
|
je(r, Bt);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
var ae = null;
|
|
442
|
-
function
|
|
442
|
+
function br(e) {
|
|
443
443
|
var t = e.length;
|
|
444
444
|
if (t !== 0) {
|
|
445
445
|
for (var r = 0; r < t; ) {
|
|
446
446
|
var i = e[r++];
|
|
447
|
-
if (!(i.f & 24576) && lt(i) && (ae = /* @__PURE__ */ new Set(), qe(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
447
|
+
if (!(i.f & 24576) && lt(i) && (ae = /* @__PURE__ */ new Set(), qe(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Si(i), ae?.size > 0)) {
|
|
448
448
|
me.clear();
|
|
449
449
|
for (const n of ae) {
|
|
450
450
|
if (n.f & 24576) continue;
|
|
@@ -463,19 +463,19 @@ function yr(e) {
|
|
|
463
463
|
ae = null;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function oi(e, t, r, i) {
|
|
467
467
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
468
468
|
for (const n of e.reactions) {
|
|
469
469
|
const s = n.f;
|
|
470
|
-
s & 2 ?
|
|
470
|
+
s & 2 ? oi(n, t, r, i) : s & 4194320 && !(s & 2048) && ai(n, t, i) && (R(n, ce), Zt(n));
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function ai(e, t, r) {
|
|
474
474
|
const i = r.get(e);
|
|
475
475
|
if (i !== void 0) return i;
|
|
476
476
|
if (e.deps !== null) for (const n of e.deps) {
|
|
477
477
|
if (ze.call(t, n)) return !0;
|
|
478
|
-
if (n.f & 2 &&
|
|
478
|
+
if (n.f & 2 && ai(n, t, r))
|
|
479
479
|
return r.set(n, !0), !0;
|
|
480
480
|
}
|
|
481
481
|
return r.set(e, !1), !1;
|
|
@@ -483,19 +483,19 @@ function oi(e, t, r) {
|
|
|
483
483
|
function Zt(e) {
|
|
484
484
|
C.schedule(e);
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function li(e, t) {
|
|
487
487
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
488
488
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, ee);
|
|
489
489
|
for (var r = e.first; r !== null; )
|
|
490
|
-
|
|
490
|
+
li(r, t), r = r.next;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function ci(e) {
|
|
494
494
|
R(e, ee);
|
|
495
495
|
for (var t = e.first; t !== null; )
|
|
496
|
-
|
|
496
|
+
ci(t), t = t.next;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function $n(e) {
|
|
499
499
|
let t = 0, r = $t(0), i;
|
|
500
500
|
return () => {
|
|
501
501
|
ir() && (m(r), nr(() => (t === 0 && (i = Lt(() => e(() => et(r)))), t += 1, () => {
|
|
@@ -505,31 +505,31 @@ function Cn(e) {
|
|
|
505
505
|
})));
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
510
|
-
new
|
|
508
|
+
var On = jr | st;
|
|
509
|
+
function Ln(e, t, r, i) {
|
|
510
|
+
new Rn(e, t, r, i);
|
|
511
511
|
}
|
|
512
|
-
var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(),
|
|
512
|
+
var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Rn = class {
|
|
513
513
|
constructor(e, t, r, i) {
|
|
514
|
-
Jt(this, N), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), A(this, X, void 0), A(this, Ht, Y ? x : null), A(this, pe, void 0), A(this, it, void 0), A(this, z, void 0), A(this, ve, null), A(this, Q, null), A(this, oe, null), A(this, $e, null), A(this, Fe, 0), A(this, Oe, 0), A(this, ht, !1), A(this, jt, /* @__PURE__ */ new Set()), A(this, Vt, /* @__PURE__ */ new Set()), A(this, we, null), A(this,
|
|
514
|
+
Jt(this, N), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), A(this, X, void 0), A(this, Ht, Y ? x : null), A(this, pe, void 0), A(this, it, void 0), A(this, z, void 0), A(this, ve, null), A(this, Q, null), A(this, oe, null), A(this, $e, null), A(this, Fe, 0), A(this, Oe, 0), A(this, ht, !1), A(this, jt, /* @__PURE__ */ new Set()), A(this, Vt, /* @__PURE__ */ new Set()), A(this, we, null), A(this, wr, $n(() => (b(we, this, $t(l(Fe, this))), () => {
|
|
515
515
|
b(we, this, null);
|
|
516
516
|
}))), b(X, this, e), b(pe, this, t), b(it, this, (n) => {
|
|
517
517
|
var s = T;
|
|
518
518
|
s.b = this, s.f |= 128, r(n);
|
|
519
|
-
}), this.parent = T.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(z, this,
|
|
519
|
+
}), this.parent = T.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(z, this, Qn(() => {
|
|
520
520
|
if (Y) {
|
|
521
521
|
const n = l(Ht, this);
|
|
522
|
-
|
|
522
|
+
Wr();
|
|
523
523
|
const s = n.data === "[!";
|
|
524
524
|
if (n.data.startsWith("[?")) {
|
|
525
525
|
const o = JSON.parse(n.data.slice(2));
|
|
526
|
-
E(N, this,
|
|
527
|
-
} else s ? E(N, this,
|
|
528
|
-
} else E(N, this,
|
|
529
|
-
},
|
|
526
|
+
E(N, this, Pn).call(this, o);
|
|
527
|
+
} else s ? E(N, this, xn).call(this) : E(N, this, Mn).call(this);
|
|
528
|
+
} else E(N, this, Tr).call(this);
|
|
529
|
+
}, On)), Y && b(X, this, x);
|
|
530
530
|
}
|
|
531
531
|
defer_effect(e) {
|
|
532
|
-
|
|
532
|
+
Zr(e, l(jt, this), l(Vt, this));
|
|
533
533
|
}
|
|
534
534
|
is_rendered() {
|
|
535
535
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -538,28 +538,28 @@ var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe =
|
|
|
538
538
|
return !!l(pe, this).pending;
|
|
539
539
|
}
|
|
540
540
|
update_pending_count(e, t) {
|
|
541
|
-
E(N, this,
|
|
542
|
-
b(ht, this, !1), l(we, this) &&
|
|
541
|
+
E(N, this, ui).call(this, e, t), b(Fe, this, l(Fe, this) + e), !(!l(we, this) || l(ht, this)) && (b(ht, this, !0), Ge(() => {
|
|
542
|
+
b(ht, this, !1), l(we, this) && pi(l(we, this), l(Fe, this));
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
545
|
get_effect_pending() {
|
|
546
|
-
return l(
|
|
546
|
+
return l(wr, this).call(this), m(l(we, this));
|
|
547
547
|
}
|
|
548
548
|
error(e) {
|
|
549
549
|
var t = l(pe, this).onerror;
|
|
550
550
|
let r = l(pe, this).failed;
|
|
551
551
|
if (!t && !r) throw e;
|
|
552
|
-
l(ve, this) && (Z(l(ve, this)), b(ve, this, null)), l(Q, this) && (Z(l(Q, this)), b(Q, this, null)), l(oe, this) && (Z(l(oe, this)), b(oe, this, null)), Y && (tt(l(Ht, this)),
|
|
552
|
+
l(ve, this) && (Z(l(ve, this)), b(ve, this, null)), l(Q, this) && (Z(l(Q, this)), b(Q, this, null)), l(oe, this) && (Z(l(oe, this)), b(oe, this, null)), Y && (tt(l(Ht, this)), _n(), tt(yn()));
|
|
553
553
|
var i = !1, n = !1;
|
|
554
554
|
const s = () => {
|
|
555
555
|
if (i) {
|
|
556
|
-
|
|
556
|
+
gn();
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
i = !0, n &&
|
|
559
|
+
i = !0, n && mn(), l(oe, this) !== null && Ot(l(oe, this), () => {
|
|
560
560
|
b(oe, this, null);
|
|
561
561
|
}), E(N, this, zt).call(this, () => {
|
|
562
|
-
E(N, this,
|
|
562
|
+
E(N, this, Tr).call(this);
|
|
563
563
|
});
|
|
564
564
|
}, o = (a) => {
|
|
565
565
|
try {
|
|
@@ -590,36 +590,36 @@ var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe =
|
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
function
|
|
593
|
+
function Mn() {
|
|
594
594
|
try {
|
|
595
595
|
b(ve, this, Me(() => l(it, this).call(this, l(X, this))));
|
|
596
596
|
} catch (e) {
|
|
597
597
|
this.error(e);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Pn(e) {
|
|
601
601
|
const t = l(pe, this).failed;
|
|
602
602
|
t && b(oe, this, Me(() => {
|
|
603
603
|
t(l(X, this), () => e, () => () => {
|
|
604
604
|
});
|
|
605
605
|
}));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function xn() {
|
|
608
608
|
const e = l(pe, this).pending;
|
|
609
609
|
e && (this.is_pending = !0, b(Q, this, Me(() => e(l(X, this)))), Ge(() => {
|
|
610
|
-
var t = b($e, this, document.createDocumentFragment()), r =
|
|
610
|
+
var t = b($e, this, document.createDocumentFragment()), r = yi();
|
|
611
611
|
t.append(r), b(ve, this, E(N, this, zt).call(this, () => Me(() => l(it, this).call(this, r)))), l(Oe, this) === 0 && (l(X, this).before(t), b($e, this, null), Ot(l(Q, this), () => {
|
|
612
612
|
b(Q, this, null);
|
|
613
613
|
}), E(N, this, er).call(this, C));
|
|
614
614
|
}));
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Tr() {
|
|
617
617
|
try {
|
|
618
618
|
if (this.is_pending = this.has_pending_snippet(), b(Oe, this, 0), b(Fe, this, 0), b(ve, this, Me(() => {
|
|
619
619
|
l(it, this).call(this, l(X, this));
|
|
620
620
|
})), l(Oe, this) > 0) {
|
|
621
621
|
var e = b($e, this, document.createDocumentFragment());
|
|
622
|
-
|
|
622
|
+
es(l(ve, this), e);
|
|
623
623
|
const t = l(pe, this).pending;
|
|
624
624
|
b(Q, this, Me(() => t(l(X, this))));
|
|
625
625
|
} else E(N, this, er).call(this, C);
|
|
@@ -636,16 +636,16 @@ function zt(e) {
|
|
|
636
636
|
try {
|
|
637
637
|
return Ke.ensure(), e();
|
|
638
638
|
} catch (n) {
|
|
639
|
-
return
|
|
639
|
+
return Qr(n), null;
|
|
640
640
|
} finally {
|
|
641
641
|
_e(t), ie(r), St(i);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ui(e, t) {
|
|
645
645
|
if (!this.has_pending_snippet()) {
|
|
646
646
|
if (this.parent) {
|
|
647
647
|
var r;
|
|
648
|
-
E(N, r = this.parent,
|
|
648
|
+
E(N, r = this.parent, ui).call(r, e, t);
|
|
649
649
|
}
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
@@ -660,7 +660,7 @@ function tr(e) {
|
|
|
660
660
|
ctx: O,
|
|
661
661
|
deps: null,
|
|
662
662
|
effects: null,
|
|
663
|
-
equals:
|
|
663
|
+
equals: qr,
|
|
664
664
|
f: t,
|
|
665
665
|
fn: e,
|
|
666
666
|
reactions: null,
|
|
@@ -672,23 +672,23 @@ function tr(e) {
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
// @__NO_SIDE_EFFECTS__
|
|
675
|
-
function
|
|
675
|
+
function Ar(e) {
|
|
676
676
|
const t = /* @__PURE__ */ tr(e);
|
|
677
|
-
return Re ||
|
|
677
|
+
return Re || Ei(t), t;
|
|
678
678
|
}
|
|
679
679
|
// @__NO_SIDE_EFFECTS__
|
|
680
|
-
function
|
|
680
|
+
function Hn(e) {
|
|
681
681
|
const t = /* @__PURE__ */ tr(e);
|
|
682
|
-
return t.equals =
|
|
682
|
+
return t.equals = Kr, t;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Nn(e) {
|
|
685
685
|
var t = e.effects;
|
|
686
686
|
if (t !== null) {
|
|
687
687
|
e.effects = null;
|
|
688
688
|
for (var r = 0; r < t.length; r += 1) Z(t[r]);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Dn(e) {
|
|
692
692
|
for (var t = e.parent; t !== null; ) {
|
|
693
693
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
694
694
|
t = t.parent;
|
|
@@ -697,41 +697,41 @@ function Nn(e) {
|
|
|
697
697
|
}
|
|
698
698
|
function rr(e) {
|
|
699
699
|
var t, r = T;
|
|
700
|
-
if (_e(
|
|
700
|
+
if (_e(Dn(e)), 0)
|
|
701
701
|
try {
|
|
702
702
|
} finally {
|
|
703
703
|
}
|
|
704
704
|
else try {
|
|
705
|
-
e.f &= ~ot,
|
|
705
|
+
e.f &= ~ot, Nn(e), t = Oi(e);
|
|
706
706
|
} finally {
|
|
707
707
|
_e(r);
|
|
708
708
|
}
|
|
709
709
|
return t;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function di(e) {
|
|
712
712
|
var t = e.v, r = rr(e);
|
|
713
|
-
if (!e.equals(r) && (e.wv =
|
|
713
|
+
if (!e.equals(r) && (e.wv = Ci(), (!C?.is_fork || e.deps === null) && (e.v = r, C?.capture(e, t), e.deps === null))) {
|
|
714
714
|
R(e, ee);
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
717
|
ge || (F !== null ? (ir() || C?.is_fork) && F.set(e, r) : Qt(e));
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Fn(e) {
|
|
720
720
|
if (e.effects !== null)
|
|
721
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Xt), t.teardown =
|
|
721
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Xt), t.teardown = Zi, t.ac = null, nt(t, 0), sr(t));
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function fi(e) {
|
|
724
724
|
if (e.effects !== null)
|
|
725
725
|
for (const t of e.effects) t.teardown && qe(t);
|
|
726
726
|
}
|
|
727
727
|
var Gt = /* @__PURE__ */ new Set(), me = /* @__PURE__ */ new Map();
|
|
728
|
-
var
|
|
728
|
+
var hi = !1;
|
|
729
729
|
function $t(e, t) {
|
|
730
730
|
var r = {
|
|
731
731
|
f: 0,
|
|
732
732
|
v: e,
|
|
733
733
|
reactions: null,
|
|
734
|
-
equals:
|
|
734
|
+
equals: qr,
|
|
735
735
|
rv: 0,
|
|
736
736
|
wv: 0
|
|
737
737
|
};
|
|
@@ -740,23 +740,23 @@ function $t(e, t) {
|
|
|
740
740
|
// @__NO_SIDE_EFFECTS__
|
|
741
741
|
function P(e, t) {
|
|
742
742
|
const r = $t(e, t);
|
|
743
|
-
return
|
|
743
|
+
return Ei(r), r;
|
|
744
744
|
}
|
|
745
745
|
// @__NO_SIDE_EFFECTS__
|
|
746
|
-
function
|
|
746
|
+
function Bn(e, t = !1, r = !0) {
|
|
747
747
|
const i = $t(e);
|
|
748
|
-
if (t || (i.equals =
|
|
748
|
+
if (t || (i.equals = Kr), at && r && O !== null && O.l !== null) {
|
|
749
749
|
var n;
|
|
750
750
|
((n = O.l).s ?? (n.s = [])).push(i);
|
|
751
751
|
}
|
|
752
752
|
return i;
|
|
753
753
|
}
|
|
754
754
|
function $(e, t, r = !1) {
|
|
755
|
-
w !== null && (!J || w.f & 131072) && Ct() && w.f & 4325394 && (W === null || !ze.call(W, e)) &&
|
|
755
|
+
w !== null && (!J || w.f & 131072) && Ct() && w.f & 4325394 && (W === null || !ze.call(W, e)) && vn();
|
|
756
756
|
let i = r ? Ve(t) : t;
|
|
757
|
-
return
|
|
757
|
+
return pi(e, i, It);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function pi(e, t, r = null) {
|
|
760
760
|
if (!e.equals(t)) {
|
|
761
761
|
var i = e.v;
|
|
762
762
|
ge ? me.set(e, t) : me.set(e, i), e.v = t;
|
|
@@ -765,12 +765,12 @@ function hi(e, t, r = null) {
|
|
|
765
765
|
const s = e;
|
|
766
766
|
e.f & 2048 && rr(s), F === null && Qt(s);
|
|
767
767
|
}
|
|
768
|
-
e.wv =
|
|
768
|
+
e.wv = Ci(), vi(e, ce, r), Ct() && T !== null && T.f & 1024 && !(T.f & 96) && (G === null ? rs([e]) : G.push(e)), !n.is_fork && Gt.size > 0 && !hi && jn();
|
|
769
769
|
}
|
|
770
770
|
return t;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
|
|
772
|
+
function jn() {
|
|
773
|
+
hi = !1;
|
|
774
774
|
for (const e of Gt)
|
|
775
775
|
e.f & 1024 && R(e, Pe), lt(e) && qe(e);
|
|
776
776
|
Gt.clear();
|
|
@@ -778,7 +778,7 @@ function Bn() {
|
|
|
778
778
|
function et(e) {
|
|
779
779
|
$(e, e.v + 1);
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function vi(e, t, r) {
|
|
782
782
|
var i = e.reactions;
|
|
783
783
|
if (i !== null)
|
|
784
784
|
for (var n = Ct(), s = i.length, o = 0; o < s; o++) {
|
|
@@ -787,7 +787,7 @@ function pi(e, t, r) {
|
|
|
787
787
|
var h = (c & ce) === 0;
|
|
788
788
|
if (h && R(a, t), c & 2) {
|
|
789
789
|
var _ = a;
|
|
790
|
-
F?.delete(_), c & 65536 || (c & 512 && (a.f |= ot),
|
|
790
|
+
F?.delete(_), c & 65536 || (c & 512 && (a.f |= ot), vi(_, Pe, r));
|
|
791
791
|
} else if (h) {
|
|
792
792
|
var v = a;
|
|
793
793
|
c & 16 && ae !== null && ae.add(v), r !== null ? r.push(v) : Zt(v);
|
|
@@ -795,31 +795,31 @@ function pi(e, t, r) {
|
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
var
|
|
798
|
+
var Vn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
799
799
|
function Ve(e) {
|
|
800
800
|
if (typeof e != "object" || e === null || Je in e) return e;
|
|
801
|
-
const t =
|
|
802
|
-
if (t !==
|
|
803
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
801
|
+
const t = Ji(e);
|
|
802
|
+
if (t !== Xi && t !== Qi) return e;
|
|
803
|
+
var r = /* @__PURE__ */ new Map(), i = Ki(e), n = /* @__PURE__ */ P(0), s = null, o = Le, a = (v) => {
|
|
804
804
|
if (Le === o) return v();
|
|
805
805
|
var f = w, p = Le;
|
|
806
|
-
ie(null),
|
|
806
|
+
ie(null), Er(o);
|
|
807
807
|
var d = v();
|
|
808
|
-
return ie(f),
|
|
808
|
+
return ie(f), Er(p), d;
|
|
809
809
|
};
|
|
810
810
|
i && r.set("length", /* @__PURE__ */ P(e.length, s));
|
|
811
811
|
var c = "";
|
|
812
812
|
let h = !1;
|
|
813
813
|
function _(v) {
|
|
814
814
|
if (!h) {
|
|
815
|
-
h = !0, c = v,
|
|
816
|
-
for (const [f, p] of r)
|
|
815
|
+
h = !0, c = v, mr(n, `${c} version`);
|
|
816
|
+
for (const [f, p] of r) mr(p, zn(c, f));
|
|
817
817
|
h = !1;
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
return new Proxy(e, {
|
|
821
821
|
defineProperty(v, f, p) {
|
|
822
|
-
(!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) &&
|
|
822
|
+
(!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && hn();
|
|
823
823
|
var d = r.get(f);
|
|
824
824
|
return d === void 0 ? a(() => {
|
|
825
825
|
var y = /* @__PURE__ */ P(p.value, s);
|
|
@@ -906,40 +906,40 @@ function Ve(e) {
|
|
|
906
906
|
return f;
|
|
907
907
|
},
|
|
908
908
|
setPrototypeOf() {
|
|
909
|
-
|
|
909
|
+
pn();
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
913
|
+
function zn(e, t) {
|
|
914
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Vn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
915
915
|
}
|
|
916
|
-
var
|
|
916
|
+
var Sr, Gn, mi, gi, _i;
|
|
917
917
|
function Wt() {
|
|
918
|
-
if (
|
|
919
|
-
|
|
918
|
+
if (Sr === void 0) {
|
|
919
|
+
Sr = window, Gn = document, mi = /Firefox/.test(navigator.userAgent);
|
|
920
920
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
921
|
-
|
|
921
|
+
gi = ke(t, "firstChild").get, _i = ke(t, "nextSibling").get, hr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), hr(r) && (r.__t = void 0);
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function yi(e = "") {
|
|
925
925
|
return document.createTextNode(e);
|
|
926
926
|
}
|
|
927
927
|
// @__NO_SIDE_EFFECTS__
|
|
928
928
|
function qt(e) {
|
|
929
|
-
return
|
|
929
|
+
return gi.call(e);
|
|
930
930
|
}
|
|
931
931
|
// @__NO_SIDE_EFFECTS__
|
|
932
932
|
function Ue(e) {
|
|
933
|
-
return
|
|
933
|
+
return _i.call(e);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Wn(e) {
|
|
936
936
|
e.textContent = "";
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function bi(e, t, r) {
|
|
939
939
|
let i = r ? { is: r } : void 0;
|
|
940
940
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, i);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function wi(e) {
|
|
943
943
|
var t = w, r = T;
|
|
944
944
|
ie(null), _e(null);
|
|
945
945
|
try {
|
|
@@ -948,16 +948,16 @@ function bi(e) {
|
|
|
948
948
|
ie(t), _e(r);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
function
|
|
952
|
-
T === null && (w === null &&
|
|
951
|
+
function qn(e) {
|
|
952
|
+
T === null && (w === null && cn(e), ln()), ge && an(e);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Kn(e, t) {
|
|
955
955
|
var r = t.last;
|
|
956
956
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
957
957
|
}
|
|
958
958
|
function xe(e, t) {
|
|
959
959
|
var r = T;
|
|
960
|
-
r !== null && r.f & 8192 && (e |=
|
|
960
|
+
r !== null && r.f & 8192 && (e |= Fr);
|
|
961
961
|
var i = {
|
|
962
962
|
ctx: O,
|
|
963
963
|
deps: null,
|
|
@@ -981,9 +981,9 @@ function xe(e, t) {
|
|
|
981
981
|
} catch (o) {
|
|
982
982
|
throw Z(i), o;
|
|
983
983
|
}
|
|
984
|
-
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |=
|
|
984
|
+
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |= jr));
|
|
985
985
|
}
|
|
986
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
986
|
+
if (n !== null && (n.parent = r, r !== null && Kn(n, r), w !== null && w.f & 2 && !(e & 64))) {
|
|
987
987
|
var s = w;
|
|
988
988
|
(s.effects ?? (s.effects = [])).push(n);
|
|
989
989
|
}
|
|
@@ -993,24 +993,24 @@ function ir() {
|
|
|
993
993
|
return w !== null && !J;
|
|
994
994
|
}
|
|
995
995
|
function Ae(e) {
|
|
996
|
-
|
|
996
|
+
qn("$effect");
|
|
997
997
|
var t = T.f;
|
|
998
998
|
if (!w && t & 32 && !(t & 32768)) {
|
|
999
999
|
var r = O;
|
|
1000
1000
|
(r.e ?? (r.e = [])).push(e);
|
|
1001
|
-
} else return
|
|
1001
|
+
} else return Ti(e);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return xe(4 |
|
|
1003
|
+
function Ti(e) {
|
|
1004
|
+
return xe(4 | nn, e);
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Un(e) {
|
|
1007
1007
|
Ke.ensure();
|
|
1008
1008
|
const t = xe(64 | st, e);
|
|
1009
1009
|
return () => {
|
|
1010
1010
|
Z(t);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Yn(e) {
|
|
1014
1014
|
Ke.ensure();
|
|
1015
1015
|
const t = xe(64 | st, e);
|
|
1016
1016
|
return (r = {}) => new Promise((i) => {
|
|
@@ -1019,28 +1019,28 @@ function Un(e) {
|
|
|
1019
1019
|
}) : (Z(t), i(void 0));
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function Xn(e) {
|
|
1023
1023
|
return xe(4, e);
|
|
1024
1024
|
}
|
|
1025
1025
|
function nr(e, t = 0) {
|
|
1026
1026
|
return xe(8 | t, e);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function Qn(e, t = 0) {
|
|
1029
1029
|
var r = xe(16 | t, e);
|
|
1030
1030
|
return r;
|
|
1031
1031
|
}
|
|
1032
1032
|
function Me(e) {
|
|
1033
1033
|
return xe(32 | st, e);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Ai(e) {
|
|
1036
1036
|
var t = e.teardown;
|
|
1037
1037
|
if (t !== null) {
|
|
1038
1038
|
const r = ge, i = w;
|
|
1039
|
-
|
|
1039
|
+
Ir(!0), ie(null);
|
|
1040
1040
|
try {
|
|
1041
1041
|
t.call(null);
|
|
1042
1042
|
} finally {
|
|
1043
|
-
|
|
1043
|
+
Ir(r), ie(i);
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
@@ -1048,14 +1048,14 @@ function sr(e, t = !1) {
|
|
|
1048
1048
|
var r = e.first;
|
|
1049
1049
|
for (e.first = e.last = null; r !== null; ) {
|
|
1050
1050
|
const n = r.ac;
|
|
1051
|
-
n !== null &&
|
|
1051
|
+
n !== null && wi(() => {
|
|
1052
1052
|
n.abort(Xt);
|
|
1053
1053
|
});
|
|
1054
1054
|
var i = r.next;
|
|
1055
1055
|
r.f & 64 ? r.parent = null : Z(r, t), r = i;
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Jn(e) {
|
|
1059
1059
|
for (var t = e.first; t !== null; ) {
|
|
1060
1060
|
var r = t.next;
|
|
1061
1061
|
t.f & 32 || Z(t), t = r;
|
|
@@ -1063,26 +1063,26 @@ function Qn(e) {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
function Z(e, t = !0) {
|
|
1065
1065
|
var r = !1;
|
|
1066
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1066
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Zn(e.nodes.start, e.nodes.end), r = !0), R(e, pr), sr(e, t && !r), nt(e, 0);
|
|
1067
1067
|
var i = e.nodes && e.nodes.t;
|
|
1068
1068
|
if (i !== null) for (const s of i) s.stop();
|
|
1069
|
-
|
|
1069
|
+
Ai(e), e.f ^= pr, e.f |= rn;
|
|
1070
1070
|
var n = e.parent;
|
|
1071
|
-
n !== null && n.first !== null &&
|
|
1071
|
+
n !== null && n.first !== null && Si(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Zn(e, t) {
|
|
1074
1074
|
for (; e !== null; ) {
|
|
1075
1075
|
var r = e === t ? null : /* @__PURE__ */ Ue(e);
|
|
1076
1076
|
e.remove(), e = r;
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Si(e) {
|
|
1080
1080
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1081
1081
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1082
1082
|
}
|
|
1083
1083
|
function Ot(e, t, r = !0) {
|
|
1084
1084
|
var i = [];
|
|
1085
|
-
|
|
1085
|
+
Ii(e, i, !0);
|
|
1086
1086
|
var n = () => {
|
|
1087
1087
|
r && Z(e), t && t();
|
|
1088
1088
|
}, s = i.length;
|
|
@@ -1091,27 +1091,27 @@ function Ot(e, t, r = !0) {
|
|
|
1091
1091
|
for (var a of i) a.out(o);
|
|
1092
1092
|
} else n();
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function Ii(e, t, r) {
|
|
1095
1095
|
if (!(e.f & 8192)) {
|
|
1096
|
-
e.f ^=
|
|
1096
|
+
e.f ^= Fr;
|
|
1097
1097
|
var i = e.nodes && e.nodes.t;
|
|
1098
1098
|
if (i !== null)
|
|
1099
1099
|
for (const a of i) (a.is_global || r) && t.push(a);
|
|
1100
1100
|
for (var n = e.first; n !== null; ) {
|
|
1101
1101
|
var s = n.next, o = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1102
|
-
|
|
1102
|
+
Ii(n, t, o ? r : !1), n = s;
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function es(e, t) {
|
|
1107
1107
|
if (e.nodes)
|
|
1108
1108
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1109
1109
|
var n = r === i ? null : /* @__PURE__ */ Ue(r);
|
|
1110
1110
|
t.append(r), r = n;
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
|
-
var
|
|
1114
|
-
function
|
|
1113
|
+
var ts = null, gt = !1, ge = !1;
|
|
1114
|
+
function Ir(e) {
|
|
1115
1115
|
ge = e;
|
|
1116
1116
|
}
|
|
1117
1117
|
var w = null, J = !1;
|
|
@@ -1123,19 +1123,19 @@ function _e(e) {
|
|
|
1123
1123
|
T = e;
|
|
1124
1124
|
}
|
|
1125
1125
|
var W = null;
|
|
1126
|
-
function
|
|
1126
|
+
function Ei(e) {
|
|
1127
1127
|
w !== null && (!Re || w.f & 2) && (W === null ? W = [e] : W.push(e));
|
|
1128
1128
|
}
|
|
1129
1129
|
var D = null, j = 0, G = null;
|
|
1130
|
-
function
|
|
1130
|
+
function rs(e) {
|
|
1131
1131
|
G = e;
|
|
1132
1132
|
}
|
|
1133
|
-
var
|
|
1134
|
-
function
|
|
1133
|
+
var ki = 1, Ee = 0, Le = Ee;
|
|
1134
|
+
function Er(e) {
|
|
1135
1135
|
Le = e;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
return ++
|
|
1137
|
+
function Ci() {
|
|
1138
|
+
return ++ki;
|
|
1139
1139
|
}
|
|
1140
1140
|
function lt(e) {
|
|
1141
1141
|
var t = e.f;
|
|
@@ -1143,29 +1143,29 @@ function lt(e) {
|
|
|
1143
1143
|
if (t & 2 && (e.f &= ~ot), t & 4096) {
|
|
1144
1144
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1145
1145
|
var s = r[n];
|
|
1146
|
-
if (lt(s) &&
|
|
1146
|
+
if (lt(s) && di(s), s.wv > e.wv) return !0;
|
|
1147
1147
|
}
|
|
1148
1148
|
t & 512 && F === null && R(e, ee);
|
|
1149
1149
|
}
|
|
1150
1150
|
return !1;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function $i(e, t, r = !0) {
|
|
1153
1153
|
var i = e.reactions;
|
|
1154
1154
|
if (i !== null && !(!Re && W !== null && ze.call(W, e)))
|
|
1155
1155
|
for (var n = 0; n < i.length; n++) {
|
|
1156
1156
|
var s = i[n];
|
|
1157
|
-
s.f & 2 ?
|
|
1157
|
+
s.f & 2 ? $i(s, t, !1) : t === s && (r ? R(s, ce) : s.f & 1024 && R(s, Pe), Zt(s));
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Oi(e) {
|
|
1161
1161
|
var t = D, r = j, i = G, n = w, s = W, o = O, a = J, c = Le, h = e.f;
|
|
1162
|
-
D = null, j = 0, G = null, w = h & 96 ? null : e, W = null, St(e.ctx), J = !1, Le = ++Ee, e.ac !== null && (
|
|
1162
|
+
D = null, j = 0, G = null, w = h & 96 ? null : e, W = null, St(e.ctx), J = !1, Le = ++Ee, e.ac !== null && (wi(() => {
|
|
1163
1163
|
e.ac.abort(Xt);
|
|
1164
1164
|
}), e.ac = null);
|
|
1165
1165
|
try {
|
|
1166
|
-
e.f |=
|
|
1166
|
+
e.f |= vr;
|
|
1167
1167
|
var _ = e.fn, v = _();
|
|
1168
|
-
e.f |=
|
|
1168
|
+
e.f |= Br;
|
|
1169
1169
|
var f = e.deps, p = C?.is_fork;
|
|
1170
1170
|
if (D !== null) {
|
|
1171
1171
|
var d;
|
|
@@ -1177,23 +1177,23 @@ function $i(e) {
|
|
|
1177
1177
|
((y = f[d]).reactions ?? (y.reactions = [])).push(e);
|
|
1178
1178
|
}
|
|
1179
1179
|
} else !p && f !== null && j < f.length && (nt(e, j), f.length = j);
|
|
1180
|
-
if (Ct() && G !== null && !J && f !== null && !(e.f & 6146)) for (d = 0; d < G.length; d++)
|
|
1180
|
+
if (Ct() && G !== null && !J && f !== null && !(e.f & 6146)) for (d = 0; d < G.length; d++) $i(G[d], e);
|
|
1181
1181
|
if (n !== null && n !== e) {
|
|
1182
1182
|
if (Ee++, n.deps !== null) for (let g = 0; g < r; g += 1) n.deps[g].rv = Ee;
|
|
1183
1183
|
if (t !== null) for (const g of t) g.rv = Ee;
|
|
1184
1184
|
G !== null && (i === null ? i = G : i.push(...G));
|
|
1185
1185
|
}
|
|
1186
|
-
return e.f & 8388608 && (e.f ^=
|
|
1186
|
+
return e.f & 8388608 && (e.f ^= Vr), v;
|
|
1187
1187
|
} catch (g) {
|
|
1188
|
-
return
|
|
1188
|
+
return Qr(g);
|
|
1189
1189
|
} finally {
|
|
1190
|
-
e.f ^=
|
|
1190
|
+
e.f ^= vr, D = t, j = r, G = i, w = n, W = s, St(o), J = a, Le = c;
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function is(e, t) {
|
|
1194
1194
|
let r = t.reactions;
|
|
1195
1195
|
if (r !== null) {
|
|
1196
|
-
var i =
|
|
1196
|
+
var i = Ui.call(r, e);
|
|
1197
1197
|
if (i !== -1) {
|
|
1198
1198
|
var n = r.length - 1;
|
|
1199
1199
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
@@ -1201,13 +1201,13 @@ function rs(e, t) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
if (r === null && t.f & 2 && (D === null || !ze.call(D, t))) {
|
|
1203
1203
|
var s = t;
|
|
1204
|
-
s.f & 512 && (s.f ^= 512, s.f &= ~ot), Qt(s),
|
|
1204
|
+
s.f & 512 && (s.f ^= 512, s.f &= ~ot), Qt(s), Fn(s), nt(s, 0);
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
1207
|
function nt(e, t) {
|
|
1208
1208
|
var r = e.deps;
|
|
1209
1209
|
if (r !== null)
|
|
1210
|
-
for (var i = t; i < r.length; i++)
|
|
1210
|
+
for (var i = t; i < r.length; i++) is(e, r[i]);
|
|
1211
1211
|
}
|
|
1212
1212
|
function qe(e) {
|
|
1213
1213
|
var t = e.f;
|
|
@@ -1217,9 +1217,9 @@ function qe(e) {
|
|
|
1217
1217
|
if (T = e, gt = !0, 0)
|
|
1218
1218
|
var n, s;
|
|
1219
1219
|
try {
|
|
1220
|
-
t & 16777232 ?
|
|
1221
|
-
var o =
|
|
1222
|
-
if (e.teardown = typeof o == "function" ? o : null, e.wv =
|
|
1220
|
+
t & 16777232 ? Jn(e) : sr(e), Ai(e);
|
|
1221
|
+
var o = Oi(e);
|
|
1222
|
+
if (e.teardown = typeof o == "function" ? o : null, e.wv = ki, 0)
|
|
1223
1223
|
for (var a of e.deps) ;
|
|
1224
1224
|
} finally {
|
|
1225
1225
|
gt = i, T = r;
|
|
@@ -1228,7 +1228,7 @@ function qe(e) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
function m(e) {
|
|
1230
1230
|
var t = (e.f & 2) !== 0;
|
|
1231
|
-
if (
|
|
1231
|
+
if (ts?.add(e), w !== null && !J && !(T !== null && T.f & 16384) && (W === null || !ze.call(W, e))) {
|
|
1232
1232
|
var r = w.deps;
|
|
1233
1233
|
if (w.f & 2097152)
|
|
1234
1234
|
e.rv < Ee && (e.rv = Ee, D === null && r !== null && r[j] === e ? j++ : D === null ? D = [e] : D.push(e));
|
|
@@ -1252,25 +1252,25 @@ function m(e) {
|
|
|
1252
1252
|
var c = e;
|
|
1253
1253
|
if (ge) {
|
|
1254
1254
|
var h = c.v;
|
|
1255
|
-
return (!(c.f & 1024) && c.reactions !== null ||
|
|
1255
|
+
return (!(c.f & 1024) && c.reactions !== null || Ri(c)) && (h = rr(c)), me.set(c, h), h;
|
|
1256
1256
|
}
|
|
1257
|
-
var _ = (c.f & 512) === 0 && !J && w !== null && (gt || (w.f & 512) !== 0), v = (c.f &
|
|
1258
|
-
lt(c) && (_ && (c.f |= 512),
|
|
1257
|
+
var _ = (c.f & 512) === 0 && !J && w !== null && (gt || (w.f & 512) !== 0), v = (c.f & Br) === 0;
|
|
1258
|
+
lt(c) && (_ && (c.f |= 512), di(c)), _ && !v && (fi(c), Li(c));
|
|
1259
1259
|
}
|
|
1260
1260
|
if (F?.has(e)) return F.get(e);
|
|
1261
1261
|
if (e.f & 8388608) throw e.v;
|
|
1262
1262
|
return e.v;
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Li(e) {
|
|
1265
1265
|
if (e.f |= 512, e.deps !== null)
|
|
1266
1266
|
for (const t of e.deps)
|
|
1267
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1267
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (fi(t), Li(t));
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Ri(e) {
|
|
1270
1270
|
if (e.v === M) return !0;
|
|
1271
1271
|
if (e.deps === null) return !1;
|
|
1272
1272
|
for (const t of e.deps)
|
|
1273
|
-
if (me.has(t) || t.f & 2 &&
|
|
1273
|
+
if (me.has(t) || t.f & 2 && Ri(t)) return !0;
|
|
1274
1274
|
return !1;
|
|
1275
1275
|
}
|
|
1276
1276
|
function Lt(e) {
|
|
@@ -1281,11 +1281,11 @@ function Lt(e) {
|
|
|
1281
1281
|
J = t;
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
|
-
var pt = Symbol("events"),
|
|
1285
|
-
function
|
|
1284
|
+
var pt = Symbol("events"), ns = /* @__PURE__ */ new Set(), kr = /* @__PURE__ */ new Set(), Cr = null;
|
|
1285
|
+
function $r(e) {
|
|
1286
1286
|
var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], s = n[0] || e.target;
|
|
1287
|
-
|
|
1288
|
-
var o = 0, a =
|
|
1287
|
+
Cr = e;
|
|
1288
|
+
var o = 0, a = Cr === e && e[pt];
|
|
1289
1289
|
if (a) {
|
|
1290
1290
|
var c = n.indexOf(a);
|
|
1291
1291
|
if (c !== -1 && (t === document || t === window)) {
|
|
@@ -1328,13 +1328,13 @@ function Cr(e) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function ss(e) {
|
|
1333
|
-
return ns?.createHTML(e) ?? e;
|
|
1334
|
-
}
|
|
1331
|
+
var ss = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1335
1332
|
function os(e) {
|
|
1336
|
-
|
|
1337
|
-
|
|
1333
|
+
return ss?.createHTML(e) ?? e;
|
|
1334
|
+
}
|
|
1335
|
+
function as(e) {
|
|
1336
|
+
var t = bi("template");
|
|
1337
|
+
return t.innerHTML = os(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1338
1338
|
}
|
|
1339
1339
|
function _t(e, t) {
|
|
1340
1340
|
var r = T;
|
|
@@ -1346,13 +1346,13 @@ function _t(e, t) {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
1348
|
// @__NO_SIDE_EFFECTS__
|
|
1349
|
-
function
|
|
1349
|
+
function ls(e, t) {
|
|
1350
1350
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, s = !e.startsWith("<!>");
|
|
1351
1351
|
return () => {
|
|
1352
1352
|
if (Y)
|
|
1353
1353
|
return _t(x, null), x;
|
|
1354
|
-
n === void 0 && (n =
|
|
1355
|
-
var o = i ||
|
|
1354
|
+
n === void 0 && (n = as(s ? e : "<!>" + e), r || (n = /* @__PURE__ */ qt(n)));
|
|
1355
|
+
var o = i || mi ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1356
1356
|
if (r) {
|
|
1357
1357
|
var a = /* @__PURE__ */ qt(o), c = o.lastChild;
|
|
1358
1358
|
_t(a, c);
|
|
@@ -1360,15 +1360,15 @@ function as(e, t) {
|
|
|
1360
1360
|
return o;
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Mi(e, t) {
|
|
1364
1364
|
if (Y) {
|
|
1365
1365
|
var r = T;
|
|
1366
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = x),
|
|
1366
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = x), Wr();
|
|
1367
1367
|
return;
|
|
1368
1368
|
}
|
|
1369
1369
|
e !== null && e.before(t);
|
|
1370
1370
|
}
|
|
1371
|
-
var
|
|
1371
|
+
var cs = [
|
|
1372
1372
|
"allowfullscreen",
|
|
1373
1373
|
"async",
|
|
1374
1374
|
"autofocus",
|
|
@@ -1397,8 +1397,8 @@ var ls = [
|
|
|
1397
1397
|
"defer",
|
|
1398
1398
|
"disablepictureinpicture",
|
|
1399
1399
|
"disableremoteplayback"
|
|
1400
|
-
],
|
|
1401
|
-
...
|
|
1400
|
+
], xo = [
|
|
1401
|
+
...cs,
|
|
1402
1402
|
"formNoValidate",
|
|
1403
1403
|
"isMap",
|
|
1404
1404
|
"noModule",
|
|
@@ -1413,17 +1413,17 @@ var ls = [
|
|
|
1413
1413
|
"allowFullscreen",
|
|
1414
1414
|
"disablePictureInPicture",
|
|
1415
1415
|
"disableRemotePlayback"
|
|
1416
|
-
],
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1416
|
+
], us = ["touchstart", "touchmove"];
|
|
1417
|
+
function ds(e) {
|
|
1418
|
+
return us.includes(e);
|
|
1419
1419
|
}
|
|
1420
|
-
var
|
|
1420
|
+
var fs = [
|
|
1421
1421
|
"$state",
|
|
1422
1422
|
"$state.raw",
|
|
1423
1423
|
"$derived",
|
|
1424
1424
|
"$derived.by"
|
|
1425
|
-
],
|
|
1426
|
-
...
|
|
1425
|
+
], Ho = [
|
|
1426
|
+
...fs,
|
|
1427
1427
|
"$state.eager",
|
|
1428
1428
|
"$state.snapshot",
|
|
1429
1429
|
"$props",
|
|
@@ -1438,18 +1438,18 @@ var ds = [
|
|
|
1438
1438
|
"$inspect().with",
|
|
1439
1439
|
"$inspect.trace",
|
|
1440
1440
|
"$host"
|
|
1441
|
-
],
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1441
|
+
], Or = !0;
|
|
1442
|
+
function Pi(e, t) {
|
|
1443
|
+
return xi(e, t);
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function hs(e, t) {
|
|
1446
1446
|
Wt(), t.intro = t.intro ?? !1;
|
|
1447
1447
|
const r = t.target, i = Y, n = x;
|
|
1448
1448
|
try {
|
|
1449
1449
|
for (var s = /* @__PURE__ */ qt(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ue(s);
|
|
1450
1450
|
if (!s) throw wt;
|
|
1451
1451
|
ct(!0), tt(s);
|
|
1452
|
-
const o =
|
|
1452
|
+
const o = xi(e, {
|
|
1453
1453
|
...t,
|
|
1454
1454
|
anchor: s
|
|
1455
1455
|
});
|
|
@@ -1457,61 +1457,61 @@ function fs(e, t) {
|
|
|
1457
1457
|
} catch (o) {
|
|
1458
1458
|
if (o instanceof Error && o.message.split(`
|
|
1459
1459
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw o;
|
|
1460
|
-
return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 &&
|
|
1460
|
+
return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && dn(), Wt(), Wn(r), ct(!1), Pi(e, t);
|
|
1461
1461
|
} finally {
|
|
1462
1462
|
ct(i), tt(n);
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
var vt = /* @__PURE__ */ new Map();
|
|
1466
|
-
function
|
|
1466
|
+
function xi(e, { target: t, anchor: r, props: i = {}, events: n, context: s, intro: o = !0, transformError: a }) {
|
|
1467
1467
|
Wt();
|
|
1468
|
-
var c = void 0, h =
|
|
1469
|
-
var _ = r ?? t.appendChild(
|
|
1470
|
-
|
|
1468
|
+
var c = void 0, h = Yn(() => {
|
|
1469
|
+
var _ = r ?? t.appendChild(yi());
|
|
1470
|
+
Ln(_, { pending: () => {
|
|
1471
1471
|
} }, (p) => {
|
|
1472
|
-
|
|
1472
|
+
Ur({});
|
|
1473
1473
|
var d = O;
|
|
1474
|
-
if (s && (d.c = s), n && (i.$$events = n), Y && _t(p, null),
|
|
1475
|
-
throw
|
|
1476
|
-
|
|
1474
|
+
if (s && (d.c = s), n && (i.$$events = n), Y && _t(p, null), Or = o, c = e(p, i) || {}, Or = !0, Y && (T.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
|
|
1475
|
+
throw Gr(), wt;
|
|
1476
|
+
Yr();
|
|
1477
1477
|
}, a);
|
|
1478
1478
|
var v = /* @__PURE__ */ new Set(), f = (p) => {
|
|
1479
1479
|
for (var d = 0; d < p.length; d++) {
|
|
1480
1480
|
var y = p[d];
|
|
1481
1481
|
if (!v.has(y)) {
|
|
1482
1482
|
v.add(y);
|
|
1483
|
-
var g =
|
|
1483
|
+
var g = ds(y);
|
|
1484
1484
|
for (const k of [t, document]) {
|
|
1485
1485
|
var S = vt.get(k);
|
|
1486
1486
|
S === void 0 && (S = /* @__PURE__ */ new Map(), vt.set(k, S));
|
|
1487
1487
|
var B = S.get(y);
|
|
1488
|
-
B === void 0 ? (k.addEventListener(y,
|
|
1488
|
+
B === void 0 ? (k.addEventListener(y, $r, { passive: g }), S.set(y, 1)) : S.set(y, B + 1);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
|
-
return f(
|
|
1493
|
+
return f(Yi(ns)), kr.add(f), () => {
|
|
1494
1494
|
for (var p of v) for (const g of [t, document]) {
|
|
1495
1495
|
var d = vt.get(g), y = d.get(p);
|
|
1496
|
-
--y == 0 ? (g.removeEventListener(p,
|
|
1496
|
+
--y == 0 ? (g.removeEventListener(p, $r), d.delete(p), d.size === 0 && vt.delete(g)) : d.set(p, y);
|
|
1497
1497
|
}
|
|
1498
|
-
|
|
1498
|
+
kr.delete(f), _ !== r && _.parentNode?.removeChild(_);
|
|
1499
1499
|
};
|
|
1500
1500
|
});
|
|
1501
1501
|
return Kt.set(c, h), c;
|
|
1502
1502
|
}
|
|
1503
1503
|
var Kt = /* @__PURE__ */ new WeakMap();
|
|
1504
|
-
function
|
|
1504
|
+
function ps(e, t) {
|
|
1505
1505
|
const r = Kt.get(e);
|
|
1506
1506
|
return r ? (Kt.delete(e), r(t)) : Promise.resolve();
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
O === null &&
|
|
1508
|
+
function vs(e) {
|
|
1509
|
+
O === null && on("onMount"), at && O.l !== null ? ms(O).m.push(e) : Ae(() => {
|
|
1510
1510
|
const t = Lt(e);
|
|
1511
1511
|
if (typeof t == "function") return t;
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function ms(e) {
|
|
1515
1515
|
var t = e.l;
|
|
1516
1516
|
return t.u ?? (t.u = {
|
|
1517
1517
|
a: [],
|
|
@@ -1519,45 +1519,45 @@ function vs(e) {
|
|
|
1519
1519
|
m: []
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
|
-
var
|
|
1523
|
-
\r\f \v\uFEFF`],
|
|
1522
|
+
var No = [...`
|
|
1523
|
+
\r\f \v\uFEFF`], Hi, Be = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakSet(), Ni = class {
|
|
1524
1524
|
constructor(e) {
|
|
1525
|
-
Jt(this,
|
|
1525
|
+
Jt(this, Lr), A(this, Be, /* @__PURE__ */ new WeakMap()), A(this, kt, void 0), A(this, Nt, void 0), b(Nt, this, e);
|
|
1526
1526
|
}
|
|
1527
1527
|
observe(e, t) {
|
|
1528
1528
|
var r = l(Be, this).get(e) || /* @__PURE__ */ new Set();
|
|
1529
|
-
return r.add(t), l(Be, this).set(e, r), E(
|
|
1529
|
+
return r.add(t), l(Be, this).set(e, r), E(Lr, this, gs).call(this).observe(e, l(Nt, this)), () => {
|
|
1530
1530
|
var i = l(Be, this).get(e);
|
|
1531
1531
|
i.delete(t), i.size === 0 && (l(Be, this).delete(e), l(kt, this).unobserve(e));
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1536
|
-
function
|
|
1535
|
+
Hi = Ni;
|
|
1536
|
+
function gs() {
|
|
1537
1537
|
return l(kt, this) ?? b(kt, this, new ResizeObserver((e) => {
|
|
1538
1538
|
for (var t of e) {
|
|
1539
|
-
|
|
1539
|
+
Hi.entries.set(t.target, t);
|
|
1540
1540
|
for (var r of l(Be, this).get(t.target) || []) r(t);
|
|
1541
1541
|
}
|
|
1542
1542
|
}));
|
|
1543
1543
|
}
|
|
1544
|
-
u(
|
|
1545
|
-
function
|
|
1544
|
+
u(Ni, "entries", /* @__PURE__ */ new WeakMap());
|
|
1545
|
+
function Rr(e, t) {
|
|
1546
1546
|
return e === t || e?.[Je] === t;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function _s(e = {}, t, r, i) {
|
|
1549
1549
|
var n = O.r, s = T;
|
|
1550
|
-
return
|
|
1550
|
+
return Xn(() => {
|
|
1551
1551
|
var o, a;
|
|
1552
1552
|
return nr(() => {
|
|
1553
1553
|
o = a, a = i?.() || [], Lt(() => {
|
|
1554
|
-
e !== r(...a) && (t(e, ...a), o &&
|
|
1554
|
+
e !== r(...a) && (t(e, ...a), o && Rr(r(...o), e) && t(null, ...o));
|
|
1555
1555
|
});
|
|
1556
1556
|
}), () => {
|
|
1557
1557
|
let c = s;
|
|
1558
1558
|
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
1559
1559
|
const h = () => {
|
|
1560
|
-
a &&
|
|
1560
|
+
a && Rr(r(...a), e) && t(null, ...a);
|
|
1561
1561
|
}, _ = c.teardown;
|
|
1562
1562
|
c.teardown = () => {
|
|
1563
1563
|
h(), _?.();
|
|
@@ -1569,11 +1569,11 @@ function he(e, t, r, i) {
|
|
|
1569
1569
|
var n = !at || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, a = i, c = !0, h = () => (c && (c = !1, a = o ? Lt(i) : i), a);
|
|
1570
1570
|
let _;
|
|
1571
1571
|
if (s) {
|
|
1572
|
-
var v = Je in e ||
|
|
1572
|
+
var v = Je in e || zr in e;
|
|
1573
1573
|
_ = ke(e, t)?.set ?? (v && t in e ? (k) => e[t] = k : void 0);
|
|
1574
1574
|
}
|
|
1575
1575
|
var f, p = !1;
|
|
1576
|
-
s ? [f, p] =
|
|
1576
|
+
s ? [f, p] = In(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = h(), _ && (n && fn(t), _(f)));
|
|
1577
1577
|
var d;
|
|
1578
1578
|
if (n ? d = () => {
|
|
1579
1579
|
var k = e[t];
|
|
@@ -1588,7 +1588,7 @@ function he(e, t, r, i) {
|
|
|
1588
1588
|
return arguments.length > 0 ? ((!n || !q || y || p) && _(q ? d() : k), k) : d();
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
|
-
var g = !1, S = (r & 1 ? tr :
|
|
1591
|
+
var g = !1, S = (r & 1 ? tr : Hn)(() => (g = !1, d()));
|
|
1592
1592
|
s && m(S);
|
|
1593
1593
|
var B = T;
|
|
1594
1594
|
return function(k, q) {
|
|
@@ -1599,14 +1599,14 @@ function he(e, t, r, i) {
|
|
|
1599
1599
|
return ge && g || B.f & 16384 ? S.v : m(S);
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return new
|
|
1602
|
+
function ys(e) {
|
|
1603
|
+
return new bs(e);
|
|
1604
1604
|
}
|
|
1605
|
-
var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(),
|
|
1605
|
+
var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), bs = class {
|
|
1606
1606
|
constructor(e) {
|
|
1607
1607
|
A(this, Te, void 0), A(this, te, void 0);
|
|
1608
1608
|
var t = /* @__PURE__ */ new Map(), r = (n, s) => {
|
|
1609
|
-
var o = /* @__PURE__ */
|
|
1609
|
+
var o = /* @__PURE__ */ Bn(s, !1, !1);
|
|
1610
1610
|
return t.set(n, o), o;
|
|
1611
1611
|
};
|
|
1612
1612
|
const i = new Proxy({
|
|
@@ -1617,13 +1617,13 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), ys =
|
|
|
1617
1617
|
return m(t.get(s) ?? r(s, Reflect.get(n, s)));
|
|
1618
1618
|
},
|
|
1619
1619
|
has(n, s) {
|
|
1620
|
-
return s ===
|
|
1620
|
+
return s === zr ? !0 : (m(t.get(s) ?? r(s, Reflect.get(n, s))), Reflect.has(n, s));
|
|
1621
1621
|
},
|
|
1622
1622
|
set(n, s, o) {
|
|
1623
1623
|
return $(t.get(s) ?? r(s, o), o), Reflect.set(n, s, o);
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
|
-
b(te, this, (e.hydrate ?
|
|
1626
|
+
b(te, this, (e.hydrate ? hs : Pi)(e.component, {
|
|
1627
1627
|
target: e.target,
|
|
1628
1628
|
anchor: e.anchor,
|
|
1629
1629
|
props: i,
|
|
@@ -1645,7 +1645,7 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), ys =
|
|
|
1645
1645
|
l(te, this).$set = (n) => {
|
|
1646
1646
|
Object.assign(i, n);
|
|
1647
1647
|
}, l(te, this).$destroy = () => {
|
|
1648
|
-
|
|
1648
|
+
ps(l(te, this));
|
|
1649
1649
|
};
|
|
1650
1650
|
}
|
|
1651
1651
|
$set(e) {
|
|
@@ -1661,8 +1661,8 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), ys =
|
|
|
1661
1661
|
$destroy() {
|
|
1662
1662
|
l(te, this).$destroy();
|
|
1663
1663
|
}
|
|
1664
|
-
},
|
|
1665
|
-
typeof HTMLElement == "function" && (
|
|
1664
|
+
}, Di;
|
|
1665
|
+
typeof HTMLElement == "function" && (Di = class extends HTMLElement {
|
|
1666
1666
|
constructor(e, t, r) {
|
|
1667
1667
|
super(), u(this, "$$ctor", void 0), u(this, "$$s", void 0), u(this, "$$c", void 0), u(this, "$$cn", !1), u(this, "$$d", {}), u(this, "$$r", !1), u(this, "$$p_d", {}), u(this, "$$l", {}), u(this, "$$l_u", /* @__PURE__ */ new Map()), u(this, "$$me", void 0), u(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
1668
1668
|
}
|
|
@@ -1683,19 +1683,19 @@ typeof HTMLElement == "function" && (Ni = class extends HTMLElement {
|
|
|
1683
1683
|
if (this.$$cn = !0, !this.$$c) {
|
|
1684
1684
|
let e = function(i) {
|
|
1685
1685
|
return (n) => {
|
|
1686
|
-
const s =
|
|
1687
|
-
i !== "default" && (s.name = i),
|
|
1686
|
+
const s = bi("slot");
|
|
1687
|
+
i !== "default" && (s.name = i), Mi(n, s);
|
|
1688
1688
|
};
|
|
1689
1689
|
};
|
|
1690
1690
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1691
|
-
const t = {}, r =
|
|
1691
|
+
const t = {}, r = ws(this);
|
|
1692
1692
|
for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
|
|
1693
1693
|
for (const i of this.attributes) {
|
|
1694
1694
|
const n = this.$$g_p(i.name);
|
|
1695
1695
|
n in this.$$d || (this.$$d[n] = yt(n, i.value, this.$$p_d, "toProp"));
|
|
1696
1696
|
}
|
|
1697
1697
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
1698
|
-
this.$$c =
|
|
1698
|
+
this.$$c = ys({
|
|
1699
1699
|
component: this.$$ctor,
|
|
1700
1700
|
target: this.$$shadowRoot || this,
|
|
1701
1701
|
props: {
|
|
@@ -1703,7 +1703,7 @@ typeof HTMLElement == "function" && (Ni = class extends HTMLElement {
|
|
|
1703
1703
|
$$slots: t,
|
|
1704
1704
|
$$host: this
|
|
1705
1705
|
}
|
|
1706
|
-
}), this.$$me =
|
|
1706
|
+
}), this.$$me = Un(() => {
|
|
1707
1707
|
nr(() => {
|
|
1708
1708
|
this.$$r = !0;
|
|
1709
1709
|
for (const i of Tt(this.$$c)) {
|
|
@@ -1760,14 +1760,14 @@ function yt(e, t, r, i) {
|
|
|
1760
1760
|
return t;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function ws(e) {
|
|
1764
1764
|
const t = {};
|
|
1765
1765
|
return e.childNodes.forEach((r) => {
|
|
1766
1766
|
t[r.slot || "default"] = !0;
|
|
1767
1767
|
}), t;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
let o = class extends
|
|
1769
|
+
function Ts(e, t, r, i, n, s) {
|
|
1770
|
+
let o = class extends Di {
|
|
1771
1771
|
constructor() {
|
|
1772
1772
|
super(e, r, n), this.$$p_d = t;
|
|
1773
1773
|
}
|
|
@@ -1792,14 +1792,14 @@ function ws(e, t, r, i, n, s) {
|
|
|
1792
1792
|
} });
|
|
1793
1793
|
}), s && (o = s(o)), e.element = o, o;
|
|
1794
1794
|
}
|
|
1795
|
-
var
|
|
1795
|
+
var As = class extends Event {
|
|
1796
1796
|
constructor(e, t, r, i) {
|
|
1797
1797
|
super("context-request", {
|
|
1798
1798
|
bubbles: !0,
|
|
1799
1799
|
composed: !0
|
|
1800
1800
|
}), u(this, "context", void 0), u(this, "contextTarget", void 0), u(this, "callback", void 0), u(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
1801
1801
|
}
|
|
1802
|
-
},
|
|
1802
|
+
}, Ss = class {
|
|
1803
1803
|
constructor(e, t) {
|
|
1804
1804
|
u(this, "host", void 0), u(this, "context", void 0), u(this, "subscribe", void 0), u(this, "onValue", void 0), u(this, "isConnected", !1), u(this, "unsubscribe", void 0), u(this, "currentValue", void 0), u(this, "handleValue", (r, i) => {
|
|
1805
1805
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -1815,12 +1815,12 @@ var Ts = class extends Event {
|
|
|
1815
1815
|
return this.currentValue;
|
|
1816
1816
|
}
|
|
1817
1817
|
requestValue() {
|
|
1818
|
-
this.host.dispatchEvent(new
|
|
1818
|
+
this.host.dispatchEvent(new As(this.context, this.host, this.handleValue, this.subscribe));
|
|
1819
1819
|
}
|
|
1820
|
-
}, Rt = (e) => e,
|
|
1821
|
-
function
|
|
1820
|
+
}, Rt = (e) => e, Is = Rt(Symbol.for("pie.assessmentToolkit.runtimeContext")), Do = Rt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Es = Rt(Symbol.for("pie.assessmentToolkit.shellContext")), Fo = Rt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
1821
|
+
function Fi(e, t, r) {
|
|
1822
1822
|
let i = !1;
|
|
1823
|
-
const n = new
|
|
1823
|
+
const n = new Ss(e, {
|
|
1824
1824
|
context: t,
|
|
1825
1825
|
subscribe: !0,
|
|
1826
1826
|
onValue: (h) => {
|
|
@@ -1844,48 +1844,48 @@ function Di(e, t, r) {
|
|
|
1844
1844
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", s), n.disconnect();
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
|
-
function Es(e, t) {
|
|
1848
|
-
return Di(e, Ss, t);
|
|
1849
|
-
}
|
|
1850
1847
|
function ks(e, t) {
|
|
1851
|
-
return
|
|
1848
|
+
return Fi(e, Is, t);
|
|
1852
1849
|
}
|
|
1853
1850
|
function Cs(e, t) {
|
|
1854
|
-
return
|
|
1851
|
+
return Fi(e, Es, t);
|
|
1855
1852
|
}
|
|
1856
1853
|
function $s(e, t) {
|
|
1857
1854
|
return ks(e, t);
|
|
1858
1855
|
}
|
|
1859
|
-
|
|
1856
|
+
function Os(e, t) {
|
|
1857
|
+
return Cs(e, t);
|
|
1858
|
+
}
|
|
1859
|
+
var Mr;
|
|
1860
1860
|
(function(e) {
|
|
1861
1861
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
1862
|
-
})(
|
|
1863
|
-
var
|
|
1862
|
+
})(Mr || (Mr = {}));
|
|
1863
|
+
var Pr;
|
|
1864
1864
|
(function(e) {
|
|
1865
1865
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
1866
|
-
})(
|
|
1867
|
-
function
|
|
1866
|
+
})(Pr || (Pr = {}));
|
|
1867
|
+
function Bi(e) {
|
|
1868
1868
|
return (...t) => {
|
|
1869
1869
|
console.debug(`[${e}]`, ...t);
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
var
|
|
1872
|
+
var Bo = Bi("I18nService"), Dt = {
|
|
1873
1873
|
assessment: [],
|
|
1874
1874
|
section: [],
|
|
1875
1875
|
item: [],
|
|
1876
1876
|
passage: [],
|
|
1877
1877
|
rubric: [],
|
|
1878
1878
|
element: []
|
|
1879
|
-
},
|
|
1879
|
+
}, jo = {
|
|
1880
1880
|
section: [...Dt.section],
|
|
1881
1881
|
item: [...Dt.item],
|
|
1882
1882
|
passage: [...Dt.passage]
|
|
1883
1883
|
};
|
|
1884
|
-
function
|
|
1884
|
+
function Ls(e) {
|
|
1885
1885
|
const t = e.trim();
|
|
1886
1886
|
return t || "";
|
|
1887
1887
|
}
|
|
1888
|
-
var
|
|
1888
|
+
var Rs = [
|
|
1889
1889
|
"assessment",
|
|
1890
1890
|
"section",
|
|
1891
1891
|
"item",
|
|
@@ -1896,10 +1896,10 @@ var Ls = [
|
|
|
1896
1896
|
function bt(e, t) {
|
|
1897
1897
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function xr(e) {
|
|
1900
1900
|
if (bt(e.toolId, "toolId"), bt(e.name, "name"), bt(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
1901
1901
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
1902
|
-
const t = e.supportedLevels.find((r) => !
|
|
1902
|
+
const t = e.supportedLevels.find((r) => !Rs.includes(r));
|
|
1903
1903
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
1904
1904
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
1905
1905
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -1908,23 +1908,23 @@ function Pr(e) {
|
|
|
1908
1908
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
1909
1909
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
1910
1910
|
}
|
|
1911
|
-
var
|
|
1911
|
+
var Ms = class {
|
|
1912
1912
|
constructor() {
|
|
1913
1913
|
u(this, "tools", /* @__PURE__ */ new Map()), u(this, "pnpIndex", /* @__PURE__ */ new Map()), u(this, "componentOverrides", {}), u(this, "moduleLoaders", /* @__PURE__ */ new Map()), u(this, "loadedToolModules", /* @__PURE__ */ new Set()), u(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
1914
1914
|
}
|
|
1915
1915
|
normalizeToolId(e) {
|
|
1916
|
-
return
|
|
1916
|
+
return Ls(e);
|
|
1917
1917
|
}
|
|
1918
1918
|
normalizeToolIds(e) {
|
|
1919
1919
|
return e.map((t) => this.normalizeToolId(t));
|
|
1920
1920
|
}
|
|
1921
1921
|
register(e) {
|
|
1922
|
-
if (
|
|
1922
|
+
if (xr(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
1923
1923
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
1924
1924
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
1925
1925
|
}
|
|
1926
1926
|
override(e) {
|
|
1927
|
-
if (
|
|
1927
|
+
if (xr(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
1928
1928
|
const t = this.tools.get(e.toolId);
|
|
1929
1929
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
1930
1930
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2051,20 +2051,20 @@ var Rs = class {
|
|
|
2051
2051
|
return i.renderToolbar(t, n);
|
|
2052
2052
|
}
|
|
2053
2053
|
};
|
|
2054
|
-
function
|
|
2054
|
+
function ji(e) {
|
|
2055
2055
|
return e.level === "item";
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2057
|
+
function Ps(e) {
|
|
2058
2058
|
return e.level === "passage";
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function xs(e) {
|
|
2061
2061
|
return e.level === "rubric";
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2063
|
+
function Vi(e) {
|
|
2064
2064
|
return e.level === "element";
|
|
2065
2065
|
}
|
|
2066
2066
|
function or(e) {
|
|
2067
|
-
if (
|
|
2067
|
+
if (Vi(e)) {
|
|
2068
2068
|
const t = e.item.config;
|
|
2069
2069
|
if (!t) return "";
|
|
2070
2070
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2079,7 +2079,7 @@ function or(e) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return r.filter(Boolean).join(" ").trim();
|
|
2081
2081
|
}
|
|
2082
|
-
if (
|
|
2082
|
+
if (ji(e)) {
|
|
2083
2083
|
const t = e.item;
|
|
2084
2084
|
if (!t?.config) return "";
|
|
2085
2085
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2098,7 +2098,7 @@ function or(e) {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
return i.filter(Boolean).join(" ").trim();
|
|
2100
2100
|
}
|
|
2101
|
-
if (
|
|
2101
|
+
if (Ps(e)) {
|
|
2102
2102
|
const t = e.passage;
|
|
2103
2103
|
if (!t?.config) return "";
|
|
2104
2104
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2117,7 +2117,7 @@ function or(e) {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
return i.filter(Boolean).join(" ").trim();
|
|
2119
2119
|
}
|
|
2120
|
-
if (
|
|
2120
|
+
if (xs(e)) {
|
|
2121
2121
|
const t = e.rubricBlock;
|
|
2122
2122
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2123
2123
|
}
|
|
@@ -2134,7 +2134,7 @@ function Mt(e) {
|
|
|
2134
2134
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2135
2135
|
].some((r) => r.test(t));
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function Hs(e) {
|
|
2138
2138
|
const t = [
|
|
2139
2139
|
"pie-multiple-choice",
|
|
2140
2140
|
"pie-inline-choice",
|
|
@@ -2143,7 +2143,7 @@ function xs(e) {
|
|
|
2143
2143
|
"inline-choice",
|
|
2144
2144
|
"select-text"
|
|
2145
2145
|
];
|
|
2146
|
-
if (
|
|
2146
|
+
if (Vi(e)) {
|
|
2147
2147
|
const r = e.item.config;
|
|
2148
2148
|
if (!r?.models) return !1;
|
|
2149
2149
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((s) => s && typeof s == "object" && s.id === e.elementId);
|
|
@@ -2151,7 +2151,7 @@ function xs(e) {
|
|
|
2151
2151
|
const n = i.element || "";
|
|
2152
2152
|
return t.includes(n);
|
|
2153
2153
|
}
|
|
2154
|
-
if (
|
|
2154
|
+
if (ji(e)) {
|
|
2155
2155
|
const r = e.item.config?.models;
|
|
2156
2156
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2157
2157
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2164,7 +2164,7 @@ function xs(e) {
|
|
|
2164
2164
|
function Pt(e) {
|
|
2165
2165
|
return or(e).trim().length >= 10;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Ns(e) {
|
|
2168
2168
|
const t = or(e);
|
|
2169
2169
|
return [
|
|
2170
2170
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2175,23 +2175,23 @@ function Hs(e) {
|
|
|
2175
2175
|
/physics|force|energy|velocity|acceleration/i
|
|
2176
2176
|
].some((r) => r.test(t));
|
|
2177
2177
|
}
|
|
2178
|
-
var
|
|
2178
|
+
var Ds = [
|
|
2179
2179
|
"assessment",
|
|
2180
2180
|
"section",
|
|
2181
2181
|
"item",
|
|
2182
2182
|
"passage",
|
|
2183
2183
|
"rubric"
|
|
2184
|
-
],
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2184
|
+
], Fs = new Set(Ds);
|
|
2185
|
+
function Bs(e) {
|
|
2186
|
+
return Fs.has(e);
|
|
2187
2187
|
}
|
|
2188
2188
|
function ar(e, t, r) {
|
|
2189
2189
|
const i = e.trim(), n = r.trim();
|
|
2190
2190
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2191
|
-
if (!
|
|
2191
|
+
if (!Bs(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2192
2192
|
return `${i}:${t}:${n}`;
|
|
2193
2193
|
}
|
|
2194
|
-
var
|
|
2194
|
+
var js = class {
|
|
2195
2195
|
constructor() {
|
|
2196
2196
|
u(this, "providerId", "desmos-calculator"), u(this, "providerName", "Desmos Calculator"), u(this, "category", "calculator"), u(this, "version", "1.10"), u(this, "requiresAuth", !0), u(this, "desmosProvider", null), u(this, "config", null);
|
|
2197
2197
|
}
|
|
@@ -2266,7 +2266,7 @@ var Bs = class {
|
|
|
2266
2266
|
destroy() {
|
|
2267
2267
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2268
2268
|
}
|
|
2269
|
-
},
|
|
2269
|
+
}, Vs = (e, t) => {
|
|
2270
2270
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2271
2271
|
try {
|
|
2272
2272
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2293,14 +2293,14 @@ var Bs = class {
|
|
|
2293
2293
|
text: e,
|
|
2294
2294
|
offset: 0
|
|
2295
2295
|
}];
|
|
2296
|
-
},
|
|
2296
|
+
}, zs = class {
|
|
2297
2297
|
constructor() {
|
|
2298
2298
|
u(this, "providerId", "browser"), u(this, "providerName", "Browser Speech Synthesis"), u(this, "version", "1.0.0");
|
|
2299
2299
|
}
|
|
2300
2300
|
async initialize(e) {
|
|
2301
2301
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2302
2302
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2303
|
-
return new
|
|
2303
|
+
return new Gs(e);
|
|
2304
2304
|
}
|
|
2305
2305
|
supportsFeature(e) {
|
|
2306
2306
|
return !0;
|
|
@@ -2317,7 +2317,7 @@ var Bs = class {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
destroy() {
|
|
2319
2319
|
}
|
|
2320
|
-
},
|
|
2320
|
+
}, Gs = class {
|
|
2321
2321
|
constructor(e) {
|
|
2322
2322
|
u(this, "utterance", null), u(this, "config", null), u(this, "_isPlaying", !1), u(this, "_isPaused", !1), u(this, "speakRunId", 0), u(this, "onWordBoundary", void 0), this.config = e;
|
|
2323
2323
|
}
|
|
@@ -2387,7 +2387,7 @@ var Bs = class {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
segmentSentences(e) {
|
|
2389
2389
|
const t = this.getSegmentationPolicy();
|
|
2390
|
-
return
|
|
2390
|
+
return Vs(e, {
|
|
2391
2391
|
locale: t.locale,
|
|
2392
2392
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2393
2393
|
});
|
|
@@ -2456,7 +2456,7 @@ var Bs = class {
|
|
|
2456
2456
|
...e.providerOptions || {}
|
|
2457
2457
|
});
|
|
2458
2458
|
}
|
|
2459
|
-
},
|
|
2459
|
+
}, Ws = class {
|
|
2460
2460
|
async emitTelemetry(e, t) {
|
|
2461
2461
|
try {
|
|
2462
2462
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -2488,7 +2488,7 @@ var Bs = class {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
async _initializeBrowserTTS(e) {
|
|
2490
2490
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2491
|
-
this.ttsProvider = new
|
|
2491
|
+
this.ttsProvider = new zs(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2492
2492
|
}
|
|
2493
2493
|
async _initializeServerTTS(e) {
|
|
2494
2494
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2499,7 +2499,7 @@ var Bs = class {
|
|
|
2499
2499
|
backend: e.serverProvider || e.backend
|
|
2500
2500
|
}), this.ttsProvider = new (await (async () => {
|
|
2501
2501
|
try {
|
|
2502
|
-
const r = await import("./dist-
|
|
2502
|
+
const r = await import("./dist-Bud4G4lv.js");
|
|
2503
2503
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
2504
2504
|
toolId: "tts",
|
|
2505
2505
|
operation: "server-provider-module-import",
|
|
@@ -2544,7 +2544,7 @@ var Bs = class {
|
|
|
2544
2544
|
destroy() {
|
|
2545
2545
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2546
2546
|
}
|
|
2547
|
-
},
|
|
2547
|
+
}, qs = /* @__PURE__ */ new Set([
|
|
2548
2548
|
"annotation-xml",
|
|
2549
2549
|
"color-profile",
|
|
2550
2550
|
"font-face",
|
|
@@ -2553,16 +2553,16 @@ var Bs = class {
|
|
|
2553
2553
|
"font-face-format",
|
|
2554
2554
|
"font-face-name",
|
|
2555
2555
|
"missing-glyph"
|
|
2556
|
-
]),
|
|
2556
|
+
]), Ks = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Us = (e, t = "custom element tag") => {
|
|
2557
2557
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
2558
2558
|
const r = e.trim();
|
|
2559
2559
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
2560
2560
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
2561
2561
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
2562
|
-
if (
|
|
2563
|
-
if (!
|
|
2562
|
+
if (qs.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
2563
|
+
if (!Ks.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2564
2564
|
return r;
|
|
2565
|
-
},
|
|
2565
|
+
}, zi = {
|
|
2566
2566
|
calculator: "pie-tool-calculator",
|
|
2567
2567
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2568
2568
|
ruler: "pie-tool-ruler",
|
|
@@ -2575,22 +2575,22 @@ var Bs = class {
|
|
|
2575
2575
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2576
2576
|
graph: "pie-tool-graph",
|
|
2577
2577
|
periodicTable: "pie-tool-periodic-table"
|
|
2578
|
-
},
|
|
2579
|
-
const n =
|
|
2578
|
+
}, Ys = (e, t) => Us(t?.toolTagMap?.[e] ?? zi[e] ?? e, `tool component tag for "${e}"`), Xs = (e) => document.createElement(e), ne = (e, t, r, i) => {
|
|
2579
|
+
const n = Ys(e, i), s = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
2580
2580
|
return s ? s({
|
|
2581
2581
|
toolId: e,
|
|
2582
2582
|
tagName: n,
|
|
2583
2583
|
context: t,
|
|
2584
2584
|
toolbarContext: r
|
|
2585
|
-
}) :
|
|
2586
|
-
},
|
|
2585
|
+
}) : Xs(n);
|
|
2586
|
+
}, Qs = {
|
|
2587
2587
|
toolId: "calculator",
|
|
2588
2588
|
name: "Calculator",
|
|
2589
2589
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2590
2590
|
icon: "calculator",
|
|
2591
2591
|
provider: {
|
|
2592
2592
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
2593
|
-
createProvider: () => new
|
|
2593
|
+
createProvider: () => new js(),
|
|
2594
2594
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
2595
2595
|
getAuthFetcher: (e) => {
|
|
2596
2596
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -2656,9 +2656,9 @@ var Bs = class {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
|
-
},
|
|
2659
|
+
}, Hr = (e) => e && typeof e == "object" ? e : {}, Js = (e) => e === "polly" || e === "google" || e === "server", V = (e, t) => e === void 0 ? t : e, Zs = (e) => {
|
|
2660
2660
|
const t = e.backend || "browser";
|
|
2661
|
-
if (!
|
|
2661
|
+
if (!Js(t)) return e;
|
|
2662
2662
|
const r = {
|
|
2663
2663
|
...e,
|
|
2664
2664
|
apiEndpoint: V(e.apiEndpoint, "/api/tts"),
|
|
@@ -2680,13 +2680,13 @@ var Bs = class {
|
|
|
2680
2680
|
defaultVoice: V(r.defaultVoice, "en-US-Wavenet-A")
|
|
2681
2681
|
} : r;
|
|
2682
2682
|
}, Ft = (e) => {
|
|
2683
|
-
const t =
|
|
2684
|
-
return
|
|
2683
|
+
const t = Hr(e), r = Hr(e?.settings);
|
|
2684
|
+
return Zs({
|
|
2685
2685
|
...t,
|
|
2686
2686
|
...r
|
|
2687
2687
|
});
|
|
2688
|
-
}, Ut = (e) => e.backend || "browser",
|
|
2689
|
-
const t = Ut(e), r =
|
|
2688
|
+
}, Ut = (e) => e.backend || "browser", Gi = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), Wi = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), eo = (e) => {
|
|
2689
|
+
const t = Ut(e), r = Gi(e, t), i = Wi(e, r);
|
|
2690
2690
|
return {
|
|
2691
2691
|
voice: e.defaultVoice,
|
|
2692
2692
|
rate: e.rate,
|
|
@@ -2710,30 +2710,31 @@ var Bs = class {
|
|
|
2710
2710
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
2711
2711
|
validateEndpoint: e.validateEndpoint
|
|
2712
2712
|
};
|
|
2713
|
-
}, Xe = /* @__PURE__ */ new Map(),
|
|
2714
|
-
if (!Array.isArray(e)) return [...
|
|
2713
|
+
}, Xe = /* @__PURE__ */ new Map(), to = "__pieToolElementUnmount", Nr = Object.freeze([1.5, 2]), ro = (e) => {
|
|
2714
|
+
if (!Array.isArray(e)) return [...Nr];
|
|
2715
|
+
if (e.length === 0) return [];
|
|
2715
2716
|
const t = /* @__PURE__ */ new Set();
|
|
2716
2717
|
for (const r of e) {
|
|
2717
2718
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
2718
2719
|
const i = Math.round(r * 100) / 100;
|
|
2719
2720
|
i !== 1 && t.add(i);
|
|
2720
2721
|
}
|
|
2721
|
-
return t.size ? Array.from(t) : [...
|
|
2722
|
-
},
|
|
2722
|
+
return t.size ? Array.from(t) : [...Nr];
|
|
2723
|
+
}, io = {
|
|
2723
2724
|
toolId: "textToSpeech",
|
|
2724
2725
|
name: "Text to Speech",
|
|
2725
2726
|
description: "Read content aloud",
|
|
2726
2727
|
icon: "volume-up",
|
|
2727
2728
|
provider: {
|
|
2728
2729
|
getProviderId: () => "tts",
|
|
2729
|
-
createProvider: (e) => new
|
|
2730
|
+
createProvider: (e) => new Ws(Ut(Ft(e))),
|
|
2730
2731
|
getInitConfig: (e) => {
|
|
2731
|
-
const t = Ft(e), r = Ut(t), i =
|
|
2732
|
+
const t = Ft(e), r = Ut(t), i = Gi(t, r);
|
|
2732
2733
|
return {
|
|
2733
2734
|
backend: r,
|
|
2734
2735
|
serverProvider: i,
|
|
2735
|
-
transportMode:
|
|
2736
|
-
...
|
|
2736
|
+
transportMode: Wi(t, i),
|
|
2737
|
+
...eo(t)
|
|
2737
2738
|
};
|
|
2738
2739
|
},
|
|
2739
2740
|
getAuthFetcher: (e) => {
|
|
@@ -2758,12 +2759,12 @@ var Bs = class {
|
|
|
2758
2759
|
return Pt(e);
|
|
2759
2760
|
},
|
|
2760
2761
|
renderToolbar(e, t) {
|
|
2761
|
-
const r = () =>
|
|
2762
|
+
const r = () => ro(Ft(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), i = ar(this.toolId, t.scope.level, t.scope.scopeId), n = () => {
|
|
2762
2763
|
const o = t.ui?.size;
|
|
2763
2764
|
return o === "sm" || o === "lg" ? o : "md";
|
|
2764
2765
|
}, s = () => {
|
|
2765
2766
|
let o = Xe.get(i);
|
|
2766
|
-
return o && typeof o.isConnected == "boolean" && !o.isConnected && (Xe.delete(i), o = void 0), o || (o = document.createElement("pie-tool-tts-inline"), o[
|
|
2767
|
+
return o && typeof o.isConnected == "boolean" && !o.isConnected && (Xe.delete(i), o = void 0), o || (o = document.createElement("pie-tool-tts-inline"), o[to] = () => {
|
|
2767
2768
|
Xe.get(i) === o && Xe.delete(i);
|
|
2768
2769
|
}, Xe.set(i, o)), o.setAttribute("tool-id", i), o.setAttribute("catalog-id", t.catalogId || t.itemId), o.setAttribute("language", t.language || "en-US"), o.setAttribute("size", n()), o.speedOptions = r(), o;
|
|
2769
2770
|
};
|
|
@@ -2796,7 +2797,10 @@ function de(e) {
|
|
|
2796
2797
|
const t = e.isActive();
|
|
2797
2798
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
2798
2799
|
}
|
|
2799
|
-
|
|
2800
|
+
function lr(e, t) {
|
|
2801
|
+
e.setAttribute("data-pie-tool-surface", t);
|
|
2802
|
+
}
|
|
2803
|
+
var no = {
|
|
2800
2804
|
toolId: "ruler",
|
|
2801
2805
|
name: "Ruler",
|
|
2802
2806
|
description: "On-screen ruler for measurements",
|
|
@@ -2817,7 +2821,7 @@ var io = {
|
|
|
2817
2821
|
onClick: () => t.toggleTool(this.toolId),
|
|
2818
2822
|
active: r.isActive()
|
|
2819
2823
|
}, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
|
|
2820
|
-
return s.setAttribute("tool-id", r.fullToolId), {
|
|
2824
|
+
return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
|
|
2821
2825
|
toolId: this.toolId,
|
|
2822
2826
|
button: i,
|
|
2823
2827
|
elements: [{
|
|
@@ -2834,7 +2838,7 @@ var io = {
|
|
|
2834
2838
|
subscribeActive: r.subscribeActive
|
|
2835
2839
|
};
|
|
2836
2840
|
}
|
|
2837
|
-
},
|
|
2841
|
+
}, so = {
|
|
2838
2842
|
toolId: "protractor",
|
|
2839
2843
|
name: "Protractor",
|
|
2840
2844
|
description: "On-screen protractor for angle measurements",
|
|
@@ -2855,7 +2859,7 @@ var io = {
|
|
|
2855
2859
|
onClick: () => t.toggleTool(this.toolId),
|
|
2856
2860
|
active: r.isActive()
|
|
2857
2861
|
}, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
|
|
2858
|
-
return s.setAttribute("tool-id", r.fullToolId), {
|
|
2862
|
+
return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
|
|
2859
2863
|
toolId: this.toolId,
|
|
2860
2864
|
button: i,
|
|
2861
2865
|
elements: [{
|
|
@@ -2872,7 +2876,7 @@ var io = {
|
|
|
2872
2876
|
subscribeActive: r.subscribeActive
|
|
2873
2877
|
};
|
|
2874
2878
|
}
|
|
2875
|
-
},
|
|
2879
|
+
}, oo = {
|
|
2876
2880
|
toolId: "answerEliminator",
|
|
2877
2881
|
name: "Answer Eliminator",
|
|
2878
2882
|
description: "Strike through answer choices",
|
|
@@ -2885,7 +2889,7 @@ var io = {
|
|
|
2885
2889
|
"choiceMasking"
|
|
2886
2890
|
],
|
|
2887
2891
|
isVisibleInContext(e) {
|
|
2888
|
-
return
|
|
2892
|
+
return Hs(e);
|
|
2889
2893
|
},
|
|
2890
2894
|
renderToolbar(e, t) {
|
|
2891
2895
|
const r = ue(this.toolId, t), i = t.componentOverrides ?? {}, n = ne(this.toolId, e, t, i);
|
|
@@ -2919,7 +2923,7 @@ var io = {
|
|
|
2919
2923
|
subscribeActive: r.subscribeActive
|
|
2920
2924
|
};
|
|
2921
2925
|
}
|
|
2922
|
-
},
|
|
2926
|
+
}, ao = {
|
|
2923
2927
|
toolId: "highlighter",
|
|
2924
2928
|
name: "Highlighter",
|
|
2925
2929
|
description: "Highlight text",
|
|
@@ -2970,7 +2974,7 @@ var io = {
|
|
|
2970
2974
|
subscribeActive: r.subscribeActive
|
|
2971
2975
|
};
|
|
2972
2976
|
}
|
|
2973
|
-
},
|
|
2977
|
+
}, lo = {
|
|
2974
2978
|
toolId: "lineReader",
|
|
2975
2979
|
name: "Line Reader",
|
|
2976
2980
|
description: "Reading guide overlay",
|
|
@@ -3001,7 +3005,7 @@ var io = {
|
|
|
3001
3005
|
onClick: () => t.toggleTool(this.toolId),
|
|
3002
3006
|
active: r.isActive()
|
|
3003
3007
|
}, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
|
|
3004
|
-
return s.setAttribute("tool-id", r.fullToolId), {
|
|
3008
|
+
return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
|
|
3005
3009
|
toolId: this.toolId,
|
|
3006
3010
|
button: i,
|
|
3007
3011
|
elements: [{
|
|
@@ -3018,7 +3022,7 @@ var io = {
|
|
|
3018
3022
|
subscribeActive: r.subscribeActive
|
|
3019
3023
|
};
|
|
3020
3024
|
}
|
|
3021
|
-
},
|
|
3025
|
+
}, co = {
|
|
3022
3026
|
toolId: "theme",
|
|
3023
3027
|
name: "Theme",
|
|
3024
3028
|
description: "Accessible themes and contrast",
|
|
@@ -3074,7 +3078,7 @@ var io = {
|
|
|
3074
3078
|
subscribeActive: r.subscribeActive
|
|
3075
3079
|
};
|
|
3076
3080
|
}
|
|
3077
|
-
},
|
|
3081
|
+
}, uo = {
|
|
3078
3082
|
toolId: "annotationToolbar",
|
|
3079
3083
|
name: "Highlighter",
|
|
3080
3084
|
description: "Highlight and annotate text",
|
|
@@ -3125,7 +3129,7 @@ var io = {
|
|
|
3125
3129
|
subscribeActive: r.subscribeActive
|
|
3126
3130
|
};
|
|
3127
3131
|
}
|
|
3128
|
-
},
|
|
3132
|
+
}, fo = {
|
|
3129
3133
|
toolId: "graph",
|
|
3130
3134
|
name: "Graph",
|
|
3131
3135
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3178,7 +3182,7 @@ var io = {
|
|
|
3178
3182
|
subscribeActive: r.subscribeActive
|
|
3179
3183
|
};
|
|
3180
3184
|
}
|
|
3181
|
-
},
|
|
3185
|
+
}, ho = {
|
|
3182
3186
|
toolId: "periodicTable",
|
|
3183
3187
|
name: "Periodic Table",
|
|
3184
3188
|
description: "Chemistry periodic table reference",
|
|
@@ -3190,7 +3194,7 @@ var io = {
|
|
|
3190
3194
|
"elementReference"
|
|
3191
3195
|
],
|
|
3192
3196
|
isVisibleInContext(e) {
|
|
3193
|
-
return
|
|
3197
|
+
return Ns(e);
|
|
3194
3198
|
},
|
|
3195
3199
|
renderToolbar(e, t) {
|
|
3196
3200
|
const r = ue(this.toolId, t), i = {
|
|
@@ -3230,9 +3234,8 @@ var io = {
|
|
|
3230
3234
|
subscribeActive: r.subscribeActive
|
|
3231
3235
|
};
|
|
3232
3236
|
}
|
|
3233
|
-
},
|
|
3234
|
-
|
|
3235
|
-
ro,
|
|
3237
|
+
}, po = [
|
|
3238
|
+
Qs,
|
|
3236
3239
|
io,
|
|
3237
3240
|
no,
|
|
3238
3241
|
so,
|
|
@@ -3241,43 +3244,44 @@ var io = {
|
|
|
3241
3244
|
lo,
|
|
3242
3245
|
co,
|
|
3243
3246
|
uo,
|
|
3244
|
-
fo
|
|
3247
|
+
fo,
|
|
3248
|
+
ho
|
|
3245
3249
|
];
|
|
3246
|
-
function
|
|
3247
|
-
const t = new
|
|
3250
|
+
function vo(e = {}) {
|
|
3251
|
+
const t = new Ms(), r = {
|
|
3248
3252
|
toolTagMap: {
|
|
3249
|
-
...
|
|
3253
|
+
...zi,
|
|
3250
3254
|
...e.toolTagMap || {}
|
|
3251
3255
|
},
|
|
3252
3256
|
toolComponentFactory: e.toolComponentFactory,
|
|
3253
3257
|
toolComponentFactories: e.toolComponentFactories
|
|
3254
3258
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
3255
|
-
return e.includePackagedTools &&
|
|
3259
|
+
return e.includePackagedTools && mo(t, {
|
|
3256
3260
|
toolIds: e.toolIds,
|
|
3257
3261
|
applyOverrides: i
|
|
3258
3262
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3259
3263
|
}
|
|
3260
|
-
function
|
|
3264
|
+
function mo(e, t = {}) {
|
|
3261
3265
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
3262
|
-
for (const n of
|
|
3266
|
+
for (const n of po)
|
|
3263
3267
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
3264
3268
|
}
|
|
3265
|
-
function
|
|
3266
|
-
return
|
|
3269
|
+
function go(e = {}) {
|
|
3270
|
+
return vo({
|
|
3267
3271
|
...e,
|
|
3268
3272
|
includePackagedTools: !0
|
|
3269
3273
|
});
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3272
|
-
const e =
|
|
3275
|
+
function _o() {
|
|
3276
|
+
const e = go(), t = /* @__PURE__ */ new Set();
|
|
3273
3277
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3274
3278
|
return [...t].sort();
|
|
3275
3279
|
}
|
|
3276
|
-
var
|
|
3277
|
-
supports: [...
|
|
3280
|
+
var yo = _o(), Vo = {
|
|
3281
|
+
supports: [...yo],
|
|
3278
3282
|
prohibitedSupports: [],
|
|
3279
3283
|
activateAtInit: []
|
|
3280
|
-
},
|
|
3284
|
+
}, bo = {
|
|
3281
3285
|
visual: {
|
|
3282
3286
|
magnification: "magnification",
|
|
3283
3287
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3390,15 +3394,15 @@ var _o = go(), jo = {
|
|
|
3390
3394
|
itemGlossary: "itemGlossary",
|
|
3391
3395
|
tutorialAvailable: "tutorialAvailable"
|
|
3392
3396
|
}
|
|
3393
|
-
},
|
|
3397
|
+
}, zo = Object.values(bo).flatMap((e) => Object.values(e)), Go = Bi("ToolCoordinator"), Yt;
|
|
3394
3398
|
(function(e) {
|
|
3395
3399
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3396
3400
|
})(Yt || (Yt = {}));
|
|
3397
|
-
var
|
|
3401
|
+
var Dr;
|
|
3398
3402
|
(function(e) {
|
|
3399
3403
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3400
|
-
})(
|
|
3401
|
-
var
|
|
3404
|
+
})(Dr || (Dr = {}));
|
|
3405
|
+
var qi, ye = class K {
|
|
3402
3406
|
constructor() {
|
|
3403
3407
|
u(this, "elementType", "multiple-choice"), u(this, "priority", 100);
|
|
3404
3408
|
}
|
|
@@ -3447,13 +3451,13 @@ var Wi, ye = class K {
|
|
|
3447
3451
|
for (const r of t.querySelectorAll(".feedback-tick")) r.setAttribute(K.FEEDBACK_HOOK_ATTR, "true");
|
|
3448
3452
|
}
|
|
3449
3453
|
};
|
|
3450
|
-
|
|
3454
|
+
qi = ye;
|
|
3451
3455
|
u(ye, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
3452
3456
|
u(ye, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
|
|
3453
3457
|
u(ye, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root");
|
|
3454
3458
|
u(ye, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick");
|
|
3455
|
-
u(ye, "CHOICE_SELECTOR", `[${
|
|
3456
|
-
var
|
|
3459
|
+
u(ye, "CHOICE_SELECTOR", `[${qi.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
|
|
3460
|
+
var wo = class {
|
|
3457
3461
|
constructor() {
|
|
3458
3462
|
u(this, "elementType", "ebsr"), u(this, "priority", 95), u(this, "mcAdapter", new ye());
|
|
3459
3463
|
}
|
|
@@ -3479,7 +3483,7 @@ var bo = class {
|
|
|
3479
3483
|
getButtonContainer(e) {
|
|
3480
3484
|
return this.mcAdapter.getButtonContainer(e);
|
|
3481
3485
|
}
|
|
3482
|
-
},
|
|
3486
|
+
}, To = class {
|
|
3483
3487
|
constructor() {
|
|
3484
3488
|
u(this, "elementType", "inline-dropdown"), u(this, "priority", 90);
|
|
3485
3489
|
}
|
|
@@ -3505,12 +3509,12 @@ var bo = class {
|
|
|
3505
3509
|
getButtonContainer(e) {
|
|
3506
3510
|
return e;
|
|
3507
3511
|
}
|
|
3508
|
-
},
|
|
3512
|
+
}, Ao = class {
|
|
3509
3513
|
constructor() {
|
|
3510
3514
|
u(this, "adapters", void 0), this.adapters = [
|
|
3511
3515
|
new ye(),
|
|
3512
|
-
new
|
|
3513
|
-
new
|
|
3516
|
+
new wo(),
|
|
3517
|
+
new To()
|
|
3514
3518
|
].sort((e, t) => t.priority - e.priority);
|
|
3515
3519
|
}
|
|
3516
3520
|
findAdapter(e) {
|
|
@@ -3721,9 +3725,9 @@ u(fe, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
|
3721
3725
|
u(fe, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
|
|
3722
3726
|
u(fe, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
|
|
3723
3727
|
u(fe, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
|
|
3724
|
-
var
|
|
3728
|
+
var cr = class Qe {
|
|
3725
3729
|
constructor(t = "strikethrough", r = "right") {
|
|
3726
|
-
u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new
|
|
3730
|
+
u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new Ao(), this.strategy = this.createStrategy(t), this.strategy.initialize(), this.buttonAlignment = r;
|
|
3727
3731
|
}
|
|
3728
3732
|
createStrategy(t) {
|
|
3729
3733
|
switch (t) {
|
|
@@ -3870,22 +3874,22 @@ var lr = class Qe {
|
|
|
3870
3874
|
this.cleanupButtons(), this.strategy.destroy();
|
|
3871
3875
|
}
|
|
3872
3876
|
};
|
|
3873
|
-
u(
|
|
3874
|
-
u(
|
|
3875
|
-
var
|
|
3876
|
-
function
|
|
3877
|
-
|
|
3877
|
+
u(cr, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
|
|
3878
|
+
u(cr, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
|
|
3879
|
+
var So = /* @__PURE__ */ ls('<div style="display: none;" aria-hidden="true"></div>');
|
|
3880
|
+
function Io(e, t) {
|
|
3881
|
+
Ur(t, !0);
|
|
3878
3882
|
let r = he(t, "visible", 7, !1), i = he(t, "toolId", 7, "answerEliminator"), n = he(t, "strategy", 7, "strikethrough"), s = he(t, "alwaysOn", 7, !1), o = he(t, "buttonAlignment", 7, "right"), a = he(t, "scopeElement", 7, null), c = he(t, "elementToolStateStore", 7, null), h = he(t, "globalElementId", 7, ""), _ = /* @__PURE__ */ P(null), v = /* @__PURE__ */ P(null), f = /* @__PURE__ */ P(null);
|
|
3879
|
-
const p = /* @__PURE__ */
|
|
3880
|
-
let d = /* @__PURE__ */ P(null), y = /* @__PURE__ */ P(null), g = /* @__PURE__ */ P(null), S = /* @__PURE__ */ P(null), B = /* @__PURE__ */
|
|
3883
|
+
const p = /* @__PURE__ */ Ar(() => m(v)?.toolCoordinator);
|
|
3884
|
+
let d = /* @__PURE__ */ P(null), y = /* @__PURE__ */ P(null), g = /* @__PURE__ */ P(null), S = /* @__PURE__ */ P(null), B = /* @__PURE__ */ Ar(() => s() || r());
|
|
3881
3885
|
Ae(() => {
|
|
3882
3886
|
if (m(_))
|
|
3883
|
-
return
|
|
3887
|
+
return $s(m(_), (I) => {
|
|
3884
3888
|
$(v, I, !0);
|
|
3885
3889
|
});
|
|
3886
3890
|
}), Ae(() => {
|
|
3887
3891
|
if (m(_))
|
|
3888
|
-
return
|
|
3892
|
+
return Os(m(_), (I) => {
|
|
3889
3893
|
$(f, I, !0);
|
|
3890
3894
|
});
|
|
3891
3895
|
});
|
|
@@ -3912,7 +3916,7 @@ function So(e, t) {
|
|
|
3912
3916
|
!m(p) || !i() || (m(S) && m(g) && (m(S) !== m(p) || m(g) !== i()) && (m(S).unregisterTool(m(g)), $(S, null), $(g, null)), m(g) || (m(p).registerTool(i(), "Answer Eliminator", void 0, Yt.MODAL), $(S, m(p), !0), $(g, i())));
|
|
3913
3917
|
}), Ae(() => {
|
|
3914
3918
|
m(d) && c() && h() && m(d).setStoreIntegration(c(), h());
|
|
3915
|
-
}),
|
|
3919
|
+
}), vs(() => ($(d, new cr(n(), o()), !0), m(d) && c() && h() && m(d).setStoreIntegration(c(), h()), m(B) ? q() : m(d).cleanup(), () => {
|
|
3916
3920
|
m(d)?.destroy(), $(d, null), m(S) && m(g) && (m(S).unregisterTool(m(g)), $(S, null), $(g, null));
|
|
3917
3921
|
})), Ae(() => {
|
|
3918
3922
|
const I = m(f)?.contextVersion ?? null;
|
|
@@ -3975,10 +3979,10 @@ function So(e, t) {
|
|
|
3975
3979
|
set globalElementId(I = "") {
|
|
3976
3980
|
h(I), se();
|
|
3977
3981
|
}
|
|
3978
|
-
},
|
|
3979
|
-
return
|
|
3982
|
+
}, ur = So();
|
|
3983
|
+
return _s(ur, (I) => $(_, I), () => m(_)), Mi(e, ur), Yr(Ye);
|
|
3980
3984
|
}
|
|
3981
|
-
customElements.define("pie-tool-answer-eliminator",
|
|
3985
|
+
customElements.define("pie-tool-answer-eliminator", Ts(Io, {
|
|
3982
3986
|
visible: {
|
|
3983
3987
|
attribute: "visible",
|
|
3984
3988
|
type: "Boolean"
|
|
@@ -4004,5 +4008,5 @@ customElements.define("pie-tool-answer-eliminator", ws(So, {
|
|
|
4004
4008
|
globalElementId: { type: "String" }
|
|
4005
4009
|
}, [], [], { mode: "open" }));
|
|
4006
4010
|
export {
|
|
4007
|
-
|
|
4011
|
+
Io as default
|
|
4008
4012
|
};
|