@pie-players/pie-tool-theme 0.3.26 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-color-scheme.js +1269 -1211
- package/package.json +5 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as g } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var Pi,
|
|
4
|
-
((Pi = (
|
|
3
|
+
var Pi, Mi;
|
|
4
|
+
((Pi = (Mi = window).__svelte ?? (Mi.__svelte = {})).v ?? (Pi.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var pt = {}, j = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var pt = {}, j = Symbol(), gc = Symbol("filename");
|
|
7
|
+
var mo = Array.isArray, Qn = Array.prototype.indexOf, vt = Array.prototype.includes, ur = Array.from, tr = Object.keys, rr = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, Jn = Object.getOwnPropertyDescriptors, Xn = Object.prototype, Zn = Array.prototype, _o = Object.getPrototypeOf, Ri = Object.isExtensible, es = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function ts(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function bo() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,78 +19,78 @@ function mo() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var mc = 1 << 24, ae = 1024, ye = 2048, tt = 4096, oi = 8192, rs = 16384, ni = 32768, Ci = 1 << 25, si = 65536, _c = 1 << 17, bc = 1 << 18, yt = 1 << 19, is = 1 << 20, Ot = 1 << 25, Dt = 65536, xi = 1 << 21, os = 1 << 22, ir = 1 << 23, Lt = Symbol("$state"), yo = Symbol("legacy props"), ns = Symbol(""), ss = Symbol("proxy path"), $e = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
|
-
super(...t),
|
|
24
|
+
super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), as = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function ls(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function cs() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function us(e, t, r) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function fs(e) {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ds() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function hs(e) {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ps() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function vs() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function gs(e) {
|
|
52
52
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ms() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function _s() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function bs() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ys() {
|
|
64
64
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function fr(e) {
|
|
67
67
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ws() {
|
|
70
70
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
function
|
|
74
|
-
|
|
72
|
+
var O = !1;
|
|
73
|
+
function Oe(e) {
|
|
74
|
+
O = e;
|
|
75
75
|
}
|
|
76
76
|
var $;
|
|
77
77
|
function Q(e) {
|
|
78
78
|
if (e === null)
|
|
79
|
-
throw
|
|
79
|
+
throw fr(), pt;
|
|
80
80
|
return $ = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function dr() {
|
|
83
83
|
return Q(/* @__PURE__ */ we($));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
85
|
+
function B(e) {
|
|
86
|
+
if (O) {
|
|
87
87
|
if (/* @__PURE__ */ we($) !== null)
|
|
88
|
-
throw
|
|
88
|
+
throw fr(), pt;
|
|
89
89
|
$ = e;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
92
|
+
function wo(e = 1) {
|
|
93
|
+
if (O) {
|
|
94
94
|
for (var t = e, r = $; t--; ) r = /* @__PURE__ */ we(r);
|
|
95
95
|
$ = r;
|
|
96
96
|
}
|
|
@@ -108,32 +108,32 @@ function or(e = !0) {
|
|
|
108
108
|
e && r.remove(), r = o;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ko(e) {
|
|
112
112
|
if (!e || e.nodeType !== 8)
|
|
113
|
-
throw
|
|
113
|
+
throw fr(), pt;
|
|
114
114
|
return e.data;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function To(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ks(e, t) {
|
|
120
120
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function So(e) {
|
|
123
|
+
return !ks(e, this.v);
|
|
124
124
|
}
|
|
125
|
-
var
|
|
126
|
-
function
|
|
127
|
-
return e.label = t,
|
|
125
|
+
var We = !1, Nt = !1;
|
|
126
|
+
function Di(e, t) {
|
|
127
|
+
return e.label = t, Ts(e.v, t), e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return e?.[
|
|
129
|
+
function Ts(e, t) {
|
|
130
|
+
return e?.[ss]?.(t), e;
|
|
131
131
|
}
|
|
132
132
|
var x = null;
|
|
133
|
-
function
|
|
133
|
+
function gt(e) {
|
|
134
134
|
x = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Eo(e, t = !1, r) {
|
|
137
137
|
x = {
|
|
138
138
|
p: x,
|
|
139
139
|
i: !1,
|
|
@@ -141,7 +141,7 @@ function ko(e, t = !1, r) {
|
|
|
141
141
|
e: null,
|
|
142
142
|
s: e,
|
|
143
143
|
x: null,
|
|
144
|
-
r:
|
|
144
|
+
r: A,
|
|
145
145
|
l: Nt && !t ? {
|
|
146
146
|
s: null,
|
|
147
147
|
u: null,
|
|
@@ -149,11 +149,11 @@ function ko(e, t = !1, r) {
|
|
|
149
149
|
} : null
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ao(e) {
|
|
153
153
|
var t = x, r = t.e;
|
|
154
154
|
if (r !== null) {
|
|
155
155
|
t.e = null;
|
|
156
|
-
for (var i of r)
|
|
156
|
+
for (var i of r) en(i);
|
|
157
157
|
}
|
|
158
158
|
return e !== void 0 && (t.x = e), t.i = !0, x = t.p, e ?? {};
|
|
159
159
|
}
|
|
@@ -161,26 +161,26 @@ function Vt() {
|
|
|
161
161
|
return !Nt || x !== null && x.l === null;
|
|
162
162
|
}
|
|
163
163
|
var He = [];
|
|
164
|
-
function
|
|
164
|
+
function Io() {
|
|
165
165
|
var e = He;
|
|
166
|
-
He = [],
|
|
166
|
+
He = [], ts(e);
|
|
167
167
|
}
|
|
168
168
|
function Ze(e) {
|
|
169
|
-
if (He.length === 0 && !
|
|
169
|
+
if (He.length === 0 && !Pt) {
|
|
170
170
|
var t = He;
|
|
171
171
|
queueMicrotask(() => {
|
|
172
|
-
t === He &&
|
|
172
|
+
t === He && Io();
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
He.push(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
for (; He.length > 0; )
|
|
177
|
+
function Ss() {
|
|
178
|
+
for (; He.length > 0; ) Io();
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
var t =
|
|
180
|
+
function $o(e) {
|
|
181
|
+
var t = A;
|
|
182
182
|
if (t === null)
|
|
183
|
-
return
|
|
183
|
+
return I.f |= ir, e;
|
|
184
184
|
if (!(t.f & 32768) && !(t.f & 4))
|
|
185
185
|
throw e;
|
|
186
186
|
Ne(e, t);
|
|
@@ -200,38 +200,38 @@ function Ne(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
throw e;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var Es = ~(ye | tt | ae);
|
|
204
204
|
function D(e, t) {
|
|
205
|
-
e.f = e.f &
|
|
205
|
+
e.f = e.f & Es | t;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function ai(e) {
|
|
208
208
|
e.f & 512 || e.deps === null ? D(e, ae) : D(e, tt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Oo(e) {
|
|
211
211
|
if (e !== null)
|
|
212
212
|
for (const t of e)
|
|
213
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^= Dt,
|
|
213
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= Dt, Oo(t.deps));
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
215
|
+
function Lo(e, t, r) {
|
|
216
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Oo(e.deps), D(e, ae);
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
var t =
|
|
218
|
+
var As = !1, qt = !1;
|
|
219
|
+
function Is(e) {
|
|
220
|
+
var t = qt;
|
|
221
221
|
try {
|
|
222
|
-
return
|
|
222
|
+
return qt = !1, [e(), qt];
|
|
223
223
|
} finally {
|
|
224
|
-
|
|
224
|
+
qt = t;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Po(e, t) {
|
|
228
228
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function li(e, t) {
|
|
231
|
+
Po(e, t), t.add(e);
|
|
232
232
|
}
|
|
233
233
|
function E(e, t, r) {
|
|
234
|
-
|
|
234
|
+
Po(e, t), t.set(e, r);
|
|
235
235
|
}
|
|
236
236
|
function C(e, t, r) {
|
|
237
237
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -243,10 +243,10 @@ function c(e, t) {
|
|
|
243
243
|
function T(e, t, r) {
|
|
244
244
|
return e.set(C(e, t), r), r;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
var
|
|
246
|
+
var Mo, Le = /* @__PURE__ */ new Set(), P = null, Ni = null, Y = null, qr = null, Pt = !1, $r = !1, mt = null, nr = null, Ro = 0;
|
|
247
|
+
var $s = 1, sr = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakSet(), rt = class Co {
|
|
248
248
|
constructor() {
|
|
249
|
-
|
|
249
|
+
li(this, me), g(this, "id", $s++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), E(this, sr, /* @__PURE__ */ new Set()), E(this, zt, /* @__PURE__ */ new Set()), E(this, st, 0), E(this, at, 0), E(this, Qt, null), E(this, fe, []), E(this, Rt, /* @__PURE__ */ new Set()), E(this, Ye, /* @__PURE__ */ new Set()), E(this, Ue, /* @__PURE__ */ new Map()), g(this, "is_fork", !1), E(this, Ft, !1);
|
|
250
250
|
}
|
|
251
251
|
skip_effect(t) {
|
|
252
252
|
c(Ue, this).has(t) || c(Ue, this).set(t, {
|
|
@@ -268,33 +268,33 @@ var Ss = 1, sr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap
|
|
|
268
268
|
r !== j && !this.previous.has(t) && this.previous.set(t, r), t.f & 8388608 || (this.current.set(t, t.v), Y?.set(t, t.v));
|
|
269
269
|
}
|
|
270
270
|
activate() {
|
|
271
|
-
|
|
271
|
+
P = this;
|
|
272
272
|
}
|
|
273
273
|
deactivate() {
|
|
274
|
-
|
|
274
|
+
P = null, Y = null;
|
|
275
275
|
}
|
|
276
276
|
flush() {
|
|
277
277
|
var t = null;
|
|
278
278
|
try {
|
|
279
|
-
|
|
279
|
+
$r = !0, P = this, C(me, this, xo).call(this);
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
Ro = 0, qr = null, mt = null, nr = null, $r = !1, P = null, Y = null, je.clear();
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
discard() {
|
|
285
|
-
for (const t of c(
|
|
286
|
-
c(
|
|
285
|
+
for (const t of c(zt, this)) t(this);
|
|
286
|
+
c(zt, this).clear(), Le.delete(this);
|
|
287
287
|
}
|
|
288
288
|
increment(t) {
|
|
289
289
|
T(st, this, c(st, this) + 1), t && T(at, this, c(at, this) + 1);
|
|
290
290
|
}
|
|
291
291
|
decrement(t, r) {
|
|
292
|
-
T(st, this, c(st, this) - 1), t && T(at, this, c(at, this) - 1), !(c(
|
|
293
|
-
T(
|
|
292
|
+
T(st, this, c(st, this) - 1), t && T(at, this, c(at, this) - 1), !(c(Ft, this) || r) && (T(Ft, this, !0), Ze(() => {
|
|
293
|
+
T(Ft, this, !1), this.flush();
|
|
294
294
|
}));
|
|
295
295
|
}
|
|
296
296
|
transfer_effects(t, r) {
|
|
297
|
-
for (const i of t) c(
|
|
297
|
+
for (const i of t) c(Rt, this).add(i);
|
|
298
298
|
for (const i of r) c(Ye, this).add(i);
|
|
299
299
|
t.clear(), r.clear();
|
|
300
300
|
}
|
|
@@ -302,39 +302,39 @@ var Ss = 1, sr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap
|
|
|
302
302
|
c(sr, this).add(t);
|
|
303
303
|
}
|
|
304
304
|
ondiscard(t) {
|
|
305
|
-
c(
|
|
305
|
+
c(zt, this).add(t);
|
|
306
306
|
}
|
|
307
307
|
settled() {
|
|
308
|
-
return (c(Qt, this) ?? T(Qt, this,
|
|
308
|
+
return (c(Qt, this) ?? T(Qt, this, bo())).promise;
|
|
309
309
|
}
|
|
310
310
|
static ensure() {
|
|
311
|
-
if (
|
|
312
|
-
const t =
|
|
313
|
-
|
|
314
|
-
|
|
311
|
+
if (P === null) {
|
|
312
|
+
const t = P = new Co();
|
|
313
|
+
$r || (Le.add(P), Pt || Ze(() => {
|
|
314
|
+
P === t && t.flush();
|
|
315
315
|
}));
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return P;
|
|
318
318
|
}
|
|
319
319
|
apply() {
|
|
320
|
-
if (!
|
|
320
|
+
if (!We || !this.is_fork && Le.size === 1) {
|
|
321
321
|
Y = null;
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
Y = new Map(this.current);
|
|
325
|
-
for (const t of
|
|
325
|
+
for (const t of Le)
|
|
326
326
|
if (!(t === this || t.is_fork))
|
|
327
327
|
for (const [r, i] of t.previous) Y.has(r) || Y.set(r, i);
|
|
328
328
|
}
|
|
329
329
|
schedule(t) {
|
|
330
|
-
if (
|
|
330
|
+
if (qr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
|
|
331
331
|
t.b.defer_effect(t);
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
334
|
for (var r = t; r.parent !== null; ) {
|
|
335
335
|
r = r.parent;
|
|
336
336
|
var i = r.f;
|
|
337
|
-
if (
|
|
337
|
+
if (mt !== null && r === A && (We || (I === null || !(I.f & 2)) && !As))
|
|
338
338
|
return;
|
|
339
339
|
if (i & 96) {
|
|
340
340
|
if (!(i & 1024)) return;
|
|
@@ -344,50 +344,50 @@ var Ss = 1, sr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap
|
|
|
344
344
|
c(fe, this).push(r);
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
|
-
|
|
348
|
-
function
|
|
347
|
+
Mo = rt;
|
|
348
|
+
function Vi() {
|
|
349
349
|
return this.is_fork || c(at, this) > 0;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
if (
|
|
353
|
-
for (const s of c(
|
|
351
|
+
function xo() {
|
|
352
|
+
if (Ro++ > 1e3 && (Le.delete(this), Ls()), !C(me, this, Vi).call(this)) {
|
|
353
|
+
for (const s of c(Rt, this))
|
|
354
354
|
c(Ye, this).delete(s), D(s, ye), this.schedule(s);
|
|
355
355
|
for (const s of c(Ye, this))
|
|
356
356
|
D(s, tt), this.schedule(s);
|
|
357
357
|
}
|
|
358
358
|
const e = c(fe, this);
|
|
359
359
|
T(fe, this, []), this.apply();
|
|
360
|
-
var t =
|
|
360
|
+
var t = mt = [], r = [], i = nr = [];
|
|
361
361
|
for (const s of e) try {
|
|
362
|
-
C(
|
|
362
|
+
C(me, this, Do).call(this, s, t, r);
|
|
363
363
|
} catch (a) {
|
|
364
|
-
throw
|
|
364
|
+
throw Wo(s), a;
|
|
365
365
|
}
|
|
366
|
-
if (
|
|
367
|
-
var o =
|
|
366
|
+
if (P = null, i.length > 0) {
|
|
367
|
+
var o = Mo.ensure();
|
|
368
368
|
for (const s of i) o.schedule(s);
|
|
369
369
|
}
|
|
370
|
-
if (
|
|
371
|
-
C(
|
|
372
|
-
for (const [s, a] of c(Ue, this))
|
|
370
|
+
if (mt = null, nr = null, C(me, this, Vi).call(this)) {
|
|
371
|
+
C(me, this, ji).call(this, r), C(me, this, ji).call(this, t);
|
|
372
|
+
for (const [s, a] of c(Ue, this)) jo(s, a);
|
|
373
373
|
} else {
|
|
374
|
-
c(st, this) === 0 &&
|
|
374
|
+
c(st, this) === 0 && Le.delete(this), c(Rt, this).clear(), c(Ye, this).clear();
|
|
375
375
|
for (const s of c(sr, this)) s(this);
|
|
376
|
-
c(sr, this).clear(),
|
|
376
|
+
c(sr, this).clear(), Ni = this, Wi(r), Wi(t), Ni = null, c(Qt, this)?.resolve();
|
|
377
377
|
}
|
|
378
|
-
var n =
|
|
378
|
+
var n = P;
|
|
379
379
|
if (c(fe, this).length > 0) {
|
|
380
380
|
const s = n ?? (n = this);
|
|
381
381
|
c(fe, s).push(...c(fe, this).filter((a) => !c(fe, s).includes(a)));
|
|
382
382
|
}
|
|
383
|
-
n !== null && (
|
|
383
|
+
n !== null && (Le.add(n), C(me, n, xo).call(n)), Le.has(this) || C(me, this, Os).call(this);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Do(e, t, r) {
|
|
386
386
|
e.f ^= ae;
|
|
387
387
|
for (var i = e.first; i !== null; ) {
|
|
388
388
|
var o = i.f, n = (o & 96) !== 0;
|
|
389
389
|
if (!(n && o & 1024 || o & 8192 || c(Ue, this).has(i)) && i.fn !== null) {
|
|
390
|
-
n ? i.f ^= ae : o & 4 ? t.push(i) :
|
|
390
|
+
n ? i.f ^= ae : o & 4 ? t.push(i) : We && o & 16777224 ? r.push(i) : jt(i) && (o & 16 && c(Ye, this).add(i), bt(i));
|
|
391
391
|
var s = i.first;
|
|
392
392
|
if (s !== null) {
|
|
393
393
|
i = s;
|
|
@@ -404,11 +404,11 @@ function Mo(e, t, r) {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
for (var t = 0; t < e.length; t += 1)
|
|
407
|
+
function ji(e) {
|
|
408
|
+
for (var t = 0; t < e.length; t += 1) Lo(e[t], c(Rt, this), c(Ye, this));
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
for (const a of
|
|
410
|
+
function Os() {
|
|
411
|
+
for (const a of Le) {
|
|
412
412
|
var e = a.id < this.id, t = [];
|
|
413
413
|
for (const [l, u] of this.current) {
|
|
414
414
|
if (a.current.has(l)) if (e && u !== a.current.get(l)) a.current.set(l, u);
|
|
@@ -421,48 +421,48 @@ function Es() {
|
|
|
421
421
|
else if (t.length > 0) {
|
|
422
422
|
a.activate();
|
|
423
423
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
424
|
-
for (var n of t)
|
|
424
|
+
for (var n of t) No(n, r, i, o);
|
|
425
425
|
if (c(fe, a).length > 0) {
|
|
426
426
|
a.apply();
|
|
427
|
-
for (var s of c(fe, a)) C(
|
|
427
|
+
for (var s of c(fe, a)) C(me, a, Do).call(a, s, [], []);
|
|
428
428
|
T(fe, a, []);
|
|
429
429
|
}
|
|
430
430
|
a.deactivate();
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
var t =
|
|
436
|
-
|
|
434
|
+
function It(e) {
|
|
435
|
+
var t = Pt;
|
|
436
|
+
Pt = !0;
|
|
437
437
|
try {
|
|
438
438
|
var r;
|
|
439
|
-
for (e && (
|
|
440
|
-
if (
|
|
441
|
-
|
|
439
|
+
for (e && (P !== null && !P.is_fork && P.flush(), r = e()); ; ) {
|
|
440
|
+
if (Ss(), P === null) return r;
|
|
441
|
+
P.flush();
|
|
442
442
|
}
|
|
443
443
|
} finally {
|
|
444
|
-
|
|
444
|
+
Pt = t;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Ls() {
|
|
448
448
|
if (0) {
|
|
449
449
|
var e;
|
|
450
|
-
for (const r of
|
|
450
|
+
for (const r of P.current.keys()) for (const [i, o] of r.updated ?? [])
|
|
451
451
|
var t;
|
|
452
452
|
}
|
|
453
453
|
try {
|
|
454
|
-
|
|
454
|
+
ps();
|
|
455
455
|
} catch (r) {
|
|
456
|
-
Ne(r,
|
|
456
|
+
Ne(r, qr);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
var _e = null;
|
|
460
|
-
function
|
|
460
|
+
function Wi(e) {
|
|
461
461
|
var t = e.length;
|
|
462
462
|
if (t !== 0) {
|
|
463
463
|
for (var r = 0; r < t; ) {
|
|
464
464
|
var i = e[r++];
|
|
465
|
-
if (!(i.f & 24576) && jt(i) && (_e = /* @__PURE__ */ new Set(), bt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
465
|
+
if (!(i.f & 24576) && jt(i) && (_e = /* @__PURE__ */ new Set(), bt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && on(i), _e?.size > 0)) {
|
|
466
466
|
je.clear();
|
|
467
467
|
for (const o of _e) {
|
|
468
468
|
if (o.f & 24576) continue;
|
|
@@ -481,73 +481,73 @@ function Vi(e) {
|
|
|
481
481
|
_e = null;
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function No(e, t, r, i) {
|
|
485
485
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
486
486
|
for (const o of e.reactions) {
|
|
487
487
|
const n = o.f;
|
|
488
|
-
n & 2 ?
|
|
488
|
+
n & 2 ? No(o, t, r, i) : n & 4194320 && !(n & 2048) && Vo(o, t, i) && (D(o, ye), ci(o));
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Vo(e, t, r) {
|
|
492
492
|
const i = r.get(e);
|
|
493
493
|
if (i !== void 0) return i;
|
|
494
494
|
if (e.deps !== null) for (const o of e.deps) {
|
|
495
495
|
if (vt.call(t, o)) return !0;
|
|
496
|
-
if (o.f & 2 &&
|
|
496
|
+
if (o.f & 2 && Vo(o, t, r))
|
|
497
497
|
return r.set(o, !0), !0;
|
|
498
498
|
}
|
|
499
499
|
return r.set(e, !1), !1;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function ci(e) {
|
|
502
|
+
P.schedule(e);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function jo(e, t) {
|
|
505
505
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
506
506
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, ae);
|
|
507
507
|
for (var r = e.first; r !== null; )
|
|
508
|
-
|
|
508
|
+
jo(r, t), r = r.next;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Wo(e) {
|
|
512
512
|
D(e, ae);
|
|
513
513
|
for (var t = e.first; t !== null; )
|
|
514
|
-
|
|
514
|
+
Wo(t), t = t.next;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ps(e) {
|
|
517
517
|
let t = 0, r = et(0), i;
|
|
518
518
|
return () => {
|
|
519
|
-
|
|
519
|
+
vi() && (_(r), gi(() => (t === 0 && (i = pr(() => e(() => Mt(r)))), t += 1, () => {
|
|
520
520
|
Ze(() => {
|
|
521
|
-
t -= 1, t === 0 && (i?.(), i = void 0,
|
|
521
|
+
t -= 1, t === 0 && (i?.(), i = void 0, Mt(r));
|
|
522
522
|
});
|
|
523
523
|
})));
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
|
-
var
|
|
527
|
-
function
|
|
528
|
-
new
|
|
526
|
+
var Ms = si | yt;
|
|
527
|
+
function Rs(e, t, r, i) {
|
|
528
|
+
new Cs(e, t, r, i);
|
|
529
529
|
}
|
|
530
|
-
var de = /* @__PURE__ */ new WeakMap(),
|
|
530
|
+
var de = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), Cs = class {
|
|
531
531
|
constructor(e, t, r, i) {
|
|
532
|
-
|
|
533
|
-
T(
|
|
532
|
+
li(this, G), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), E(this, de, void 0), E(this, Or, O ? $ : null), E(this, De, void 0), E(this, Ct, void 0), E(this, re, void 0), E(this, Ve, null), E(this, he, null), E(this, Ie, null), E(this, Qe, null), E(this, lt, 0), E(this, Je, 0), E(this, Ut, !1), E(this, zr, /* @__PURE__ */ new Set()), E(this, Fr, /* @__PURE__ */ new Set()), E(this, ze, null), E(this, Bi, Ps(() => (T(ze, this, et(c(lt, this))), () => {
|
|
533
|
+
T(ze, this, null);
|
|
534
534
|
}))), T(de, this, e), T(De, this, t), T(Ct, this, (o) => {
|
|
535
|
-
var n =
|
|
535
|
+
var n = A;
|
|
536
536
|
n.b = this, n.f |= 128, r(o);
|
|
537
|
-
}), this.parent =
|
|
538
|
-
if (
|
|
539
|
-
const o = c(
|
|
540
|
-
|
|
537
|
+
}), this.parent = A.b, this.transform_error = i ?? this.parent?.transform_error ?? ((o) => o), T(re, this, mi(() => {
|
|
538
|
+
if (O) {
|
|
539
|
+
const o = c(Or, this);
|
|
540
|
+
dr();
|
|
541
541
|
const n = o.data === "[!";
|
|
542
542
|
if (o.data.startsWith("[?")) {
|
|
543
543
|
const s = JSON.parse(o.data.slice(2));
|
|
544
|
-
C(G, this,
|
|
545
|
-
} else n ? C(G, this,
|
|
546
|
-
} else C(G, this,
|
|
547
|
-
},
|
|
544
|
+
C(G, this, Ds).call(this, s);
|
|
545
|
+
} else n ? C(G, this, Ns).call(this) : C(G, this, xs).call(this);
|
|
546
|
+
} else C(G, this, qi).call(this);
|
|
547
|
+
}, Ms)), O && T(de, this, $);
|
|
548
548
|
}
|
|
549
549
|
defer_effect(e) {
|
|
550
|
-
|
|
550
|
+
Lo(e, c(zr, this), c(Fr, this));
|
|
551
551
|
}
|
|
552
552
|
is_rendered() {
|
|
553
553
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -556,28 +556,28 @@ var de = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), De =
|
|
|
556
556
|
return !!c(De, this).pending;
|
|
557
557
|
}
|
|
558
558
|
update_pending_count(e, t) {
|
|
559
|
-
C(G, this,
|
|
560
|
-
T(Ut, this, !1), c(
|
|
559
|
+
C(G, this, Bo).call(this, e, t), T(lt, this, c(lt, this) + e), !(!c(ze, this) || c(Ut, this)) && (T(Ut, this, !0), Ze(() => {
|
|
560
|
+
T(Ut, this, !1), c(ze, this) && _t(c(ze, this), c(lt, this));
|
|
561
561
|
}));
|
|
562
562
|
}
|
|
563
563
|
get_effect_pending() {
|
|
564
|
-
return c(
|
|
564
|
+
return c(Bi, this).call(this), _(c(ze, this));
|
|
565
565
|
}
|
|
566
566
|
error(e) {
|
|
567
567
|
var t = c(De, this).onerror;
|
|
568
568
|
let r = c(De, this).failed;
|
|
569
569
|
if (!t && !r) throw e;
|
|
570
|
-
c(Ve, this) && (
|
|
570
|
+
c(Ve, this) && (F(c(Ve, this)), T(Ve, this, null)), c(he, this) && (F(c(he, this)), T(he, this, null)), c(Ie, this) && (F(c(Ie, this)), T(Ie, this, null)), O && (Q(c(Or, this)), wo(), Q(or()));
|
|
571
571
|
var i = !1, o = !1;
|
|
572
572
|
const n = () => {
|
|
573
573
|
if (i) {
|
|
574
|
-
|
|
574
|
+
ws();
|
|
575
575
|
return;
|
|
576
576
|
}
|
|
577
|
-
i = !0, o &&
|
|
578
|
-
T(
|
|
579
|
-
}), C(G, this,
|
|
580
|
-
C(G, this,
|
|
577
|
+
i = !0, o && ys(), c(Ie, this) !== null && it(c(Ie, this), () => {
|
|
578
|
+
T(Ie, this, null);
|
|
579
|
+
}), C(G, this, Ur).call(this, () => {
|
|
580
|
+
C(G, this, qi).call(this);
|
|
581
581
|
});
|
|
582
582
|
}, s = (a) => {
|
|
583
583
|
try {
|
|
@@ -585,10 +585,10 @@ var de = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), De =
|
|
|
585
585
|
} catch (l) {
|
|
586
586
|
Ne(l, c(re, this) && c(re, this).parent);
|
|
587
587
|
}
|
|
588
|
-
r && T(
|
|
588
|
+
r && T(Ie, this, C(G, this, Ur).call(this, () => {
|
|
589
589
|
try {
|
|
590
590
|
return le(() => {
|
|
591
|
-
var l =
|
|
591
|
+
var l = A;
|
|
592
592
|
l.b = this, l.f |= 128, r(c(de, this), () => a, () => n);
|
|
593
593
|
});
|
|
594
594
|
} catch (l) {
|
|
@@ -608,83 +608,83 @@ var de = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), De =
|
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function xs() {
|
|
612
612
|
try {
|
|
613
613
|
T(Ve, this, le(() => c(Ct, this).call(this, c(de, this))));
|
|
614
614
|
} catch (e) {
|
|
615
615
|
this.error(e);
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Ds(e) {
|
|
619
619
|
const t = c(De, this).failed;
|
|
620
|
-
t && T(
|
|
620
|
+
t && T(Ie, this, le(() => {
|
|
621
621
|
t(c(de, this), () => e, () => () => {
|
|
622
622
|
});
|
|
623
623
|
}));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ns() {
|
|
626
626
|
const e = c(De, this).pending;
|
|
627
627
|
e && (this.is_pending = !0, T(he, this, le(() => e(c(de, this)))), Ze(() => {
|
|
628
628
|
var t = T(Qe, this, document.createDocumentFragment()), r = ne();
|
|
629
|
-
t.append(r), T(Ve, this, C(G, this,
|
|
629
|
+
t.append(r), T(Ve, this, C(G, this, Ur).call(this, () => le(() => c(Ct, this).call(this, r)))), c(Je, this) === 0 && (c(de, this).before(t), T(Qe, this, null), it(c(he, this), () => {
|
|
630
630
|
T(he, this, null);
|
|
631
|
-
}), C(G, this,
|
|
631
|
+
}), C(G, this, ui).call(this, P));
|
|
632
632
|
}));
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function qi() {
|
|
635
635
|
try {
|
|
636
636
|
if (this.is_pending = this.has_pending_snippet(), T(Je, this, 0), T(lt, this, 0), T(Ve, this, le(() => {
|
|
637
637
|
c(Ct, this).call(this, c(de, this));
|
|
638
638
|
})), c(Je, this) > 0) {
|
|
639
639
|
var e = T(Qe, this, document.createDocumentFragment());
|
|
640
|
-
|
|
640
|
+
yi(c(Ve, this), e);
|
|
641
641
|
const t = c(De, this).pending;
|
|
642
642
|
T(he, this, le(() => t(c(de, this))));
|
|
643
|
-
} else C(G, this,
|
|
643
|
+
} else C(G, this, ui).call(this, P);
|
|
644
644
|
} catch (t) {
|
|
645
645
|
this.error(t);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
this.is_pending = !1, e.transfer_effects(c(
|
|
648
|
+
function ui(e) {
|
|
649
|
+
this.is_pending = !1, e.transfer_effects(c(zr, this), c(Fr, this));
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
var t =
|
|
653
|
-
be(c(re, this)), ce(c(re, this)),
|
|
651
|
+
function Ur(e) {
|
|
652
|
+
var t = A, r = I, i = x;
|
|
653
|
+
be(c(re, this)), ce(c(re, this)), gt(c(re, this).ctx);
|
|
654
654
|
try {
|
|
655
655
|
return rt.ensure(), e();
|
|
656
656
|
} catch (o) {
|
|
657
|
-
return
|
|
657
|
+
return $o(o), null;
|
|
658
658
|
} finally {
|
|
659
|
-
be(t), ce(r),
|
|
659
|
+
be(t), ce(r), gt(i);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Bo(e, t) {
|
|
663
663
|
if (!this.has_pending_snippet()) {
|
|
664
664
|
if (this.parent) {
|
|
665
665
|
var r;
|
|
666
|
-
C(G, r = this.parent,
|
|
666
|
+
C(G, r = this.parent, Bo).call(r, e, t);
|
|
667
667
|
}
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
|
-
T(Je, this, c(Je, this) + e), c(Je, this) === 0 && (C(G, this,
|
|
670
|
+
T(Je, this, c(Je, this) + e), c(Je, this) === 0 && (C(G, this, ui).call(this, t), c(he, this) && it(c(he, this), () => {
|
|
671
671
|
T(he, this, null);
|
|
672
672
|
}), c(Qe, this) && (c(de, this).before(c(Qe, this)), T(Qe, this, null)));
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const o = Vt() ?
|
|
674
|
+
function Vs(e, t, r, i) {
|
|
675
|
+
const o = Vt() ? hr : fi;
|
|
676
676
|
var n = e.filter((f) => !f.settled);
|
|
677
677
|
if (r.length === 0 && n.length === 0) {
|
|
678
678
|
i(t.map(o));
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
var s =
|
|
681
|
+
var s = A, a = js(), l = n.length === 1 ? n[0].promise : n.length > 1 ? Promise.all(n.map((f) => f.promise)) : null;
|
|
682
682
|
function u(f) {
|
|
683
683
|
a();
|
|
684
684
|
try {
|
|
685
685
|
i(f);
|
|
686
|
-
} catch (
|
|
687
|
-
s.f & 16384 || Ne(
|
|
686
|
+
} catch (v) {
|
|
687
|
+
s.f & 16384 || Ne(v, s);
|
|
688
688
|
}
|
|
689
689
|
ar();
|
|
690
690
|
}
|
|
@@ -692,160 +692,160 @@ function Cs(e, t, r, i) {
|
|
|
692
692
|
l.then(() => u(t.map(o)));
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
function
|
|
697
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
695
|
+
var d = qo();
|
|
696
|
+
function h() {
|
|
697
|
+
Promise.all(r.map((f) => /* @__PURE__ */ Ws(f))).then((f) => u([...t.map(o), ...f])).catch((f) => Ne(f, s)).finally(() => d());
|
|
698
698
|
}
|
|
699
699
|
l ? l.then(() => {
|
|
700
|
-
a(),
|
|
701
|
-
}) :
|
|
700
|
+
a(), h(), ar();
|
|
701
|
+
}) : h();
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
var e =
|
|
703
|
+
function js() {
|
|
704
|
+
var e = A, t = I, r = x, i = P;
|
|
705
705
|
if (0) var o;
|
|
706
706
|
return function(s = !0) {
|
|
707
|
-
be(e), ce(t),
|
|
707
|
+
be(e), ce(t), gt(r), s && !(e.f & 16384) && (i?.activate(), i?.apply());
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
710
|
function ar(e = !0) {
|
|
711
|
-
be(null), ce(null),
|
|
711
|
+
be(null), ce(null), gt(null), e && P?.deactivate();
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
var e =
|
|
713
|
+
function qo() {
|
|
714
|
+
var e = A.b, t = P, r = e.is_rendered();
|
|
715
715
|
return e.update_pending_count(1, t), t.increment(r), (i = !1) => {
|
|
716
716
|
e.update_pending_count(-1, t), t.decrement(r, i);
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
// @__NO_SIDE_EFFECTS__
|
|
720
|
-
function
|
|
721
|
-
var t = 2 | ye, r =
|
|
722
|
-
return
|
|
720
|
+
function hr(e) {
|
|
721
|
+
var t = 2 | ye, r = I !== null && I.f & 2 ? I : null;
|
|
722
|
+
return A !== null && (A.f |= yt), {
|
|
723
723
|
ctx: x,
|
|
724
724
|
deps: null,
|
|
725
725
|
effects: null,
|
|
726
|
-
equals:
|
|
726
|
+
equals: To,
|
|
727
727
|
f: t,
|
|
728
728
|
fn: e,
|
|
729
729
|
reactions: null,
|
|
730
730
|
rv: 0,
|
|
731
731
|
v: j,
|
|
732
732
|
wv: 0,
|
|
733
|
-
parent: r ??
|
|
733
|
+
parent: r ?? A,
|
|
734
734
|
ac: null
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
// @__NO_SIDE_EFFECTS__
|
|
738
|
-
function
|
|
739
|
-
let i =
|
|
740
|
-
i === null &&
|
|
741
|
-
var o = void 0, n = et(j), s = !
|
|
742
|
-
return
|
|
743
|
-
var l =
|
|
738
|
+
function Ws(e, t, r) {
|
|
739
|
+
let i = A;
|
|
740
|
+
i === null && cs();
|
|
741
|
+
var o = void 0, n = et(j), s = !I, a = /* @__PURE__ */ new Map();
|
|
742
|
+
return ea(() => {
|
|
743
|
+
var l = A, u = bo();
|
|
744
744
|
o = u.promise;
|
|
745
745
|
try {
|
|
746
746
|
Promise.resolve(e()).then(u.resolve, u.reject).finally(ar);
|
|
747
|
-
} catch (
|
|
748
|
-
u.reject(
|
|
747
|
+
} catch (v) {
|
|
748
|
+
u.reject(v), ar();
|
|
749
749
|
}
|
|
750
|
-
var
|
|
750
|
+
var d = P;
|
|
751
751
|
if (s) {
|
|
752
|
-
if (l.f & 32768) var
|
|
752
|
+
if (l.f & 32768) var h = qo();
|
|
753
753
|
if (i.b.is_rendered())
|
|
754
|
-
a.get(
|
|
754
|
+
a.get(d)?.reject($e), a.delete(d);
|
|
755
755
|
else {
|
|
756
|
-
for (const
|
|
756
|
+
for (const v of a.values()) v.reject($e);
|
|
757
757
|
a.clear();
|
|
758
758
|
}
|
|
759
|
-
a.set(
|
|
759
|
+
a.set(d, u);
|
|
760
760
|
}
|
|
761
|
-
const f = (
|
|
762
|
-
if (
|
|
763
|
-
if (
|
|
764
|
-
n.f |= ir, _t(n,
|
|
761
|
+
const f = (v, m = void 0) => {
|
|
762
|
+
if (h && h(m === $e), !(m === $e || l.f & 16384)) {
|
|
763
|
+
if (d.activate(), m)
|
|
764
|
+
n.f |= ir, _t(n, m);
|
|
765
765
|
else {
|
|
766
|
-
n.f & 8388608 && (n.f ^= ir), _t(n,
|
|
767
|
-
for (const [w,
|
|
768
|
-
if (a.delete(w), w ===
|
|
769
|
-
|
|
766
|
+
n.f & 8388608 && (n.f ^= ir), _t(n, v);
|
|
767
|
+
for (const [w, p] of a) {
|
|
768
|
+
if (a.delete(w), w === d) break;
|
|
769
|
+
p.reject($e);
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
|
-
|
|
772
|
+
d.deactivate();
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
|
-
u.promise.then(f, (
|
|
776
|
-
}),
|
|
775
|
+
u.promise.then(f, (v) => f(null, v || "unknown"));
|
|
776
|
+
}), Js(() => {
|
|
777
777
|
for (const l of a.values()) l.reject($e);
|
|
778
778
|
}), new Promise((l) => {
|
|
779
|
-
function u(
|
|
780
|
-
function
|
|
781
|
-
|
|
779
|
+
function u(d) {
|
|
780
|
+
function h() {
|
|
781
|
+
d === o ? l(n) : u(o);
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
d.then(h, h);
|
|
784
784
|
}
|
|
785
785
|
u(o);
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
// @__NO_SIDE_EFFECTS__
|
|
789
|
-
function
|
|
790
|
-
const t = /* @__PURE__ */
|
|
791
|
-
return
|
|
789
|
+
function Lr(e) {
|
|
790
|
+
const t = /* @__PURE__ */ hr(e);
|
|
791
|
+
return We || an(t), t;
|
|
792
792
|
}
|
|
793
793
|
// @__NO_SIDE_EFFECTS__
|
|
794
|
-
function
|
|
795
|
-
const t = /* @__PURE__ */
|
|
796
|
-
return t.equals =
|
|
794
|
+
function fi(e) {
|
|
795
|
+
const t = /* @__PURE__ */ hr(e);
|
|
796
|
+
return t.equals = So, t;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Bs(e) {
|
|
799
799
|
var t = e.effects;
|
|
800
800
|
if (t !== null) {
|
|
801
801
|
e.effects = null;
|
|
802
|
-
for (var r = 0; r < t.length; r += 1)
|
|
802
|
+
for (var r = 0; r < t.length; r += 1) F(t[r]);
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function qs(e) {
|
|
806
806
|
for (var t = e.parent; t !== null; ) {
|
|
807
807
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
808
808
|
t = t.parent;
|
|
809
809
|
}
|
|
810
810
|
return null;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
var t, r =
|
|
814
|
-
if (be(
|
|
812
|
+
function di(e) {
|
|
813
|
+
var t, r = A;
|
|
814
|
+
if (be(qs(e)), 0)
|
|
815
815
|
try {
|
|
816
816
|
} finally {
|
|
817
817
|
}
|
|
818
818
|
else try {
|
|
819
|
-
e.f &= ~Dt,
|
|
819
|
+
e.f &= ~Dt, Bs(e), t = fn(e);
|
|
820
820
|
} finally {
|
|
821
821
|
be(r);
|
|
822
822
|
}
|
|
823
823
|
return t;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
var t = e.v, r =
|
|
827
|
-
if (!e.equals(r) && (e.wv =
|
|
825
|
+
function zo(e) {
|
|
826
|
+
var t = e.v, r = di(e);
|
|
827
|
+
if (!e.equals(r) && (e.wv = cn(), (!P?.is_fork || e.deps === null) && (e.v = r, P?.capture(e, t), e.deps === null))) {
|
|
828
828
|
D(e, ae);
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
831
|
-
|
|
831
|
+
Be || (Y !== null ? (vi() || P?.is_fork) && Y.set(e, r) : ai(e));
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function zs(e) {
|
|
834
834
|
if (e.effects !== null)
|
|
835
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($e), t.teardown =
|
|
835
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort($e), t.teardown = es, t.ac = null, xt(t, 0), _i(t));
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Fo(e) {
|
|
838
838
|
if (e.effects !== null)
|
|
839
839
|
for (const t of e.effects) t.teardown && bt(t);
|
|
840
840
|
}
|
|
841
|
-
var
|
|
842
|
-
var
|
|
841
|
+
var Hr = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map();
|
|
842
|
+
var Uo = !1;
|
|
843
843
|
function et(e, t) {
|
|
844
844
|
var r = {
|
|
845
845
|
f: 0,
|
|
846
846
|
v: e,
|
|
847
847
|
reactions: null,
|
|
848
|
-
equals:
|
|
848
|
+
equals: To,
|
|
849
849
|
rv: 0,
|
|
850
850
|
wv: 0
|
|
851
851
|
};
|
|
@@ -854,185 +854,185 @@ function et(e, t) {
|
|
|
854
854
|
// @__NO_SIDE_EFFECTS__
|
|
855
855
|
function X(e, t) {
|
|
856
856
|
const r = et(e, t);
|
|
857
|
-
return
|
|
857
|
+
return an(r), r;
|
|
858
858
|
}
|
|
859
859
|
// @__NO_SIDE_EFFECTS__
|
|
860
|
-
function
|
|
860
|
+
function Ho(e, t = !1, r = !0) {
|
|
861
861
|
const i = et(e);
|
|
862
|
-
if (t || (i.equals =
|
|
862
|
+
if (t || (i.equals = So), Nt && r && x !== null && x.l !== null) {
|
|
863
863
|
var o;
|
|
864
864
|
((o = x.l).s ?? (o.s = [])).push(i);
|
|
865
865
|
}
|
|
866
866
|
return i;
|
|
867
867
|
}
|
|
868
868
|
function V(e, t, r = !1) {
|
|
869
|
-
|
|
869
|
+
I !== null && (!pe || I.f & 131072) && Vt() && I.f & 4325394 && (se === null || !vt.call(se, e)) && bs();
|
|
870
870
|
let i = r ? dt(t) : t;
|
|
871
871
|
return _t(e, i, nr);
|
|
872
872
|
}
|
|
873
873
|
function _t(e, t, r = null) {
|
|
874
874
|
if (!e.equals(t)) {
|
|
875
875
|
var i = e.v;
|
|
876
|
-
|
|
876
|
+
Be ? je.set(e, t) : je.set(e, i), e.v = t;
|
|
877
877
|
var o = rt.ensure();
|
|
878
878
|
if (o.capture(e, i), e.f & 2) {
|
|
879
879
|
const n = e;
|
|
880
|
-
e.f & 2048 &&
|
|
880
|
+
e.f & 2048 && di(n), Y === null && ai(n);
|
|
881
881
|
}
|
|
882
|
-
e.wv =
|
|
882
|
+
e.wv = cn(), Go(e, ye, r), Vt() && A !== null && A.f & 1024 && !(A.f & 96) && (ie === null ? oa([e]) : ie.push(e)), !o.is_fork && Hr.size > 0 && !Uo && Fs();
|
|
883
883
|
}
|
|
884
884
|
return t;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
|
|
888
|
-
for (const e of
|
|
886
|
+
function Fs() {
|
|
887
|
+
Uo = !1;
|
|
888
|
+
for (const e of Hr)
|
|
889
889
|
e.f & 1024 && D(e, tt), jt(e) && bt(e);
|
|
890
|
-
|
|
890
|
+
Hr.clear();
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Mt(e) {
|
|
893
893
|
V(e, e.v + 1);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Go(e, t, r) {
|
|
896
896
|
var i = e.reactions;
|
|
897
897
|
if (i !== null)
|
|
898
898
|
for (var o = Vt(), n = i.length, s = 0; s < n; s++) {
|
|
899
899
|
var a = i[s], l = a.f;
|
|
900
|
-
if (!(!o && a ===
|
|
900
|
+
if (!(!o && a === A)) {
|
|
901
901
|
var u = (l & ye) === 0;
|
|
902
902
|
if (u && D(a, t), l & 2) {
|
|
903
|
-
var v = a;
|
|
904
|
-
Y?.delete(v), l & 65536 || (l & 512 && (a.f |= Dt), zo(v, tt, r));
|
|
905
|
-
} else if (u) {
|
|
906
903
|
var d = a;
|
|
907
|
-
l &
|
|
904
|
+
Y?.delete(d), l & 65536 || (l & 512 && (a.f |= Dt), Go(d, tt, r));
|
|
905
|
+
} else if (u) {
|
|
906
|
+
var h = a;
|
|
907
|
+
l & 16 && _e !== null && _e.add(h), r !== null ? r.push(h) : ci(h);
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
var
|
|
912
|
+
var Us = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
913
913
|
function dt(e) {
|
|
914
|
-
if (typeof e != "object" || e === null ||
|
|
915
|
-
const t =
|
|
916
|
-
if (t !==
|
|
917
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
918
|
-
if (Xe === s) return
|
|
919
|
-
var f =
|
|
920
|
-
ce(null),
|
|
921
|
-
var
|
|
922
|
-
return ce(f),
|
|
914
|
+
if (typeof e != "object" || e === null || Lt in e) return e;
|
|
915
|
+
const t = _o(e);
|
|
916
|
+
if (t !== Xn && t !== Zn) return e;
|
|
917
|
+
var r = /* @__PURE__ */ new Map(), i = mo(e), o = /* @__PURE__ */ X(0), n = null, s = Xe, a = (h) => {
|
|
918
|
+
if (Xe === s) return h();
|
|
919
|
+
var f = I, v = Xe;
|
|
920
|
+
ce(null), Hi(s);
|
|
921
|
+
var m = h();
|
|
922
|
+
return ce(f), Hi(v), m;
|
|
923
923
|
};
|
|
924
924
|
i && r.set("length", /* @__PURE__ */ X(e.length, n));
|
|
925
925
|
var l = "";
|
|
926
926
|
let u = !1;
|
|
927
|
-
function
|
|
927
|
+
function d(h) {
|
|
928
928
|
if (!u) {
|
|
929
|
-
u = !0, l =
|
|
930
|
-
for (const [f,
|
|
929
|
+
u = !0, l = h, Di(o, `${l} version`);
|
|
930
|
+
for (const [f, v] of r) Di(v, Hs(l, f));
|
|
931
931
|
u = !1;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
return new Proxy(e, {
|
|
935
|
-
defineProperty(
|
|
936
|
-
(!("value" in
|
|
937
|
-
var
|
|
938
|
-
return
|
|
939
|
-
var w = /* @__PURE__ */ X(
|
|
935
|
+
defineProperty(h, f, v) {
|
|
936
|
+
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && ms();
|
|
937
|
+
var m = r.get(f);
|
|
938
|
+
return m === void 0 ? a(() => {
|
|
939
|
+
var w = /* @__PURE__ */ X(v.value, n);
|
|
940
940
|
return r.set(f, w), w;
|
|
941
|
-
}) : V(
|
|
941
|
+
}) : V(m, v.value, !0), !0;
|
|
942
942
|
},
|
|
943
|
-
deleteProperty(
|
|
944
|
-
var
|
|
945
|
-
if (
|
|
946
|
-
if (f in
|
|
947
|
-
const
|
|
948
|
-
r.set(f,
|
|
943
|
+
deleteProperty(h, f) {
|
|
944
|
+
var v = r.get(f);
|
|
945
|
+
if (v === void 0) {
|
|
946
|
+
if (f in h) {
|
|
947
|
+
const m = a(() => /* @__PURE__ */ X(j, n));
|
|
948
|
+
r.set(f, m), Mt(o);
|
|
949
949
|
}
|
|
950
950
|
} else
|
|
951
|
-
V(
|
|
951
|
+
V(v, j), Mt(o);
|
|
952
952
|
return !0;
|
|
953
953
|
},
|
|
954
|
-
get(
|
|
955
|
-
if (f ===
|
|
956
|
-
var
|
|
957
|
-
if (
|
|
958
|
-
var b = /* @__PURE__ */ X(dt(w ?
|
|
954
|
+
get(h, f, v) {
|
|
955
|
+
if (f === Lt) return e;
|
|
956
|
+
var m = r.get(f), w = f in h;
|
|
957
|
+
if (m === void 0 && (!w || Ke(h, f)?.writable) && (m = a(() => {
|
|
958
|
+
var b = /* @__PURE__ */ X(dt(w ? h[f] : j), n);
|
|
959
959
|
return b;
|
|
960
|
-
}), r.set(f,
|
|
961
|
-
var
|
|
962
|
-
return
|
|
960
|
+
}), r.set(f, m)), m !== void 0) {
|
|
961
|
+
var p = _(m);
|
|
962
|
+
return p === j ? void 0 : p;
|
|
963
963
|
}
|
|
964
|
-
return Reflect.get(
|
|
964
|
+
return Reflect.get(h, f, v);
|
|
965
965
|
},
|
|
966
|
-
getOwnPropertyDescriptor(
|
|
967
|
-
var
|
|
968
|
-
if (
|
|
969
|
-
var
|
|
970
|
-
|
|
971
|
-
} else if (
|
|
972
|
-
var w = r.get(f),
|
|
973
|
-
if (w !== void 0 &&
|
|
966
|
+
getOwnPropertyDescriptor(h, f) {
|
|
967
|
+
var v = Reflect.getOwnPropertyDescriptor(h, f);
|
|
968
|
+
if (v && "value" in v) {
|
|
969
|
+
var m = r.get(f);
|
|
970
|
+
m && (v.value = _(m));
|
|
971
|
+
} else if (v === void 0) {
|
|
972
|
+
var w = r.get(f), p = w?.v;
|
|
973
|
+
if (w !== void 0 && p !== j) return {
|
|
974
974
|
enumerable: !0,
|
|
975
975
|
configurable: !0,
|
|
976
|
-
value:
|
|
976
|
+
value: p,
|
|
977
977
|
writable: !0
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
return
|
|
980
|
+
return v;
|
|
981
981
|
},
|
|
982
|
-
has(
|
|
983
|
-
if (f ===
|
|
984
|
-
var
|
|
985
|
-
return (
|
|
986
|
-
var w = /* @__PURE__ */ X(
|
|
982
|
+
has(h, f) {
|
|
983
|
+
if (f === Lt) return !0;
|
|
984
|
+
var v = r.get(f), m = v !== void 0 && v.v !== j || Reflect.has(h, f);
|
|
985
|
+
return (v !== void 0 || A !== null && (!m || Ke(h, f)?.writable)) && (v === void 0 && (v = a(() => {
|
|
986
|
+
var w = /* @__PURE__ */ X(m ? dt(h[f]) : j, n);
|
|
987
987
|
return w;
|
|
988
|
-
}), r.set(f,
|
|
988
|
+
}), r.set(f, v)), _(v) === j) ? !1 : m;
|
|
989
989
|
},
|
|
990
|
-
set(
|
|
991
|
-
var w = r.get(f),
|
|
992
|
-
if (i && f === "length") for (var b =
|
|
993
|
-
var
|
|
994
|
-
|
|
990
|
+
set(h, f, v, m) {
|
|
991
|
+
var w = r.get(f), p = f in h;
|
|
992
|
+
if (i && f === "length") for (var b = v; b < w.v; b += 1) {
|
|
993
|
+
var R = r.get(b + "");
|
|
994
|
+
R !== void 0 ? V(R, j) : b in h && (R = a(() => /* @__PURE__ */ X(j, n)), r.set(b + "", R));
|
|
995
995
|
}
|
|
996
996
|
if (w === void 0)
|
|
997
|
-
(!
|
|
997
|
+
(!p || Ke(h, f)?.writable) && (w = a(() => /* @__PURE__ */ X(void 0, n)), V(w, dt(v)), r.set(f, w));
|
|
998
998
|
else {
|
|
999
|
-
|
|
1000
|
-
var S = a(() => dt(
|
|
999
|
+
p = w.v !== j;
|
|
1000
|
+
var S = a(() => dt(v));
|
|
1001
1001
|
V(w, S);
|
|
1002
1002
|
}
|
|
1003
|
-
var
|
|
1004
|
-
if (
|
|
1003
|
+
var L = Reflect.getOwnPropertyDescriptor(h, f);
|
|
1004
|
+
if (L?.set && L.set.call(m, v), !p) {
|
|
1005
1005
|
if (i && typeof f == "string") {
|
|
1006
|
-
var U = r.get("length"),
|
|
1007
|
-
Number.isInteger(
|
|
1006
|
+
var U = r.get("length"), W = Number(f);
|
|
1007
|
+
Number.isInteger(W) && W >= U.v && V(U, W + 1);
|
|
1008
1008
|
}
|
|
1009
|
-
|
|
1009
|
+
Mt(o);
|
|
1010
1010
|
}
|
|
1011
1011
|
return !0;
|
|
1012
1012
|
},
|
|
1013
|
-
ownKeys(
|
|
1013
|
+
ownKeys(h) {
|
|
1014
1014
|
_(o);
|
|
1015
|
-
var f = Reflect.ownKeys(
|
|
1016
|
-
var
|
|
1017
|
-
return
|
|
1015
|
+
var f = Reflect.ownKeys(h).filter((w) => {
|
|
1016
|
+
var p = r.get(w);
|
|
1017
|
+
return p === void 0 || p.v !== j;
|
|
1018
1018
|
});
|
|
1019
|
-
for (var [
|
|
1019
|
+
for (var [v, m] of r) m.v !== j && !(v in h) && f.push(v);
|
|
1020
1020
|
return f;
|
|
1021
1021
|
},
|
|
1022
1022
|
setPrototypeOf() {
|
|
1023
|
-
|
|
1023
|
+
_s();
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1027
|
+
function Hs(e, t) {
|
|
1028
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Us.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1029
1029
|
}
|
|
1030
|
-
var
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1033
|
-
|
|
1030
|
+
var zi, Gs, Ko, Yo, Qo;
|
|
1031
|
+
function Gr() {
|
|
1032
|
+
if (zi === void 0) {
|
|
1033
|
+
zi = window, Gs = document, Ko = /Firefox/.test(navigator.userAgent);
|
|
1034
1034
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1035
|
-
|
|
1035
|
+
Yo = Ke(t, "firstChild").get, Qo = Ke(t, "nextSibling").get, Ri(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ri(r) && (r.__t = void 0);
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
function ne(e = "") {
|
|
@@ -1040,24 +1040,24 @@ function ne(e = "") {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
// @__NO_SIDE_EFFECTS__
|
|
1042
1042
|
function oe(e) {
|
|
1043
|
-
return
|
|
1043
|
+
return Yo.call(e);
|
|
1044
1044
|
}
|
|
1045
1045
|
// @__NO_SIDE_EFFECTS__
|
|
1046
1046
|
function we(e) {
|
|
1047
|
-
return
|
|
1047
|
+
return Qo.call(e);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
if (!
|
|
1049
|
+
function z(e, t) {
|
|
1050
|
+
if (!O) return /* @__PURE__ */ oe(e);
|
|
1051
1051
|
var r = /* @__PURE__ */ oe($);
|
|
1052
1052
|
if (r === null) r = $.appendChild(ne());
|
|
1053
1053
|
else if (t && r.nodeType !== 3) {
|
|
1054
1054
|
var i = ne();
|
|
1055
1055
|
return r?.before(i), Q(i), i;
|
|
1056
1056
|
}
|
|
1057
|
-
return t &&
|
|
1057
|
+
return t && pi(r), Q(r), r;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
if (!
|
|
1059
|
+
function Ks(e, t = !1) {
|
|
1060
|
+
if (!O) {
|
|
1061
1061
|
var r = /* @__PURE__ */ oe(e);
|
|
1062
1062
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ we(r) : r;
|
|
1063
1063
|
}
|
|
@@ -1066,42 +1066,42 @@ function zs(e, t = !1) {
|
|
|
1066
1066
|
var i = ne();
|
|
1067
1067
|
return $?.before(i), Q(i), i;
|
|
1068
1068
|
}
|
|
1069
|
-
|
|
1069
|
+
pi($);
|
|
1070
1070
|
}
|
|
1071
1071
|
return $;
|
|
1072
1072
|
}
|
|
1073
1073
|
function Se(e, t = 1, r = !1) {
|
|
1074
|
-
let i =
|
|
1074
|
+
let i = O ? $ : e;
|
|
1075
1075
|
for (var o; t--; )
|
|
1076
1076
|
o = i, i = /* @__PURE__ */ we(i);
|
|
1077
|
-
if (!
|
|
1077
|
+
if (!O) return i;
|
|
1078
1078
|
if (r) {
|
|
1079
1079
|
if (i?.nodeType !== 3) {
|
|
1080
1080
|
var n = ne();
|
|
1081
1081
|
return i === null ? o?.after(n) : i.before(n), Q(n), n;
|
|
1082
1082
|
}
|
|
1083
|
-
|
|
1083
|
+
pi(i);
|
|
1084
1084
|
}
|
|
1085
1085
|
return Q(i), i;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Jo(e) {
|
|
1088
1088
|
e.textContent = "";
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return !
|
|
1090
|
+
function Xo() {
|
|
1091
|
+
return !We || _e !== null ? !1 : (A.f & ni) !== 0;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function hi(e, t, r) {
|
|
1094
1094
|
let i = r ? { is: r } : void 0;
|
|
1095
1095
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, i);
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function pi(e) {
|
|
1098
1098
|
if (e.nodeValue.length < 65536) return;
|
|
1099
1099
|
let t = e.nextSibling;
|
|
1100
1100
|
for (; t !== null && t.nodeType === 3; )
|
|
1101
1101
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
var t =
|
|
1103
|
+
function Zo(e) {
|
|
1104
|
+
var t = I, r = A;
|
|
1105
1105
|
ce(null), be(null);
|
|
1106
1106
|
try {
|
|
1107
1107
|
return e();
|
|
@@ -1109,16 +1109,16 @@ function Qo(e) {
|
|
|
1109
1109
|
ce(t), be(r);
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1112
|
+
function Ys(e) {
|
|
1113
|
+
A === null && (I === null && hs(e), ds()), Be && fs(e);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Qs(e, t) {
|
|
1116
1116
|
var r = t.last;
|
|
1117
1117
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1118
1118
|
}
|
|
1119
1119
|
function ke(e, t) {
|
|
1120
|
-
var r =
|
|
1121
|
-
r !== null && r.f & 8192 && (e |=
|
|
1120
|
+
var r = A;
|
|
1121
|
+
r !== null && r.f & 8192 && (e |= oi);
|
|
1122
1122
|
var i = {
|
|
1123
1123
|
ctx: x,
|
|
1124
1124
|
deps: null,
|
|
@@ -1135,195 +1135,195 @@ function ke(e, t) {
|
|
|
1135
1135
|
wv: 0,
|
|
1136
1136
|
ac: null
|
|
1137
1137
|
}, o = i;
|
|
1138
|
-
if (e & 4)
|
|
1138
|
+
if (e & 4) mt !== null ? mt.push(i) : rt.ensure().schedule(i);
|
|
1139
1139
|
else if (t !== null) {
|
|
1140
1140
|
try {
|
|
1141
1141
|
bt(i);
|
|
1142
1142
|
} catch (s) {
|
|
1143
|
-
throw
|
|
1143
|
+
throw F(i), s;
|
|
1144
1144
|
}
|
|
1145
|
-
o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && !(o.f & 524288) && (o = o.first, e & 16 && e & 65536 && o !== null && (o.f |=
|
|
1145
|
+
o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && !(o.f & 524288) && (o = o.first, e & 16 && e & 65536 && o !== null && (o.f |= si));
|
|
1146
1146
|
}
|
|
1147
|
-
if (o !== null && (o.parent = r, r !== null &&
|
|
1148
|
-
var n =
|
|
1147
|
+
if (o !== null && (o.parent = r, r !== null && Qs(o, r), I !== null && I.f & 2 && !(e & 64))) {
|
|
1148
|
+
var n = I;
|
|
1149
1149
|
(n.effects ?? (n.effects = [])).push(o);
|
|
1150
1150
|
}
|
|
1151
1151
|
return i;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1153
|
+
function vi() {
|
|
1154
|
+
return I !== null && !pe;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function Js(e) {
|
|
1157
1157
|
const t = ke(8, null);
|
|
1158
1158
|
return D(t, ae), t.teardown = e, t;
|
|
1159
1159
|
}
|
|
1160
1160
|
function ct(e) {
|
|
1161
|
-
|
|
1162
|
-
var t =
|
|
1163
|
-
if (!
|
|
1161
|
+
Ys("$effect");
|
|
1162
|
+
var t = A.f;
|
|
1163
|
+
if (!I && t & 32 && !(t & 32768)) {
|
|
1164
1164
|
var r = x;
|
|
1165
1165
|
(r.e ?? (r.e = [])).push(e);
|
|
1166
|
-
} else return
|
|
1166
|
+
} else return en(e);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1169
|
-
return ke(4 |
|
|
1168
|
+
function en(e) {
|
|
1169
|
+
return ke(4 | is, e);
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Xs(e) {
|
|
1172
1172
|
rt.ensure();
|
|
1173
1173
|
const t = ke(64 | yt, e);
|
|
1174
1174
|
return () => {
|
|
1175
|
-
|
|
1175
|
+
F(t);
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Zs(e) {
|
|
1179
1179
|
rt.ensure();
|
|
1180
1180
|
const t = ke(64 | yt, e);
|
|
1181
1181
|
return (r = {}) => new Promise((i) => {
|
|
1182
1182
|
r.outro ? it(t, () => {
|
|
1183
|
-
|
|
1184
|
-
}) : (
|
|
1183
|
+
F(t), i(void 0);
|
|
1184
|
+
}) : (F(t), i(void 0));
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function tn(e) {
|
|
1188
1188
|
return ke(4, e);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return ke(
|
|
1190
|
+
function ea(e) {
|
|
1191
|
+
return ke(os | yt, e);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function gi(e, t = 0) {
|
|
1194
1194
|
return ke(8 | t, e);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1197
|
-
|
|
1196
|
+
function Fi(e, t = [], r = [], i = []) {
|
|
1197
|
+
Vs(i, t, r, (o) => {
|
|
1198
1198
|
ke(8, () => e(...o.map(_)));
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function mi(e, t = 0) {
|
|
1202
1202
|
var r = ke(16 | t, e);
|
|
1203
1203
|
return r;
|
|
1204
1204
|
}
|
|
1205
1205
|
function le(e) {
|
|
1206
1206
|
return ke(32 | yt, e);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function rn(e) {
|
|
1209
1209
|
var t = e.teardown;
|
|
1210
1210
|
if (t !== null) {
|
|
1211
|
-
const r =
|
|
1212
|
-
|
|
1211
|
+
const r = Be, i = I;
|
|
1212
|
+
Ui(!0), ce(null);
|
|
1213
1213
|
try {
|
|
1214
1214
|
t.call(null);
|
|
1215
1215
|
} finally {
|
|
1216
|
-
|
|
1216
|
+
Ui(r), ce(i);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function _i(e, t = !1) {
|
|
1221
1221
|
var r = e.first;
|
|
1222
1222
|
for (e.first = e.last = null; r !== null; ) {
|
|
1223
1223
|
const o = r.ac;
|
|
1224
|
-
o !== null &&
|
|
1224
|
+
o !== null && Zo(() => {
|
|
1225
1225
|
o.abort($e);
|
|
1226
1226
|
});
|
|
1227
1227
|
var i = r.next;
|
|
1228
|
-
r.f & 64 ? r.parent = null :
|
|
1228
|
+
r.f & 64 ? r.parent = null : F(r, t), r = i;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function ta(e) {
|
|
1232
1232
|
for (var t = e.first; t !== null; ) {
|
|
1233
1233
|
var r = t.next;
|
|
1234
|
-
t.f & 32 ||
|
|
1234
|
+
t.f & 32 || F(t), t = r;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function F(e, t = !0) {
|
|
1238
1238
|
var r = !1;
|
|
1239
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1239
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ra(e.nodes.start, e.nodes.end), r = !0), D(e, Ci), _i(e, t && !r), xt(e, 0);
|
|
1240
1240
|
var i = e.nodes && e.nodes.t;
|
|
1241
1241
|
if (i !== null) for (const n of i) n.stop();
|
|
1242
|
-
|
|
1242
|
+
rn(e), e.f ^= Ci, e.f |= rs;
|
|
1243
1243
|
var o = e.parent;
|
|
1244
|
-
o !== null && o.first !== null &&
|
|
1244
|
+
o !== null && o.first !== null && on(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function ra(e, t) {
|
|
1247
1247
|
for (; e !== null; ) {
|
|
1248
1248
|
var r = e === t ? null : /* @__PURE__ */ we(e);
|
|
1249
1249
|
e.remove(), e = r;
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function on(e) {
|
|
1253
1253
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1254
1254
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1255
1255
|
}
|
|
1256
1256
|
function it(e, t, r = !0) {
|
|
1257
1257
|
var i = [];
|
|
1258
|
-
|
|
1258
|
+
nn(e, i, !0);
|
|
1259
1259
|
var o = () => {
|
|
1260
|
-
r &&
|
|
1260
|
+
r && F(e), t && t();
|
|
1261
1261
|
}, n = i.length;
|
|
1262
1262
|
if (n > 0) {
|
|
1263
1263
|
var s = () => --n || o();
|
|
1264
1264
|
for (var a of i) a.out(s);
|
|
1265
1265
|
} else o();
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function nn(e, t, r) {
|
|
1268
1268
|
if (!(e.f & 8192)) {
|
|
1269
|
-
e.f ^=
|
|
1269
|
+
e.f ^= oi;
|
|
1270
1270
|
var i = e.nodes && e.nodes.t;
|
|
1271
1271
|
if (i !== null)
|
|
1272
1272
|
for (const a of i) (a.is_global || r) && t.push(a);
|
|
1273
1273
|
for (var o = e.first; o !== null; ) {
|
|
1274
1274
|
var n = o.next, s = (o.f & 65536) !== 0 || (o.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1275
|
-
|
|
1275
|
+
nn(o, t, s ? r : !1), o = n;
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1280
|
-
|
|
1279
|
+
function bi(e) {
|
|
1280
|
+
sn(e, !0);
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function sn(e, t) {
|
|
1283
1283
|
if (e.f & 8192) {
|
|
1284
|
-
e.f ^=
|
|
1284
|
+
e.f ^= oi, e.f & 1024 || (D(e, ye), rt.ensure().schedule(e));
|
|
1285
1285
|
for (var r = e.first; r !== null; ) {
|
|
1286
1286
|
var i = r.next, o = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1287
|
-
|
|
1287
|
+
sn(r, o ? t : !1), r = i;
|
|
1288
1288
|
}
|
|
1289
1289
|
var n = e.nodes && e.nodes.t;
|
|
1290
1290
|
if (n !== null)
|
|
1291
1291
|
for (const s of n) (s.is_global || t) && s.in();
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function yi(e, t) {
|
|
1295
1295
|
if (e.nodes)
|
|
1296
1296
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1297
1297
|
var o = r === i ? null : /* @__PURE__ */ we(r);
|
|
1298
1298
|
t.append(r), r = o;
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1302
|
-
function
|
|
1303
|
-
|
|
1301
|
+
var ia = null, Jt = !1, Be = !1;
|
|
1302
|
+
function Ui(e) {
|
|
1303
|
+
Be = e;
|
|
1304
1304
|
}
|
|
1305
|
-
var
|
|
1305
|
+
var I = null, pe = !1;
|
|
1306
1306
|
function ce(e) {
|
|
1307
|
-
|
|
1307
|
+
I = e;
|
|
1308
1308
|
}
|
|
1309
|
-
var
|
|
1309
|
+
var A = null;
|
|
1310
1310
|
function be(e) {
|
|
1311
|
-
|
|
1311
|
+
A = e;
|
|
1312
1312
|
}
|
|
1313
1313
|
var se = null;
|
|
1314
|
-
function
|
|
1315
|
-
|
|
1314
|
+
function an(e) {
|
|
1315
|
+
I !== null && (!We || I.f & 2) && (se === null ? se = [e] : se.push(e));
|
|
1316
1316
|
}
|
|
1317
1317
|
var K = null, J = 0, ie = null;
|
|
1318
|
-
function
|
|
1318
|
+
function oa(e) {
|
|
1319
1319
|
ie = e;
|
|
1320
1320
|
}
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1321
|
+
var ln = 1, Ge = 0, Xe = Ge;
|
|
1322
|
+
function Hi(e) {
|
|
1323
1323
|
Xe = e;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return ++
|
|
1325
|
+
function cn() {
|
|
1326
|
+
return ++ln;
|
|
1327
1327
|
}
|
|
1328
1328
|
function jt(e) {
|
|
1329
1329
|
var t = e.f;
|
|
@@ -1331,57 +1331,57 @@ function jt(e) {
|
|
|
1331
1331
|
if (t & 2 && (e.f &= ~Dt), t & 4096) {
|
|
1332
1332
|
for (var r = e.deps, i = r.length, o = 0; o < i; o++) {
|
|
1333
1333
|
var n = r[o];
|
|
1334
|
-
if (jt(n) &&
|
|
1334
|
+
if (jt(n) && zo(n), n.wv > e.wv) return !0;
|
|
1335
1335
|
}
|
|
1336
1336
|
t & 512 && Y === null && D(e, ae);
|
|
1337
1337
|
}
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function un(e, t, r = !0) {
|
|
1341
1341
|
var i = e.reactions;
|
|
1342
|
-
if (i !== null && !(!
|
|
1342
|
+
if (i !== null && !(!We && se !== null && vt.call(se, e)))
|
|
1343
1343
|
for (var o = 0; o < i.length; o++) {
|
|
1344
1344
|
var n = i[o];
|
|
1345
|
-
n.f & 2 ?
|
|
1345
|
+
n.f & 2 ? un(n, t, !1) : t === n && (r ? D(n, ye) : n.f & 1024 && D(n, tt), ci(n));
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1349
|
-
var t = K, r = J, i = ie, o =
|
|
1350
|
-
K = null, J = 0, ie = null,
|
|
1348
|
+
function fn(e) {
|
|
1349
|
+
var t = K, r = J, i = ie, o = I, n = se, s = x, a = pe, l = Xe, u = e.f;
|
|
1350
|
+
K = null, J = 0, ie = null, I = u & 96 ? null : e, se = null, gt(e.ctx), pe = !1, Xe = ++Ge, e.ac !== null && (Zo(() => {
|
|
1351
1351
|
e.ac.abort($e);
|
|
1352
1352
|
}), e.ac = null);
|
|
1353
1353
|
try {
|
|
1354
|
-
e.f |=
|
|
1355
|
-
var
|
|
1356
|
-
e.f |=
|
|
1357
|
-
var f = e.deps,
|
|
1354
|
+
e.f |= xi;
|
|
1355
|
+
var d = e.fn, h = d();
|
|
1356
|
+
e.f |= ni;
|
|
1357
|
+
var f = e.deps, v = P?.is_fork;
|
|
1358
1358
|
if (K !== null) {
|
|
1359
|
-
var
|
|
1360
|
-
if (
|
|
1361
|
-
for (f.length = J + K.length,
|
|
1359
|
+
var m;
|
|
1360
|
+
if (v || xt(e, J), f !== null && J > 0)
|
|
1361
|
+
for (f.length = J + K.length, m = 0; m < K.length; m++) f[J + m] = K[m];
|
|
1362
1362
|
else e.deps = f = K;
|
|
1363
|
-
if (
|
|
1363
|
+
if (vi() && e.f & 512) for (m = J; m < f.length; m++) {
|
|
1364
1364
|
var w;
|
|
1365
|
-
((w = f[
|
|
1365
|
+
((w = f[m]).reactions ?? (w.reactions = [])).push(e);
|
|
1366
1366
|
}
|
|
1367
|
-
} else !
|
|
1368
|
-
if (Vt() && ie !== null && !pe && f !== null && !(e.f & 6146)) for (
|
|
1367
|
+
} else !v && f !== null && J < f.length && (xt(e, J), f.length = J);
|
|
1368
|
+
if (Vt() && ie !== null && !pe && f !== null && !(e.f & 6146)) for (m = 0; m < ie.length; m++) un(ie[m], e);
|
|
1369
1369
|
if (o !== null && o !== e) {
|
|
1370
|
-
if (Ge++, o.deps !== null) for (let
|
|
1371
|
-
if (t !== null) for (const
|
|
1370
|
+
if (Ge++, o.deps !== null) for (let p = 0; p < r; p += 1) o.deps[p].rv = Ge;
|
|
1371
|
+
if (t !== null) for (const p of t) p.rv = Ge;
|
|
1372
1372
|
ie !== null && (i === null ? i = ie : i.push(...ie));
|
|
1373
1373
|
}
|
|
1374
|
-
return e.f & 8388608 && (e.f ^= ir),
|
|
1375
|
-
} catch (
|
|
1376
|
-
return
|
|
1374
|
+
return e.f & 8388608 && (e.f ^= ir), h;
|
|
1375
|
+
} catch (p) {
|
|
1376
|
+
return $o(p);
|
|
1377
1377
|
} finally {
|
|
1378
|
-
e.f ^=
|
|
1378
|
+
e.f ^= xi, K = t, J = r, ie = i, I = o, se = n, gt(s), pe = a, Xe = l;
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function na(e, t) {
|
|
1382
1382
|
let r = t.reactions;
|
|
1383
1383
|
if (r !== null) {
|
|
1384
|
-
var i =
|
|
1384
|
+
var i = Qn.call(r, e);
|
|
1385
1385
|
if (i !== -1) {
|
|
1386
1386
|
var o = r.length - 1;
|
|
1387
1387
|
o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
|
|
@@ -1389,79 +1389,79 @@ function ta(e, t) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
if (r === null && t.f & 2 && (K === null || !vt.call(K, t))) {
|
|
1391
1391
|
var n = t;
|
|
1392
|
-
n.f & 512 && (n.f ^= 512, n.f &= ~Dt),
|
|
1392
|
+
n.f & 512 && (n.f ^= 512, n.f &= ~Dt), ai(n), zs(n), xt(n, 0);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
function xt(e, t) {
|
|
1396
1396
|
var r = e.deps;
|
|
1397
1397
|
if (r !== null)
|
|
1398
|
-
for (var i = t; i < r.length; i++)
|
|
1398
|
+
for (var i = t; i < r.length; i++) na(e, r[i]);
|
|
1399
1399
|
}
|
|
1400
1400
|
function bt(e) {
|
|
1401
1401
|
var t = e.f;
|
|
1402
1402
|
if (!(t & 16384)) {
|
|
1403
1403
|
D(e, ae);
|
|
1404
|
-
var r =
|
|
1405
|
-
if (
|
|
1404
|
+
var r = A, i = Jt;
|
|
1405
|
+
if (A = e, Jt = !0, 0)
|
|
1406
1406
|
var o, n;
|
|
1407
1407
|
try {
|
|
1408
|
-
t & 16777232 ?
|
|
1409
|
-
var s =
|
|
1410
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1408
|
+
t & 16777232 ? ta(e) : _i(e), rn(e);
|
|
1409
|
+
var s = fn(e);
|
|
1410
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = ln, 0)
|
|
1411
1411
|
for (var a of e.deps) ;
|
|
1412
1412
|
} finally {
|
|
1413
|
-
Jt = i,
|
|
1413
|
+
Jt = i, A = r;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
function _(e) {
|
|
1418
1418
|
var t = (e.f & 2) !== 0;
|
|
1419
|
-
if (
|
|
1420
|
-
var r =
|
|
1421
|
-
if (
|
|
1419
|
+
if (ia?.add(e), I !== null && !pe && !(A !== null && A.f & 16384) && (se === null || !vt.call(se, e))) {
|
|
1420
|
+
var r = I.deps;
|
|
1421
|
+
if (I.f & 2097152)
|
|
1422
1422
|
e.rv < Ge && (e.rv = Ge, K === null && r !== null && r[J] === e ? J++ : K === null ? K = [e] : K.push(e));
|
|
1423
1423
|
else {
|
|
1424
1424
|
var i;
|
|
1425
|
-
((i =
|
|
1425
|
+
((i = I).deps ?? (i.deps = [])).push(e);
|
|
1426
1426
|
var o = e.reactions;
|
|
1427
|
-
o === null ? e.reactions = [
|
|
1427
|
+
o === null ? e.reactions = [I] : vt.call(o, I) || o.push(I);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
if (0) {
|
|
1431
1431
|
if (!pe && reactivity_loss_tracker && !reactivity_loss_tracker.warned && !(reactivity_loss_tracker.effect.f & 2097152))
|
|
1432
1432
|
var n;
|
|
1433
|
-
if (tracing_mode_flag && !pe && tracing_expressions !== null &&
|
|
1433
|
+
if (tracing_mode_flag && !pe && tracing_expressions !== null && I !== null && tracing_expressions.reaction === I && !e.trace) {
|
|
1434
1434
|
if (n)
|
|
1435
1435
|
var s, a;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
|
-
if (
|
|
1438
|
+
if (Be && je.has(e)) return je.get(e);
|
|
1439
1439
|
if (t) {
|
|
1440
1440
|
var l = e;
|
|
1441
|
-
if (
|
|
1441
|
+
if (Be) {
|
|
1442
1442
|
var u = l.v;
|
|
1443
|
-
return (!(l.f & 1024) && l.reactions !== null ||
|
|
1443
|
+
return (!(l.f & 1024) && l.reactions !== null || hn(l)) && (u = di(l)), je.set(l, u), u;
|
|
1444
1444
|
}
|
|
1445
|
-
var
|
|
1446
|
-
jt(l) && (
|
|
1445
|
+
var d = (l.f & 512) === 0 && !pe && I !== null && (Jt || (I.f & 512) !== 0), h = (l.f & ni) === 0;
|
|
1446
|
+
jt(l) && (d && (l.f |= 512), zo(l)), d && !h && (Fo(l), dn(l));
|
|
1447
1447
|
}
|
|
1448
1448
|
if (Y?.has(e)) return Y.get(e);
|
|
1449
1449
|
if (e.f & 8388608) throw e.v;
|
|
1450
1450
|
return e.v;
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function dn(e) {
|
|
1453
1453
|
if (e.f |= 512, e.deps !== null)
|
|
1454
1454
|
for (const t of e.deps)
|
|
1455
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1455
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Fo(t), dn(t));
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function hn(e) {
|
|
1458
1458
|
if (e.v === j) return !0;
|
|
1459
1459
|
if (e.deps === null) return !1;
|
|
1460
1460
|
for (const t of e.deps)
|
|
1461
|
-
if (je.has(t) || t.f & 2 &&
|
|
1461
|
+
if (je.has(t) || t.f & 2 && hn(t)) return !0;
|
|
1462
1462
|
return !1;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function pr(e) {
|
|
1465
1465
|
var t = pe;
|
|
1466
1466
|
try {
|
|
1467
1467
|
return pe = !0, e();
|
|
@@ -1469,19 +1469,19 @@ function hr(e) {
|
|
|
1469
1469
|
pe = t;
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
var ht = Symbol("events"),
|
|
1473
|
-
function
|
|
1472
|
+
var ht = Symbol("events"), pn = /* @__PURE__ */ new Set(), Kr = /* @__PURE__ */ new Set();
|
|
1473
|
+
function Pr(e, t, r) {
|
|
1474
1474
|
(t[ht] ?? (t[ht] = {}))[e] = r;
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1477
|
-
for (var t = 0; t < e.length; t++)
|
|
1478
|
-
for (var r of
|
|
1476
|
+
function sa(e) {
|
|
1477
|
+
for (var t = 0; t < e.length; t++) pn.add(e[t]);
|
|
1478
|
+
for (var r of Kr) r(e);
|
|
1479
1479
|
}
|
|
1480
|
-
var
|
|
1481
|
-
function
|
|
1480
|
+
var Gi = null;
|
|
1481
|
+
function Ki(e) {
|
|
1482
1482
|
var t = this, r = t.ownerDocument, i = e.type, o = e.composedPath?.() || [], n = o[0] || e.target;
|
|
1483
|
-
|
|
1484
|
-
var s = 0, a =
|
|
1483
|
+
Gi = e;
|
|
1484
|
+
var s = 0, a = Gi === e && e[ht];
|
|
1485
1485
|
if (a) {
|
|
1486
1486
|
var l = o.indexOf(a);
|
|
1487
1487
|
if (l !== -1 && (t === document || t === window)) {
|
|
@@ -1499,41 +1499,41 @@ function Hi(e) {
|
|
|
1499
1499
|
return n || r;
|
|
1500
1500
|
}
|
|
1501
1501
|
});
|
|
1502
|
-
var
|
|
1502
|
+
var d = I, h = A;
|
|
1503
1503
|
ce(null), be(null);
|
|
1504
1504
|
try {
|
|
1505
|
-
for (var f,
|
|
1506
|
-
var
|
|
1505
|
+
for (var f, v = []; n !== null; ) {
|
|
1506
|
+
var m = n.assignedSlot || n.parentNode || n.host || null;
|
|
1507
1507
|
try {
|
|
1508
1508
|
var w = n[ht]?.[i];
|
|
1509
1509
|
w != null && (!n.disabled || e.target === n) && w.call(n, e);
|
|
1510
|
-
} catch (
|
|
1511
|
-
f ?
|
|
1510
|
+
} catch (p) {
|
|
1511
|
+
f ? v.push(p) : f = p;
|
|
1512
1512
|
}
|
|
1513
|
-
if (e.cancelBubble ||
|
|
1514
|
-
n =
|
|
1513
|
+
if (e.cancelBubble || m === t || m === null) break;
|
|
1514
|
+
n = m;
|
|
1515
1515
|
}
|
|
1516
1516
|
if (f) {
|
|
1517
|
-
for (let
|
|
1518
|
-
throw
|
|
1517
|
+
for (let p of v) queueMicrotask(() => {
|
|
1518
|
+
throw p;
|
|
1519
1519
|
});
|
|
1520
1520
|
throw f;
|
|
1521
1521
|
}
|
|
1522
1522
|
} finally {
|
|
1523
|
-
e[ht] = t, delete e.currentTarget, ce(
|
|
1523
|
+
e[ht] = t, delete e.currentTarget, ce(d), be(h);
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1528
|
-
function
|
|
1529
|
-
return
|
|
1527
|
+
var aa = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1528
|
+
function la(e) {
|
|
1529
|
+
return aa?.createHTML(e) ?? e;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
var t =
|
|
1533
|
-
return t.innerHTML =
|
|
1531
|
+
function vn(e) {
|
|
1532
|
+
var t = hi("template");
|
|
1533
|
+
return t.innerHTML = la(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
var r =
|
|
1535
|
+
function Pe(e, t) {
|
|
1536
|
+
var r = A;
|
|
1537
1537
|
r.nodes === null && (r.nodes = {
|
|
1538
1538
|
start: e,
|
|
1539
1539
|
end: t,
|
|
@@ -1542,59 +1542,59 @@ function Le(e, t) {
|
|
|
1542
1542
|
});
|
|
1543
1543
|
}
|
|
1544
1544
|
// @__NO_SIDE_EFFECTS__
|
|
1545
|
-
function
|
|
1545
|
+
function wi(e, t) {
|
|
1546
1546
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, o, n = !e.startsWith("<!>");
|
|
1547
1547
|
return () => {
|
|
1548
|
-
if (
|
|
1549
|
-
return
|
|
1550
|
-
o === void 0 && (o =
|
|
1551
|
-
var s = i ||
|
|
1548
|
+
if (O)
|
|
1549
|
+
return Pe($, null), $;
|
|
1550
|
+
o === void 0 && (o = vn(n ? e : "<!>" + e), r || (o = /* @__PURE__ */ oe(o)));
|
|
1551
|
+
var s = i || Ko ? document.importNode(o, !0) : o.cloneNode(!0);
|
|
1552
1552
|
if (r) {
|
|
1553
1553
|
var a = /* @__PURE__ */ oe(s), l = s.lastChild;
|
|
1554
|
-
|
|
1555
|
-
} else
|
|
1554
|
+
Pe(a, l);
|
|
1555
|
+
} else Pe(s, s);
|
|
1556
1556
|
return s;
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
1559
|
// @__NO_SIDE_EFFECTS__
|
|
1560
|
-
function
|
|
1560
|
+
function ca(e, t, r = "svg") {
|
|
1561
1561
|
var i = !e.startsWith("<!>"), o = (t & 1) !== 0, n = `<${r}>${i ? e : "<!>" + e}</${r}>`, s;
|
|
1562
1562
|
return () => {
|
|
1563
|
-
if (
|
|
1564
|
-
return
|
|
1563
|
+
if (O)
|
|
1564
|
+
return Pe($, null), $;
|
|
1565
1565
|
if (!s) {
|
|
1566
|
-
var a = /* @__PURE__ */ oe(
|
|
1566
|
+
var a = /* @__PURE__ */ oe(vn(n));
|
|
1567
1567
|
if (o)
|
|
1568
1568
|
for (s = document.createDocumentFragment(); /* @__PURE__ */ oe(a); ) s.appendChild(/* @__PURE__ */ oe(a));
|
|
1569
1569
|
else s = /* @__PURE__ */ oe(a);
|
|
1570
1570
|
}
|
|
1571
1571
|
var l = s.cloneNode(!0);
|
|
1572
1572
|
if (o) {
|
|
1573
|
-
var u = /* @__PURE__ */ oe(l),
|
|
1574
|
-
|
|
1575
|
-
} else
|
|
1573
|
+
var u = /* @__PURE__ */ oe(l), d = l.lastChild;
|
|
1574
|
+
Pe(u, d);
|
|
1575
|
+
} else Pe(l, l);
|
|
1576
1576
|
return l;
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
1579
|
// @__NO_SIDE_EFFECTS__
|
|
1580
|
-
function
|
|
1581
|
-
return /* @__PURE__ */
|
|
1580
|
+
function ua(e, t) {
|
|
1581
|
+
return /* @__PURE__ */ ca(e, t, "svg");
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1584
|
-
if (
|
|
1585
|
-
return
|
|
1583
|
+
function fa() {
|
|
1584
|
+
if (O)
|
|
1585
|
+
return Pe($, null), $;
|
|
1586
1586
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = ne();
|
|
1587
|
-
return e.append(t, r),
|
|
1587
|
+
return e.append(t, r), Pe(t, r), e;
|
|
1588
1588
|
}
|
|
1589
1589
|
function ut(e, t) {
|
|
1590
|
-
if (
|
|
1591
|
-
var r =
|
|
1592
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = $),
|
|
1590
|
+
if (O) {
|
|
1591
|
+
var r = A;
|
|
1592
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = $), dr();
|
|
1593
1593
|
return;
|
|
1594
1594
|
}
|
|
1595
1595
|
e !== null && e.before(t);
|
|
1596
1596
|
}
|
|
1597
|
-
var
|
|
1597
|
+
var da = [
|
|
1598
1598
|
"allowfullscreen",
|
|
1599
1599
|
"async",
|
|
1600
1600
|
"autofocus",
|
|
@@ -1623,8 +1623,8 @@ var la = [
|
|
|
1623
1623
|
"defer",
|
|
1624
1624
|
"disablepictureinpicture",
|
|
1625
1625
|
"disableremoteplayback"
|
|
1626
|
-
],
|
|
1627
|
-
...
|
|
1626
|
+
], wc = [
|
|
1627
|
+
...da,
|
|
1628
1628
|
"formNoValidate",
|
|
1629
1629
|
"isMap",
|
|
1630
1630
|
"noModule",
|
|
@@ -1639,17 +1639,17 @@ var la = [
|
|
|
1639
1639
|
"allowFullscreen",
|
|
1640
1640
|
"disablePictureInPicture",
|
|
1641
1641
|
"disableRemotePlayback"
|
|
1642
|
-
],
|
|
1643
|
-
function
|
|
1644
|
-
return
|
|
1642
|
+
], ha = ["touchstart", "touchmove"];
|
|
1643
|
+
function pa(e) {
|
|
1644
|
+
return ha.includes(e);
|
|
1645
1645
|
}
|
|
1646
|
-
var
|
|
1646
|
+
var va = [
|
|
1647
1647
|
"$state",
|
|
1648
1648
|
"$state.raw",
|
|
1649
1649
|
"$derived",
|
|
1650
1650
|
"$derived.by"
|
|
1651
|
-
],
|
|
1652
|
-
...
|
|
1651
|
+
], kc = [
|
|
1652
|
+
...va,
|
|
1653
1653
|
"$state.eager",
|
|
1654
1654
|
"$state.snapshot",
|
|
1655
1655
|
"$props",
|
|
@@ -1664,84 +1664,84 @@ var fa = [
|
|
|
1664
1664
|
"$inspect().with",
|
|
1665
1665
|
"$inspect.trace",
|
|
1666
1666
|
"$host"
|
|
1667
|
-
],
|
|
1667
|
+
], Yi = !0;
|
|
1668
1668
|
function Ht(e, t) {
|
|
1669
1669
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1670
1670
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return
|
|
1672
|
+
function gn(e, t) {
|
|
1673
|
+
return mn(e, t);
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1676
|
-
|
|
1677
|
-
const r = t.target, i =
|
|
1675
|
+
function ga(e, t) {
|
|
1676
|
+
Gr(), t.intro = t.intro ?? !1;
|
|
1677
|
+
const r = t.target, i = O, o = $;
|
|
1678
1678
|
try {
|
|
1679
1679
|
for (var n = /* @__PURE__ */ oe(r); n && (n.nodeType !== 8 || n.data !== "["); ) n = /* @__PURE__ */ we(n);
|
|
1680
1680
|
if (!n) throw pt;
|
|
1681
|
-
|
|
1682
|
-
const s =
|
|
1681
|
+
Oe(!0), Q(n);
|
|
1682
|
+
const s = mn(e, {
|
|
1683
1683
|
...t,
|
|
1684
1684
|
anchor: n
|
|
1685
1685
|
});
|
|
1686
|
-
return
|
|
1686
|
+
return Oe(!1), s;
|
|
1687
1687
|
} catch (s) {
|
|
1688
1688
|
if (s instanceof Error && s.message.split(`
|
|
1689
1689
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1690
|
-
return s !== pt && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1690
|
+
return s !== pt && console.warn("Failed to hydrate: ", s), t.recover === !1 && vs(), Gr(), Jo(r), Oe(!1), gn(e, t);
|
|
1691
1691
|
} finally {
|
|
1692
|
-
|
|
1692
|
+
Oe(i), Q(o);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
1695
|
var Gt = /* @__PURE__ */ new Map();
|
|
1696
|
-
function
|
|
1697
|
-
|
|
1698
|
-
var l = void 0, u =
|
|
1699
|
-
var
|
|
1700
|
-
|
|
1701
|
-
} }, (
|
|
1702
|
-
|
|
1703
|
-
var
|
|
1704
|
-
if (n && (
|
|
1705
|
-
throw
|
|
1706
|
-
|
|
1696
|
+
function mn(e, { target: t, anchor: r, props: i = {}, events: o, context: n, intro: s = !0, transformError: a }) {
|
|
1697
|
+
Gr();
|
|
1698
|
+
var l = void 0, u = Zs(() => {
|
|
1699
|
+
var d = r ?? t.appendChild(ne());
|
|
1700
|
+
Rs(d, { pending: () => {
|
|
1701
|
+
} }, (v) => {
|
|
1702
|
+
Eo({});
|
|
1703
|
+
var m = x;
|
|
1704
|
+
if (n && (m.c = n), o && (i.$$events = o), O && Pe(v, null), Yi = s, l = e(v, i) || {}, Yi = !0, O && (A.nodes.end = $, $ === null || $.nodeType !== 8 || $.data !== "]"))
|
|
1705
|
+
throw fr(), pt;
|
|
1706
|
+
Ao();
|
|
1707
1707
|
}, a);
|
|
1708
|
-
var
|
|
1709
|
-
for (var
|
|
1710
|
-
var w =
|
|
1711
|
-
if (!
|
|
1712
|
-
|
|
1713
|
-
var
|
|
1708
|
+
var h = /* @__PURE__ */ new Set(), f = (v) => {
|
|
1709
|
+
for (var m = 0; m < v.length; m++) {
|
|
1710
|
+
var w = v[m];
|
|
1711
|
+
if (!h.has(w)) {
|
|
1712
|
+
h.add(w);
|
|
1713
|
+
var p = pa(w);
|
|
1714
1714
|
for (const S of [t, document]) {
|
|
1715
1715
|
var b = Gt.get(S);
|
|
1716
1716
|
b === void 0 && (b = /* @__PURE__ */ new Map(), Gt.set(S, b));
|
|
1717
|
-
var
|
|
1718
|
-
|
|
1717
|
+
var R = b.get(w);
|
|
1718
|
+
R === void 0 ? (S.addEventListener(w, Ki, { passive: p }), b.set(w, 1)) : b.set(w, R + 1);
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
};
|
|
1723
|
-
return f(
|
|
1724
|
-
for (var
|
|
1725
|
-
var
|
|
1726
|
-
--w == 0 ? (
|
|
1723
|
+
return f(ur(pn)), Kr.add(f), () => {
|
|
1724
|
+
for (var v of h) for (const p of [t, document]) {
|
|
1725
|
+
var m = Gt.get(p), w = m.get(v);
|
|
1726
|
+
--w == 0 ? (p.removeEventListener(v, Ki), m.delete(v), m.size === 0 && Gt.delete(p)) : m.set(v, w);
|
|
1727
1727
|
}
|
|
1728
|
-
|
|
1728
|
+
Kr.delete(f), d !== r && d.parentNode?.removeChild(d);
|
|
1729
1729
|
};
|
|
1730
1730
|
});
|
|
1731
|
-
return
|
|
1731
|
+
return Yr.set(l, u), l;
|
|
1732
1732
|
}
|
|
1733
|
-
var
|
|
1734
|
-
function
|
|
1735
|
-
const r =
|
|
1736
|
-
return r ? (
|
|
1733
|
+
var Yr = /* @__PURE__ */ new WeakMap();
|
|
1734
|
+
function ma(e, t) {
|
|
1735
|
+
const r = Yr.get(e);
|
|
1736
|
+
return r ? (Yr.delete(e), r(t)) : Promise.resolve();
|
|
1737
1737
|
}
|
|
1738
|
-
var Ee = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(),
|
|
1738
|
+
var Ee = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), _a = class {
|
|
1739
1739
|
constructor(e, t = !0) {
|
|
1740
|
-
|
|
1740
|
+
g(this, "anchor", void 0), E(this, Ee, /* @__PURE__ */ new Map()), E(this, Ce, /* @__PURE__ */ new Map()), E(this, ue, /* @__PURE__ */ new Map()), E(this, St, /* @__PURE__ */ new Set()), E(this, Mr, !0), E(this, Rr, (r) => {
|
|
1741
1741
|
if (c(Ee, this).has(r)) {
|
|
1742
1742
|
var i = c(Ee, this).get(r), o = c(Ce, this).get(i);
|
|
1743
1743
|
if (o)
|
|
1744
|
-
|
|
1744
|
+
bi(o), c(St, this).delete(i);
|
|
1745
1745
|
else {
|
|
1746
1746
|
var n = c(ue, this).get(i);
|
|
1747
1747
|
n && (c(Ce, this).set(i, n.effect), c(ue, this).delete(i), n.fragment.lastChild.remove(), this.anchor.before(n.fragment), o = n.effect);
|
|
@@ -1749,31 +1749,31 @@ var Ee = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ue =
|
|
|
1749
1749
|
for (const [s, a] of c(Ee, this)) {
|
|
1750
1750
|
if (c(Ee, this).delete(s), s === r) break;
|
|
1751
1751
|
const l = c(ue, this).get(a);
|
|
1752
|
-
l && (
|
|
1752
|
+
l && (F(l.effect), c(ue, this).delete(a));
|
|
1753
1753
|
}
|
|
1754
1754
|
for (const [s, a] of c(Ce, this)) {
|
|
1755
1755
|
if (s === i || c(St, this).has(s)) continue;
|
|
1756
1756
|
const l = () => {
|
|
1757
1757
|
if (Array.from(c(Ee, this).values()).includes(s)) {
|
|
1758
1758
|
var u = document.createDocumentFragment();
|
|
1759
|
-
|
|
1759
|
+
yi(a, u), u.append(ne()), c(ue, this).set(s, {
|
|
1760
1760
|
effect: a,
|
|
1761
1761
|
fragment: u
|
|
1762
1762
|
});
|
|
1763
|
-
} else
|
|
1763
|
+
} else F(a);
|
|
1764
1764
|
c(St, this).delete(s), c(Ce, this).delete(s);
|
|
1765
1765
|
};
|
|
1766
|
-
c(
|
|
1766
|
+
c(Mr, this) || !o ? (c(St, this).add(s), it(a, l, !1)) : l();
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
|
-
}), E(this,
|
|
1769
|
+
}), E(this, Qi, (r) => {
|
|
1770
1770
|
c(Ee, this).delete(r);
|
|
1771
1771
|
const i = Array.from(c(Ee, this).values());
|
|
1772
|
-
for (const [o, n] of c(ue, this)) i.includes(o) || (
|
|
1773
|
-
}), this.anchor = e, T(
|
|
1772
|
+
for (const [o, n] of c(ue, this)) i.includes(o) || (F(n.effect), c(ue, this).delete(o));
|
|
1773
|
+
}), this.anchor = e, T(Mr, this, t);
|
|
1774
1774
|
}
|
|
1775
1775
|
ensure(e, t) {
|
|
1776
|
-
var r =
|
|
1776
|
+
var r = P, i = Xo();
|
|
1777
1777
|
if (t && !c(Ce, this).has(e) && !c(ue, this).has(e)) if (i) {
|
|
1778
1778
|
var o = document.createDocumentFragment(), n = ne();
|
|
1779
1779
|
o.append(n), c(ue, this).set(e, {
|
|
@@ -1784,18 +1784,18 @@ var Ee = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ue =
|
|
|
1784
1784
|
if (c(Ee, this).set(r, e), i) {
|
|
1785
1785
|
for (const [s, a] of c(Ce, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1786
1786
|
for (const [s, a] of c(ue, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1787
|
-
r.oncommit(c(Rr, this)), r.ondiscard(c(
|
|
1787
|
+
r.oncommit(c(Rr, this)), r.ondiscard(c(Qi, this));
|
|
1788
1788
|
} else
|
|
1789
|
-
|
|
1789
|
+
O && (this.anchor = $), c(Rr, this).call(this, r);
|
|
1790
1790
|
}
|
|
1791
1791
|
};
|
|
1792
|
-
function
|
|
1793
|
-
x === null &&
|
|
1794
|
-
const t =
|
|
1792
|
+
function ba(e) {
|
|
1793
|
+
x === null && ls("onMount"), Nt && x.l !== null ? ya(x).m.push(e) : ct(() => {
|
|
1794
|
+
const t = pr(e);
|
|
1795
1795
|
if (typeof t == "function") return t;
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function ya(e) {
|
|
1799
1799
|
var t = e.l;
|
|
1800
1800
|
return t.u ?? (t.u = {
|
|
1801
1801
|
a: [],
|
|
@@ -1803,36 +1803,36 @@ function ma(e) {
|
|
|
1803
1803
|
m: []
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function Cr(e, t, r = !1) {
|
|
1807
1807
|
var i;
|
|
1808
|
-
|
|
1809
|
-
var o = new
|
|
1808
|
+
O && (i = $, dr());
|
|
1809
|
+
var o = new _a(e), n = r ? si : 0;
|
|
1810
1810
|
function s(a, l) {
|
|
1811
|
-
if (
|
|
1812
|
-
var u =
|
|
1811
|
+
if (O) {
|
|
1812
|
+
var u = ko(i);
|
|
1813
1813
|
if (a !== parseInt(u.substring(1))) {
|
|
1814
|
-
var
|
|
1815
|
-
Q(
|
|
1814
|
+
var d = or();
|
|
1815
|
+
Q(d), o.anchor = d, Oe(!1), o.ensure(a, l), Oe(!0);
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
o.ensure(a, l);
|
|
1820
1820
|
}
|
|
1821
|
-
|
|
1821
|
+
mi(() => {
|
|
1822
1822
|
var a = !1;
|
|
1823
1823
|
t((l, u = 0) => {
|
|
1824
1824
|
a = !0, s(u, l);
|
|
1825
1825
|
}), a || s(-1, null);
|
|
1826
1826
|
}, n);
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function wa(e, t, r) {
|
|
1829
1829
|
for (var i = [], o = t.length, n, s = t.length, a = 0; a < o; a++) {
|
|
1830
|
-
let
|
|
1831
|
-
it(
|
|
1830
|
+
let h = t[a];
|
|
1831
|
+
it(h, () => {
|
|
1832
1832
|
if (n) {
|
|
1833
|
-
if (n.pending.delete(
|
|
1833
|
+
if (n.pending.delete(h), n.done.add(h), n.pending.size === 0) {
|
|
1834
1834
|
var f = e.outrogroups;
|
|
1835
|
-
|
|
1835
|
+
Qr(e, ur(n.done)), f.delete(n), f.size === 0 && (e.outrogroups = null);
|
|
1836
1836
|
}
|
|
1837
1837
|
} else s -= 1;
|
|
1838
1838
|
}, !1);
|
|
@@ -1840,17 +1840,17 @@ function ga(e, t, r) {
|
|
|
1840
1840
|
if (s === 0) {
|
|
1841
1841
|
var l = i.length === 0 && r !== null;
|
|
1842
1842
|
if (l) {
|
|
1843
|
-
var u = r,
|
|
1844
|
-
|
|
1843
|
+
var u = r, d = u.parentNode;
|
|
1844
|
+
Jo(d), d.append(u), e.items.clear();
|
|
1845
1845
|
}
|
|
1846
|
-
|
|
1846
|
+
Qr(e, t, !l);
|
|
1847
1847
|
} else
|
|
1848
1848
|
n = {
|
|
1849
1849
|
pending: new Set(t),
|
|
1850
1850
|
done: /* @__PURE__ */ new Set()
|
|
1851
1851
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(n);
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function Qr(e, t, r = !0) {
|
|
1854
1854
|
var i;
|
|
1855
1855
|
if (e.pending.size > 0) {
|
|
1856
1856
|
i = /* @__PURE__ */ new Set();
|
|
@@ -1858,49 +1858,49 @@ function Kr(e, t, r = !0) {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
for (var o = 0; o < t.length; o++) {
|
|
1860
1860
|
var n = t[o];
|
|
1861
|
-
i?.has(n) ? (n.f |=
|
|
1861
|
+
i?.has(n) ? (n.f |= Ot, yi(n, document.createDocumentFragment())) : F(t[o], r);
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
1864
|
var Kt;
|
|
1865
|
-
function
|
|
1865
|
+
function ka(e, t, r, i, o, n = null) {
|
|
1866
1866
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1867
1867
|
if (t & 4) {
|
|
1868
1868
|
var l = e;
|
|
1869
|
-
s =
|
|
1869
|
+
s = O ? Q(/* @__PURE__ */ oe(l)) : l.appendChild(ne());
|
|
1870
1870
|
}
|
|
1871
|
-
|
|
1872
|
-
var u = null,
|
|
1871
|
+
O && dr();
|
|
1872
|
+
var u = null, d = /* @__PURE__ */ fi(() => {
|
|
1873
1873
|
var b = r();
|
|
1874
|
-
return
|
|
1875
|
-
}),
|
|
1876
|
-
function
|
|
1877
|
-
|
|
1874
|
+
return mo(b) ? b : b == null ? [] : ur(b);
|
|
1875
|
+
}), h, f = /* @__PURE__ */ new Map(), v = !0;
|
|
1876
|
+
function m(b) {
|
|
1877
|
+
p.effect.f & 16384 || (p.pending.delete(b), p.fallback = u, Ta(p, h, s, t, i), u !== null && (h.length === 0 ? u.f & 33554432 ? (u.f ^= Ot, $t(u, null, s)) : bi(u) : it(u, () => {
|
|
1878
1878
|
u = null;
|
|
1879
1879
|
})));
|
|
1880
1880
|
}
|
|
1881
1881
|
function w(b) {
|
|
1882
|
-
|
|
1883
|
-
}
|
|
1884
|
-
var
|
|
1885
|
-
effect:
|
|
1886
|
-
|
|
1887
|
-
var b =
|
|
1888
|
-
let
|
|
1889
|
-
|
|
1890
|
-
for (var S = /* @__PURE__ */ new Set(),
|
|
1891
|
-
|
|
1892
|
-
var Z =
|
|
1882
|
+
p.pending.delete(b);
|
|
1883
|
+
}
|
|
1884
|
+
var p = {
|
|
1885
|
+
effect: mi(() => {
|
|
1886
|
+
h = _(d);
|
|
1887
|
+
var b = h.length;
|
|
1888
|
+
let R = !1;
|
|
1889
|
+
O && ko(s) === "[!" != (b === 0) && (s = or(), Q(s), Oe(!1), R = !0);
|
|
1890
|
+
for (var S = /* @__PURE__ */ new Set(), L = P, U = Xo(), W = 0; W < b; W += 1) {
|
|
1891
|
+
O && $.nodeType === 8 && $.data === "]" && (s = $, R = !0, Oe(!1));
|
|
1892
|
+
var Z = h[W], H = i(Z, W);
|
|
1893
1893
|
if (0)
|
|
1894
|
-
var
|
|
1895
|
-
var N =
|
|
1896
|
-
N ? (N.v && _t(N.v, Z), N.i && _t(N.i,
|
|
1894
|
+
var Wt;
|
|
1895
|
+
var N = v ? null : a.get(H);
|
|
1896
|
+
N ? (N.v && _t(N.v, Z), N.i && _t(N.i, W), U && L.unskip_effect(N.e)) : (N = Sa(a, v ? s : Kt ?? (Kt = ne()), Z, H, W, o, t, r), v || (N.e.f |= Ot), a.set(H, N)), S.add(H);
|
|
1897
1897
|
}
|
|
1898
|
-
if (b === 0 && n && !u && (
|
|
1899
|
-
if (f.set(
|
|
1900
|
-
for (const [
|
|
1901
|
-
|
|
1902
|
-
} else
|
|
1903
|
-
|
|
1898
|
+
if (b === 0 && n && !u && (v ? u = le(() => n(s)) : (u = le(() => n(Kt ?? (Kt = ne()))), u.f |= Ot)), b > S.size && us("", "", ""), O && b > 0 && Q(or()), !v)
|
|
1899
|
+
if (f.set(L, S), U) {
|
|
1900
|
+
for (const [Bt, _r] of a) S.has(Bt) || L.skip_effect(_r.e);
|
|
1901
|
+
L.oncommit(m), L.ondiscard(w);
|
|
1902
|
+
} else m(L);
|
|
1903
|
+
R && Oe(!0), _(d);
|
|
1904
1904
|
}),
|
|
1905
1905
|
flags: t,
|
|
1906
1906
|
items: a,
|
|
@@ -1908,72 +1908,72 @@ function _a(e, t, r, i, o, n = null) {
|
|
|
1908
1908
|
outrogroups: null,
|
|
1909
1909
|
fallback: u
|
|
1910
1910
|
};
|
|
1911
|
-
|
|
1911
|
+
v = !1, O && (s = $);
|
|
1912
1912
|
}
|
|
1913
1913
|
function Et(e) {
|
|
1914
1914
|
for (; e !== null && !(e.f & 32); ) e = e.next;
|
|
1915
1915
|
return e;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1918
|
-
var n = (i & 8) !== 0, s = t.length, a = e.items, l = Et(e.effect.first), u,
|
|
1917
|
+
function Ta(e, t, r, i, o) {
|
|
1918
|
+
var n = (i & 8) !== 0, s = t.length, a = e.items, l = Et(e.effect.first), u, d = null, h, f = [], v = [], m, w, p, b;
|
|
1919
1919
|
if (n) for (b = 0; b < s; b += 1)
|
|
1920
|
-
|
|
1920
|
+
m = t[b], w = o(m, b), p = a.get(w).e, p.f & 33554432 || (p.nodes?.a?.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(p));
|
|
1921
1921
|
for (b = 0; b < s; b += 1) {
|
|
1922
|
-
if (
|
|
1923
|
-
N.pending.delete(
|
|
1924
|
-
if (
|
|
1925
|
-
if (
|
|
1922
|
+
if (m = t[b], w = o(m, b), p = a.get(w).e, e.outrogroups !== null) for (const N of e.outrogroups)
|
|
1923
|
+
N.pending.delete(p), N.done.delete(p);
|
|
1924
|
+
if (p.f & 8192 && (bi(p), n && (p.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(p))), p.f & 33554432)
|
|
1925
|
+
if (p.f ^= Ot, p === l) $t(p, null, r);
|
|
1926
1926
|
else {
|
|
1927
|
-
var
|
|
1928
|
-
|
|
1927
|
+
var R = d ? d.next : l;
|
|
1928
|
+
p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), xe(e, d, p), xe(e, p, R), $t(p, R, r), d = p, f = [], v = [], l = Et(d.next);
|
|
1929
1929
|
continue;
|
|
1930
1930
|
}
|
|
1931
|
-
if (
|
|
1932
|
-
if (u !== void 0 && u.has(
|
|
1933
|
-
if (f.length <
|
|
1934
|
-
var S =
|
|
1935
|
-
|
|
1936
|
-
var U = f[0],
|
|
1937
|
-
for (
|
|
1938
|
-
for (
|
|
1939
|
-
xe(e, U.prev,
|
|
1931
|
+
if (p !== l) {
|
|
1932
|
+
if (u !== void 0 && u.has(p)) {
|
|
1933
|
+
if (f.length < v.length) {
|
|
1934
|
+
var S = v[0], L;
|
|
1935
|
+
d = S.prev;
|
|
1936
|
+
var U = f[0], W = f[f.length - 1];
|
|
1937
|
+
for (L = 0; L < f.length; L += 1) $t(f[L], S, r);
|
|
1938
|
+
for (L = 0; L < v.length; L += 1) u.delete(v[L]);
|
|
1939
|
+
xe(e, U.prev, W.next), xe(e, d, U), xe(e, W, S), l = S, d = W, b -= 1, f = [], v = [];
|
|
1940
1940
|
} else
|
|
1941
|
-
u.delete(
|
|
1941
|
+
u.delete(p), $t(p, l, r), xe(e, p.prev, p.next), xe(e, p, d === null ? e.effect.first : d.next), xe(e, d, p), d = p;
|
|
1942
1942
|
continue;
|
|
1943
1943
|
}
|
|
1944
|
-
for (f = [],
|
|
1945
|
-
(u ?? (u = /* @__PURE__ */ new Set())).add(l),
|
|
1944
|
+
for (f = [], v = []; l !== null && l !== p; )
|
|
1945
|
+
(u ?? (u = /* @__PURE__ */ new Set())).add(l), v.push(l), l = Et(l.next);
|
|
1946
1946
|
if (l === null) continue;
|
|
1947
1947
|
}
|
|
1948
|
-
|
|
1948
|
+
p.f & 33554432 || f.push(p), d = p, l = Et(p.next);
|
|
1949
1949
|
}
|
|
1950
1950
|
if (e.outrogroups !== null) {
|
|
1951
|
-
for (const N of e.outrogroups) N.pending.size === 0 && (
|
|
1951
|
+
for (const N of e.outrogroups) N.pending.size === 0 && (Qr(e, ur(N.done)), e.outrogroups?.delete(N));
|
|
1952
1952
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1953
1953
|
}
|
|
1954
1954
|
if (l !== null || u !== void 0) {
|
|
1955
1955
|
var Z = [];
|
|
1956
1956
|
if (u !== void 0)
|
|
1957
|
-
for (
|
|
1957
|
+
for (p of u) p.f & 8192 || Z.push(p);
|
|
1958
1958
|
for (; l !== null; )
|
|
1959
1959
|
!(l.f & 8192) && l !== e.fallback && Z.push(l), l = Et(l.next);
|
|
1960
1960
|
var H = Z.length;
|
|
1961
1961
|
if (H > 0) {
|
|
1962
|
-
var
|
|
1962
|
+
var Wt = i & 4 && s === 0 ? r : null;
|
|
1963
1963
|
if (n) {
|
|
1964
1964
|
for (b = 0; b < H; b += 1) Z[b].nodes?.a?.measure();
|
|
1965
1965
|
for (b = 0; b < H; b += 1) Z[b].nodes?.a?.fix();
|
|
1966
1966
|
}
|
|
1967
|
-
|
|
1967
|
+
wa(e, Z, Wt);
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
n && Ze(() => {
|
|
1971
|
-
if (
|
|
1972
|
-
for (
|
|
1971
|
+
if (h !== void 0)
|
|
1972
|
+
for (p of h) p.nodes?.a?.apply();
|
|
1973
1973
|
});
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1976
|
-
var l = s & 1 ? s & 16 ? et(r) : /* @__PURE__ */
|
|
1975
|
+
function Sa(e, t, r, i, o, n, s, a) {
|
|
1976
|
+
var l = s & 1 ? s & 16 ? et(r) : /* @__PURE__ */ Ho(r, !1, !1) : null, u = s & 2 ? et(o) : null;
|
|
1977
1977
|
return {
|
|
1978
1978
|
v: l,
|
|
1979
1979
|
i: u,
|
|
@@ -1993,30 +1993,30 @@ function $t(e, t, r) {
|
|
|
1993
1993
|
function xe(e, t, r) {
|
|
1994
1994
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1997
|
-
|
|
1996
|
+
function Ea(e, t) {
|
|
1997
|
+
tn(() => {
|
|
1998
1998
|
var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1999
1999
|
if (!i.querySelector("#" + t.hash)) {
|
|
2000
|
-
const o =
|
|
2000
|
+
const o = hi("style");
|
|
2001
2001
|
o.id = t.hash, o.textContent = t.code, i.appendChild(o);
|
|
2002
2002
|
}
|
|
2003
2003
|
});
|
|
2004
2004
|
}
|
|
2005
|
-
var
|
|
2005
|
+
var Ji = [...`
|
|
2006
2006
|
\r\f \v\uFEFF`];
|
|
2007
|
-
function
|
|
2007
|
+
function Aa(e, t, r) {
|
|
2008
2008
|
var i = e == null ? "" : "" + e;
|
|
2009
2009
|
if (t && (i = i ? i + " " + t : t), r) {
|
|
2010
2010
|
for (var o of Object.keys(r)) if (r[o]) i = i ? i + " " + o : o;
|
|
2011
2011
|
else if (i.length)
|
|
2012
2012
|
for (var n = o.length, s = 0; (s = i.indexOf(o, s)) >= 0; ) {
|
|
2013
2013
|
var a = s + n;
|
|
2014
|
-
(s === 0 ||
|
|
2014
|
+
(s === 0 || Ji.includes(i[s - 1])) && (a === i.length || Ji.includes(i[a])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(a + 1) : s = a;
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
return i === "" ? null : i;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function Xi(e, t = !1) {
|
|
2020
2020
|
var r = t ? " !important;" : ";", i = "";
|
|
2021
2021
|
for (var o of Object.keys(e)) {
|
|
2022
2022
|
var n = e[o];
|
|
@@ -2024,52 +2024,52 @@ function Qi(e, t = !1) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
return i;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function xr(e) {
|
|
2028
2028
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Ia(e, t) {
|
|
2031
2031
|
if (t) {
|
|
2032
2032
|
var r = "", i, o;
|
|
2033
2033
|
if (Array.isArray(t) ? (i = t[0], o = t[1]) : i = t, e) {
|
|
2034
2034
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
2035
2035
|
var n = !1, s = 0, a = !1, l = [];
|
|
2036
|
-
i && l.push(...Object.keys(i).map(
|
|
2037
|
-
var u = 0,
|
|
2036
|
+
i && l.push(...Object.keys(i).map(xr)), o && l.push(...Object.keys(o).map(xr));
|
|
2037
|
+
var u = 0, d = -1;
|
|
2038
2038
|
const w = e.length;
|
|
2039
|
-
for (var
|
|
2040
|
-
var f = e[
|
|
2041
|
-
if (a ? f === "/" && e[
|
|
2042
|
-
if (f === ":" &&
|
|
2043
|
-
else if (f === ";" ||
|
|
2044
|
-
if (
|
|
2045
|
-
var
|
|
2046
|
-
if (!l.includes(
|
|
2047
|
-
f !== ";" &&
|
|
2048
|
-
var
|
|
2049
|
-
r += " " +
|
|
2039
|
+
for (var h = 0; h < w; h++) {
|
|
2040
|
+
var f = e[h];
|
|
2041
|
+
if (a ? f === "/" && e[h - 1] === "*" && (a = !1) : n ? n === f && (n = !1) : f === "/" && e[h + 1] === "*" ? a = !0 : f === '"' || f === "'" ? n = f : f === "(" ? s++ : f === ")" && s--, !a && n === !1 && s === 0) {
|
|
2042
|
+
if (f === ":" && d === -1) d = h;
|
|
2043
|
+
else if (f === ";" || h === w - 1) {
|
|
2044
|
+
if (d !== -1) {
|
|
2045
|
+
var v = xr(e.substring(u, d).trim());
|
|
2046
|
+
if (!l.includes(v)) {
|
|
2047
|
+
f !== ";" && h++;
|
|
2048
|
+
var m = e.substring(u, h).trim();
|
|
2049
|
+
r += " " + m + ";";
|
|
2050
2050
|
}
|
|
2051
2051
|
}
|
|
2052
|
-
u =
|
|
2052
|
+
u = h + 1, d = -1;
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
|
-
return i && (r +=
|
|
2057
|
+
return i && (r += Xi(i)), o && (r += Xi(o, !0)), r = r.trim(), r === "" ? null : r;
|
|
2058
2058
|
}
|
|
2059
2059
|
return e == null ? null : String(e);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function $a(e, t, r, i, o, n) {
|
|
2062
2062
|
var s = e.__className;
|
|
2063
|
-
if (
|
|
2064
|
-
var a =
|
|
2065
|
-
(!
|
|
2063
|
+
if (O || s !== r || s === void 0) {
|
|
2064
|
+
var a = Aa(r, i, n);
|
|
2065
|
+
(!O || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
2066
2066
|
} else if (n && o !== n) for (var l in n) {
|
|
2067
2067
|
var u = !!n[l];
|
|
2068
2068
|
(o == null || u !== !!o[l]) && e.classList.toggle(l, u);
|
|
2069
2069
|
}
|
|
2070
2070
|
return n;
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Dr(e, t = {}, r, i) {
|
|
2073
2073
|
for (var o in r) {
|
|
2074
2074
|
var n = r[o];
|
|
2075
2075
|
t[o] !== n && (r[o] == null ? e.style.removeProperty(o) : e.style.setProperty(o, n, i));
|
|
@@ -2077,126 +2077,126 @@ function xr(e, t = {}, r, i) {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
function nt(e, t, r, i) {
|
|
2079
2079
|
var o = e.__style;
|
|
2080
|
-
if (
|
|
2081
|
-
var n =
|
|
2082
|
-
(!
|
|
2083
|
-
} else i && (Array.isArray(i) ? (
|
|
2080
|
+
if (O || o !== t) {
|
|
2081
|
+
var n = Ia(t, i);
|
|
2082
|
+
(!O || n !== e.getAttribute("style")) && (n == null ? e.removeAttribute("style") : e.style.cssText = n), e.__style = t;
|
|
2083
|
+
} else i && (Array.isArray(i) ? (Dr(e, r?.[0], i[0]), Dr(e, r?.[1], i[1], "important")) : Dr(e, r, i));
|
|
2084
2084
|
return i;
|
|
2085
2085
|
}
|
|
2086
|
-
var
|
|
2087
|
-
function
|
|
2088
|
-
var o =
|
|
2089
|
-
if (
|
|
2086
|
+
var Oa = Symbol("is custom element"), La = Symbol("is html"), Pa = as ? "link" : "LINK";
|
|
2087
|
+
function Nr(e, t, r, i) {
|
|
2088
|
+
var o = Ma(e);
|
|
2089
|
+
if (O && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Pa)) {
|
|
2090
2090
|
i || void 0;
|
|
2091
2091
|
return;
|
|
2092
2092
|
}
|
|
2093
|
-
o[t] !== (o[t] = r) && (t === "loading" && (e[
|
|
2093
|
+
o[t] !== (o[t] = r) && (t === "loading" && (e[ns] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ra(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Ma(e) {
|
|
2096
2096
|
return e.__attributes ?? (e.__attributes = {
|
|
2097
|
-
[
|
|
2098
|
-
[
|
|
2097
|
+
[Oa]: e.nodeName.includes("-"),
|
|
2098
|
+
[La]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
|
-
var
|
|
2102
|
-
function
|
|
2103
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2101
|
+
var Zi = /* @__PURE__ */ new Map();
|
|
2102
|
+
function Ra(e) {
|
|
2103
|
+
var t = e.getAttribute("is") || e.nodeName, r = Zi.get(t);
|
|
2104
2104
|
if (r) return r;
|
|
2105
|
-
|
|
2105
|
+
Zi.set(t, r = []);
|
|
2106
2106
|
for (var i, o = e, n = Element.prototype; n !== o; ) {
|
|
2107
|
-
i =
|
|
2107
|
+
i = Jn(o);
|
|
2108
2108
|
for (var s in i) i[s].set && r.push(s);
|
|
2109
|
-
o =
|
|
2109
|
+
o = _o(o);
|
|
2110
2110
|
}
|
|
2111
2111
|
return r;
|
|
2112
2112
|
}
|
|
2113
|
-
var
|
|
2113
|
+
var _n, ft = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakSet(), bn = class {
|
|
2114
2114
|
constructor(e) {
|
|
2115
|
-
|
|
2115
|
+
li(this, eo), E(this, ft, /* @__PURE__ */ new WeakMap()), E(this, lr, void 0), E(this, Vr, void 0), T(Vr, this, e);
|
|
2116
2116
|
}
|
|
2117
2117
|
observe(e, t) {
|
|
2118
2118
|
var r = c(ft, this).get(e) || /* @__PURE__ */ new Set();
|
|
2119
|
-
return r.add(t), c(ft, this).set(e, r), C(
|
|
2119
|
+
return r.add(t), c(ft, this).set(e, r), C(eo, this, Ca).call(this).observe(e, c(Vr, this)), () => {
|
|
2120
2120
|
var i = c(ft, this).get(e);
|
|
2121
2121
|
i.delete(t), i.size === 0 && (c(ft, this).delete(e), c(lr, this).unobserve(e));
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
|
|
2126
|
-
function
|
|
2125
|
+
_n = bn;
|
|
2126
|
+
function Ca() {
|
|
2127
2127
|
return c(lr, this) ?? T(lr, this, new ResizeObserver((e) => {
|
|
2128
2128
|
for (var t of e) {
|
|
2129
|
-
|
|
2129
|
+
_n.entries.set(t.target, t);
|
|
2130
2130
|
for (var r of c(ft, this).get(t.target) || []) r(t);
|
|
2131
2131
|
}
|
|
2132
2132
|
}));
|
|
2133
2133
|
}
|
|
2134
|
-
|
|
2135
|
-
function
|
|
2136
|
-
return e === t || e?.[
|
|
2134
|
+
g(bn, "entries", /* @__PURE__ */ new WeakMap());
|
|
2135
|
+
function to(e, t) {
|
|
2136
|
+
return e === t || e?.[Lt] === t;
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2139
|
-
var o = x.r, n =
|
|
2140
|
-
return
|
|
2138
|
+
function xa(e = {}, t, r, i) {
|
|
2139
|
+
var o = x.r, n = A;
|
|
2140
|
+
return tn(() => {
|
|
2141
2141
|
var s, a;
|
|
2142
|
-
return
|
|
2143
|
-
s = a, a = i?.() || [],
|
|
2144
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2142
|
+
return gi(() => {
|
|
2143
|
+
s = a, a = i?.() || [], pr(() => {
|
|
2144
|
+
e !== r(...a) && (t(e, ...a), s && to(r(...s), e) && t(null, ...s));
|
|
2145
2145
|
});
|
|
2146
2146
|
}), () => {
|
|
2147
2147
|
let l = n;
|
|
2148
2148
|
for (; l !== o && l.parent !== null && l.parent.f & 33554432; ) l = l.parent;
|
|
2149
2149
|
const u = () => {
|
|
2150
|
-
a &&
|
|
2151
|
-
},
|
|
2150
|
+
a && to(r(...a), e) && t(null, ...a);
|
|
2151
|
+
}, d = l.teardown;
|
|
2152
2152
|
l.teardown = () => {
|
|
2153
|
-
u(),
|
|
2153
|
+
u(), d?.();
|
|
2154
2154
|
};
|
|
2155
2155
|
};
|
|
2156
2156
|
}), e;
|
|
2157
2157
|
}
|
|
2158
2158
|
function Yt(e, t, r, i) {
|
|
2159
|
-
var o = !Nt || (r & 2) !== 0, n = (r & 8) !== 0, s = (r & 16) !== 0, a = i, l = !0, u = () => (l && (l = !1, a = s ?
|
|
2160
|
-
let
|
|
2159
|
+
var o = !Nt || (r & 2) !== 0, n = (r & 8) !== 0, s = (r & 16) !== 0, a = i, l = !0, u = () => (l && (l = !1, a = s ? pr(i) : i), a);
|
|
2160
|
+
let d;
|
|
2161
2161
|
if (n) {
|
|
2162
|
-
var
|
|
2163
|
-
|
|
2162
|
+
var h = Lt in e || yo in e;
|
|
2163
|
+
d = Ke(e, t)?.set ?? (h && t in e ? (S) => e[t] = S : void 0);
|
|
2164
2164
|
}
|
|
2165
|
-
var f,
|
|
2166
|
-
n ? [f,
|
|
2167
|
-
var
|
|
2168
|
-
if (o ?
|
|
2165
|
+
var f, v = !1;
|
|
2166
|
+
n ? [f, v] = Is(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = u(), d && (o && gs(t), d(f)));
|
|
2167
|
+
var m;
|
|
2168
|
+
if (o ? m = () => {
|
|
2169
2169
|
var S = e[t];
|
|
2170
2170
|
return S === void 0 ? u() : (l = !0, S);
|
|
2171
|
-
} :
|
|
2171
|
+
} : m = () => {
|
|
2172
2172
|
var S = e[t];
|
|
2173
2173
|
return S !== void 0 && (a = void 0), S === void 0 ? a : S;
|
|
2174
|
-
}, o && !(r & 4)) return
|
|
2175
|
-
if (
|
|
2174
|
+
}, o && !(r & 4)) return m;
|
|
2175
|
+
if (d) {
|
|
2176
2176
|
var w = e.$$legacy;
|
|
2177
|
-
return function(S,
|
|
2178
|
-
return arguments.length > 0 ? ((!o || !
|
|
2177
|
+
return function(S, L) {
|
|
2178
|
+
return arguments.length > 0 ? ((!o || !L || w || v) && d(L ? m() : S), S) : m();
|
|
2179
2179
|
};
|
|
2180
2180
|
}
|
|
2181
|
-
var
|
|
2181
|
+
var p = !1, b = (r & 1 ? hr : fi)(() => (p = !1, m()));
|
|
2182
2182
|
n && _(b);
|
|
2183
|
-
var
|
|
2184
|
-
return function(S,
|
|
2183
|
+
var R = A;
|
|
2184
|
+
return function(S, L) {
|
|
2185
2185
|
if (arguments.length > 0) {
|
|
2186
|
-
const U =
|
|
2187
|
-
return V(b, U),
|
|
2186
|
+
const U = L ? _(b) : o && n ? dt(S) : S;
|
|
2187
|
+
return V(b, U), p = !0, a !== void 0 && (a = U), S;
|
|
2188
2188
|
}
|
|
2189
|
-
return
|
|
2189
|
+
return Be && p || R.f & 16384 ? b.v : _(b);
|
|
2190
2190
|
};
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return new
|
|
2192
|
+
function Da(e) {
|
|
2193
|
+
return new Na(e);
|
|
2194
2194
|
}
|
|
2195
|
-
var
|
|
2195
|
+
var Fe = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Na = class {
|
|
2196
2196
|
constructor(e) {
|
|
2197
|
-
E(this,
|
|
2197
|
+
E(this, Fe, void 0), E(this, ge, void 0);
|
|
2198
2198
|
var t = /* @__PURE__ */ new Map(), r = (o, n) => {
|
|
2199
|
-
var s = /* @__PURE__ */
|
|
2199
|
+
var s = /* @__PURE__ */ Ho(n, !1, !1);
|
|
2200
2200
|
return t.set(o, s), s;
|
|
2201
2201
|
};
|
|
2202
2202
|
const i = new Proxy({
|
|
@@ -2207,13 +2207,13 @@ var ze = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ma =
|
|
|
2207
2207
|
return _(t.get(n) ?? r(n, Reflect.get(o, n)));
|
|
2208
2208
|
},
|
|
2209
2209
|
has(o, n) {
|
|
2210
|
-
return n ===
|
|
2210
|
+
return n === yo ? !0 : (_(t.get(n) ?? r(n, Reflect.get(o, n))), Reflect.has(o, n));
|
|
2211
2211
|
},
|
|
2212
2212
|
set(o, n, s) {
|
|
2213
2213
|
return V(t.get(n) ?? r(n, s), s), Reflect.set(o, n, s);
|
|
2214
2214
|
}
|
|
2215
2215
|
});
|
|
2216
|
-
T(
|
|
2216
|
+
T(ge, this, (e.hydrate ? ga : gn)(e.component, {
|
|
2217
2217
|
target: e.target,
|
|
2218
2218
|
anchor: e.anchor,
|
|
2219
2219
|
props: i,
|
|
@@ -2221,40 +2221,40 @@ var ze = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ma =
|
|
|
2221
2221
|
intro: e.intro ?? !1,
|
|
2222
2222
|
recover: e.recover,
|
|
2223
2223
|
transformError: e.transformError
|
|
2224
|
-
})), !
|
|
2225
|
-
for (const o of Object.keys(c(
|
|
2224
|
+
})), !We && (!e?.props?.$$host || e.sync === !1) && It(), T(Fe, this, i.$$events);
|
|
2225
|
+
for (const o of Object.keys(c(ge, this)))
|
|
2226
2226
|
o === "$set" || o === "$destroy" || o === "$on" || rr(this, o, {
|
|
2227
2227
|
get() {
|
|
2228
|
-
return c(
|
|
2228
|
+
return c(ge, this)[o];
|
|
2229
2229
|
},
|
|
2230
2230
|
set(n) {
|
|
2231
|
-
c(
|
|
2231
|
+
c(ge, this)[o] = n;
|
|
2232
2232
|
},
|
|
2233
2233
|
enumerable: !0
|
|
2234
2234
|
});
|
|
2235
|
-
c(
|
|
2235
|
+
c(ge, this).$set = (o) => {
|
|
2236
2236
|
Object.assign(i, o);
|
|
2237
|
-
}, c(
|
|
2238
|
-
|
|
2237
|
+
}, c(ge, this).$destroy = () => {
|
|
2238
|
+
ma(c(ge, this));
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
2241
|
$set(e) {
|
|
2242
|
-
c(
|
|
2242
|
+
c(ge, this).$set(e);
|
|
2243
2243
|
}
|
|
2244
2244
|
$on(e, t) {
|
|
2245
|
-
c(
|
|
2245
|
+
c(Fe, this)[e] = c(Fe, this)[e] || [];
|
|
2246
2246
|
const r = (...i) => t.call(this, ...i);
|
|
2247
|
-
return c(
|
|
2248
|
-
c(
|
|
2247
|
+
return c(Fe, this)[e].push(r), () => {
|
|
2248
|
+
c(Fe, this)[e] = c(Fe, this)[e].filter((i) => i !== r);
|
|
2249
2249
|
};
|
|
2250
2250
|
}
|
|
2251
2251
|
$destroy() {
|
|
2252
|
-
c(
|
|
2252
|
+
c(ge, this).$destroy();
|
|
2253
2253
|
}
|
|
2254
|
-
},
|
|
2255
|
-
typeof HTMLElement == "function" && (
|
|
2254
|
+
}, yn;
|
|
2255
|
+
typeof HTMLElement == "function" && (yn = class extends HTMLElement {
|
|
2256
2256
|
constructor(e, t, r) {
|
|
2257
|
-
super(),
|
|
2257
|
+
super(), g(this, "$$ctor", void 0), g(this, "$$s", void 0), g(this, "$$c", void 0), g(this, "$$cn", !1), g(this, "$$d", {}), g(this, "$$r", !1), g(this, "$$p_d", {}), g(this, "$$l", {}), g(this, "$$l_u", /* @__PURE__ */ new Map()), g(this, "$$me", void 0), g(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2258
2258
|
}
|
|
2259
2259
|
addEventListener(e, t, r) {
|
|
2260
2260
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2273,19 +2273,19 @@ typeof HTMLElement == "function" && (gn = class extends HTMLElement {
|
|
|
2273
2273
|
if (this.$$cn = !0, !this.$$c) {
|
|
2274
2274
|
let e = function(i) {
|
|
2275
2275
|
return (o) => {
|
|
2276
|
-
const n =
|
|
2276
|
+
const n = hi("slot");
|
|
2277
2277
|
i !== "default" && (n.name = i), ut(o, n);
|
|
2278
2278
|
};
|
|
2279
2279
|
};
|
|
2280
2280
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2281
|
-
const t = {}, r =
|
|
2281
|
+
const t = {}, r = Va(this);
|
|
2282
2282
|
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));
|
|
2283
2283
|
for (const i of this.attributes) {
|
|
2284
2284
|
const o = this.$$g_p(i.name);
|
|
2285
2285
|
o in this.$$d || (this.$$d[o] = Xt(o, i.value, this.$$p_d, "toProp"));
|
|
2286
2286
|
}
|
|
2287
2287
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2288
|
-
this.$$c =
|
|
2288
|
+
this.$$c = Da({
|
|
2289
2289
|
component: this.$$ctor,
|
|
2290
2290
|
target: this.$$shadowRoot || this,
|
|
2291
2291
|
props: {
|
|
@@ -2293,8 +2293,8 @@ typeof HTMLElement == "function" && (gn = class extends HTMLElement {
|
|
|
2293
2293
|
$$slots: t,
|
|
2294
2294
|
$$host: this
|
|
2295
2295
|
}
|
|
2296
|
-
}), this.$$me =
|
|
2297
|
-
|
|
2296
|
+
}), this.$$me = Xs(() => {
|
|
2297
|
+
gi(() => {
|
|
2298
2298
|
this.$$r = !0;
|
|
2299
2299
|
for (const i of tr(this.$$c)) {
|
|
2300
2300
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
@@ -2350,14 +2350,14 @@ function Xt(e, t, r, i) {
|
|
|
2350
2350
|
return t;
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Va(e) {
|
|
2354
2354
|
const t = {};
|
|
2355
2355
|
return e.childNodes.forEach((r) => {
|
|
2356
2356
|
t[r.slot || "default"] = !0;
|
|
2357
2357
|
}), t;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2360
|
-
let s = class extends
|
|
2359
|
+
function ja(e, t, r, i, o, n) {
|
|
2360
|
+
let s = class extends yn {
|
|
2361
2361
|
constructor() {
|
|
2362
2362
|
super(e, r, o), this.$$p_d = t;
|
|
2363
2363
|
}
|
|
@@ -2382,16 +2382,16 @@ function xa(e, t, r, i, o, n) {
|
|
|
2382
2382
|
} });
|
|
2383
2383
|
}), n && (s = n(s)), e.element = s, s;
|
|
2384
2384
|
}
|
|
2385
|
-
var
|
|
2385
|
+
var Wa = class extends Event {
|
|
2386
2386
|
constructor(e, t, r, i) {
|
|
2387
2387
|
super("context-request", {
|
|
2388
2388
|
bubbles: !0,
|
|
2389
2389
|
composed: !0
|
|
2390
|
-
}),
|
|
2390
|
+
}), g(this, "context", void 0), g(this, "contextTarget", void 0), g(this, "callback", void 0), g(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
2391
2391
|
}
|
|
2392
|
-
},
|
|
2392
|
+
}, Ba = class {
|
|
2393
2393
|
constructor(e, t) {
|
|
2394
|
-
|
|
2394
|
+
g(this, "host", void 0), g(this, "context", void 0), g(this, "subscribe", void 0), g(this, "onValue", void 0), g(this, "isConnected", !1), g(this, "unsubscribe", void 0), g(this, "currentValue", void 0), g(this, "handleValue", (r, i) => {
|
|
2395
2395
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
2396
2396
|
}), this.host = e, this.context = t.context, this.subscribe = t.subscribe ?? !0, this.onValue = t.onValue;
|
|
2397
2397
|
}
|
|
@@ -2405,12 +2405,12 @@ var Da = class extends Event {
|
|
|
2405
2405
|
return this.currentValue;
|
|
2406
2406
|
}
|
|
2407
2407
|
requestValue() {
|
|
2408
|
-
this.host.dispatchEvent(new
|
|
2408
|
+
this.host.dispatchEvent(new Wa(this.context, this.host, this.handleValue, this.subscribe));
|
|
2409
2409
|
}
|
|
2410
|
-
},
|
|
2411
|
-
function
|
|
2410
|
+
}, vr = (e) => e, qa = vr(Symbol.for("pie.assessmentToolkit.runtimeContext")), Tc = vr(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Sc = vr(Symbol.for("pie.assessmentToolkit.shellContext")), Ec = vr(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2411
|
+
function za(e, t, r) {
|
|
2412
2412
|
let i = !1;
|
|
2413
|
-
const o = new
|
|
2413
|
+
const o = new Ba(e, {
|
|
2414
2414
|
context: t,
|
|
2415
2415
|
subscribe: !0,
|
|
2416
2416
|
onValue: (u) => {
|
|
@@ -2434,42 +2434,42 @@ function ja(e, t, r) {
|
|
|
2434
2434
|
globalThis.clearInterval(l), e.removeEventListener("context-provider", n), o.disconnect();
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2438
|
-
return
|
|
2437
|
+
function Fa(e, t) {
|
|
2438
|
+
return za(e, qa, t);
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2441
|
-
return
|
|
2440
|
+
function Ua(e, t) {
|
|
2441
|
+
return Fa(e, t);
|
|
2442
2442
|
}
|
|
2443
|
-
var
|
|
2443
|
+
var ro;
|
|
2444
2444
|
(function(e) {
|
|
2445
2445
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2446
|
-
})(
|
|
2447
|
-
var
|
|
2446
|
+
})(ro || (ro = {}));
|
|
2447
|
+
var io;
|
|
2448
2448
|
(function(e) {
|
|
2449
2449
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2450
|
-
})(
|
|
2451
|
-
function
|
|
2450
|
+
})(io || (io = {}));
|
|
2451
|
+
function wn(e) {
|
|
2452
2452
|
return (...t) => {
|
|
2453
2453
|
console.debug(`[${e}]`, ...t);
|
|
2454
2454
|
};
|
|
2455
2455
|
}
|
|
2456
|
-
var
|
|
2456
|
+
var Ac = wn("I18nService"), jr = {
|
|
2457
2457
|
assessment: [],
|
|
2458
2458
|
section: [],
|
|
2459
2459
|
item: [],
|
|
2460
2460
|
passage: [],
|
|
2461
2461
|
rubric: [],
|
|
2462
2462
|
element: []
|
|
2463
|
-
},
|
|
2464
|
-
section: [...
|
|
2465
|
-
item: [...
|
|
2466
|
-
passage: [...
|
|
2463
|
+
}, Ic = {
|
|
2464
|
+
section: [...jr.section],
|
|
2465
|
+
item: [...jr.item],
|
|
2466
|
+
passage: [...jr.passage]
|
|
2467
2467
|
};
|
|
2468
|
-
function
|
|
2468
|
+
function Ha(e) {
|
|
2469
2469
|
const t = e.trim();
|
|
2470
2470
|
return t || "";
|
|
2471
2471
|
}
|
|
2472
|
-
var
|
|
2472
|
+
var Ga = [
|
|
2473
2473
|
"assessment",
|
|
2474
2474
|
"section",
|
|
2475
2475
|
"item",
|
|
@@ -2480,10 +2480,10 @@ var Fa = [
|
|
|
2480
2480
|
function Zt(e, t) {
|
|
2481
2481
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function oo(e) {
|
|
2484
2484
|
if (Zt(e.toolId, "toolId"), Zt(e.name, "name"), Zt(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.`);
|
|
2485
2485
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2486
|
-
const t = e.supportedLevels.find((r) => !
|
|
2486
|
+
const t = e.supportedLevels.find((r) => !Ga.includes(r));
|
|
2487
2487
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2488
2488
|
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)}".`);
|
|
2489
2489
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2492,23 +2492,23 @@ function ro(e) {
|
|
|
2492
2492
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2493
2493
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2494
2494
|
}
|
|
2495
|
-
var
|
|
2495
|
+
var Ka = class {
|
|
2496
2496
|
constructor() {
|
|
2497
|
-
|
|
2497
|
+
g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2498
2498
|
}
|
|
2499
2499
|
normalizeToolId(e) {
|
|
2500
|
-
return
|
|
2500
|
+
return Ha(e);
|
|
2501
2501
|
}
|
|
2502
2502
|
normalizeToolIds(e) {
|
|
2503
2503
|
return e.map((t) => this.normalizeToolId(t));
|
|
2504
2504
|
}
|
|
2505
2505
|
register(e) {
|
|
2506
|
-
if (
|
|
2506
|
+
if (oo(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2507
2507
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2508
2508
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2509
2509
|
}
|
|
2510
2510
|
override(e) {
|
|
2511
|
-
if (
|
|
2511
|
+
if (oo(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2512
2512
|
const t = this.tools.get(e.toolId);
|
|
2513
2513
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2514
2514
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2635,20 +2635,20 @@ var za = class {
|
|
|
2635
2635
|
return i.renderToolbar(t, o);
|
|
2636
2636
|
}
|
|
2637
2637
|
};
|
|
2638
|
-
function
|
|
2638
|
+
function kn(e) {
|
|
2639
2639
|
return e.level === "item";
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function Ya(e) {
|
|
2642
2642
|
return e.level === "passage";
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function Qa(e) {
|
|
2645
2645
|
return e.level === "rubric";
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function Tn(e) {
|
|
2648
2648
|
return e.level === "element";
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
if (
|
|
2650
|
+
function ki(e) {
|
|
2651
|
+
if (Tn(e)) {
|
|
2652
2652
|
const t = e.item.config;
|
|
2653
2653
|
if (!t) return "";
|
|
2654
2654
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), o = t.elements?.[e.elementId];
|
|
@@ -2663,7 +2663,7 @@ function yi(e) {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
return r.filter(Boolean).join(" ").trim();
|
|
2665
2665
|
}
|
|
2666
|
-
if (
|
|
2666
|
+
if (kn(e)) {
|
|
2667
2667
|
const t = e.item;
|
|
2668
2668
|
if (!t?.config) return "";
|
|
2669
2669
|
const r = t.config, i = [], o = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2676,13 +2676,13 @@ function yi(e) {
|
|
|
2676
2676
|
if (!(!l || typeof l != "object")) {
|
|
2677
2677
|
for (const u of Object.values(l))
|
|
2678
2678
|
if (typeof u == "string" && i.push(o(u)), Array.isArray(u)) {
|
|
2679
|
-
for (const
|
|
2680
|
-
for (const
|
|
2679
|
+
for (const d of u) if (d && typeof d == "object")
|
|
2680
|
+
for (const h of Object.values(d)) typeof h == "string" && i.push(o(h));
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
return i.filter(Boolean).join(" ").trim();
|
|
2684
2684
|
}
|
|
2685
|
-
if (
|
|
2685
|
+
if (Ya(e)) {
|
|
2686
2686
|
const t = e.passage;
|
|
2687
2687
|
if (!t?.config) return "";
|
|
2688
2688
|
const r = t.config, i = [], o = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2695,20 +2695,20 @@ function yi(e) {
|
|
|
2695
2695
|
if (!(!l || typeof l != "object")) {
|
|
2696
2696
|
for (const u of Object.values(l))
|
|
2697
2697
|
if (typeof u == "string" && i.push(o(u)), Array.isArray(u)) {
|
|
2698
|
-
for (const
|
|
2699
|
-
for (const
|
|
2698
|
+
for (const d of u) if (d && typeof d == "object")
|
|
2699
|
+
for (const h of Object.values(d)) typeof h == "string" && i.push(o(h));
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
return i.filter(Boolean).join(" ").trim();
|
|
2703
2703
|
}
|
|
2704
|
-
if (
|
|
2704
|
+
if (Qa(e)) {
|
|
2705
2705
|
const t = e.rubricBlock;
|
|
2706
2706
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2707
2707
|
}
|
|
2708
2708
|
return "";
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2711
|
-
const t =
|
|
2710
|
+
function gr(e) {
|
|
2711
|
+
const t = ki(e);
|
|
2712
2712
|
return [
|
|
2713
2713
|
/<math[>\s]/i,
|
|
2714
2714
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2718,7 +2718,7 @@ function vr(e) {
|
|
|
2718
2718
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2719
2719
|
].some((r) => r.test(t));
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Ja(e) {
|
|
2722
2722
|
const t = [
|
|
2723
2723
|
"pie-multiple-choice",
|
|
2724
2724
|
"pie-inline-choice",
|
|
@@ -2727,7 +2727,7 @@ function Ga(e) {
|
|
|
2727
2727
|
"inline-choice",
|
|
2728
2728
|
"select-text"
|
|
2729
2729
|
];
|
|
2730
|
-
if (
|
|
2730
|
+
if (Tn(e)) {
|
|
2731
2731
|
const r = e.item.config;
|
|
2732
2732
|
if (!r?.models) return !1;
|
|
2733
2733
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((n) => n && typeof n == "object" && n.id === e.elementId);
|
|
@@ -2735,7 +2735,7 @@ function Ga(e) {
|
|
|
2735
2735
|
const o = i.element || "";
|
|
2736
2736
|
return t.includes(o);
|
|
2737
2737
|
}
|
|
2738
|
-
if (
|
|
2738
|
+
if (kn(e)) {
|
|
2739
2739
|
const r = e.item.config?.models;
|
|
2740
2740
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2741
2741
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2746,10 +2746,10 @@ function Ga(e) {
|
|
|
2746
2746
|
return !1;
|
|
2747
2747
|
}
|
|
2748
2748
|
function mr(e) {
|
|
2749
|
-
return
|
|
2749
|
+
return ki(e).trim().length >= 10;
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2752
|
-
const t =
|
|
2751
|
+
function Xa(e) {
|
|
2752
|
+
const t = ki(e);
|
|
2753
2753
|
return [
|
|
2754
2754
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2755
2755
|
/periodic\s+table/i,
|
|
@@ -2759,25 +2759,25 @@ function Ka(e) {
|
|
|
2759
2759
|
/physics|force|energy|velocity|acceleration/i
|
|
2760
2760
|
].some((r) => r.test(t));
|
|
2761
2761
|
}
|
|
2762
|
-
var
|
|
2762
|
+
var Za = [
|
|
2763
2763
|
"assessment",
|
|
2764
2764
|
"section",
|
|
2765
2765
|
"item",
|
|
2766
2766
|
"passage",
|
|
2767
2767
|
"rubric"
|
|
2768
|
-
],
|
|
2769
|
-
function
|
|
2770
|
-
return
|
|
2768
|
+
], el = new Set(Za);
|
|
2769
|
+
function tl(e) {
|
|
2770
|
+
return el.has(e);
|
|
2771
2771
|
}
|
|
2772
|
-
function
|
|
2772
|
+
function Ti(e, t, r) {
|
|
2773
2773
|
const i = e.trim(), o = r.trim();
|
|
2774
2774
|
if (!i || !o) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2775
|
-
if (!
|
|
2775
|
+
if (!tl(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2776
2776
|
return `${i}:${t}:${o}`;
|
|
2777
2777
|
}
|
|
2778
|
-
var
|
|
2778
|
+
var rl = class {
|
|
2779
2779
|
constructor() {
|
|
2780
|
-
|
|
2780
|
+
g(this, "providerId", "desmos-calculator"), g(this, "providerName", "Desmos Calculator"), g(this, "category", "calculator"), g(this, "version", "1.10"), g(this, "requiresAuth", !0), g(this, "desmosProvider", null), g(this, "config", null);
|
|
2781
2781
|
}
|
|
2782
2782
|
async emitTelemetry(e, t) {
|
|
2783
2783
|
try {
|
|
@@ -2850,7 +2850,7 @@ var Xa = class {
|
|
|
2850
2850
|
destroy() {
|
|
2851
2851
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2852
2852
|
}
|
|
2853
|
-
},
|
|
2853
|
+
}, il = (e, t) => {
|
|
2854
2854
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2855
2855
|
try {
|
|
2856
2856
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2877,14 +2877,14 @@ var Xa = class {
|
|
|
2877
2877
|
text: e,
|
|
2878
2878
|
offset: 0
|
|
2879
2879
|
}];
|
|
2880
|
-
},
|
|
2880
|
+
}, ol = class {
|
|
2881
2881
|
constructor() {
|
|
2882
|
-
|
|
2882
|
+
g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
|
|
2883
2883
|
}
|
|
2884
2884
|
async initialize(e) {
|
|
2885
2885
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2886
2886
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2887
|
-
return new
|
|
2887
|
+
return new nl(e);
|
|
2888
2888
|
}
|
|
2889
2889
|
supportsFeature(e) {
|
|
2890
2890
|
return !0;
|
|
@@ -2901,9 +2901,9 @@ var Xa = class {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
destroy() {
|
|
2903
2903
|
}
|
|
2904
|
-
},
|
|
2904
|
+
}, nl = class {
|
|
2905
2905
|
constructor(e) {
|
|
2906
|
-
|
|
2906
|
+
g(this, "utterance", null), g(this, "config", null), g(this, "_isPlaying", !1), g(this, "_isPaused", !1), g(this, "speakRunId", 0), g(this, "onWordBoundary", void 0), this.config = e;
|
|
2907
2907
|
}
|
|
2908
2908
|
async speak(e) {
|
|
2909
2909
|
if (!this.config) throw new Error("TTS not initialized");
|
|
@@ -2944,8 +2944,8 @@ var Xa = class {
|
|
|
2944
2944
|
o = a, n = u;
|
|
2945
2945
|
continue;
|
|
2946
2946
|
}
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2947
|
+
const d = `${o} ${a}`;
|
|
2948
|
+
d.length <= 260 ? o = d : (i.push({
|
|
2949
2949
|
text: o,
|
|
2950
2950
|
offset: n
|
|
2951
2951
|
}), o = a, n = u);
|
|
@@ -2971,7 +2971,7 @@ var Xa = class {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
segmentSentences(e) {
|
|
2973
2973
|
const t = this.getSegmentationPolicy();
|
|
2974
|
-
return
|
|
2974
|
+
return il(e, {
|
|
2975
2975
|
locale: t.locale,
|
|
2976
2976
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2977
2977
|
});
|
|
@@ -3014,8 +3014,8 @@ var Xa = class {
|
|
|
3014
3014
|
r === this.speakRunId && (this._isPaused = !1);
|
|
3015
3015
|
}, this.utterance.onboundary = (n) => {
|
|
3016
3016
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", n.name, "charIndex:", n.charIndex, "charLength:", n.charLength), n.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
3017
|
-
const s = Math.max(0, Math.min(n.charIndex, Math.max(0, e.length - 1))), a = Number(n.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l,
|
|
3018
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:",
|
|
3017
|
+
const s = Math.max(0, Math.min(n.charIndex, Math.max(0, e.length - 1))), a = Number(n.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l, d = e.substring(s, Math.min(e.length, s + u)).trim(), h = t + s;
|
|
3018
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", h), this.onWordBoundary(d, h, u);
|
|
3019
3019
|
}, speechSynthesis.speak(this.utterance);
|
|
3020
3020
|
});
|
|
3021
3021
|
}
|
|
@@ -3040,7 +3040,7 @@ var Xa = class {
|
|
|
3040
3040
|
...e.providerOptions || {}
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
3043
|
-
},
|
|
3043
|
+
}, sl = class {
|
|
3044
3044
|
async emitTelemetry(e, t) {
|
|
3045
3045
|
try {
|
|
3046
3046
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3049,7 +3049,7 @@ var Xa = class {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
}
|
|
3051
3051
|
constructor(e = "browser") {
|
|
3052
|
-
|
|
3052
|
+
g(this, "providerId", "tts-service"), g(this, "providerName", "Text-to-Speech"), g(this, "category", "tts"), g(this, "version", "1.0"), g(this, "requiresAuth", void 0), g(this, "ttsProvider", null), g(this, "config", null), this.requiresAuth = e !== "browser";
|
|
3053
3053
|
}
|
|
3054
3054
|
async initialize(e) {
|
|
3055
3055
|
if (this.ttsProvider) {
|
|
@@ -3072,7 +3072,7 @@ var Xa = class {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
async _initializeBrowserTTS(e) {
|
|
3074
3074
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3075
|
-
this.ttsProvider = new
|
|
3075
|
+
this.ttsProvider = new ol(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3076
3076
|
}
|
|
3077
3077
|
async _initializeServerTTS(e) {
|
|
3078
3078
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3128,7 +3128,7 @@ var Xa = class {
|
|
|
3128
3128
|
destroy() {
|
|
3129
3129
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3130
3130
|
}
|
|
3131
|
-
},
|
|
3131
|
+
}, al = /* @__PURE__ */ new Set([
|
|
3132
3132
|
"annotation-xml",
|
|
3133
3133
|
"color-profile",
|
|
3134
3134
|
"font-face",
|
|
@@ -3137,16 +3137,16 @@ var Xa = class {
|
|
|
3137
3137
|
"font-face-format",
|
|
3138
3138
|
"font-face-name",
|
|
3139
3139
|
"missing-glyph"
|
|
3140
|
-
]),
|
|
3140
|
+
]), ll = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, cl = (e, t = "custom element tag") => {
|
|
3141
3141
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3142
3142
|
const r = e.trim();
|
|
3143
3143
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3144
3144
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3145
3145
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3146
|
-
if (
|
|
3147
|
-
if (!
|
|
3146
|
+
if (al.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3147
|
+
if (!ll.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3148
3148
|
return r;
|
|
3149
|
-
},
|
|
3149
|
+
}, Sn = {
|
|
3150
3150
|
calculator: "pie-tool-calculator",
|
|
3151
3151
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3152
3152
|
ruler: "pie-tool-ruler",
|
|
@@ -3159,22 +3159,22 @@ var Xa = class {
|
|
|
3159
3159
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3160
3160
|
graph: "pie-tool-graph",
|
|
3161
3161
|
periodicTable: "pie-tool-periodic-table"
|
|
3162
|
-
},
|
|
3163
|
-
const o =
|
|
3162
|
+
}, ul = (e, t) => cl(t?.toolTagMap?.[e] ?? Sn[e] ?? e, `tool component tag for "${e}"`), fl = (e) => document.createElement(e), Te = (e, t, r, i) => {
|
|
3163
|
+
const o = ul(e, i), n = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
3164
3164
|
return n ? n({
|
|
3165
3165
|
toolId: e,
|
|
3166
3166
|
tagName: o,
|
|
3167
3167
|
context: t,
|
|
3168
3168
|
toolbarContext: r
|
|
3169
|
-
}) :
|
|
3170
|
-
},
|
|
3169
|
+
}) : fl(o);
|
|
3170
|
+
}, dl = {
|
|
3171
3171
|
toolId: "calculator",
|
|
3172
3172
|
name: "Calculator",
|
|
3173
3173
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3174
3174
|
icon: "calculator",
|
|
3175
3175
|
provider: {
|
|
3176
3176
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3177
|
-
createProvider: () => new
|
|
3177
|
+
createProvider: () => new rl(),
|
|
3178
3178
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3179
3179
|
getAuthFetcher: (e) => {
|
|
3180
3180
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3197,10 +3197,10 @@ var Xa = class {
|
|
|
3197
3197
|
"scientificCalculator"
|
|
3198
3198
|
],
|
|
3199
3199
|
isVisibleInContext(e) {
|
|
3200
|
-
return
|
|
3200
|
+
return gr(e);
|
|
3201
3201
|
},
|
|
3202
3202
|
renderToolbar(e, t) {
|
|
3203
|
-
const r =
|
|
3203
|
+
const r = Ti(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, o = Te(this.toolId, e, t, i);
|
|
3204
3204
|
o.setAttribute("tool-id", r), o.toolkitCoordinator = t.toolkitCoordinator;
|
|
3205
3205
|
const n = {
|
|
3206
3206
|
toolId: this.toolId,
|
|
@@ -3240,37 +3240,55 @@ var Xa = class {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
};
|
|
3242
3242
|
}
|
|
3243
|
-
},
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3243
|
+
}, hl = /* @__PURE__ */ new Set([
|
|
3244
|
+
"reserved-row",
|
|
3245
|
+
"expanding-row",
|
|
3246
|
+
"floating-overlay",
|
|
3247
|
+
"left-aligned"
|
|
3248
|
+
]), no = (e) => e && typeof e == "object" ? e : {}, pl = (e) => e === "polly" || e === "google" || e === "server", te = (e, t) => e === void 0 ? t : e, cr = (e, t = "left-aligned") => typeof e == "string" && hl.has(e) ? e : t, so = Object.freeze([0.8, 1.25]), Wr = (e) => {
|
|
3249
|
+
if (!Array.isArray(e)) return [...so];
|
|
3250
|
+
if (e.length === 0) return [];
|
|
3251
|
+
const t = /* @__PURE__ */ new Set();
|
|
3252
|
+
for (const r of e) {
|
|
3253
|
+
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
3254
|
+
const i = Math.round(r * 100) / 100;
|
|
3255
|
+
i !== 1 && t.add(i);
|
|
3256
|
+
}
|
|
3257
|
+
return t.size ? Array.from(t) : [...so];
|
|
3258
|
+
}, vl = (e) => {
|
|
3259
|
+
const t = {
|
|
3247
3260
|
...e,
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3261
|
+
layoutMode: cr(e.layoutMode)
|
|
3262
|
+
}, r = e.backend || "browser";
|
|
3263
|
+
if (!pl(r)) return t;
|
|
3264
|
+
const i = {
|
|
3265
|
+
...t,
|
|
3266
|
+
apiEndpoint: te(t.apiEndpoint, "/api/tts"),
|
|
3267
|
+
transportMode: te(t.transportMode, "pie"),
|
|
3268
|
+
endpointValidationMode: te(t.endpointValidationMode, "voices"),
|
|
3269
|
+
validateEndpoint: te(t.validateEndpoint, !0),
|
|
3270
|
+
includeAuthOnAssetFetch: te(t.includeAuthOnAssetFetch, !1),
|
|
3271
|
+
rate: te(t.rate, 1),
|
|
3272
|
+
language: te(t.language, "en-US")
|
|
3255
3273
|
};
|
|
3256
|
-
return
|
|
3257
|
-
...
|
|
3258
|
-
defaultVoice: te(
|
|
3259
|
-
engine: te(
|
|
3260
|
-
format: te(
|
|
3261
|
-
speechMarksMode: te(
|
|
3262
|
-
} :
|
|
3263
|
-
...
|
|
3264
|
-
defaultVoice: te(
|
|
3265
|
-
} :
|
|
3266
|
-
},
|
|
3267
|
-
const t =
|
|
3268
|
-
return
|
|
3274
|
+
return r === "polly" ? {
|
|
3275
|
+
...i,
|
|
3276
|
+
defaultVoice: te(i.defaultVoice, "Joanna"),
|
|
3277
|
+
engine: te(i.engine, "neural"),
|
|
3278
|
+
format: te(i.format, "mp3"),
|
|
3279
|
+
speechMarksMode: te(i.speechMarksMode, "word+sentence")
|
|
3280
|
+
} : r === "google" ? {
|
|
3281
|
+
...i,
|
|
3282
|
+
defaultVoice: te(i.defaultVoice, "en-US-Wavenet-A")
|
|
3283
|
+
} : i;
|
|
3284
|
+
}, Br = (e) => {
|
|
3285
|
+
const t = no(e), r = no(e?.settings);
|
|
3286
|
+
return vl({
|
|
3269
3287
|
...t,
|
|
3270
3288
|
...r
|
|
3271
3289
|
});
|
|
3272
|
-
},
|
|
3273
|
-
const t =
|
|
3290
|
+
}, Jr = (e) => e.backend || "browser", En = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, An = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), gl = (e) => {
|
|
3291
|
+
const t = Jr(e), r = En(e, t), i = An(e, r);
|
|
3274
3292
|
return {
|
|
3275
3293
|
voice: e.defaultVoice,
|
|
3276
3294
|
rate: e.rate,
|
|
@@ -3294,45 +3312,63 @@ var Xa = class {
|
|
|
3294
3312
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3295
3313
|
validateEndpoint: e.validateEndpoint
|
|
3296
3314
|
};
|
|
3297
|
-
},
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3315
|
+
}, In = (e) => cr(e.layoutMode), ml = (e) => {
|
|
3316
|
+
switch (In(e)) {
|
|
3317
|
+
case "reserved-row":
|
|
3318
|
+
return {
|
|
3319
|
+
mount: "before-buttons",
|
|
3320
|
+
controlsRow: {
|
|
3321
|
+
reserveSpace: !0,
|
|
3322
|
+
expandWhenToolActive: !1
|
|
3323
|
+
}
|
|
3324
|
+
};
|
|
3325
|
+
case "expanding-row":
|
|
3326
|
+
return {
|
|
3327
|
+
mount: "before-buttons",
|
|
3328
|
+
controlsRow: {
|
|
3329
|
+
reserveSpace: !1,
|
|
3330
|
+
expandWhenToolActive: !0
|
|
3331
|
+
}
|
|
3332
|
+
};
|
|
3333
|
+
default:
|
|
3334
|
+
return {
|
|
3335
|
+
mount: "before-buttons",
|
|
3336
|
+
controlsRow: {
|
|
3337
|
+
reserveSpace: !1,
|
|
3338
|
+
expandWhenToolActive: !1
|
|
3339
|
+
}
|
|
3340
|
+
};
|
|
3305
3341
|
}
|
|
3306
|
-
|
|
3307
|
-
}, pl = {
|
|
3342
|
+
}, At = /* @__PURE__ */ new Map(), _l = "__pieToolElementUnmount", ao = "pie-tool-active-change", bl = {
|
|
3308
3343
|
toolId: "textToSpeech",
|
|
3309
3344
|
name: "Text to Speech",
|
|
3310
3345
|
description: "Read content aloud",
|
|
3311
3346
|
icon: "volume-up",
|
|
3312
3347
|
provider: {
|
|
3313
3348
|
getProviderId: () => "tts",
|
|
3314
|
-
createProvider: (e) => new
|
|
3349
|
+
createProvider: (e) => new sl(Jr(Br(e))),
|
|
3315
3350
|
getInitConfig: (e) => {
|
|
3316
|
-
const t =
|
|
3351
|
+
const t = Br(e), r = Jr(t), i = En(t, r);
|
|
3317
3352
|
return {
|
|
3318
3353
|
backend: r,
|
|
3319
3354
|
serverProvider: i,
|
|
3320
|
-
transportMode:
|
|
3321
|
-
...
|
|
3355
|
+
transportMode: An(t, i),
|
|
3356
|
+
...gl(t)
|
|
3322
3357
|
};
|
|
3323
3358
|
},
|
|
3324
3359
|
getAuthFetcher: (e) => {
|
|
3325
3360
|
const t = e?.provider?.runtime?.authFetcher;
|
|
3326
3361
|
return typeof t == "function" ? t : void 0;
|
|
3327
3362
|
},
|
|
3363
|
+
sanitizeConfig: (e) => {
|
|
3364
|
+
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
3365
|
+
t && "layoutMode" in t && (t.layoutMode = cr(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Wr(t.speedOptions));
|
|
3366
|
+
const r = { ...e };
|
|
3367
|
+
return "layoutMode" in r && (r.layoutMode = cr(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Wr(r.speedOptions)), t && (r.settings = t), r;
|
|
3368
|
+
},
|
|
3328
3369
|
lazy: !0
|
|
3329
3370
|
},
|
|
3330
|
-
supportedLevels: [
|
|
3331
|
-
"section",
|
|
3332
|
-
"item",
|
|
3333
|
-
"passage",
|
|
3334
|
-
"rubric"
|
|
3335
|
-
],
|
|
3371
|
+
supportedLevels: ["item", "passage"],
|
|
3336
3372
|
pnpSupportIds: [
|
|
3337
3373
|
"textToSpeech",
|
|
3338
3374
|
"readAloud",
|
|
@@ -3343,31 +3379,44 @@ var Xa = class {
|
|
|
3343
3379
|
return mr(e);
|
|
3344
3380
|
},
|
|
3345
3381
|
renderToolbar(e, t) {
|
|
3346
|
-
const r = () =>
|
|
3347
|
-
const
|
|
3348
|
-
return
|
|
3349
|
-
},
|
|
3350
|
-
let
|
|
3351
|
-
return
|
|
3352
|
-
|
|
3353
|
-
},
|
|
3354
|
-
};
|
|
3382
|
+
const r = () => Br(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => Wr(r().speedOptions), o = () => In(r()), n = () => ml(r()), s = Ti(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3383
|
+
const d = t.ui?.size;
|
|
3384
|
+
return d === "sm" || d === "lg" ? d : "md";
|
|
3385
|
+
}, l = () => {
|
|
3386
|
+
let d = At.get(s);
|
|
3387
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (At.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[_l] = () => {
|
|
3388
|
+
At.get(s) === d && At.delete(s);
|
|
3389
|
+
}, At.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", o()), d.speedOptions = i(), d;
|
|
3390
|
+
}, u = n();
|
|
3355
3391
|
return {
|
|
3356
3392
|
toolId: this.toolId,
|
|
3357
3393
|
button: null,
|
|
3358
3394
|
elements: [{
|
|
3359
|
-
element:
|
|
3360
|
-
mount:
|
|
3395
|
+
element: l(),
|
|
3396
|
+
mount: u.mount,
|
|
3397
|
+
layoutHints: { controlsRow: {
|
|
3398
|
+
reserveSpace: u.controlsRow.reserveSpace,
|
|
3399
|
+
showWhenToolActive: u.controlsRow.expandWhenToolActive
|
|
3400
|
+
} }
|
|
3361
3401
|
}],
|
|
3402
|
+
subscribeActive: (d) => {
|
|
3403
|
+
const h = l(), f = (v) => {
|
|
3404
|
+
const m = v.detail;
|
|
3405
|
+
d(m?.active === !0);
|
|
3406
|
+
};
|
|
3407
|
+
return h.addEventListener(ao, f), () => {
|
|
3408
|
+
h.removeEventListener(ao, f);
|
|
3409
|
+
};
|
|
3410
|
+
},
|
|
3362
3411
|
sync: () => {
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3412
|
+
const d = l();
|
|
3413
|
+
d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", o()), d.speedOptions = i();
|
|
3365
3414
|
}
|
|
3366
3415
|
};
|
|
3367
3416
|
}
|
|
3368
3417
|
};
|
|
3369
|
-
function
|
|
3370
|
-
const r =
|
|
3418
|
+
function Me(e, t) {
|
|
3419
|
+
const r = Ti(e, t.scope.level, t.scope.scopeId);
|
|
3371
3420
|
return {
|
|
3372
3421
|
fullToolId: r,
|
|
3373
3422
|
isActive: () => t.isToolVisible(r),
|
|
@@ -3377,25 +3426,29 @@ function Re(e, t) {
|
|
|
3377
3426
|
}
|
|
3378
3427
|
};
|
|
3379
3428
|
}
|
|
3380
|
-
function
|
|
3429
|
+
function Re(e) {
|
|
3381
3430
|
const t = e.isActive();
|
|
3382
3431
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3383
3432
|
}
|
|
3384
|
-
function
|
|
3433
|
+
function Si(e, t) {
|
|
3385
3434
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3386
3435
|
}
|
|
3387
|
-
var
|
|
3436
|
+
var yl = {
|
|
3388
3437
|
toolId: "ruler",
|
|
3389
3438
|
name: "Ruler",
|
|
3390
3439
|
description: "On-screen ruler for measurements",
|
|
3391
3440
|
icon: "ruler",
|
|
3392
|
-
supportedLevels: [
|
|
3441
|
+
supportedLevels: [
|
|
3442
|
+
"section",
|
|
3443
|
+
"item",
|
|
3444
|
+
"element"
|
|
3445
|
+
],
|
|
3393
3446
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3394
3447
|
isVisibleInContext(e) {
|
|
3395
|
-
return
|
|
3448
|
+
return gr(e);
|
|
3396
3449
|
},
|
|
3397
3450
|
renderToolbar(e, t) {
|
|
3398
|
-
const r =
|
|
3451
|
+
const r = Me(this.toolId, t), i = {
|
|
3399
3452
|
toolId: this.toolId,
|
|
3400
3453
|
label: this.name,
|
|
3401
3454
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3405,7 +3458,7 @@ var vl = {
|
|
|
3405
3458
|
onClick: () => t.toggleTool(this.toolId),
|
|
3406
3459
|
active: r.isActive()
|
|
3407
3460
|
}, o = t.componentOverrides ?? {}, n = Te(this.toolId, e, t, o);
|
|
3408
|
-
return n.setAttribute("tool-id", r.fullToolId),
|
|
3461
|
+
return n.setAttribute("tool-id", r.fullToolId), Si(n, "frameless"), {
|
|
3409
3462
|
toolId: this.toolId,
|
|
3410
3463
|
button: i,
|
|
3411
3464
|
elements: [{
|
|
@@ -3413,7 +3466,7 @@ var vl = {
|
|
|
3413
3466
|
mount: "after-buttons"
|
|
3414
3467
|
}],
|
|
3415
3468
|
sync: () => {
|
|
3416
|
-
|
|
3469
|
+
Re({
|
|
3417
3470
|
button: i,
|
|
3418
3471
|
overlay: n,
|
|
3419
3472
|
isActive: r.isActive
|
|
@@ -3422,18 +3475,22 @@ var vl = {
|
|
|
3422
3475
|
subscribeActive: r.subscribeActive
|
|
3423
3476
|
};
|
|
3424
3477
|
}
|
|
3425
|
-
},
|
|
3478
|
+
}, wl = {
|
|
3426
3479
|
toolId: "protractor",
|
|
3427
3480
|
name: "Protractor",
|
|
3428
3481
|
description: "On-screen protractor for angle measurements",
|
|
3429
3482
|
icon: "protractor",
|
|
3430
|
-
supportedLevels: [
|
|
3483
|
+
supportedLevels: [
|
|
3484
|
+
"section",
|
|
3485
|
+
"item",
|
|
3486
|
+
"element"
|
|
3487
|
+
],
|
|
3431
3488
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3432
3489
|
isVisibleInContext(e) {
|
|
3433
|
-
return
|
|
3490
|
+
return gr(e);
|
|
3434
3491
|
},
|
|
3435
3492
|
renderToolbar(e, t) {
|
|
3436
|
-
const r =
|
|
3493
|
+
const r = Me(this.toolId, t), i = {
|
|
3437
3494
|
toolId: this.toolId,
|
|
3438
3495
|
label: this.name,
|
|
3439
3496
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3443,7 +3500,7 @@ var vl = {
|
|
|
3443
3500
|
onClick: () => t.toggleTool(this.toolId),
|
|
3444
3501
|
active: r.isActive()
|
|
3445
3502
|
}, o = t.componentOverrides ?? {}, n = Te(this.toolId, e, t, o);
|
|
3446
|
-
return n.setAttribute("tool-id", r.fullToolId),
|
|
3503
|
+
return n.setAttribute("tool-id", r.fullToolId), Si(n, "frameless"), {
|
|
3447
3504
|
toolId: this.toolId,
|
|
3448
3505
|
button: i,
|
|
3449
3506
|
elements: [{
|
|
@@ -3451,7 +3508,7 @@ var vl = {
|
|
|
3451
3508
|
mount: "after-buttons"
|
|
3452
3509
|
}],
|
|
3453
3510
|
sync: () => {
|
|
3454
|
-
|
|
3511
|
+
Re({
|
|
3455
3512
|
button: i,
|
|
3456
3513
|
overlay: n,
|
|
3457
3514
|
isActive: r.isActive
|
|
@@ -3460,7 +3517,7 @@ var vl = {
|
|
|
3460
3517
|
subscribeActive: r.subscribeActive
|
|
3461
3518
|
};
|
|
3462
3519
|
}
|
|
3463
|
-
},
|
|
3520
|
+
}, kl = {
|
|
3464
3521
|
toolId: "answerEliminator",
|
|
3465
3522
|
name: "Answer Eliminator",
|
|
3466
3523
|
description: "Strike through answer choices",
|
|
@@ -3473,10 +3530,10 @@ var vl = {
|
|
|
3473
3530
|
"choiceMasking"
|
|
3474
3531
|
],
|
|
3475
3532
|
isVisibleInContext(e) {
|
|
3476
|
-
return
|
|
3533
|
+
return Ja(e);
|
|
3477
3534
|
},
|
|
3478
3535
|
renderToolbar(e, t) {
|
|
3479
|
-
const r =
|
|
3536
|
+
const r = Me(this.toolId, t), i = t.componentOverrides ?? {}, o = Te(this.toolId, e, t, i);
|
|
3480
3537
|
o.setAttribute("tool-id", r.fullToolId), o.setAttribute("strategy", "strikethrough"), o.setAttribute("button-alignment", "inline");
|
|
3481
3538
|
const n = {
|
|
3482
3539
|
toolId: this.toolId,
|
|
@@ -3496,7 +3553,7 @@ var vl = {
|
|
|
3496
3553
|
mount: "after-buttons"
|
|
3497
3554
|
}],
|
|
3498
3555
|
sync: () => {
|
|
3499
|
-
|
|
3556
|
+
Re({
|
|
3500
3557
|
button: n,
|
|
3501
3558
|
overlay: o,
|
|
3502
3559
|
isActive: r.isActive
|
|
@@ -3507,7 +3564,7 @@ var vl = {
|
|
|
3507
3564
|
subscribeActive: r.subscribeActive
|
|
3508
3565
|
};
|
|
3509
3566
|
}
|
|
3510
|
-
},
|
|
3567
|
+
}, Tl = {
|
|
3511
3568
|
toolId: "highlighter",
|
|
3512
3569
|
name: "Highlighter",
|
|
3513
3570
|
description: "Highlight text",
|
|
@@ -3528,7 +3585,7 @@ var vl = {
|
|
|
3528
3585
|
return mr(e);
|
|
3529
3586
|
},
|
|
3530
3587
|
renderToolbar(e, t) {
|
|
3531
|
-
const r =
|
|
3588
|
+
const r = Me(this.toolId, t), i = {
|
|
3532
3589
|
toolId: this.toolId,
|
|
3533
3590
|
label: this.name,
|
|
3534
3591
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3546,7 +3603,7 @@ var vl = {
|
|
|
3546
3603
|
mount: "after-buttons"
|
|
3547
3604
|
}],
|
|
3548
3605
|
sync: () => {
|
|
3549
|
-
|
|
3606
|
+
Re({
|
|
3550
3607
|
button: i,
|
|
3551
3608
|
overlay: n,
|
|
3552
3609
|
isActive: r.isActive,
|
|
@@ -3558,12 +3615,13 @@ var vl = {
|
|
|
3558
3615
|
subscribeActive: r.subscribeActive
|
|
3559
3616
|
};
|
|
3560
3617
|
}
|
|
3561
|
-
},
|
|
3618
|
+
}, Sl = {
|
|
3562
3619
|
toolId: "lineReader",
|
|
3563
3620
|
name: "Line Reader",
|
|
3564
3621
|
description: "Reading guide overlay",
|
|
3565
3622
|
icon: "bars-3",
|
|
3566
3623
|
supportedLevels: [
|
|
3624
|
+
"section",
|
|
3567
3625
|
"passage",
|
|
3568
3626
|
"rubric",
|
|
3569
3627
|
"item"
|
|
@@ -3579,7 +3637,7 @@ var vl = {
|
|
|
3579
3637
|
return mr(e);
|
|
3580
3638
|
},
|
|
3581
3639
|
renderToolbar(e, t) {
|
|
3582
|
-
const r =
|
|
3640
|
+
const r = Me(this.toolId, t), i = {
|
|
3583
3641
|
toolId: this.toolId,
|
|
3584
3642
|
label: this.name,
|
|
3585
3643
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3589,7 +3647,7 @@ var vl = {
|
|
|
3589
3647
|
onClick: () => t.toggleTool(this.toolId),
|
|
3590
3648
|
active: r.isActive()
|
|
3591
3649
|
}, o = t.componentOverrides ?? {}, n = Te(this.toolId, e, t, o);
|
|
3592
|
-
return n.setAttribute("tool-id", r.fullToolId),
|
|
3650
|
+
return n.setAttribute("tool-id", r.fullToolId), Si(n, "frameless"), {
|
|
3593
3651
|
toolId: this.toolId,
|
|
3594
3652
|
button: i,
|
|
3595
3653
|
elements: [{
|
|
@@ -3597,7 +3655,7 @@ var vl = {
|
|
|
3597
3655
|
mount: "after-buttons"
|
|
3598
3656
|
}],
|
|
3599
3657
|
sync: () => {
|
|
3600
|
-
|
|
3658
|
+
Re({
|
|
3601
3659
|
button: i,
|
|
3602
3660
|
overlay: n,
|
|
3603
3661
|
isActive: r.isActive
|
|
@@ -3606,7 +3664,7 @@ var vl = {
|
|
|
3606
3664
|
subscribeActive: r.subscribeActive
|
|
3607
3665
|
};
|
|
3608
3666
|
}
|
|
3609
|
-
},
|
|
3667
|
+
}, El = {
|
|
3610
3668
|
toolId: "theme",
|
|
3611
3669
|
name: "Theme",
|
|
3612
3670
|
description: "Accessible themes and contrast",
|
|
@@ -3625,7 +3683,7 @@ var vl = {
|
|
|
3625
3683
|
return !0;
|
|
3626
3684
|
},
|
|
3627
3685
|
renderToolbar(e, t) {
|
|
3628
|
-
const r =
|
|
3686
|
+
const r = Me(this.toolId, t), i = {
|
|
3629
3687
|
toolId: this.toolId,
|
|
3630
3688
|
label: this.name,
|
|
3631
3689
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3653,7 +3711,7 @@ var vl = {
|
|
|
3653
3711
|
}
|
|
3654
3712
|
}],
|
|
3655
3713
|
sync: () => {
|
|
3656
|
-
|
|
3714
|
+
Re({
|
|
3657
3715
|
button: i,
|
|
3658
3716
|
overlay: n,
|
|
3659
3717
|
isActive: r.isActive
|
|
@@ -3662,7 +3720,7 @@ var vl = {
|
|
|
3662
3720
|
subscribeActive: r.subscribeActive
|
|
3663
3721
|
};
|
|
3664
3722
|
}
|
|
3665
|
-
},
|
|
3723
|
+
}, Al = {
|
|
3666
3724
|
toolId: "annotationToolbar",
|
|
3667
3725
|
name: "Highlighter",
|
|
3668
3726
|
description: "Highlight and annotate text",
|
|
@@ -3686,7 +3744,7 @@ var vl = {
|
|
|
3686
3744
|
return mr(e);
|
|
3687
3745
|
},
|
|
3688
3746
|
renderToolbar(e, t) {
|
|
3689
|
-
const r =
|
|
3747
|
+
const r = Me(this.toolId, t), i = {
|
|
3690
3748
|
toolId: this.toolId,
|
|
3691
3749
|
label: this.name,
|
|
3692
3750
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3704,7 +3762,7 @@ var vl = {
|
|
|
3704
3762
|
mount: "after-buttons"
|
|
3705
3763
|
}],
|
|
3706
3764
|
sync: () => {
|
|
3707
|
-
|
|
3765
|
+
Re({
|
|
3708
3766
|
button: i,
|
|
3709
3767
|
overlay: n,
|
|
3710
3768
|
isActive: r.isActive
|
|
@@ -3713,7 +3771,7 @@ var vl = {
|
|
|
3713
3771
|
subscribeActive: r.subscribeActive
|
|
3714
3772
|
};
|
|
3715
3773
|
}
|
|
3716
|
-
},
|
|
3774
|
+
}, Il = {
|
|
3717
3775
|
toolId: "graph",
|
|
3718
3776
|
name: "Graph",
|
|
3719
3777
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3726,10 +3784,10 @@ var vl = {
|
|
|
3726
3784
|
"graphingTool"
|
|
3727
3785
|
],
|
|
3728
3786
|
isVisibleInContext(e) {
|
|
3729
|
-
return
|
|
3787
|
+
return gr(e);
|
|
3730
3788
|
},
|
|
3731
3789
|
renderToolbar(e, t) {
|
|
3732
|
-
const r =
|
|
3790
|
+
const r = Me(this.toolId, t), i = {
|
|
3733
3791
|
toolId: this.toolId,
|
|
3734
3792
|
label: this.name,
|
|
3735
3793
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3757,7 +3815,7 @@ var vl = {
|
|
|
3757
3815
|
}
|
|
3758
3816
|
}],
|
|
3759
3817
|
sync: () => {
|
|
3760
|
-
|
|
3818
|
+
Re({
|
|
3761
3819
|
button: i,
|
|
3762
3820
|
overlay: n,
|
|
3763
3821
|
isActive: r.isActive
|
|
@@ -3766,7 +3824,7 @@ var vl = {
|
|
|
3766
3824
|
subscribeActive: r.subscribeActive
|
|
3767
3825
|
};
|
|
3768
3826
|
}
|
|
3769
|
-
},
|
|
3827
|
+
}, $l = {
|
|
3770
3828
|
toolId: "periodicTable",
|
|
3771
3829
|
name: "Periodic Table",
|
|
3772
3830
|
description: "Chemistry periodic table reference",
|
|
@@ -3778,10 +3836,10 @@ var vl = {
|
|
|
3778
3836
|
"elementReference"
|
|
3779
3837
|
],
|
|
3780
3838
|
isVisibleInContext(e) {
|
|
3781
|
-
return
|
|
3839
|
+
return Xa(e);
|
|
3782
3840
|
},
|
|
3783
3841
|
renderToolbar(e, t) {
|
|
3784
|
-
const r =
|
|
3842
|
+
const r = Me(this.toolId, t), i = {
|
|
3785
3843
|
toolId: this.toolId,
|
|
3786
3844
|
label: this.name,
|
|
3787
3845
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
@@ -3809,7 +3867,7 @@ var vl = {
|
|
|
3809
3867
|
}
|
|
3810
3868
|
}],
|
|
3811
3869
|
sync: () => {
|
|
3812
|
-
|
|
3870
|
+
Re({
|
|
3813
3871
|
button: i,
|
|
3814
3872
|
overlay: n,
|
|
3815
3873
|
isActive: r.isActive
|
|
@@ -3818,54 +3876,54 @@ var vl = {
|
|
|
3818
3876
|
subscribeActive: r.subscribeActive
|
|
3819
3877
|
};
|
|
3820
3878
|
}
|
|
3821
|
-
},
|
|
3822
|
-
|
|
3823
|
-
pl,
|
|
3824
|
-
vl,
|
|
3825
|
-
ml,
|
|
3826
|
-
gl,
|
|
3827
|
-
_l,
|
|
3879
|
+
}, Ol = [
|
|
3880
|
+
dl,
|
|
3828
3881
|
bl,
|
|
3829
3882
|
yl,
|
|
3830
3883
|
wl,
|
|
3831
3884
|
kl,
|
|
3832
|
-
Tl
|
|
3885
|
+
Tl,
|
|
3886
|
+
Sl,
|
|
3887
|
+
El,
|
|
3888
|
+
Al,
|
|
3889
|
+
Il,
|
|
3890
|
+
$l
|
|
3833
3891
|
];
|
|
3834
|
-
function
|
|
3835
|
-
const t = new
|
|
3892
|
+
function Ll(e = {}) {
|
|
3893
|
+
const t = new Ka(), r = {
|
|
3836
3894
|
toolTagMap: {
|
|
3837
|
-
...
|
|
3895
|
+
...Sn,
|
|
3838
3896
|
...e.toolTagMap || {}
|
|
3839
3897
|
},
|
|
3840
3898
|
toolComponentFactory: e.toolComponentFactory,
|
|
3841
3899
|
toolComponentFactories: e.toolComponentFactories
|
|
3842
3900
|
}, i = (o) => e.overrides?.[o.toolId] || o;
|
|
3843
|
-
return e.includePackagedTools &&
|
|
3901
|
+
return e.includePackagedTools && Pl(t, {
|
|
3844
3902
|
toolIds: e.toolIds,
|
|
3845
3903
|
applyOverrides: i
|
|
3846
3904
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3847
3905
|
}
|
|
3848
|
-
function
|
|
3906
|
+
function Pl(e, t = {}) {
|
|
3849
3907
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((o) => o);
|
|
3850
|
-
for (const o of
|
|
3908
|
+
for (const o of Ol)
|
|
3851
3909
|
r && !r.has(o.toolId) || e.register(i(o));
|
|
3852
3910
|
}
|
|
3853
|
-
function
|
|
3854
|
-
return
|
|
3911
|
+
function Ml(e = {}) {
|
|
3912
|
+
return Ll({
|
|
3855
3913
|
...e,
|
|
3856
3914
|
includePackagedTools: !0
|
|
3857
3915
|
});
|
|
3858
3916
|
}
|
|
3859
|
-
function
|
|
3860
|
-
const e =
|
|
3917
|
+
function Rl() {
|
|
3918
|
+
const e = Ml(), t = /* @__PURE__ */ new Set();
|
|
3861
3919
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3862
3920
|
return [...t].sort();
|
|
3863
3921
|
}
|
|
3864
|
-
var
|
|
3865
|
-
supports: [...
|
|
3922
|
+
var Cl = Rl(), $c = {
|
|
3923
|
+
supports: [...Cl],
|
|
3866
3924
|
prohibitedSupports: [],
|
|
3867
3925
|
activateAtInit: []
|
|
3868
|
-
},
|
|
3926
|
+
}, xl = {
|
|
3869
3927
|
visual: {
|
|
3870
3928
|
magnification: "magnification",
|
|
3871
3929
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3978,21 +4036,21 @@ var Pl = $l(), Tc = {
|
|
|
3978
4036
|
itemGlossary: "itemGlossary",
|
|
3979
4037
|
tutorialAvailable: "tutorialAvailable"
|
|
3980
4038
|
}
|
|
3981
|
-
},
|
|
4039
|
+
}, Oc = Object.values(xl).flatMap((e) => Object.values(e)), Lc = wn("ToolCoordinator"), Xr;
|
|
3982
4040
|
(function(e) {
|
|
3983
4041
|
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";
|
|
3984
|
-
})(
|
|
3985
|
-
var
|
|
4042
|
+
})(Xr || (Xr = {}));
|
|
4043
|
+
var lo;
|
|
3986
4044
|
(function(e) {
|
|
3987
4045
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3988
|
-
})(
|
|
3989
|
-
function
|
|
4046
|
+
})(lo || (lo = {}));
|
|
4047
|
+
function Dl(e) {
|
|
3990
4048
|
return e === "light" || e === "dark" || e === "auto";
|
|
3991
4049
|
}
|
|
3992
|
-
function
|
|
4050
|
+
function Nl(e) {
|
|
3993
4051
|
return e === "self" || e === "document";
|
|
3994
4052
|
}
|
|
3995
|
-
function
|
|
4053
|
+
function Zr(e) {
|
|
3996
4054
|
if (!e || typeof e != "object") return {};
|
|
3997
4055
|
const t = {};
|
|
3998
4056
|
for (const [r, i] of Object.entries(e))
|
|
@@ -4003,7 +4061,7 @@ function Jr(e) {
|
|
|
4003
4061
|
} else typeof i == "number" && (t[r] = String(i));
|
|
4004
4062
|
return t;
|
|
4005
4063
|
}
|
|
4006
|
-
var
|
|
4064
|
+
var Vl = [
|
|
4007
4065
|
{
|
|
4008
4066
|
id: "default",
|
|
4009
4067
|
name: "Default",
|
|
@@ -4225,17 +4283,17 @@ var Ml = [
|
|
|
4225
4283
|
primary: "#aaaaaa"
|
|
4226
4284
|
}
|
|
4227
4285
|
}
|
|
4228
|
-
],
|
|
4229
|
-
function
|
|
4230
|
-
return [...
|
|
4286
|
+
], ei = new Map(Vl.map((e) => [e.id, e])), $n = /* @__PURE__ */ new Map();
|
|
4287
|
+
function jl() {
|
|
4288
|
+
return [...ei.values(), ...$n.values()];
|
|
4231
4289
|
}
|
|
4232
|
-
function
|
|
4233
|
-
return e ?
|
|
4290
|
+
function Wl(e) {
|
|
4291
|
+
return e ? $n.get(e) ?? ei.get(e) : ei.get("default");
|
|
4234
4292
|
}
|
|
4235
|
-
function
|
|
4236
|
-
return
|
|
4293
|
+
function Bl(e) {
|
|
4294
|
+
return Wl(e)?.variables ?? {};
|
|
4237
4295
|
}
|
|
4238
|
-
var
|
|
4296
|
+
var ql = {
|
|
4239
4297
|
"--pie-text": "black",
|
|
4240
4298
|
"--pie-disabled": "grey",
|
|
4241
4299
|
"--pie-disabled-secondary": "#ababab",
|
|
@@ -4284,7 +4342,7 @@ var Nl = {
|
|
|
4284
4342
|
"--pie-button-hover-color": "#111827",
|
|
4285
4343
|
"--pie-button-active-bg": "#f3f4f6",
|
|
4286
4344
|
"--pie-button-focus-outline": "#3b82f6"
|
|
4287
|
-
},
|
|
4345
|
+
}, zl = {
|
|
4288
4346
|
"--pie-text": "#ffffff",
|
|
4289
4347
|
"--pie-disabled": "#999999",
|
|
4290
4348
|
"--pie-disabled-secondary": "#777777",
|
|
@@ -4333,52 +4391,52 @@ var Nl = {
|
|
|
4333
4391
|
"--pie-button-hover-color": "#ffffff",
|
|
4334
4392
|
"--pie-button-active-bg": "#4b5563",
|
|
4335
4393
|
"--pie-button-focus-outline": "#93c5fd"
|
|
4336
|
-
},
|
|
4394
|
+
}, ti = /* @__PURE__ */ new Map();
|
|
4337
4395
|
function er(e) {
|
|
4338
4396
|
const t = e.trim();
|
|
4339
4397
|
return t || void 0;
|
|
4340
4398
|
}
|
|
4341
|
-
function
|
|
4399
|
+
function Ae(e) {
|
|
4342
4400
|
if (!(!e.left || !e.right))
|
|
4343
4401
|
return `color-mix(in srgb, ${e.left} ${e.leftWeight}, ${e.right})`;
|
|
4344
4402
|
}
|
|
4345
|
-
function
|
|
4403
|
+
function Fl(e) {
|
|
4346
4404
|
const t = (r) => er(e.getPropertyValue(r));
|
|
4347
|
-
return
|
|
4405
|
+
return Zr({
|
|
4348
4406
|
"--pie-background": t("--color-base-100"),
|
|
4349
4407
|
"--pie-background-dark": t("--color-base-200"),
|
|
4350
4408
|
"--pie-secondary-background": t("--color-base-200"),
|
|
4351
4409
|
"--pie-dropdown-background": t("--color-base-300"),
|
|
4352
4410
|
"--pie-text": t("--color-base-content"),
|
|
4353
4411
|
"--pie-primary": t("--color-primary"),
|
|
4354
|
-
"--pie-primary-light":
|
|
4412
|
+
"--pie-primary-light": Ae({
|
|
4355
4413
|
left: t("--color-primary"),
|
|
4356
4414
|
right: t("--color-base-100"),
|
|
4357
4415
|
leftWeight: "60%"
|
|
4358
4416
|
}),
|
|
4359
|
-
"--pie-primary-dark":
|
|
4417
|
+
"--pie-primary-dark": Ae({
|
|
4360
4418
|
left: t("--color-primary"),
|
|
4361
4419
|
right: t("--color-base-content"),
|
|
4362
4420
|
leftWeight: "75%"
|
|
4363
4421
|
}),
|
|
4364
|
-
"--pie-faded-primary":
|
|
4422
|
+
"--pie-faded-primary": Ae({
|
|
4365
4423
|
left: t("--color-primary"),
|
|
4366
4424
|
right: t("--color-base-100"),
|
|
4367
4425
|
leftWeight: "20%"
|
|
4368
4426
|
}),
|
|
4369
4427
|
"--pie-secondary": t("--color-secondary"),
|
|
4370
|
-
"--pie-secondary-light":
|
|
4428
|
+
"--pie-secondary-light": Ae({
|
|
4371
4429
|
left: t("--color-secondary"),
|
|
4372
4430
|
right: t("--color-base-100"),
|
|
4373
4431
|
leftWeight: "60%"
|
|
4374
4432
|
}),
|
|
4375
|
-
"--pie-secondary-dark":
|
|
4433
|
+
"--pie-secondary-dark": Ae({
|
|
4376
4434
|
left: t("--color-secondary"),
|
|
4377
4435
|
right: t("--color-base-content"),
|
|
4378
4436
|
leftWeight: "75%"
|
|
4379
4437
|
}),
|
|
4380
4438
|
"--pie-tertiary": t("--color-accent"),
|
|
4381
|
-
"--pie-tertiary-light":
|
|
4439
|
+
"--pie-tertiary-light": Ae({
|
|
4382
4440
|
left: t("--color-accent"),
|
|
4383
4441
|
right: t("--color-base-100"),
|
|
4384
4442
|
leftWeight: "60%"
|
|
@@ -4388,7 +4446,7 @@ function jl(e) {
|
|
|
4388
4446
|
"--pie-border-dark": t("--color-neutral"),
|
|
4389
4447
|
"--pie-border-gray": t("--color-base-300"),
|
|
4390
4448
|
"--pie-correct": t("--color-success"),
|
|
4391
|
-
"--pie-correct-secondary":
|
|
4449
|
+
"--pie-correct-secondary": Ae({
|
|
4392
4450
|
left: t("--color-success"),
|
|
4393
4451
|
right: t("--color-base-100"),
|
|
4394
4452
|
leftWeight: "20%"
|
|
@@ -4396,7 +4454,7 @@ function jl(e) {
|
|
|
4396
4454
|
"--pie-correct-tertiary": t("--color-success"),
|
|
4397
4455
|
"--pie-correct-icon": t("--color-success"),
|
|
4398
4456
|
"--pie-incorrect": t("--color-error"),
|
|
4399
|
-
"--pie-incorrect-secondary":
|
|
4457
|
+
"--pie-incorrect-secondary": Ae({
|
|
4400
4458
|
left: t("--color-error"),
|
|
4401
4459
|
right: t("--color-base-100"),
|
|
4402
4460
|
leftWeight: "20%"
|
|
@@ -4406,7 +4464,7 @@ function jl(e) {
|
|
|
4406
4464
|
"--pie-missing-icon": t("--color-error"),
|
|
4407
4465
|
"--pie-disabled": t("--color-base-300"),
|
|
4408
4466
|
"--pie-disabled-secondary": t("--color-base-200"),
|
|
4409
|
-
"--pie-focus-checked":
|
|
4467
|
+
"--pie-focus-checked": Ae({
|
|
4410
4468
|
left: t("--color-primary"),
|
|
4411
4469
|
right: t("--color-base-100"),
|
|
4412
4470
|
leftWeight: "20%"
|
|
@@ -4430,33 +4488,33 @@ function jl(e) {
|
|
|
4430
4488
|
"--pie-button-focus-outline": t("--color-primary")
|
|
4431
4489
|
});
|
|
4432
4490
|
}
|
|
4433
|
-
var
|
|
4491
|
+
var co = {
|
|
4434
4492
|
id: "daisyui",
|
|
4435
4493
|
canRead(e) {
|
|
4436
4494
|
const t = getComputedStyle(e);
|
|
4437
4495
|
return !!(er(t.getPropertyValue("--color-base-100")) || er(t.getPropertyValue("--color-base-content")) || er(t.getPropertyValue("--color-primary")));
|
|
4438
4496
|
},
|
|
4439
4497
|
read(e) {
|
|
4440
|
-
return
|
|
4498
|
+
return Fl(getComputedStyle(e));
|
|
4441
4499
|
}
|
|
4442
4500
|
};
|
|
4443
|
-
|
|
4444
|
-
function
|
|
4501
|
+
ti.set(co.id, co);
|
|
4502
|
+
function Ul(e) {
|
|
4445
4503
|
const t = e.provider?.trim() || "auto", r = (o) => {
|
|
4446
4504
|
if (t && t !== "auto") {
|
|
4447
|
-
const n =
|
|
4448
|
-
return !n || !n.canRead(o) ? {} :
|
|
4505
|
+
const n = ti.get(t);
|
|
4506
|
+
return !n || !n.canRead(o) ? {} : Zr(n.read(o));
|
|
4449
4507
|
}
|
|
4450
|
-
for (const n of
|
|
4508
|
+
for (const n of ti.values())
|
|
4451
4509
|
if (n.canRead(o))
|
|
4452
|
-
return
|
|
4510
|
+
return Zr(n.read(o));
|
|
4453
4511
|
return {};
|
|
4454
4512
|
}, i = r(e.target);
|
|
4455
4513
|
return Object.keys(i).length > 0 ? i : typeof document < "u" && e.target !== document.documentElement ? r(document.documentElement) : {};
|
|
4456
4514
|
}
|
|
4457
|
-
var
|
|
4515
|
+
var Hl = typeof HTMLElement > "u" ? class {
|
|
4458
4516
|
} : HTMLElement;
|
|
4459
|
-
function
|
|
4517
|
+
function Gl(e, t) {
|
|
4460
4518
|
if (!customElements.get(e))
|
|
4461
4519
|
try {
|
|
4462
4520
|
customElements.define(e, t);
|
|
@@ -4464,10 +4522,10 @@ function Wl(e, t) {
|
|
|
4464
4522
|
if (!(r instanceof DOMException && r.name === "NotSupportedError") || !customElements.get(e)) throw r;
|
|
4465
4523
|
}
|
|
4466
4524
|
}
|
|
4467
|
-
function
|
|
4525
|
+
function ri(e) {
|
|
4468
4526
|
if (!e) return {};
|
|
4469
4527
|
if (typeof e == "string") try {
|
|
4470
|
-
return
|
|
4528
|
+
return ri(JSON.parse(e));
|
|
4471
4529
|
} catch {
|
|
4472
4530
|
return {};
|
|
4473
4531
|
}
|
|
@@ -4477,9 +4535,9 @@ function ei(e) {
|
|
|
4477
4535
|
r.startsWith("--") && (typeof i == "string" ? t[r] = i : typeof i == "number" && (t[r] = String(i)));
|
|
4478
4536
|
return t;
|
|
4479
4537
|
}
|
|
4480
|
-
var
|
|
4538
|
+
var Kl = class extends Hl {
|
|
4481
4539
|
constructor(...e) {
|
|
4482
|
-
super(...e),
|
|
4540
|
+
super(...e), g(this, "mediaQuery", null), g(this, "onMediaChange", () => this.applyTheme()), g(this, "previousKeys", /* @__PURE__ */ new Set()), g(this, "variablesOverride", {});
|
|
4483
4541
|
}
|
|
4484
4542
|
static get observedAttributes() {
|
|
4485
4543
|
return [
|
|
@@ -4492,14 +4550,14 @@ var Fl = class extends ql {
|
|
|
4492
4550
|
}
|
|
4493
4551
|
get theme() {
|
|
4494
4552
|
const e = this.getAttribute("theme");
|
|
4495
|
-
return
|
|
4553
|
+
return Dl(e) ? e : "light";
|
|
4496
4554
|
}
|
|
4497
4555
|
set theme(e) {
|
|
4498
4556
|
this.setAttribute("theme", e);
|
|
4499
4557
|
}
|
|
4500
4558
|
get scope() {
|
|
4501
4559
|
const e = this.getAttribute("scope");
|
|
4502
|
-
return
|
|
4560
|
+
return Nl(e) ? e : "self";
|
|
4503
4561
|
}
|
|
4504
4562
|
set scope(e) {
|
|
4505
4563
|
this.setAttribute("scope", e);
|
|
@@ -4508,7 +4566,7 @@ var Fl = class extends ql {
|
|
|
4508
4566
|
return { ...this.variablesOverride };
|
|
4509
4567
|
}
|
|
4510
4568
|
set variables(e) {
|
|
4511
|
-
this.variablesOverride =
|
|
4569
|
+
this.variablesOverride = ri(e), this.setAttribute("variables", JSON.stringify(this.variablesOverride)), this.applyTheme();
|
|
4512
4570
|
}
|
|
4513
4571
|
get provider() {
|
|
4514
4572
|
return this.getAttribute("provider")?.trim() || "auto";
|
|
@@ -4529,7 +4587,7 @@ var Fl = class extends ql {
|
|
|
4529
4587
|
this.mediaQuery && this.mediaQuery.removeEventListener("change", this.onMediaChange), this.mediaQuery = null, this.scope === "self" && (this.clearPreviousKeys(this), this.removeAttribute("data-theme"), this.removeAttribute("data-color-scheme"));
|
|
4530
4588
|
}
|
|
4531
4589
|
attributeChangedCallback(e, t, r) {
|
|
4532
|
-
t !== r && (e === "variables" && (this.variablesOverride =
|
|
4590
|
+
t !== r && (e === "variables" && (this.variablesOverride = ri(r)), e === "theme" && this.setupAutoThemeListener(), this.applyTheme());
|
|
4533
4591
|
}
|
|
4534
4592
|
getTarget() {
|
|
4535
4593
|
return this.scope === "document" ? document.documentElement : this;
|
|
@@ -4538,10 +4596,10 @@ var Fl = class extends ql {
|
|
|
4538
4596
|
if (typeof document > "u" || typeof window > "u") return;
|
|
4539
4597
|
const { effectiveTheme: e, dataTheme: t } = this.resolveThemeState(), r = this.getTarget();
|
|
4540
4598
|
r.setAttribute("data-theme", t), this.scheme && this.scheme !== "default" ? r.setAttribute("data-color-scheme", this.scheme) : r.removeAttribute("data-color-scheme");
|
|
4541
|
-
const i = e === "dark" ?
|
|
4599
|
+
const i = e === "dark" ? zl : ql, o = Ul({
|
|
4542
4600
|
target: r,
|
|
4543
4601
|
provider: this.provider
|
|
4544
|
-
}), n =
|
|
4602
|
+
}), n = Bl(this.scheme), s = {
|
|
4545
4603
|
...i,
|
|
4546
4604
|
...o,
|
|
4547
4605
|
...n,
|
|
@@ -4578,12 +4636,12 @@ var Fl = class extends ql {
|
|
|
4578
4636
|
typeof window > "u" || (this.mediaQuery && (this.mediaQuery.removeEventListener("change", this.onMediaChange), this.mediaQuery = null), this.getAttribute("theme")?.trim() === "auto" && (this.mediaQuery = window.matchMedia("(prefers-color-scheme: dark)"), this.mediaQuery.addEventListener("change", this.onMediaChange)));
|
|
4579
4637
|
}
|
|
4580
4638
|
};
|
|
4581
|
-
function
|
|
4582
|
-
typeof customElements > "u" ||
|
|
4639
|
+
function Yl(e = "pie-theme") {
|
|
4640
|
+
typeof customElements > "u" || Gl(e, Kl);
|
|
4583
4641
|
}
|
|
4584
|
-
|
|
4585
|
-
var
|
|
4586
|
-
function
|
|
4642
|
+
Yl();
|
|
4643
|
+
var On = "https://proxy.pie-api.com", Ql = `${On}/bundles/`;
|
|
4644
|
+
function Ln(e) {
|
|
4587
4645
|
try {
|
|
4588
4646
|
const t = {
|
|
4589
4647
|
BASE_URL: "/",
|
|
@@ -4596,7 +4654,7 @@ function In(e) {
|
|
|
4596
4654
|
} catch {
|
|
4597
4655
|
}
|
|
4598
4656
|
}
|
|
4599
|
-
var
|
|
4657
|
+
var Pc = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Ln("PUBLIC_BUILDER_ORIGIN_URL") || On, Jl = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Ln("PUBLIC_BUILDER_BUNDLE_URL") || Ql;
|
|
4600
4658
|
function wt(e, t) {
|
|
4601
4659
|
const r = `[${e}]`;
|
|
4602
4660
|
return {
|
|
@@ -4611,115 +4669,115 @@ function wt(e, t) {
|
|
|
4611
4669
|
function kt() {
|
|
4612
4670
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
4613
4671
|
}
|
|
4614
|
-
var
|
|
4672
|
+
var ii;
|
|
4615
4673
|
(function(e) {
|
|
4616
4674
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
4617
|
-
})(
|
|
4618
|
-
var
|
|
4675
|
+
})(ii || (ii = {}));
|
|
4676
|
+
var uo;
|
|
4619
4677
|
(function(e) {
|
|
4620
4678
|
e.loading = "loading", e.loaded = "loaded";
|
|
4621
|
-
})(
|
|
4679
|
+
})(uo || (uo = {}));
|
|
4622
4680
|
typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
|
|
4623
4681
|
loadingScripts: {},
|
|
4624
4682
|
loadingPromises: {},
|
|
4625
4683
|
globalLoadQueue: Promise.resolve(),
|
|
4626
4684
|
activeBundleUrl: null
|
|
4627
4685
|
});
|
|
4628
|
-
var
|
|
4686
|
+
var fo;
|
|
4629
4687
|
(function(e) {
|
|
4630
4688
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
4631
|
-
})(
|
|
4632
|
-
var
|
|
4689
|
+
})(fo || (fo = {}));
|
|
4690
|
+
var ho;
|
|
4633
4691
|
(function(e) {
|
|
4634
4692
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
4635
|
-
})(
|
|
4636
|
-
var
|
|
4693
|
+
})(ho || (ho = {}));
|
|
4694
|
+
var po;
|
|
4637
4695
|
(function(e) {
|
|
4638
4696
|
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
4639
|
-
})(
|
|
4640
|
-
var
|
|
4697
|
+
})(po || (po = {}));
|
|
4698
|
+
var vo;
|
|
4641
4699
|
(function(e) {
|
|
4642
4700
|
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
4643
|
-
})(
|
|
4644
|
-
var
|
|
4701
|
+
})(vo || (vo = {}));
|
|
4702
|
+
var Xl = class Pn extends CustomEvent {
|
|
4645
4703
|
constructor(t, r = !1) {
|
|
4646
|
-
super(
|
|
4704
|
+
super(Pn.TYPE, {
|
|
4647
4705
|
bubbles: !0,
|
|
4648
4706
|
detail: {
|
|
4649
4707
|
update: t,
|
|
4650
4708
|
reset: r
|
|
4651
4709
|
}
|
|
4652
|
-
}),
|
|
4710
|
+
}), g(this, "update", void 0), g(this, "reset", void 0), this.update = t, this.reset = r;
|
|
4653
4711
|
}
|
|
4654
4712
|
};
|
|
4655
|
-
|
|
4656
|
-
var
|
|
4713
|
+
g(Xl, "TYPE", "model.updated");
|
|
4714
|
+
var Zl = class Mn extends CustomEvent {
|
|
4657
4715
|
constructor(t, r) {
|
|
4658
|
-
super(
|
|
4716
|
+
super(Mn.TYPE, {
|
|
4659
4717
|
bubbles: !0,
|
|
4660
4718
|
detail: {
|
|
4661
4719
|
src: t,
|
|
4662
4720
|
done: r
|
|
4663
4721
|
}
|
|
4664
|
-
}),
|
|
4722
|
+
}), g(this, "src", void 0), g(this, "done", void 0), this.src = t, this.done = r;
|
|
4665
4723
|
}
|
|
4666
4724
|
};
|
|
4667
|
-
|
|
4668
|
-
var
|
|
4725
|
+
g(Zl, "TYPE", "delete.image");
|
|
4726
|
+
var ec = class Rn extends CustomEvent {
|
|
4669
4727
|
constructor(t) {
|
|
4670
|
-
super(
|
|
4728
|
+
super(Rn.TYPE, {
|
|
4671
4729
|
bubbles: !0,
|
|
4672
4730
|
detail: t
|
|
4673
|
-
}),
|
|
4731
|
+
}), g(this, "handler", void 0), this.handler = t;
|
|
4674
4732
|
}
|
|
4675
4733
|
};
|
|
4676
|
-
|
|
4677
|
-
var
|
|
4734
|
+
g(ec, "TYPE", "insert.image");
|
|
4735
|
+
var tc = class Cn extends CustomEvent {
|
|
4678
4736
|
constructor(t, r) {
|
|
4679
|
-
super(
|
|
4737
|
+
super(Cn.TYPE, {
|
|
4680
4738
|
bubbles: !0,
|
|
4681
4739
|
detail: {
|
|
4682
4740
|
src: t,
|
|
4683
4741
|
done: r
|
|
4684
4742
|
}
|
|
4685
|
-
}),
|
|
4743
|
+
}), g(this, "src", void 0), g(this, "done", void 0), this.src = t, this.done = r;
|
|
4686
4744
|
}
|
|
4687
4745
|
};
|
|
4688
|
-
|
|
4689
|
-
var
|
|
4746
|
+
g(tc, "TYPE", "delete.sound");
|
|
4747
|
+
var rc = class xn extends CustomEvent {
|
|
4690
4748
|
constructor(t) {
|
|
4691
|
-
super(
|
|
4749
|
+
super(xn.TYPE, {
|
|
4692
4750
|
bubbles: !0,
|
|
4693
4751
|
detail: t
|
|
4694
|
-
}),
|
|
4752
|
+
}), g(this, "handler", void 0), this.handler = t;
|
|
4695
4753
|
}
|
|
4696
4754
|
};
|
|
4697
|
-
|
|
4698
|
-
var
|
|
4755
|
+
g(rc, "TYPE", "insert.sound");
|
|
4756
|
+
var ic = class Dn extends CustomEvent {
|
|
4699
4757
|
constructor(t, r) {
|
|
4700
|
-
super(
|
|
4758
|
+
super(Dn.TYPE, {
|
|
4701
4759
|
bubbles: !0,
|
|
4702
4760
|
composed: !0,
|
|
4703
4761
|
detail: {
|
|
4704
4762
|
complete: r,
|
|
4705
4763
|
component: t
|
|
4706
4764
|
}
|
|
4707
|
-
}),
|
|
4765
|
+
}), g(this, "component", void 0), g(this, "complete", void 0), this.component = t, this.complete = r;
|
|
4708
4766
|
}
|
|
4709
4767
|
};
|
|
4710
|
-
|
|
4711
|
-
var
|
|
4768
|
+
g(ic, "TYPE", "session-changed");
|
|
4769
|
+
var go;
|
|
4712
4770
|
(function(e) {
|
|
4713
4771
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
4714
|
-
})(
|
|
4715
|
-
var
|
|
4716
|
-
buildServiceBase:
|
|
4717
|
-
bundleType:
|
|
4772
|
+
})(go || (go = {}));
|
|
4773
|
+
var Mc = wt("math-rendering", () => kt()), Rc = wt("pie-scoring", () => kt()), Cc = wt("pie-updates", () => kt()), xc = wt("pie-initialization", () => kt()), Dc = {
|
|
4774
|
+
buildServiceBase: Jl,
|
|
4775
|
+
bundleType: ii.player,
|
|
4718
4776
|
env: {
|
|
4719
4777
|
mode: "gather",
|
|
4720
4778
|
role: "student"
|
|
4721
4779
|
}
|
|
4722
|
-
},
|
|
4780
|
+
}, Nc = wt("instrumentation-event-bridge", () => kt()), Vc = wt("instrumentation-provider-resolution", () => kt()), oc = [
|
|
4723
4781
|
"a[href]",
|
|
4724
4782
|
"button:not([disabled])",
|
|
4725
4783
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -4727,16 +4785,16 @@ var Ac = wt("math-rendering", () => kt()), $c = wt("pie-scoring", () => kt()), P
|
|
|
4727
4785
|
"textarea:not([disabled])",
|
|
4728
4786
|
"[tabindex]:not([tabindex='-1'])"
|
|
4729
4787
|
].join(",");
|
|
4730
|
-
function
|
|
4731
|
-
return Array.from(e.querySelectorAll(
|
|
4788
|
+
function Nn(e) {
|
|
4789
|
+
return Array.from(e.querySelectorAll(oc)).filter((t) => t.hasAttribute("disabled") ? !1 : t.offsetParent !== null || t.getClientRects().length > 0);
|
|
4732
4790
|
}
|
|
4733
|
-
function
|
|
4791
|
+
function nc(e, t) {
|
|
4734
4792
|
try {
|
|
4735
4793
|
if (t && e.contains(t)) {
|
|
4736
4794
|
t.focus();
|
|
4737
4795
|
return;
|
|
4738
4796
|
}
|
|
4739
|
-
const r =
|
|
4797
|
+
const r = Nn(e);
|
|
4740
4798
|
if (r.length > 0) {
|
|
4741
4799
|
r[0].focus();
|
|
4742
4800
|
return;
|
|
@@ -4745,14 +4803,14 @@ function ec(e, t) {
|
|
|
4745
4803
|
} catch {
|
|
4746
4804
|
}
|
|
4747
4805
|
}
|
|
4748
|
-
function
|
|
4806
|
+
function sc(e, t = {}) {
|
|
4749
4807
|
const r = typeof document < "u" ? document.activeElement : null, i = (o) => {
|
|
4750
4808
|
if (o.key === "Escape") {
|
|
4751
4809
|
t.onEscape?.();
|
|
4752
4810
|
return;
|
|
4753
4811
|
}
|
|
4754
4812
|
if (o.key !== "Tab") return;
|
|
4755
|
-
const n =
|
|
4813
|
+
const n = Nn(e);
|
|
4756
4814
|
if (!n.length) {
|
|
4757
4815
|
o.preventDefault(), e.focus?.();
|
|
4758
4816
|
return;
|
|
@@ -4764,7 +4822,7 @@ function tc(e, t = {}) {
|
|
|
4764
4822
|
}
|
|
4765
4823
|
a === n.length - 1 && (o.preventDefault(), n[0].focus());
|
|
4766
4824
|
};
|
|
4767
|
-
return queueMicrotask(() =>
|
|
4825
|
+
return queueMicrotask(() => nc(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
4768
4826
|
e.removeEventListener("keydown", i);
|
|
4769
4827
|
try {
|
|
4770
4828
|
r?.focus?.();
|
|
@@ -4772,40 +4830,40 @@ function tc(e, t = {}) {
|
|
|
4772
4830
|
}
|
|
4773
4831
|
};
|
|
4774
4832
|
}
|
|
4775
|
-
function
|
|
4833
|
+
function ac(e) {
|
|
4776
4834
|
try {
|
|
4777
4835
|
return typeof localStorage > "u" ? null : localStorage.getItem(e);
|
|
4778
4836
|
} catch {
|
|
4779
4837
|
return null;
|
|
4780
4838
|
}
|
|
4781
4839
|
}
|
|
4782
|
-
function
|
|
4840
|
+
function lc(e, t) {
|
|
4783
4841
|
try {
|
|
4784
4842
|
if (typeof localStorage > "u") return;
|
|
4785
4843
|
localStorage.setItem(e, t);
|
|
4786
4844
|
} catch {
|
|
4787
4845
|
}
|
|
4788
4846
|
}
|
|
4789
|
-
var
|
|
4847
|
+
var cc = /* @__PURE__ */ ua('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-17qy4wk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), uc = /* @__PURE__ */ wi('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__info svelte-17qy4wk"><div class="pie-tool-color-scheme__name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__description svelte-17qy4wk"> </div></div> <!></button>'), fc = /* @__PURE__ */ wi('<div class="pie-tool-color-scheme__dropdown svelte-17qy4wk" role="menu"></div>'), dc = /* @__PURE__ */ wi('<div class="pie-tool-color-scheme svelte-17qy4wk" role="dialog" tabindex="-1" aria-label="Theme selector"><div class="pie-tool-color-scheme__content svelte-17qy4wk"><p class="pie-tool-color-scheme__description svelte-17qy4wk">Select a theme to improve readability and reduce eye strain.</p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-17qy4wk" aria-label="Select theme"><div class="pie-tool-color-scheme__current svelte-17qy4wk"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-17qy4wk"><div class="pie-tool-color-scheme__current-name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__current-description svelte-17qy4wk"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-17qy4wk" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div></button> <!></div></div>'), hc = {
|
|
4790
4848
|
hash: "svelte-17qy4wk",
|
|
4791
4849
|
code: `.pie-tool-color-scheme.svelte-17qy4wk {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-17qy4wk {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-17qy4wk {margin:0 0 1rem 0;color:var(--pie-text, black);opacity:0.7;font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk {width:100%;padding:0.75rem;border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;background-color:var(--pie-background, white);color:var(--pie-text, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, #f0f0f0);}.pie-tool-color-scheme__current.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-17qy4wk {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);}.pie-tool-color-scheme__current-description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__dropdown-arrow.svelte-17qy4wk {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-17qy4wk {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, rgba(0, 0, 0, 0.05));}.pie-tool-color-scheme__option--active.svelte-17qy4wk {background-color:var(--pie-primary-light, rgba(63, 81, 181, 0.1));}.pie-tool-color-scheme__preview.svelte-17qy4wk {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-17qy4wk {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;}.pie-tool-color-scheme__preview-text.svelte-17qy4wk {font-weight:700;font-size:1.25rem;}.pie-tool-color-scheme__preview-primary.svelte-17qy4wk {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;}.pie-tool-color-scheme__info.svelte-17qy4wk {flex:1;}.pie-tool-color-scheme__name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);line-height:1.25;}.pie-tool-color-scheme__description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__check.svelte-17qy4wk {flex-shrink:0;width:1rem;height:1rem;color:var(--pie-primary, #3f51b5);}
|
|
4792
4850
|
|
|
4793
4851
|
/* Keyboard focus styling */.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:focus-visible,
|
|
4794
4852
|
.pie-tool-color-scheme__option.svelte-17qy4wk:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}`
|
|
4795
4853
|
};
|
|
4796
|
-
function
|
|
4797
|
-
|
|
4854
|
+
function pc(e, t) {
|
|
4855
|
+
Eo(t, !0), Ea(e, hc);
|
|
4798
4856
|
const r = typeof window < "u";
|
|
4799
4857
|
let i = Yt(t, "visible", 7, !1), o = Yt(t, "toolId", 7, "theme"), n = Yt(t, "schemes", 7, ""), s = Yt(t, "schemeCatalog", 7, null), a = /* @__PURE__ */ X(void 0), l = /* @__PURE__ */ X(null);
|
|
4800
|
-
const u = /* @__PURE__ */
|
|
4801
|
-
let
|
|
4858
|
+
const u = /* @__PURE__ */ Lr(() => _(l)?.toolCoordinator);
|
|
4859
|
+
let d = /* @__PURE__ */ X(!1);
|
|
4802
4860
|
ct(() => {
|
|
4803
4861
|
if (_(a))
|
|
4804
|
-
return
|
|
4862
|
+
return Ua(_(a), (y) => {
|
|
4805
4863
|
V(l, y, !0);
|
|
4806
4864
|
});
|
|
4807
4865
|
});
|
|
4808
|
-
const
|
|
4866
|
+
const h = {
|
|
4809
4867
|
bg: "#ffffff",
|
|
4810
4868
|
text: "#000000",
|
|
4811
4869
|
primary: "#3f51b5"
|
|
@@ -4817,27 +4875,27 @@ function cc(e, t) {
|
|
|
4817
4875
|
primary: y?.["--pie-primary"] || k.primary
|
|
4818
4876
|
};
|
|
4819
4877
|
}
|
|
4820
|
-
function
|
|
4878
|
+
function v(y) {
|
|
4821
4879
|
if (!y || typeof y != "object") return null;
|
|
4822
|
-
const k = y,
|
|
4823
|
-
if (!
|
|
4824
|
-
const
|
|
4880
|
+
const k = y, M = typeof k.id == "string" ? k.id.trim() : "";
|
|
4881
|
+
if (!M) return null;
|
|
4882
|
+
const q = typeof k.name == "string" && k.name.trim() ? k.name.trim() : M, ot = typeof k.description == "string" ? k.description : "", ee = k.preview;
|
|
4825
4883
|
return {
|
|
4826
|
-
id:
|
|
4827
|
-
name:
|
|
4884
|
+
id: M,
|
|
4885
|
+
name: q,
|
|
4828
4886
|
description: ot,
|
|
4829
4887
|
preview: ee && typeof ee == "object" && typeof ee.bg == "string" && typeof ee.text == "string" && typeof ee.primary == "string" ? {
|
|
4830
4888
|
bg: ee.bg,
|
|
4831
4889
|
text: ee.text,
|
|
4832
4890
|
primary: ee.primary
|
|
4833
|
-
} : f(typeof k.variables == "object" && k.variables ? k.variables : void 0,
|
|
4891
|
+
} : f(typeof k.variables == "object" && k.variables ? k.variables : void 0, h)
|
|
4834
4892
|
};
|
|
4835
4893
|
}
|
|
4836
|
-
function
|
|
4894
|
+
function m(y) {
|
|
4837
4895
|
if (!y?.trim()) return [];
|
|
4838
4896
|
try {
|
|
4839
4897
|
const k = JSON.parse(y);
|
|
4840
|
-
return Array.isArray(k) ? k.map((
|
|
4898
|
+
return Array.isArray(k) ? k.map((M) => v(M)).filter((M) => !!M) : [];
|
|
4841
4899
|
} catch {
|
|
4842
4900
|
return [];
|
|
4843
4901
|
}
|
|
@@ -4848,84 +4906,84 @@ function cc(e, t) {
|
|
|
4848
4906
|
const k = document.querySelector('pie-theme[scope="document"]');
|
|
4849
4907
|
return k || document.querySelector("pie-theme");
|
|
4850
4908
|
}
|
|
4851
|
-
function
|
|
4852
|
-
return
|
|
4909
|
+
function p() {
|
|
4910
|
+
return jl().map((y) => ({
|
|
4853
4911
|
id: y.id,
|
|
4854
4912
|
name: y.name || y.id,
|
|
4855
4913
|
description: y.description || "",
|
|
4856
|
-
preview: y.preview || f(y.variables,
|
|
4914
|
+
preview: y.preview || f(y.variables, h)
|
|
4857
4915
|
}));
|
|
4858
4916
|
}
|
|
4859
|
-
const b = /* @__PURE__ */
|
|
4917
|
+
const b = /* @__PURE__ */ Lr(() => {
|
|
4860
4918
|
if (Array.isArray(s()) && s().length > 0) {
|
|
4861
|
-
const
|
|
4862
|
-
if (
|
|
4919
|
+
const M = s().map((q) => v(q)).filter((q) => !!q);
|
|
4920
|
+
if (M.length > 0) return M;
|
|
4863
4921
|
}
|
|
4864
|
-
const y =
|
|
4922
|
+
const y = m(n());
|
|
4865
4923
|
if (y.length > 0) return y;
|
|
4866
|
-
const k =
|
|
4924
|
+
const k = p();
|
|
4867
4925
|
return k.length > 0 ? k : [{
|
|
4868
4926
|
id: "default",
|
|
4869
4927
|
name: "Default",
|
|
4870
4928
|
description: "",
|
|
4871
|
-
preview:
|
|
4929
|
+
preview: h
|
|
4872
4930
|
}];
|
|
4873
4931
|
});
|
|
4874
|
-
let
|
|
4932
|
+
let R = /* @__PURE__ */ X("default"), S = /* @__PURE__ */ X(!1), L = null;
|
|
4875
4933
|
function U(y) {
|
|
4876
4934
|
if (!r) return;
|
|
4877
4935
|
const k = w();
|
|
4878
4936
|
if (k) k.setAttribute("scheme", y || "default");
|
|
4879
4937
|
else {
|
|
4880
|
-
const
|
|
4881
|
-
y === "default" ?
|
|
4938
|
+
const M = document.documentElement;
|
|
4939
|
+
y === "default" ? M.removeAttribute("data-color-scheme") : M.setAttribute("data-color-scheme", y);
|
|
4882
4940
|
}
|
|
4883
|
-
|
|
4941
|
+
lc("pie-color-scheme", y);
|
|
4884
4942
|
}
|
|
4885
|
-
function
|
|
4886
|
-
V(
|
|
4943
|
+
function W(y) {
|
|
4944
|
+
V(R, y, !0), U(y), _(u)?.hideTool(o());
|
|
4887
4945
|
}
|
|
4888
4946
|
function Z() {
|
|
4889
4947
|
V(S, !_(S));
|
|
4890
4948
|
}
|
|
4891
|
-
let H = /* @__PURE__ */
|
|
4949
|
+
let H = /* @__PURE__ */ Lr(() => _(b).find((y) => y.id === _(R)) || _(b)[0] || {
|
|
4892
4950
|
id: "default",
|
|
4893
4951
|
name: "Default",
|
|
4894
4952
|
description: "",
|
|
4895
|
-
preview:
|
|
4953
|
+
preview: h
|
|
4896
4954
|
});
|
|
4897
4955
|
ct(() => {
|
|
4898
|
-
_(b).find((y) => y.id === _(
|
|
4956
|
+
_(b).find((y) => y.id === _(R)) || V(R, _(b)[0]?.id || "default", !0);
|
|
4899
4957
|
});
|
|
4900
|
-
function
|
|
4958
|
+
function Wt(y) {
|
|
4901
4959
|
if (y.key === "Escape")
|
|
4902
4960
|
_(S) && V(S, !1);
|
|
4903
4961
|
else if (_(S) && (y.key === "ArrowDown" || y.key === "ArrowUp")) {
|
|
4904
4962
|
y.preventDefault();
|
|
4905
4963
|
const k = _(a)?.querySelectorAll(".pie-tool-color-scheme__option:not([disabled])");
|
|
4906
4964
|
if (!k || k.length === 0) return;
|
|
4907
|
-
const
|
|
4908
|
-
let
|
|
4909
|
-
y.key === "ArrowDown" ?
|
|
4965
|
+
const M = Array.from(k).findIndex((ot) => ot === document.activeElement);
|
|
4966
|
+
let q;
|
|
4967
|
+
y.key === "ArrowDown" ? q = M === -1 ? 0 : (M + 1) % k.length : q = M === -1 ? k.length - 1 : (M - 1 + k.length) % k.length, k[q]?.focus();
|
|
4910
4968
|
}
|
|
4911
4969
|
}
|
|
4912
4970
|
ct(() => {
|
|
4913
|
-
_(u) && o() && !_(
|
|
4971
|
+
_(u) && o() && !_(d) && (_(u).registerTool(o(), "Theme", void 0, Xr.MODAL), V(d, !0));
|
|
4914
4972
|
}), ct(() => {
|
|
4915
4973
|
_(u) && _(a) && o() && _(u).updateToolElement(o(), _(a));
|
|
4916
4974
|
}), ct(() => {
|
|
4917
|
-
!i() &&
|
|
4918
|
-
}),
|
|
4975
|
+
!i() && L ? (L(), L = null) : i() && _(a) && !L && (L = sc(_(a)));
|
|
4976
|
+
}), ba(() => {
|
|
4919
4977
|
if (r) {
|
|
4920
|
-
const k = w()?.getAttribute("scheme"),
|
|
4921
|
-
V(
|
|
4922
|
-
U(
|
|
4978
|
+
const k = w()?.getAttribute("scheme"), M = ac("pie-color-scheme") ?? k ?? "default";
|
|
4979
|
+
V(R, M, !0), M && requestAnimationFrame(() => {
|
|
4980
|
+
U(M);
|
|
4923
4981
|
});
|
|
4924
4982
|
}
|
|
4925
4983
|
function y(k) {
|
|
4926
4984
|
if (!_(S)) return;
|
|
4927
|
-
const
|
|
4928
|
-
(!_(a) || !
|
|
4985
|
+
const M = k.composedPath();
|
|
4986
|
+
(!_(a) || !M.includes(_(a))) && V(S, !1);
|
|
4929
4987
|
}
|
|
4930
4988
|
return document.addEventListener("click", y), () => {
|
|
4931
4989
|
document.removeEventListener("click", y), _(u) && o() && _(u).unregisterTool(o());
|
|
@@ -4936,67 +4994,67 @@ function cc(e, t) {
|
|
|
4936
4994
|
return i();
|
|
4937
4995
|
},
|
|
4938
4996
|
set visible(y = !1) {
|
|
4939
|
-
i(y),
|
|
4997
|
+
i(y), It();
|
|
4940
4998
|
},
|
|
4941
4999
|
get toolId() {
|
|
4942
5000
|
return o();
|
|
4943
5001
|
},
|
|
4944
5002
|
set toolId(y = "theme") {
|
|
4945
|
-
o(y),
|
|
5003
|
+
o(y), It();
|
|
4946
5004
|
},
|
|
4947
5005
|
get schemes() {
|
|
4948
5006
|
return n();
|
|
4949
5007
|
},
|
|
4950
5008
|
set schemes(y = "") {
|
|
4951
|
-
n(y),
|
|
5009
|
+
n(y), It();
|
|
4952
5010
|
},
|
|
4953
5011
|
get schemeCatalog() {
|
|
4954
5012
|
return s();
|
|
4955
5013
|
},
|
|
4956
5014
|
set schemeCatalog(y = null) {
|
|
4957
|
-
s(y),
|
|
5015
|
+
s(y), It();
|
|
4958
5016
|
}
|
|
4959
|
-
},
|
|
4960
|
-
var k =
|
|
4961
|
-
|
|
4962
|
-
var
|
|
4963
|
-
|
|
4964
|
-
var
|
|
4965
|
-
|
|
4966
|
-
var
|
|
4967
|
-
var
|
|
4968
|
-
|
|
4969
|
-
var
|
|
4970
|
-
let
|
|
4971
|
-
var
|
|
4972
|
-
|
|
4973
|
-
var
|
|
4974
|
-
|
|
4975
|
-
var
|
|
4976
|
-
|
|
4977
|
-
var
|
|
4978
|
-
var
|
|
4979
|
-
ut(Ir,
|
|
5017
|
+
}, Bt = fa(), _r = Ks(Bt), Vn = (y) => {
|
|
5018
|
+
var k = dc(), M = z(k), q = Se(z(M), 2), ot = z(q), ee = z(ot), br = z(ee), Ei = z(br), jn = Se(Ei, 2);
|
|
5019
|
+
B(br), B(ee);
|
|
5020
|
+
var Ai = Se(ee, 2), yr = z(Ai), Wn = z(yr, !0);
|
|
5021
|
+
B(yr);
|
|
5022
|
+
var Ii = Se(yr, 2), Bn = z(Ii, !0);
|
|
5023
|
+
B(Ii), B(Ai), wo(2), B(ot), B(q);
|
|
5024
|
+
var qn = Se(q, 2), zn = (Tt) => {
|
|
5025
|
+
var wr = fc();
|
|
5026
|
+
ka(wr, 21, () => _(b), (kr) => kr.id, (kr, ve) => {
|
|
5027
|
+
var qe = uc();
|
|
5028
|
+
let $i;
|
|
5029
|
+
var Tr = z(qe), Sr = z(Tr), Oi = z(Sr), Fn = Se(Oi, 2);
|
|
5030
|
+
B(Sr), B(Tr);
|
|
5031
|
+
var Er = Se(Tr, 2), Ar = z(Er), Un = z(Ar, !0);
|
|
5032
|
+
B(Ar);
|
|
5033
|
+
var Li = Se(Ar, 2), Hn = z(Li, !0);
|
|
5034
|
+
B(Li), B(Er);
|
|
5035
|
+
var Gn = Se(Er, 2), Kn = (Ir) => {
|
|
5036
|
+
var Yn = cc();
|
|
5037
|
+
ut(Ir, Yn);
|
|
4980
5038
|
};
|
|
4981
|
-
|
|
4982
|
-
_(
|
|
4983
|
-
}),
|
|
4984
|
-
|
|
4985
|
-
}),
|
|
4986
|
-
}),
|
|
5039
|
+
Cr(Gn, (Ir) => {
|
|
5040
|
+
_(R) === _(ve).id && Ir(Kn);
|
|
5041
|
+
}), B(qe), Fi(() => {
|
|
5042
|
+
$i = $a(qe, 1, "pie-tool-color-scheme__option svelte-17qy4wk", null, $i, { "pie-tool-color-scheme__option--active": _(R) === _(ve).id }), Nr(qe, "aria-label", _(ve).name), Nr(qe, "aria-current", _(R) === _(ve).id), nt(Sr, `background-color: ${_(ve).preview.bg ?? ""}`), nt(Oi, `color: ${_(ve).preview.text ?? ""}`), nt(Fn, `background-color: ${_(ve).preview.primary ?? ""}`), Ht(Un, _(ve).name), Ht(Hn, _(ve).description);
|
|
5043
|
+
}), Pr("click", qe, () => W(_(ve).id)), ut(kr, qe);
|
|
5044
|
+
}), B(wr), ut(Tt, wr);
|
|
4987
5045
|
};
|
|
4988
|
-
|
|
4989
|
-
_(S) && Tt(
|
|
4990
|
-
}),
|
|
4991
|
-
|
|
4992
|
-
}),
|
|
5046
|
+
Cr(qn, (Tt) => {
|
|
5047
|
+
_(S) && Tt(zn);
|
|
5048
|
+
}), B(M), B(k), xa(k, (Tt) => V(a, Tt), () => _(a)), Fi(() => {
|
|
5049
|
+
Nr(q, "aria-expanded", _(S)), nt(br, `background-color: ${_(H).preview.bg ?? ""}`), nt(Ei, `color: ${_(H).preview.text ?? ""}`), nt(jn, `background-color: ${_(H).preview.primary ?? ""}`), Ht(Wn, _(H).name), Ht(Bn, _(H).description);
|
|
5050
|
+
}), Pr("keydown", k, Wt), Pr("click", q, Z), ut(y, k);
|
|
4993
5051
|
};
|
|
4994
|
-
return
|
|
4995
|
-
i() && y(
|
|
4996
|
-
}), ut(e,
|
|
5052
|
+
return Cr(_r, (y) => {
|
|
5053
|
+
i() && y(Vn);
|
|
5054
|
+
}), ut(e, Bt), Ao(N);
|
|
4997
5055
|
}
|
|
4998
|
-
|
|
4999
|
-
customElements.define("pie-tool-theme",
|
|
5056
|
+
sa(["keydown", "click"]);
|
|
5057
|
+
customElements.define("pie-tool-theme", ja(pc, {
|
|
5000
5058
|
visible: {
|
|
5001
5059
|
attribute: "visible",
|
|
5002
5060
|
type: "Boolean"
|
|
@@ -5012,5 +5070,5 @@ customElements.define("pie-tool-theme", xa(cc, {
|
|
|
5012
5070
|
schemeCatalog: { type: "Object" }
|
|
5013
5071
|
}, [], [], { mode: "open" }));
|
|
5014
5072
|
export {
|
|
5015
|
-
|
|
5073
|
+
pc as default
|
|
5016
5074
|
};
|