@pie-players/pie-tool-theme 0.3.41 → 0.3.42
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 +945 -929
- package/package.json +5 -5
|
@@ -4,12 +4,12 @@ if (typeof window < "u") {
|
|
|
4
4
|
((go = (_o = window).__svelte ?? (_o.__svelte = {})).v ?? (go.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
var mr = {}, ee = /* @__PURE__ */ Symbol();
|
|
7
|
-
var
|
|
7
|
+
var fs = Array.isArray, Ha = Array.prototype.indexOf, gr = Array.prototype.includes, Li = Array.from, yi = Object.keys, wi = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, Wa = Object.getOwnPropertyDescriptors, Ba = Object.prototype, ja = Array.prototype, us = Object.getPrototypeOf, bo = Object.isExtensible, Va = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function Ga(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ds() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,58 +19,58 @@ function fs() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Fu = 1 << 24, Me = 1024, We = 2048, qt = 4096, Cn = 8192, qa = 16384, $n = 32768, yo = 1 << 25, Pn = 65536, zu = 1 << 17, Hu = 1 << 18, kr = 1 << 19, Ya = 1 << 20, zr = 1 << 25, Gr = 65536, wo = 1 << 21, Ka = 1 << 22, Ti = 1 << 23, Hr = /* @__PURE__ */ Symbol("$state"), ps = /* @__PURE__ */ Symbol("legacy props"), Xa = /* @__PURE__ */ Symbol(""), Ja = /* @__PURE__ */ Symbol("proxy path");
|
|
23
23
|
var ct = new class extends Error {
|
|
24
24
|
constructor(...t) {
|
|
25
25
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
26
26
|
}
|
|
27
|
-
}(),
|
|
28
|
-
function
|
|
27
|
+
}(), Qa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
+
function Za(e) {
|
|
29
29
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function el() {
|
|
32
32
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function tl(e, t, r) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function rl(e) {
|
|
38
38
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function il() {
|
|
41
41
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function nl(e) {
|
|
44
44
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ol() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function sl() {
|
|
50
50
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function al(e) {
|
|
53
53
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ll() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function cl() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function fl() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ul() {
|
|
65
65
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function dl() {
|
|
68
68
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
69
69
|
}
|
|
70
70
|
function Ri(e) {
|
|
71
71
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function pl() {
|
|
74
74
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
75
75
|
}
|
|
76
76
|
var D = !1;
|
|
@@ -93,7 +93,7 @@ function oe(e) {
|
|
|
93
93
|
x = e;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function hs(e = 1) {
|
|
97
97
|
if (D) {
|
|
98
98
|
for (var t = e, r = x; t--; ) r = /* @__PURE__ */ Ze(r);
|
|
99
99
|
x = r;
|
|
@@ -112,32 +112,32 @@ function ki(e = !0) {
|
|
|
112
112
|
e && r.remove(), r = n;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function vs(e) {
|
|
116
116
|
if (!e || e.nodeType !== 8)
|
|
117
117
|
throw Ri(), mr;
|
|
118
118
|
return e.data;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ms(e) {
|
|
121
121
|
return e === this.v;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function hl(e, t) {
|
|
124
124
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return !
|
|
126
|
+
function gs(e) {
|
|
127
|
+
return !hl(e, this.v);
|
|
128
128
|
}
|
|
129
129
|
var dt = !1, qr = !1;
|
|
130
130
|
function To(e, t) {
|
|
131
|
-
return e.label = t,
|
|
131
|
+
return e.label = t, vl(e.v, t), e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return e?.[
|
|
133
|
+
function vl(e, t) {
|
|
134
|
+
return e?.[Ja]?.(t), e;
|
|
135
135
|
}
|
|
136
136
|
var j = null;
|
|
137
137
|
function _r(e) {
|
|
138
138
|
j = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function _s(e, t = !1, r) {
|
|
141
141
|
j = {
|
|
142
142
|
p: j,
|
|
143
143
|
i: !1,
|
|
@@ -153,43 +153,43 @@ function ms(e, t = !1, r) {
|
|
|
153
153
|
} : null
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function bs(e) {
|
|
157
157
|
var t = j, r = t.e;
|
|
158
158
|
if (r !== null) {
|
|
159
159
|
t.e = null;
|
|
160
|
-
for (var i of r)
|
|
160
|
+
for (var i of r) Gs(i);
|
|
161
161
|
}
|
|
162
162
|
return e !== void 0 && (t.x = e), t.i = !0, j = t.p, e ?? {};
|
|
163
163
|
}
|
|
164
164
|
function Yr() {
|
|
165
165
|
return !qr || j !== null && j.l === null;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
var e =
|
|
170
|
-
|
|
167
|
+
var Dt = [];
|
|
168
|
+
function ys() {
|
|
169
|
+
var e = Dt;
|
|
170
|
+
Dt = [], Ga(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
var t =
|
|
172
|
+
function Vt(e) {
|
|
173
|
+
if (Dt.length === 0 && !Wr) {
|
|
174
|
+
var t = Dt;
|
|
175
175
|
queueMicrotask(() => {
|
|
176
|
-
t ===
|
|
176
|
+
t === Dt && ys();
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
Dt.push(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
for (;
|
|
181
|
+
function ml() {
|
|
182
|
+
for (; Dt.length > 0; ) ys();
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ws(e) {
|
|
185
185
|
var t = C;
|
|
186
186
|
if (t === null)
|
|
187
187
|
return P.f |= Ti, e;
|
|
188
188
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
189
189
|
throw e;
|
|
190
|
-
|
|
190
|
+
Ot(e, t);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ot(e, t) {
|
|
193
193
|
for (; t !== null; ) {
|
|
194
194
|
if ((t.f & 128) !== 0) {
|
|
195
195
|
if ((t.f & 32768) === 0) throw e;
|
|
@@ -204,23 +204,23 @@ function St(e, t) {
|
|
|
204
204
|
}
|
|
205
205
|
throw e;
|
|
206
206
|
}
|
|
207
|
-
var
|
|
207
|
+
var gl = ~(We | qt | Me);
|
|
208
208
|
function V(e, t) {
|
|
209
|
-
e.f = e.f &
|
|
209
|
+
e.f = e.f & gl | t;
|
|
210
210
|
}
|
|
211
211
|
function xn(e) {
|
|
212
|
-
(e.f & 512) !== 0 || e.deps === null ? V(e, Me) : V(e,
|
|
212
|
+
(e.f & 512) !== 0 || e.deps === null ? V(e, Me) : V(e, qt);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ts(e) {
|
|
215
215
|
if (e !== null)
|
|
216
216
|
for (const t of e)
|
|
217
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Gr,
|
|
217
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Gr, Ts(t.deps));
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
219
|
+
function ks(e, t, r) {
|
|
220
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), Ts(e.deps), V(e, Me);
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
function
|
|
222
|
+
var _l = !1, ni = !1;
|
|
223
|
+
function bl(e) {
|
|
224
224
|
var t = ni;
|
|
225
225
|
try {
|
|
226
226
|
return ni = !1, [e(), ni];
|
|
@@ -228,46 +228,46 @@ function gl(e) {
|
|
|
228
228
|
ni = t;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Es(e, t) {
|
|
232
232
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
233
233
|
}
|
|
234
234
|
function Dn(e, t) {
|
|
235
|
-
|
|
235
|
+
Es(e, t), t.add(e);
|
|
236
236
|
}
|
|
237
237
|
function L(e, t, r) {
|
|
238
|
-
|
|
238
|
+
Es(e, t), t.set(e, r);
|
|
239
239
|
}
|
|
240
240
|
function N(e, t, r) {
|
|
241
241
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
242
242
|
throw new TypeError("Private element is not present on this object");
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function f(e, t) {
|
|
245
245
|
return e.get(N(e, t));
|
|
246
246
|
}
|
|
247
247
|
function R(e, t, r) {
|
|
248
248
|
return e.set(N(e, t), r), r;
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
var
|
|
250
|
+
var As, Xe = /* @__PURE__ */ new Set(), $ = null, ko = null, ce = null, fn = null, Wr = !1, Bi = !1, br = null, Ei = null, Ss = 0;
|
|
251
|
+
var yl = 1, Ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakSet(), Yt = class Is {
|
|
252
252
|
constructor() {
|
|
253
|
-
Dn(this, me), b(this, "id",
|
|
253
|
+
Dn(this, me), b(this, "id", yl++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), L(this, Ai, /* @__PURE__ */ new Set()), L(this, oi, /* @__PURE__ */ new Set()), L(this, Or, /* @__PURE__ */ new Set()), L(this, xt, /* @__PURE__ */ new Map()), L(this, St, /* @__PURE__ */ new Map()), L(this, pi, null), L(this, Fe, []), L(this, un, []), L(this, yr, /* @__PURE__ */ new Set()), L(this, Ft, /* @__PURE__ */ new Set()), L(this, It, /* @__PURE__ */ new Map()), L(this, hi, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), L(this, si, !1), L(this, vr, /* @__PURE__ */ new Set());
|
|
254
254
|
}
|
|
255
255
|
skip_effect(t) {
|
|
256
|
-
|
|
256
|
+
f(It, this).has(t) || f(It, this).set(t, {
|
|
257
257
|
d: [],
|
|
258
258
|
m: []
|
|
259
|
-
}),
|
|
259
|
+
}), f(hi, this).delete(t);
|
|
260
260
|
}
|
|
261
261
|
unskip_effect(t, r = (i) => this.schedule(i)) {
|
|
262
|
-
var i =
|
|
262
|
+
var i = f(It, this).get(t);
|
|
263
263
|
if (i) {
|
|
264
|
-
|
|
264
|
+
f(It, this).delete(t);
|
|
265
265
|
for (var n of i.d)
|
|
266
266
|
V(n, We), r(n);
|
|
267
267
|
for (n of i.m)
|
|
268
|
-
V(n,
|
|
268
|
+
V(n, qt), r(n);
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
f(hi, this).add(t);
|
|
271
271
|
}
|
|
272
272
|
capture(t, r, i = !1) {
|
|
273
273
|
t.v !== ee && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, i]), ce?.set(t, r)), this.is_fork || (t.v = r);
|
|
@@ -283,58 +283,58 @@ var _l = 1, Ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap
|
|
|
283
283
|
try {
|
|
284
284
|
Bi = !0, $ = this, N(me, this, Nn).call(this);
|
|
285
285
|
} finally {
|
|
286
|
-
|
|
286
|
+
Ss = 0, fn = null, br = null, Ei = null, Bi = !1, $ = null, ce = null, Wt.clear();
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
discard() {
|
|
290
|
-
for (const t of
|
|
291
|
-
|
|
290
|
+
for (const t of f(oi, this)) t(this);
|
|
291
|
+
f(oi, this).clear(), f(Or, this).clear(), Xe.delete(this);
|
|
292
292
|
}
|
|
293
293
|
register_created_effect(t) {
|
|
294
|
-
|
|
294
|
+
f(un, this).push(t);
|
|
295
295
|
}
|
|
296
296
|
increment(t, r) {
|
|
297
|
-
let i =
|
|
298
|
-
if (
|
|
299
|
-
let n =
|
|
300
|
-
|
|
297
|
+
let i = f(xt, this).get(r) ?? 0;
|
|
298
|
+
if (f(xt, this).set(r, i + 1), t) {
|
|
299
|
+
let n = f(St, this).get(r) ?? 0;
|
|
300
|
+
f(St, this).set(r, n + 1);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
decrement(t, r, i) {
|
|
304
|
-
let n =
|
|
305
|
-
if (n === 1 ?
|
|
306
|
-
let o =
|
|
307
|
-
o === 1 ?
|
|
304
|
+
let n = f(xt, this).get(r) ?? 0;
|
|
305
|
+
if (n === 1 ? f(xt, this).delete(r) : f(xt, this).set(r, n - 1), t) {
|
|
306
|
+
let o = f(St, this).get(r) ?? 0;
|
|
307
|
+
o === 1 ? f(St, this).delete(r) : f(St, this).set(r, o - 1);
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
f(si, this) || i || (R(si, this, !0), Vt(() => {
|
|
310
310
|
R(si, this, !1), this.flush();
|
|
311
311
|
}));
|
|
312
312
|
}
|
|
313
313
|
transfer_effects(t, r) {
|
|
314
|
-
for (const i of t)
|
|
315
|
-
for (const i of r)
|
|
314
|
+
for (const i of t) f(yr, this).add(i);
|
|
315
|
+
for (const i of r) f(Ft, this).add(i);
|
|
316
316
|
t.clear(), r.clear();
|
|
317
317
|
}
|
|
318
318
|
oncommit(t) {
|
|
319
|
-
|
|
319
|
+
f(Ai, this).add(t);
|
|
320
320
|
}
|
|
321
321
|
ondiscard(t) {
|
|
322
|
-
|
|
322
|
+
f(oi, this).add(t);
|
|
323
323
|
}
|
|
324
324
|
on_fork_commit(t) {
|
|
325
|
-
|
|
325
|
+
f(Or, this).add(t);
|
|
326
326
|
}
|
|
327
327
|
run_fork_commit_callbacks() {
|
|
328
|
-
for (const t of
|
|
329
|
-
|
|
328
|
+
for (const t of f(Or, this)) t(this);
|
|
329
|
+
f(Or, this).clear();
|
|
330
330
|
}
|
|
331
331
|
settled() {
|
|
332
|
-
return (
|
|
332
|
+
return (f(pi, this) ?? R(pi, this, ds())).promise;
|
|
333
333
|
}
|
|
334
334
|
static ensure() {
|
|
335
335
|
if ($ === null) {
|
|
336
|
-
const t = $ = new
|
|
337
|
-
Bi || (Xe.add($), Wr ||
|
|
336
|
+
const t = $ = new Is();
|
|
337
|
+
Bi || (Xe.add($), Wr || Vt(() => {
|
|
338
338
|
$ === t && t.flush();
|
|
339
339
|
}));
|
|
340
340
|
}
|
|
@@ -352,7 +352,7 @@ var _l = 1, Ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap
|
|
|
352
352
|
var t = !1, r = !1;
|
|
353
353
|
if (i.id < this.id) for (const [n, [, o]] of i.current)
|
|
354
354
|
o || (t || (t = this.current.has(n)), r || (r = !this.current.has(n)));
|
|
355
|
-
if (t && r)
|
|
355
|
+
if (t && r) f(vr, this).add(i);
|
|
356
356
|
else for (const [n, o] of i.previous) ce.has(n) || ce.set(n, o);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -364,24 +364,24 @@ var _l = 1, Ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap
|
|
|
364
364
|
for (var r = t; r.parent !== null; ) {
|
|
365
365
|
r = r.parent;
|
|
366
366
|
var i = r.f;
|
|
367
|
-
if (br !== null && r === C && (dt || (P === null || (P.f & 2) === 0) && !
|
|
367
|
+
if (br !== null && r === C && (dt || (P === null || (P.f & 2) === 0) && !_l))
|
|
368
368
|
return;
|
|
369
369
|
if ((i & 96) !== 0) {
|
|
370
370
|
if ((i & 1024) === 0) return;
|
|
371
371
|
r.f ^= Me;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
f(Fe, this).push(r);
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
|
-
|
|
377
|
+
As = Yt;
|
|
378
378
|
function dn() {
|
|
379
|
-
return this.is_fork ||
|
|
379
|
+
return this.is_fork || f(St, this).size > 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
for (const r of
|
|
381
|
+
function wl() {
|
|
382
|
+
for (const r of f(vr, this)) for (const i of f(St, r).keys()) {
|
|
383
383
|
for (var e = !1, t = i; t.parent !== null; ) {
|
|
384
|
-
if (
|
|
384
|
+
if (f(It, this).has(t)) {
|
|
385
385
|
e = !0;
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
@@ -392,45 +392,45 @@ function bl() {
|
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
394
|
function Nn() {
|
|
395
|
-
if (
|
|
396
|
-
for (const s of
|
|
397
|
-
|
|
398
|
-
for (const s of
|
|
399
|
-
V(s,
|
|
395
|
+
if (Ss++ > 1e3 && (Xe.delete(this), kl()), !N(me, this, dn).call(this)) {
|
|
396
|
+
for (const s of f(yr, this))
|
|
397
|
+
f(Ft, this).delete(s), V(s, We), this.schedule(s);
|
|
398
|
+
for (const s of f(Ft, this))
|
|
399
|
+
V(s, qt), this.schedule(s);
|
|
400
400
|
}
|
|
401
|
-
const e =
|
|
401
|
+
const e = f(Fe, this);
|
|
402
402
|
R(Fe, this, []), this.apply();
|
|
403
403
|
var t = br = [], r = [], i = Ei = [];
|
|
404
404
|
for (const s of e) try {
|
|
405
|
-
N(me, this,
|
|
405
|
+
N(me, this, Os).call(this, s, t, r);
|
|
406
406
|
} catch (a) {
|
|
407
|
-
throw
|
|
407
|
+
throw Ms(s), a;
|
|
408
408
|
}
|
|
409
409
|
if ($ = null, i.length > 0) {
|
|
410
|
-
var n =
|
|
410
|
+
var n = As.ensure();
|
|
411
411
|
for (const s of i) n.schedule(s);
|
|
412
412
|
}
|
|
413
|
-
if (br = null, Ei = null, N(me, this, dn).call(this) || N(me, this,
|
|
413
|
+
if (br = null, Ei = null, N(me, this, dn).call(this) || N(me, this, wl).call(this)) {
|
|
414
414
|
N(me, this, pn).call(this, r), N(me, this, pn).call(this, t);
|
|
415
|
-
for (const [s, a] of
|
|
415
|
+
for (const [s, a] of f(It, this)) Rs(s, a);
|
|
416
416
|
} else {
|
|
417
|
-
|
|
418
|
-
for (const s of
|
|
419
|
-
|
|
417
|
+
f(xt, this).size === 0 && Xe.delete(this), f(yr, this).clear(), f(Ft, this).clear();
|
|
418
|
+
for (const s of f(Ai, this)) s(this);
|
|
419
|
+
f(Ai, this).clear(), ko = this, Eo(r), Eo(t), ko = null, f(pi, this)?.resolve();
|
|
420
420
|
}
|
|
421
421
|
var o = $;
|
|
422
|
-
if (
|
|
422
|
+
if (f(Fe, this).length > 0) {
|
|
423
423
|
const s = o ?? (o = this);
|
|
424
|
-
|
|
424
|
+
f(Fe, s).push(...f(Fe, this).filter((a) => !f(Fe, s).includes(a)));
|
|
425
425
|
}
|
|
426
|
-
o !== null && (Xe.add(o), N(me, o, Nn).call(o)), dt && !Xe.has(this) && N(me, this,
|
|
426
|
+
o !== null && (Xe.add(o), N(me, o, Nn).call(o)), dt && !Xe.has(this) && N(me, this, Tl).call(this);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Os(e, t, r) {
|
|
429
429
|
e.f ^= Me;
|
|
430
430
|
for (var i = e.first; i !== null; ) {
|
|
431
431
|
var n = i.f, o = (n & 96) !== 0;
|
|
432
|
-
if (!(o && (n & 1024) !== 0 || (n & 8192) !== 0 ||
|
|
433
|
-
o ? i.f ^= Me : (n & 4) !== 0 ? t.push(i) : dt && (n & 16777224) !== 0 ? r.push(i) : Kr(i) && ((n & 16) !== 0 &&
|
|
432
|
+
if (!(o && (n & 1024) !== 0 || (n & 8192) !== 0 || f(It, this).has(i)) && i.fn !== null) {
|
|
433
|
+
o ? i.f ^= Me : (n & 4) !== 0 ? t.push(i) : dt && (n & 16777224) !== 0 ? r.push(i) : Kr(i) && ((n & 16) !== 0 && f(Ft, this).add(i), Tr(i));
|
|
434
434
|
var s = i.first;
|
|
435
435
|
if (s !== null) {
|
|
436
436
|
i = s;
|
|
@@ -448,9 +448,9 @@ function Ss(e, t, r) {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function pn(e) {
|
|
451
|
-
for (var t = 0; t < e.length; t += 1)
|
|
451
|
+
for (var t = 0; t < e.length; t += 1) ks(e[t], f(yr, this), f(Ft, this));
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Tl() {
|
|
454
454
|
for (const u of Xe) {
|
|
455
455
|
var e = u.id < this.id, t = [];
|
|
456
456
|
for (const [d, [h, p]] of this.current) {
|
|
@@ -465,24 +465,24 @@ function yl() {
|
|
|
465
465
|
if (i.length === 0)
|
|
466
466
|
e && u.discard();
|
|
467
467
|
else if (t.length > 0) {
|
|
468
|
-
if (e) for (const d of
|
|
468
|
+
if (e) for (const d of f(hi, this)) u.unskip_effect(d, (h) => {
|
|
469
469
|
(h.f & 4194320) !== 0 ? u.schedule(h) : N(me, u, pn).call(u, [h]);
|
|
470
470
|
});
|
|
471
471
|
u.activate();
|
|
472
472
|
var n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
473
|
-
for (var s of t)
|
|
473
|
+
for (var s of t) Ls(s, i, n, o);
|
|
474
474
|
o = /* @__PURE__ */ new Map();
|
|
475
475
|
var a = [...u.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
|
|
476
|
-
for (const d of
|
|
477
|
-
if (
|
|
476
|
+
for (const d of f(un, this)) (d.f & 155648) === 0 && Un(d, a, o) && ((d.f & 4194320) !== 0 ? (V(d, We), u.schedule(d)) : f(yr, u).add(d));
|
|
477
|
+
if (f(Fe, u).length > 0) {
|
|
478
478
|
u.apply();
|
|
479
|
-
for (var
|
|
479
|
+
for (var c of f(Fe, u)) N(me, u, Os).call(u, c, [], []);
|
|
480
480
|
R(Fe, u, []);
|
|
481
481
|
}
|
|
482
482
|
u.deactivate();
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
for (const u of Xe)
|
|
485
|
+
for (const u of Xe) f(vr, u).has(this) && (f(vr, u).delete(this), f(vr, u).size === 0 && !N(me, u, dn).call(u) && (u.activate(), N(me, u, Nn).call(u)));
|
|
486
486
|
}
|
|
487
487
|
function Nr(e) {
|
|
488
488
|
var t = Wr;
|
|
@@ -490,23 +490,23 @@ function Nr(e) {
|
|
|
490
490
|
try {
|
|
491
491
|
var r;
|
|
492
492
|
for (e && ($ !== null && !$.is_fork && $.flush(), r = e()); ; ) {
|
|
493
|
-
if (
|
|
493
|
+
if (ml(), $ === null) return r;
|
|
494
494
|
$.flush();
|
|
495
495
|
}
|
|
496
496
|
} finally {
|
|
497
497
|
Wr = t;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function kl() {
|
|
501
501
|
if (0) {
|
|
502
502
|
var e;
|
|
503
503
|
for (const r of $.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
504
504
|
var t;
|
|
505
505
|
}
|
|
506
506
|
try {
|
|
507
|
-
|
|
507
|
+
ol();
|
|
508
508
|
} catch (r) {
|
|
509
|
-
|
|
509
|
+
Ot(r, fn);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
var Ye = null;
|
|
@@ -515,8 +515,8 @@ function Eo(e) {
|
|
|
515
515
|
if (t !== 0) {
|
|
516
516
|
for (var r = 0; r < t; ) {
|
|
517
517
|
var i = e[r++];
|
|
518
|
-
if ((i.f & 24576) === 0 && Kr(i) && (Ye = /* @__PURE__ */ new Set(), Tr(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
519
|
-
|
|
518
|
+
if ((i.f & 24576) === 0 && Kr(i) && (Ye = /* @__PURE__ */ new Set(), Tr(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Ks(i), Ye?.size > 0)) {
|
|
519
|
+
Wt.clear();
|
|
520
520
|
for (const n of Ye) {
|
|
521
521
|
if ((n.f & 24576) !== 0) continue;
|
|
522
522
|
const o = [n];
|
|
@@ -524,8 +524,8 @@ function Eo(e) {
|
|
|
524
524
|
for (; s !== null; )
|
|
525
525
|
Ye.has(s) && (Ye.delete(s), o.push(s)), s = s.parent;
|
|
526
526
|
for (let a = o.length - 1; a >= 0; a--) {
|
|
527
|
-
const
|
|
528
|
-
(
|
|
527
|
+
const c = o[a];
|
|
528
|
+
(c.f & 24576) === 0 && Tr(c);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
Ye.clear();
|
|
@@ -534,11 +534,11 @@ function Eo(e) {
|
|
|
534
534
|
Ye = null;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Ls(e, t, r, i) {
|
|
538
538
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
539
539
|
for (const n of e.reactions) {
|
|
540
540
|
const o = n.f;
|
|
541
|
-
(o & 2) !== 0 ?
|
|
541
|
+
(o & 2) !== 0 ? Ls(n, t, r, i) : (o & 4194320) !== 0 && (o & 2048) === 0 && Un(n, t, i) && (V(n, We), Fn(n));
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
function Un(e, t, r) {
|
|
@@ -554,211 +554,211 @@ function Un(e, t, r) {
|
|
|
554
554
|
function Fn(e) {
|
|
555
555
|
$.schedule(e);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Rs(e, t) {
|
|
558
558
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
559
559
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), V(e, Me);
|
|
560
560
|
for (var r = e.first; r !== null; )
|
|
561
|
-
|
|
561
|
+
Rs(r, t), r = r.next;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Ms(e) {
|
|
565
565
|
V(e, Me);
|
|
566
566
|
for (var t = e.first; t !== null; )
|
|
567
|
-
|
|
567
|
+
Ms(t), t = t.next;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
let t = 0, r =
|
|
569
|
+
function El(e) {
|
|
570
|
+
let t = 0, r = Gt(0), i;
|
|
571
571
|
return () => {
|
|
572
572
|
Vn() && (y(r), Gn(() => (t === 0 && (i = $i(() => e(() => Br(r)))), t += 1, () => {
|
|
573
|
-
|
|
573
|
+
Vt(() => {
|
|
574
574
|
t -= 1, t === 0 && (i?.(), i = void 0, Br(r));
|
|
575
575
|
});
|
|
576
576
|
})));
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
new
|
|
579
|
+
var Al = Pn | kr;
|
|
580
|
+
function Sl(e, t, r, i) {
|
|
581
|
+
new Il(e, t, r, i);
|
|
582
582
|
}
|
|
583
|
-
var He = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(),
|
|
583
|
+
var He = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakSet(), Il = class {
|
|
584
584
|
constructor(e, t, r, i) {
|
|
585
|
-
Dn(this, se), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), L(this, He, void 0), L(this, hn, D ? x : null), L(this, Ke, void 0), L(this, jr, void 0), L(this, Ie, void 0), L(this, Je, null), L(this, Te, null), L(this, Ue, null), L(this,
|
|
586
|
-
R(
|
|
585
|
+
Dn(this, se), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), L(this, He, void 0), L(this, hn, D ? x : null), L(this, Ke, void 0), L(this, jr, void 0), L(this, Ie, void 0), L(this, Je, null), L(this, Te, null), L(this, Ue, null), L(this, zt, null), L(this, cr, 0), L(this, Ht, 0), L(this, ai, !1), L(this, vn, /* @__PURE__ */ new Set()), L(this, mn, /* @__PURE__ */ new Set()), L(this, $t, null), L(this, Ao, El(() => (R($t, this, Gt(f(cr, this))), () => {
|
|
586
|
+
R($t, this, null);
|
|
587
587
|
}))), R(He, this, e), R(Ke, this, t), R(jr, this, (n) => {
|
|
588
588
|
var o = C;
|
|
589
589
|
o.b = this, o.f |= 128, r(n);
|
|
590
590
|
}), this.parent = C.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), R(Ie, this, qn(() => {
|
|
591
591
|
if (D) {
|
|
592
|
-
const n =
|
|
592
|
+
const n = f(hn, this);
|
|
593
593
|
Mi();
|
|
594
594
|
const o = n.data === "[!";
|
|
595
595
|
if (n.data.startsWith("[?")) {
|
|
596
596
|
const s = JSON.parse(n.data.slice(2));
|
|
597
|
-
N(se, this,
|
|
598
|
-
} else o ? N(se, this,
|
|
599
|
-
} else N(se, this,
|
|
600
|
-
},
|
|
597
|
+
N(se, this, Ll).call(this, s);
|
|
598
|
+
} else o ? N(se, this, Rl).call(this) : N(se, this, Ol).call(this);
|
|
599
|
+
} else N(se, this, Cs).call(this);
|
|
600
|
+
}, Al)), D && R(He, this, x);
|
|
601
601
|
}
|
|
602
602
|
defer_effect(e) {
|
|
603
|
-
|
|
603
|
+
ks(e, f(vn, this), f(mn, this));
|
|
604
604
|
}
|
|
605
605
|
is_rendered() {
|
|
606
606
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
607
607
|
}
|
|
608
608
|
has_pending_snippet() {
|
|
609
|
-
return !!
|
|
609
|
+
return !!f(Ke, this).pending;
|
|
610
610
|
}
|
|
611
611
|
update_pending_count(e, t) {
|
|
612
|
-
N(se, this,
|
|
613
|
-
R(ai, this, !1),
|
|
612
|
+
N(se, this, $s).call(this, e, t), R(cr, this, f(cr, this) + e), !(!f($t, this) || f(ai, this)) && (R(ai, this, !0), Vt(() => {
|
|
613
|
+
R(ai, this, !1), f($t, this) && wr(f($t, this), f(cr, this));
|
|
614
614
|
}));
|
|
615
615
|
}
|
|
616
616
|
get_effect_pending() {
|
|
617
|
-
return
|
|
617
|
+
return f(Ao, this).call(this), y(f($t, this));
|
|
618
618
|
}
|
|
619
619
|
error(e) {
|
|
620
|
-
if (!
|
|
621
|
-
$?.is_fork ? (
|
|
620
|
+
if (!f(Ke, this).onerror && !f(Ke, this).failed) throw e;
|
|
621
|
+
$?.is_fork ? (f(Je, this) && $.skip_effect(f(Je, this)), f(Te, this) && $.skip_effect(f(Te, this)), f(Ue, this) && $.skip_effect(f(Ue, this)), $.on_fork_commit(() => {
|
|
622
622
|
N(se, this, So).call(this, e);
|
|
623
623
|
})) : N(se, this, So).call(this, e);
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
|
-
function
|
|
626
|
+
function Ol() {
|
|
627
627
|
try {
|
|
628
|
-
R(Je, this, Ce(() =>
|
|
628
|
+
R(Je, this, Ce(() => f(jr, this).call(this, f(He, this))));
|
|
629
629
|
} catch (e) {
|
|
630
630
|
this.error(e);
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
const t =
|
|
633
|
+
function Ll(e) {
|
|
634
|
+
const t = f(Ke, this).failed;
|
|
635
635
|
t && R(Ue, this, Ce(() => {
|
|
636
|
-
t(
|
|
636
|
+
t(f(He, this), () => e, () => () => {
|
|
637
637
|
});
|
|
638
638
|
}));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
const e =
|
|
642
|
-
e && (this.is_pending = !0, R(Te, this, Ce(() => e(
|
|
643
|
-
var t = R(
|
|
644
|
-
t.append(r), R(Je, this, N(se, this, gn).call(this, () => Ce(() =>
|
|
640
|
+
function Rl() {
|
|
641
|
+
const e = f(Ke, this).pending;
|
|
642
|
+
e && (this.is_pending = !0, R(Te, this, Ce(() => e(f(He, this)))), Vt(() => {
|
|
643
|
+
var t = R(zt, this, document.createDocumentFragment()), r = Le();
|
|
644
|
+
t.append(r), R(Je, this, N(se, this, gn).call(this, () => Ce(() => f(jr, this).call(this, r)))), f(Ht, this) === 0 && (f(He, this).before(t), R(zt, this, null), Kt(f(Te, this), () => {
|
|
645
645
|
R(Te, this, null);
|
|
646
646
|
}), N(se, this, zn).call(this, $));
|
|
647
647
|
}));
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Cs() {
|
|
650
650
|
try {
|
|
651
|
-
if (this.is_pending = this.has_pending_snippet(), R(
|
|
652
|
-
|
|
653
|
-
})),
|
|
654
|
-
var e = R(
|
|
655
|
-
Xn(
|
|
656
|
-
const t =
|
|
657
|
-
R(Te, this, Ce(() => t(
|
|
651
|
+
if (this.is_pending = this.has_pending_snippet(), R(Ht, this, 0), R(cr, this, 0), R(Je, this, Ce(() => {
|
|
652
|
+
f(jr, this).call(this, f(He, this));
|
|
653
|
+
})), f(Ht, this) > 0) {
|
|
654
|
+
var e = R(zt, this, document.createDocumentFragment());
|
|
655
|
+
Xn(f(Je, this), e);
|
|
656
|
+
const t = f(Ke, this).pending;
|
|
657
|
+
R(Te, this, Ce(() => t(f(He, this))));
|
|
658
658
|
} else N(se, this, zn).call(this, $);
|
|
659
659
|
} catch (t) {
|
|
660
660
|
this.error(t);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
function zn(e) {
|
|
664
|
-
this.is_pending = !1, e.transfer_effects(
|
|
664
|
+
this.is_pending = !1, e.transfer_effects(f(vn, this), f(mn, this));
|
|
665
665
|
}
|
|
666
666
|
function gn(e) {
|
|
667
667
|
var t = C, r = P, i = j;
|
|
668
|
-
Qe(
|
|
668
|
+
Qe(f(Ie, this)), $e(f(Ie, this)), _r(f(Ie, this).ctx);
|
|
669
669
|
try {
|
|
670
|
-
return
|
|
670
|
+
return Yt.ensure(), e();
|
|
671
671
|
} catch (n) {
|
|
672
|
-
return
|
|
672
|
+
return ws(n), null;
|
|
673
673
|
} finally {
|
|
674
674
|
Qe(t), $e(r), _r(i);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function $s(e, t) {
|
|
678
678
|
if (!this.has_pending_snippet()) {
|
|
679
679
|
if (this.parent) {
|
|
680
680
|
var r;
|
|
681
|
-
N(se, r = this.parent,
|
|
681
|
+
N(se, r = this.parent, $s).call(r, e, t);
|
|
682
682
|
}
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
|
-
R(
|
|
685
|
+
R(Ht, this, f(Ht, this) + e), f(Ht, this) === 0 && (N(se, this, zn).call(this, t), f(Te, this) && Kt(f(Te, this), () => {
|
|
686
686
|
R(Te, this, null);
|
|
687
|
-
}),
|
|
687
|
+
}), f(zt, this) && (f(He, this).before(f(zt, this)), R(zt, this, null)));
|
|
688
688
|
}
|
|
689
689
|
function So(e) {
|
|
690
|
-
|
|
691
|
-
var t =
|
|
692
|
-
let r =
|
|
690
|
+
f(Je, this) && (fe(f(Je, this)), R(Je, this, null)), f(Te, this) && (fe(f(Te, this)), R(Te, this, null)), f(Ue, this) && (fe(f(Ue, this)), R(Ue, this, null)), D && (_e(f(hn, this)), hs(), _e(ki()));
|
|
691
|
+
var t = f(Ke, this).onerror;
|
|
692
|
+
let r = f(Ke, this).failed;
|
|
693
693
|
var i = !1, n = !1;
|
|
694
694
|
const o = () => {
|
|
695
695
|
if (i) {
|
|
696
|
-
|
|
696
|
+
pl();
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
i = !0, n &&
|
|
699
|
+
i = !0, n && ul(), f(Ue, this) !== null && Kt(f(Ue, this), () => {
|
|
700
700
|
R(Ue, this, null);
|
|
701
701
|
}), N(se, this, gn).call(this, () => {
|
|
702
|
-
N(se, this,
|
|
702
|
+
N(se, this, Cs).call(this);
|
|
703
703
|
});
|
|
704
704
|
}, s = (a) => {
|
|
705
705
|
try {
|
|
706
706
|
n = !0, t?.(a, o), n = !1;
|
|
707
|
-
} catch (
|
|
708
|
-
|
|
707
|
+
} catch (c) {
|
|
708
|
+
Ot(c, f(Ie, this) && f(Ie, this).parent);
|
|
709
709
|
}
|
|
710
710
|
r && R(Ue, this, N(se, this, gn).call(this, () => {
|
|
711
711
|
try {
|
|
712
712
|
return Ce(() => {
|
|
713
|
-
var
|
|
714
|
-
|
|
713
|
+
var c = C;
|
|
714
|
+
c.b = this, c.f |= 128, r(f(He, this), () => a, () => o);
|
|
715
715
|
});
|
|
716
|
-
} catch (
|
|
717
|
-
return
|
|
716
|
+
} catch (c) {
|
|
717
|
+
return Ot(c, f(Ie, this).parent), null;
|
|
718
718
|
}
|
|
719
719
|
}));
|
|
720
720
|
};
|
|
721
|
-
|
|
721
|
+
Vt(() => {
|
|
722
722
|
var a;
|
|
723
723
|
try {
|
|
724
724
|
a = this.transform_error(e);
|
|
725
|
-
} catch (
|
|
726
|
-
|
|
725
|
+
} catch (c) {
|
|
726
|
+
Ot(c, f(Ie, this) && f(Ie, this).parent);
|
|
727
727
|
return;
|
|
728
728
|
}
|
|
729
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (
|
|
729
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) => Ot(c, f(Ie, this) && f(Ie, this).parent)) : s(a);
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Ml(e, t, r, i) {
|
|
733
733
|
const n = Yr() ? Ci : Hn;
|
|
734
734
|
var o = e.filter((p) => !p.settled);
|
|
735
735
|
if (r.length === 0 && o.length === 0) {
|
|
736
736
|
i(t.map(n));
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
|
-
var s = C, a =
|
|
739
|
+
var s = C, a = Cl(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((p) => p.promise)) : null;
|
|
740
740
|
function u(p) {
|
|
741
741
|
a();
|
|
742
742
|
try {
|
|
743
743
|
i(p);
|
|
744
744
|
} catch (v) {
|
|
745
|
-
(s.f & 16384) === 0 &&
|
|
745
|
+
(s.f & 16384) === 0 && Ot(v, s);
|
|
746
746
|
}
|
|
747
747
|
Si();
|
|
748
748
|
}
|
|
749
749
|
if (r.length === 0) {
|
|
750
|
-
|
|
750
|
+
c.then(() => u(t.map(n)));
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
|
-
var d =
|
|
753
|
+
var d = Ps();
|
|
754
754
|
function h() {
|
|
755
|
-
Promise.all(r.map((p) => /* @__PURE__ */
|
|
755
|
+
Promise.all(r.map((p) => /* @__PURE__ */ $l(p))).then((p) => u([...t.map(n), ...p])).catch((p) => Ot(p, s)).finally(() => d());
|
|
756
756
|
}
|
|
757
|
-
|
|
757
|
+
c ? c.then(() => {
|
|
758
758
|
a(), h(), Si();
|
|
759
759
|
}) : h();
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Cl() {
|
|
762
762
|
var e = C, t = P, r = j, i = $;
|
|
763
763
|
if (0) var n;
|
|
764
764
|
return function(s = !0) {
|
|
@@ -768,7 +768,7 @@ function Rl() {
|
|
|
768
768
|
function Si(e = !0) {
|
|
769
769
|
Qe(null), $e(null), _r(null), e && $?.deactivate();
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Ps() {
|
|
772
772
|
var e = C, t = e.b, r = $, i = t.is_rendered();
|
|
773
773
|
return t.update_pending_count(1, r), r.increment(i, e), (n = !1) => {
|
|
774
774
|
t.update_pending_count(-1, r), r.decrement(i, e, n);
|
|
@@ -781,7 +781,7 @@ function Ci(e) {
|
|
|
781
781
|
ctx: j,
|
|
782
782
|
deps: null,
|
|
783
783
|
effects: null,
|
|
784
|
-
equals:
|
|
784
|
+
equals: ms,
|
|
785
785
|
f: t,
|
|
786
786
|
fn: e,
|
|
787
787
|
reactions: null,
|
|
@@ -793,12 +793,12 @@ function Ci(e) {
|
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
795
|
// @__NO_SIDE_EFFECTS__
|
|
796
|
-
function
|
|
796
|
+
function $l(e, t, r) {
|
|
797
797
|
let i = C;
|
|
798
|
-
i === null &&
|
|
799
|
-
var n = void 0, o =
|
|
800
|
-
return
|
|
801
|
-
var
|
|
798
|
+
i === null && el();
|
|
799
|
+
var n = void 0, o = Gt(ee), s = !P, a = /* @__PURE__ */ new Map();
|
|
800
|
+
return Gl(() => {
|
|
801
|
+
var c = C, u = ds();
|
|
802
802
|
n = u.promise;
|
|
803
803
|
try {
|
|
804
804
|
Promise.resolve(e()).then(u.resolve, u.reject).finally(Si);
|
|
@@ -807,7 +807,7 @@ function Ml(e, t, r) {
|
|
|
807
807
|
}
|
|
808
808
|
var d = $;
|
|
809
809
|
if (s) {
|
|
810
|
-
if ((
|
|
810
|
+
if ((c.f & 32768) !== 0) var h = Ps();
|
|
811
811
|
if (i.b.is_rendered())
|
|
812
812
|
a.get(d)?.reject(ct), a.delete(d);
|
|
813
813
|
else {
|
|
@@ -817,7 +817,7 @@ function Ml(e, t, r) {
|
|
|
817
817
|
a.set(d, u);
|
|
818
818
|
}
|
|
819
819
|
const p = (v, _ = void 0) => {
|
|
820
|
-
if (h && h(_ === ct), !(_ === ct || (
|
|
820
|
+
if (h && h(_ === ct), !(_ === ct || (c.f & 16384) !== 0)) {
|
|
821
821
|
if (d.activate(), _)
|
|
822
822
|
o.f |= Ti, wr(o, _);
|
|
823
823
|
else {
|
|
@@ -831,12 +831,12 @@ function Ml(e, t, r) {
|
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
833
|
u.promise.then(p, (v) => p(null, v || "unknown"));
|
|
834
|
-
}),
|
|
835
|
-
for (const
|
|
836
|
-
}), new Promise((
|
|
834
|
+
}), Bl(() => {
|
|
835
|
+
for (const c of a.values()) c.reject(ct);
|
|
836
|
+
}), new Promise((c) => {
|
|
837
837
|
function u(d) {
|
|
838
838
|
function h() {
|
|
839
|
-
d === n ?
|
|
839
|
+
d === n ? c(o) : u(n);
|
|
840
840
|
}
|
|
841
841
|
d.then(h, h);
|
|
842
842
|
}
|
|
@@ -846,14 +846,14 @@ function Ml(e, t, r) {
|
|
|
846
846
|
// @__NO_SIDE_EFFECTS__
|
|
847
847
|
function ji(e) {
|
|
848
848
|
const t = /* @__PURE__ */ Ci(e);
|
|
849
|
-
return dt ||
|
|
849
|
+
return dt || Qs(t), t;
|
|
850
850
|
}
|
|
851
851
|
// @__NO_SIDE_EFFECTS__
|
|
852
852
|
function Hn(e) {
|
|
853
853
|
const t = /* @__PURE__ */ Ci(e);
|
|
854
|
-
return t.equals =
|
|
854
|
+
return t.equals = gs, t;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Pl(e) {
|
|
857
857
|
var t = e.effects;
|
|
858
858
|
if (t !== null) {
|
|
859
859
|
e.effects = null;
|
|
@@ -863,39 +863,39 @@ function Cl(e) {
|
|
|
863
863
|
function Wn(e) {
|
|
864
864
|
var t, r = C, i = e.parent;
|
|
865
865
|
if (!pt && i !== null && (i.f & 24576) !== 0)
|
|
866
|
-
return
|
|
866
|
+
return dl(), e.v;
|
|
867
867
|
Qe(i);
|
|
868
868
|
try {
|
|
869
|
-
e.f &= ~Gr,
|
|
869
|
+
e.f &= ~Gr, Pl(e), t = ra(e);
|
|
870
870
|
} finally {
|
|
871
871
|
Qe(r);
|
|
872
872
|
}
|
|
873
873
|
return t;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function xs(e) {
|
|
876
876
|
var t = Wn(e);
|
|
877
|
-
if (!e.equals(t) && (e.wv =
|
|
877
|
+
if (!e.equals(t) && (e.wv = ea(), (!$?.is_fork || e.deps === null) && ($ !== null ? $.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
878
878
|
V(e, Me);
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
881
|
pt || (ce !== null ? (Vn() || $?.is_fork) && ce.set(e, t) : xn(e));
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function xl(e) {
|
|
884
884
|
if (e.effects !== null)
|
|
885
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ct), t.teardown =
|
|
885
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ct), t.teardown = Va, t.ac = null, Vr(t, 0), Yn(t));
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function Ds(e) {
|
|
888
888
|
if (e.effects !== null)
|
|
889
889
|
for (const t of e.effects) t.teardown && Tr(t);
|
|
890
890
|
}
|
|
891
|
-
var _n = /* @__PURE__ */ new Set(),
|
|
892
|
-
var
|
|
893
|
-
function
|
|
891
|
+
var _n = /* @__PURE__ */ new Set(), Wt = /* @__PURE__ */ new Map();
|
|
892
|
+
var Ns = !1;
|
|
893
|
+
function Gt(e, t) {
|
|
894
894
|
var r = {
|
|
895
895
|
f: 0,
|
|
896
896
|
v: e,
|
|
897
897
|
reactions: null,
|
|
898
|
-
equals:
|
|
898
|
+
equals: ms,
|
|
899
899
|
rv: 0,
|
|
900
900
|
wv: 0
|
|
901
901
|
};
|
|
@@ -903,86 +903,86 @@ function jt(e, t) {
|
|
|
903
903
|
}
|
|
904
904
|
// @__NO_SIDE_EFFECTS__
|
|
905
905
|
function we(e, t) {
|
|
906
|
-
const r =
|
|
907
|
-
return
|
|
906
|
+
const r = Gt(e, t);
|
|
907
|
+
return Qs(r), r;
|
|
908
908
|
}
|
|
909
909
|
// @__NO_SIDE_EFFECTS__
|
|
910
|
-
function
|
|
911
|
-
const i =
|
|
912
|
-
if (t || (i.equals =
|
|
910
|
+
function Us(e, t = !1, r = !0) {
|
|
911
|
+
const i = Gt(e);
|
|
912
|
+
if (t || (i.equals = gs), qr && r && j !== null && j.l !== null) {
|
|
913
913
|
var n;
|
|
914
914
|
((n = j.l).s ?? (n.s = [])).push(i);
|
|
915
915
|
}
|
|
916
916
|
return i;
|
|
917
917
|
}
|
|
918
918
|
function te(e, t, r = !1) {
|
|
919
|
-
P !== null && (!ze || (P.f & 131072) !== 0) && Yr() && (P.f & 4325394) !== 0 && (Re === null || !gr.call(Re, e)) &&
|
|
919
|
+
P !== null && (!ze || (P.f & 131072) !== 0) && Yr() && (P.f & 4325394) !== 0 && (Re === null || !gr.call(Re, e)) && fl();
|
|
920
920
|
let i = r ? pr(t) : t;
|
|
921
921
|
return wr(e, i, Ei);
|
|
922
922
|
}
|
|
923
923
|
function wr(e, t, r = null) {
|
|
924
924
|
if (!e.equals(t)) {
|
|
925
|
-
|
|
926
|
-
var i =
|
|
925
|
+
Wt.set(e, pt ? t : e.v);
|
|
926
|
+
var i = Yt.ensure();
|
|
927
927
|
if (i.capture(e, t), (e.f & 2) !== 0) {
|
|
928
928
|
const n = e;
|
|
929
929
|
(e.f & 2048) !== 0 && Wn(n), ce === null && xn(n);
|
|
930
930
|
}
|
|
931
|
-
e.wv =
|
|
931
|
+
e.wv = ea(), Fs(e, We, r), Yr() && C !== null && (C.f & 1024) !== 0 && (C.f & 96) === 0 && (Se === null ? Xl([e]) : Se.push(e)), !i.is_fork && _n.size > 0 && !Ns && Dl();
|
|
932
932
|
}
|
|
933
933
|
return t;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
|
|
935
|
+
function Dl() {
|
|
936
|
+
Ns = !1;
|
|
937
937
|
for (const e of _n)
|
|
938
|
-
(e.f & 1024) !== 0 && V(e,
|
|
938
|
+
(e.f & 1024) !== 0 && V(e, qt), Kr(e) && Tr(e);
|
|
939
939
|
_n.clear();
|
|
940
940
|
}
|
|
941
941
|
function Br(e) {
|
|
942
942
|
te(e, e.v + 1);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Fs(e, t, r) {
|
|
945
945
|
var i = e.reactions;
|
|
946
946
|
if (i !== null)
|
|
947
947
|
for (var n = Yr(), o = i.length, s = 0; s < o; s++) {
|
|
948
|
-
var a = i[s],
|
|
948
|
+
var a = i[s], c = a.f;
|
|
949
949
|
if (!(!n && a === C)) {
|
|
950
|
-
var u = (
|
|
951
|
-
if (u && V(a, t), (
|
|
950
|
+
var u = (c & We) === 0;
|
|
951
|
+
if (u && V(a, t), (c & 2) !== 0) {
|
|
952
952
|
var d = a;
|
|
953
|
-
ce?.delete(d), (
|
|
953
|
+
ce?.delete(d), (c & 65536) === 0 && (c & 512 && (a.f |= Gr), Fs(d, qt, r));
|
|
954
954
|
} else if (u) {
|
|
955
955
|
var h = a;
|
|
956
|
-
(
|
|
956
|
+
(c & 16) !== 0 && Ye !== null && Ye.add(h), r !== null ? r.push(h) : Fn(h);
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
var
|
|
961
|
+
var Nl = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
962
962
|
function pr(e) {
|
|
963
963
|
if (typeof e != "object" || e === null || Hr in e) return e;
|
|
964
|
-
const t =
|
|
965
|
-
if (t !==
|
|
966
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
967
|
-
if (
|
|
968
|
-
var p = P, v =
|
|
964
|
+
const t = us(e);
|
|
965
|
+
if (t !== Ba && t !== ja) return e;
|
|
966
|
+
var r = /* @__PURE__ */ new Map(), i = fs(e), n = /* @__PURE__ */ we(0), o = null, s = Bt, a = (h) => {
|
|
967
|
+
if (Bt === s) return h();
|
|
968
|
+
var p = P, v = Bt;
|
|
969
969
|
$e(null), Ro(s);
|
|
970
970
|
var _ = h();
|
|
971
971
|
return $e(p), Ro(v), _;
|
|
972
972
|
};
|
|
973
973
|
i && r.set("length", /* @__PURE__ */ we(e.length, o));
|
|
974
|
-
var
|
|
974
|
+
var c = "";
|
|
975
975
|
let u = !1;
|
|
976
976
|
function d(h) {
|
|
977
977
|
if (!u) {
|
|
978
|
-
u = !0,
|
|
979
|
-
for (const [p, v] of r) To(v,
|
|
978
|
+
u = !0, c = h, To(n, `${c} version`);
|
|
979
|
+
for (const [p, v] of r) To(v, Ul(c, p));
|
|
980
980
|
u = !1;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
return new Proxy(e, {
|
|
984
984
|
defineProperty(h, p, v) {
|
|
985
|
-
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) &&
|
|
985
|
+
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && ll();
|
|
986
986
|
var _ = r.get(p);
|
|
987
987
|
return _ === void 0 ? a(() => {
|
|
988
988
|
var E = /* @__PURE__ */ we(v.value, o);
|
|
@@ -1003,7 +1003,7 @@ function pr(e) {
|
|
|
1003
1003
|
get(h, p, v) {
|
|
1004
1004
|
if (p === Hr) return e;
|
|
1005
1005
|
var _ = r.get(p), E = p in h;
|
|
1006
|
-
if (_ === void 0 && (!E ||
|
|
1006
|
+
if (_ === void 0 && (!E || Ut(h, p)?.writable) && (_ = a(() => {
|
|
1007
1007
|
var T = /* @__PURE__ */ we(pr(E ? h[p] : ee), o);
|
|
1008
1008
|
return T;
|
|
1009
1009
|
}), r.set(p, _)), _ !== void 0) {
|
|
@@ -1031,7 +1031,7 @@ function pr(e) {
|
|
|
1031
1031
|
has(h, p) {
|
|
1032
1032
|
if (p === Hr) return !0;
|
|
1033
1033
|
var v = r.get(p), _ = v !== void 0 && v.v !== ee || Reflect.has(h, p);
|
|
1034
|
-
return (v !== void 0 || C !== null && (!_ ||
|
|
1034
|
+
return (v !== void 0 || C !== null && (!_ || Ut(h, p)?.writable)) && (v === void 0 && (v = a(() => {
|
|
1035
1035
|
var E = /* @__PURE__ */ we(_ ? pr(h[p]) : ee, o);
|
|
1036
1036
|
return E;
|
|
1037
1037
|
}), r.set(p, v)), y(v) === ee) ? !1 : _;
|
|
@@ -1043,7 +1043,7 @@ function pr(e) {
|
|
|
1043
1043
|
F !== void 0 ? te(F, ee) : T in h && (F = a(() => /* @__PURE__ */ we(ee, o)), r.set(T + "", F));
|
|
1044
1044
|
}
|
|
1045
1045
|
if (E === void 0)
|
|
1046
|
-
(!m ||
|
|
1046
|
+
(!m || Ut(h, p)?.writable) && (E = a(() => /* @__PURE__ */ we(void 0, o)), te(E, pr(v)), r.set(p, E));
|
|
1047
1047
|
else {
|
|
1048
1048
|
m = E.v !== ee;
|
|
1049
1049
|
var I = a(() => pr(v));
|
|
@@ -1069,19 +1069,19 @@ function pr(e) {
|
|
|
1069
1069
|
return p;
|
|
1070
1070
|
},
|
|
1071
1071
|
setPrototypeOf() {
|
|
1072
|
-
|
|
1072
|
+
cl();
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1076
|
+
function Ul(e, t) {
|
|
1077
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Nl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1078
1078
|
}
|
|
1079
|
-
var Io,
|
|
1079
|
+
var Io, Fl, zs, Hs, Ws;
|
|
1080
1080
|
function bn() {
|
|
1081
1081
|
if (Io === void 0) {
|
|
1082
|
-
Io = window,
|
|
1082
|
+
Io = window, Fl = document, zs = /Firefox/.test(navigator.userAgent);
|
|
1083
1083
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1084
|
-
|
|
1084
|
+
Hs = Ut(t, "firstChild").get, Ws = Ut(t, "nextSibling").get, bo(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), bo(r) && (r.__t = void 0);
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
function Le(e = "") {
|
|
@@ -1089,11 +1089,11 @@ function Le(e = "") {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
// @__NO_SIDE_EFFECTS__
|
|
1091
1091
|
function Oe(e) {
|
|
1092
|
-
return
|
|
1092
|
+
return Hs.call(e);
|
|
1093
1093
|
}
|
|
1094
1094
|
// @__NO_SIDE_EFFECTS__
|
|
1095
1095
|
function Ze(e) {
|
|
1096
|
-
return
|
|
1096
|
+
return Ws.call(e);
|
|
1097
1097
|
}
|
|
1098
1098
|
function ae(e, t) {
|
|
1099
1099
|
if (!D) return /* @__PURE__ */ Oe(e);
|
|
@@ -1105,7 +1105,7 @@ function ae(e, t) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return t && jn(r), _e(r), r;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function zl(e, t = !1) {
|
|
1109
1109
|
if (!D) {
|
|
1110
1110
|
var r = /* @__PURE__ */ Oe(e);
|
|
1111
1111
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ze(r) : r;
|
|
@@ -1133,10 +1133,10 @@ function st(e, t = 1, r = !1) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
return _e(i), i;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Bs(e) {
|
|
1137
1137
|
e.textContent = "";
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function js() {
|
|
1140
1140
|
return !dt || Ye !== null ? !1 : (C.f & $n) !== 0;
|
|
1141
1141
|
}
|
|
1142
1142
|
function Bn(e, t, r) {
|
|
@@ -1149,7 +1149,7 @@ function jn(e) {
|
|
|
1149
1149
|
for (; t !== null && t.nodeType === 3; )
|
|
1150
1150
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Vs(e) {
|
|
1153
1153
|
var t = P, r = C;
|
|
1154
1154
|
$e(null), Qe(null);
|
|
1155
1155
|
try {
|
|
@@ -1158,10 +1158,10 @@ function Bs(e) {
|
|
|
1158
1158
|
$e(t), Qe(r);
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1162
|
-
C === null && (P === null &&
|
|
1161
|
+
function Hl(e) {
|
|
1162
|
+
C === null && (P === null && nl(e), il()), pt && rl(e);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Wl(e, t) {
|
|
1165
1165
|
var r = t.last;
|
|
1166
1166
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1167
1167
|
}
|
|
@@ -1186,7 +1186,7 @@ function et(e, t) {
|
|
|
1186
1186
|
};
|
|
1187
1187
|
$?.register_created_effect(i);
|
|
1188
1188
|
var n = i;
|
|
1189
|
-
if ((e & 4) !== 0) br !== null ? br.push(i) :
|
|
1189
|
+
if ((e & 4) !== 0) br !== null ? br.push(i) : Yt.ensure().schedule(i);
|
|
1190
1190
|
else if (t !== null) {
|
|
1191
1191
|
try {
|
|
1192
1192
|
Tr(i);
|
|
@@ -1195,7 +1195,7 @@ function et(e, t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && (n.f & 524288) === 0 && (n = n.first, (e & 16) !== 0 && (e & 65536) !== 0 && n !== null && (n.f |= Pn));
|
|
1197
1197
|
}
|
|
1198
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
1198
|
+
if (n !== null && (n.parent = r, r !== null && Wl(n, r), P !== null && (P.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1199
1199
|
var o = P;
|
|
1200
1200
|
(o.effects ?? (o.effects = [])).push(n);
|
|
1201
1201
|
}
|
|
@@ -1204,48 +1204,48 @@ function et(e, t) {
|
|
|
1204
1204
|
function Vn() {
|
|
1205
1205
|
return P !== null && !ze;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function Bl(e) {
|
|
1208
1208
|
const t = et(8, null);
|
|
1209
1209
|
return V(t, Me), t.teardown = e, t;
|
|
1210
1210
|
}
|
|
1211
1211
|
function fr(e) {
|
|
1212
|
-
|
|
1212
|
+
Hl("$effect");
|
|
1213
1213
|
var t = C.f;
|
|
1214
1214
|
if (!P && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1215
1215
|
var r = j;
|
|
1216
1216
|
(r.e ?? (r.e = [])).push(e);
|
|
1217
|
-
} else return
|
|
1217
|
+
} else return Gs(e);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return et(4 |
|
|
1219
|
+
function Gs(e) {
|
|
1220
|
+
return et(4 | Ya, e);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
|
|
1222
|
+
function jl(e) {
|
|
1223
|
+
Yt.ensure();
|
|
1224
1224
|
const t = et(64 | kr, e);
|
|
1225
1225
|
return () => {
|
|
1226
1226
|
fe(t);
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function Vl(e) {
|
|
1230
|
+
Yt.ensure();
|
|
1231
1231
|
const t = et(64 | kr, e);
|
|
1232
1232
|
return (r = {}) => new Promise((i) => {
|
|
1233
|
-
r.outro ?
|
|
1233
|
+
r.outro ? Kt(t, () => {
|
|
1234
1234
|
fe(t), i(void 0);
|
|
1235
1235
|
}) : (fe(t), i(void 0));
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function qs(e) {
|
|
1239
1239
|
return et(4, e);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return et(
|
|
1241
|
+
function Gl(e) {
|
|
1242
|
+
return et(Ka | kr, e);
|
|
1243
1243
|
}
|
|
1244
1244
|
function Gn(e, t = 0) {
|
|
1245
1245
|
return et(8 | t, e);
|
|
1246
1246
|
}
|
|
1247
1247
|
function Oo(e, t = [], r = [], i = []) {
|
|
1248
|
-
|
|
1248
|
+
Ml(i, t, r, (n) => {
|
|
1249
1249
|
et(8, () => e(...n.map(y)));
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
@@ -1256,7 +1256,7 @@ function qn(e, t = 0) {
|
|
|
1256
1256
|
function Ce(e) {
|
|
1257
1257
|
return et(32 | kr, e);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function Ys(e) {
|
|
1260
1260
|
var t = e.teardown;
|
|
1261
1261
|
if (t !== null) {
|
|
1262
1262
|
const r = pt, i = P;
|
|
@@ -1272,14 +1272,14 @@ function Yn(e, t = !1) {
|
|
|
1272
1272
|
var r = e.first;
|
|
1273
1273
|
for (e.first = e.last = null; r !== null; ) {
|
|
1274
1274
|
const n = r.ac;
|
|
1275
|
-
n !== null &&
|
|
1275
|
+
n !== null && Vs(() => {
|
|
1276
1276
|
n.abort(ct);
|
|
1277
1277
|
});
|
|
1278
1278
|
var i = r.next;
|
|
1279
1279
|
(r.f & 64) !== 0 ? r.parent = null : fe(r, t), r = i;
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function ql(e) {
|
|
1283
1283
|
for (var t = e.first; t !== null; ) {
|
|
1284
1284
|
var r = t.next;
|
|
1285
1285
|
(t.f & 32) === 0 && fe(t), t = r;
|
|
@@ -1287,26 +1287,26 @@ function Vl(e) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
function fe(e, t = !0) {
|
|
1289
1289
|
var r = !1;
|
|
1290
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1290
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Yl(e.nodes.start, e.nodes.end), r = !0), V(e, yo), Yn(e, t && !r), Vr(e, 0);
|
|
1291
1291
|
var i = e.nodes && e.nodes.t;
|
|
1292
1292
|
if (i !== null) for (const o of i) o.stop();
|
|
1293
|
-
|
|
1293
|
+
Ys(e), e.f ^= yo, e.f |= qa;
|
|
1294
1294
|
var n = e.parent;
|
|
1295
|
-
n !== null && n.first !== null &&
|
|
1295
|
+
n !== null && n.first !== null && Ks(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Yl(e, t) {
|
|
1298
1298
|
for (; e !== null; ) {
|
|
1299
1299
|
var r = e === t ? null : /* @__PURE__ */ Ze(e);
|
|
1300
1300
|
e.remove(), e = r;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Ks(e) {
|
|
1304
1304
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1305
1305
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Kt(e, t, r = !0) {
|
|
1308
1308
|
var i = [];
|
|
1309
|
-
|
|
1309
|
+
Xs(e, i, !0);
|
|
1310
1310
|
var n = () => {
|
|
1311
1311
|
r && fe(e), t && t();
|
|
1312
1312
|
}, o = i.length;
|
|
@@ -1315,7 +1315,7 @@ function qt(e, t, r = !0) {
|
|
|
1315
1315
|
for (var a of i) a.out(s);
|
|
1316
1316
|
} else n();
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Xs(e, t, r) {
|
|
1319
1319
|
if ((e.f & 8192) === 0) {
|
|
1320
1320
|
e.f ^= Cn;
|
|
1321
1321
|
var i = e.nodes && e.nodes.t;
|
|
@@ -1325,21 +1325,21 @@ function Ys(e, t, r) {
|
|
|
1325
1325
|
var o = n.next;
|
|
1326
1326
|
if ((n.f & 64) === 0) {
|
|
1327
1327
|
var s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1328
|
-
|
|
1328
|
+
Xs(n, t, s ? r : !1);
|
|
1329
1329
|
}
|
|
1330
1330
|
n = o;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function Kn(e) {
|
|
1335
|
-
|
|
1335
|
+
Js(e, !0);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Js(e, t) {
|
|
1338
1338
|
if ((e.f & 8192) !== 0) {
|
|
1339
|
-
e.f ^= Cn, (e.f & 1024) === 0 && (V(e, We),
|
|
1339
|
+
e.f ^= Cn, (e.f & 1024) === 0 && (V(e, We), Yt.ensure().schedule(e));
|
|
1340
1340
|
for (var r = e.first; r !== null; ) {
|
|
1341
1341
|
var i = r.next, n = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1342
|
-
|
|
1342
|
+
Js(r, n ? t : !1), r = i;
|
|
1343
1343
|
}
|
|
1344
1344
|
var o = e.nodes && e.nodes.t;
|
|
1345
1345
|
if (o !== null)
|
|
@@ -1353,7 +1353,7 @@ function Xn(e, t) {
|
|
|
1353
1353
|
t.append(r), r = n;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
var
|
|
1356
|
+
var Kl = null, vi = !1, pt = !1;
|
|
1357
1357
|
function Lo(e) {
|
|
1358
1358
|
pt = e;
|
|
1359
1359
|
}
|
|
@@ -1366,19 +1366,19 @@ function Qe(e) {
|
|
|
1366
1366
|
C = e;
|
|
1367
1367
|
}
|
|
1368
1368
|
var Re = null;
|
|
1369
|
-
function
|
|
1369
|
+
function Qs(e) {
|
|
1370
1370
|
P !== null && (!dt || (P.f & 2) !== 0) && (Re === null ? Re = [e] : Re.push(e));
|
|
1371
1371
|
}
|
|
1372
1372
|
var ge = null, ye = 0, Se = null;
|
|
1373
|
-
function
|
|
1373
|
+
function Xl(e) {
|
|
1374
1374
|
Se = e;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1376
|
+
var Zs = 1, Nt = 0, Bt = Nt;
|
|
1377
1377
|
function Ro(e) {
|
|
1378
|
-
|
|
1378
|
+
Bt = e;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return ++
|
|
1380
|
+
function ea() {
|
|
1381
|
+
return ++Zs;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Kr(e) {
|
|
1384
1384
|
var t = e.f;
|
|
@@ -1386,23 +1386,23 @@ function Kr(e) {
|
|
|
1386
1386
|
if (t & 2 && (e.f &= ~Gr), (t & 4096) !== 0) {
|
|
1387
1387
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1388
1388
|
var o = r[n];
|
|
1389
|
-
if (Kr(o) &&
|
|
1389
|
+
if (Kr(o) && xs(o), o.wv > e.wv) return !0;
|
|
1390
1390
|
}
|
|
1391
1391
|
(t & 512) !== 0 && ce === null && V(e, Me);
|
|
1392
1392
|
}
|
|
1393
1393
|
return !1;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function ta(e, t, r = !0) {
|
|
1396
1396
|
var i = e.reactions;
|
|
1397
1397
|
if (i !== null && !(!dt && Re !== null && gr.call(Re, e)))
|
|
1398
1398
|
for (var n = 0; n < i.length; n++) {
|
|
1399
1399
|
var o = i[n];
|
|
1400
|
-
(o.f & 2) !== 0 ?
|
|
1400
|
+
(o.f & 2) !== 0 ? ta(o, t, !1) : t === o && (r ? V(o, We) : (o.f & 1024) !== 0 && V(o, qt), Fn(o));
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var t = ge, r = ye, i = Se, n = P, o = Re, s = j, a = ze,
|
|
1405
|
-
ge = null, ye = 0, Se = null, P = (u & 96) === 0 ? e : null, Re = null, _r(e.ctx), ze = !1,
|
|
1403
|
+
function ra(e) {
|
|
1404
|
+
var t = ge, r = ye, i = Se, n = P, o = Re, s = j, a = ze, c = Bt, u = e.f;
|
|
1405
|
+
ge = null, ye = 0, Se = null, P = (u & 96) === 0 ? e : null, Re = null, _r(e.ctx), ze = !1, Bt = ++Nt, e.ac !== null && (Vs(() => {
|
|
1406
1406
|
e.ac.abort(ct);
|
|
1407
1407
|
}), e.ac = null);
|
|
1408
1408
|
try {
|
|
@@ -1420,23 +1420,23 @@ function ea(e) {
|
|
|
1420
1420
|
((E = p[_]).reactions ?? (E.reactions = [])).push(e);
|
|
1421
1421
|
}
|
|
1422
1422
|
} else !v && p !== null && ye < p.length && (Vr(e, ye), p.length = ye);
|
|
1423
|
-
if (Yr() && Se !== null && !ze && p !== null && (e.f & 6146) === 0) for (_ = 0; _ < Se.length; _++)
|
|
1423
|
+
if (Yr() && Se !== null && !ze && p !== null && (e.f & 6146) === 0) for (_ = 0; _ < Se.length; _++) ta(Se[_], e);
|
|
1424
1424
|
if (n !== null && n !== e) {
|
|
1425
|
-
if (
|
|
1426
|
-
if (t !== null) for (const m of t) m.rv =
|
|
1425
|
+
if (Nt++, n.deps !== null) for (let m = 0; m < r; m += 1) n.deps[m].rv = Nt;
|
|
1426
|
+
if (t !== null) for (const m of t) m.rv = Nt;
|
|
1427
1427
|
Se !== null && (i === null ? i = Se : i.push(...Se));
|
|
1428
1428
|
}
|
|
1429
1429
|
return (e.f & 8388608) !== 0 && (e.f ^= Ti), h;
|
|
1430
1430
|
} catch (m) {
|
|
1431
|
-
return
|
|
1431
|
+
return ws(m);
|
|
1432
1432
|
} finally {
|
|
1433
|
-
e.f ^= wo, ge = t, ye = r, Se = i, P = n, Re = o, _r(s), ze = a,
|
|
1433
|
+
e.f ^= wo, ge = t, ye = r, Se = i, P = n, Re = o, _r(s), ze = a, Bt = c;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Jl(e, t) {
|
|
1437
1437
|
let r = t.reactions;
|
|
1438
1438
|
if (r !== null) {
|
|
1439
|
-
var i =
|
|
1439
|
+
var i = Ha.call(r, e);
|
|
1440
1440
|
if (i !== -1) {
|
|
1441
1441
|
var n = r.length - 1;
|
|
1442
1442
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
@@ -1444,13 +1444,13 @@ function Kl(e, t) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
if (r === null && (t.f & 2) !== 0 && (ge === null || !gr.call(ge, t))) {
|
|
1446
1446
|
var o = t;
|
|
1447
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~Gr), o.v !== ee && xn(o),
|
|
1447
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~Gr), o.v !== ee && xn(o), xl(o), Vr(o, 0);
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
function Vr(e, t) {
|
|
1451
1451
|
var r = e.deps;
|
|
1452
1452
|
if (r !== null)
|
|
1453
|
-
for (var i = t; i < r.length; i++)
|
|
1453
|
+
for (var i = t; i < r.length; i++) Jl(e, r[i]);
|
|
1454
1454
|
}
|
|
1455
1455
|
function Tr(e) {
|
|
1456
1456
|
var t = e.f;
|
|
@@ -1460,9 +1460,9 @@ function Tr(e) {
|
|
|
1460
1460
|
if (C = e, vi = !0, 0)
|
|
1461
1461
|
var n, o;
|
|
1462
1462
|
try {
|
|
1463
|
-
(t & 16777232) !== 0 ?
|
|
1464
|
-
var s =
|
|
1465
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1463
|
+
(t & 16777232) !== 0 ? ql(e) : Yn(e), Ys(e);
|
|
1464
|
+
var s = ra(e);
|
|
1465
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Zs, 0)
|
|
1466
1466
|
for (var a of e.deps) ;
|
|
1467
1467
|
} finally {
|
|
1468
1468
|
vi = i, C = r;
|
|
@@ -1471,10 +1471,10 @@ function Tr(e) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
function y(e) {
|
|
1473
1473
|
var t = (e.f & 2) !== 0;
|
|
1474
|
-
if (
|
|
1474
|
+
if (Kl?.add(e), P !== null && !ze && !(C !== null && (C.f & 16384) !== 0) && (Re === null || !gr.call(Re, e))) {
|
|
1475
1475
|
var r = P.deps;
|
|
1476
1476
|
if ((P.f & 2097152) !== 0)
|
|
1477
|
-
e.rv <
|
|
1477
|
+
e.rv < Nt && (e.rv = Nt, ge === null && r !== null && r[ye] === e ? ye++ : ge === null ? ge = [e] : ge.push(e));
|
|
1478
1478
|
else {
|
|
1479
1479
|
var i;
|
|
1480
1480
|
((i = P).deps ?? (i.deps = [])).push(e);
|
|
@@ -1490,30 +1490,30 @@ function y(e) {
|
|
|
1490
1490
|
var s, a;
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
|
-
if (pt &&
|
|
1493
|
+
if (pt && Wt.has(e)) return Wt.get(e);
|
|
1494
1494
|
if (t) {
|
|
1495
|
-
var
|
|
1495
|
+
var c = e;
|
|
1496
1496
|
if (pt) {
|
|
1497
|
-
var u =
|
|
1498
|
-
return ((
|
|
1497
|
+
var u = c.v;
|
|
1498
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || na(c)) && (u = Wn(c)), Wt.set(c, u), u;
|
|
1499
1499
|
}
|
|
1500
|
-
var d = (
|
|
1501
|
-
Kr(
|
|
1500
|
+
var d = (c.f & 512) === 0 && !ze && P !== null && (vi || (P.f & 512) !== 0), h = (c.f & $n) === 0;
|
|
1501
|
+
Kr(c) && (d && (c.f |= 512), xs(c)), d && !h && (Ds(c), ia(c));
|
|
1502
1502
|
}
|
|
1503
1503
|
if (ce?.has(e)) return ce.get(e);
|
|
1504
1504
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1505
1505
|
return e.v;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function ia(e) {
|
|
1508
1508
|
if (e.f |= 512, e.deps !== null)
|
|
1509
1509
|
for (const t of e.deps)
|
|
1510
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1510
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Ds(t), ia(t));
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function na(e) {
|
|
1513
1513
|
if (e.v === ee) return !0;
|
|
1514
1514
|
if (e.deps === null) return !1;
|
|
1515
1515
|
for (const t of e.deps)
|
|
1516
|
-
if (
|
|
1516
|
+
if (Wt.has(t) || (t.f & 2) !== 0 && na(t)) return !0;
|
|
1517
1517
|
return !1;
|
|
1518
1518
|
}
|
|
1519
1519
|
function $i(e) {
|
|
@@ -1524,12 +1524,12 @@ function $i(e) {
|
|
|
1524
1524
|
ze = t;
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
var hr = /* @__PURE__ */ Symbol("events"),
|
|
1527
|
+
var hr = /* @__PURE__ */ Symbol("events"), oa = /* @__PURE__ */ new Set(), yn = /* @__PURE__ */ new Set();
|
|
1528
1528
|
function Vi(e, t, r) {
|
|
1529
1529
|
(t[hr] ?? (t[hr] = {}))[e] = r;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
for (var t = 0; t < e.length; t++)
|
|
1531
|
+
function Ql(e) {
|
|
1532
|
+
for (var t = 0; t < e.length; t++) oa.add(e[t]);
|
|
1533
1533
|
for (var r of yn) r(e);
|
|
1534
1534
|
}
|
|
1535
1535
|
var Mo = null;
|
|
@@ -1538,14 +1538,14 @@ function Co(e) {
|
|
|
1538
1538
|
Mo = e;
|
|
1539
1539
|
var s = 0, a = Mo === e && e[hr];
|
|
1540
1540
|
if (a) {
|
|
1541
|
-
var
|
|
1542
|
-
if (
|
|
1541
|
+
var c = n.indexOf(a);
|
|
1542
|
+
if (c !== -1 && (t === document || t === window)) {
|
|
1543
1543
|
e[hr] = t;
|
|
1544
1544
|
return;
|
|
1545
1545
|
}
|
|
1546
1546
|
var u = n.indexOf(t);
|
|
1547
1547
|
if (u === -1) return;
|
|
1548
|
-
|
|
1548
|
+
c <= u && (s = c);
|
|
1549
1549
|
}
|
|
1550
1550
|
if (o = n[s] || e.target, o !== t) {
|
|
1551
1551
|
wi(e, "currentTarget", {
|
|
@@ -1579,13 +1579,13 @@ function Co(e) {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
var
|
|
1583
|
-
function
|
|
1584
|
-
return
|
|
1582
|
+
var Zl = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1583
|
+
function ec(e) {
|
|
1584
|
+
return Zl?.createHTML(e) ?? e;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function sa(e) {
|
|
1587
1587
|
var t = Bn("template");
|
|
1588
|
-
return t.innerHTML =
|
|
1588
|
+
return t.innerHTML = ec(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1589
1589
|
}
|
|
1590
1590
|
function ut(e, t) {
|
|
1591
1591
|
var r = C;
|
|
@@ -1602,40 +1602,40 @@ function Jn(e, t) {
|
|
|
1602
1602
|
return () => {
|
|
1603
1603
|
if (D)
|
|
1604
1604
|
return ut(x, null), x;
|
|
1605
|
-
n === void 0 && (n =
|
|
1606
|
-
var s = i ||
|
|
1605
|
+
n === void 0 && (n = sa(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ Oe(n)));
|
|
1606
|
+
var s = i || zs ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1607
1607
|
if (r) {
|
|
1608
|
-
var a = /* @__PURE__ */ Oe(s),
|
|
1609
|
-
ut(a,
|
|
1608
|
+
var a = /* @__PURE__ */ Oe(s), c = s.lastChild;
|
|
1609
|
+
ut(a, c);
|
|
1610
1610
|
} else ut(s, s);
|
|
1611
1611
|
return s;
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
1614
|
// @__NO_SIDE_EFFECTS__
|
|
1615
|
-
function
|
|
1615
|
+
function tc(e, t, r = "svg") {
|
|
1616
1616
|
var i = !e.startsWith("<!>"), n = (t & 1) !== 0, o = `<${r}>${i ? e : "<!>" + e}</${r}>`, s;
|
|
1617
1617
|
return () => {
|
|
1618
1618
|
if (D)
|
|
1619
1619
|
return ut(x, null), x;
|
|
1620
1620
|
if (!s) {
|
|
1621
|
-
var a = /* @__PURE__ */ Oe(
|
|
1621
|
+
var a = /* @__PURE__ */ Oe(sa(o));
|
|
1622
1622
|
if (n)
|
|
1623
1623
|
for (s = document.createDocumentFragment(); /* @__PURE__ */ Oe(a); ) s.appendChild(/* @__PURE__ */ Oe(a));
|
|
1624
1624
|
else s = /* @__PURE__ */ Oe(a);
|
|
1625
1625
|
}
|
|
1626
|
-
var
|
|
1626
|
+
var c = s.cloneNode(!0);
|
|
1627
1627
|
if (n) {
|
|
1628
|
-
var u = /* @__PURE__ */ Oe(
|
|
1628
|
+
var u = /* @__PURE__ */ Oe(c), d = c.lastChild;
|
|
1629
1629
|
ut(u, d);
|
|
1630
|
-
} else ut(
|
|
1631
|
-
return
|
|
1630
|
+
} else ut(c, c);
|
|
1631
|
+
return c;
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
// @__NO_SIDE_EFFECTS__
|
|
1635
|
-
function
|
|
1636
|
-
return /* @__PURE__ */
|
|
1635
|
+
function rc(e, t) {
|
|
1636
|
+
return /* @__PURE__ */ tc(e, t, "svg");
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function ic() {
|
|
1639
1639
|
if (D)
|
|
1640
1640
|
return ut(x, null), x;
|
|
1641
1641
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Le();
|
|
@@ -1649,7 +1649,7 @@ function ur(e, t) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
e !== null && e.before(t);
|
|
1651
1651
|
}
|
|
1652
|
-
var
|
|
1652
|
+
var nc = [
|
|
1653
1653
|
"allowfullscreen",
|
|
1654
1654
|
"async",
|
|
1655
1655
|
"autofocus",
|
|
@@ -1678,8 +1678,8 @@ var rc = [
|
|
|
1678
1678
|
"defer",
|
|
1679
1679
|
"disablepictureinpicture",
|
|
1680
1680
|
"disableremoteplayback"
|
|
1681
|
-
],
|
|
1682
|
-
...
|
|
1681
|
+
], Bu = [
|
|
1682
|
+
...nc,
|
|
1683
1683
|
"formNoValidate",
|
|
1684
1684
|
"isMap",
|
|
1685
1685
|
"noModule",
|
|
@@ -1694,17 +1694,17 @@ var rc = [
|
|
|
1694
1694
|
"allowFullscreen",
|
|
1695
1695
|
"disablePictureInPicture",
|
|
1696
1696
|
"disableRemotePlayback"
|
|
1697
|
-
],
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1697
|
+
], oc = ["touchstart", "touchmove"];
|
|
1698
|
+
function sc(e) {
|
|
1699
|
+
return oc.includes(e);
|
|
1700
1700
|
}
|
|
1701
|
-
var
|
|
1701
|
+
var ac = [
|
|
1702
1702
|
"$state",
|
|
1703
1703
|
"$state.raw",
|
|
1704
1704
|
"$derived",
|
|
1705
1705
|
"$derived.by"
|
|
1706
|
-
],
|
|
1707
|
-
...
|
|
1706
|
+
], ju = [
|
|
1707
|
+
...ac,
|
|
1708
1708
|
"$state.eager",
|
|
1709
1709
|
"$state.snapshot",
|
|
1710
1710
|
"$props",
|
|
@@ -1724,17 +1724,17 @@ function li(e, t) {
|
|
|
1724
1724
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1725
1725
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return
|
|
1727
|
+
function aa(e, t) {
|
|
1728
|
+
return la(e, t);
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function lc(e, t) {
|
|
1731
1731
|
bn(), t.intro = t.intro ?? !1;
|
|
1732
1732
|
const r = t.target, i = D, n = x;
|
|
1733
1733
|
try {
|
|
1734
1734
|
for (var o = /* @__PURE__ */ Oe(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Ze(o);
|
|
1735
1735
|
if (!o) throw mr;
|
|
1736
1736
|
ft(!0), _e(o);
|
|
1737
|
-
const s =
|
|
1737
|
+
const s = la(e, {
|
|
1738
1738
|
...t,
|
|
1739
1739
|
anchor: o
|
|
1740
1740
|
});
|
|
@@ -1742,30 +1742,30 @@ function sc(e, t) {
|
|
|
1742
1742
|
} catch (s) {
|
|
1743
1743
|
if (s instanceof Error && s.message.split(`
|
|
1744
1744
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1745
|
-
return s !== mr && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1745
|
+
return s !== mr && console.warn("Failed to hydrate: ", s), t.recover === !1 && sl(), bn(), Bs(r), ft(!1), aa(e, t);
|
|
1746
1746
|
} finally {
|
|
1747
1747
|
ft(i), _e(n);
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
var ci = /* @__PURE__ */ new Map();
|
|
1751
|
-
function
|
|
1751
|
+
function la(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
|
|
1752
1752
|
bn();
|
|
1753
|
-
var
|
|
1753
|
+
var c = void 0, u = Vl(() => {
|
|
1754
1754
|
var d = r ?? t.appendChild(Le());
|
|
1755
|
-
|
|
1755
|
+
Sl(d, { pending: () => {
|
|
1756
1756
|
} }, (v) => {
|
|
1757
|
-
|
|
1757
|
+
_s({});
|
|
1758
1758
|
var _ = j;
|
|
1759
|
-
if (o && (_.c = o), n && (i.$$events = n), D && ut(v, null), $o = s,
|
|
1759
|
+
if (o && (_.c = o), n && (i.$$events = n), D && ut(v, null), $o = s, c = e(v, i) || {}, $o = !0, D && (C.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
|
|
1760
1760
|
throw Ri(), mr;
|
|
1761
|
-
|
|
1761
|
+
bs();
|
|
1762
1762
|
}, a);
|
|
1763
1763
|
var h = /* @__PURE__ */ new Set(), p = (v) => {
|
|
1764
1764
|
for (var _ = 0; _ < v.length; _++) {
|
|
1765
1765
|
var E = v[_];
|
|
1766
1766
|
if (!h.has(E)) {
|
|
1767
1767
|
h.add(E);
|
|
1768
|
-
var m =
|
|
1768
|
+
var m = sc(E);
|
|
1769
1769
|
for (const I of [t, document]) {
|
|
1770
1770
|
var T = ci.get(I);
|
|
1771
1771
|
T === void 0 && (T = /* @__PURE__ */ new Map(), ci.set(I, T));
|
|
@@ -1775,7 +1775,7 @@ function sa(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
|
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
1778
|
-
return p(Li(
|
|
1778
|
+
return p(Li(oa)), yn.add(p), () => {
|
|
1779
1779
|
for (var v of h) for (const m of [t, document]) {
|
|
1780
1780
|
var _ = ci.get(m), E = _.get(v);
|
|
1781
1781
|
--E == 0 ? (m.removeEventListener(v, Co), _.delete(v), _.size === 0 && ci.delete(m)) : _.set(v, E);
|
|
@@ -1783,74 +1783,74 @@ function sa(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
|
|
|
1783
1783
|
yn.delete(p), d !== r && d.parentNode?.removeChild(d);
|
|
1784
1784
|
};
|
|
1785
1785
|
});
|
|
1786
|
-
return wn.set(
|
|
1786
|
+
return wn.set(c, u), c;
|
|
1787
1787
|
}
|
|
1788
1788
|
var wn = /* @__PURE__ */ new WeakMap();
|
|
1789
|
-
function
|
|
1789
|
+
function cc(e, t) {
|
|
1790
1790
|
const r = wn.get(e);
|
|
1791
1791
|
return r ? (wn.delete(e), r(t)) : Promise.resolve();
|
|
1792
1792
|
}
|
|
1793
|
-
var at = /* @__PURE__ */ new WeakMap(),
|
|
1793
|
+
var at = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), fc = class {
|
|
1794
1794
|
constructor(e, t = !0) {
|
|
1795
|
-
b(this, "anchor", void 0), L(this, at, /* @__PURE__ */ new Map()), L(this,
|
|
1796
|
-
if (
|
|
1797
|
-
var i =
|
|
1795
|
+
b(this, "anchor", void 0), L(this, at, /* @__PURE__ */ new Map()), L(this, Tt, /* @__PURE__ */ new Map()), L(this, De, /* @__PURE__ */ new Map()), L(this, Lr, /* @__PURE__ */ new Set()), L(this, Gi, !0), L(this, qi, (r) => {
|
|
1796
|
+
if (f(at, this).has(r)) {
|
|
1797
|
+
var i = f(at, this).get(r), n = f(Tt, this).get(i);
|
|
1798
1798
|
if (n)
|
|
1799
|
-
Kn(n),
|
|
1799
|
+
Kn(n), f(Lr, this).delete(i);
|
|
1800
1800
|
else {
|
|
1801
|
-
var o =
|
|
1802
|
-
o && (
|
|
1801
|
+
var o = f(De, this).get(i);
|
|
1802
|
+
o && (f(Tt, this).set(i, o.effect), f(De, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
|
|
1803
1803
|
}
|
|
1804
|
-
for (const [s, a] of
|
|
1805
|
-
if (
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1804
|
+
for (const [s, a] of f(at, this)) {
|
|
1805
|
+
if (f(at, this).delete(s), s === r) break;
|
|
1806
|
+
const c = f(De, this).get(a);
|
|
1807
|
+
c && (fe(c.effect), f(De, this).delete(a));
|
|
1808
1808
|
}
|
|
1809
|
-
for (const [s, a] of
|
|
1810
|
-
if (s === i ||
|
|
1811
|
-
const
|
|
1812
|
-
if (Array.from(
|
|
1809
|
+
for (const [s, a] of f(Tt, this)) {
|
|
1810
|
+
if (s === i || f(Lr, this).has(s)) continue;
|
|
1811
|
+
const c = () => {
|
|
1812
|
+
if (Array.from(f(at, this).values()).includes(s)) {
|
|
1813
1813
|
var u = document.createDocumentFragment();
|
|
1814
|
-
Xn(a, u), u.append(Le()),
|
|
1814
|
+
Xn(a, u), u.append(Le()), f(De, this).set(s, {
|
|
1815
1815
|
effect: a,
|
|
1816
1816
|
fragment: u
|
|
1817
1817
|
});
|
|
1818
1818
|
} else fe(a);
|
|
1819
|
-
|
|
1819
|
+
f(Lr, this).delete(s), f(Tt, this).delete(s);
|
|
1820
1820
|
};
|
|
1821
|
-
|
|
1821
|
+
f(Gi, this) || !n ? (f(Lr, this).add(s), Kt(a, c, !1)) : c();
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
1824
|
}), L(this, Po, (r) => {
|
|
1825
|
-
|
|
1826
|
-
const i = Array.from(
|
|
1827
|
-
for (const [n, o] of
|
|
1825
|
+
f(at, this).delete(r);
|
|
1826
|
+
const i = Array.from(f(at, this).values());
|
|
1827
|
+
for (const [n, o] of f(De, this)) i.includes(n) || (fe(o.effect), f(De, this).delete(n));
|
|
1828
1828
|
}), this.anchor = e, R(Gi, this, t);
|
|
1829
1829
|
}
|
|
1830
1830
|
ensure(e, t) {
|
|
1831
|
-
var r = $, i =
|
|
1832
|
-
if (t && !
|
|
1831
|
+
var r = $, i = js();
|
|
1832
|
+
if (t && !f(Tt, this).has(e) && !f(De, this).has(e)) if (i) {
|
|
1833
1833
|
var n = document.createDocumentFragment(), o = Le();
|
|
1834
|
-
n.append(o),
|
|
1834
|
+
n.append(o), f(De, this).set(e, {
|
|
1835
1835
|
effect: Ce(() => t(o)),
|
|
1836
1836
|
fragment: n
|
|
1837
1837
|
});
|
|
1838
|
-
} else
|
|
1839
|
-
if (
|
|
1840
|
-
for (const [s, a] of
|
|
1841
|
-
for (const [s, a] of
|
|
1842
|
-
r.oncommit(
|
|
1838
|
+
} else f(Tt, this).set(e, Ce(() => t(this.anchor)));
|
|
1839
|
+
if (f(at, this).set(r, e), i) {
|
|
1840
|
+
for (const [s, a] of f(Tt, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1841
|
+
for (const [s, a] of f(De, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1842
|
+
r.oncommit(f(qi, this)), r.ondiscard(f(Po, this));
|
|
1843
1843
|
} else
|
|
1844
|
-
D && (this.anchor = x),
|
|
1844
|
+
D && (this.anchor = x), f(qi, this).call(this, r);
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
|
-
function
|
|
1848
|
-
j === null &&
|
|
1847
|
+
function uc(e) {
|
|
1848
|
+
j === null && Za("onMount"), qr && j.l !== null ? dc(j).m.push(e) : fr(() => {
|
|
1849
1849
|
const t = $i(e);
|
|
1850
1850
|
if (typeof t == "function") return t;
|
|
1851
1851
|
});
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function dc(e) {
|
|
1854
1854
|
var t = e.l;
|
|
1855
1855
|
return t.u ?? (t.u = {
|
|
1856
1856
|
a: [],
|
|
@@ -1861,29 +1861,29 @@ function fc(e) {
|
|
|
1861
1861
|
function Yi(e, t, r = !1) {
|
|
1862
1862
|
var i;
|
|
1863
1863
|
D && (i = x, Mi());
|
|
1864
|
-
var n = new
|
|
1865
|
-
function s(a,
|
|
1864
|
+
var n = new fc(e), o = r ? Pn : 0;
|
|
1865
|
+
function s(a, c) {
|
|
1866
1866
|
if (D) {
|
|
1867
|
-
var u =
|
|
1867
|
+
var u = vs(i);
|
|
1868
1868
|
if (a !== parseInt(u.substring(1))) {
|
|
1869
1869
|
var d = ki();
|
|
1870
|
-
_e(d), n.anchor = d, ft(!1), n.ensure(a,
|
|
1870
|
+
_e(d), n.anchor = d, ft(!1), n.ensure(a, c), ft(!0);
|
|
1871
1871
|
return;
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
n.ensure(a,
|
|
1874
|
+
n.ensure(a, c);
|
|
1875
1875
|
}
|
|
1876
1876
|
qn(() => {
|
|
1877
1877
|
var a = !1;
|
|
1878
|
-
t((
|
|
1879
|
-
a = !0, s(u,
|
|
1878
|
+
t((c, u = 0) => {
|
|
1879
|
+
a = !0, s(u, c);
|
|
1880
1880
|
}), a || s(-1, null);
|
|
1881
1881
|
}, o);
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function pc(e, t, r) {
|
|
1884
1884
|
for (var i = [], n = t.length, o, s = t.length, a = 0; a < n; a++) {
|
|
1885
1885
|
let h = t[a];
|
|
1886
|
-
|
|
1886
|
+
Kt(h, () => {
|
|
1887
1887
|
if (o) {
|
|
1888
1888
|
if (o.pending.delete(h), o.done.add(h), o.pending.size === 0) {
|
|
1889
1889
|
var p = e.outrogroups;
|
|
@@ -1893,12 +1893,12 @@ function uc(e, t, r) {
|
|
|
1893
1893
|
}, !1);
|
|
1894
1894
|
}
|
|
1895
1895
|
if (s === 0) {
|
|
1896
|
-
var
|
|
1897
|
-
if (
|
|
1896
|
+
var c = i.length === 0 && r !== null;
|
|
1897
|
+
if (c) {
|
|
1898
1898
|
var u = r, d = u.parentNode;
|
|
1899
|
-
|
|
1899
|
+
Bs(d), d.append(u), e.items.clear();
|
|
1900
1900
|
}
|
|
1901
|
-
Tn(e, t, !
|
|
1901
|
+
Tn(e, t, !c);
|
|
1902
1902
|
} else
|
|
1903
1903
|
o = {
|
|
1904
1904
|
pending: new Set(t),
|
|
@@ -1917,19 +1917,19 @@ function Tn(e, t, r = !0) {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
var fi;
|
|
1920
|
-
function
|
|
1920
|
+
function hc(e, t, r, i, n, o = null) {
|
|
1921
1921
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1922
1922
|
if ((t & 4) !== 0) {
|
|
1923
|
-
var
|
|
1924
|
-
s = D ? _e(/* @__PURE__ */ Oe(
|
|
1923
|
+
var c = e;
|
|
1924
|
+
s = D ? _e(/* @__PURE__ */ Oe(c)) : c.appendChild(Le());
|
|
1925
1925
|
}
|
|
1926
1926
|
D && Mi();
|
|
1927
1927
|
var u = null, d = /* @__PURE__ */ Hn(() => {
|
|
1928
1928
|
var T = r();
|
|
1929
|
-
return
|
|
1929
|
+
return fs(T) ? T : T == null ? [] : Li(T);
|
|
1930
1930
|
}), h, p = /* @__PURE__ */ new Map(), v = !0;
|
|
1931
1931
|
function _(T) {
|
|
1932
|
-
(m.effect.f & 16384) === 0 && (m.pending.delete(T), m.fallback = u,
|
|
1932
|
+
(m.effect.f & 16384) === 0 && (m.pending.delete(T), m.fallback = u, vc(m, h, s, t, i), u !== null && (h.length === 0 ? (u.f & 33554432) === 0 ? Kn(u) : (u.f ^= zr, Ur(u, null, s)) : Kt(u, () => {
|
|
1933
1933
|
u = null;
|
|
1934
1934
|
})));
|
|
1935
1935
|
}
|
|
@@ -1941,18 +1941,18 @@ function dc(e, t, r, i, n, o = null) {
|
|
|
1941
1941
|
h = y(d);
|
|
1942
1942
|
var T = h.length;
|
|
1943
1943
|
let F = !1;
|
|
1944
|
-
D &&
|
|
1945
|
-
for (var I = /* @__PURE__ */ new Set(), O = $, G =
|
|
1944
|
+
D && vs(s) === "[!" != (T === 0) && (s = ki(), _e(s), ft(!1), F = !0);
|
|
1945
|
+
for (var I = /* @__PURE__ */ new Set(), O = $, G = js(), q = 0; q < T; q += 1) {
|
|
1946
1946
|
D && x.nodeType === 8 && x.data === "]" && (s = x, F = !0, ft(!1));
|
|
1947
1947
|
var pe = h[q], ne = i(pe, q);
|
|
1948
1948
|
if (0)
|
|
1949
1949
|
var Xt;
|
|
1950
1950
|
var Y = v ? null : a.get(ne);
|
|
1951
|
-
Y ? (Y.v && wr(Y.v, pe), Y.i && wr(Y.i, q), G && O.unskip_effect(Y.e)) : (Y =
|
|
1951
|
+
Y ? (Y.v && wr(Y.v, pe), Y.i && wr(Y.i, q), G && O.unskip_effect(Y.e)) : (Y = mc(a, v ? s : fi ?? (fi = Le()), pe, ne, q, n, t, r), v || (Y.e.f |= zr), a.set(ne, Y)), I.add(ne);
|
|
1952
1952
|
}
|
|
1953
|
-
if (T === 0 && o && !u && (v ? u = Ce(() => o(s)) : (u = Ce(() => o(fi ?? (fi = Le()))), u.f |= zr)), T > I.size &&
|
|
1953
|
+
if (T === 0 && o && !u && (v ? u = Ce(() => o(s)) : (u = Ce(() => o(fi ?? (fi = Le()))), u.f |= zr)), T > I.size && tl("", "", ""), D && T > 0 && _e(ki()), !v)
|
|
1954
1954
|
if (p.set(O, I), G) {
|
|
1955
|
-
for (const [K,
|
|
1955
|
+
for (const [K, _t] of a) I.has(K) || O.skip_effect(_t.e);
|
|
1956
1956
|
O.oncommit(_), O.ondiscard(E);
|
|
1957
1957
|
} else _(O);
|
|
1958
1958
|
F && ft(!0), y(d);
|
|
@@ -1969,21 +1969,21 @@ function Rr(e) {
|
|
|
1969
1969
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
1970
1970
|
return e;
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1973
|
-
var o = (i & 8) !== 0, s = t.length, a = e.items,
|
|
1972
|
+
function vc(e, t, r, i, n) {
|
|
1973
|
+
var o = (i & 8) !== 0, s = t.length, a = e.items, c = Rr(e.effect.first), u, d = null, h, p = [], v = [], _, E, m, T;
|
|
1974
1974
|
if (o) for (T = 0; T < s; T += 1)
|
|
1975
1975
|
_ = t[T], E = n(_, T), m = a.get(E).e, (m.f & 33554432) === 0 && (m.nodes?.a?.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(m));
|
|
1976
1976
|
for (T = 0; T < s; T += 1) {
|
|
1977
1977
|
if (_ = t[T], E = n(_, T), m = a.get(E).e, e.outrogroups !== null) for (const Y of e.outrogroups)
|
|
1978
1978
|
Y.pending.delete(m), Y.done.delete(m);
|
|
1979
1979
|
if ((m.f & 8192) !== 0 && (Kn(m), o && (m.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(m))), (m.f & 33554432) !== 0)
|
|
1980
|
-
if (m.f ^= zr, m ===
|
|
1980
|
+
if (m.f ^= zr, m === c) Ur(m, null, r);
|
|
1981
1981
|
else {
|
|
1982
|
-
var F = d ? d.next :
|
|
1983
|
-
m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev),
|
|
1982
|
+
var F = d ? d.next : c;
|
|
1983
|
+
m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev), kt(e, d, m), kt(e, m, F), Ur(m, F, r), d = m, p = [], v = [], c = Rr(d.next);
|
|
1984
1984
|
continue;
|
|
1985
1985
|
}
|
|
1986
|
-
if (m !==
|
|
1986
|
+
if (m !== c) {
|
|
1987
1987
|
if (u !== void 0 && u.has(m)) {
|
|
1988
1988
|
if (p.length < v.length) {
|
|
1989
1989
|
var I = v[0], O;
|
|
@@ -1991,27 +1991,27 @@ function pc(e, t, r, i, n) {
|
|
|
1991
1991
|
var G = p[0], q = p[p.length - 1];
|
|
1992
1992
|
for (O = 0; O < p.length; O += 1) Ur(p[O], I, r);
|
|
1993
1993
|
for (O = 0; O < v.length; O += 1) u.delete(v[O]);
|
|
1994
|
-
|
|
1994
|
+
kt(e, G.prev, q.next), kt(e, d, G), kt(e, q, I), c = I, d = q, T -= 1, p = [], v = [];
|
|
1995
1995
|
} else
|
|
1996
|
-
u.delete(m), Ur(m,
|
|
1996
|
+
u.delete(m), Ur(m, c, r), kt(e, m.prev, m.next), kt(e, m, d === null ? e.effect.first : d.next), kt(e, d, m), d = m;
|
|
1997
1997
|
continue;
|
|
1998
1998
|
}
|
|
1999
|
-
for (p = [], v = [];
|
|
2000
|
-
(u ?? (u = /* @__PURE__ */ new Set())).add(
|
|
2001
|
-
if (
|
|
1999
|
+
for (p = [], v = []; c !== null && c !== m; )
|
|
2000
|
+
(u ?? (u = /* @__PURE__ */ new Set())).add(c), v.push(c), c = Rr(c.next);
|
|
2001
|
+
if (c === null) continue;
|
|
2002
2002
|
}
|
|
2003
|
-
(m.f & 33554432) === 0 && p.push(m), d = m,
|
|
2003
|
+
(m.f & 33554432) === 0 && p.push(m), d = m, c = Rr(m.next);
|
|
2004
2004
|
}
|
|
2005
2005
|
if (e.outrogroups !== null) {
|
|
2006
2006
|
for (const Y of e.outrogroups) Y.pending.size === 0 && (Tn(e, Li(Y.done)), e.outrogroups?.delete(Y));
|
|
2007
2007
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2008
2008
|
}
|
|
2009
|
-
if (
|
|
2009
|
+
if (c !== null || u !== void 0) {
|
|
2010
2010
|
var pe = [];
|
|
2011
2011
|
if (u !== void 0)
|
|
2012
2012
|
for (m of u) (m.f & 8192) === 0 && pe.push(m);
|
|
2013
|
-
for (;
|
|
2014
|
-
(
|
|
2013
|
+
for (; c !== null; )
|
|
2014
|
+
(c.f & 8192) === 0 && c !== e.fallback && pe.push(c), c = Rr(c.next);
|
|
2015
2015
|
var ne = pe.length;
|
|
2016
2016
|
if (ne > 0) {
|
|
2017
2017
|
var Xt = (i & 4) !== 0 && s === 0 ? r : null;
|
|
@@ -2019,20 +2019,20 @@ function pc(e, t, r, i, n) {
|
|
|
2019
2019
|
for (T = 0; T < ne; T += 1) pe[T].nodes?.a?.measure();
|
|
2020
2020
|
for (T = 0; T < ne; T += 1) pe[T].nodes?.a?.fix();
|
|
2021
2021
|
}
|
|
2022
|
-
|
|
2022
|
+
pc(e, pe, Xt);
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
|
-
o &&
|
|
2025
|
+
o && Vt(() => {
|
|
2026
2026
|
if (h !== void 0)
|
|
2027
2027
|
for (m of h) m.nodes?.a?.apply();
|
|
2028
2028
|
});
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
var
|
|
2030
|
+
function mc(e, t, r, i, n, o, s, a) {
|
|
2031
|
+
var c = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ Us(r, !1, !1) : Gt(r) : null, u = (s & 2) !== 0 ? Gt(n) : null;
|
|
2032
2032
|
return {
|
|
2033
|
-
v:
|
|
2033
|
+
v: c,
|
|
2034
2034
|
i: u,
|
|
2035
|
-
e: Ce(() => (o(t,
|
|
2035
|
+
e: Ce(() => (o(t, c ?? r, u ?? n, a), () => {
|
|
2036
2036
|
e.delete(i);
|
|
2037
2037
|
}))
|
|
2038
2038
|
};
|
|
@@ -2045,11 +2045,11 @@ function Ur(e, t, r) {
|
|
|
2045
2045
|
i = s;
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function kt(e, t, r) {
|
|
2049
2049
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2052
|
-
|
|
2051
|
+
function gc(e, t) {
|
|
2052
|
+
qs(() => {
|
|
2053
2053
|
var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2054
2054
|
if (!i.querySelector("#" + t.hash)) {
|
|
2055
2055
|
const n = Bn("style");
|
|
@@ -2059,7 +2059,7 @@ function vc(e, t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
var xo = [...`
|
|
2061
2061
|
\r\f \v\uFEFF`];
|
|
2062
|
-
function
|
|
2062
|
+
function _c(e, t, r) {
|
|
2063
2063
|
var i = e == null ? "" : "" + e;
|
|
2064
2064
|
if (t && (i = i ? i + " " + t : t), r) {
|
|
2065
2065
|
for (var n of Object.keys(r)) if (r[n]) i = i ? i + " " + n : n;
|
|
@@ -2082,13 +2082,13 @@ function Do(e, t = !1) {
|
|
|
2082
2082
|
function Ki(e) {
|
|
2083
2083
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2085
|
+
function bc(e, t) {
|
|
2086
2086
|
if (t) {
|
|
2087
2087
|
var r = "", i, n;
|
|
2088
2088
|
if (Array.isArray(t) ? (i = t[0], n = t[1]) : i = t, e) {
|
|
2089
2089
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
2090
|
-
var o = !1, s = 0, a = !1,
|
|
2091
|
-
i &&
|
|
2090
|
+
var o = !1, s = 0, a = !1, c = [];
|
|
2091
|
+
i && c.push(...Object.keys(i).map(Ki)), n && c.push(...Object.keys(n).map(Ki));
|
|
2092
2092
|
var u = 0, d = -1;
|
|
2093
2093
|
const E = e.length;
|
|
2094
2094
|
for (var h = 0; h < E; h++) {
|
|
@@ -2098,7 +2098,7 @@ function gc(e, t) {
|
|
|
2098
2098
|
else if (p === ";" || h === E - 1) {
|
|
2099
2099
|
if (d !== -1) {
|
|
2100
2100
|
var v = Ki(e.substring(u, d).trim());
|
|
2101
|
-
if (!
|
|
2101
|
+
if (!c.includes(v)) {
|
|
2102
2102
|
p !== ";" && h++;
|
|
2103
2103
|
var _ = e.substring(u, h).trim();
|
|
2104
2104
|
r += " " + _ + ";";
|
|
@@ -2113,14 +2113,14 @@ function gc(e, t) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
return e == null ? null : String(e);
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function yc(e, t, r, i, n, o) {
|
|
2117
2117
|
var s = e.__className;
|
|
2118
2118
|
if (D || s !== r || s === void 0) {
|
|
2119
|
-
var a =
|
|
2119
|
+
var a = _c(r, i, o);
|
|
2120
2120
|
(!D || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
2121
|
-
} else if (o && n !== o) for (var
|
|
2122
|
-
var u = !!o[
|
|
2123
|
-
(n == null || u !== !!n[
|
|
2121
|
+
} else if (o && n !== o) for (var c in o) {
|
|
2122
|
+
var u = !!o[c];
|
|
2123
|
+
(n == null || u !== !!n[c]) && e.classList.toggle(c, u);
|
|
2124
2124
|
}
|
|
2125
2125
|
return o;
|
|
2126
2126
|
}
|
|
@@ -2133,96 +2133,96 @@ function Xi(e, t = {}, r, i) {
|
|
|
2133
2133
|
function ar(e, t, r, i) {
|
|
2134
2134
|
var n = e.__style;
|
|
2135
2135
|
if (D || n !== t) {
|
|
2136
|
-
var o =
|
|
2136
|
+
var o = bc(t, i);
|
|
2137
2137
|
(!D || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
2138
2138
|
} else i && (Array.isArray(i) ? (Xi(e, r?.[0], i[0]), Xi(e, r?.[1], i[1], "important")) : Xi(e, r, i));
|
|
2139
2139
|
return i;
|
|
2140
2140
|
}
|
|
2141
|
-
var
|
|
2141
|
+
var wc = /* @__PURE__ */ Symbol("is custom element"), Tc = /* @__PURE__ */ Symbol("is html"), kc = Qa ? "link" : "LINK";
|
|
2142
2142
|
function Ji(e, t, r, i) {
|
|
2143
|
-
var n =
|
|
2144
|
-
if (D && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2143
|
+
var n = Ec(e);
|
|
2144
|
+
if (D && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === kc)) {
|
|
2145
2145
|
i || void 0;
|
|
2146
2146
|
return;
|
|
2147
2147
|
}
|
|
2148
|
-
n[t] !== (n[t] = r) && (t === "loading" && (e[
|
|
2148
|
+
n[t] !== (n[t] = r) && (t === "loading" && (e[Xa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ac(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2150
|
+
function Ec(e) {
|
|
2151
2151
|
return e.__attributes ?? (e.__attributes = {
|
|
2152
|
-
[
|
|
2153
|
-
[
|
|
2152
|
+
[wc]: e.nodeName.includes("-"),
|
|
2153
|
+
[Tc]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2154
2154
|
});
|
|
2155
2155
|
}
|
|
2156
2156
|
var No = /* @__PURE__ */ new Map();
|
|
2157
|
-
function
|
|
2157
|
+
function Ac(e) {
|
|
2158
2158
|
var t = e.getAttribute("is") || e.nodeName, r = No.get(t);
|
|
2159
2159
|
if (r) return r;
|
|
2160
2160
|
No.set(t, r = []);
|
|
2161
2161
|
for (var i, n = e, o = Element.prototype; o !== n; ) {
|
|
2162
|
-
i =
|
|
2162
|
+
i = Wa(n);
|
|
2163
2163
|
for (var s in i) i[s].set && r.push(s);
|
|
2164
|
-
n =
|
|
2164
|
+
n = us(n);
|
|
2165
2165
|
}
|
|
2166
2166
|
return r;
|
|
2167
2167
|
}
|
|
2168
|
-
var
|
|
2168
|
+
var ca, dr = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakSet(), fa = class {
|
|
2169
2169
|
constructor(e) {
|
|
2170
2170
|
Dn(this, Uo), L(this, dr, /* @__PURE__ */ new WeakMap()), L(this, Ii, void 0), L(this, Qi, void 0), R(Qi, this, e);
|
|
2171
2171
|
}
|
|
2172
2172
|
observe(e, t) {
|
|
2173
|
-
var r =
|
|
2174
|
-
return r.add(t),
|
|
2175
|
-
var i =
|
|
2176
|
-
i.delete(t), i.size === 0 && (
|
|
2173
|
+
var r = f(dr, this).get(e) || /* @__PURE__ */ new Set();
|
|
2174
|
+
return r.add(t), f(dr, this).set(e, r), N(Uo, this, Sc).call(this).observe(e, f(Qi, this)), () => {
|
|
2175
|
+
var i = f(dr, this).get(e);
|
|
2176
|
+
i.delete(t), i.size === 0 && (f(dr, this).delete(e), f(Ii, this).unobserve(e));
|
|
2177
2177
|
};
|
|
2178
2178
|
}
|
|
2179
2179
|
};
|
|
2180
|
-
|
|
2181
|
-
function
|
|
2182
|
-
return
|
|
2180
|
+
ca = fa;
|
|
2181
|
+
function Sc() {
|
|
2182
|
+
return f(Ii, this) ?? R(Ii, this, new ResizeObserver((e) => {
|
|
2183
2183
|
for (var t of e) {
|
|
2184
|
-
|
|
2185
|
-
for (var r of
|
|
2184
|
+
ca.entries.set(t.target, t);
|
|
2185
|
+
for (var r of f(dr, this).get(t.target) || []) r(t);
|
|
2186
2186
|
}
|
|
2187
2187
|
}));
|
|
2188
2188
|
}
|
|
2189
|
-
b(
|
|
2189
|
+
b(fa, "entries", /* @__PURE__ */ new WeakMap());
|
|
2190
2190
|
function Fo(e, t) {
|
|
2191
2191
|
return e === t || e?.[Hr] === t;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Ic(e = {}, t, r, i) {
|
|
2194
2194
|
var n = j.r, o = C;
|
|
2195
|
-
return
|
|
2195
|
+
return qs(() => {
|
|
2196
2196
|
var s, a;
|
|
2197
2197
|
return Gn(() => {
|
|
2198
2198
|
s = a, a = i?.() || [], $i(() => {
|
|
2199
2199
|
e !== r(...a) && (t(e, ...a), s && Fo(r(...s), e) && t(null, ...s));
|
|
2200
2200
|
});
|
|
2201
2201
|
}), () => {
|
|
2202
|
-
let
|
|
2203
|
-
for (;
|
|
2202
|
+
let c = o;
|
|
2203
|
+
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
2204
2204
|
const u = () => {
|
|
2205
2205
|
a && Fo(r(...a), e) && t(null, ...a);
|
|
2206
|
-
}, d =
|
|
2207
|
-
|
|
2206
|
+
}, d = c.teardown;
|
|
2207
|
+
c.teardown = () => {
|
|
2208
2208
|
u(), d?.();
|
|
2209
2209
|
};
|
|
2210
2210
|
};
|
|
2211
2211
|
}), e;
|
|
2212
2212
|
}
|
|
2213
2213
|
function ui(e, t, r, i) {
|
|
2214
|
-
var n = !qr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i,
|
|
2214
|
+
var n = !qr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i, c = !0, u = () => (c && (c = !1, a = s ? $i(i) : i), a);
|
|
2215
2215
|
let d;
|
|
2216
2216
|
if (o) {
|
|
2217
|
-
var h = Hr in e ||
|
|
2218
|
-
d =
|
|
2217
|
+
var h = Hr in e || ps in e;
|
|
2218
|
+
d = Ut(e, t)?.set ?? (h && t in e ? (I) => e[t] = I : void 0);
|
|
2219
2219
|
}
|
|
2220
2220
|
var p, v = !1;
|
|
2221
|
-
o ? [p, v] =
|
|
2221
|
+
o ? [p, v] = bl(() => e[t]) : p = e[t], p === void 0 && i !== void 0 && (p = u(), d && (n && al(t), d(p)));
|
|
2222
2222
|
var _;
|
|
2223
2223
|
if (n ? _ = () => {
|
|
2224
2224
|
var I = e[t];
|
|
2225
|
-
return I === void 0 ? u() : (
|
|
2225
|
+
return I === void 0 ? u() : (c = !0, I);
|
|
2226
2226
|
} : _ = () => {
|
|
2227
2227
|
var I = e[t];
|
|
2228
2228
|
return I !== void 0 && (a = void 0), I === void 0 ? a : I;
|
|
@@ -2244,14 +2244,14 @@ function ui(e, t, r, i) {
|
|
|
2244
2244
|
return pt && m || (F.f & 16384) !== 0 ? T.v : y(T);
|
|
2245
2245
|
});
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return new
|
|
2247
|
+
function Oc(e) {
|
|
2248
|
+
return new Lc(e);
|
|
2249
2249
|
}
|
|
2250
|
-
var
|
|
2250
|
+
var Pt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Lc = class {
|
|
2251
2251
|
constructor(e) {
|
|
2252
|
-
L(this,
|
|
2252
|
+
L(this, Pt, void 0), L(this, Ge, void 0);
|
|
2253
2253
|
var t = /* @__PURE__ */ new Map(), r = (n, o) => {
|
|
2254
|
-
var s = /* @__PURE__ */
|
|
2254
|
+
var s = /* @__PURE__ */ Us(o, !1, !1);
|
|
2255
2255
|
return t.set(n, s), s;
|
|
2256
2256
|
};
|
|
2257
2257
|
const i = new Proxy({
|
|
@@ -2262,13 +2262,13 @@ var Ct = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ic =
|
|
|
2262
2262
|
return y(t.get(o) ?? r(o, Reflect.get(n, o)));
|
|
2263
2263
|
},
|
|
2264
2264
|
has(n, o) {
|
|
2265
|
-
return o ===
|
|
2265
|
+
return o === ps ? !0 : (y(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
|
|
2266
2266
|
},
|
|
2267
2267
|
set(n, o, s) {
|
|
2268
2268
|
return te(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
|
|
2269
2269
|
}
|
|
2270
2270
|
});
|
|
2271
|
-
R(Ge, this, (e.hydrate ?
|
|
2271
|
+
R(Ge, this, (e.hydrate ? lc : aa)(e.component, {
|
|
2272
2272
|
target: e.target,
|
|
2273
2273
|
anchor: e.anchor,
|
|
2274
2274
|
props: i,
|
|
@@ -2276,38 +2276,38 @@ var Ct = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ic =
|
|
|
2276
2276
|
intro: e.intro ?? !1,
|
|
2277
2277
|
recover: e.recover,
|
|
2278
2278
|
transformError: e.transformError
|
|
2279
|
-
})), !dt && (!e?.props?.$$host || e.sync === !1) && Nr(), R(
|
|
2280
|
-
for (const n of Object.keys(
|
|
2279
|
+
})), !dt && (!e?.props?.$$host || e.sync === !1) && Nr(), R(Pt, this, i.$$events);
|
|
2280
|
+
for (const n of Object.keys(f(Ge, this)))
|
|
2281
2281
|
n === "$set" || n === "$destroy" || n === "$on" || wi(this, n, {
|
|
2282
2282
|
get() {
|
|
2283
|
-
return
|
|
2283
|
+
return f(Ge, this)[n];
|
|
2284
2284
|
},
|
|
2285
2285
|
set(o) {
|
|
2286
|
-
|
|
2286
|
+
f(Ge, this)[n] = o;
|
|
2287
2287
|
},
|
|
2288
2288
|
enumerable: !0
|
|
2289
2289
|
});
|
|
2290
|
-
|
|
2290
|
+
f(Ge, this).$set = (n) => {
|
|
2291
2291
|
Object.assign(i, n);
|
|
2292
|
-
},
|
|
2293
|
-
|
|
2292
|
+
}, f(Ge, this).$destroy = () => {
|
|
2293
|
+
cc(f(Ge, this));
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
2296
|
$set(e) {
|
|
2297
|
-
|
|
2297
|
+
f(Ge, this).$set(e);
|
|
2298
2298
|
}
|
|
2299
2299
|
$on(e, t) {
|
|
2300
|
-
|
|
2300
|
+
f(Pt, this)[e] = f(Pt, this)[e] || [];
|
|
2301
2301
|
const r = (...i) => t.call(this, ...i);
|
|
2302
|
-
return
|
|
2303
|
-
|
|
2302
|
+
return f(Pt, this)[e].push(r), () => {
|
|
2303
|
+
f(Pt, this)[e] = f(Pt, this)[e].filter((i) => i !== r);
|
|
2304
2304
|
};
|
|
2305
2305
|
}
|
|
2306
2306
|
$destroy() {
|
|
2307
|
-
|
|
2307
|
+
f(Ge, this).$destroy();
|
|
2308
2308
|
}
|
|
2309
|
-
},
|
|
2310
|
-
typeof HTMLElement == "function" && (
|
|
2309
|
+
}, ua;
|
|
2310
|
+
typeof HTMLElement == "function" && (ua = class extends HTMLElement {
|
|
2311
2311
|
constructor(e, t, r) {
|
|
2312
2312
|
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2313
2313
|
}
|
|
@@ -2333,14 +2333,14 @@ typeof HTMLElement == "function" && (ca = class extends HTMLElement {
|
|
|
2333
2333
|
};
|
|
2334
2334
|
};
|
|
2335
2335
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2336
|
-
const t = {}, r =
|
|
2336
|
+
const t = {}, r = Rc(this);
|
|
2337
2337
|
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));
|
|
2338
2338
|
for (const i of this.attributes) {
|
|
2339
2339
|
const n = this.$$g_p(i.name);
|
|
2340
2340
|
n in this.$$d || (this.$$d[n] = mi(n, i.value, this.$$p_d, "toProp"));
|
|
2341
2341
|
}
|
|
2342
2342
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2343
|
-
this.$$c =
|
|
2343
|
+
this.$$c = Oc({
|
|
2344
2344
|
component: this.$$ctor,
|
|
2345
2345
|
target: this.$$shadowRoot || this,
|
|
2346
2346
|
props: {
|
|
@@ -2348,7 +2348,7 @@ typeof HTMLElement == "function" && (ca = class extends HTMLElement {
|
|
|
2348
2348
|
$$slots: t,
|
|
2349
2349
|
$$host: this
|
|
2350
2350
|
}
|
|
2351
|
-
}), this.$$me =
|
|
2351
|
+
}), this.$$me = jl(() => {
|
|
2352
2352
|
Gn(() => {
|
|
2353
2353
|
this.$$r = !0;
|
|
2354
2354
|
for (const i of yi(this.$$c)) {
|
|
@@ -2405,14 +2405,14 @@ function mi(e, t, r, i) {
|
|
|
2405
2405
|
return t;
|
|
2406
2406
|
}
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Rc(e) {
|
|
2409
2409
|
const t = {};
|
|
2410
2410
|
return e.childNodes.forEach((r) => {
|
|
2411
2411
|
t[r.slot || "default"] = !0;
|
|
2412
2412
|
}), t;
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2415
|
-
let s = class extends
|
|
2414
|
+
function Mc(e, t, r, i, n, o) {
|
|
2415
|
+
let s = class extends ua {
|
|
2416
2416
|
constructor() {
|
|
2417
2417
|
super(e, r, n), this.$$p_d = t;
|
|
2418
2418
|
}
|
|
@@ -2425,10 +2425,10 @@ function Lc(e, t, r, i, n, o) {
|
|
|
2425
2425
|
get() {
|
|
2426
2426
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2427
2427
|
},
|
|
2428
|
-
set(
|
|
2429
|
-
|
|
2428
|
+
set(c) {
|
|
2429
|
+
c = mi(a, c, t), this.$$d[a] = c;
|
|
2430
2430
|
var u = this.$$c;
|
|
2431
|
-
u && (
|
|
2431
|
+
u && (Ut(u, a)?.get ? u[a] = c : u.$set({ [a]: c }));
|
|
2432
2432
|
}
|
|
2433
2433
|
});
|
|
2434
2434
|
}), i.forEach((a) => {
|
|
@@ -2437,14 +2437,14 @@ function Lc(e, t, r, i, n, o) {
|
|
|
2437
2437
|
} });
|
|
2438
2438
|
}), o && (s = o(s)), e.element = s, s;
|
|
2439
2439
|
}
|
|
2440
|
-
var
|
|
2440
|
+
var Cc = class extends Event {
|
|
2441
2441
|
constructor(e, t, r, i) {
|
|
2442
2442
|
super("context-request", {
|
|
2443
2443
|
bubbles: !0,
|
|
2444
2444
|
composed: !0
|
|
2445
2445
|
}), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
2446
2446
|
}
|
|
2447
|
-
},
|
|
2447
|
+
}, $c = class {
|
|
2448
2448
|
constructor(e, t) {
|
|
2449
2449
|
b(this, "host", void 0), b(this, "context", void 0), b(this, "subscribe", void 0), b(this, "onValue", void 0), b(this, "isConnected", !1), b(this, "unsubscribe", void 0), b(this, "currentValue", void 0), b(this, "handleValue", (r, i) => {
|
|
2450
2450
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2460,12 +2460,12 @@ var Rc = class extends Event {
|
|
|
2460
2460
|
return this.currentValue;
|
|
2461
2461
|
}
|
|
2462
2462
|
requestValue() {
|
|
2463
|
-
this.host.dispatchEvent(new
|
|
2463
|
+
this.host.dispatchEvent(new Cc(this.context, this.host, this.handleValue, this.subscribe));
|
|
2464
2464
|
}
|
|
2465
|
-
}, Pi = (e) => e,
|
|
2466
|
-
function
|
|
2465
|
+
}, Pi = (e) => e, Pc = Pi(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), Vu = Pi(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Gu = Pi(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), qu = Pi(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2466
|
+
function xc(e, t, r) {
|
|
2467
2467
|
let i = !1;
|
|
2468
|
-
const n = new
|
|
2468
|
+
const n = new $c(e, {
|
|
2469
2469
|
context: t,
|
|
2470
2470
|
subscribe: !0,
|
|
2471
2471
|
onValue: (u) => {
|
|
@@ -2478,22 +2478,22 @@ function $c(e, t, r) {
|
|
|
2478
2478
|
};
|
|
2479
2479
|
e.addEventListener("context-provider", o);
|
|
2480
2480
|
let s = 0;
|
|
2481
|
-
const a = 200,
|
|
2481
|
+
const a = 200, c = globalThis.setInterval(() => {
|
|
2482
2482
|
if (i || s >= a) {
|
|
2483
|
-
globalThis.clearInterval(
|
|
2483
|
+
globalThis.clearInterval(c);
|
|
2484
2484
|
return;
|
|
2485
2485
|
}
|
|
2486
2486
|
s += 1, n.requestValue();
|
|
2487
2487
|
}, 50);
|
|
2488
2488
|
return () => {
|
|
2489
|
-
globalThis.clearInterval(
|
|
2489
|
+
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
|
|
2490
2490
|
};
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return
|
|
2492
|
+
function Dc(e, t) {
|
|
2493
|
+
return xc(e, Pc, t);
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2496
|
-
return
|
|
2495
|
+
function Nc(e, t) {
|
|
2496
|
+
return Dc(e, t);
|
|
2497
2497
|
}
|
|
2498
2498
|
var zo;
|
|
2499
2499
|
(function(e) {
|
|
@@ -2503,12 +2503,12 @@ var Ho;
|
|
|
2503
2503
|
(function(e) {
|
|
2504
2504
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2505
2505
|
})(Ho || (Ho = {}));
|
|
2506
|
-
function
|
|
2506
|
+
function da(e) {
|
|
2507
2507
|
return (...t) => {
|
|
2508
2508
|
console.debug(`[${e}]`, ...t);
|
|
2509
2509
|
};
|
|
2510
2510
|
}
|
|
2511
|
-
var
|
|
2511
|
+
var Yu = da("I18nService"), Zi = {
|
|
2512
2512
|
assessment: [],
|
|
2513
2513
|
section: [],
|
|
2514
2514
|
item: [],
|
|
@@ -2520,80 +2520,80 @@ var Vu = fa("I18nService"), Zi = {
|
|
|
2520
2520
|
item: [...Zi.item],
|
|
2521
2521
|
passage: [...Zi.passage]
|
|
2522
2522
|
};
|
|
2523
|
-
function
|
|
2523
|
+
function jt(e) {
|
|
2524
2524
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Et(e, t) {
|
|
2527
2527
|
if (e == null) return [];
|
|
2528
2528
|
if (!Array.isArray(e)) throw new Error(`Invalid tools config at "${t}": expected an array of tool ids.`);
|
|
2529
2529
|
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2530
2530
|
return e;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2532
|
+
function Uc(e) {
|
|
2533
2533
|
if (e != null) {
|
|
2534
|
-
if (!
|
|
2534
|
+
if (!jt(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2535
2535
|
return e;
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function Fc(e) {
|
|
2539
2539
|
if (e != null) {
|
|
2540
|
-
if (!
|
|
2540
|
+
if (!jt(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2541
2541
|
return e;
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function zc(e, t) {
|
|
2545
2545
|
if (t == null) return;
|
|
2546
|
-
if (!
|
|
2546
|
+
if (!jt(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2547
2547
|
const r = t;
|
|
2548
2548
|
if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${e}.enabled": expected a boolean.`);
|
|
2549
|
-
if ("settings" in r && r.settings !== void 0 && !
|
|
2550
|
-
if ("provider" in r && r.provider !== void 0 && !
|
|
2549
|
+
if ("settings" in r && r.settings !== void 0 && !jt(r.settings)) throw new Error(`Invalid tools config at "providers.${e}.settings": expected an object.`);
|
|
2550
|
+
if ("provider" in r && r.provider !== void 0 && !jt(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2551
2551
|
return r;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Hc(e) {
|
|
2554
2554
|
if (e == null) return {};
|
|
2555
|
-
if (!
|
|
2555
|
+
if (!jt(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2556
2556
|
const t = {};
|
|
2557
|
-
for (const [r, i] of Object.entries(e)) t[r] =
|
|
2557
|
+
for (const [r, i] of Object.entries(e)) t[r] = zc(r, i);
|
|
2558
2558
|
return t;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function pa(e) {
|
|
2561
2561
|
const t = e.trim();
|
|
2562
2562
|
return t || "";
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function At(e) {
|
|
2565
2565
|
if (!e || e.length === 0) return [];
|
|
2566
2566
|
const t = /* @__PURE__ */ new Set();
|
|
2567
2567
|
for (const r of e) {
|
|
2568
2568
|
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2569
|
-
const i =
|
|
2569
|
+
const i = pa(r);
|
|
2570
2570
|
i && t.add(i);
|
|
2571
2571
|
}
|
|
2572
2572
|
return Array.from(t);
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function Wc(e, t) {
|
|
2575
2575
|
if (e != null) {
|
|
2576
2576
|
if (e === "on" || e === "off") return e;
|
|
2577
2577
|
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
if (e != null && !
|
|
2582
|
-
const t =
|
|
2580
|
+
function Bc(e) {
|
|
2581
|
+
if (e != null && !jt(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2582
|
+
const t = Fc(e?.policy), r = Uc(e?.placement), i = Hc(e?.providers), n = Wc(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
2583
2583
|
policy: {
|
|
2584
|
-
allowed:
|
|
2585
|
-
blocked:
|
|
2584
|
+
allowed: At(Et(t?.allowed, "policy.allowed")),
|
|
2585
|
+
blocked: At(Et(t?.blocked, "policy.blocked"))
|
|
2586
2586
|
},
|
|
2587
2587
|
placement: {
|
|
2588
|
-
section:
|
|
2589
|
-
item:
|
|
2590
|
-
passage:
|
|
2588
|
+
section: At(Et(r?.section, "placement.section")).length ? At(Et(r?.section, "placement.section")) : [...en.section],
|
|
2589
|
+
item: At(Et(r?.item, "placement.item")).length ? At(Et(r?.item, "placement.item")) : [...en.item],
|
|
2590
|
+
passage: At(Et(r?.passage, "placement.passage")).length ? At(Et(r?.passage, "placement.passage")) : [...en.passage]
|
|
2591
2591
|
},
|
|
2592
2592
|
providers: i
|
|
2593
2593
|
};
|
|
2594
2594
|
return n && (o.pnpEnforcement = n), o;
|
|
2595
2595
|
}
|
|
2596
|
-
var
|
|
2596
|
+
var jc = [
|
|
2597
2597
|
"assessment",
|
|
2598
2598
|
"section",
|
|
2599
2599
|
"item",
|
|
@@ -2604,7 +2604,7 @@ var Wc = [
|
|
|
2604
2604
|
function gi(e, t) {
|
|
2605
2605
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2606
2606
|
}
|
|
2607
|
-
var
|
|
2607
|
+
var Vc = [
|
|
2608
2608
|
{
|
|
2609
2609
|
pattern: /<script\b/i,
|
|
2610
2610
|
reason: "contains a <script> tag"
|
|
@@ -2622,17 +2622,17 @@ var Bc = [
|
|
|
2622
2622
|
reason: "contains a <foreignObject> element"
|
|
2623
2623
|
}
|
|
2624
2624
|
];
|
|
2625
|
-
function
|
|
2625
|
+
function Gc(e, t, r) {
|
|
2626
2626
|
const i = t.trimStart(), n = i.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(i);
|
|
2627
2627
|
if (/^data:/i.test(i)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2628
2628
|
if (!(!n && !o)) {
|
|
2629
|
-
for (const { pattern: s, reason: a } of
|
|
2629
|
+
for (const { pattern: s, reason: a } of Vc) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2630
2630
|
}
|
|
2631
2631
|
}
|
|
2632
2632
|
function Wo(e) {
|
|
2633
2633
|
if (gi(e.toolId, "toolId"), gi(e.name, "name"), gi(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.`);
|
|
2634
|
-
if (typeof e.icon == "string" &&
|
|
2635
|
-
const t = e.supportedLevels.find((r) => !
|
|
2634
|
+
if (typeof e.icon == "string" && Gc(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2635
|
+
const t = e.supportedLevels.find((r) => !jc.includes(r));
|
|
2636
2636
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2637
2637
|
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)}".`);
|
|
2638
2638
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2641,12 +2641,12 @@ function Wo(e) {
|
|
|
2641
2641
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2642
2642
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2643
2643
|
}
|
|
2644
|
-
var
|
|
2644
|
+
var qc = class {
|
|
2645
2645
|
constructor() {
|
|
2646
2646
|
b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2647
2647
|
}
|
|
2648
2648
|
normalizeToolId(e) {
|
|
2649
|
-
return
|
|
2649
|
+
return pa(e);
|
|
2650
2650
|
}
|
|
2651
2651
|
normalizeToolIds(e) {
|
|
2652
2652
|
return e.map((t) => this.normalizeToolId(t));
|
|
@@ -2784,20 +2784,20 @@ var Vc = class {
|
|
|
2784
2784
|
return i.renderToolbar(t, n);
|
|
2785
2785
|
}
|
|
2786
2786
|
};
|
|
2787
|
-
function
|
|
2787
|
+
function ha(e) {
|
|
2788
2788
|
return e.level === "item";
|
|
2789
2789
|
}
|
|
2790
|
-
function
|
|
2790
|
+
function Yc(e) {
|
|
2791
2791
|
return e.level === "passage";
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function Kc(e) {
|
|
2794
2794
|
return e.level === "rubric";
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function va(e) {
|
|
2797
2797
|
return e.level === "element";
|
|
2798
2798
|
}
|
|
2799
2799
|
function Qn(e) {
|
|
2800
|
-
if (
|
|
2800
|
+
if (va(e)) {
|
|
2801
2801
|
const t = e.item.config;
|
|
2802
2802
|
if (!t) return "";
|
|
2803
2803
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2806,24 +2806,24 @@ function Qn(e) {
|
|
|
2806
2806
|
if (s) {
|
|
2807
2807
|
for (const a of Object.values(s))
|
|
2808
2808
|
if (typeof a == "string" && r.push(i(a)), Array.isArray(a)) {
|
|
2809
|
-
for (const
|
|
2810
|
-
for (const u of Object.values(
|
|
2809
|
+
for (const c of a) if (c && typeof c == "object")
|
|
2810
|
+
for (const u of Object.values(c)) typeof u == "string" && r.push(i(u));
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
2813
|
return r.filter(Boolean).join(" ").trim();
|
|
2814
2814
|
}
|
|
2815
|
-
if (
|
|
2815
|
+
if (ha(e)) {
|
|
2816
2816
|
const t = e.item;
|
|
2817
2817
|
if (!t?.config) return "";
|
|
2818
|
-
const r = t.config, i = [], n = (
|
|
2818
|
+
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
2819
2819
|
typeof r.markup == "string" && i.push(n(r.markup));
|
|
2820
2820
|
const o = r.elements;
|
|
2821
2821
|
if (o && typeof o == "object")
|
|
2822
|
-
for (const
|
|
2822
|
+
for (const c of Object.values(o)) typeof c == "string" && i.push(n(c));
|
|
2823
2823
|
const s = r.models, a = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2824
|
-
for (const
|
|
2825
|
-
if (!(!
|
|
2826
|
-
for (const u of Object.values(
|
|
2824
|
+
for (const c of a)
|
|
2825
|
+
if (!(!c || typeof c != "object")) {
|
|
2826
|
+
for (const u of Object.values(c))
|
|
2827
2827
|
if (typeof u == "string" && i.push(n(u)), Array.isArray(u)) {
|
|
2828
2828
|
for (const d of u) if (d && typeof d == "object")
|
|
2829
2829
|
for (const h of Object.values(d)) typeof h == "string" && i.push(n(h));
|
|
@@ -2831,18 +2831,18 @@ function Qn(e) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
return i.filter(Boolean).join(" ").trim();
|
|
2833
2833
|
}
|
|
2834
|
-
if (
|
|
2834
|
+
if (Yc(e)) {
|
|
2835
2835
|
const t = e.passage;
|
|
2836
2836
|
if (!t?.config) return "";
|
|
2837
|
-
const r = t.config, i = [], n = (
|
|
2837
|
+
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
2838
2838
|
typeof r.markup == "string" && i.push(n(r.markup)), typeof r.content == "string" && i.push(n(r.content)), typeof r.prompt == "string" && i.push(n(r.prompt));
|
|
2839
2839
|
const o = r.elements;
|
|
2840
2840
|
if (o && typeof o == "object")
|
|
2841
|
-
for (const
|
|
2841
|
+
for (const c of Object.values(o)) typeof c == "string" && i.push(n(c));
|
|
2842
2842
|
const s = r.models, a = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2843
|
-
for (const
|
|
2844
|
-
if (!(!
|
|
2845
|
-
for (const u of Object.values(
|
|
2843
|
+
for (const c of a)
|
|
2844
|
+
if (!(!c || typeof c != "object")) {
|
|
2845
|
+
for (const u of Object.values(c))
|
|
2846
2846
|
if (typeof u == "string" && i.push(n(u)), Array.isArray(u)) {
|
|
2847
2847
|
for (const d of u) if (d && typeof d == "object")
|
|
2848
2848
|
for (const h of Object.values(d)) typeof h == "string" && i.push(n(h));
|
|
@@ -2850,7 +2850,7 @@ function Qn(e) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
return i.filter(Boolean).join(" ").trim();
|
|
2852
2852
|
}
|
|
2853
|
-
if (
|
|
2853
|
+
if (Kc(e)) {
|
|
2854
2854
|
const t = e.rubricBlock;
|
|
2855
2855
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2856
2856
|
}
|
|
@@ -2867,7 +2867,7 @@ function xi(e) {
|
|
|
2867
2867
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2868
2868
|
].some((r) => r.test(t));
|
|
2869
2869
|
}
|
|
2870
|
-
function
|
|
2870
|
+
function Xc(e) {
|
|
2871
2871
|
const t = [
|
|
2872
2872
|
"pie-multiple-choice",
|
|
2873
2873
|
"pie-inline-choice",
|
|
@@ -2876,7 +2876,7 @@ function Yc(e) {
|
|
|
2876
2876
|
"inline-choice",
|
|
2877
2877
|
"select-text"
|
|
2878
2878
|
];
|
|
2879
|
-
if (
|
|
2879
|
+
if (va(e)) {
|
|
2880
2880
|
const r = e.item.config;
|
|
2881
2881
|
if (!r?.models) return !1;
|
|
2882
2882
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2884,7 +2884,7 @@ function Yc(e) {
|
|
|
2884
2884
|
const n = i.element || "";
|
|
2885
2885
|
return t.includes(n);
|
|
2886
2886
|
}
|
|
2887
|
-
if (
|
|
2887
|
+
if (ha(e)) {
|
|
2888
2888
|
const r = e.item.config?.models;
|
|
2889
2889
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2890
2890
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2897,7 +2897,7 @@ function Yc(e) {
|
|
|
2897
2897
|
function Di(e) {
|
|
2898
2898
|
return Qn(e).trim().length >= 10;
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function Jc(e) {
|
|
2901
2901
|
const t = Qn(e);
|
|
2902
2902
|
return [
|
|
2903
2903
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2908,23 +2908,23 @@ function Kc(e) {
|
|
|
2908
2908
|
/physics|force|energy|velocity|acceleration/i
|
|
2909
2909
|
].some((r) => r.test(t));
|
|
2910
2910
|
}
|
|
2911
|
-
var
|
|
2911
|
+
var Qc = [
|
|
2912
2912
|
"assessment",
|
|
2913
2913
|
"section",
|
|
2914
2914
|
"item",
|
|
2915
2915
|
"passage",
|
|
2916
2916
|
"rubric"
|
|
2917
|
-
],
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2917
|
+
], Zc = new Set(Qc);
|
|
2918
|
+
function ef(e) {
|
|
2919
|
+
return Zc.has(e);
|
|
2920
2920
|
}
|
|
2921
2921
|
function Zn(e, t, r) {
|
|
2922
2922
|
const i = e.trim(), n = r.trim();
|
|
2923
2923
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2924
|
-
if (!
|
|
2924
|
+
if (!ef(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2925
2925
|
return `${i}:${t}:${n}`;
|
|
2926
2926
|
}
|
|
2927
|
-
var
|
|
2927
|
+
var tf = class {
|
|
2928
2928
|
constructor() {
|
|
2929
2929
|
b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
|
|
2930
2930
|
}
|
|
@@ -3001,17 +3001,17 @@ var Zc = class {
|
|
|
3001
3001
|
destroy() {
|
|
3002
3002
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
3003
3003
|
}
|
|
3004
|
-
},
|
|
3004
|
+
}, rf = (e, t) => {
|
|
3005
3005
|
const r = t?.useSentenceSegmenter !== !1;
|
|
3006
3006
|
try {
|
|
3007
3007
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
3008
3008
|
const s = globalThis.Intl?.Segmenter;
|
|
3009
3009
|
if (typeof s == "function") {
|
|
3010
|
-
const a = new s(t?.locale, { granularity: "sentence" }),
|
|
3010
|
+
const a = new s(t?.locale, { granularity: "sentence" }), c = Array.from(a.segment(e)).map((u) => ({
|
|
3011
3011
|
text: u.segment,
|
|
3012
3012
|
offset: u.index
|
|
3013
3013
|
})).filter((u) => u.text.trim().length > 0);
|
|
3014
|
-
if (
|
|
3014
|
+
if (c.length > 0) return c;
|
|
3015
3015
|
}
|
|
3016
3016
|
} catch {
|
|
3017
3017
|
}
|
|
@@ -3028,14 +3028,14 @@ var Zc = class {
|
|
|
3028
3028
|
text: e,
|
|
3029
3029
|
offset: 0
|
|
3030
3030
|
}];
|
|
3031
|
-
},
|
|
3031
|
+
}, nf = class {
|
|
3032
3032
|
constructor() {
|
|
3033
3033
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
3034
3034
|
}
|
|
3035
3035
|
async initialize(e) {
|
|
3036
3036
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
3037
3037
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
3038
|
-
return new
|
|
3038
|
+
return new of(e);
|
|
3039
3039
|
}
|
|
3040
3040
|
supportsFeature(e) {
|
|
3041
3041
|
return !0;
|
|
@@ -3052,7 +3052,7 @@ var Zc = class {
|
|
|
3052
3052
|
}
|
|
3053
3053
|
destroy() {
|
|
3054
3054
|
}
|
|
3055
|
-
},
|
|
3055
|
+
}, of = class {
|
|
3056
3056
|
constructor(e) {
|
|
3057
3057
|
b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
|
|
3058
3058
|
}
|
|
@@ -3090,7 +3090,7 @@ var Zc = class {
|
|
|
3090
3090
|
for (const s of r) {
|
|
3091
3091
|
const a = s.text.trim();
|
|
3092
3092
|
if (!a) continue;
|
|
3093
|
-
const
|
|
3093
|
+
const c = s.text.search(/\S/), u = s.offset + (c === -1 ? 0 : c);
|
|
3094
3094
|
if (!n) {
|
|
3095
3095
|
n = a, o = u;
|
|
3096
3096
|
continue;
|
|
@@ -3122,7 +3122,7 @@ var Zc = class {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
segmentSentences(e) {
|
|
3124
3124
|
const t = this.getSegmentationPolicy();
|
|
3125
|
-
return
|
|
3125
|
+
return rf(e, {
|
|
3126
3126
|
locale: t.locale,
|
|
3127
3127
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
3128
3128
|
});
|
|
@@ -3165,7 +3165,7 @@ var Zc = class {
|
|
|
3165
3165
|
r === this.speakRunId && (this._isPaused = !1);
|
|
3166
3166
|
}, this.utterance.onboundary = (o) => {
|
|
3167
3167
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
3168
|
-
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0),
|
|
3168
|
+
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), c = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : c, d = e.substring(s, Math.min(e.length, s + u)).trim(), h = t + s;
|
|
3169
3169
|
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", h), this.onWordBoundary(d, h, u);
|
|
3170
3170
|
}, speechSynthesis.speak(this.utterance);
|
|
3171
3171
|
});
|
|
@@ -3191,7 +3191,7 @@ var Zc = class {
|
|
|
3191
3191
|
...e.providerOptions || {}
|
|
3192
3192
|
});
|
|
3193
3193
|
}
|
|
3194
|
-
},
|
|
3194
|
+
}, sf = class {
|
|
3195
3195
|
async emitTelemetry(e, t) {
|
|
3196
3196
|
try {
|
|
3197
3197
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3223,7 +3223,7 @@ var Zc = class {
|
|
|
3223
3223
|
}
|
|
3224
3224
|
async _initializeBrowserTTS(e) {
|
|
3225
3225
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3226
|
-
this.ttsProvider = new
|
|
3226
|
+
this.ttsProvider = new nf(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3227
3227
|
}
|
|
3228
3228
|
async _initializeServerTTS(e) {
|
|
3229
3229
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3281,7 +3281,7 @@ var Zc = class {
|
|
|
3281
3281
|
destroy() {
|
|
3282
3282
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3283
3283
|
}
|
|
3284
|
-
},
|
|
3284
|
+
}, af = /* @__PURE__ */ new Set([
|
|
3285
3285
|
"annotation-xml",
|
|
3286
3286
|
"color-profile",
|
|
3287
3287
|
"font-face",
|
|
@@ -3290,16 +3290,16 @@ var Zc = class {
|
|
|
3290
3290
|
"font-face-format",
|
|
3291
3291
|
"font-face-name",
|
|
3292
3292
|
"missing-glyph"
|
|
3293
|
-
]),
|
|
3293
|
+
]), lf = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, cf = (e, t = "custom element tag") => {
|
|
3294
3294
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3295
3295
|
const r = e.trim();
|
|
3296
3296
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3297
3297
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3298
3298
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3299
|
-
if (
|
|
3300
|
-
if (!
|
|
3299
|
+
if (af.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3300
|
+
if (!lf.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3301
3301
|
return r;
|
|
3302
|
-
},
|
|
3302
|
+
}, ma = {
|
|
3303
3303
|
calculator: "pie-tool-calculator",
|
|
3304
3304
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3305
3305
|
ruler: "pie-tool-ruler",
|
|
@@ -3312,22 +3312,38 @@ var Zc = class {
|
|
|
3312
3312
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3313
3313
|
graph: "pie-tool-graph",
|
|
3314
3314
|
periodicTable: "pie-tool-periodic-table"
|
|
3315
|
-
},
|
|
3316
|
-
const n =
|
|
3315
|
+
}, ff = (e, t) => cf(t?.toolTagMap?.[e] ?? ma[e] ?? e, `tool component tag for "${e}"`), uf = (e) => document.createElement(e), tt = (e, t, r, i) => {
|
|
3316
|
+
const n = ff(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
3317
3317
|
return o ? o({
|
|
3318
3318
|
toolId: e,
|
|
3319
3319
|
tagName: n,
|
|
3320
3320
|
context: t,
|
|
3321
3321
|
toolbarContext: r
|
|
3322
|
-
}) :
|
|
3323
|
-
}
|
|
3322
|
+
}) : uf(n);
|
|
3323
|
+
};
|
|
3324
|
+
function Bo(e) {
|
|
3325
|
+
return e === "basic" || e === "scientific" ? e : null;
|
|
3326
|
+
}
|
|
3327
|
+
function df(e) {
|
|
3328
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, r = Bo(t.calculatorType), i = t.availableTypes;
|
|
3329
|
+
return {
|
|
3330
|
+
calculatorType: r,
|
|
3331
|
+
availableTypes: Array.isArray(i) ? i.map((n) => Bo(n)).filter((n) => n !== null) : r ? [r] : null,
|
|
3332
|
+
displayName: r === "scientific" ? "Scientific Calculator" : r === "basic" ? "Basic Calculator" : "Calculator"
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
function jo(e, t, r) {
|
|
3336
|
+
const i = e;
|
|
3337
|
+
t ? (i.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete i.calculatorType, e.removeAttribute("calculator-type")), r && r.length > 0 ? i.availableTypes = r : delete i.availableTypes;
|
|
3338
|
+
}
|
|
3339
|
+
var pf = {
|
|
3324
3340
|
toolId: "calculator",
|
|
3325
3341
|
name: "Calculator",
|
|
3326
3342
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3327
3343
|
icon: "calculator",
|
|
3328
3344
|
provider: {
|
|
3329
3345
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3330
|
-
createProvider: () => new
|
|
3346
|
+
createProvider: () => new tf(),
|
|
3331
3347
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3332
3348
|
getAuthFetcher: (e) => {
|
|
3333
3349
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3353,23 +3369,23 @@ var Zc = class {
|
|
|
3353
3369
|
return xi(e);
|
|
3354
3370
|
},
|
|
3355
3371
|
renderToolbar(e, t) {
|
|
3356
|
-
const r = Zn(this.toolId, t.scope.level, t.scope.scopeId),
|
|
3357
|
-
|
|
3358
|
-
const
|
|
3372
|
+
const { calculatorType: r, availableTypes: i, displayName: n } = df(t), o = Zn(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = tt(this.toolId, e, t, s);
|
|
3373
|
+
a.setAttribute("tool-id", o), a.toolkitCoordinator = t.toolkitCoordinator, jo(a, r, i);
|
|
3374
|
+
const c = r === null ? "Open scientific calculator" : `Open ${n.toLowerCase()}`, u = r === null ? "Close scientific calculator" : `Close ${n.toLowerCase()}`, d = {
|
|
3359
3375
|
toolId: this.toolId,
|
|
3360
|
-
label:
|
|
3376
|
+
label: n,
|
|
3361
3377
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
3362
3378
|
disabled: !1,
|
|
3363
|
-
ariaLabel:
|
|
3364
|
-
tooltip:
|
|
3379
|
+
ariaLabel: c,
|
|
3380
|
+
tooltip: n,
|
|
3365
3381
|
onClick: () => t.toggleTool(this.toolId),
|
|
3366
|
-
active: t.isToolVisible(
|
|
3382
|
+
active: t.isToolVisible(o)
|
|
3367
3383
|
};
|
|
3368
|
-
let
|
|
3369
|
-
return
|
|
3384
|
+
let h = d.active;
|
|
3385
|
+
return a.visible = d.active, {
|
|
3370
3386
|
toolId: this.toolId,
|
|
3371
3387
|
elements: [{
|
|
3372
|
-
element:
|
|
3388
|
+
element: a,
|
|
3373
3389
|
mount: "after-buttons",
|
|
3374
3390
|
shell: {
|
|
3375
3391
|
title: this.name,
|
|
@@ -3382,24 +3398,24 @@ var Zc = class {
|
|
|
3382
3398
|
minHeight: 420
|
|
3383
3399
|
}
|
|
3384
3400
|
}],
|
|
3385
|
-
button:
|
|
3401
|
+
button: d,
|
|
3386
3402
|
sync: () => {
|
|
3387
|
-
const
|
|
3388
|
-
|
|
3403
|
+
const p = t.isToolVisible(o);
|
|
3404
|
+
d.active = p, d.label = n, d.ariaLabel = p ? u : c, d.tooltip = p ? `Close ${n.toLowerCase()}` : n, h !== p && (a.visible = p, h = p), a.toolkitCoordinator !== t.toolkitCoordinator && (a.toolkitCoordinator = t.toolkitCoordinator), jo(a, r, i);
|
|
3389
3405
|
},
|
|
3390
|
-
subscribeActive: (
|
|
3391
|
-
|
|
3406
|
+
subscribeActive: (p) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3407
|
+
p(t.isToolVisible(o));
|
|
3392
3408
|
}) : () => {
|
|
3393
3409
|
}
|
|
3394
3410
|
};
|
|
3395
3411
|
}
|
|
3396
|
-
},
|
|
3412
|
+
}, hf = /* @__PURE__ */ new Set([
|
|
3397
3413
|
"reserved-row",
|
|
3398
3414
|
"expanding-row",
|
|
3399
3415
|
"floating-overlay",
|
|
3400
3416
|
"left-aligned"
|
|
3401
|
-
]),
|
|
3402
|
-
if (!Array.isArray(e)) return [...
|
|
3417
|
+
]), Vo = (e) => e && typeof e == "object" ? e : {}, vf = (e) => e === "polly" || e === "google" || e === "server", Ae = (e, t) => e === void 0 ? t : e, Oi = (e, t = "left-aligned") => typeof e == "string" && hf.has(e) ? e : t, Go = Object.freeze([0.8, 1.25]), tn = (e) => {
|
|
3418
|
+
if (!Array.isArray(e)) return [...Go];
|
|
3403
3419
|
if (e.length === 0) return [];
|
|
3404
3420
|
const t = /* @__PURE__ */ new Set();
|
|
3405
3421
|
for (const r of e) {
|
|
@@ -3407,13 +3423,13 @@ var Zc = class {
|
|
|
3407
3423
|
const i = Math.round(r * 100) / 100;
|
|
3408
3424
|
i !== 1 && t.add(i);
|
|
3409
3425
|
}
|
|
3410
|
-
return t.size ? Array.from(t) : [...
|
|
3411
|
-
},
|
|
3426
|
+
return t.size ? Array.from(t) : [...Go];
|
|
3427
|
+
}, mf = (e) => {
|
|
3412
3428
|
const t = {
|
|
3413
3429
|
...e,
|
|
3414
3430
|
layoutMode: Oi(e.layoutMode)
|
|
3415
3431
|
}, r = e.backend || "browser";
|
|
3416
|
-
if (!
|
|
3432
|
+
if (!vf(r)) return t;
|
|
3417
3433
|
const i = {
|
|
3418
3434
|
...t,
|
|
3419
3435
|
apiEndpoint: Ae(t.apiEndpoint, "/api/tts"),
|
|
@@ -3435,13 +3451,13 @@ var Zc = class {
|
|
|
3435
3451
|
defaultVoice: Ae(i.defaultVoice, "en-US-Wavenet-A")
|
|
3436
3452
|
} : i;
|
|
3437
3453
|
}, rn = (e) => {
|
|
3438
|
-
const t =
|
|
3439
|
-
return
|
|
3454
|
+
const t = Vo(e), r = Vo(e?.settings);
|
|
3455
|
+
return mf({
|
|
3440
3456
|
...t,
|
|
3441
3457
|
...r
|
|
3442
3458
|
});
|
|
3443
|
-
}, kn = (e) => e.backend || "browser",
|
|
3444
|
-
const t = kn(e), r =
|
|
3459
|
+
}, kn = (e) => e.backend || "browser", ga = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, _a = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), gf = (e) => {
|
|
3460
|
+
const t = kn(e), r = ga(e, t), i = _a(e, r);
|
|
3445
3461
|
return {
|
|
3446
3462
|
voice: e.defaultVoice,
|
|
3447
3463
|
rate: e.rate,
|
|
@@ -3465,8 +3481,8 @@ var Zc = class {
|
|
|
3465
3481
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3466
3482
|
validateEndpoint: e.validateEndpoint
|
|
3467
3483
|
};
|
|
3468
|
-
},
|
|
3469
|
-
switch (
|
|
3484
|
+
}, ba = (e) => Oi(e.layoutMode), _f = (e) => {
|
|
3485
|
+
switch (ba(e)) {
|
|
3470
3486
|
case "reserved-row":
|
|
3471
3487
|
return {
|
|
3472
3488
|
mount: "before-buttons",
|
|
@@ -3492,21 +3508,21 @@ var Zc = class {
|
|
|
3492
3508
|
}
|
|
3493
3509
|
};
|
|
3494
3510
|
}
|
|
3495
|
-
}, Mr = /* @__PURE__ */ new Map(),
|
|
3511
|
+
}, Mr = /* @__PURE__ */ new Map(), bf = "__pieToolElementUnmount", qo = "pie-tool-active-change", yf = {
|
|
3496
3512
|
toolId: "textToSpeech",
|
|
3497
3513
|
name: "Text to Speech",
|
|
3498
3514
|
description: "Read content aloud",
|
|
3499
3515
|
icon: "volume-up",
|
|
3500
3516
|
provider: {
|
|
3501
3517
|
getProviderId: () => "tts",
|
|
3502
|
-
createProvider: (e) => new
|
|
3518
|
+
createProvider: (e) => new sf(kn(rn(e))),
|
|
3503
3519
|
getInitConfig: (e) => {
|
|
3504
|
-
const t = rn(e), r = kn(t), i =
|
|
3520
|
+
const t = rn(e), r = kn(t), i = ga(t, r);
|
|
3505
3521
|
return {
|
|
3506
3522
|
backend: r,
|
|
3507
3523
|
serverProvider: i,
|
|
3508
|
-
transportMode:
|
|
3509
|
-
...
|
|
3524
|
+
transportMode: _a(t, i),
|
|
3525
|
+
...gf(t)
|
|
3510
3526
|
};
|
|
3511
3527
|
},
|
|
3512
3528
|
getAuthFetcher: (e) => {
|
|
@@ -3532,12 +3548,12 @@ var Zc = class {
|
|
|
3532
3548
|
return Di(e);
|
|
3533
3549
|
},
|
|
3534
3550
|
renderToolbar(e, t) {
|
|
3535
|
-
const r = () => rn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => tn(r().speedOptions), n = () =>
|
|
3551
|
+
const r = () => rn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => tn(r().speedOptions), n = () => ba(r()), o = () => _f(r()), s = Zn(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3536
3552
|
const d = t.ui?.size;
|
|
3537
3553
|
return d === "sm" || d === "lg" ? d : "md";
|
|
3538
|
-
},
|
|
3554
|
+
}, c = () => {
|
|
3539
3555
|
let d = Mr.get(s);
|
|
3540
|
-
return d && typeof d.isConnected == "boolean" && !d.isConnected && (Mr.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[
|
|
3556
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (Mr.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[bf] = () => {
|
|
3541
3557
|
Mr.get(s) === d && Mr.delete(s);
|
|
3542
3558
|
}, Mr.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", n()), d.speedOptions = i(), d;
|
|
3543
3559
|
}, u = o();
|
|
@@ -3545,7 +3561,7 @@ var Zc = class {
|
|
|
3545
3561
|
toolId: this.toolId,
|
|
3546
3562
|
button: null,
|
|
3547
3563
|
elements: [{
|
|
3548
|
-
element:
|
|
3564
|
+
element: c(),
|
|
3549
3565
|
mount: u.mount,
|
|
3550
3566
|
layoutHints: { controlsRow: {
|
|
3551
3567
|
reserveSpace: u.controlsRow.reserveSpace,
|
|
@@ -3553,16 +3569,16 @@ var Zc = class {
|
|
|
3553
3569
|
} }
|
|
3554
3570
|
}],
|
|
3555
3571
|
subscribeActive: (d) => {
|
|
3556
|
-
const h =
|
|
3572
|
+
const h = c(), p = (v) => {
|
|
3557
3573
|
const _ = v.detail;
|
|
3558
3574
|
d(_?.active === !0);
|
|
3559
3575
|
};
|
|
3560
|
-
return h.addEventListener(
|
|
3561
|
-
h.removeEventListener(
|
|
3576
|
+
return h.addEventListener(qo, p), () => {
|
|
3577
|
+
h.removeEventListener(qo, p);
|
|
3562
3578
|
};
|
|
3563
3579
|
},
|
|
3564
3580
|
sync: () => {
|
|
3565
|
-
const d =
|
|
3581
|
+
const d = c();
|
|
3566
3582
|
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", n()), d.speedOptions = i();
|
|
3567
3583
|
}
|
|
3568
3584
|
};
|
|
@@ -3586,7 +3602,7 @@ function vt(e) {
|
|
|
3586
3602
|
function eo(e, t) {
|
|
3587
3603
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3588
3604
|
}
|
|
3589
|
-
var
|
|
3605
|
+
var wf = {
|
|
3590
3606
|
toolId: "ruler",
|
|
3591
3607
|
name: "Ruler",
|
|
3592
3608
|
description: "On-screen ruler for measurements",
|
|
@@ -3628,7 +3644,7 @@ var _f = {
|
|
|
3628
3644
|
subscribeActive: r.subscribeActive
|
|
3629
3645
|
};
|
|
3630
3646
|
}
|
|
3631
|
-
},
|
|
3647
|
+
}, Tf = {
|
|
3632
3648
|
toolId: "protractor",
|
|
3633
3649
|
name: "Protractor",
|
|
3634
3650
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3670,7 +3686,7 @@ var _f = {
|
|
|
3670
3686
|
subscribeActive: r.subscribeActive
|
|
3671
3687
|
};
|
|
3672
3688
|
}
|
|
3673
|
-
},
|
|
3689
|
+
}, kf = {
|
|
3674
3690
|
toolId: "answerEliminator",
|
|
3675
3691
|
name: "Answer Eliminator",
|
|
3676
3692
|
description: "Strike through answer choices",
|
|
@@ -3683,7 +3699,7 @@ var _f = {
|
|
|
3683
3699
|
"choiceMasking"
|
|
3684
3700
|
],
|
|
3685
3701
|
isVisibleInContext(e) {
|
|
3686
|
-
return
|
|
3702
|
+
return Xc(e);
|
|
3687
3703
|
},
|
|
3688
3704
|
renderToolbar(e, t) {
|
|
3689
3705
|
const r = ht(this.toolId, t), i = t.componentOverrides ?? {}, n = tt(this.toolId, e, t, i);
|
|
@@ -3717,7 +3733,7 @@ var _f = {
|
|
|
3717
3733
|
subscribeActive: r.subscribeActive
|
|
3718
3734
|
};
|
|
3719
3735
|
}
|
|
3720
|
-
},
|
|
3736
|
+
}, Ef = {
|
|
3721
3737
|
toolId: "highlighter",
|
|
3722
3738
|
name: "Highlighter",
|
|
3723
3739
|
description: "Highlight text",
|
|
@@ -3768,7 +3784,7 @@ var _f = {
|
|
|
3768
3784
|
subscribeActive: r.subscribeActive
|
|
3769
3785
|
};
|
|
3770
3786
|
}
|
|
3771
|
-
},
|
|
3787
|
+
}, Af = {
|
|
3772
3788
|
toolId: "lineReader",
|
|
3773
3789
|
name: "Line Reader",
|
|
3774
3790
|
description: "Reading guide overlay",
|
|
@@ -3817,7 +3833,7 @@ var _f = {
|
|
|
3817
3833
|
subscribeActive: r.subscribeActive
|
|
3818
3834
|
};
|
|
3819
3835
|
}
|
|
3820
|
-
},
|
|
3836
|
+
}, Sf = {
|
|
3821
3837
|
toolId: "theme",
|
|
3822
3838
|
name: "Theme",
|
|
3823
3839
|
description: "Accessible themes and contrast",
|
|
@@ -3873,7 +3889,7 @@ var _f = {
|
|
|
3873
3889
|
subscribeActive: r.subscribeActive
|
|
3874
3890
|
};
|
|
3875
3891
|
}
|
|
3876
|
-
},
|
|
3892
|
+
}, If = {
|
|
3877
3893
|
toolId: "annotationToolbar",
|
|
3878
3894
|
name: "Highlighter",
|
|
3879
3895
|
description: "Highlight and annotate text",
|
|
@@ -3924,7 +3940,7 @@ var _f = {
|
|
|
3924
3940
|
subscribeActive: r.subscribeActive
|
|
3925
3941
|
};
|
|
3926
3942
|
}
|
|
3927
|
-
},
|
|
3943
|
+
}, Of = {
|
|
3928
3944
|
toolId: "graph",
|
|
3929
3945
|
name: "Graph",
|
|
3930
3946
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3977,7 +3993,7 @@ var _f = {
|
|
|
3977
3993
|
subscribeActive: r.subscribeActive
|
|
3978
3994
|
};
|
|
3979
3995
|
}
|
|
3980
|
-
},
|
|
3996
|
+
}, Lf = {
|
|
3981
3997
|
toolId: "periodicTable",
|
|
3982
3998
|
name: "Periodic Table",
|
|
3983
3999
|
description: "Chemistry periodic table reference",
|
|
@@ -3989,7 +4005,7 @@ var _f = {
|
|
|
3989
4005
|
"elementReference"
|
|
3990
4006
|
],
|
|
3991
4007
|
isVisibleInContext(e) {
|
|
3992
|
-
return
|
|
4008
|
+
return Jc(e);
|
|
3993
4009
|
},
|
|
3994
4010
|
renderToolbar(e, t) {
|
|
3995
4011
|
const r = ht(this.toolId, t), i = {
|
|
@@ -4029,54 +4045,54 @@ var _f = {
|
|
|
4029
4045
|
subscribeActive: r.subscribeActive
|
|
4030
4046
|
};
|
|
4031
4047
|
}
|
|
4032
|
-
},
|
|
4033
|
-
|
|
4034
|
-
gf,
|
|
4035
|
-
_f,
|
|
4036
|
-
bf,
|
|
4048
|
+
}, Rf = [
|
|
4049
|
+
pf,
|
|
4037
4050
|
yf,
|
|
4038
4051
|
wf,
|
|
4039
4052
|
Tf,
|
|
4040
4053
|
kf,
|
|
4041
4054
|
Ef,
|
|
4042
4055
|
Af,
|
|
4043
|
-
Sf
|
|
4056
|
+
Sf,
|
|
4057
|
+
If,
|
|
4058
|
+
Of,
|
|
4059
|
+
Lf
|
|
4044
4060
|
];
|
|
4045
|
-
function
|
|
4046
|
-
const t = new
|
|
4061
|
+
function Mf(e = {}) {
|
|
4062
|
+
const t = new qc(), r = {
|
|
4047
4063
|
toolTagMap: {
|
|
4048
|
-
...
|
|
4064
|
+
...ma,
|
|
4049
4065
|
...e.toolTagMap || {}
|
|
4050
4066
|
},
|
|
4051
4067
|
toolComponentFactory: e.toolComponentFactory,
|
|
4052
4068
|
toolComponentFactories: e.toolComponentFactories
|
|
4053
4069
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
4054
|
-
return e.includePackagedTools &&
|
|
4070
|
+
return e.includePackagedTools && Cf(t, {
|
|
4055
4071
|
toolIds: e.toolIds,
|
|
4056
4072
|
applyOverrides: i
|
|
4057
4073
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
4058
4074
|
}
|
|
4059
|
-
function
|
|
4075
|
+
function Cf(e, t = {}) {
|
|
4060
4076
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
4061
|
-
for (const n of
|
|
4077
|
+
for (const n of Rf)
|
|
4062
4078
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
4063
4079
|
}
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4080
|
+
function $f(e = {}) {
|
|
4081
|
+
return Mf({
|
|
4066
4082
|
...e,
|
|
4067
4083
|
includePackagedTools: !0
|
|
4068
4084
|
});
|
|
4069
4085
|
}
|
|
4070
|
-
function
|
|
4071
|
-
const e =
|
|
4086
|
+
function Pf() {
|
|
4087
|
+
const e = $f(), t = /* @__PURE__ */ new Set();
|
|
4072
4088
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
4073
4089
|
return [...t].sort();
|
|
4074
4090
|
}
|
|
4075
|
-
var
|
|
4076
|
-
supports: [...
|
|
4091
|
+
var xf = Pf(), Ku = {
|
|
4092
|
+
supports: [...xf],
|
|
4077
4093
|
prohibitedSupports: [],
|
|
4078
4094
|
activateAtInit: []
|
|
4079
|
-
},
|
|
4095
|
+
}, Df = {
|
|
4080
4096
|
visual: {
|
|
4081
4097
|
magnification: "magnification",
|
|
4082
4098
|
screenMagnifier: "screenMagnifier",
|
|
@@ -4189,15 +4205,15 @@ var Cf = Mf(), Gu = {
|
|
|
4189
4205
|
itemGlossary: "itemGlossary",
|
|
4190
4206
|
tutorialAvailable: "tutorialAvailable"
|
|
4191
4207
|
}
|
|
4192
|
-
},
|
|
4208
|
+
}, Xu = Object.values(Df).flatMap((e) => Object.values(e)), Ju = da("ToolCoordinator"), En;
|
|
4193
4209
|
(function(e) {
|
|
4194
4210
|
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";
|
|
4195
4211
|
})(En || (En = {}));
|
|
4196
|
-
var
|
|
4212
|
+
var Yo;
|
|
4197
4213
|
(function(e) {
|
|
4198
4214
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4199
|
-
})(
|
|
4200
|
-
var
|
|
4215
|
+
})(Yo || (Yo = {}));
|
|
4216
|
+
var Qu = Bc({
|
|
4201
4217
|
policy: {
|
|
4202
4218
|
allowed: [],
|
|
4203
4219
|
blocked: []
|
|
@@ -4209,10 +4225,10 @@ var Ku = Hc({
|
|
|
4209
4225
|
},
|
|
4210
4226
|
providers: {}
|
|
4211
4227
|
});
|
|
4212
|
-
function
|
|
4228
|
+
function Nf(e) {
|
|
4213
4229
|
return e === "light" || e === "dark" || e === "auto";
|
|
4214
4230
|
}
|
|
4215
|
-
function
|
|
4231
|
+
function Uf(e) {
|
|
4216
4232
|
return e === "self" || e === "document";
|
|
4217
4233
|
}
|
|
4218
4234
|
function An(e) {
|
|
@@ -4226,7 +4242,7 @@ function An(e) {
|
|
|
4226
4242
|
} else typeof i == "number" && (t[r] = String(i));
|
|
4227
4243
|
return t;
|
|
4228
4244
|
}
|
|
4229
|
-
var
|
|
4245
|
+
var Ff = [
|
|
4230
4246
|
{
|
|
4231
4247
|
id: "default",
|
|
4232
4248
|
name: "Default",
|
|
@@ -4448,17 +4464,17 @@ var Df = [
|
|
|
4448
4464
|
primary: "#aaaaaa"
|
|
4449
4465
|
}
|
|
4450
4466
|
}
|
|
4451
|
-
], Sn = new Map(
|
|
4452
|
-
function
|
|
4453
|
-
return [...Sn.values(), ...
|
|
4467
|
+
], Sn = new Map(Ff.map((e) => [e.id, e])), ya = /* @__PURE__ */ new Map();
|
|
4468
|
+
function zf() {
|
|
4469
|
+
return [...Sn.values(), ...ya.values()];
|
|
4454
4470
|
}
|
|
4455
|
-
function
|
|
4456
|
-
return e ?
|
|
4471
|
+
function Hf(e) {
|
|
4472
|
+
return e ? ya.get(e) ?? Sn.get(e) : Sn.get("default");
|
|
4457
4473
|
}
|
|
4458
|
-
function
|
|
4459
|
-
return
|
|
4474
|
+
function Wf(e) {
|
|
4475
|
+
return Hf(e)?.variables ?? {};
|
|
4460
4476
|
}
|
|
4461
|
-
var
|
|
4477
|
+
var Bf = {
|
|
4462
4478
|
"--pie-text": "black",
|
|
4463
4479
|
"--pie-disabled": "grey",
|
|
4464
4480
|
"--pie-disabled-secondary": "#ababab",
|
|
@@ -4507,7 +4523,7 @@ var zf = {
|
|
|
4507
4523
|
"--pie-button-hover-color": "#111827",
|
|
4508
4524
|
"--pie-button-active-bg": "#f3f4f6",
|
|
4509
4525
|
"--pie-button-focus-outline": "#3b82f6"
|
|
4510
|
-
},
|
|
4526
|
+
}, jf = {
|
|
4511
4527
|
"--pie-text": "#ffffff",
|
|
4512
4528
|
"--pie-disabled": "#999999",
|
|
4513
4529
|
"--pie-disabled-secondary": "#777777",
|
|
@@ -4565,7 +4581,7 @@ function lt(e) {
|
|
|
4565
4581
|
if (!(!e.left || !e.right))
|
|
4566
4582
|
return `color-mix(in srgb, ${e.left} ${e.leftWeight}, ${e.right})`;
|
|
4567
4583
|
}
|
|
4568
|
-
function
|
|
4584
|
+
function Vf(e) {
|
|
4569
4585
|
const t = (r) => _i(e.getPropertyValue(r));
|
|
4570
4586
|
return An({
|
|
4571
4587
|
"--pie-background": t("--color-base-100"),
|
|
@@ -4653,18 +4669,18 @@ function Wf(e) {
|
|
|
4653
4669
|
"--pie-button-focus-outline": t("--color-primary")
|
|
4654
4670
|
});
|
|
4655
4671
|
}
|
|
4656
|
-
var
|
|
4672
|
+
var Ko = {
|
|
4657
4673
|
id: "daisyui",
|
|
4658
4674
|
canRead(e) {
|
|
4659
4675
|
const t = getComputedStyle(e);
|
|
4660
4676
|
return !!(_i(t.getPropertyValue("--color-base-100")) || _i(t.getPropertyValue("--color-base-content")) || _i(t.getPropertyValue("--color-primary")));
|
|
4661
4677
|
},
|
|
4662
4678
|
read(e) {
|
|
4663
|
-
return
|
|
4679
|
+
return Vf(getComputedStyle(e));
|
|
4664
4680
|
}
|
|
4665
4681
|
};
|
|
4666
|
-
In.set(
|
|
4667
|
-
function
|
|
4682
|
+
In.set(Ko.id, Ko);
|
|
4683
|
+
function Gf(e) {
|
|
4668
4684
|
const t = e.provider?.trim() || "auto", r = (n) => {
|
|
4669
4685
|
if (t && t !== "auto") {
|
|
4670
4686
|
const o = In.get(t);
|
|
@@ -4677,9 +4693,9 @@ function Bf(e) {
|
|
|
4677
4693
|
}, i = r(e.target);
|
|
4678
4694
|
return Object.keys(i).length > 0 ? i : typeof document < "u" && e.target !== document.documentElement ? r(document.documentElement) : {};
|
|
4679
4695
|
}
|
|
4680
|
-
var
|
|
4696
|
+
var qf = typeof HTMLElement > "u" ? class {
|
|
4681
4697
|
} : HTMLElement;
|
|
4682
|
-
function
|
|
4698
|
+
function Yf(e, t) {
|
|
4683
4699
|
if (!customElements.get(e))
|
|
4684
4700
|
try {
|
|
4685
4701
|
customElements.define(e, t);
|
|
@@ -4700,7 +4716,7 @@ function On(e) {
|
|
|
4700
4716
|
r.startsWith("--") && (typeof i == "string" ? t[r] = i : typeof i == "number" && (t[r] = String(i)));
|
|
4701
4717
|
return t;
|
|
4702
4718
|
}
|
|
4703
|
-
var
|
|
4719
|
+
var Kf = class extends qf {
|
|
4704
4720
|
constructor(...e) {
|
|
4705
4721
|
super(...e), b(this, "mediaQuery", null), b(this, "onMediaChange", () => this.applyTheme()), b(this, "previousKeys", /* @__PURE__ */ new Set()), b(this, "variablesOverride", {});
|
|
4706
4722
|
}
|
|
@@ -4715,14 +4731,14 @@ var Gf = class extends jf {
|
|
|
4715
4731
|
}
|
|
4716
4732
|
get theme() {
|
|
4717
4733
|
const e = this.getAttribute("theme");
|
|
4718
|
-
return
|
|
4734
|
+
return Nf(e) ? e : "light";
|
|
4719
4735
|
}
|
|
4720
4736
|
set theme(e) {
|
|
4721
4737
|
this.setAttribute("theme", e);
|
|
4722
4738
|
}
|
|
4723
4739
|
get scope() {
|
|
4724
4740
|
const e = this.getAttribute("scope");
|
|
4725
|
-
return
|
|
4741
|
+
return Uf(e) ? e : "self";
|
|
4726
4742
|
}
|
|
4727
4743
|
set scope(e) {
|
|
4728
4744
|
this.setAttribute("scope", e);
|
|
@@ -4761,17 +4777,17 @@ var Gf = class extends jf {
|
|
|
4761
4777
|
if (typeof document > "u" || typeof window > "u") return;
|
|
4762
4778
|
const { effectiveTheme: e, dataTheme: t } = this.resolveThemeState(), r = this.getTarget();
|
|
4763
4779
|
r.setAttribute("data-theme", t), this.scheme && this.scheme !== "default" ? r.setAttribute("data-color-scheme", this.scheme) : r.removeAttribute("data-color-scheme");
|
|
4764
|
-
const i = e === "dark" ?
|
|
4780
|
+
const i = e === "dark" ? jf : Bf, n = Gf({
|
|
4765
4781
|
target: r,
|
|
4766
4782
|
provider: this.provider
|
|
4767
|
-
}), o =
|
|
4783
|
+
}), o = Wf(this.scheme), s = {
|
|
4768
4784
|
...i,
|
|
4769
4785
|
...n,
|
|
4770
4786
|
...o,
|
|
4771
4787
|
...this.variablesOverride
|
|
4772
4788
|
};
|
|
4773
4789
|
this.clearPreviousKeys(r);
|
|
4774
|
-
for (const [a,
|
|
4790
|
+
for (const [a, c] of Object.entries(s)) r.style.setProperty(a, c);
|
|
4775
4791
|
this.previousKeys = new Set(Object.keys(s));
|
|
4776
4792
|
}
|
|
4777
4793
|
resolveThemeState() {
|
|
@@ -4801,12 +4817,12 @@ var Gf = class extends jf {
|
|
|
4801
4817
|
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)));
|
|
4802
4818
|
}
|
|
4803
4819
|
};
|
|
4804
|
-
function
|
|
4805
|
-
typeof customElements > "u" ||
|
|
4820
|
+
function Xf(e = "pie-theme") {
|
|
4821
|
+
typeof customElements > "u" || Yf(e, Kf);
|
|
4806
4822
|
}
|
|
4807
|
-
|
|
4808
|
-
var
|
|
4809
|
-
function
|
|
4823
|
+
Xf();
|
|
4824
|
+
var wa = "https://proxy.pie-api.com", Jf = `${wa}/bundles/`;
|
|
4825
|
+
function Ta(e) {
|
|
4810
4826
|
try {
|
|
4811
4827
|
const t = {
|
|
4812
4828
|
BASE_URL: "/",
|
|
@@ -4819,10 +4835,10 @@ function ya(e) {
|
|
|
4819
4835
|
} catch {
|
|
4820
4836
|
}
|
|
4821
4837
|
}
|
|
4822
|
-
var
|
|
4838
|
+
var Zu = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Ta("PUBLIC_BUILDER_ORIGIN_URL") || wa, Qf = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Ta("PUBLIC_BUILDER_BUNDLE_URL") || Jf, Zf = {
|
|
4823
4839
|
retryDelayMs: 3e3,
|
|
4824
4840
|
timeoutMs: 12e4
|
|
4825
|
-
}, { entries:
|
|
4841
|
+
}, { entries: ka, setPrototypeOf: Xo, isFrozen: eu, getPrototypeOf: tu, getOwnPropertyDescriptor: ru } = Object, { freeze: ue, seal: Pe, create: Fr } = Object, { apply: Ln, construct: Rn } = typeof Reflect < "u" && Reflect;
|
|
4826
4842
|
ue || (ue = function(t) {
|
|
4827
4843
|
return t;
|
|
4828
4844
|
});
|
|
@@ -4837,7 +4853,7 @@ Rn || (Rn = function(t) {
|
|
|
4837
4853
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) i[n - 1] = arguments[n];
|
|
4838
4854
|
return new t(...i);
|
|
4839
4855
|
});
|
|
4840
|
-
var Cr = de(Array.prototype.forEach),
|
|
4856
|
+
var Cr = de(Array.prototype.forEach), iu = de(Array.prototype.lastIndexOf), Jo = de(Array.prototype.pop), $r = de(Array.prototype.push), nu = de(Array.prototype.splice), bi = de(String.prototype.toLowerCase), nn = de(String.prototype.toString), on = de(String.prototype.match), lr = de(String.prototype.replace), ou = de(String.prototype.indexOf), su = de(String.prototype.trim), Ne = de(Object.prototype.hasOwnProperty), le = de(RegExp.prototype.test), Pr = au(TypeError);
|
|
4841
4857
|
function de(e) {
|
|
4842
4858
|
return function(t) {
|
|
4843
4859
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -4845,7 +4861,7 @@ function de(e) {
|
|
|
4845
4861
|
return Ln(e, t, i);
|
|
4846
4862
|
};
|
|
4847
4863
|
}
|
|
4848
|
-
function
|
|
4864
|
+
function au(e) {
|
|
4849
4865
|
return function() {
|
|
4850
4866
|
for (var t = arguments.length, r = new Array(t), i = 0; i < t; i++) r[i] = arguments[i];
|
|
4851
4867
|
return Rn(e, r);
|
|
@@ -4853,42 +4869,42 @@ function nu(e) {
|
|
|
4853
4869
|
}
|
|
4854
4870
|
function M(e, t) {
|
|
4855
4871
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : bi;
|
|
4856
|
-
|
|
4872
|
+
Xo && Xo(e, null);
|
|
4857
4873
|
let i = t.length;
|
|
4858
4874
|
for (; i--; ) {
|
|
4859
4875
|
let n = t[i];
|
|
4860
4876
|
if (typeof n == "string") {
|
|
4861
4877
|
const o = r(n);
|
|
4862
|
-
o !== n && (
|
|
4878
|
+
o !== n && (eu(t) || (t[i] = o), n = o);
|
|
4863
4879
|
}
|
|
4864
4880
|
e[n] = !0;
|
|
4865
4881
|
}
|
|
4866
4882
|
return e;
|
|
4867
4883
|
}
|
|
4868
|
-
function
|
|
4884
|
+
function lu(e) {
|
|
4869
4885
|
for (let t = 0; t < e.length; t++) Ne(e, t) || (e[t] = null);
|
|
4870
4886
|
return e;
|
|
4871
4887
|
}
|
|
4872
4888
|
function qe(e) {
|
|
4873
4889
|
const t = Fr(null);
|
|
4874
|
-
for (const [r, i] of
|
|
4890
|
+
for (const [r, i] of ka(e)) Ne(e, r) && (Array.isArray(i) ? t[r] = lu(i) : i && typeof i == "object" && i.constructor === Object ? t[r] = qe(i) : t[r] = i);
|
|
4875
4891
|
return t;
|
|
4876
4892
|
}
|
|
4877
4893
|
function xr(e, t) {
|
|
4878
4894
|
for (; e !== null; ) {
|
|
4879
|
-
const i =
|
|
4895
|
+
const i = ru(e, t);
|
|
4880
4896
|
if (i) {
|
|
4881
4897
|
if (i.get) return de(i.get);
|
|
4882
4898
|
if (typeof i.value == "function") return de(i.value);
|
|
4883
4899
|
}
|
|
4884
|
-
e =
|
|
4900
|
+
e = tu(e);
|
|
4885
4901
|
}
|
|
4886
4902
|
function r() {
|
|
4887
4903
|
return null;
|
|
4888
4904
|
}
|
|
4889
4905
|
return r;
|
|
4890
4906
|
}
|
|
4891
|
-
var
|
|
4907
|
+
var Qo = ue([
|
|
4892
4908
|
"a",
|
|
4893
4909
|
"abbr",
|
|
4894
4910
|
"acronym",
|
|
@@ -5082,7 +5098,7 @@ var Xo = ue([
|
|
|
5082
5098
|
"feSpotLight",
|
|
5083
5099
|
"feTile",
|
|
5084
5100
|
"feTurbulence"
|
|
5085
|
-
]),
|
|
5101
|
+
]), cu = ue([
|
|
5086
5102
|
"animate",
|
|
5087
5103
|
"color-profile",
|
|
5088
5104
|
"cursor",
|
|
@@ -5136,7 +5152,7 @@ var Xo = ue([
|
|
|
5136
5152
|
"munder",
|
|
5137
5153
|
"munderover",
|
|
5138
5154
|
"mprescripts"
|
|
5139
|
-
]),
|
|
5155
|
+
]), fu = ue([
|
|
5140
5156
|
"maction",
|
|
5141
5157
|
"maligngroup",
|
|
5142
5158
|
"malignmark",
|
|
@@ -5152,7 +5168,7 @@ var Xo = ue([
|
|
|
5152
5168
|
"annotation-xml",
|
|
5153
5169
|
"mprescripts",
|
|
5154
5170
|
"none"
|
|
5155
|
-
]),
|
|
5171
|
+
]), Zo = ue(["#text"]), es = ue([
|
|
5156
5172
|
"accept",
|
|
5157
5173
|
"action",
|
|
5158
5174
|
"align",
|
|
@@ -5459,7 +5475,7 @@ var Xo = ue([
|
|
|
5459
5475
|
"y2",
|
|
5460
5476
|
"z",
|
|
5461
5477
|
"zoomandpan"
|
|
5462
|
-
]),
|
|
5478
|
+
]), ts = ue([
|
|
5463
5479
|
"accent",
|
|
5464
5480
|
"accentunder",
|
|
5465
5481
|
"align",
|
|
@@ -5520,27 +5536,27 @@ var Xo = ue([
|
|
|
5520
5536
|
"xlink:title",
|
|
5521
5537
|
"xml:space",
|
|
5522
5538
|
"xmlns:xlink"
|
|
5523
|
-
]),
|
|
5539
|
+
]), uu = Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), du = Pe(/<%[\w\W]*|[\w\W]*%>/gm), pu = Pe(/\$\{[\w\W]*/gm), hu = Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/), vu = Pe(/^aria-[\-\w]+$/), Ea = Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), mu = Pe(/^(?:\w+script|data):/i), gu = Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Aa = Pe(/^html$/i), _u = Pe(/^[a-z][.\w]*(-[.\w]+)+$/i), rs = /* @__PURE__ */ Object.freeze({
|
|
5524
5540
|
__proto__: null,
|
|
5525
|
-
ARIA_ATTR:
|
|
5526
|
-
ATTR_WHITESPACE:
|
|
5527
|
-
CUSTOM_ELEMENT:
|
|
5528
|
-
DATA_ATTR:
|
|
5529
|
-
DOCTYPE_NAME:
|
|
5530
|
-
ERB_EXPR:
|
|
5531
|
-
IS_ALLOWED_URI:
|
|
5532
|
-
IS_SCRIPT_OR_DATA:
|
|
5533
|
-
MUSTACHE_EXPR:
|
|
5534
|
-
TMPLIT_EXPR:
|
|
5541
|
+
ARIA_ATTR: vu,
|
|
5542
|
+
ATTR_WHITESPACE: gu,
|
|
5543
|
+
CUSTOM_ELEMENT: _u,
|
|
5544
|
+
DATA_ATTR: hu,
|
|
5545
|
+
DOCTYPE_NAME: Aa,
|
|
5546
|
+
ERB_EXPR: du,
|
|
5547
|
+
IS_ALLOWED_URI: Ea,
|
|
5548
|
+
IS_SCRIPT_OR_DATA: mu,
|
|
5549
|
+
MUSTACHE_EXPR: uu,
|
|
5550
|
+
TMPLIT_EXPR: pu
|
|
5535
5551
|
}), Dr = {
|
|
5536
5552
|
element: 1,
|
|
5537
5553
|
text: 3,
|
|
5538
5554
|
progressingInstruction: 7,
|
|
5539
5555
|
comment: 8,
|
|
5540
5556
|
document: 9
|
|
5541
|
-
},
|
|
5557
|
+
}, bu = function() {
|
|
5542
5558
|
return typeof window > "u" ? null : window;
|
|
5543
|
-
},
|
|
5559
|
+
}, yu = function(t, r) {
|
|
5544
5560
|
if (typeof t != "object" || typeof t.createPolicy != "function") return null;
|
|
5545
5561
|
let i = null;
|
|
5546
5562
|
const n = "data-tt-policy-suffix";
|
|
@@ -5558,7 +5574,7 @@ var Xo = ue([
|
|
|
5558
5574
|
} catch {
|
|
5559
5575
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
5560
5576
|
}
|
|
5561
|
-
},
|
|
5577
|
+
}, is = function() {
|
|
5562
5578
|
return {
|
|
5563
5579
|
afterSanitizeAttributes: [],
|
|
5564
5580
|
afterSanitizeElements: [],
|
|
@@ -5571,35 +5587,35 @@ var Xo = ue([
|
|
|
5571
5587
|
uponSanitizeShadowNode: []
|
|
5572
5588
|
};
|
|
5573
5589
|
};
|
|
5574
|
-
function
|
|
5575
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
5576
|
-
const t = (A) =>
|
|
5590
|
+
function Sa() {
|
|
5591
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : bu();
|
|
5592
|
+
const t = (A) => Sa(A);
|
|
5577
5593
|
if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Dr.document || !e.Element)
|
|
5578
5594
|
return t.isSupported = !1, t;
|
|
5579
5595
|
let { document: r } = e;
|
|
5580
|
-
const i = r, n = i.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element:
|
|
5596
|
+
const i = r, n = i.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: c, NodeFilter: u, NamedNodeMap: d = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: h, DOMParser: p, trustedTypes: v } = e, _ = c.prototype, E = xr(_, "cloneNode"), m = xr(_, "remove"), T = xr(_, "nextSibling"), F = xr(_, "childNodes"), I = xr(_, "parentNode");
|
|
5581
5597
|
if (typeof s == "function") {
|
|
5582
5598
|
const A = r.createElement("template");
|
|
5583
5599
|
A.content && A.content.ownerDocument && (r = A.content.ownerDocument);
|
|
5584
5600
|
}
|
|
5585
5601
|
let O, G = "";
|
|
5586
5602
|
const { implementation: q, createNodeIterator: pe, createDocumentFragment: ne, getElementsByTagName: Xt } = r, { importNode: Y } = i;
|
|
5587
|
-
let K =
|
|
5588
|
-
t.isSupported = typeof
|
|
5589
|
-
const { MUSTACHE_EXPR:
|
|
5590
|
-
let { IS_ALLOWED_URI: Qt } =
|
|
5603
|
+
let K = is();
|
|
5604
|
+
t.isSupported = typeof ka == "function" && typeof I == "function" && q && q.createHTMLDocument !== void 0;
|
|
5605
|
+
const { MUSTACHE_EXPR: _t, ERB_EXPR: Jt, TMPLIT_EXPR: w, DATA_ATTR: S, ARIA_ATTR: U, IS_SCRIPT_OR_DATA: re, ATTR_WHITESPACE: rt, CUSTOM_ELEMENT: he } = rs;
|
|
5606
|
+
let { IS_ALLOWED_URI: Qt } = rs, B = null;
|
|
5591
5607
|
const Xr = M({}, [
|
|
5592
|
-
...
|
|
5608
|
+
...Qo,
|
|
5593
5609
|
...sn,
|
|
5594
5610
|
...an,
|
|
5595
5611
|
...ln,
|
|
5596
|
-
...
|
|
5612
|
+
...Zo
|
|
5597
5613
|
]);
|
|
5598
5614
|
let X = null;
|
|
5599
5615
|
const Zt = M({}, [
|
|
5600
|
-
...
|
|
5616
|
+
...es,
|
|
5601
5617
|
...cn,
|
|
5602
|
-
...
|
|
5618
|
+
...ts,
|
|
5603
5619
|
...di
|
|
5604
5620
|
]);
|
|
5605
5621
|
let H = Object.seal(Fr(null, {
|
|
@@ -5621,7 +5637,7 @@ function Ea() {
|
|
|
5621
5637
|
enumerable: !0,
|
|
5622
5638
|
value: !1
|
|
5623
5639
|
}
|
|
5624
|
-
})),
|
|
5640
|
+
})), bt = null, er = null;
|
|
5625
5641
|
const Be = Object.seal(Fr(null, {
|
|
5626
5642
|
tagCheck: {
|
|
5627
5643
|
writable: !0,
|
|
@@ -5636,9 +5652,9 @@ function Ea() {
|
|
|
5636
5652
|
value: null
|
|
5637
5653
|
}
|
|
5638
5654
|
}));
|
|
5639
|
-
let Jr = !0, it = !0, tr = !1, rr = !0, Q = !1, be = !0, je = !1,
|
|
5655
|
+
let Jr = !0, it = !0, tr = !1, rr = !0, Q = !1, be = !0, je = !1, Lt = !1, Rt = !1, nt = !1, ir = !1, yt = !1, nr = !0, Qr = !1;
|
|
5640
5656
|
const Zr = "user-content-";
|
|
5641
|
-
let Er = !0,
|
|
5657
|
+
let Er = !0, Mt = !1, wt = {}, ve = null;
|
|
5642
5658
|
const Ar = M({}, [
|
|
5643
5659
|
"annotation-xml",
|
|
5644
5660
|
"audio",
|
|
@@ -5693,7 +5709,7 @@ function Ea() {
|
|
|
5693
5709
|
"xmlns"
|
|
5694
5710
|
]), ei = "http://www.w3.org/1998/Math/MathML", ti = "http://www.w3.org/2000/svg", Ve = "http://www.w3.org/1999/xhtml";
|
|
5695
5711
|
let or = Ve, Ui = !1, Fi = null;
|
|
5696
|
-
const
|
|
5712
|
+
const xa = M({}, [
|
|
5697
5713
|
ei,
|
|
5698
5714
|
ti,
|
|
5699
5715
|
Ve
|
|
@@ -5705,7 +5721,7 @@ function Ea() {
|
|
|
5705
5721
|
"ms",
|
|
5706
5722
|
"mtext"
|
|
5707
5723
|
]), ii = M({}, ["annotation-xml"]);
|
|
5708
|
-
const
|
|
5724
|
+
const Da = M({}, [
|
|
5709
5725
|
"title",
|
|
5710
5726
|
"style",
|
|
5711
5727
|
"font",
|
|
@@ -5713,37 +5729,37 @@ function Ea() {
|
|
|
5713
5729
|
"script"
|
|
5714
5730
|
]);
|
|
5715
5731
|
let Sr = null;
|
|
5716
|
-
const
|
|
5732
|
+
const Na = ["application/xhtml+xml", "text/html"], Ua = "text/html";
|
|
5717
5733
|
let J = null, sr = null;
|
|
5718
|
-
const
|
|
5734
|
+
const Fa = r.createElement("form"), no = function(l) {
|
|
5719
5735
|
return l instanceof RegExp || l instanceof Function;
|
|
5720
5736
|
}, zi = function() {
|
|
5721
5737
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5722
5738
|
if (!(sr && sr === l)) {
|
|
5723
|
-
if ((!l || typeof l != "object") && (l = {}), l = qe(l), Sr =
|
|
5739
|
+
if ((!l || typeof l != "object") && (l = {}), l = qe(l), Sr = Na.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Ua : l.PARSER_MEDIA_TYPE, J = Sr === "application/xhtml+xml" ? nn : bi, B = Ne(l, "ALLOWED_TAGS") ? M({}, l.ALLOWED_TAGS, J) : Xr, X = Ne(l, "ALLOWED_ATTR") ? M({}, l.ALLOWED_ATTR, J) : Zt, Fi = Ne(l, "ALLOWED_NAMESPACES") ? M({}, l.ALLOWED_NAMESPACES, nn) : xa, Ni = Ne(l, "ADD_URI_SAFE_ATTR") ? M(qe(io), l.ADD_URI_SAFE_ATTR, J) : io, to = Ne(l, "ADD_DATA_URI_TAGS") ? M(qe(ro), l.ADD_DATA_URI_TAGS, J) : ro, ve = Ne(l, "FORBID_CONTENTS") ? M({}, l.FORBID_CONTENTS, J) : Ar, bt = Ne(l, "FORBID_TAGS") ? M({}, l.FORBID_TAGS, J) : qe({}), er = Ne(l, "FORBID_ATTR") ? M({}, l.FORBID_ATTR, J) : qe({}), wt = Ne(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Jr = l.ALLOW_ARIA_ATTR !== !1, it = l.ALLOW_DATA_ATTR !== !1, tr = l.ALLOW_UNKNOWN_PROTOCOLS || !1, rr = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Q = l.SAFE_FOR_TEMPLATES || !1, be = l.SAFE_FOR_XML !== !1, je = l.WHOLE_DOCUMENT || !1, nt = l.RETURN_DOM || !1, ir = l.RETURN_DOM_FRAGMENT || !1, yt = l.RETURN_TRUSTED_TYPE || !1, Rt = l.FORCE_BODY || !1, nr = l.SANITIZE_DOM !== !1, Qr = l.SANITIZE_NAMED_PROPS || !1, Er = l.KEEP_CONTENT !== !1, Mt = l.IN_PLACE || !1, Qt = l.ALLOWED_URI_REGEXP || Ea, or = l.NAMESPACE || Ve, ri = l.MATHML_TEXT_INTEGRATION_POINTS || ri, ii = l.HTML_INTEGRATION_POINTS || ii, H = l.CUSTOM_ELEMENT_HANDLING || Fr(null), l.CUSTOM_ELEMENT_HANDLING && no(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && no(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Q && (it = !1), ir && (nt = !0), wt && (B = M({}, Zo), X = Fr(null), wt.html === !0 && (M(B, Qo), M(X, es)), wt.svg === !0 && (M(B, sn), M(X, cn), M(X, di)), wt.svgFilters === !0 && (M(B, an), M(X, cn), M(X, di)), wt.mathMl === !0 && (M(B, ln), M(X, ts), M(X, di))), Be.tagCheck = null, Be.attributeCheck = null, l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Be.tagCheck = l.ADD_TAGS : (B === Xr && (B = qe(B)), M(B, l.ADD_TAGS, J))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Be.attributeCheck = l.ADD_ATTR : (X === Zt && (X = qe(X)), M(X, l.ADD_ATTR, J))), l.ADD_URI_SAFE_ATTR && M(Ni, l.ADD_URI_SAFE_ATTR, J), l.FORBID_CONTENTS && (ve === Ar && (ve = qe(ve)), M(ve, l.FORBID_CONTENTS, J)), l.ADD_FORBID_CONTENTS && (ve === Ar && (ve = qe(ve)), M(ve, l.ADD_FORBID_CONTENTS, J)), Er && (B["#text"] = !0), je && M(B, [
|
|
5724
5740
|
"html",
|
|
5725
5741
|
"head",
|
|
5726
5742
|
"body"
|
|
5727
|
-
]), B.table && (M(B, ["tbody"]), delete
|
|
5743
|
+
]), B.table && (M(B, ["tbody"]), delete bt.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
5728
5744
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function") throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
5729
5745
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Pr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
5730
5746
|
O = l.TRUSTED_TYPES_POLICY, G = O.createHTML("");
|
|
5731
5747
|
} else
|
|
5732
|
-
O === void 0 && (O =
|
|
5748
|
+
O === void 0 && (O = yu(v, n)), O !== null && typeof G == "string" && (G = O.createHTML(""));
|
|
5733
5749
|
ue && ue(l), sr = l;
|
|
5734
5750
|
}
|
|
5735
5751
|
}, oo = M({}, [
|
|
5736
5752
|
...sn,
|
|
5737
5753
|
...an,
|
|
5738
|
-
...
|
|
5739
|
-
]), so = M({}, [...ln, ...
|
|
5754
|
+
...cu
|
|
5755
|
+
]), so = M({}, [...ln, ...fu]), za = function(l) {
|
|
5740
5756
|
let g = I(l);
|
|
5741
5757
|
(!g || !g.tagName) && (g = {
|
|
5742
5758
|
namespaceURI: or,
|
|
5743
5759
|
tagName: "template"
|
|
5744
5760
|
});
|
|
5745
5761
|
const k = bi(l.tagName), W = bi(g.tagName);
|
|
5746
|
-
return Fi[l.namespaceURI] ? l.namespaceURI === ti ? g.namespaceURI === Ve ? k === "svg" : g.namespaceURI === ei ? k === "svg" && (W === "annotation-xml" || ri[W]) : !!oo[k] : l.namespaceURI === ei ? g.namespaceURI === Ve ? k === "math" : g.namespaceURI === ti ? k === "math" && ii[W] : !!so[k] : l.namespaceURI === Ve ? g.namespaceURI === ti && !ii[W] || g.namespaceURI === ei && !ri[W] ? !1 : !so[k] && (
|
|
5762
|
+
return Fi[l.namespaceURI] ? l.namespaceURI === ti ? g.namespaceURI === Ve ? k === "svg" : g.namespaceURI === ei ? k === "svg" && (W === "annotation-xml" || ri[W]) : !!oo[k] : l.namespaceURI === ei ? g.namespaceURI === Ve ? k === "math" : g.namespaceURI === ti ? k === "math" && ii[W] : !!so[k] : l.namespaceURI === Ve ? g.namespaceURI === ti && !ii[W] || g.namespaceURI === ei && !ri[W] ? !1 : !so[k] && (Da[k] || !oo[k]) : !!(Sr === "application/xhtml+xml" && Fi[l.namespaceURI]) : !1;
|
|
5747
5763
|
}, xe = function(l) {
|
|
5748
5764
|
$r(t.removed, { element: l });
|
|
5749
5765
|
try {
|
|
@@ -5751,7 +5767,7 @@ function Ea() {
|
|
|
5751
5767
|
} catch {
|
|
5752
5768
|
m(l);
|
|
5753
5769
|
}
|
|
5754
|
-
},
|
|
5770
|
+
}, Ct = function(l, g) {
|
|
5755
5771
|
try {
|
|
5756
5772
|
$r(t.removed, {
|
|
5757
5773
|
attribute: g.getAttributeNode(l),
|
|
@@ -5773,7 +5789,7 @@ function Ea() {
|
|
|
5773
5789
|
}
|
|
5774
5790
|
}, ao = function(l) {
|
|
5775
5791
|
let g = null, k = null;
|
|
5776
|
-
if (
|
|
5792
|
+
if (Rt) l = "<remove></remove>" + l;
|
|
5777
5793
|
else {
|
|
5778
5794
|
const ke = on(l, /^[\r\n\t ]+/);
|
|
5779
5795
|
k = ke && ke[0];
|
|
@@ -5815,8 +5831,8 @@ function Ea() {
|
|
|
5815
5831
|
allowedTags: B
|
|
5816
5832
|
}), be && l.hasChildNodes() && !Wi(l.firstElementChild) && le(/<[/\w!]/g, l.innerHTML) && le(/<[/\w!]/g, l.textContent) || be && l.namespaceURI === Ve && k === "style" && Wi(l.firstElementChild) || l.nodeType === Dr.progressingInstruction || be && l.nodeType === Dr.comment && le(/<[/\w]/g, l.data))
|
|
5817
5833
|
return xe(l), !0;
|
|
5818
|
-
if (
|
|
5819
|
-
if (!
|
|
5834
|
+
if (bt[k] || !(Be.tagCheck instanceof Function && Be.tagCheck(k)) && !B[k]) {
|
|
5835
|
+
if (!bt[k] && uo(k) && (H.tagNameCheck instanceof RegExp && le(H.tagNameCheck, k) || H.tagNameCheck instanceof Function && H.tagNameCheck(k)))
|
|
5820
5836
|
return !1;
|
|
5821
5837
|
if (Er && !ve[k]) {
|
|
5822
5838
|
const W = I(l) || l.parentNode, z = F(l) || l.childNodes;
|
|
@@ -5830,15 +5846,15 @@ function Ea() {
|
|
|
5830
5846
|
}
|
|
5831
5847
|
return xe(l), !0;
|
|
5832
5848
|
}
|
|
5833
|
-
return l instanceof
|
|
5834
|
-
|
|
5849
|
+
return l instanceof c && !za(l) || (k === "noscript" || k === "noembed" || k === "noframes") && le(/<\/no(script|embed|frames)/i, l.innerHTML) ? (xe(l), !0) : (Q && l.nodeType === Dr.text && (g = l.textContent, Cr([
|
|
5850
|
+
_t,
|
|
5835
5851
|
Jt,
|
|
5836
5852
|
w
|
|
5837
5853
|
], (W) => {
|
|
5838
5854
|
g = lr(g, W, " ");
|
|
5839
5855
|
}), l.textContent !== g && ($r(t.removed, { element: l.cloneNode() }), l.textContent = g)), ot(K.afterSanitizeElements, l, null), !1);
|
|
5840
5856
|
}, fo = function(l, g, k) {
|
|
5841
|
-
if (er[g] || nr && (g === "id" || g === "name") && (k in r || k in
|
|
5857
|
+
if (er[g] || nr && (g === "id" || g === "name") && (k in r || k in Fa)) return !1;
|
|
5842
5858
|
if (!(it && !er[g] && le(S, g))) {
|
|
5843
5859
|
if (!(Jr && le(U, g))) {
|
|
5844
5860
|
if (!(Be.attributeCheck instanceof Function && Be.attributeCheck(g, l))) {
|
|
@@ -5846,7 +5862,7 @@ function Ea() {
|
|
|
5846
5862
|
if (!(uo(l) && (H.tagNameCheck instanceof RegExp && le(H.tagNameCheck, l) || H.tagNameCheck instanceof Function && H.tagNameCheck(l)) && (H.attributeNameCheck instanceof RegExp && le(H.attributeNameCheck, g) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(g, l)) || g === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && le(H.tagNameCheck, k) || H.tagNameCheck instanceof Function && H.tagNameCheck(k)))) return !1;
|
|
5847
5863
|
} else if (!Ni[g]) {
|
|
5848
5864
|
if (!le(Qt, lr(k, rt, ""))) {
|
|
5849
|
-
if (!((g === "src" || g === "xlink:href" || g === "href") && l !== "script" &&
|
|
5865
|
+
if (!((g === "src" || g === "xlink:href" || g === "href") && l !== "script" && ou(k, "data:") === 0 && to[l])) {
|
|
5850
5866
|
if (!(tr && !le(re, lr(k, rt, "")))) {
|
|
5851
5867
|
if (k) return !1;
|
|
5852
5868
|
}
|
|
@@ -5873,26 +5889,26 @@ function Ea() {
|
|
|
5873
5889
|
let W = g.length;
|
|
5874
5890
|
for (; W--; ) {
|
|
5875
5891
|
const { name: z, namespaceURI: ke, value: Ee } = g[W], Z = J(z), Ir = Ee;
|
|
5876
|
-
let ie = z === "value" ? Ir :
|
|
5877
|
-
if (k.attrName = Z, k.attrValue = ie, k.keepAttr = !0, k.forceKeepAttr = void 0, ot(K.uponSanitizeAttribute, l, k), ie = k.attrValue, Qr && (Z === "id" || Z === "name") && (
|
|
5878
|
-
|
|
5892
|
+
let ie = z === "value" ? Ir : su(Ir);
|
|
5893
|
+
if (k.attrName = Z, k.attrValue = ie, k.keepAttr = !0, k.forceKeepAttr = void 0, ot(K.uponSanitizeAttribute, l, k), ie = k.attrValue, Qr && (Z === "id" || Z === "name") && (Ct(z, l), ie = Zr + ie), be && le(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ie)) {
|
|
5894
|
+
Ct(z, l);
|
|
5879
5895
|
continue;
|
|
5880
5896
|
}
|
|
5881
5897
|
if (Z === "attributename" && on(ie, "href")) {
|
|
5882
|
-
|
|
5898
|
+
Ct(z, l);
|
|
5883
5899
|
continue;
|
|
5884
5900
|
}
|
|
5885
5901
|
if (k.forceKeepAttr) continue;
|
|
5886
5902
|
if (!k.keepAttr) {
|
|
5887
|
-
|
|
5903
|
+
Ct(z, l);
|
|
5888
5904
|
continue;
|
|
5889
5905
|
}
|
|
5890
5906
|
if (!rr && le(/\/>/i, ie)) {
|
|
5891
|
-
|
|
5907
|
+
Ct(z, l);
|
|
5892
5908
|
continue;
|
|
5893
5909
|
}
|
|
5894
5910
|
Q && Cr([
|
|
5895
|
-
|
|
5911
|
+
_t,
|
|
5896
5912
|
Jt,
|
|
5897
5913
|
w
|
|
5898
5914
|
], (mo) => {
|
|
@@ -5900,7 +5916,7 @@ function Ea() {
|
|
|
5900
5916
|
});
|
|
5901
5917
|
const vo = J(l.nodeName);
|
|
5902
5918
|
if (!fo(vo, Z, ie)) {
|
|
5903
|
-
|
|
5919
|
+
Ct(z, l);
|
|
5904
5920
|
continue;
|
|
5905
5921
|
}
|
|
5906
5922
|
if (O && typeof v == "object" && typeof v.getAttributeType == "function" && !ke) switch (v.getAttributeType(vo, Z)) {
|
|
@@ -5912,9 +5928,9 @@ function Ea() {
|
|
|
5912
5928
|
break;
|
|
5913
5929
|
}
|
|
5914
5930
|
if (ie !== Ir) try {
|
|
5915
|
-
ke ? l.setAttributeNS(ke, z, ie) : l.setAttribute(z, ie), Hi(l) ? xe(l) :
|
|
5931
|
+
ke ? l.setAttributeNS(ke, z, ie) : l.setAttribute(z, ie), Hi(l) ? xe(l) : Jo(t.removed);
|
|
5916
5932
|
} catch {
|
|
5917
|
-
|
|
5933
|
+
Ct(z, l);
|
|
5918
5934
|
}
|
|
5919
5935
|
}
|
|
5920
5936
|
ot(K.afterSanitizeAttributes, l, null);
|
|
@@ -5931,28 +5947,28 @@ function Ea() {
|
|
|
5931
5947
|
if (A = A.toString(), typeof A != "string") throw Pr("dirty is not a string, aborting");
|
|
5932
5948
|
} else throw Pr("toString is not a function");
|
|
5933
5949
|
if (!t.isSupported) return A;
|
|
5934
|
-
if (
|
|
5950
|
+
if (Lt || zi(l), t.removed = [], typeof A == "string" && (Mt = !1), Mt) {
|
|
5935
5951
|
if (A.nodeName) {
|
|
5936
5952
|
const Z = J(A.nodeName);
|
|
5937
|
-
if (!B[Z] ||
|
|
5953
|
+
if (!B[Z] || bt[Z]) throw Pr("root node is forbidden and cannot be sanitized in-place");
|
|
5938
5954
|
}
|
|
5939
5955
|
} else if (A instanceof a)
|
|
5940
5956
|
g = ao("<!---->"), k = g.ownerDocument.importNode(A, !0), k.nodeType === Dr.element && k.nodeName === "BODY" || k.nodeName === "HTML" ? g = k : g.appendChild(k);
|
|
5941
5957
|
else {
|
|
5942
|
-
if (!nt && !Q && !je && A.indexOf("<") === -1) return O &&
|
|
5943
|
-
if (g = ao(A), !g) return nt ? null :
|
|
5958
|
+
if (!nt && !Q && !je && A.indexOf("<") === -1) return O && yt ? O.createHTML(A) : A;
|
|
5959
|
+
if (g = ao(A), !g) return nt ? null : yt ? G : "";
|
|
5944
5960
|
}
|
|
5945
|
-
g &&
|
|
5946
|
-
const ke = lo(
|
|
5961
|
+
g && Rt && xe(g.firstChild);
|
|
5962
|
+
const ke = lo(Mt ? A : g);
|
|
5947
5963
|
for (; W = ke.nextNode(); )
|
|
5948
5964
|
co(W), po(W), W.content instanceof o && ho(W.content);
|
|
5949
|
-
if (
|
|
5965
|
+
if (Mt) return A;
|
|
5950
5966
|
if (nt) {
|
|
5951
5967
|
if (Q) {
|
|
5952
5968
|
g.normalize();
|
|
5953
5969
|
let Z = g.innerHTML;
|
|
5954
5970
|
Cr([
|
|
5955
|
-
|
|
5971
|
+
_t,
|
|
5956
5972
|
Jt,
|
|
5957
5973
|
w
|
|
5958
5974
|
], (Ir) => {
|
|
@@ -5965,61 +5981,61 @@ function Ea() {
|
|
|
5965
5981
|
return (X.shadowroot || X.shadowrootmode) && (z = Y.call(i, z, !0)), z;
|
|
5966
5982
|
}
|
|
5967
5983
|
let Ee = je ? g.outerHTML : g.innerHTML;
|
|
5968
|
-
return je && B["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && le(
|
|
5984
|
+
return je && B["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && le(Aa, g.ownerDocument.doctype.name) && (Ee = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
|
|
5969
5985
|
` + Ee), Q && Cr([
|
|
5970
|
-
|
|
5986
|
+
_t,
|
|
5971
5987
|
Jt,
|
|
5972
5988
|
w
|
|
5973
5989
|
], (Z) => {
|
|
5974
5990
|
Ee = lr(Ee, Z, " ");
|
|
5975
|
-
}), O &&
|
|
5991
|
+
}), O && yt ? O.createHTML(Ee) : Ee;
|
|
5976
5992
|
}, t.setConfig = function() {
|
|
5977
|
-
zi(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}),
|
|
5993
|
+
zi(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Lt = !0;
|
|
5978
5994
|
}, t.clearConfig = function() {
|
|
5979
|
-
sr = null,
|
|
5995
|
+
sr = null, Lt = !1;
|
|
5980
5996
|
}, t.isValidAttribute = function(A, l, g) {
|
|
5981
5997
|
return sr || zi({}), fo(J(A), J(l), g);
|
|
5982
5998
|
}, t.addHook = function(A, l) {
|
|
5983
5999
|
typeof l == "function" && $r(K[A], l);
|
|
5984
6000
|
}, t.removeHook = function(A, l) {
|
|
5985
6001
|
if (l !== void 0) {
|
|
5986
|
-
const g =
|
|
5987
|
-
return g === -1 ? void 0 :
|
|
6002
|
+
const g = iu(K[A], l);
|
|
6003
|
+
return g === -1 ? void 0 : nu(K[A], g, 1)[0];
|
|
5988
6004
|
}
|
|
5989
|
-
return
|
|
6005
|
+
return Jo(K[A]);
|
|
5990
6006
|
}, t.removeHooks = function(A) {
|
|
5991
6007
|
K[A] = [];
|
|
5992
6008
|
}, t.removeAllHooks = function() {
|
|
5993
|
-
K =
|
|
6009
|
+
K = is();
|
|
5994
6010
|
}, t;
|
|
5995
6011
|
}
|
|
5996
|
-
var
|
|
6012
|
+
var ed = Sa(), Mn;
|
|
5997
6013
|
(function(e) {
|
|
5998
6014
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
5999
6015
|
})(Mn || (Mn = {}));
|
|
6000
|
-
var
|
|
6016
|
+
var ns;
|
|
6001
6017
|
(function(e) {
|
|
6002
6018
|
e.loading = "loading", e.loaded = "loaded";
|
|
6003
|
-
})(
|
|
6004
|
-
var
|
|
6019
|
+
})(ns || (ns = {}));
|
|
6020
|
+
var td = Zf.timeoutMs, os;
|
|
6005
6021
|
(function(e) {
|
|
6006
6022
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
6007
|
-
})(
|
|
6008
|
-
var
|
|
6023
|
+
})(os || (os = {}));
|
|
6024
|
+
var ss;
|
|
6009
6025
|
(function(e) {
|
|
6010
6026
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
6011
|
-
})(
|
|
6012
|
-
var
|
|
6027
|
+
})(ss || (ss = {}));
|
|
6028
|
+
var as;
|
|
6013
6029
|
(function(e) {
|
|
6014
6030
|
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
6015
|
-
})(
|
|
6016
|
-
var
|
|
6031
|
+
})(as || (as = {}));
|
|
6032
|
+
var ls;
|
|
6017
6033
|
(function(e) {
|
|
6018
6034
|
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
6019
|
-
})(
|
|
6020
|
-
var
|
|
6035
|
+
})(ls || (ls = {}));
|
|
6036
|
+
var wu = class Ia extends CustomEvent {
|
|
6021
6037
|
constructor(t, r = !1) {
|
|
6022
|
-
super(
|
|
6038
|
+
super(Ia.TYPE, {
|
|
6023
6039
|
bubbles: !0,
|
|
6024
6040
|
detail: {
|
|
6025
6041
|
update: t,
|
|
@@ -6028,10 +6044,10 @@ var _u = class Aa extends CustomEvent {
|
|
|
6028
6044
|
}), b(this, "update", void 0), b(this, "reset", void 0), this.update = t, this.reset = r;
|
|
6029
6045
|
}
|
|
6030
6046
|
};
|
|
6031
|
-
b(
|
|
6032
|
-
var
|
|
6047
|
+
b(wu, "TYPE", "model.updated");
|
|
6048
|
+
var Tu = class Oa extends CustomEvent {
|
|
6033
6049
|
constructor(t, r) {
|
|
6034
|
-
super(
|
|
6050
|
+
super(Oa.TYPE, {
|
|
6035
6051
|
bubbles: !0,
|
|
6036
6052
|
detail: {
|
|
6037
6053
|
src: t,
|
|
@@ -6040,19 +6056,19 @@ var bu = class Sa extends CustomEvent {
|
|
|
6040
6056
|
}), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
|
|
6041
6057
|
}
|
|
6042
6058
|
};
|
|
6043
|
-
b(
|
|
6044
|
-
var
|
|
6059
|
+
b(Tu, "TYPE", "delete.image");
|
|
6060
|
+
var ku = class La extends CustomEvent {
|
|
6045
6061
|
constructor(t) {
|
|
6046
|
-
super(
|
|
6062
|
+
super(La.TYPE, {
|
|
6047
6063
|
bubbles: !0,
|
|
6048
6064
|
detail: t
|
|
6049
6065
|
}), b(this, "handler", void 0), this.handler = t;
|
|
6050
6066
|
}
|
|
6051
6067
|
};
|
|
6052
|
-
b(
|
|
6053
|
-
var
|
|
6068
|
+
b(ku, "TYPE", "insert.image");
|
|
6069
|
+
var Eu = class Ra extends CustomEvent {
|
|
6054
6070
|
constructor(t, r) {
|
|
6055
|
-
super(
|
|
6071
|
+
super(Ra.TYPE, {
|
|
6056
6072
|
bubbles: !0,
|
|
6057
6073
|
detail: {
|
|
6058
6074
|
src: t,
|
|
@@ -6061,19 +6077,19 @@ var wu = class Oa extends CustomEvent {
|
|
|
6061
6077
|
}), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
|
|
6062
6078
|
}
|
|
6063
6079
|
};
|
|
6064
|
-
b(
|
|
6065
|
-
var
|
|
6080
|
+
b(Eu, "TYPE", "delete.sound");
|
|
6081
|
+
var Au = class Ma extends CustomEvent {
|
|
6066
6082
|
constructor(t) {
|
|
6067
|
-
super(
|
|
6083
|
+
super(Ma.TYPE, {
|
|
6068
6084
|
bubbles: !0,
|
|
6069
6085
|
detail: t
|
|
6070
6086
|
}), b(this, "handler", void 0), this.handler = t;
|
|
6071
6087
|
}
|
|
6072
6088
|
};
|
|
6073
|
-
b(
|
|
6074
|
-
var
|
|
6089
|
+
b(Au, "TYPE", "insert.sound");
|
|
6090
|
+
var Su = class Ca extends CustomEvent {
|
|
6075
6091
|
constructor(t, r) {
|
|
6076
|
-
super(
|
|
6092
|
+
super(Ca.TYPE, {
|
|
6077
6093
|
bubbles: !0,
|
|
6078
6094
|
composed: !0,
|
|
6079
6095
|
detail: {
|
|
@@ -6083,12 +6099,12 @@ var ku = class Ra extends CustomEvent {
|
|
|
6083
6099
|
}), b(this, "component", void 0), b(this, "complete", void 0), this.component = t, this.complete = r;
|
|
6084
6100
|
}
|
|
6085
6101
|
};
|
|
6086
|
-
b(
|
|
6087
|
-
var
|
|
6102
|
+
b(Su, "TYPE", "session-changed");
|
|
6103
|
+
var cs;
|
|
6088
6104
|
(function(e) {
|
|
6089
6105
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
6090
|
-
})(
|
|
6091
|
-
function
|
|
6106
|
+
})(cs || (cs = {}));
|
|
6107
|
+
function mt(e, t) {
|
|
6092
6108
|
const r = `[${e}]`;
|
|
6093
6109
|
return {
|
|
6094
6110
|
debug: (i, ...n) => {
|
|
@@ -6099,22 +6115,22 @@ function Yt(e, t) {
|
|
|
6099
6115
|
error: (i, ...n) => console.error(r, i, ...n)
|
|
6100
6116
|
};
|
|
6101
6117
|
}
|
|
6102
|
-
function
|
|
6118
|
+
function gt() {
|
|
6103
6119
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
6104
6120
|
}
|
|
6105
|
-
var
|
|
6106
|
-
buildServiceBase:
|
|
6121
|
+
var rd = mt("math-rendering", () => gt()), id = mt("pie-scoring", () => gt()), nd = mt("pie-updates", () => gt()), od = mt("pie-initialization", () => gt()), sd = {
|
|
6122
|
+
buildServiceBase: Qf,
|
|
6107
6123
|
bundleType: Mn.player,
|
|
6108
6124
|
env: {
|
|
6109
6125
|
mode: "gather",
|
|
6110
6126
|
role: "student"
|
|
6111
6127
|
}
|
|
6112
|
-
},
|
|
6128
|
+
}, ad = mt("asset-handler", () => gt()), ld = mt("authoring", () => gt()), cd = mt("instrumentation-event-bridge", () => gt()), fd = mt("instrumentation-provider-resolution", () => gt()), ud = Object.freeze([
|
|
6113
6129
|
"composed",
|
|
6114
6130
|
"engine-ready",
|
|
6115
6131
|
"interactive",
|
|
6116
6132
|
"disposed"
|
|
6117
|
-
]),
|
|
6133
|
+
]), dd = mt("pie-overrides", () => gt()), $a = [
|
|
6118
6134
|
"a[href]",
|
|
6119
6135
|
"button:not([disabled])",
|
|
6120
6136
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -6123,19 +6139,19 @@ var Zu = Yt("math-rendering", () => Kt()), ed = Yt("pie-scoring", () => Kt()), t
|
|
|
6123
6139
|
"[contenteditable]:not([contenteditable='false'])",
|
|
6124
6140
|
"[tabindex]:not([tabindex='-1'])"
|
|
6125
6141
|
].join(",");
|
|
6126
|
-
function
|
|
6127
|
-
return !e.matches(
|
|
6142
|
+
function Iu(e) {
|
|
6143
|
+
return !e.matches($a) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
6128
6144
|
}
|
|
6129
|
-
function
|
|
6130
|
-
return Array.from(e.querySelectorAll(
|
|
6145
|
+
function Pa(e) {
|
|
6146
|
+
return Array.from(e.querySelectorAll($a)).filter((t) => Iu(t));
|
|
6131
6147
|
}
|
|
6132
|
-
function
|
|
6148
|
+
function Ou(e, t) {
|
|
6133
6149
|
try {
|
|
6134
6150
|
if (t && e.contains(t)) {
|
|
6135
6151
|
t.focus();
|
|
6136
6152
|
return;
|
|
6137
6153
|
}
|
|
6138
|
-
const r =
|
|
6154
|
+
const r = Pa(e);
|
|
6139
6155
|
if (r.length > 0) {
|
|
6140
6156
|
r[0].focus();
|
|
6141
6157
|
return;
|
|
@@ -6144,14 +6160,14 @@ function Au(e, t) {
|
|
|
6144
6160
|
} catch {
|
|
6145
6161
|
}
|
|
6146
6162
|
}
|
|
6147
|
-
function
|
|
6163
|
+
function Lu(e, t = {}) {
|
|
6148
6164
|
const r = typeof document < "u" ? document.activeElement : null, i = (n) => {
|
|
6149
6165
|
if (n.key === "Escape") {
|
|
6150
6166
|
t.onEscape?.();
|
|
6151
6167
|
return;
|
|
6152
6168
|
}
|
|
6153
6169
|
if (n.key !== "Tab") return;
|
|
6154
|
-
const o =
|
|
6170
|
+
const o = Pa(e);
|
|
6155
6171
|
if (!o.length) {
|
|
6156
6172
|
n.preventDefault(), e.focus?.();
|
|
6157
6173
|
return;
|
|
@@ -6163,7 +6179,7 @@ function Su(e, t = {}) {
|
|
|
6163
6179
|
}
|
|
6164
6180
|
a === o.length - 1 && (n.preventDefault(), o[0].focus());
|
|
6165
6181
|
};
|
|
6166
|
-
return queueMicrotask(() =>
|
|
6182
|
+
return queueMicrotask(() => Ou(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
6167
6183
|
e.removeEventListener("keydown", i);
|
|
6168
6184
|
try {
|
|
6169
6185
|
r?.focus?.();
|
|
@@ -6171,37 +6187,37 @@ function Su(e, t = {}) {
|
|
|
6171
6187
|
}
|
|
6172
6188
|
};
|
|
6173
6189
|
}
|
|
6174
|
-
function
|
|
6190
|
+
function Ru(e) {
|
|
6175
6191
|
try {
|
|
6176
6192
|
return typeof localStorage > "u" ? null : localStorage.getItem(e);
|
|
6177
6193
|
} catch {
|
|
6178
6194
|
return null;
|
|
6179
6195
|
}
|
|
6180
6196
|
}
|
|
6181
|
-
function
|
|
6197
|
+
function Mu(e, t) {
|
|
6182
6198
|
try {
|
|
6183
6199
|
if (typeof localStorage > "u") return;
|
|
6184
6200
|
localStorage.setItem(e, t);
|
|
6185
6201
|
} catch {
|
|
6186
6202
|
}
|
|
6187
6203
|
}
|
|
6188
|
-
var
|
|
6204
|
+
var Cu = /* @__PURE__ */ rc('<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>'), $u = /* @__PURE__ */ Jn('<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>'), Pu = /* @__PURE__ */ Jn('<div class="pie-tool-color-scheme__dropdown svelte-17qy4wk" role="menu"></div>'), xu = /* @__PURE__ */ Jn('<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>'), Du = {
|
|
6189
6205
|
hash: "svelte-17qy4wk",
|
|
6190
6206
|
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);}
|
|
6191
6207
|
|
|
6192
6208
|
/* Keyboard focus styling */.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:focus-visible,
|
|
6193
6209
|
.pie-tool-color-scheme__option.svelte-17qy4wk:focus-visible {outline:2px solid var(--pie-primary, #3f51b5);outline-offset:2px;}`
|
|
6194
6210
|
};
|
|
6195
|
-
function
|
|
6196
|
-
|
|
6211
|
+
function Nu(e, t) {
|
|
6212
|
+
_s(t, !0), gc(e, Du);
|
|
6197
6213
|
const r = typeof window < "u";
|
|
6198
|
-
let i = ui(t, "visible", 7, !1), n = ui(t, "toolId", 7, "theme"), o = ui(t, "schemes", 7, ""), s = ui(t, "schemeCatalog", 7, null), a = /* @__PURE__ */ we(void 0),
|
|
6199
|
-
const u = /* @__PURE__ */ ji(() => y(
|
|
6214
|
+
let i = ui(t, "visible", 7, !1), n = ui(t, "toolId", 7, "theme"), o = ui(t, "schemes", 7, ""), s = ui(t, "schemeCatalog", 7, null), a = /* @__PURE__ */ we(void 0), c = /* @__PURE__ */ we(null);
|
|
6215
|
+
const u = /* @__PURE__ */ ji(() => y(c)?.toolCoordinator);
|
|
6200
6216
|
let d = /* @__PURE__ */ we(!1);
|
|
6201
6217
|
fr(() => {
|
|
6202
6218
|
if (y(a))
|
|
6203
|
-
return
|
|
6204
|
-
te(
|
|
6219
|
+
return Nc(y(a), (w) => {
|
|
6220
|
+
te(c, w, !0);
|
|
6205
6221
|
});
|
|
6206
6222
|
});
|
|
6207
6223
|
const h = {
|
|
@@ -6248,7 +6264,7 @@ function Pu(e, t) {
|
|
|
6248
6264
|
return S || document.querySelector("pie-theme");
|
|
6249
6265
|
}
|
|
6250
6266
|
function m() {
|
|
6251
|
-
return
|
|
6267
|
+
return zf().map((w) => ({
|
|
6252
6268
|
id: w.id,
|
|
6253
6269
|
name: w.name || w.id,
|
|
6254
6270
|
description: w.description || "",
|
|
@@ -6279,7 +6295,7 @@ function Pu(e, t) {
|
|
|
6279
6295
|
const U = document.documentElement;
|
|
6280
6296
|
w === "default" ? U.removeAttribute("data-color-scheme") : U.setAttribute("data-color-scheme", w);
|
|
6281
6297
|
}
|
|
6282
|
-
|
|
6298
|
+
Mu("pie-color-scheme", w);
|
|
6283
6299
|
}
|
|
6284
6300
|
function q(w) {
|
|
6285
6301
|
te(F, w, !0), G(w), y(u)?.hideTool(n());
|
|
@@ -6313,10 +6329,10 @@ function Pu(e, t) {
|
|
|
6313
6329
|
}), fr(() => {
|
|
6314
6330
|
y(u) && y(a) && n() && y(u).updateToolElement(n(), y(a));
|
|
6315
6331
|
}), fr(() => {
|
|
6316
|
-
!i() && O ? (O(), O = null) : i() && y(a) && !O && (O =
|
|
6317
|
-
}),
|
|
6332
|
+
!i() && O ? (O(), O = null) : i() && y(a) && !O && (O = Lu(y(a)));
|
|
6333
|
+
}), uc(() => {
|
|
6318
6334
|
if (r) {
|
|
6319
|
-
const S = E()?.getAttribute("scheme"), U =
|
|
6335
|
+
const S = E()?.getAttribute("scheme"), U = Ru("pie-color-scheme") ?? S ?? "default";
|
|
6320
6336
|
te(F, U, !0), U && requestAnimationFrame(() => {
|
|
6321
6337
|
G(U);
|
|
6322
6338
|
});
|
|
@@ -6355,47 +6371,47 @@ function Pu(e, t) {
|
|
|
6355
6371
|
set schemeCatalog(w = null) {
|
|
6356
6372
|
s(w), Nr();
|
|
6357
6373
|
}
|
|
6358
|
-
}, K =
|
|
6359
|
-
var S =
|
|
6374
|
+
}, K = ic(), _t = zl(K), Jt = (w) => {
|
|
6375
|
+
var S = xu(), U = ae(S), re = st(ae(U), 2), rt = ae(re), he = ae(rt), Qt = ae(he), B = ae(Qt), Xr = st(B, 2);
|
|
6360
6376
|
oe(Qt), oe(he);
|
|
6361
6377
|
var X = st(he, 2), Zt = ae(X), H = ae(Zt, !0);
|
|
6362
6378
|
oe(Zt);
|
|
6363
|
-
var
|
|
6364
|
-
oe(
|
|
6379
|
+
var bt = st(Zt, 2), er = ae(bt, !0);
|
|
6380
|
+
oe(bt), oe(X), hs(2), oe(rt), oe(re);
|
|
6365
6381
|
var Be = st(re, 2), Jr = (it) => {
|
|
6366
|
-
var tr =
|
|
6367
|
-
|
|
6368
|
-
var be =
|
|
6382
|
+
var tr = Pu();
|
|
6383
|
+
hc(tr, 21, () => y(T), (rr) => rr.id, (rr, Q) => {
|
|
6384
|
+
var be = $u();
|
|
6369
6385
|
let je;
|
|
6370
|
-
var
|
|
6371
|
-
oe(
|
|
6372
|
-
var
|
|
6386
|
+
var Lt = ae(be), Rt = ae(Lt), nt = ae(Rt), ir = st(nt, 2);
|
|
6387
|
+
oe(Rt), oe(Lt);
|
|
6388
|
+
var yt = st(Lt, 2), nr = ae(yt), Qr = ae(nr, !0);
|
|
6373
6389
|
oe(nr);
|
|
6374
6390
|
var Zr = st(nr, 2), Er = ae(Zr, !0);
|
|
6375
|
-
oe(Zr), oe(
|
|
6376
|
-
var
|
|
6377
|
-
var Ar =
|
|
6391
|
+
oe(Zr), oe(yt);
|
|
6392
|
+
var Mt = st(yt, 2), wt = (ve) => {
|
|
6393
|
+
var Ar = Cu();
|
|
6378
6394
|
ur(ve, Ar);
|
|
6379
6395
|
};
|
|
6380
|
-
Yi(
|
|
6381
|
-
y(F) === y(Q).id && ve(
|
|
6396
|
+
Yi(Mt, (ve) => {
|
|
6397
|
+
y(F) === y(Q).id && ve(wt);
|
|
6382
6398
|
}), oe(be), Oo(() => {
|
|
6383
|
-
je =
|
|
6399
|
+
je = yc(be, 1, "pie-tool-color-scheme__option svelte-17qy4wk", null, je, { "pie-tool-color-scheme__option--active": y(F) === y(Q).id }), Ji(be, "aria-label", y(Q).name), Ji(be, "aria-current", y(F) === y(Q).id), ar(Rt, `background-color: ${y(Q).preview.bg ?? ""}`), ar(nt, `color: ${y(Q).preview.text ?? ""}`), ar(ir, `background-color: ${y(Q).preview.primary ?? ""}`), li(Qr, y(Q).name), li(Er, y(Q).description);
|
|
6384
6400
|
}), Vi("click", be, () => q(y(Q).id)), ur(rr, be);
|
|
6385
6401
|
}), oe(tr), ur(it, tr);
|
|
6386
6402
|
};
|
|
6387
6403
|
Yi(Be, (it) => {
|
|
6388
6404
|
y(I) && it(Jr);
|
|
6389
|
-
}), oe(U), oe(S),
|
|
6405
|
+
}), oe(U), oe(S), Ic(S, (it) => te(a, it), () => y(a)), Oo(() => {
|
|
6390
6406
|
Ji(re, "aria-expanded", y(I)), ar(Qt, `background-color: ${y(ne).preview.bg ?? ""}`), ar(B, `color: ${y(ne).preview.text ?? ""}`), ar(Xr, `background-color: ${y(ne).preview.primary ?? ""}`), li(H, y(ne).name), li(er, y(ne).description);
|
|
6391
6407
|
}), Vi("keydown", S, Xt), Vi("click", re, pe), ur(w, S);
|
|
6392
6408
|
};
|
|
6393
|
-
return Yi(
|
|
6409
|
+
return Yi(_t, (w) => {
|
|
6394
6410
|
i() && w(Jt);
|
|
6395
|
-
}), ur(e, K),
|
|
6411
|
+
}), ur(e, K), bs(Y);
|
|
6396
6412
|
}
|
|
6397
|
-
|
|
6398
|
-
customElements.define("pie-tool-theme",
|
|
6413
|
+
Ql(["keydown", "click"]);
|
|
6414
|
+
customElements.define("pie-tool-theme", Mc(Nu, {
|
|
6399
6415
|
visible: {
|
|
6400
6416
|
attribute: "visible",
|
|
6401
6417
|
type: "Boolean"
|
|
@@ -6411,5 +6427,5 @@ customElements.define("pie-tool-theme", Lc(Pu, {
|
|
|
6411
6427
|
schemeCatalog: { type: "Object" }
|
|
6412
6428
|
}, [], [], { mode: "open" }));
|
|
6413
6429
|
export {
|
|
6414
|
-
|
|
6430
|
+
Nu as default
|
|
6415
6431
|
};
|