@pie-players/pie-section-player 0.3.20 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/shared/player-preload.d.ts +3 -1
- package/dist/components/shared/player-preload.d.ts.map +1 -1
- package/dist/components/shared/section-player-view-state.d.ts.map +1 -1
- package/dist/{dist-BIgX-aC4-C5B4fLQK.js → dist-Bud4G4lv-DvJKILlA.js} +70 -52
- package/dist/{dist-BCuSaTvi.js → dist-C2B1t0Ov.js} +75 -57
- package/dist/pie-section-player.js +3227 -3115
- package/dist/{player-preload-C_CjM5hv.js → player-preload-DHibXasK.js} +1463 -1319
- package/dist/{tool-annotation-toolbar-BS_MjvXd.js → tool-annotation-toolbar-CltCGj49.js} +612 -608
- package/dist/utils/player-preload.js +1 -1
- package/package.json +10 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as b } from "./defineProperty-CyepwRr5-eHUSgEtz.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var bn, yn;
|
|
4
|
+
((bn = (yn = window).__svelte ?? (yn.__svelte = {})).v ?? (bn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var fe = {},
|
|
6
|
+
var fe = {}, j = Symbol(), Jn = Array.isArray, hr = Array.prototype.indexOf, pe = Array.prototype.includes, po = Array.from, ro = Object.keys, so = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, fr = Object.getOwnPropertyDescriptors, pr = Object.prototype, vr = Array.prototype, Xn = Object.getPrototypeOf, wn = Object.isExtensible, gr = () => {
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function mr(t) {
|
|
9
9
|
for (var e = 0; e < t.length; e++) t[e]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Zn() {
|
|
12
12
|
var t, e;
|
|
13
13
|
return {
|
|
14
14
|
promise: new Promise((o, n) => {
|
|
@@ -18,51 +18,51 @@ function Xn() {
|
|
|
18
18
|
reject: e
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
var et = 1024, wt = 2048, ie = 4096,
|
|
21
|
+
var et = 1024, wt = 2048, ie = 4096, Fo = 8192, br = 16384, Go = 32768, Tn = 1 << 25, Uo = 65536, ye = 1 << 19, yr = 1 << 20, _e = 1 << 25, Re = 65536, In = 1 << 21, wr = 1 << 22, lo = 1 << 23, Ce = Symbol("$state"), Yn = Symbol("legacy props"), Tr = Symbol(""), _t = new class extends Error {
|
|
22
22
|
constructor(...t) {
|
|
23
23
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
24
24
|
}
|
|
25
|
-
}(),
|
|
26
|
-
function
|
|
25
|
+
}(), Ir = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
26
|
+
function $r() {
|
|
27
27
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function kr(t, e, o) {
|
|
30
30
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Sr(t) {
|
|
33
33
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function xr() {
|
|
36
36
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ar(t) {
|
|
39
39
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function _r() {
|
|
42
42
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Cr() {
|
|
45
45
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Er(t) {
|
|
48
48
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pr() {
|
|
51
51
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Lr() {
|
|
54
54
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Mr() {
|
|
57
57
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Or() {
|
|
60
60
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
61
|
}
|
|
62
62
|
function vo(t) {
|
|
63
63
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Rr() {
|
|
66
66
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
67
67
|
}
|
|
68
68
|
var L = !1;
|
|
@@ -77,13 +77,13 @@ function G(t) {
|
|
|
77
77
|
function go() {
|
|
78
78
|
return G(/* @__PURE__ */ Tt(E));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function De(t) {
|
|
81
81
|
if (L) {
|
|
82
82
|
if (/* @__PURE__ */ Tt(E) !== null) throw vo(), fe;
|
|
83
83
|
E = t;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Nr(t = 1) {
|
|
87
87
|
if (L) {
|
|
88
88
|
for (var e = t, o = E; e--; ) o = /* @__PURE__ */ Tt(o);
|
|
89
89
|
E = o;
|
|
@@ -102,26 +102,26 @@ function ao(t = !0) {
|
|
|
102
102
|
t && o.remove(), o = i;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Qn(t) {
|
|
106
106
|
if (!t || t.nodeType !== 8) throw vo(), fe;
|
|
107
107
|
return t.data;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ti(t) {
|
|
110
110
|
return t === this.v;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Vr(t, e) {
|
|
113
113
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return !
|
|
115
|
+
function ei(t) {
|
|
116
|
+
return !Vr(t, this.v);
|
|
117
117
|
}
|
|
118
|
-
var zt = !1, mo = !1,
|
|
118
|
+
var zt = !1, mo = !1, W = null;
|
|
119
119
|
function ve(t) {
|
|
120
|
-
|
|
120
|
+
W = t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
p:
|
|
122
|
+
function oi(t, e = !1, o) {
|
|
123
|
+
W = {
|
|
124
|
+
p: W,
|
|
125
125
|
i: !1,
|
|
126
126
|
c: null,
|
|
127
127
|
e: null,
|
|
@@ -135,35 +135,35 @@ function ei(t, e = !1, o) {
|
|
|
135
135
|
} : null
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
var e =
|
|
138
|
+
function ni(t) {
|
|
139
|
+
var e = W, o = e.e;
|
|
140
140
|
if (o !== null) {
|
|
141
141
|
e.e = null;
|
|
142
|
-
for (var n of o)
|
|
142
|
+
for (var n of o) Pi(n);
|
|
143
143
|
}
|
|
144
|
-
return t !== void 0 && (e.x = t), e.i = !0,
|
|
144
|
+
return t !== void 0 && (e.x = t), e.i = !0, W = e.p, t ?? {};
|
|
145
145
|
}
|
|
146
146
|
function Ne() {
|
|
147
|
-
return !mo ||
|
|
147
|
+
return !mo || W !== null && W.l === null;
|
|
148
148
|
}
|
|
149
149
|
var Ut = [];
|
|
150
|
-
function
|
|
150
|
+
function ii() {
|
|
151
151
|
var t = Ut;
|
|
152
|
-
Ut = [],
|
|
152
|
+
Ut = [], mr(t);
|
|
153
153
|
}
|
|
154
154
|
function ee(t) {
|
|
155
155
|
if (Ut.length === 0 && !Ee) {
|
|
156
156
|
var e = Ut;
|
|
157
157
|
queueMicrotask(() => {
|
|
158
|
-
e === Ut &&
|
|
158
|
+
e === Ut && ii();
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
Ut.push(t);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
for (; Ut.length > 0; )
|
|
163
|
+
function Wr() {
|
|
164
|
+
for (; Ut.length > 0; ) ii();
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ri(t) {
|
|
167
167
|
var e = S;
|
|
168
168
|
if (e === null) return x.f |= lo, t;
|
|
169
169
|
if (!(e.f & 32768) && !(e.f & 4)) throw t;
|
|
@@ -188,32 +188,32 @@ var jr = ~(wt | ie | et);
|
|
|
188
188
|
function N(t, e) {
|
|
189
189
|
t.f = t.f & jr | e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ko(t) {
|
|
192
192
|
t.f & 512 || t.deps === null ? N(t, et) : N(t, ie);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= Re,
|
|
194
|
+
function si(t) {
|
|
195
|
+
if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= Re, si(e.deps));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
t.f & 2048 ? e.add(t) : t.f & 4096 && o.add(t),
|
|
197
|
+
function li(t, e, o) {
|
|
198
|
+
t.f & 2048 ? e.add(t) : t.f & 4096 && o.add(t), si(t.deps), N(t, et);
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
var e =
|
|
200
|
+
var zr = !1, qe = !1;
|
|
201
|
+
function Hr(t) {
|
|
202
|
+
var e = qe;
|
|
203
203
|
try {
|
|
204
|
-
return
|
|
204
|
+
return qe = !1, [t(), qe];
|
|
205
205
|
} finally {
|
|
206
|
-
|
|
206
|
+
qe = e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function ai(t, e) {
|
|
210
210
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
212
|
+
function Jo(t, e) {
|
|
213
|
+
ai(t, e), e.add(t);
|
|
214
214
|
}
|
|
215
215
|
function k(t, e, o) {
|
|
216
|
-
|
|
216
|
+
ai(t, e), e.set(t, o);
|
|
217
217
|
}
|
|
218
218
|
function M(t, e, o) {
|
|
219
219
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : o;
|
|
@@ -225,9 +225,9 @@ function c(t, e) {
|
|
|
225
225
|
function T(t, e, o) {
|
|
226
226
|
return t.set(M(t, e), o), o;
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var ci, Et = /* @__PURE__ */ new Set(), P = null, F = null, Ro = null, Ee = !1, Io = !1, ge = null, co = null, ui = 0, Dr = 1, uo = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakSet(), re = class di {
|
|
229
229
|
constructor() {
|
|
230
|
-
|
|
230
|
+
Jo(this, mt), b(this, "id", Dr++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), k(this, uo, /* @__PURE__ */ new Set()), k(this, Be, /* @__PURE__ */ new Set()), k(this, ae, 0), k(this, ce, 0), k(this, Ze, null), k(this, at, []), k(this, Le, /* @__PURE__ */ new Set()), k(this, Zt, /* @__PURE__ */ new Set()), k(this, Gt, /* @__PURE__ */ new Map()), b(this, "is_fork", !1), k(this, Fe, !1);
|
|
231
231
|
}
|
|
232
232
|
skip_effect(e) {
|
|
233
233
|
c(Gt, this).has(e) || c(Gt, this).set(e, {
|
|
@@ -244,7 +244,7 @@ var ai, Et = /* @__PURE__ */ new Set(), P = null, F = null, Oo = null, Ee = !1,
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
capture(e, o) {
|
|
247
|
-
o !==
|
|
247
|
+
o !== j && !this.previous.has(e) && this.previous.set(e, o), e.f & 8388608 || (this.current.set(e, e.v), F?.set(e, e.v));
|
|
248
248
|
}
|
|
249
249
|
activate() {
|
|
250
250
|
P = this;
|
|
@@ -254,14 +254,14 @@ var ai, Et = /* @__PURE__ */ new Set(), P = null, F = null, Oo = null, Ee = !1,
|
|
|
254
254
|
}
|
|
255
255
|
flush() {
|
|
256
256
|
try {
|
|
257
|
-
Io = !0, P = this, M(mt, this,
|
|
257
|
+
Io = !0, P = this, M(mt, this, hi).call(this);
|
|
258
258
|
} finally {
|
|
259
|
-
|
|
259
|
+
ui = 0, Ro = null, ge = null, co = null, Io = !1, P = null, F = null, jt.clear();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
discard() {
|
|
263
|
-
for (const e of c(
|
|
264
|
-
c(
|
|
263
|
+
for (const e of c(Be, this)) e(this);
|
|
264
|
+
c(Be, this).clear(), Et.delete(this);
|
|
265
265
|
}
|
|
266
266
|
increment(e) {
|
|
267
267
|
T(ae, this, c(ae, this) + 1), e && T(ce, this, c(ce, this) + 1);
|
|
@@ -280,14 +280,14 @@ var ai, Et = /* @__PURE__ */ new Set(), P = null, F = null, Oo = null, Ee = !1,
|
|
|
280
280
|
c(uo, this).add(e);
|
|
281
281
|
}
|
|
282
282
|
ondiscard(e) {
|
|
283
|
-
c(
|
|
283
|
+
c(Be, this).add(e);
|
|
284
284
|
}
|
|
285
285
|
settled() {
|
|
286
|
-
return (c(Ze, this) ?? T(Ze, this,
|
|
286
|
+
return (c(Ze, this) ?? T(Ze, this, Zn())).promise;
|
|
287
287
|
}
|
|
288
288
|
static ensure() {
|
|
289
289
|
if (P === null) {
|
|
290
|
-
const e = P = new
|
|
290
|
+
const e = P = new di();
|
|
291
291
|
Io || (Et.add(P), Ee || ee(() => {
|
|
292
292
|
P === e && e.flush();
|
|
293
293
|
}));
|
|
@@ -303,14 +303,14 @@ var ai, Et = /* @__PURE__ */ new Set(), P = null, F = null, Oo = null, Ee = !1,
|
|
|
303
303
|
for (const e of Et) if (!(e === this || e.is_fork)) for (const [o, n] of e.previous) F.has(o) || F.set(o, n);
|
|
304
304
|
}
|
|
305
305
|
schedule(e) {
|
|
306
|
-
if (
|
|
306
|
+
if (Ro = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
307
307
|
e.b.defer_effect(e);
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
for (var o = e; o.parent !== null; ) {
|
|
311
311
|
o = o.parent;
|
|
312
312
|
var n = o.f;
|
|
313
|
-
if (ge !== null && o === S && (zt || (x === null || !(x.f & 2)) && !
|
|
313
|
+
if (ge !== null && o === S && (zt || (x === null || !(x.f & 2)) && !zr)) return;
|
|
314
314
|
if (n & 96) {
|
|
315
315
|
if (!(n & 1024)) return;
|
|
316
316
|
o.f ^= et;
|
|
@@ -319,12 +319,12 @@ var ai, Et = /* @__PURE__ */ new Set(), P = null, F = null, Oo = null, Ee = !1,
|
|
|
319
319
|
c(at, this).push(o);
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
|
|
323
|
-
function
|
|
322
|
+
ci = re;
|
|
323
|
+
function $n() {
|
|
324
324
|
return this.is_fork || c(ce, this) > 0;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
if (
|
|
326
|
+
function hi() {
|
|
327
|
+
if (ui++ > 1e3 && (Et.delete(this), Br()), !M(mt, this, $n).call(this)) {
|
|
328
328
|
for (const s of c(Le, this)) c(Zt, this).delete(s), N(s, wt), this.schedule(s);
|
|
329
329
|
for (const s of c(Zt, this)) N(s, ie), this.schedule(s);
|
|
330
330
|
}
|
|
@@ -332,30 +332,30 @@ function di() {
|
|
|
332
332
|
T(at, this, []), this.apply();
|
|
333
333
|
var e = ge = [], o = [], n = co = [];
|
|
334
334
|
for (const s of t) try {
|
|
335
|
-
M(mt, this,
|
|
335
|
+
M(mt, this, fi).call(this, s, e, o);
|
|
336
336
|
} catch (l) {
|
|
337
|
-
throw
|
|
337
|
+
throw mi(s), l;
|
|
338
338
|
}
|
|
339
339
|
if (P = null, n.length > 0) {
|
|
340
|
-
var i =
|
|
340
|
+
var i = ci.ensure();
|
|
341
341
|
for (const s of n) i.schedule(s);
|
|
342
342
|
}
|
|
343
|
-
if (ge = null, co = null, M(mt, this,
|
|
344
|
-
M(mt, this,
|
|
345
|
-
for (const [s, l] of c(Gt, this))
|
|
343
|
+
if (ge = null, co = null, M(mt, this, $n).call(this)) {
|
|
344
|
+
M(mt, this, kn).call(this, o), M(mt, this, kn).call(this, e);
|
|
345
|
+
for (const [s, l] of c(Gt, this)) gi(s, l);
|
|
346
346
|
} else {
|
|
347
347
|
c(ae, this) === 0 && Et.delete(this), c(Le, this).clear(), c(Zt, this).clear();
|
|
348
348
|
for (const s of c(uo, this)) s(this);
|
|
349
|
-
c(uo, this).clear(),
|
|
349
|
+
c(uo, this).clear(), Sn(o), Sn(e), c(Ze, this)?.resolve();
|
|
350
350
|
}
|
|
351
351
|
var r = P;
|
|
352
352
|
if (c(at, this).length > 0) {
|
|
353
353
|
const s = r ?? (r = this);
|
|
354
354
|
c(at, s).push(...c(at, this).filter((l) => !c(at, s).includes(l)));
|
|
355
355
|
}
|
|
356
|
-
r !== null && (Et.add(r), M(mt, r,
|
|
356
|
+
r !== null && (Et.add(r), M(mt, r, hi).call(r)), Et.has(this) || M(mt, this, qr).call(this);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function fi(t, e, o) {
|
|
359
359
|
t.f ^= et;
|
|
360
360
|
for (var n = t.first; n !== null; ) {
|
|
361
361
|
var i = n.f, r = (i & 96) !== 0;
|
|
@@ -377,10 +377,10 @@ function hi(t, e, o) {
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
for (var e = 0; e < t.length; e += 1)
|
|
380
|
+
function kn(t) {
|
|
381
|
+
for (var e = 0; e < t.length; e += 1) li(t[e], c(Le, this), c(Zt, this));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function qr() {
|
|
384
384
|
for (const l of Et) {
|
|
385
385
|
var t = l.id < this.id, e = [];
|
|
386
386
|
for (const [a, u] of this.current) {
|
|
@@ -393,10 +393,10 @@ function Hr() {
|
|
|
393
393
|
else if (e.length > 0) {
|
|
394
394
|
l.activate();
|
|
395
395
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
396
|
-
for (var r of e)
|
|
396
|
+
for (var r of e) pi(r, o, n, i);
|
|
397
397
|
if (c(at, l).length > 0) {
|
|
398
398
|
l.apply();
|
|
399
|
-
for (var s of c(at, l)) M(mt, l,
|
|
399
|
+
for (var s of c(at, l)) M(mt, l, fi).call(l, s, [], []);
|
|
400
400
|
T(at, l, []);
|
|
401
401
|
}
|
|
402
402
|
l.deactivate();
|
|
@@ -409,7 +409,7 @@ function Ye(t) {
|
|
|
409
409
|
try {
|
|
410
410
|
var o;
|
|
411
411
|
for (t && (P !== null && !P.is_fork && P.flush(), o = t()); ; ) {
|
|
412
|
-
if (
|
|
412
|
+
if (Wr(), P === null) return o;
|
|
413
413
|
P.flush();
|
|
414
414
|
}
|
|
415
415
|
} finally {
|
|
@@ -418,19 +418,19 @@ function Ye(t) {
|
|
|
418
418
|
}
|
|
419
419
|
function Br() {
|
|
420
420
|
try {
|
|
421
|
-
|
|
421
|
+
_r();
|
|
422
422
|
} catch (t) {
|
|
423
|
-
Vt(t,
|
|
423
|
+
Vt(t, Ro);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
var bt = null;
|
|
427
|
-
function
|
|
427
|
+
function Sn(t) {
|
|
428
428
|
var e = t.length;
|
|
429
429
|
if (e !== 0) {
|
|
430
430
|
for (var o = 0; o < e; ) {
|
|
431
431
|
var n = t[o++];
|
|
432
|
-
if (!(n.f & 24576) && Ve(n) && (bt = /* @__PURE__ */ new Set(), be(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
433
|
-
|
|
432
|
+
if (!(n.f & 24576) && Ve(n) && (bt = /* @__PURE__ */ new Set(), be(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Oi(n), bt?.size > 0)) {
|
|
433
|
+
jt.clear();
|
|
434
434
|
for (const i of bt) {
|
|
435
435
|
if (i.f & 24576) continue;
|
|
436
436
|
const r = [i];
|
|
@@ -447,69 +447,69 @@ function kn(t) {
|
|
|
447
447
|
bt = null;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function pi(t, e, o, n) {
|
|
451
451
|
if (!o.has(t) && (o.add(t), t.reactions !== null)) for (const i of t.reactions) {
|
|
452
452
|
const r = i.f;
|
|
453
|
-
r & 2 ?
|
|
453
|
+
r & 2 ? pi(i, e, o, n) : r & 4194320 && !(r & 2048) && vi(i, e, n) && (N(i, wt), Xo(i));
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function vi(t, e, o) {
|
|
457
457
|
const n = o.get(t);
|
|
458
458
|
if (n !== void 0) return n;
|
|
459
459
|
if (t.deps !== null) for (const i of t.deps) {
|
|
460
460
|
if (pe.call(e, i)) return !0;
|
|
461
|
-
if (i.f & 2 &&
|
|
461
|
+
if (i.f & 2 && vi(i, e, o)) return o.set(i, !0), !0;
|
|
462
462
|
}
|
|
463
463
|
return o.set(t, !1), !1;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Xo(t) {
|
|
466
466
|
P.schedule(t);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function gi(t, e) {
|
|
469
469
|
if (!(t.f & 32 && t.f & 1024)) {
|
|
470
470
|
t.f & 2048 ? e.d.push(t) : t.f & 4096 && e.m.push(t), N(t, et);
|
|
471
|
-
for (var o = t.first; o !== null; )
|
|
471
|
+
for (var o = t.first; o !== null; ) gi(o, e), o = o.next;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function mi(t) {
|
|
475
475
|
N(t, et);
|
|
476
|
-
for (var e = t.first; e !== null; )
|
|
476
|
+
for (var e = t.first; e !== null; ) mi(e), e = e.next;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Fr(t) {
|
|
479
479
|
let e = 0, o = oe(0), n;
|
|
480
480
|
return () => {
|
|
481
|
-
|
|
481
|
+
on() && (g(o), nn(() => (e === 0 && (n = cn(() => t(() => Pe(o)))), e += 1, () => {
|
|
482
482
|
ee(() => {
|
|
483
483
|
e -= 1, e === 0 && (n?.(), n = void 0, Pe(o));
|
|
484
484
|
});
|
|
485
485
|
})));
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
490
|
-
new
|
|
488
|
+
var Gr = Uo | ye;
|
|
489
|
+
function Ur(t, e, o, n) {
|
|
490
|
+
new Kr(t, e, o, n);
|
|
491
491
|
}
|
|
492
|
-
var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(),
|
|
492
|
+
var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), Kr = class {
|
|
493
493
|
constructor(t, e, o, n) {
|
|
494
|
-
|
|
495
|
-
T(
|
|
494
|
+
Jo(this, q), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ct, void 0), k(this, $o, L ? E : null), k(this, Nt, void 0), k(this, Me, void 0), k(this, Y, void 0), k(this, Wt, null), k(this, ut, null), k(this, At, null), k(this, Yt, null), k(this, ue, 0), k(this, Qt, 0), k(this, Ge, !1), k(this, No, /* @__PURE__ */ new Set()), k(this, Vo, /* @__PURE__ */ new Set()), k(this, Bt, null), k(this, xn, Fr(() => (T(Bt, this, oe(c(ue, this))), () => {
|
|
495
|
+
T(Bt, this, null);
|
|
496
496
|
}))), T(ct, this, t), T(Nt, this, e), T(Me, this, (i) => {
|
|
497
497
|
var r = S;
|
|
498
498
|
r.b = this, r.f |= 128, o(i);
|
|
499
|
-
}), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Y, this,
|
|
499
|
+
}), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Y, this, rn(() => {
|
|
500
500
|
if (L) {
|
|
501
501
|
const i = c($o, this);
|
|
502
502
|
go();
|
|
503
503
|
const r = i.data === "[!";
|
|
504
504
|
if (i.data.startsWith("[?")) {
|
|
505
505
|
const s = JSON.parse(i.data.slice(2));
|
|
506
|
-
M(
|
|
507
|
-
} else r ? M(
|
|
508
|
-
} else M(
|
|
509
|
-
},
|
|
506
|
+
M(q, this, Xr).call(this, s);
|
|
507
|
+
} else r ? M(q, this, Zr).call(this) : M(q, this, Jr).call(this);
|
|
508
|
+
} else M(q, this, An).call(this);
|
|
509
|
+
}, Gr)), L && T(ct, this, E);
|
|
510
510
|
}
|
|
511
511
|
defer_effect(t) {
|
|
512
|
-
|
|
512
|
+
li(t, c(No, this), c(Vo, this));
|
|
513
513
|
}
|
|
514
514
|
is_rendered() {
|
|
515
515
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -518,28 +518,28 @@ var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt =
|
|
|
518
518
|
return !!c(Nt, this).pending;
|
|
519
519
|
}
|
|
520
520
|
update_pending_count(t, e) {
|
|
521
|
-
M(
|
|
522
|
-
T(Ge, this, !1), c(
|
|
521
|
+
M(q, this, bi).call(this, t, e), T(ue, this, c(ue, this) + t), !(!c(Bt, this) || c(Ge, this)) && (T(Ge, this, !0), ee(() => {
|
|
522
|
+
T(Ge, this, !1), c(Bt, this) && me(c(Bt, this), c(ue, this));
|
|
523
523
|
}));
|
|
524
524
|
}
|
|
525
525
|
get_effect_pending() {
|
|
526
|
-
return c(
|
|
526
|
+
return c(xn, this).call(this), g(c(Bt, this));
|
|
527
527
|
}
|
|
528
528
|
error(t) {
|
|
529
529
|
var e = c(Nt, this).onerror;
|
|
530
530
|
let o = c(Nt, this).failed;
|
|
531
531
|
if (!e && !o) throw t;
|
|
532
|
-
c(
|
|
532
|
+
c(Wt, this) && (z(c(Wt, this)), T(Wt, this, null)), c(ut, this) && (z(c(ut, this)), T(ut, this, null)), c(At, this) && (z(c(At, this)), T(At, this, null)), L && (G(c($o, this)), Nr(), G(ao()));
|
|
533
533
|
var n = !1, i = !1;
|
|
534
534
|
const r = () => {
|
|
535
535
|
if (n) {
|
|
536
|
-
|
|
536
|
+
Rr();
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
|
-
n = !0, i &&
|
|
539
|
+
n = !0, i && Or(), c(At, this) !== null && se(c(At, this), () => {
|
|
540
540
|
T(At, this, null);
|
|
541
|
-
}), M(
|
|
542
|
-
M(
|
|
541
|
+
}), M(q, this, Wo).call(this, () => {
|
|
542
|
+
M(q, this, An).call(this);
|
|
543
543
|
});
|
|
544
544
|
}, s = (l) => {
|
|
545
545
|
try {
|
|
@@ -547,7 +547,7 @@ var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt =
|
|
|
547
547
|
} catch (a) {
|
|
548
548
|
Vt(a, c(Y, this) && c(Y, this).parent);
|
|
549
549
|
}
|
|
550
|
-
o && T(At, this, M(
|
|
550
|
+
o && T(At, this, M(q, this, Wo).call(this, () => {
|
|
551
551
|
try {
|
|
552
552
|
return ot(() => {
|
|
553
553
|
var a = S;
|
|
@@ -570,77 +570,77 @@ var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt =
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function Jr() {
|
|
574
574
|
try {
|
|
575
|
-
T(
|
|
575
|
+
T(Wt, this, ot(() => c(Me, this).call(this, c(ct, this))));
|
|
576
576
|
} catch (t) {
|
|
577
577
|
this.error(t);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Xr(t) {
|
|
581
581
|
const e = c(Nt, this).failed;
|
|
582
582
|
e && T(At, this, ot(() => {
|
|
583
583
|
e(c(ct, this), () => t, () => () => {
|
|
584
584
|
});
|
|
585
585
|
}));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Zr() {
|
|
588
588
|
const t = c(Nt, this).pending;
|
|
589
589
|
t && (this.is_pending = !0, T(ut, this, ot(() => t(c(ct, this)))), ee(() => {
|
|
590
590
|
var e = T(Yt, this, document.createDocumentFragment()), o = ht();
|
|
591
|
-
e.append(o), T(
|
|
591
|
+
e.append(o), T(Wt, this, M(q, this, Wo).call(this, () => ot(() => c(Me, this).call(this, o)))), c(Qt, this) === 0 && (c(ct, this).before(e), T(Yt, this, null), se(c(ut, this), () => {
|
|
592
592
|
T(ut, this, null);
|
|
593
|
-
}), M(
|
|
593
|
+
}), M(q, this, Zo).call(this, P));
|
|
594
594
|
}));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function An() {
|
|
597
597
|
try {
|
|
598
|
-
if (this.is_pending = this.has_pending_snippet(), T(Qt, this, 0), T(ue, this, 0), T(
|
|
598
|
+
if (this.is_pending = this.has_pending_snippet(), T(Qt, this, 0), T(ue, this, 0), T(Wt, this, ot(() => {
|
|
599
599
|
c(Me, this).call(this, c(ct, this));
|
|
600
600
|
})), c(Qt, this) > 0) {
|
|
601
601
|
var t = T(Yt, this, document.createDocumentFragment());
|
|
602
|
-
|
|
602
|
+
an(c(Wt, this), t);
|
|
603
603
|
const e = c(Nt, this).pending;
|
|
604
604
|
T(ut, this, ot(() => e(c(ct, this))));
|
|
605
|
-
} else M(
|
|
605
|
+
} else M(q, this, Zo).call(this, P);
|
|
606
606
|
} catch (e) {
|
|
607
607
|
this.error(e);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
this.is_pending = !1, t.transfer_effects(c(
|
|
610
|
+
function Zo(t) {
|
|
611
|
+
this.is_pending = !1, t.transfer_effects(c(No, this), c(Vo, this));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
614
|
-
var e = S, o = x, n =
|
|
613
|
+
function Wo(t) {
|
|
614
|
+
var e = S, o = x, n = W;
|
|
615
615
|
yt(c(Y, this)), nt(c(Y, this)), ve(c(Y, this).ctx);
|
|
616
616
|
try {
|
|
617
617
|
return re.ensure(), t();
|
|
618
618
|
} catch (i) {
|
|
619
|
-
return
|
|
619
|
+
return ri(i), null;
|
|
620
620
|
} finally {
|
|
621
621
|
yt(e), nt(o), ve(n);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function bi(t, e) {
|
|
625
625
|
if (!this.has_pending_snippet()) {
|
|
626
626
|
if (this.parent) {
|
|
627
627
|
var o;
|
|
628
|
-
M(
|
|
628
|
+
M(q, o = this.parent, bi).call(o, t, e);
|
|
629
629
|
}
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
|
-
T(Qt, this, c(Qt, this) + t), c(Qt, this) === 0 && (M(
|
|
632
|
+
T(Qt, this, c(Qt, this) + t), c(Qt, this) === 0 && (M(q, this, Zo).call(this, e), c(ut, this) && se(c(ut, this), () => {
|
|
633
633
|
T(ut, this, null);
|
|
634
634
|
}), c(Yt, this) && (c(ct, this).before(c(Yt, this)), T(Yt, this, null)));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
const i = Ne() ? bo :
|
|
636
|
+
function Yr(t, e, o, n) {
|
|
637
|
+
const i = Ne() ? bo : Yo;
|
|
638
638
|
var r = t.filter((h) => !h.settled);
|
|
639
639
|
if (o.length === 0 && r.length === 0) {
|
|
640
640
|
n(e.map(i));
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
|
-
var s = S, l =
|
|
643
|
+
var s = S, l = Qr(), a = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((h) => h.promise)) : null;
|
|
644
644
|
function u(h) {
|
|
645
645
|
l();
|
|
646
646
|
try {
|
|
@@ -654,16 +654,16 @@ function Zr(t, e, o, n) {
|
|
|
654
654
|
a.then(() => u(e.map(i)));
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
|
-
var d =
|
|
657
|
+
var d = yi();
|
|
658
658
|
function p() {
|
|
659
|
-
Promise.all(o.map((h) => /* @__PURE__ */
|
|
659
|
+
Promise.all(o.map((h) => /* @__PURE__ */ ts(h))).then((h) => u([...e.map(i), ...h])).catch((h) => Vt(h, s)).finally(() => d());
|
|
660
660
|
}
|
|
661
661
|
a ? a.then(() => {
|
|
662
662
|
l(), p(), ho();
|
|
663
663
|
}) : p();
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var t = S, e = x, o =
|
|
665
|
+
function Qr() {
|
|
666
|
+
var t = S, e = x, o = W, n = P;
|
|
667
667
|
return function(i = !0) {
|
|
668
668
|
yt(t), nt(e), ve(o), i && !(t.f & 16384) && (n?.activate(), n?.apply());
|
|
669
669
|
};
|
|
@@ -671,7 +671,7 @@ function Yr() {
|
|
|
671
671
|
function ho(t = !0) {
|
|
672
672
|
yt(null), nt(null), ve(null), t && P?.deactivate();
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function yi() {
|
|
675
675
|
var t = S.b, e = P, o = t.is_rendered();
|
|
676
676
|
return t.update_pending_count(1, e), e.increment(o), (n = !1) => {
|
|
677
677
|
t.update_pending_count(-1, e), e.decrement(o, n);
|
|
@@ -681,27 +681,27 @@ function bi() {
|
|
|
681
681
|
function bo(t) {
|
|
682
682
|
var e = 2 | wt, o = x !== null && x.f & 2 ? x : null;
|
|
683
683
|
return S !== null && (S.f |= ye), {
|
|
684
|
-
ctx:
|
|
684
|
+
ctx: W,
|
|
685
685
|
deps: null,
|
|
686
686
|
effects: null,
|
|
687
|
-
equals:
|
|
687
|
+
equals: ti,
|
|
688
688
|
f: e,
|
|
689
689
|
fn: t,
|
|
690
690
|
reactions: null,
|
|
691
691
|
rv: 0,
|
|
692
|
-
v:
|
|
692
|
+
v: j,
|
|
693
693
|
wv: 0,
|
|
694
694
|
parent: o ?? S,
|
|
695
695
|
ac: null
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
699
|
-
function
|
|
699
|
+
function ts(t, e, o) {
|
|
700
700
|
let n = S;
|
|
701
|
-
n === null &&
|
|
702
|
-
var i = void 0, r = oe(
|
|
703
|
-
return
|
|
704
|
-
var a = S, u =
|
|
701
|
+
n === null && $r();
|
|
702
|
+
var i = void 0, r = oe(j), s = !x, l = /* @__PURE__ */ new Map();
|
|
703
|
+
return us(() => {
|
|
704
|
+
var a = S, u = Zn();
|
|
705
705
|
i = u.promise;
|
|
706
706
|
try {
|
|
707
707
|
Promise.resolve(t()).then(u.resolve, u.reject).finally(ho);
|
|
@@ -710,7 +710,7 @@ function Qr(t, e, o) {
|
|
|
710
710
|
}
|
|
711
711
|
var d = P;
|
|
712
712
|
if (s) {
|
|
713
|
-
if (a.f & 32768) var p =
|
|
713
|
+
if (a.f & 32768) var p = yi();
|
|
714
714
|
if (n.b.is_rendered()) l.get(d)?.reject(_t), l.delete(d);
|
|
715
715
|
else {
|
|
716
716
|
for (const v of l.values()) v.reject(_t);
|
|
@@ -732,7 +732,7 @@ function Qr(t, e, o) {
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
u.promise.then(h, (v) => h(null, v || "unknown"));
|
|
735
|
-
}),
|
|
735
|
+
}), ls(() => {
|
|
736
736
|
for (const a of l.values()) a.reject(_t);
|
|
737
737
|
}), new Promise((a) => {
|
|
738
738
|
function u(d) {
|
|
@@ -747,58 +747,58 @@ function Qr(t, e, o) {
|
|
|
747
747
|
// @__NO_SIDE_EFFECTS__
|
|
748
748
|
function ko(t) {
|
|
749
749
|
const e = /* @__PURE__ */ bo(t);
|
|
750
|
-
return zt ||
|
|
750
|
+
return zt || Vi(e), e;
|
|
751
751
|
}
|
|
752
752
|
// @__NO_SIDE_EFFECTS__
|
|
753
|
-
function
|
|
753
|
+
function Yo(t) {
|
|
754
754
|
const e = /* @__PURE__ */ bo(t);
|
|
755
|
-
return e.equals =
|
|
755
|
+
return e.equals = ei, e;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function es(t) {
|
|
758
758
|
var e = t.effects;
|
|
759
759
|
if (e !== null) {
|
|
760
760
|
t.effects = null;
|
|
761
761
|
for (var o = 0; o < e.length; o += 1) z(e[o]);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function os(t) {
|
|
765
765
|
for (var e = t.parent; e !== null; ) {
|
|
766
766
|
if (!(e.f & 2)) return e.f & 16384 ? null : e;
|
|
767
767
|
e = e.parent;
|
|
768
768
|
}
|
|
769
769
|
return null;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Qo(t) {
|
|
772
772
|
var e, o = S;
|
|
773
|
-
yt(
|
|
773
|
+
yt(os(t));
|
|
774
774
|
try {
|
|
775
|
-
t.f &= ~Re,
|
|
775
|
+
t.f &= ~Re, es(t), e = Hi(t);
|
|
776
776
|
} finally {
|
|
777
777
|
yt(o);
|
|
778
778
|
}
|
|
779
779
|
return e;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
var e = t.v, o =
|
|
781
|
+
function wi(t) {
|
|
782
|
+
var e = t.v, o = Qo(t);
|
|
783
783
|
if (!t.equals(o) && (t.wv = ji(), (!P?.is_fork || t.deps === null) && (t.v = o, P?.capture(t, e), t.deps === null))) {
|
|
784
784
|
N(t, et);
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
|
-
|
|
787
|
+
Ht || (F !== null ? (on() || P?.is_fork) && F.set(t, o) : Ko(t));
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(_t), e.teardown =
|
|
789
|
+
function ns(t) {
|
|
790
|
+
if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(_t), e.teardown = gr, e.ac = null, Oe(e, 0), sn(e));
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Ti(t) {
|
|
793
793
|
if (t.effects !== null) for (const e of t.effects) e.teardown && be(e);
|
|
794
794
|
}
|
|
795
|
-
var jo = /* @__PURE__ */ new Set(),
|
|
795
|
+
var jo = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), Ii = !1;
|
|
796
796
|
function oe(t, e) {
|
|
797
797
|
return {
|
|
798
798
|
f: 0,
|
|
799
799
|
v: t,
|
|
800
800
|
reactions: null,
|
|
801
|
-
equals:
|
|
801
|
+
equals: ti,
|
|
802
802
|
rv: 0,
|
|
803
803
|
wv: 0
|
|
804
804
|
};
|
|
@@ -806,42 +806,42 @@ function oe(t, e) {
|
|
|
806
806
|
// @__NO_SIDE_EFFECTS__
|
|
807
807
|
function V(t, e) {
|
|
808
808
|
const o = oe(t, e);
|
|
809
|
-
return
|
|
809
|
+
return Vi(o), o;
|
|
810
810
|
}
|
|
811
811
|
// @__NO_SIDE_EFFECTS__
|
|
812
|
-
function
|
|
812
|
+
function $i(t, e = !1, o = !0) {
|
|
813
813
|
const n = oe(t);
|
|
814
|
-
if (e || (n.equals =
|
|
814
|
+
if (e || (n.equals = ei), mo && o && W !== null && W.l !== null) {
|
|
815
815
|
var i;
|
|
816
|
-
((i =
|
|
816
|
+
((i = W.l).s ?? (i.s = [])).push(n);
|
|
817
817
|
}
|
|
818
818
|
return n;
|
|
819
819
|
}
|
|
820
820
|
function _(t, e, o = !1) {
|
|
821
|
-
return x !== null && (!dt || x.f & 131072) && Ne() && x.f & 4325394 && (tt === null || !pe.call(tt, t)) &&
|
|
821
|
+
return x !== null && (!dt || x.f & 131072) && Ne() && x.f & 4325394 && (tt === null || !pe.call(tt, t)) && Mr(), me(t, o ? Kt(e) : e, co);
|
|
822
822
|
}
|
|
823
823
|
function me(t, e, o = null) {
|
|
824
824
|
if (!t.equals(e)) {
|
|
825
825
|
var n = t.v;
|
|
826
|
-
|
|
826
|
+
Ht ? jt.set(t, e) : jt.set(t, n), t.v = e;
|
|
827
827
|
var i = re.ensure();
|
|
828
828
|
if (i.capture(t, n), t.f & 2) {
|
|
829
829
|
const r = t;
|
|
830
|
-
t.f & 2048 &&
|
|
830
|
+
t.f & 2048 && Qo(r), F === null && Ko(r);
|
|
831
831
|
}
|
|
832
|
-
t.wv = ji(),
|
|
832
|
+
t.wv = ji(), ki(t, wt, o), Ne() && S !== null && S.f & 1024 && !(S.f & 96) && (Q === null ? ps([t]) : Q.push(t)), !i.is_fork && jo.size > 0 && !Ii && is();
|
|
833
833
|
}
|
|
834
834
|
return e;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
|
|
836
|
+
function is() {
|
|
837
|
+
Ii = !1;
|
|
838
838
|
for (const t of jo) t.f & 1024 && N(t, ie), Ve(t) && be(t);
|
|
839
839
|
jo.clear();
|
|
840
840
|
}
|
|
841
841
|
function Pe(t) {
|
|
842
842
|
_(t, t.v + 1);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function ki(t, e, o) {
|
|
845
845
|
var n = t.reactions;
|
|
846
846
|
if (n !== null) for (var i = Ne(), r = n.length, s = 0; s < r; s++) {
|
|
847
847
|
var l = n[s], a = l.f;
|
|
@@ -849,28 +849,28 @@ function $i(t, e, o) {
|
|
|
849
849
|
var u = (a & wt) === 0;
|
|
850
850
|
if (u && N(l, e), a & 2) {
|
|
851
851
|
var d = l;
|
|
852
|
-
F?.delete(d), a & 65536 || (a & 512 && (l.f |= Re),
|
|
852
|
+
F?.delete(d), a & 65536 || (a & 512 && (l.f |= Re), ki(d, ie, o));
|
|
853
853
|
} else if (u) {
|
|
854
854
|
var p = l;
|
|
855
|
-
a & 16 && bt !== null && bt.add(p), o !== null ? o.push(p) :
|
|
855
|
+
a & 16 && bt !== null && bt.add(p), o !== null ? o.push(p) : Xo(p);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
function Kt(t) {
|
|
861
861
|
if (typeof t != "object" || t === null || Ce in t) return t;
|
|
862
|
-
const e =
|
|
863
|
-
if (e !==
|
|
864
|
-
var o = /* @__PURE__ */ new Map(), n =
|
|
862
|
+
const e = Xn(t);
|
|
863
|
+
if (e !== pr && e !== vr) return t;
|
|
864
|
+
var o = /* @__PURE__ */ new Map(), n = Jn(t), i = /* @__PURE__ */ V(0), r = null, s = te, l = (a) => {
|
|
865
865
|
if (te === s) return a();
|
|
866
866
|
var u = x, d = te;
|
|
867
|
-
nt(null),
|
|
867
|
+
nt(null), Pn(s);
|
|
868
868
|
var p = a();
|
|
869
|
-
return nt(u),
|
|
869
|
+
return nt(u), Pn(d), p;
|
|
870
870
|
};
|
|
871
871
|
return n && o.set("length", /* @__PURE__ */ V(t.length, r)), new Proxy(t, {
|
|
872
872
|
defineProperty(a, u, d) {
|
|
873
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
873
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Pr();
|
|
874
874
|
var p = o.get(u);
|
|
875
875
|
return p === void 0 ? l(() => {
|
|
876
876
|
var h = /* @__PURE__ */ V(d.value, r);
|
|
@@ -881,18 +881,18 @@ function Kt(t) {
|
|
|
881
881
|
var d = o.get(u);
|
|
882
882
|
if (d === void 0) {
|
|
883
883
|
if (u in a) {
|
|
884
|
-
const p = l(() => /* @__PURE__ */ V(
|
|
884
|
+
const p = l(() => /* @__PURE__ */ V(j, r));
|
|
885
885
|
o.set(u, p), Pe(i);
|
|
886
886
|
}
|
|
887
|
-
} else _(d,
|
|
887
|
+
} else _(d, j), Pe(i);
|
|
888
888
|
return !0;
|
|
889
889
|
},
|
|
890
890
|
get(a, u, d) {
|
|
891
891
|
if (u === Ce) return t;
|
|
892
892
|
var p = o.get(u), h = u in a;
|
|
893
|
-
if (p === void 0 && (!h || Xt(a, u)?.writable) && (p = l(() => /* @__PURE__ */ V(Kt(h ? a[u] :
|
|
893
|
+
if (p === void 0 && (!h || Xt(a, u)?.writable) && (p = l(() => /* @__PURE__ */ V(Kt(h ? a[u] : j), r)), o.set(u, p)), p !== void 0) {
|
|
894
894
|
var v = g(p);
|
|
895
|
-
return v ===
|
|
895
|
+
return v === j ? void 0 : v;
|
|
896
896
|
}
|
|
897
897
|
return Reflect.get(a, u, d);
|
|
898
898
|
},
|
|
@@ -903,7 +903,7 @@ function Kt(t) {
|
|
|
903
903
|
p && (d.value = g(p));
|
|
904
904
|
} else if (d === void 0) {
|
|
905
905
|
var h = o.get(u), v = h?.v;
|
|
906
|
-
if (h !== void 0 && v !==
|
|
906
|
+
if (h !== void 0 && v !== j) return {
|
|
907
907
|
enumerable: !0,
|
|
908
908
|
configurable: !0,
|
|
909
909
|
value: v,
|
|
@@ -914,18 +914,18 @@ function Kt(t) {
|
|
|
914
914
|
},
|
|
915
915
|
has(a, u) {
|
|
916
916
|
if (u === Ce) return !0;
|
|
917
|
-
var d = o.get(u), p = d !== void 0 && d.v !==
|
|
918
|
-
return (d !== void 0 || S !== null && (!p || Xt(a, u)?.writable)) && (d === void 0 && (d = l(() => /* @__PURE__ */ V(p ? Kt(a[u]) :
|
|
917
|
+
var d = o.get(u), p = d !== void 0 && d.v !== j || Reflect.has(a, u);
|
|
918
|
+
return (d !== void 0 || S !== null && (!p || Xt(a, u)?.writable)) && (d === void 0 && (d = l(() => /* @__PURE__ */ V(p ? Kt(a[u]) : j, r)), o.set(u, d)), g(d) === j) ? !1 : p;
|
|
919
919
|
},
|
|
920
920
|
set(a, u, d, p) {
|
|
921
921
|
var h = o.get(u), v = u in a;
|
|
922
922
|
if (n && u === "length") for (var y = d; y < h.v; y += 1) {
|
|
923
923
|
var $ = o.get(y + "");
|
|
924
|
-
$ !== void 0 ? _($,
|
|
924
|
+
$ !== void 0 ? _($, j) : y in a && ($ = l(() => /* @__PURE__ */ V(j, r)), o.set(y + "", $));
|
|
925
925
|
}
|
|
926
926
|
if (h === void 0) (!v || Xt(a, u)?.writable) && (h = l(() => /* @__PURE__ */ V(void 0, r)), _(h, Kt(d)), o.set(u, h));
|
|
927
927
|
else {
|
|
928
|
-
v = h.v !==
|
|
928
|
+
v = h.v !== j;
|
|
929
929
|
var f = l(() => Kt(d));
|
|
930
930
|
_(h, f);
|
|
931
931
|
}
|
|
@@ -943,22 +943,22 @@ function Kt(t) {
|
|
|
943
943
|
g(i);
|
|
944
944
|
var u = Reflect.ownKeys(a).filter((h) => {
|
|
945
945
|
var v = o.get(h);
|
|
946
|
-
return v === void 0 || v.v !==
|
|
946
|
+
return v === void 0 || v.v !== j;
|
|
947
947
|
});
|
|
948
|
-
for (var [d, p] of o) p.v !==
|
|
948
|
+
for (var [d, p] of o) p.v !== j && !(d in a) && u.push(d);
|
|
949
949
|
return u;
|
|
950
950
|
},
|
|
951
951
|
setPrototypeOf() {
|
|
952
|
-
|
|
952
|
+
Lr();
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
var
|
|
957
|
-
function
|
|
958
|
-
if (
|
|
959
|
-
|
|
956
|
+
var _n, Si, xi, Ai;
|
|
957
|
+
function zo() {
|
|
958
|
+
if (_n === void 0) {
|
|
959
|
+
_n = window, Si = /Firefox/.test(navigator.userAgent);
|
|
960
960
|
var t = Element.prototype, e = Node.prototype, o = Text.prototype;
|
|
961
|
-
|
|
961
|
+
xi = Xt(e, "firstChild").get, Ai = Xt(e, "nextSibling").get, wn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), wn(o) && (o.__t = void 0);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
function ht(t = "") {
|
|
@@ -966,11 +966,11 @@ function ht(t = "") {
|
|
|
966
966
|
}
|
|
967
967
|
// @__NO_SIDE_EFFECTS__
|
|
968
968
|
function ne(t) {
|
|
969
|
-
return
|
|
969
|
+
return xi.call(t);
|
|
970
970
|
}
|
|
971
971
|
// @__NO_SIDE_EFFECTS__
|
|
972
972
|
function Tt(t) {
|
|
973
|
-
return
|
|
973
|
+
return Ai.call(t);
|
|
974
974
|
}
|
|
975
975
|
function Ue(t, e) {
|
|
976
976
|
if (!L) return /* @__PURE__ */ ne(t);
|
|
@@ -980,7 +980,7 @@ function Ue(t, e) {
|
|
|
980
980
|
var n = ht();
|
|
981
981
|
return o?.before(n), G(n), n;
|
|
982
982
|
}
|
|
983
|
-
return e &&
|
|
983
|
+
return e && en(o), G(o), o;
|
|
984
984
|
}
|
|
985
985
|
function So(t, e = !1) {
|
|
986
986
|
if (!L) {
|
|
@@ -992,7 +992,7 @@ function So(t, e = !1) {
|
|
|
992
992
|
var n = ht();
|
|
993
993
|
return E?.before(n), G(n), n;
|
|
994
994
|
}
|
|
995
|
-
|
|
995
|
+
en(E);
|
|
996
996
|
}
|
|
997
997
|
return E;
|
|
998
998
|
}
|
|
@@ -1005,26 +1005,26 @@ function Pt(t, e = 1, o = !1) {
|
|
|
1005
1005
|
var r = ht();
|
|
1006
1006
|
return n === null ? i?.after(r) : n.before(r), G(r), r;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
en(n);
|
|
1009
1009
|
}
|
|
1010
1010
|
return G(n), n;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function _i(t) {
|
|
1013
1013
|
t.textContent = "";
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return !zt || bt !== null ? !1 : (S.f &
|
|
1015
|
+
function Ci() {
|
|
1016
|
+
return !zt || bt !== null ? !1 : (S.f & Go) !== 0;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function tn(t, e, o) {
|
|
1019
1019
|
let n = o ? { is: o } : void 0;
|
|
1020
1020
|
return document.createElementNS(e ?? "http://www.w3.org/1999/xhtml", t, n);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function en(t) {
|
|
1023
1023
|
if (t.nodeValue.length < 65536) return;
|
|
1024
1024
|
let e = t.nextSibling;
|
|
1025
1025
|
for (; e !== null && e.nodeType === 3; ) e.remove(), t.nodeValue += e.nodeValue, e = t.nextSibling;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Ei(t) {
|
|
1028
1028
|
var e = x, o = S;
|
|
1029
1029
|
nt(null), yt(null);
|
|
1030
1030
|
try {
|
|
@@ -1033,18 +1033,18 @@ function Ci(t) {
|
|
|
1033
1033
|
nt(e), yt(o);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
S === null && (x === null &&
|
|
1036
|
+
function rs(t) {
|
|
1037
|
+
S === null && (x === null && Ar(t), xr()), Ht && Sr(t);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function ss(t, e) {
|
|
1040
1040
|
var o = e.last;
|
|
1041
1041
|
o === null ? e.last = e.first = t : (o.next = t, t.prev = o, e.last = t);
|
|
1042
1042
|
}
|
|
1043
1043
|
function It(t, e) {
|
|
1044
1044
|
var o = S;
|
|
1045
|
-
o !== null && o.f & 8192 && (t |=
|
|
1045
|
+
o !== null && o.f & 8192 && (t |= Fo);
|
|
1046
1046
|
var n = {
|
|
1047
|
-
ctx:
|
|
1047
|
+
ctx: W,
|
|
1048
1048
|
deps: null,
|
|
1049
1049
|
nodes: null,
|
|
1050
1050
|
f: t | wt | 512,
|
|
@@ -1066,40 +1066,40 @@ function It(t, e) {
|
|
|
1066
1066
|
} catch (s) {
|
|
1067
1067
|
throw z(n), s;
|
|
1068
1068
|
}
|
|
1069
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, t & 16 && t & 65536 && i !== null && (i.f |=
|
|
1069
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, t & 16 && t & 65536 && i !== null && (i.f |= Uo));
|
|
1070
1070
|
}
|
|
1071
|
-
if (i !== null && (i.parent = o, o !== null &&
|
|
1071
|
+
if (i !== null && (i.parent = o, o !== null && ss(i, o), x !== null && x.f & 2 && !(t & 64))) {
|
|
1072
1072
|
var r = x;
|
|
1073
1073
|
(r.effects ?? (r.effects = [])).push(i);
|
|
1074
1074
|
}
|
|
1075
1075
|
return n;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function on() {
|
|
1078
1078
|
return x !== null && !dt;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function ls(t) {
|
|
1081
1081
|
const e = It(8, null);
|
|
1082
1082
|
return N(e, et), e.teardown = t, e;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1084
|
+
function Cn(t) {
|
|
1085
|
+
rs("$effect");
|
|
1086
1086
|
var e = S.f;
|
|
1087
1087
|
if (!x && e & 32 && !(e & 32768)) {
|
|
1088
|
-
var o =
|
|
1088
|
+
var o = W;
|
|
1089
1089
|
(o.e ?? (o.e = [])).push(t);
|
|
1090
|
-
} else return
|
|
1090
|
+
} else return Pi(t);
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return It(4 |
|
|
1092
|
+
function Pi(t) {
|
|
1093
|
+
return It(4 | yr, t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function as(t) {
|
|
1096
1096
|
re.ensure();
|
|
1097
1097
|
const e = It(64 | ye, t);
|
|
1098
1098
|
return () => {
|
|
1099
1099
|
z(e);
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function cs(t) {
|
|
1103
1103
|
re.ensure();
|
|
1104
1104
|
const e = It(64 | ye, t);
|
|
1105
1105
|
return (o = {}) => new Promise((n) => {
|
|
@@ -1108,50 +1108,50 @@ function as(t) {
|
|
|
1108
1108
|
}) : (z(e), n(void 0));
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Li(t) {
|
|
1112
1112
|
return It(4, t);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return It(
|
|
1114
|
+
function us(t) {
|
|
1115
|
+
return It(wr | ye, t);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function nn(t, e = 0) {
|
|
1118
1118
|
return It(8 | e, t);
|
|
1119
1119
|
}
|
|
1120
1120
|
function Ke(t, e = [], o = [], n = []) {
|
|
1121
|
-
|
|
1121
|
+
Yr(n, e, o, (i) => {
|
|
1122
1122
|
It(8, () => t(...i.map(g)));
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function rn(t, e = 0) {
|
|
1126
1126
|
return It(16 | e, t);
|
|
1127
1127
|
}
|
|
1128
1128
|
function ot(t) {
|
|
1129
1129
|
return It(32 | ye, t);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Mi(t) {
|
|
1132
1132
|
var e = t.teardown;
|
|
1133
1133
|
if (e !== null) {
|
|
1134
|
-
const o =
|
|
1135
|
-
|
|
1134
|
+
const o = Ht, n = x;
|
|
1135
|
+
En(!0), nt(null);
|
|
1136
1136
|
try {
|
|
1137
1137
|
e.call(null);
|
|
1138
1138
|
} finally {
|
|
1139
|
-
|
|
1139
|
+
En(o), nt(n);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function sn(t, e = !1) {
|
|
1144
1144
|
var o = t.first;
|
|
1145
1145
|
for (t.first = t.last = null; o !== null; ) {
|
|
1146
1146
|
const i = o.ac;
|
|
1147
|
-
i !== null &&
|
|
1147
|
+
i !== null && Ei(() => {
|
|
1148
1148
|
i.abort(_t);
|
|
1149
1149
|
});
|
|
1150
1150
|
var n = o.next;
|
|
1151
1151
|
o.f & 64 ? o.parent = null : z(o, e), o = n;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function ds(t) {
|
|
1155
1155
|
for (var e = t.first; e !== null; ) {
|
|
1156
1156
|
var o = e.next;
|
|
1157
1157
|
e.f & 32 || z(e), e = o;
|
|
@@ -1159,26 +1159,26 @@ function us(t) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
function z(t, e = !0) {
|
|
1161
1161
|
var o = !1;
|
|
1162
|
-
(e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (
|
|
1162
|
+
(e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (hs(t.nodes.start, t.nodes.end), o = !0), N(t, Tn), sn(t, e && !o), Oe(t, 0);
|
|
1163
1163
|
var n = t.nodes && t.nodes.t;
|
|
1164
1164
|
if (n !== null) for (const r of n) r.stop();
|
|
1165
|
-
|
|
1165
|
+
Mi(t), t.f ^= Tn, t.f |= br;
|
|
1166
1166
|
var i = t.parent;
|
|
1167
|
-
i !== null && i.first !== null &&
|
|
1167
|
+
i !== null && i.first !== null && Oi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function hs(t, e) {
|
|
1170
1170
|
for (; t !== null; ) {
|
|
1171
1171
|
var o = t === e ? null : /* @__PURE__ */ Tt(t);
|
|
1172
1172
|
t.remove(), t = o;
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Oi(t) {
|
|
1176
1176
|
var e = t.parent, o = t.prev, n = t.next;
|
|
1177
1177
|
o !== null && (o.next = n), n !== null && (n.prev = o), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = o));
|
|
1178
1178
|
}
|
|
1179
1179
|
function se(t, e, o = !0) {
|
|
1180
1180
|
var n = [];
|
|
1181
|
-
|
|
1181
|
+
Ri(t, n, !0);
|
|
1182
1182
|
var i = () => {
|
|
1183
1183
|
o && z(t), e && e();
|
|
1184
1184
|
}, r = n.length;
|
|
@@ -1187,40 +1187,40 @@ function se(t, e, o = !0) {
|
|
|
1187
1187
|
for (var l of n) l.out(s);
|
|
1188
1188
|
} else i();
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function Ri(t, e, o) {
|
|
1191
1191
|
if (!(t.f & 8192)) {
|
|
1192
|
-
t.f ^=
|
|
1192
|
+
t.f ^= Fo;
|
|
1193
1193
|
var n = t.nodes && t.nodes.t;
|
|
1194
1194
|
if (n !== null) for (const l of n) (l.is_global || o) && e.push(l);
|
|
1195
1195
|
for (var i = t.first; i !== null; ) {
|
|
1196
1196
|
var r = i.next, s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (t.f & 16) !== 0;
|
|
1197
|
-
|
|
1197
|
+
Ri(i, e, s ? o : !1), i = r;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1201
|
+
function ln(t) {
|
|
1202
|
+
Ni(t, !0);
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Ni(t, e) {
|
|
1205
1205
|
if (t.f & 8192) {
|
|
1206
|
-
t.f ^=
|
|
1206
|
+
t.f ^= Fo, t.f & 1024 || (N(t, wt), re.ensure().schedule(t));
|
|
1207
1207
|
for (var o = t.first; o !== null; ) {
|
|
1208
1208
|
var n = o.next, i = (o.f & 65536) !== 0 || (o.f & 32) !== 0;
|
|
1209
|
-
|
|
1209
|
+
Ni(o, i ? e : !1), o = n;
|
|
1210
1210
|
}
|
|
1211
1211
|
var r = t.nodes && t.nodes.t;
|
|
1212
1212
|
if (r !== null) for (const s of r) (s.is_global || e) && s.in();
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function an(t, e) {
|
|
1216
1216
|
if (t.nodes) for (var o = t.nodes.start, n = t.nodes.end; o !== null; ) {
|
|
1217
1217
|
var i = o === n ? null : /* @__PURE__ */ Tt(o);
|
|
1218
1218
|
e.append(o), o = i;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
function
|
|
1223
|
-
|
|
1221
|
+
var fs = null, Qe = !1, Ht = !1;
|
|
1222
|
+
function En(t) {
|
|
1223
|
+
Ht = t;
|
|
1224
1224
|
}
|
|
1225
1225
|
var x = null, dt = !1;
|
|
1226
1226
|
function nt(t) {
|
|
@@ -1231,19 +1231,19 @@ function yt(t) {
|
|
|
1231
1231
|
S = t;
|
|
1232
1232
|
}
|
|
1233
1233
|
var tt = null;
|
|
1234
|
-
function
|
|
1234
|
+
function Vi(t) {
|
|
1235
1235
|
x !== null && (!zt || x.f & 2) && (tt === null ? tt = [t] : tt.push(t));
|
|
1236
1236
|
}
|
|
1237
|
-
var
|
|
1238
|
-
function
|
|
1237
|
+
var B = null, X = 0, Q = null;
|
|
1238
|
+
function ps(t) {
|
|
1239
1239
|
Q = t;
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1241
|
+
var Wi = 1, Jt = 0, te = Jt;
|
|
1242
|
+
function Pn(t) {
|
|
1243
1243
|
te = t;
|
|
1244
1244
|
}
|
|
1245
1245
|
function ji() {
|
|
1246
|
-
return ++
|
|
1246
|
+
return ++Wi;
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ve(t) {
|
|
1249
1249
|
var e = t.f;
|
|
@@ -1251,39 +1251,39 @@ function Ve(t) {
|
|
|
1251
1251
|
if (e & 2 && (t.f &= ~Re), e & 4096) {
|
|
1252
1252
|
for (var o = t.deps, n = o.length, i = 0; i < n; i++) {
|
|
1253
1253
|
var r = o[i];
|
|
1254
|
-
if (Ve(r) &&
|
|
1254
|
+
if (Ve(r) && wi(r), r.wv > t.wv) return !0;
|
|
1255
1255
|
}
|
|
1256
1256
|
e & 512 && F === null && N(t, et);
|
|
1257
1257
|
}
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function zi(t, e, o = !0) {
|
|
1261
1261
|
var n = t.reactions;
|
|
1262
1262
|
if (n !== null && !(!zt && tt !== null && pe.call(tt, t))) for (var i = 0; i < n.length; i++) {
|
|
1263
1263
|
var r = n[i];
|
|
1264
|
-
r.f & 2 ?
|
|
1264
|
+
r.f & 2 ? zi(r, e, !1) : e === r && (o ? N(r, wt) : r.f & 1024 && N(r, ie), Xo(r));
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
var e =
|
|
1269
|
-
|
|
1267
|
+
function Hi(t) {
|
|
1268
|
+
var e = B, o = X, n = Q, i = x, r = tt, s = W, l = dt, a = te, u = t.f;
|
|
1269
|
+
B = null, X = 0, Q = null, x = u & 96 ? null : t, tt = null, ve(t.ctx), dt = !1, te = ++Jt, t.ac !== null && (Ei(() => {
|
|
1270
1270
|
t.ac.abort(_t);
|
|
1271
1271
|
}), t.ac = null);
|
|
1272
1272
|
try {
|
|
1273
|
-
t.f |=
|
|
1273
|
+
t.f |= In;
|
|
1274
1274
|
var d = t.fn, p = d();
|
|
1275
|
-
t.f |=
|
|
1275
|
+
t.f |= Go;
|
|
1276
1276
|
var h = t.deps, v = P?.is_fork;
|
|
1277
|
-
if (
|
|
1277
|
+
if (B !== null) {
|
|
1278
1278
|
var y;
|
|
1279
|
-
if (v || Oe(t, X), h !== null && X > 0) for (h.length = X +
|
|
1280
|
-
else t.deps = h =
|
|
1281
|
-
if (
|
|
1279
|
+
if (v || Oe(t, X), h !== null && X > 0) for (h.length = X + B.length, y = 0; y < B.length; y++) h[X + y] = B[y];
|
|
1280
|
+
else t.deps = h = B;
|
|
1281
|
+
if (on() && t.f & 512) for (y = X; y < h.length; y++) {
|
|
1282
1282
|
var $;
|
|
1283
1283
|
(($ = h[y]).reactions ?? ($.reactions = [])).push(t);
|
|
1284
1284
|
}
|
|
1285
1285
|
} else !v && h !== null && X < h.length && (Oe(t, X), h.length = X);
|
|
1286
|
-
if (Ne() && Q !== null && !dt && h !== null && !(t.f & 6146)) for (y = 0; y < Q.length; y++)
|
|
1286
|
+
if (Ne() && Q !== null && !dt && h !== null && !(t.f & 6146)) for (y = 0; y < Q.length; y++) zi(Q[y], t);
|
|
1287
1287
|
if (i !== null && i !== t) {
|
|
1288
1288
|
if (Jt++, i.deps !== null) for (let f = 0; f < o; f += 1) i.deps[f].rv = Jt;
|
|
1289
1289
|
if (e !== null) for (const f of e) f.rv = Jt;
|
|
@@ -1291,28 +1291,28 @@ function zi(t) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
return t.f & 8388608 && (t.f ^= lo), p;
|
|
1293
1293
|
} catch (f) {
|
|
1294
|
-
return
|
|
1294
|
+
return ri(f);
|
|
1295
1295
|
} finally {
|
|
1296
|
-
t.f ^=
|
|
1296
|
+
t.f ^= In, B = e, X = o, Q = n, x = i, tt = r, ve(s), dt = l, te = a;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function vs(t, e) {
|
|
1300
1300
|
let o = e.reactions;
|
|
1301
1301
|
if (o !== null) {
|
|
1302
|
-
var n =
|
|
1302
|
+
var n = hr.call(o, t);
|
|
1303
1303
|
if (n !== -1) {
|
|
1304
1304
|
var i = o.length - 1;
|
|
1305
1305
|
i === 0 ? o = e.reactions = null : (o[n] = o[i], o.pop());
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
if (o === null && e.f & 2 && (
|
|
1308
|
+
if (o === null && e.f & 2 && (B === null || !pe.call(B, e))) {
|
|
1309
1309
|
var r = e;
|
|
1310
|
-
r.f & 512 && (r.f ^= 512, r.f &= ~Re),
|
|
1310
|
+
r.f & 512 && (r.f ^= 512, r.f &= ~Re), Ko(r), ns(r), Oe(r, 0);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
function Oe(t, e) {
|
|
1314
1314
|
var o = t.deps;
|
|
1315
|
-
if (o !== null) for (var n = e; n < o.length; n++)
|
|
1315
|
+
if (o !== null) for (var n = e; n < o.length; n++) vs(t, o[n]);
|
|
1316
1316
|
}
|
|
1317
1317
|
function be(t) {
|
|
1318
1318
|
var e = t.f;
|
|
@@ -1321,9 +1321,9 @@ function be(t) {
|
|
|
1321
1321
|
var o = S, n = Qe;
|
|
1322
1322
|
S = t, Qe = !0;
|
|
1323
1323
|
try {
|
|
1324
|
-
e & 16777232 ?
|
|
1325
|
-
var i =
|
|
1326
|
-
t.teardown = typeof i == "function" ? i : null, t.wv =
|
|
1324
|
+
e & 16777232 ? ds(t) : sn(t), Mi(t);
|
|
1325
|
+
var i = Hi(t);
|
|
1326
|
+
t.teardown = typeof i == "function" ? i : null, t.wv = Wi;
|
|
1327
1327
|
} finally {
|
|
1328
1328
|
Qe = n, S = o;
|
|
1329
1329
|
}
|
|
@@ -1331,9 +1331,9 @@ function be(t) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
function g(t) {
|
|
1333
1333
|
var e = (t.f & 2) !== 0;
|
|
1334
|
-
if (
|
|
1334
|
+
if (fs?.add(t), x !== null && !dt && !(S !== null && S.f & 16384) && (tt === null || !pe.call(tt, t))) {
|
|
1335
1335
|
var o = x.deps;
|
|
1336
|
-
if (x.f & 2097152) t.rv < Jt && (t.rv = Jt,
|
|
1336
|
+
if (x.f & 2097152) t.rv < Jt && (t.rv = Jt, B === null && o !== null && o[X] === t ? X++ : B === null ? B = [t] : B.push(t));
|
|
1337
1337
|
else {
|
|
1338
1338
|
var n;
|
|
1339
1339
|
((n = x).deps ?? (n.deps = [])).push(t);
|
|
@@ -1341,30 +1341,30 @@ function g(t) {
|
|
|
1341
1341
|
i === null ? t.reactions = [x] : pe.call(i, x) || i.push(x);
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
if (
|
|
1344
|
+
if (Ht && jt.has(t)) return jt.get(t);
|
|
1345
1345
|
if (e) {
|
|
1346
1346
|
var r = t;
|
|
1347
|
-
if (
|
|
1347
|
+
if (Ht) {
|
|
1348
1348
|
var s = r.v;
|
|
1349
|
-
return (!(r.f & 1024) && r.reactions !== null ||
|
|
1349
|
+
return (!(r.f & 1024) && r.reactions !== null || qi(r)) && (s = Qo(r)), jt.set(r, s), s;
|
|
1350
1350
|
}
|
|
1351
|
-
var l = (r.f & 512) === 0 && !dt && x !== null && (Qe || (x.f & 512) !== 0), a = (r.f &
|
|
1352
|
-
Ve(r) && (l && (r.f |= 512),
|
|
1351
|
+
var l = (r.f & 512) === 0 && !dt && x !== null && (Qe || (x.f & 512) !== 0), a = (r.f & Go) === 0;
|
|
1352
|
+
Ve(r) && (l && (r.f |= 512), wi(r)), l && !a && (Ti(r), Di(r));
|
|
1353
1353
|
}
|
|
1354
1354
|
if (F?.has(t)) return F.get(t);
|
|
1355
1355
|
if (t.f & 8388608) throw t.v;
|
|
1356
1356
|
return t.v;
|
|
1357
1357
|
}
|
|
1358
1358
|
function Di(t) {
|
|
1359
|
-
if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (
|
|
1359
|
+
if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (Ti(e), Di(e));
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (t.v ===
|
|
1361
|
+
function qi(t) {
|
|
1362
|
+
if (t.v === j) return !0;
|
|
1363
1363
|
if (t.deps === null) return !1;
|
|
1364
|
-
for (const e of t.deps) if (
|
|
1364
|
+
for (const e of t.deps) if (jt.has(e) || e.f & 2 && qi(e)) return !0;
|
|
1365
1365
|
return !1;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function cn(t) {
|
|
1368
1368
|
var e = dt;
|
|
1369
1369
|
try {
|
|
1370
1370
|
return dt = !0, t();
|
|
@@ -1372,19 +1372,19 @@ function an(t) {
|
|
|
1372
1372
|
dt = e;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
var he = Symbol("events"), Bi = /* @__PURE__ */ new Set(),
|
|
1375
|
+
var he = Symbol("events"), Bi = /* @__PURE__ */ new Set(), Ho = /* @__PURE__ */ new Set();
|
|
1376
1376
|
function Ie(t, e, o) {
|
|
1377
1377
|
(e[he] ?? (e[he] = {}))[t] = o;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function gs(t) {
|
|
1380
1380
|
for (var e = 0; e < t.length; e++) Bi.add(t[e]);
|
|
1381
|
-
for (var o of
|
|
1381
|
+
for (var o of Ho) o(t);
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1383
|
+
var Ln = null;
|
|
1384
|
+
function Mn(t) {
|
|
1385
1385
|
var e = this, o = e.ownerDocument, n = t.type, i = t.composedPath?.() || [], r = i[0] || t.target;
|
|
1386
|
-
|
|
1387
|
-
var s = 0, l =
|
|
1386
|
+
Ln = t;
|
|
1387
|
+
var s = 0, l = Ln === t && t[he];
|
|
1388
1388
|
if (l) {
|
|
1389
1389
|
var a = i.indexOf(l);
|
|
1390
1390
|
if (a !== -1 && (e === document || e === window)) {
|
|
@@ -1427,13 +1427,13 @@ function Ln(t) {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
var
|
|
1431
|
-
function ms(t) {
|
|
1432
|
-
return gs?.createHTML(t) ?? t;
|
|
1433
|
-
}
|
|
1430
|
+
var ms = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
|
|
1434
1431
|
function bs(t) {
|
|
1435
|
-
|
|
1436
|
-
|
|
1432
|
+
return ms?.createHTML(t) ?? t;
|
|
1433
|
+
}
|
|
1434
|
+
function ys(t) {
|
|
1435
|
+
var e = tn("template");
|
|
1436
|
+
return e.innerHTML = bs(t.replaceAll("<!>", "<!---->")), e.content;
|
|
1437
1437
|
}
|
|
1438
1438
|
function to(t, e) {
|
|
1439
1439
|
var o = S;
|
|
@@ -1449,8 +1449,8 @@ function le(t, e) {
|
|
|
1449
1449
|
var o = (e & 1) !== 0, n = (e & 2) !== 0, i, r = !t.startsWith("<!>");
|
|
1450
1450
|
return () => {
|
|
1451
1451
|
if (L) return to(E, null), E;
|
|
1452
|
-
i === void 0 && (i =
|
|
1453
|
-
var s = n ||
|
|
1452
|
+
i === void 0 && (i = ys(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ ne(i)));
|
|
1453
|
+
var s = n || Si ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1454
1454
|
if (o) {
|
|
1455
1455
|
var l = /* @__PURE__ */ ne(s), a = s.lastChild;
|
|
1456
1456
|
to(l, a);
|
|
@@ -1466,25 +1466,25 @@ function Ot(t, e) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
t !== null && t.before(e);
|
|
1468
1468
|
}
|
|
1469
|
-
var
|
|
1470
|
-
function
|
|
1471
|
-
return
|
|
1469
|
+
var ws = ["touchstart", "touchmove"];
|
|
1470
|
+
function Ts(t) {
|
|
1471
|
+
return ws.includes(t);
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function On(t, e) {
|
|
1474
1474
|
var o = e == null ? "" : typeof e == "object" ? `${e}` : e;
|
|
1475
1475
|
o !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = o, t.nodeValue = `${o}`);
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return
|
|
1477
|
+
function Fi(t, e) {
|
|
1478
|
+
return Gi(t, e);
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
|
|
1480
|
+
function Is(t, e) {
|
|
1481
|
+
zo(), e.intro = e.intro ?? !1;
|
|
1482
1482
|
const o = e.target, n = L, i = E;
|
|
1483
1483
|
try {
|
|
1484
1484
|
for (var r = /* @__PURE__ */ ne(o); r && (r.nodeType !== 8 || r.data !== "["); ) r = /* @__PURE__ */ Tt(r);
|
|
1485
1485
|
if (!r) throw fe;
|
|
1486
1486
|
Ct(!0), G(r);
|
|
1487
|
-
const s =
|
|
1487
|
+
const s = Gi(t, {
|
|
1488
1488
|
...e,
|
|
1489
1489
|
anchor: r
|
|
1490
1490
|
});
|
|
@@ -1492,59 +1492,59 @@ function Ts(t, e) {
|
|
|
1492
1492
|
} catch (s) {
|
|
1493
1493
|
if (s instanceof Error && s.message.split(`
|
|
1494
1494
|
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1495
|
-
return s !== fe && console.warn("Failed to hydrate: ", s), e.recover === !1 &&
|
|
1495
|
+
return s !== fe && console.warn("Failed to hydrate: ", s), e.recover === !1 && Cr(), zo(), _i(o), Ct(!1), Fi(t, e);
|
|
1496
1496
|
} finally {
|
|
1497
1497
|
Ct(n), G(i);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
var Je = /* @__PURE__ */ new Map();
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1503
|
-
var a = void 0, u =
|
|
1501
|
+
function Gi(t, { target: e, anchor: o, props: n = {}, events: i, context: r, intro: s = !0, transformError: l }) {
|
|
1502
|
+
zo();
|
|
1503
|
+
var a = void 0, u = cs(() => {
|
|
1504
1504
|
var d = o ?? e.appendChild(ht());
|
|
1505
|
-
|
|
1505
|
+
Ur(d, { pending: () => {
|
|
1506
1506
|
} }, (v) => {
|
|
1507
|
-
|
|
1508
|
-
var y =
|
|
1507
|
+
oi({});
|
|
1508
|
+
var y = W;
|
|
1509
1509
|
if (r && (y.c = r), i && (n.$$events = i), L && to(v, null), a = t(v, n) || {}, L && (S.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]")) throw vo(), fe;
|
|
1510
|
-
|
|
1510
|
+
ni();
|
|
1511
1511
|
}, l);
|
|
1512
1512
|
var p = /* @__PURE__ */ new Set(), h = (v) => {
|
|
1513
1513
|
for (var y = 0; y < v.length; y++) {
|
|
1514
1514
|
var $ = v[y];
|
|
1515
1515
|
if (!p.has($)) {
|
|
1516
1516
|
p.add($);
|
|
1517
|
-
var f =
|
|
1517
|
+
var f = Ts($);
|
|
1518
1518
|
for (const A of [e, document]) {
|
|
1519
1519
|
var w = Je.get(A);
|
|
1520
1520
|
w === void 0 && (w = /* @__PURE__ */ new Map(), Je.set(A, w));
|
|
1521
1521
|
var R = w.get($);
|
|
1522
|
-
R === void 0 ? (A.addEventListener($,
|
|
1522
|
+
R === void 0 ? (A.addEventListener($, Mn, { passive: f }), w.set($, 1)) : w.set($, R + 1);
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
};
|
|
1527
|
-
return h(po(Bi)),
|
|
1527
|
+
return h(po(Bi)), Ho.add(h), () => {
|
|
1528
1528
|
for (var v of p) for (const f of [e, document]) {
|
|
1529
1529
|
var y = Je.get(f), $ = y.get(v);
|
|
1530
|
-
--$ == 0 ? (f.removeEventListener(v,
|
|
1530
|
+
--$ == 0 ? (f.removeEventListener(v, Mn), y.delete(v), y.size === 0 && Je.delete(f)) : y.set(v, $);
|
|
1531
1531
|
}
|
|
1532
|
-
|
|
1532
|
+
Ho.delete(h), d !== o && d.parentNode?.removeChild(d);
|
|
1533
1533
|
};
|
|
1534
1534
|
});
|
|
1535
1535
|
return Do.set(a, u), a;
|
|
1536
1536
|
}
|
|
1537
1537
|
var Do = /* @__PURE__ */ new WeakMap();
|
|
1538
|
-
function
|
|
1538
|
+
function $s(t, e) {
|
|
1539
1539
|
const o = Do.get(t);
|
|
1540
1540
|
return o ? (Do.delete(t), o(e)) : Promise.resolve();
|
|
1541
1541
|
}
|
|
1542
|
-
var kt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(),
|
|
1542
|
+
var kt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), ks = class {
|
|
1543
1543
|
constructor(t, e = !0) {
|
|
1544
1544
|
b(this, "anchor", void 0), k(this, kt, /* @__PURE__ */ new Map()), k(this, Lt, /* @__PURE__ */ new Map()), k(this, lt, /* @__PURE__ */ new Map()), k(this, $e, /* @__PURE__ */ new Set()), k(this, xo, !0), k(this, Ao, (o) => {
|
|
1545
1545
|
if (c(kt, this).has(o)) {
|
|
1546
1546
|
var n = c(kt, this).get(o), i = c(Lt, this).get(n);
|
|
1547
|
-
if (i)
|
|
1547
|
+
if (i) ln(i), c($e, this).delete(n);
|
|
1548
1548
|
else {
|
|
1549
1549
|
var r = c(lt, this).get(n);
|
|
1550
1550
|
r && (c(Lt, this).set(n, r.effect), c(lt, this).delete(n), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), i = r.effect);
|
|
@@ -1559,7 +1559,7 @@ var kt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt =
|
|
|
1559
1559
|
const a = () => {
|
|
1560
1560
|
if (Array.from(c(kt, this).values()).includes(s)) {
|
|
1561
1561
|
var u = document.createDocumentFragment();
|
|
1562
|
-
|
|
1562
|
+
an(l, u), u.append(ht()), c(lt, this).set(s, {
|
|
1563
1563
|
effect: l,
|
|
1564
1564
|
fragment: u
|
|
1565
1565
|
});
|
|
@@ -1569,14 +1569,14 @@ var kt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt =
|
|
|
1569
1569
|
c(xo, this) || !i ? (c($e, this).add(s), se(l, a, !1)) : a();
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
}), k(this,
|
|
1572
|
+
}), k(this, Rn, (o) => {
|
|
1573
1573
|
c(kt, this).delete(o);
|
|
1574
1574
|
const n = Array.from(c(kt, this).values());
|
|
1575
1575
|
for (const [i, r] of c(lt, this)) n.includes(i) || (z(r.effect), c(lt, this).delete(i));
|
|
1576
1576
|
}), this.anchor = t, T(xo, this, e);
|
|
1577
1577
|
}
|
|
1578
1578
|
ensure(t, e) {
|
|
1579
|
-
var o = P, n =
|
|
1579
|
+
var o = P, n = Ci();
|
|
1580
1580
|
if (e && !c(Lt, this).has(t) && !c(lt, this).has(t)) if (n) {
|
|
1581
1581
|
var i = document.createDocumentFragment(), r = ht();
|
|
1582
1582
|
i.append(r), c(lt, this).set(t, {
|
|
@@ -1587,17 +1587,17 @@ var kt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt =
|
|
|
1587
1587
|
if (c(kt, this).set(o, t), n) {
|
|
1588
1588
|
for (const [s, l] of c(Lt, this)) s === t ? o.unskip_effect(l) : o.skip_effect(l);
|
|
1589
1589
|
for (const [s, l] of c(lt, this)) s === t ? o.unskip_effect(l.effect) : o.skip_effect(l.effect);
|
|
1590
|
-
o.oncommit(c(Ao, this)), o.ondiscard(c(
|
|
1590
|
+
o.oncommit(c(Ao, this)), o.ondiscard(c(Rn, this));
|
|
1591
1591
|
} else L && (this.anchor = E), c(Ao, this).call(this, o);
|
|
1592
1592
|
}
|
|
1593
1593
|
};
|
|
1594
1594
|
function ke(t, e, o = !1) {
|
|
1595
1595
|
var n;
|
|
1596
1596
|
L && (n = E, go());
|
|
1597
|
-
var i = new
|
|
1597
|
+
var i = new ks(t), r = o ? Uo : 0;
|
|
1598
1598
|
function s(l, a) {
|
|
1599
1599
|
if (L) {
|
|
1600
|
-
var u =
|
|
1600
|
+
var u = Qn(n);
|
|
1601
1601
|
if (l !== parseInt(u.substring(1))) {
|
|
1602
1602
|
var d = ao();
|
|
1603
1603
|
G(d), i.anchor = d, Ct(!1), i.ensure(l, a), Ct(!0);
|
|
@@ -1606,24 +1606,24 @@ function ke(t, e, o = !1) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
i.ensure(l, a);
|
|
1608
1608
|
}
|
|
1609
|
-
|
|
1609
|
+
rn(() => {
|
|
1610
1610
|
var l = !1;
|
|
1611
1611
|
e((a, u = 0) => {
|
|
1612
1612
|
l = !0, s(u, a);
|
|
1613
1613
|
}), l || s(-1, null);
|
|
1614
1614
|
}, r);
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function Ss(t, e) {
|
|
1617
1617
|
return e;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function xs(t, e, o) {
|
|
1620
1620
|
for (var n = [], i = e.length, r, s = e.length, l = 0; l < i; l++) {
|
|
1621
1621
|
let p = e[l];
|
|
1622
1622
|
se(p, () => {
|
|
1623
1623
|
if (r) {
|
|
1624
1624
|
if (r.pending.delete(p), r.done.add(p), r.pending.size === 0) {
|
|
1625
1625
|
var h = t.outrogroups;
|
|
1626
|
-
|
|
1626
|
+
qo(t, po(r.done)), h.delete(r), h.size === 0 && (t.outrogroups = null);
|
|
1627
1627
|
}
|
|
1628
1628
|
} else s -= 1;
|
|
1629
1629
|
}, !1);
|
|
@@ -1632,15 +1632,15 @@ function Ss(t, e, o) {
|
|
|
1632
1632
|
var a = n.length === 0 && o !== null;
|
|
1633
1633
|
if (a) {
|
|
1634
1634
|
var u = o, d = u.parentNode;
|
|
1635
|
-
|
|
1635
|
+
_i(d), d.append(u), t.items.clear();
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
qo(t, e, !a);
|
|
1638
1638
|
} else r = {
|
|
1639
1639
|
pending: new Set(e),
|
|
1640
1640
|
done: /* @__PURE__ */ new Set()
|
|
1641
1641
|
}, (t.outrogroups ?? (t.outrogroups = /* @__PURE__ */ new Set())).add(r);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function qo(t, e, o = !0) {
|
|
1644
1644
|
var n;
|
|
1645
1645
|
if (t.pending.size > 0) {
|
|
1646
1646
|
n = /* @__PURE__ */ new Set();
|
|
@@ -1648,23 +1648,23 @@ function Ho(t, e, o = !0) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
for (var i = 0; i < e.length; i++) {
|
|
1650
1650
|
var r = e[i];
|
|
1651
|
-
n?.has(r) ? (r.f |= _e,
|
|
1651
|
+
n?.has(r) ? (r.f |= _e, an(r, document.createDocumentFragment())) : z(e[i], o);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
var Xe;
|
|
1655
|
-
function
|
|
1655
|
+
function As(t, e, o, n, i, r = null) {
|
|
1656
1656
|
var s = t, l = /* @__PURE__ */ new Map();
|
|
1657
1657
|
if (e & 4) {
|
|
1658
1658
|
var a = t;
|
|
1659
1659
|
s = L ? G(/* @__PURE__ */ ne(a)) : a.appendChild(ht());
|
|
1660
1660
|
}
|
|
1661
1661
|
L && go();
|
|
1662
|
-
var u = null, d = /* @__PURE__ */
|
|
1662
|
+
var u = null, d = /* @__PURE__ */ Yo(() => {
|
|
1663
1663
|
var w = o();
|
|
1664
|
-
return
|
|
1664
|
+
return Jn(w) ? w : w == null ? [] : po(w);
|
|
1665
1665
|
}), p, h = /* @__PURE__ */ new Map(), v = !0;
|
|
1666
1666
|
function y(w) {
|
|
1667
|
-
f.effect.f & 16384 || (f.pending.delete(w), f.fallback = u,
|
|
1667
|
+
f.effect.f & 16384 || (f.pending.delete(w), f.fallback = u, _s(f, p, s, e, n), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= _e, Ae(u, null, s)) : ln(u) : se(u, () => {
|
|
1668
1668
|
u = null;
|
|
1669
1669
|
})));
|
|
1670
1670
|
}
|
|
@@ -1672,18 +1672,18 @@ function xs(t, e, o, n, i, r = null) {
|
|
|
1672
1672
|
f.pending.delete(w);
|
|
1673
1673
|
}
|
|
1674
1674
|
var f = {
|
|
1675
|
-
effect:
|
|
1675
|
+
effect: rn(() => {
|
|
1676
1676
|
p = g(d);
|
|
1677
1677
|
var w = p.length;
|
|
1678
1678
|
let R = !1;
|
|
1679
|
-
L &&
|
|
1680
|
-
for (var A = /* @__PURE__ */ new Set(), O = P, U =
|
|
1679
|
+
L && Qn(s) === "[!" != (w === 0) && (s = ao(), G(s), Ct(!1), R = !0);
|
|
1680
|
+
for (var A = /* @__PURE__ */ new Set(), O = P, U = Ci(), H = 0; H < w; H += 1) {
|
|
1681
1681
|
L && E.nodeType === 8 && E.data === "]" && (s = E, R = !0, Ct(!1));
|
|
1682
|
-
var
|
|
1683
|
-
K ? (K.v && me(K.v,
|
|
1682
|
+
var D = p[H], ft = n(D, H), K = v ? null : l.get(ft);
|
|
1683
|
+
K ? (K.v && me(K.v, D), K.i && me(K.i, H), U && O.unskip_effect(K.e)) : (K = Cs(l, v ? s : Xe ?? (Xe = ht()), D, ft, H, i, e, o), v || (K.e.f |= _e), l.set(ft, K)), A.add(ft);
|
|
1684
1684
|
}
|
|
1685
|
-
if (w === 0 && r && !u && (v ? u = ot(() => r(s)) : (u = ot(() => r(Xe ?? (Xe = ht()))), u.f |= _e)), w > A.size &&
|
|
1686
|
-
for (const [pt,
|
|
1685
|
+
if (w === 0 && r && !u && (v ? u = ot(() => r(s)) : (u = ot(() => r(Xe ?? (Xe = ht()))), u.f |= _e)), w > A.size && kr("", "", ""), L && w > 0 && G(ao()), !v) if (h.set(O, A), U) {
|
|
1686
|
+
for (const [pt, We] of l) A.has(pt) || O.skip_effect(We.e);
|
|
1687
1687
|
O.oncommit(y), O.ondiscard($);
|
|
1688
1688
|
} else y(O);
|
|
1689
1689
|
R && Ct(!0), g(d);
|
|
@@ -1700,12 +1700,12 @@ function Se(t) {
|
|
|
1700
1700
|
for (; t !== null && !(t.f & 32); ) t = t.next;
|
|
1701
1701
|
return t;
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function _s(t, e, o, n, i) {
|
|
1704
1704
|
var r = (n & 8) !== 0, s = e.length, l = t.items, a = Se(t.effect.first), u, d = null, p, h = [], v = [], y, $, f, w;
|
|
1705
1705
|
if (r) for (w = 0; w < s; w += 1) y = e[w], $ = i(y, w), f = l.get($).e, f.f & 33554432 || (f.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(f));
|
|
1706
1706
|
for (w = 0; w < s; w += 1) {
|
|
1707
1707
|
if (y = e[w], $ = i(y, w), f = l.get($).e, t.outrogroups !== null) for (const pt of t.outrogroups) pt.pending.delete(f), pt.done.delete(f);
|
|
1708
|
-
if (f.f & 8192 && (
|
|
1708
|
+
if (f.f & 8192 && (ln(f), r && (f.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(f))), f.f & 33554432) if (f.f ^= _e, f === a) Ae(f, null, o);
|
|
1709
1709
|
else {
|
|
1710
1710
|
var R = d ? d.next : a;
|
|
1711
1711
|
f === t.effect.last && (t.effect.last = f.prev), f.prev && (f.prev.next = f.next), f.next && (f.next.prev = f.prev), Mt(t, d, f), Mt(t, f, R), Ae(f, R, o), d = f, h = [], v = [], a = Se(d.next);
|
|
@@ -1716,10 +1716,10 @@ function As(t, e, o, n, i) {
|
|
|
1716
1716
|
if (h.length < v.length) {
|
|
1717
1717
|
var A = v[0], O;
|
|
1718
1718
|
d = A.prev;
|
|
1719
|
-
var U = h[0],
|
|
1719
|
+
var U = h[0], H = h[h.length - 1];
|
|
1720
1720
|
for (O = 0; O < h.length; O += 1) Ae(h[O], A, o);
|
|
1721
1721
|
for (O = 0; O < v.length; O += 1) u.delete(v[O]);
|
|
1722
|
-
Mt(t, U.prev,
|
|
1722
|
+
Mt(t, U.prev, H.next), Mt(t, d, U), Mt(t, H, A), a = A, d = H, w -= 1, h = [], v = [];
|
|
1723
1723
|
} else u.delete(f), Ae(f, a, o), Mt(t, f.prev, f.next), Mt(t, f, d === null ? t.effect.first : d.next), Mt(t, d, f), d = f;
|
|
1724
1724
|
continue;
|
|
1725
1725
|
}
|
|
@@ -1729,29 +1729,29 @@ function As(t, e, o, n, i) {
|
|
|
1729
1729
|
f.f & 33554432 || h.push(f), d = f, a = Se(f.next);
|
|
1730
1730
|
}
|
|
1731
1731
|
if (t.outrogroups !== null) {
|
|
1732
|
-
for (const pt of t.outrogroups) pt.pending.size === 0 && (
|
|
1732
|
+
for (const pt of t.outrogroups) pt.pending.size === 0 && (qo(t, po(pt.done)), t.outrogroups?.delete(pt));
|
|
1733
1733
|
t.outrogroups.size === 0 && (t.outrogroups = null);
|
|
1734
1734
|
}
|
|
1735
1735
|
if (a !== null || u !== void 0) {
|
|
1736
|
-
var
|
|
1737
|
-
if (u !== void 0) for (f of u) f.f & 8192 ||
|
|
1738
|
-
for (; a !== null; ) !(a.f & 8192) && a !== t.fallback &&
|
|
1739
|
-
var ft =
|
|
1736
|
+
var D = [];
|
|
1737
|
+
if (u !== void 0) for (f of u) f.f & 8192 || D.push(f);
|
|
1738
|
+
for (; a !== null; ) !(a.f & 8192) && a !== t.fallback && D.push(a), a = Se(a.next);
|
|
1739
|
+
var ft = D.length;
|
|
1740
1740
|
if (ft > 0) {
|
|
1741
1741
|
var K = n & 4 && s === 0 ? o : null;
|
|
1742
1742
|
if (r) {
|
|
1743
|
-
for (w = 0; w < ft; w += 1)
|
|
1744
|
-
for (w = 0; w < ft; w += 1)
|
|
1743
|
+
for (w = 0; w < ft; w += 1) D[w].nodes?.a?.measure();
|
|
1744
|
+
for (w = 0; w < ft; w += 1) D[w].nodes?.a?.fix();
|
|
1745
1745
|
}
|
|
1746
|
-
|
|
1746
|
+
xs(t, D, K);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
r && ee(() => {
|
|
1750
1750
|
if (p !== void 0) for (f of p) f.nodes?.a?.apply();
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1754
|
-
var a = s & 1 ? s & 16 ? oe(o) : /* @__PURE__ */
|
|
1753
|
+
function Cs(t, e, o, n, i, r, s, l) {
|
|
1754
|
+
var a = s & 1 ? s & 16 ? oe(o) : /* @__PURE__ */ $i(o, !1, !1) : null, u = s & 2 ? oe(i) : null;
|
|
1755
1755
|
return {
|
|
1756
1756
|
v: a,
|
|
1757
1757
|
i: u,
|
|
@@ -1770,16 +1770,16 @@ function Ae(t, e, o) {
|
|
|
1770
1770
|
function Mt(t, e, o) {
|
|
1771
1771
|
e === null ? t.effect.first = o : e.next = o, o === null ? t.effect.last = e : o.prev = e;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
|
|
1773
|
+
function Es(t, e) {
|
|
1774
|
+
Li(() => {
|
|
1775
1775
|
var o = t.getRootNode(), n = o.host ? o : o.head ?? o.ownerDocument.head;
|
|
1776
1776
|
if (!n.querySelector("#" + e.hash)) {
|
|
1777
|
-
const i =
|
|
1777
|
+
const i = tn("style");
|
|
1778
1778
|
i.id = e.hash, i.textContent = e.code, n.appendChild(i);
|
|
1779
1779
|
}
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Nn(t, e = !1) {
|
|
1783
1783
|
var o = e ? " !important;" : ";", n = "";
|
|
1784
1784
|
for (var i of Object.keys(t)) {
|
|
1785
1785
|
var r = t[i];
|
|
@@ -1790,7 +1790,7 @@ function Rn(t, e = !1) {
|
|
|
1790
1790
|
function _o(t) {
|
|
1791
1791
|
return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function Ps(t, e) {
|
|
1794
1794
|
if (e) {
|
|
1795
1795
|
var o = "", n, i;
|
|
1796
1796
|
if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
|
|
@@ -1817,7 +1817,7 @@ function Es(t, e) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
|
-
return n && (o +=
|
|
1820
|
+
return n && (o += Nn(n)), i && (o += Nn(i, !0)), o = o.trim(), o === "" ? null : o;
|
|
1821
1821
|
}
|
|
1822
1822
|
return t == null ? null : String(t);
|
|
1823
1823
|
}
|
|
@@ -1827,75 +1827,75 @@ function Co(t, e = {}, o, n) {
|
|
|
1827
1827
|
e[i] !== r && (o[i] == null ? t.style.removeProperty(i) : t.style.setProperty(i, r, n));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Vn(t, e, o, n) {
|
|
1831
1831
|
var i = t.__style;
|
|
1832
1832
|
if (L || i !== e) {
|
|
1833
|
-
var r =
|
|
1833
|
+
var r = Ps(e, n);
|
|
1834
1834
|
(!L || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
|
|
1835
1835
|
} else n && (Array.isArray(n) ? (Co(t, o?.[0], n[0]), Co(t, o?.[1], n[1], "important")) : Co(t, o, n));
|
|
1836
1836
|
return n;
|
|
1837
1837
|
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1840
|
-
var i =
|
|
1841
|
-
L && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName ===
|
|
1838
|
+
var Ls = Symbol("is custom element"), Ms = Symbol("is html"), Os = Ir ? "link" : "LINK";
|
|
1839
|
+
function Wn(t, e, o, n) {
|
|
1840
|
+
var i = Rs(t);
|
|
1841
|
+
L && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Os) || i[e] !== (i[e] = o) && (e === "loading" && (t[Tr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && Ns(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Rs(t) {
|
|
1844
1844
|
return t.__attributes ?? (t.__attributes = {
|
|
1845
|
-
[
|
|
1846
|
-
[
|
|
1845
|
+
[Ls]: t.nodeName.includes("-"),
|
|
1846
|
+
[Ms]: t.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
var jn = /* @__PURE__ */ new Map();
|
|
1850
|
-
function
|
|
1850
|
+
function Ns(t) {
|
|
1851
1851
|
var e = t.getAttribute("is") || t.nodeName, o = jn.get(e);
|
|
1852
1852
|
if (o) return o;
|
|
1853
1853
|
jn.set(e, o = []);
|
|
1854
1854
|
for (var n, i = t, r = Element.prototype; r !== i; ) {
|
|
1855
|
-
n =
|
|
1855
|
+
n = fr(i);
|
|
1856
1856
|
for (var s in n) n[s].set && o.push(s);
|
|
1857
|
-
i =
|
|
1857
|
+
i = Xn(i);
|
|
1858
1858
|
}
|
|
1859
1859
|
return o;
|
|
1860
1860
|
}
|
|
1861
|
-
var
|
|
1861
|
+
var Ui, de = /* @__PURE__ */ new WeakMap(), fo = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakSet(), Ki = class {
|
|
1862
1862
|
constructor(t) {
|
|
1863
|
-
|
|
1863
|
+
Jo(this, zn), k(this, de, /* @__PURE__ */ new WeakMap()), k(this, fo, void 0), k(this, Eo, void 0), T(Eo, this, t);
|
|
1864
1864
|
}
|
|
1865
1865
|
observe(t, e) {
|
|
1866
1866
|
var o = c(de, this).get(t) || /* @__PURE__ */ new Set();
|
|
1867
|
-
return o.add(e), c(de, this).set(t, o), M(
|
|
1867
|
+
return o.add(e), c(de, this).set(t, o), M(zn, this, Vs).call(this).observe(t, c(Eo, this)), () => {
|
|
1868
1868
|
var n = c(de, this).get(t);
|
|
1869
1869
|
n.delete(e), n.size === 0 && (c(de, this).delete(t), c(fo, this).unobserve(t));
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
|
-
|
|
1874
|
-
function
|
|
1873
|
+
Ui = Ki;
|
|
1874
|
+
function Vs() {
|
|
1875
1875
|
return c(fo, this) ?? T(fo, this, new ResizeObserver((t) => {
|
|
1876
1876
|
for (var e of t) {
|
|
1877
|
-
|
|
1877
|
+
Ui.entries.set(e.target, e);
|
|
1878
1878
|
for (var o of c(de, this).get(e.target) || []) o(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
}));
|
|
1881
1881
|
}
|
|
1882
|
-
b(
|
|
1883
|
-
function
|
|
1882
|
+
b(Ki, "entries", /* @__PURE__ */ new WeakMap());
|
|
1883
|
+
function Hn(t, e) {
|
|
1884
1884
|
return t === e || t?.[Ce] === e;
|
|
1885
1885
|
}
|
|
1886
1886
|
function Dn(t = {}, e, o, n) {
|
|
1887
|
-
var i =
|
|
1888
|
-
return
|
|
1887
|
+
var i = W.r, r = S;
|
|
1888
|
+
return Li(() => {
|
|
1889
1889
|
var s, l;
|
|
1890
|
-
return
|
|
1891
|
-
s = l, l = n?.() || [],
|
|
1892
|
-
t !== o(...l) && (e(t, ...l), s &&
|
|
1890
|
+
return nn(() => {
|
|
1891
|
+
s = l, l = n?.() || [], cn(() => {
|
|
1892
|
+
t !== o(...l) && (e(t, ...l), s && Hn(o(...s), t) && e(null, ...s));
|
|
1893
1893
|
});
|
|
1894
1894
|
}), () => {
|
|
1895
1895
|
let a = r;
|
|
1896
1896
|
for (; a !== i && a.parent !== null && a.parent.f & 33554432; ) a = a.parent;
|
|
1897
1897
|
const u = () => {
|
|
1898
|
-
l &&
|
|
1898
|
+
l && Hn(o(...l), t) && e(null, ...l);
|
|
1899
1899
|
}, d = a.teardown;
|
|
1900
1900
|
a.teardown = () => {
|
|
1901
1901
|
u(), d?.();
|
|
@@ -1904,14 +1904,14 @@ function Dn(t = {}, e, o, n) {
|
|
|
1904
1904
|
}), t;
|
|
1905
1905
|
}
|
|
1906
1906
|
function Po(t, e, o, n) {
|
|
1907
|
-
var i = !mo || (o & 2) !== 0, r = (o & 8) !== 0, s = (o & 16) !== 0, l = n, a = !0, u = () => (a && (a = !1, l = s ?
|
|
1907
|
+
var i = !mo || (o & 2) !== 0, r = (o & 8) !== 0, s = (o & 16) !== 0, l = n, a = !0, u = () => (a && (a = !1, l = s ? cn(n) : n), l);
|
|
1908
1908
|
let d;
|
|
1909
1909
|
if (r) {
|
|
1910
|
-
var p = Ce in t ||
|
|
1910
|
+
var p = Ce in t || Yn in t;
|
|
1911
1911
|
d = Xt(t, e)?.set ?? (p && e in t ? (A) => t[e] = A : void 0);
|
|
1912
1912
|
}
|
|
1913
1913
|
var h, v = !1;
|
|
1914
|
-
r ? [h, v] =
|
|
1914
|
+
r ? [h, v] = Hr(() => t[e]) : h = t[e], h === void 0 && n !== void 0 && (h = u(), d && (i && Er(e), d(h)));
|
|
1915
1915
|
var y;
|
|
1916
1916
|
if (i ? y = () => {
|
|
1917
1917
|
var A = t[e];
|
|
@@ -1926,7 +1926,7 @@ function Po(t, e, o, n) {
|
|
|
1926
1926
|
return arguments.length > 0 ? ((!i || !O || $ || v) && d(O ? y() : A), A) : y();
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
|
-
var f = !1, w = (o & 1 ? bo :
|
|
1929
|
+
var f = !1, w = (o & 1 ? bo : Yo)(() => (f = !1, y()));
|
|
1930
1930
|
r && g(w);
|
|
1931
1931
|
var R = S;
|
|
1932
1932
|
return function(A, O) {
|
|
@@ -1934,17 +1934,17 @@ function Po(t, e, o, n) {
|
|
|
1934
1934
|
const U = O ? g(w) : i && r ? Kt(A) : A;
|
|
1935
1935
|
return _(w, U), f = !0, l !== void 0 && (l = U), A;
|
|
1936
1936
|
}
|
|
1937
|
-
return
|
|
1937
|
+
return Ht && f || R.f & 16384 ? w.v : g(w);
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function Ws(t) {
|
|
1941
1941
|
return new js(t);
|
|
1942
1942
|
}
|
|
1943
1943
|
var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js = class {
|
|
1944
1944
|
constructor(t) {
|
|
1945
1945
|
k(this, Ft, void 0), k(this, vt, void 0);
|
|
1946
1946
|
var e = /* @__PURE__ */ new Map(), o = (i, r) => {
|
|
1947
|
-
var s = /* @__PURE__ */
|
|
1947
|
+
var s = /* @__PURE__ */ $i(r, !1, !1);
|
|
1948
1948
|
return e.set(i, s), s;
|
|
1949
1949
|
};
|
|
1950
1950
|
const n = new Proxy({
|
|
@@ -1955,13 +1955,13 @@ var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js =
|
|
|
1955
1955
|
return g(e.get(r) ?? o(r, Reflect.get(i, r)));
|
|
1956
1956
|
},
|
|
1957
1957
|
has(i, r) {
|
|
1958
|
-
return r ===
|
|
1958
|
+
return r === Yn ? !0 : (g(e.get(r) ?? o(r, Reflect.get(i, r))), Reflect.has(i, r));
|
|
1959
1959
|
},
|
|
1960
1960
|
set(i, r, s) {
|
|
1961
1961
|
return _(e.get(r) ?? o(r, s), s), Reflect.set(i, r, s);
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
|
-
T(vt, this, (t.hydrate ?
|
|
1964
|
+
T(vt, this, (t.hydrate ? Is : Fi)(t.component, {
|
|
1965
1965
|
target: t.target,
|
|
1966
1966
|
anchor: t.anchor,
|
|
1967
1967
|
props: n,
|
|
@@ -1982,7 +1982,7 @@ var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js =
|
|
|
1982
1982
|
c(vt, this).$set = (i) => {
|
|
1983
1983
|
Object.assign(n, i);
|
|
1984
1984
|
}, c(vt, this).$destroy = () => {
|
|
1985
|
-
|
|
1985
|
+
$s(c(vt, this));
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
1988
|
$set(t) {
|
|
@@ -1998,8 +1998,8 @@ var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js =
|
|
|
1998
1998
|
$destroy() {
|
|
1999
1999
|
c(vt, this).$destroy();
|
|
2000
2000
|
}
|
|
2001
|
-
},
|
|
2002
|
-
typeof HTMLElement == "function" && (
|
|
2001
|
+
}, Ji;
|
|
2002
|
+
typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
|
|
2003
2003
|
constructor(t, e, o) {
|
|
2004
2004
|
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 = t, this.$$s = e, o && (this.$$shadowRoot = this.attachShadow(o));
|
|
2005
2005
|
}
|
|
@@ -2020,19 +2020,19 @@ typeof HTMLElement == "function" && (Ki = class extends HTMLElement {
|
|
|
2020
2020
|
if (this.$$cn = !0, !this.$$c) {
|
|
2021
2021
|
let t = function(n) {
|
|
2022
2022
|
return (i) => {
|
|
2023
|
-
const r =
|
|
2023
|
+
const r = tn("slot");
|
|
2024
2024
|
n !== "default" && (r.name = n), Ot(i, r);
|
|
2025
2025
|
};
|
|
2026
2026
|
};
|
|
2027
2027
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2028
|
-
const e = {}, o =
|
|
2028
|
+
const e = {}, o = zs(this);
|
|
2029
2029
|
for (const n of this.$$s) n in o && (n === "default" && !this.$$d.children ? (this.$$d.children = t(n), e.default = !0) : e[n] = t(n));
|
|
2030
2030
|
for (const n of this.attributes) {
|
|
2031
2031
|
const i = this.$$g_p(n.name);
|
|
2032
2032
|
i in this.$$d || (this.$$d[i] = eo(i, n.value, this.$$p_d, "toProp"));
|
|
2033
2033
|
}
|
|
2034
2034
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2035
|
-
this.$$c =
|
|
2035
|
+
this.$$c = Ws({
|
|
2036
2036
|
component: this.$$ctor,
|
|
2037
2037
|
target: this.$$shadowRoot || this,
|
|
2038
2038
|
props: {
|
|
@@ -2040,8 +2040,8 @@ typeof HTMLElement == "function" && (Ki = class extends HTMLElement {
|
|
|
2040
2040
|
$$slots: e,
|
|
2041
2041
|
$$host: this
|
|
2042
2042
|
}
|
|
2043
|
-
}), this.$$me =
|
|
2044
|
-
|
|
2043
|
+
}), this.$$me = as(() => {
|
|
2044
|
+
nn(() => {
|
|
2045
2045
|
this.$$r = !0;
|
|
2046
2046
|
for (const n of ro(this.$$c)) {
|
|
2047
2047
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -2097,14 +2097,14 @@ function eo(t, e, o, n) {
|
|
|
2097
2097
|
return e;
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function zs(t) {
|
|
2101
2101
|
const e = {};
|
|
2102
2102
|
return t.childNodes.forEach((o) => {
|
|
2103
2103
|
e[o.slot || "default"] = !0;
|
|
2104
2104
|
}), e;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2107
|
-
let s = class extends
|
|
2106
|
+
function Hs(t, e, o, n, i, r) {
|
|
2107
|
+
let s = class extends Ji {
|
|
2108
2108
|
constructor() {
|
|
2109
2109
|
super(t, o, i), this.$$p_d = e;
|
|
2110
2110
|
}
|
|
@@ -2136,7 +2136,7 @@ var Ds = class extends Event {
|
|
|
2136
2136
|
composed: !0
|
|
2137
2137
|
}), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = t, this.contextTarget = e, this.callback = o, this.subscribe = n ?? !1;
|
|
2138
2138
|
}
|
|
2139
|
-
},
|
|
2139
|
+
}, qs = class {
|
|
2140
2140
|
constructor(t, e) {
|
|
2141
2141
|
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", (o, n) => {
|
|
2142
2142
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = o, this.onValue?.(o);
|
|
@@ -2157,10 +2157,10 @@ var Ds = class extends Event {
|
|
|
2157
2157
|
}, yo = (t) => t;
|
|
2158
2158
|
yo(Symbol.for("pie.assessmentToolkit.runtimeContext"));
|
|
2159
2159
|
yo(Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
|
|
2160
|
-
var Bs = yo(Symbol.for("pie.assessmentToolkit.shellContext")),
|
|
2161
|
-
function
|
|
2160
|
+
var Bs = yo(Symbol.for("pie.assessmentToolkit.shellContext")), Fs = yo(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2161
|
+
function Xi(t, e, o) {
|
|
2162
2162
|
let n = !1;
|
|
2163
|
-
const i = new
|
|
2163
|
+
const i = new qs(t, {
|
|
2164
2164
|
context: e,
|
|
2165
2165
|
subscribe: !0,
|
|
2166
2166
|
onValue: (u) => {
|
|
@@ -2184,26 +2184,26 @@ function Ji(t, e, o) {
|
|
|
2184
2184
|
globalThis.clearInterval(a), t.removeEventListener("context-provider", r), i.disconnect();
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
|
-
function Fs(t, e) {
|
|
2188
|
-
return Ji(t, Bs, e);
|
|
2189
|
-
}
|
|
2190
2187
|
function Gs(t, e) {
|
|
2191
|
-
return
|
|
2188
|
+
return Xi(t, Bs, e);
|
|
2189
|
+
}
|
|
2190
|
+
function Us(t, e) {
|
|
2191
|
+
return Xi(t, Fs, e);
|
|
2192
2192
|
}
|
|
2193
|
-
var
|
|
2193
|
+
var qn;
|
|
2194
2194
|
(function(t) {
|
|
2195
2195
|
t.TTS_WORD = "tts-word", t.TTS_SENTENCE = "tts-sentence", t.ANNOTATION = "annotation";
|
|
2196
|
-
})(
|
|
2196
|
+
})(qn || (qn = {}));
|
|
2197
2197
|
var Rt;
|
|
2198
2198
|
(function(t) {
|
|
2199
2199
|
t.YELLOW = "yellow", t.GREEN = "green", t.BLUE = "blue", t.PINK = "pink", t.ORANGE = "orange", t.UNDERLINE = "underline";
|
|
2200
2200
|
})(Rt || (Rt = {}));
|
|
2201
|
-
function
|
|
2201
|
+
function Zi(t) {
|
|
2202
2202
|
return (...e) => {
|
|
2203
2203
|
console.debug(`[${t}]`, ...e);
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
|
-
|
|
2206
|
+
Zi("I18nService");
|
|
2207
2207
|
var Lo = {
|
|
2208
2208
|
assessment: [],
|
|
2209
2209
|
section: [],
|
|
@@ -2213,10 +2213,10 @@ var Lo = {
|
|
|
2213
2213
|
element: []
|
|
2214
2214
|
};
|
|
2215
2215
|
[...Lo.section], [...Lo.item], [...Lo.passage];
|
|
2216
|
-
function
|
|
2216
|
+
function Ks(t) {
|
|
2217
2217
|
return t.trim() || "";
|
|
2218
2218
|
}
|
|
2219
|
-
var
|
|
2219
|
+
var Js = [
|
|
2220
2220
|
"assessment",
|
|
2221
2221
|
"section",
|
|
2222
2222
|
"item",
|
|
@@ -2230,7 +2230,7 @@ function oo(t, e) {
|
|
|
2230
2230
|
function Bn(t) {
|
|
2231
2231
|
if (oo(t.toolId, "toolId"), oo(t.name, "name"), oo(t.description, "description"), typeof t.icon != "string" && typeof t.icon != "function") throw new Error(`Invalid tool registration "${t.toolId}": "icon" must be a string or function.`);
|
|
2232
2232
|
if (!Array.isArray(t.supportedLevels) || t.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${t.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2233
|
-
const e = t.supportedLevels.find((o) => !
|
|
2233
|
+
const e = t.supportedLevels.find((o) => !Js.includes(o));
|
|
2234
2234
|
if (e) throw new Error(`Invalid tool registration "${t.toolId}": unsupported level "${e}".`);
|
|
2235
2235
|
if (t.activation !== void 0 && t.activation !== "toolbar-toggle" && t.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${t.toolId}": unsupported activation "${String(t.activation)}".`);
|
|
2236
2236
|
if (t.singletonScope !== void 0 && t.singletonScope !== "section") throw new Error(`Invalid tool registration "${t.toolId}": unsupported singletonScope "${String(t.singletonScope)}".`);
|
|
@@ -2239,12 +2239,12 @@ function Bn(t) {
|
|
|
2239
2239
|
if (typeof t.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${t.toolId}": "isVisibleInContext" must be a function.`);
|
|
2240
2240
|
if (typeof t.renderToolbar != "function") throw new Error(`Invalid tool registration "${t.toolId}": "renderToolbar" must be a function.`);
|
|
2241
2241
|
}
|
|
2242
|
-
var
|
|
2242
|
+
var Xs = class {
|
|
2243
2243
|
constructor() {
|
|
2244
2244
|
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());
|
|
2245
2245
|
}
|
|
2246
2246
|
normalizeToolId(t) {
|
|
2247
|
-
return
|
|
2247
|
+
return Ks(t);
|
|
2248
2248
|
}
|
|
2249
2249
|
normalizeToolIds(t) {
|
|
2250
2250
|
return t.map((e) => this.normalizeToolId(e));
|
|
@@ -2378,20 +2378,20 @@ var Js = class {
|
|
|
2378
2378
|
return n.renderToolbar(e, i);
|
|
2379
2379
|
}
|
|
2380
2380
|
};
|
|
2381
|
-
function
|
|
2381
|
+
function Yi(t) {
|
|
2382
2382
|
return t.level === "item";
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function Zs(t) {
|
|
2385
2385
|
return t.level === "passage";
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Ys(t) {
|
|
2388
2388
|
return t.level === "rubric";
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function Qi(t) {
|
|
2391
2391
|
return t.level === "element";
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
if (
|
|
2393
|
+
function un(t) {
|
|
2394
|
+
if (Qi(t)) {
|
|
2395
2395
|
const e = t.item.config;
|
|
2396
2396
|
if (!e) return "";
|
|
2397
2397
|
const o = [], n = (l) => l.replace(/<[^>]*>/g, " ").trim(), i = e.elements?.[t.elementId];
|
|
@@ -2404,7 +2404,7 @@ function cn(t) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
return o.filter(Boolean).join(" ").trim();
|
|
2406
2406
|
}
|
|
2407
|
-
if (
|
|
2407
|
+
if (Yi(t)) {
|
|
2408
2408
|
const e = t.item;
|
|
2409
2409
|
if (!e?.config) return "";
|
|
2410
2410
|
const o = e.config, n = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2419,7 +2419,7 @@ function cn(t) {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
return n.filter(Boolean).join(" ").trim();
|
|
2421
2421
|
}
|
|
2422
|
-
if (
|
|
2422
|
+
if (Zs(t)) {
|
|
2423
2423
|
const e = t.passage;
|
|
2424
2424
|
if (!e?.config) return "";
|
|
2425
2425
|
const o = e.config, n = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2434,14 +2434,14 @@ function cn(t) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
return n.filter(Boolean).join(" ").trim();
|
|
2436
2436
|
}
|
|
2437
|
-
if (
|
|
2437
|
+
if (Ys(t)) {
|
|
2438
2438
|
const e = t.rubricBlock;
|
|
2439
2439
|
return e.passage?.config ? (e.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (e.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2440
2440
|
}
|
|
2441
2441
|
return "";
|
|
2442
2442
|
}
|
|
2443
2443
|
function no(t) {
|
|
2444
|
-
const e =
|
|
2444
|
+
const e = un(t);
|
|
2445
2445
|
return [
|
|
2446
2446
|
/<math[>\s]/i,
|
|
2447
2447
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2451,7 +2451,7 @@ function no(t) {
|
|
|
2451
2451
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2452
2452
|
].some((o) => o.test(e));
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function Qs(t) {
|
|
2455
2455
|
const e = [
|
|
2456
2456
|
"pie-multiple-choice",
|
|
2457
2457
|
"pie-inline-choice",
|
|
@@ -2460,7 +2460,7 @@ function Ys(t) {
|
|
|
2460
2460
|
"inline-choice",
|
|
2461
2461
|
"select-text"
|
|
2462
2462
|
];
|
|
2463
|
-
if (
|
|
2463
|
+
if (Qi(t)) {
|
|
2464
2464
|
const o = t.item.config;
|
|
2465
2465
|
if (!o?.models) return !1;
|
|
2466
2466
|
const n = (Array.isArray(o.models) ? o.models : Object.values(o.models)).find((r) => r && typeof r == "object" && r.id === t.elementId);
|
|
@@ -2468,7 +2468,7 @@ function Ys(t) {
|
|
|
2468
2468
|
const i = n.element || "";
|
|
2469
2469
|
return e.includes(i);
|
|
2470
2470
|
}
|
|
2471
|
-
if (
|
|
2471
|
+
if (Yi(t)) {
|
|
2472
2472
|
const o = t.item.config?.models;
|
|
2473
2473
|
return (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).some((n) => {
|
|
2474
2474
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2479,10 +2479,10 @@ function Ys(t) {
|
|
|
2479
2479
|
return !1;
|
|
2480
2480
|
}
|
|
2481
2481
|
function io(t) {
|
|
2482
|
-
return
|
|
2482
|
+
return un(t).trim().length >= 10;
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const e =
|
|
2484
|
+
function tl(t) {
|
|
2485
|
+
const e = un(t);
|
|
2486
2486
|
return [
|
|
2487
2487
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2488
2488
|
/periodic\s+table/i,
|
|
@@ -2492,23 +2492,23 @@ function Qs(t) {
|
|
|
2492
2492
|
/physics|force|energy|velocity|acceleration/i
|
|
2493
2493
|
].some((o) => o.test(e));
|
|
2494
2494
|
}
|
|
2495
|
-
var
|
|
2495
|
+
var el = /* @__PURE__ */ new Set([
|
|
2496
2496
|
"assessment",
|
|
2497
2497
|
"section",
|
|
2498
2498
|
"item",
|
|
2499
2499
|
"passage",
|
|
2500
2500
|
"rubric"
|
|
2501
2501
|
]);
|
|
2502
|
-
function
|
|
2503
|
-
return
|
|
2502
|
+
function ol(t) {
|
|
2503
|
+
return el.has(t);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function dn(t, e, o) {
|
|
2506
2506
|
const n = t.trim(), i = o.trim();
|
|
2507
2507
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2508
|
-
if (!
|
|
2508
|
+
if (!ol(e)) throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
|
|
2509
2509
|
return `${n}:${e}:${i}`;
|
|
2510
2510
|
}
|
|
2511
|
-
var
|
|
2511
|
+
var nl = class {
|
|
2512
2512
|
constructor() {
|
|
2513
2513
|
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);
|
|
2514
2514
|
}
|
|
@@ -2583,7 +2583,7 @@ var ol = class {
|
|
|
2583
2583
|
destroy() {
|
|
2584
2584
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2585
2585
|
}
|
|
2586
|
-
},
|
|
2586
|
+
}, il = (t, e) => {
|
|
2587
2587
|
const o = e?.useSentenceSegmenter !== !1;
|
|
2588
2588
|
try {
|
|
2589
2589
|
if (!o) throw new Error("Segmenter disabled by policy");
|
|
@@ -2610,14 +2610,14 @@ var ol = class {
|
|
|
2610
2610
|
text: t,
|
|
2611
2611
|
offset: 0
|
|
2612
2612
|
}];
|
|
2613
|
-
},
|
|
2613
|
+
}, rl = class {
|
|
2614
2614
|
constructor() {
|
|
2615
2615
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2616
2616
|
}
|
|
2617
2617
|
async initialize(t) {
|
|
2618
2618
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2619
2619
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2620
|
-
return new
|
|
2620
|
+
return new sl(t);
|
|
2621
2621
|
}
|
|
2622
2622
|
supportsFeature(t) {
|
|
2623
2623
|
return !0;
|
|
@@ -2634,7 +2634,7 @@ var ol = class {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
destroy() {
|
|
2636
2636
|
}
|
|
2637
|
-
},
|
|
2637
|
+
}, sl = class {
|
|
2638
2638
|
constructor(t) {
|
|
2639
2639
|
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 = t;
|
|
2640
2640
|
}
|
|
@@ -2701,7 +2701,7 @@ var ol = class {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
segmentSentences(t) {
|
|
2703
2703
|
const e = this.getSegmentationPolicy();
|
|
2704
|
-
return
|
|
2704
|
+
return il(t, {
|
|
2705
2705
|
locale: e.locale,
|
|
2706
2706
|
useSentenceSegmenter: e.useSentenceSegmenter
|
|
2707
2707
|
});
|
|
@@ -2770,7 +2770,7 @@ var ol = class {
|
|
|
2770
2770
|
...t.providerOptions || {}
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
2773
|
-
},
|
|
2773
|
+
}, ll = class {
|
|
2774
2774
|
async emitTelemetry(t, e) {
|
|
2775
2775
|
try {
|
|
2776
2776
|
await this.config?.onTelemetry?.(t, e);
|
|
@@ -2802,7 +2802,7 @@ var ol = class {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
async _initializeBrowserTTS(t) {
|
|
2804
2804
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2805
|
-
this.ttsProvider = new
|
|
2805
|
+
this.ttsProvider = new rl(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2806
2806
|
}
|
|
2807
2807
|
async _initializeServerTTS(t) {
|
|
2808
2808
|
if (!t.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2813,7 +2813,7 @@ var ol = class {
|
|
|
2813
2813
|
backend: t.serverProvider || t.backend
|
|
2814
2814
|
}), this.ttsProvider = new (await (async () => {
|
|
2815
2815
|
try {
|
|
2816
|
-
const o = await import("./dist-
|
|
2816
|
+
const o = await import("./dist-Bud4G4lv-DvJKILlA.js");
|
|
2817
2817
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
2818
2818
|
toolId: "tts",
|
|
2819
2819
|
operation: "server-provider-module-import",
|
|
@@ -2858,7 +2858,7 @@ var ol = class {
|
|
|
2858
2858
|
destroy() {
|
|
2859
2859
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2860
2860
|
}
|
|
2861
|
-
},
|
|
2861
|
+
}, al = /* @__PURE__ */ new Set([
|
|
2862
2862
|
"annotation-xml",
|
|
2863
2863
|
"color-profile",
|
|
2864
2864
|
"font-face",
|
|
@@ -2867,16 +2867,16 @@ var ol = class {
|
|
|
2867
2867
|
"font-face-format",
|
|
2868
2868
|
"font-face-name",
|
|
2869
2869
|
"missing-glyph"
|
|
2870
|
-
]),
|
|
2870
|
+
]), cl = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, ul = (t, e = "custom element tag") => {
|
|
2871
2871
|
if (!t || typeof t != "string") throw new Error(`Invalid ${e}: expected a non-empty string`);
|
|
2872
2872
|
const o = t.trim();
|
|
2873
2873
|
if (!o) throw new Error(`Invalid ${e}: tag is empty`);
|
|
2874
2874
|
if (o !== o.toLowerCase()) throw new Error(`Invalid ${e} "${o}": custom element names must be lowercase`);
|
|
2875
2875
|
if (!o.includes("-")) throw new Error(`Invalid ${e} "${o}": custom element names must include a hyphen`);
|
|
2876
|
-
if (
|
|
2877
|
-
if (!
|
|
2876
|
+
if (al.has(o)) throw new Error(`Invalid ${e} "${o}": this name is reserved by the HTML spec`);
|
|
2877
|
+
if (!cl.test(o)) throw new Error(`Invalid ${e} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2878
2878
|
return o;
|
|
2879
|
-
},
|
|
2879
|
+
}, tr = {
|
|
2880
2880
|
calculator: "pie-tool-calculator",
|
|
2881
2881
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2882
2882
|
ruler: "pie-tool-ruler",
|
|
@@ -2889,22 +2889,22 @@ var ol = class {
|
|
|
2889
2889
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2890
2890
|
graph: "pie-tool-graph",
|
|
2891
2891
|
periodicTable: "pie-tool-periodic-table"
|
|
2892
|
-
},
|
|
2893
|
-
const i =
|
|
2892
|
+
}, dl = (t, e) => ul(e?.toolTagMap?.[t] ?? tr[t] ?? t, `tool component tag for "${t}"`), hl = (t) => document.createElement(t), gt = (t, e, o, n) => {
|
|
2893
|
+
const i = dl(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
|
|
2894
2894
|
return r ? r({
|
|
2895
2895
|
toolId: t,
|
|
2896
2896
|
tagName: i,
|
|
2897
2897
|
context: e,
|
|
2898
2898
|
toolbarContext: o
|
|
2899
|
-
}) :
|
|
2900
|
-
},
|
|
2899
|
+
}) : hl(i);
|
|
2900
|
+
}, fl = {
|
|
2901
2901
|
toolId: "calculator",
|
|
2902
2902
|
name: "Calculator",
|
|
2903
2903
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2904
2904
|
icon: "calculator",
|
|
2905
2905
|
provider: {
|
|
2906
2906
|
getProviderId: (t) => typeof t?.provider?.id == "string" && t.provider.id.length > 0 ? t.provider.id : "calculator-desmos",
|
|
2907
|
-
createProvider: () => new
|
|
2907
|
+
createProvider: () => new nl(),
|
|
2908
2908
|
getInitConfig: (t) => t?.provider?.init ?? {},
|
|
2909
2909
|
getAuthFetcher: (t) => {
|
|
2910
2910
|
const e = t?.provider?.runtime?.authFetcher;
|
|
@@ -2930,7 +2930,7 @@ var ol = class {
|
|
|
2930
2930
|
return no(t);
|
|
2931
2931
|
},
|
|
2932
2932
|
renderToolbar(t, e) {
|
|
2933
|
-
const o =
|
|
2933
|
+
const o = dn(this.toolId, e.scope.level, e.scope.scopeId), n = e.componentOverrides, i = gt(this.toolId, t, e, n);
|
|
2934
2934
|
i.setAttribute("tool-id", o), i.toolkitCoordinator = e.toolkitCoordinator;
|
|
2935
2935
|
const r = {
|
|
2936
2936
|
toolId: this.toolId,
|
|
@@ -2970,9 +2970,9 @@ var ol = class {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
|
-
},
|
|
2973
|
+
}, Fn = (t) => t && typeof t == "object" ? t : {}, pl = (t) => t === "polly" || t === "google" || t === "server", Z = (t, e) => t === void 0 ? e : t, vl = (t) => {
|
|
2974
2974
|
const e = t.backend || "browser";
|
|
2975
|
-
if (!
|
|
2975
|
+
if (!pl(e)) return t;
|
|
2976
2976
|
const o = {
|
|
2977
2977
|
...t,
|
|
2978
2978
|
apiEndpoint: Z(t.apiEndpoint, "/api/tts"),
|
|
@@ -2994,13 +2994,13 @@ var ol = class {
|
|
|
2994
2994
|
defaultVoice: Z(o.defaultVoice, "en-US-Wavenet-A")
|
|
2995
2995
|
} : o;
|
|
2996
2996
|
}, Mo = (t) => {
|
|
2997
|
-
const e =
|
|
2998
|
-
return
|
|
2997
|
+
const e = Fn(t), o = Fn(t?.settings);
|
|
2998
|
+
return vl({
|
|
2999
2999
|
...e,
|
|
3000
3000
|
...o
|
|
3001
3001
|
});
|
|
3002
|
-
}, Bo = (t) => t.backend || "browser",
|
|
3003
|
-
const e = Bo(t), o =
|
|
3002
|
+
}, Bo = (t) => t.backend || "browser", er = (t, e) => t.serverProvider || t.provider || (e === "polly" || e === "google" ? e : void 0), or = (t, e) => t.transportMode || (e === "custom" ? "custom" : "pie"), gl = (t) => {
|
|
3003
|
+
const e = Bo(t), o = er(t, e), n = or(t, o);
|
|
3004
3004
|
return {
|
|
3005
3005
|
voice: t.defaultVoice,
|
|
3006
3006
|
rate: t.rate,
|
|
@@ -3024,30 +3024,31 @@ var ol = class {
|
|
|
3024
3024
|
includeAuthOnAssetFetch: t.includeAuthOnAssetFetch,
|
|
3025
3025
|
validateEndpoint: t.validateEndpoint
|
|
3026
3026
|
};
|
|
3027
|
-
}, xe = /* @__PURE__ */ new Map(),
|
|
3028
|
-
if (!Array.isArray(t)) return [...
|
|
3027
|
+
}, xe = /* @__PURE__ */ new Map(), ml = "__pieToolElementUnmount", Gn = Object.freeze([1.5, 2]), bl = (t) => {
|
|
3028
|
+
if (!Array.isArray(t)) return [...Gn];
|
|
3029
|
+
if (t.length === 0) return [];
|
|
3029
3030
|
const e = /* @__PURE__ */ new Set();
|
|
3030
3031
|
for (const o of t) {
|
|
3031
3032
|
if (typeof o != "number" || !Number.isFinite(o) || o <= 0) continue;
|
|
3032
3033
|
const n = Math.round(o * 100) / 100;
|
|
3033
3034
|
n !== 1 && e.add(n);
|
|
3034
3035
|
}
|
|
3035
|
-
return e.size ? Array.from(e) : [...
|
|
3036
|
-
},
|
|
3036
|
+
return e.size ? Array.from(e) : [...Gn];
|
|
3037
|
+
}, yl = {
|
|
3037
3038
|
toolId: "textToSpeech",
|
|
3038
3039
|
name: "Text to Speech",
|
|
3039
3040
|
description: "Read content aloud",
|
|
3040
3041
|
icon: "volume-up",
|
|
3041
3042
|
provider: {
|
|
3042
3043
|
getProviderId: () => "tts",
|
|
3043
|
-
createProvider: (t) => new
|
|
3044
|
+
createProvider: (t) => new ll(Bo(Mo(t))),
|
|
3044
3045
|
getInitConfig: (t) => {
|
|
3045
|
-
const e = Mo(t), o = Bo(e), n =
|
|
3046
|
+
const e = Mo(t), o = Bo(e), n = er(e, o);
|
|
3046
3047
|
return {
|
|
3047
3048
|
backend: o,
|
|
3048
3049
|
serverProvider: n,
|
|
3049
|
-
transportMode:
|
|
3050
|
-
...
|
|
3050
|
+
transportMode: or(e, n),
|
|
3051
|
+
...gl(e)
|
|
3051
3052
|
};
|
|
3052
3053
|
},
|
|
3053
3054
|
getAuthFetcher: (t) => {
|
|
@@ -3072,12 +3073,12 @@ var ol = class {
|
|
|
3072
3073
|
return io(t);
|
|
3073
3074
|
},
|
|
3074
3075
|
renderToolbar(t, e) {
|
|
3075
|
-
const o = () =>
|
|
3076
|
+
const o = () => bl(Mo(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), n = dn(this.toolId, e.scope.level, e.scope.scopeId), i = () => {
|
|
3076
3077
|
const s = e.ui?.size;
|
|
3077
3078
|
return s === "sm" || s === "lg" ? s : "md";
|
|
3078
3079
|
}, r = () => {
|
|
3079
3080
|
let s = xe.get(n);
|
|
3080
|
-
return s && typeof s.isConnected == "boolean" && !s.isConnected && (xe.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[
|
|
3081
|
+
return s && typeof s.isConnected == "boolean" && !s.isConnected && (xe.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[ml] = () => {
|
|
3081
3082
|
xe.get(n) === s && xe.delete(n);
|
|
3082
3083
|
}, xe.set(n, s)), s.setAttribute("tool-id", n), s.setAttribute("catalog-id", e.catalogId || e.itemId), s.setAttribute("language", e.language || "en-US"), s.setAttribute("size", i()), s.speedOptions = o(), s;
|
|
3083
3084
|
};
|
|
@@ -3096,7 +3097,7 @@ var ol = class {
|
|
|
3096
3097
|
}
|
|
3097
3098
|
};
|
|
3098
3099
|
function St(t, e) {
|
|
3099
|
-
const o =
|
|
3100
|
+
const o = dn(t, e.scope.level, e.scope.scopeId);
|
|
3100
3101
|
return {
|
|
3101
3102
|
fullToolId: o,
|
|
3102
3103
|
isActive: () => e.isToolVisible(o),
|
|
@@ -3110,9 +3111,12 @@ function xt(t) {
|
|
|
3110
3111
|
const e = t.isActive();
|
|
3111
3112
|
t.button.active = e, t.overlay.visible = e, t.onActiveChange?.(e);
|
|
3112
3113
|
}
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3114
|
+
function Oo(t, e) {
|
|
3115
|
+
t.setAttribute("data-pie-tool-surface", e);
|
|
3116
|
+
}
|
|
3117
|
+
var wl = [
|
|
3118
|
+
fl,
|
|
3119
|
+
yl,
|
|
3116
3120
|
{
|
|
3117
3121
|
toolId: "ruler",
|
|
3118
3122
|
name: "Ruler",
|
|
@@ -3134,7 +3138,7 @@ var yl = [
|
|
|
3134
3138
|
onClick: () => e.toggleTool(this.toolId),
|
|
3135
3139
|
active: o.isActive()
|
|
3136
3140
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3137
|
-
return r.setAttribute("tool-id", o.fullToolId), {
|
|
3141
|
+
return r.setAttribute("tool-id", o.fullToolId), Oo(r, "frameless"), {
|
|
3138
3142
|
toolId: this.toolId,
|
|
3139
3143
|
button: n,
|
|
3140
3144
|
elements: [{
|
|
@@ -3173,7 +3177,7 @@ var yl = [
|
|
|
3173
3177
|
onClick: () => e.toggleTool(this.toolId),
|
|
3174
3178
|
active: o.isActive()
|
|
3175
3179
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3176
|
-
return r.setAttribute("tool-id", o.fullToolId), {
|
|
3180
|
+
return r.setAttribute("tool-id", o.fullToolId), Oo(r, "frameless"), {
|
|
3177
3181
|
toolId: this.toolId,
|
|
3178
3182
|
button: n,
|
|
3179
3183
|
elements: [{
|
|
@@ -3204,7 +3208,7 @@ var yl = [
|
|
|
3204
3208
|
"choiceMasking"
|
|
3205
3209
|
],
|
|
3206
3210
|
isVisibleInContext(t) {
|
|
3207
|
-
return
|
|
3211
|
+
return Qs(t);
|
|
3208
3212
|
},
|
|
3209
3213
|
renderToolbar(t, e) {
|
|
3210
3214
|
const o = St(this.toolId, e), n = e.componentOverrides ?? {}, i = gt(this.toolId, t, e, n);
|
|
@@ -3322,7 +3326,7 @@ var yl = [
|
|
|
3322
3326
|
onClick: () => e.toggleTool(this.toolId),
|
|
3323
3327
|
active: o.isActive()
|
|
3324
3328
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3325
|
-
return r.setAttribute("tool-id", o.fullToolId), {
|
|
3329
|
+
return r.setAttribute("tool-id", o.fullToolId), Oo(r, "frameless"), {
|
|
3326
3330
|
toolId: this.toolId,
|
|
3327
3331
|
button: n,
|
|
3328
3332
|
elements: [{
|
|
@@ -3515,7 +3519,7 @@ var yl = [
|
|
|
3515
3519
|
"elementReference"
|
|
3516
3520
|
],
|
|
3517
3521
|
isVisibleInContext(t) {
|
|
3518
|
-
return
|
|
3522
|
+
return tl(t);
|
|
3519
3523
|
},
|
|
3520
3524
|
renderToolbar(t, e) {
|
|
3521
3525
|
const o = St(this.toolId, e), n = {
|
|
@@ -3557,36 +3561,36 @@ var yl = [
|
|
|
3557
3561
|
}
|
|
3558
3562
|
}
|
|
3559
3563
|
];
|
|
3560
|
-
function
|
|
3561
|
-
const e = new
|
|
3564
|
+
function Tl(t = {}) {
|
|
3565
|
+
const e = new Xs(), o = {
|
|
3562
3566
|
toolTagMap: {
|
|
3563
|
-
...
|
|
3567
|
+
...tr,
|
|
3564
3568
|
...t.toolTagMap || {}
|
|
3565
3569
|
},
|
|
3566
3570
|
toolComponentFactory: t.toolComponentFactory,
|
|
3567
3571
|
toolComponentFactories: t.toolComponentFactories
|
|
3568
3572
|
}, n = (i) => t.overrides?.[i.toolId] || i;
|
|
3569
|
-
return t.includePackagedTools &&
|
|
3573
|
+
return t.includePackagedTools && Il(e, {
|
|
3570
3574
|
toolIds: t.toolIds,
|
|
3571
3575
|
applyOverrides: n
|
|
3572
3576
|
}), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(o), e;
|
|
3573
3577
|
}
|
|
3574
|
-
function
|
|
3578
|
+
function Il(t, e = {}) {
|
|
3575
3579
|
const o = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, n = e.applyOverrides || ((i) => i);
|
|
3576
|
-
for (const i of
|
|
3580
|
+
for (const i of wl) o && !o.has(i.toolId) || t.register(n(i));
|
|
3577
3581
|
}
|
|
3578
|
-
function
|
|
3579
|
-
return
|
|
3582
|
+
function $l(t = {}) {
|
|
3583
|
+
return Tl({
|
|
3580
3584
|
...t,
|
|
3581
3585
|
includePackagedTools: !0
|
|
3582
3586
|
});
|
|
3583
3587
|
}
|
|
3584
|
-
function
|
|
3585
|
-
const t =
|
|
3588
|
+
function kl() {
|
|
3589
|
+
const t = $l(), e = /* @__PURE__ */ new Set();
|
|
3586
3590
|
for (const o of t.getAllTools()) for (const n of o.pnpSupportIds || []) e.add(n);
|
|
3587
3591
|
return [...e].sort();
|
|
3588
3592
|
}
|
|
3589
|
-
[
|
|
3593
|
+
[...kl()];
|
|
3590
3594
|
Object.values({
|
|
3591
3595
|
visual: {
|
|
3592
3596
|
magnification: "magnification",
|
|
@@ -3701,16 +3705,16 @@ Object.values({
|
|
|
3701
3705
|
tutorialAvailable: "tutorialAvailable"
|
|
3702
3706
|
}
|
|
3703
3707
|
}).flatMap((t) => Object.values(t));
|
|
3704
|
-
|
|
3705
|
-
var
|
|
3708
|
+
Zi("ToolCoordinator");
|
|
3709
|
+
var Un;
|
|
3706
3710
|
(function(t) {
|
|
3707
3711
|
t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3708
|
-
})(
|
|
3709
|
-
var
|
|
3712
|
+
})(Un || (Un = {}));
|
|
3713
|
+
var Kn;
|
|
3710
3714
|
(function(t) {
|
|
3711
3715
|
t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
|
|
3712
|
-
})(
|
|
3713
|
-
var
|
|
3716
|
+
})(Kn || (Kn = {}));
|
|
3717
|
+
var Sl = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), xl = /* @__PURE__ */ le('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Al = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), _l = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Cl = /* @__PURE__ */ le('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), El = /* @__PURE__ */ le('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), Pl = /* @__PURE__ */ le('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), Ll = {
|
|
3714
3718
|
hash: "svelte-g8qu62",
|
|
3715
3719
|
code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
|
|
3716
3720
|
|
|
@@ -3718,8 +3722,8 @@ var kl = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__highlig
|
|
|
3718
3722
|
|
|
3719
3723
|
/* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
|
|
3720
3724
|
};
|
|
3721
|
-
function
|
|
3722
|
-
|
|
3725
|
+
function Ml(t, e) {
|
|
3726
|
+
oi(e, !0), Es(t, Ll);
|
|
3723
3727
|
let o = Po(e, "enabled", 7, !0), n = Po(e, "highlightCoordinator", 7, null), i = Po(e, "ttsService", 7, null);
|
|
3724
3728
|
const r = typeof window < "u", s = "pie-annotations", l = [
|
|
3725
3729
|
{
|
|
@@ -3762,19 +3766,19 @@ function Ll(t, e) {
|
|
|
3762
3766
|
y: 0
|
|
3763
3767
|
}
|
|
3764
3768
|
})), y = /* @__PURE__ */ V(!1), $ = /* @__PURE__ */ V(!1), f = /* @__PURE__ */ V(""), w = /* @__PURE__ */ V(0), R = /* @__PURE__ */ V(null), A = /* @__PURE__ */ ko(() => g(w) > 0), O = /* @__PURE__ */ ko(() => g(R) !== null), U = /* @__PURE__ */ ko(() => g(h)?.scopeElement || g(p)?.scopeElement || null);
|
|
3765
|
-
function
|
|
3769
|
+
function H() {
|
|
3766
3770
|
const m = g(u)?.ownerDocument;
|
|
3767
3771
|
return g(U) || m?.documentElement || document.documentElement;
|
|
3768
3772
|
}
|
|
3769
|
-
function
|
|
3773
|
+
function D() {
|
|
3770
3774
|
return `${s}:${g(p)?.canonicalItemId || g(p)?.itemId || "global"}`;
|
|
3771
3775
|
}
|
|
3772
3776
|
function ft(m) {
|
|
3773
3777
|
if (!n()) return null;
|
|
3774
3778
|
const I = n().getAnnotations();
|
|
3775
3779
|
for (const C of I) {
|
|
3776
|
-
const it = m.compareBoundaryPoints(Range.START_TO_START, C.range),
|
|
3777
|
-
if (it >= 0 &&
|
|
3780
|
+
const it = m.compareBoundaryPoints(Range.START_TO_START, C.range), Dt = m.compareBoundaryPoints(Range.END_TO_END, C.range), we = m.compareBoundaryPoints(Range.START_TO_END, C.range), wo = m.compareBoundaryPoints(Range.END_TO_START, C.range);
|
|
3781
|
+
if (it >= 0 && Dt <= 0 || it <= 0 && Dt >= 0 || we > 0 && wo < 0) return C.id;
|
|
3778
3782
|
}
|
|
3779
3783
|
return null;
|
|
3780
3784
|
}
|
|
@@ -3794,33 +3798,33 @@ function Ll(t, e) {
|
|
|
3794
3798
|
const I = m.commonAncestorContainer, C = I.nodeType === Node.TEXT_NODE ? I.parentElement : I;
|
|
3795
3799
|
return !!C && g(U).contains(C);
|
|
3796
3800
|
}
|
|
3797
|
-
function
|
|
3801
|
+
function We() {
|
|
3798
3802
|
if (!(!r || !n())) try {
|
|
3799
|
-
const m =
|
|
3800
|
-
sessionStorage.setItem(
|
|
3803
|
+
const m = H(), I = n().exportAnnotations(m);
|
|
3804
|
+
sessionStorage.setItem(D(), JSON.stringify(I));
|
|
3801
3805
|
} catch (m) {
|
|
3802
3806
|
console.error("[AnnotationToolbar] Failed to save annotations:", m);
|
|
3803
3807
|
}
|
|
3804
3808
|
}
|
|
3805
|
-
function
|
|
3809
|
+
function nr() {
|
|
3806
3810
|
if (!(!r || !n())) try {
|
|
3807
|
-
const m = sessionStorage.getItem(
|
|
3811
|
+
const m = sessionStorage.getItem(D());
|
|
3808
3812
|
if (!m) return;
|
|
3809
|
-
const I = JSON.parse(m), C =
|
|
3813
|
+
const I = JSON.parse(m), C = H(), it = n().importAnnotations(I, C);
|
|
3810
3814
|
console.log(`[AnnotationToolbar] Restored ${it} annotations`), _(w, n().getAnnotations().length, !0);
|
|
3811
3815
|
} catch (m) {
|
|
3812
3816
|
console.error("[AnnotationToolbar] Failed to load annotations:", m);
|
|
3813
3817
|
}
|
|
3814
3818
|
}
|
|
3815
|
-
function
|
|
3819
|
+
function je() {
|
|
3816
3820
|
if (!o() || !r) return;
|
|
3817
3821
|
const m = window.getSelection();
|
|
3818
3822
|
if (!m || m.rangeCount === 0) return $t();
|
|
3819
3823
|
const I = m.getRangeAt(0), C = m.toString().trim();
|
|
3820
3824
|
if (!C || !pt(I) || !K(I.commonAncestorContainer)) return $t();
|
|
3821
|
-
const it = I.getBoundingClientRect(),
|
|
3825
|
+
const it = I.getBoundingClientRect(), Dt = it.left + it.width / 2, we = it.top - 8;
|
|
3822
3826
|
_(R, ft(I), !0), g(v).isVisible = !0, g(v).selectedText = C, g(v).selectedRange = I.cloneRange(), g(v).toolbarPosition = {
|
|
3823
|
-
x:
|
|
3827
|
+
x: Dt,
|
|
3824
3828
|
y: we
|
|
3825
3829
|
}, _(f, `Annotation toolbar opened for "${C.length > 30 ? C.substring(0, 30) + "..." : C}"`), setTimeout(() => {
|
|
3826
3830
|
_(f, "");
|
|
@@ -3831,16 +3835,16 @@ function Ll(t, e) {
|
|
|
3831
3835
|
function $t() {
|
|
3832
3836
|
g(y) && i() && (i().stop(), _(y, !1)), g(v).isVisible = !1, g(v).selectedText = "", g(v).selectedRange = null;
|
|
3833
3837
|
}
|
|
3834
|
-
function
|
|
3838
|
+
function hn(m) {
|
|
3835
3839
|
if (!g(v).selectedRange || !n()) return;
|
|
3836
3840
|
const I = g(v).selectedText;
|
|
3837
|
-
n().addAnnotation(g(v).selectedRange, m), _(w, n().getAnnotations().length, !0),
|
|
3841
|
+
n().addAnnotation(g(v).selectedRange, m), _(w, n().getAnnotations().length, !0), We();
|
|
3838
3842
|
const C = m === Rt.UNDERLINE ? "underlined" : `highlighted in ${m}`;
|
|
3839
3843
|
_(f, `"${I.length > 30 ? I.substring(0, 30) + "..." : I}" ${C}`), setTimeout(() => {
|
|
3840
3844
|
_(f, "");
|
|
3841
3845
|
}, 3e3), $t();
|
|
3842
3846
|
}
|
|
3843
|
-
function
|
|
3847
|
+
function ir() {
|
|
3844
3848
|
if (!g(R) || !n()) {
|
|
3845
3849
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
3846
3850
|
return;
|
|
@@ -3854,21 +3858,21 @@ function Ll(t, e) {
|
|
|
3854
3858
|
const I = m.range.toString();
|
|
3855
3859
|
n().removeAnnotation(g(R));
|
|
3856
3860
|
const C = n().getAnnotations().length;
|
|
3857
|
-
_(w, C, !0), console.log("[AnnotationToolbar] Annotations remaining:", C),
|
|
3861
|
+
_(w, C, !0), console.log("[AnnotationToolbar] Annotations remaining:", C), We(), _(f, `Removed annotation from "${I.length > 30 ? I.substring(0, 30) + "..." : I}"`), setTimeout(() => {
|
|
3858
3862
|
_(f, "");
|
|
3859
3863
|
}, 3e3), $t();
|
|
3860
3864
|
}
|
|
3861
|
-
function
|
|
3865
|
+
function rr() {
|
|
3862
3866
|
const m = g(w);
|
|
3863
|
-
n()?.clearAnnotations(), _(w, 0), sessionStorage.removeItem(
|
|
3867
|
+
n()?.clearAnnotations(), _(w, 0), sessionStorage.removeItem(D()), _(f, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
3864
3868
|
_(f, "");
|
|
3865
3869
|
}, 3e3), $t();
|
|
3866
3870
|
}
|
|
3867
|
-
async function
|
|
3871
|
+
async function sr() {
|
|
3868
3872
|
if (!(!g(v).selectedRange || !i())) {
|
|
3869
3873
|
_(y, !0);
|
|
3870
3874
|
try {
|
|
3871
|
-
console.log("[AnnotationToolbar] Speaking range:", g(v).selectedRange.toString().substring(0, 50)), await i().speakRange(g(v).selectedRange, { contentRoot:
|
|
3875
|
+
console.log("[AnnotationToolbar] Speaking range:", g(v).selectedRange.toString().substring(0, 50)), await i().speakRange(g(v).selectedRange, { contentRoot: H() }), console.log("[AnnotationToolbar] TTS completed successfully");
|
|
3872
3876
|
} catch (m) {
|
|
3873
3877
|
console.error("[AnnotationToolbar] TTS error:", m), alert(`TTS failed: ${m instanceof Error ? m.message : String(m)}`);
|
|
3874
3878
|
} finally {
|
|
@@ -3876,32 +3880,32 @@ function Ll(t, e) {
|
|
|
3876
3880
|
}
|
|
3877
3881
|
}
|
|
3878
3882
|
}
|
|
3879
|
-
function
|
|
3883
|
+
function fn(m) {
|
|
3880
3884
|
m.key === "Escape" && g(v).isVisible && (m.preventDefault(), $t());
|
|
3881
3885
|
}
|
|
3882
3886
|
function ze(m) {
|
|
3883
3887
|
!g(v).isVisible || g($) || g(d) && !g(d).contains(m.target) && $t();
|
|
3884
3888
|
}
|
|
3885
|
-
|
|
3889
|
+
Cn(() => {
|
|
3886
3890
|
if (!r) return;
|
|
3887
3891
|
const m = setTimeout(() => {
|
|
3888
|
-
|
|
3892
|
+
nr();
|
|
3889
3893
|
}, 2e3), I = g(U) || document;
|
|
3890
|
-
return I.addEventListener("mouseup",
|
|
3891
|
-
clearTimeout(m), I.removeEventListener("mouseup",
|
|
3894
|
+
return I.addEventListener("mouseup", je), I.addEventListener("click", ze), I.addEventListener("touchend", je), I.addEventListener("touchstart", ze), document.addEventListener("keydown", fn), window.addEventListener("scroll", $t, !0), () => {
|
|
3895
|
+
clearTimeout(m), I.removeEventListener("mouseup", je), I.removeEventListener("click", ze), I.removeEventListener("touchend", je), I.removeEventListener("touchstart", ze), document.removeEventListener("keydown", fn), window.removeEventListener("scroll", $t, !0);
|
|
3892
3896
|
};
|
|
3893
|
-
}),
|
|
3897
|
+
}), Cn(() => {
|
|
3894
3898
|
if (!g(u)) return;
|
|
3895
|
-
const m =
|
|
3899
|
+
const m = Gs(g(u), (C) => {
|
|
3896
3900
|
_(p, C, !0);
|
|
3897
|
-
}), I =
|
|
3901
|
+
}), I = Us(g(u), (C) => {
|
|
3898
3902
|
_(h, C, !0);
|
|
3899
3903
|
});
|
|
3900
3904
|
return () => {
|
|
3901
3905
|
I(), m();
|
|
3902
3906
|
};
|
|
3903
3907
|
});
|
|
3904
|
-
var
|
|
3908
|
+
var lr = {
|
|
3905
3909
|
get enabled() {
|
|
3906
3910
|
return o();
|
|
3907
3911
|
},
|
|
@@ -3920,51 +3924,51 @@ function Ll(t, e) {
|
|
|
3920
3924
|
set ttsService(m = null) {
|
|
3921
3925
|
i(m), Ye();
|
|
3922
3926
|
}
|
|
3923
|
-
},
|
|
3924
|
-
Dn(
|
|
3925
|
-
var
|
|
3926
|
-
var I =
|
|
3927
|
-
|
|
3928
|
-
var J =
|
|
3929
|
-
He
|
|
3930
|
-
|
|
3931
|
-
}), Ie("click", J, () =>
|
|
3927
|
+
}, pn = Pl(), vn = So(pn);
|
|
3928
|
+
Dn(vn, (m) => _(u, m), () => g(u));
|
|
3929
|
+
var gn = Pt(vn, 2), ar = (m) => {
|
|
3930
|
+
var I = El(), C = Ue(I);
|
|
3931
|
+
As(C, 17, () => l, Ss, (rt, st) => {
|
|
3932
|
+
var J = Sl(), He = Ue(J), To = Ue(He, !0);
|
|
3933
|
+
De(He), De(J), Ke(() => {
|
|
3934
|
+
Vn(J, `background-color: ${g(st).hex ?? ""};`), Wn(J, "aria-label", g(st).label), Wn(J, "title", g(st).label), On(To, g(st).label);
|
|
3935
|
+
}), Ie("click", J, () => hn(g(st).name)), Ot(rt, J);
|
|
3932
3936
|
});
|
|
3933
|
-
var it = Pt(C, 2),
|
|
3934
|
-
var st =
|
|
3935
|
-
Ke(() => J.disabled = g(y)), Ie("click", J,
|
|
3937
|
+
var it = Pt(C, 2), Dt = Pt(it, 2), we = (rt) => {
|
|
3938
|
+
var st = xl(), J = Pt(So(st), 2);
|
|
3939
|
+
Ke(() => J.disabled = g(y)), Ie("click", J, sr), Ot(rt, st);
|
|
3936
3940
|
};
|
|
3937
|
-
ke(
|
|
3941
|
+
ke(Dt, (rt) => {
|
|
3938
3942
|
i() && rt(we);
|
|
3939
3943
|
});
|
|
3940
|
-
var wo = Pt(
|
|
3941
|
-
var st =
|
|
3942
|
-
var Te =
|
|
3943
|
-
Ie("click", Te,
|
|
3944
|
+
var wo = Pt(Dt, 2), ur = (rt) => {
|
|
3945
|
+
var st = Cl(), J = Pt(So(st), 2), He = (qt) => {
|
|
3946
|
+
var Te = Al();
|
|
3947
|
+
Ie("click", Te, ir), Ot(qt, Te);
|
|
3944
3948
|
};
|
|
3945
|
-
ke(J, (
|
|
3946
|
-
g(O) &&
|
|
3949
|
+
ke(J, (qt) => {
|
|
3950
|
+
g(O) && qt(He);
|
|
3947
3951
|
});
|
|
3948
|
-
var To = Pt(J, 2),
|
|
3949
|
-
var Te =
|
|
3950
|
-
Ie("click", Te,
|
|
3952
|
+
var To = Pt(J, 2), dr = (qt) => {
|
|
3953
|
+
var Te = _l();
|
|
3954
|
+
Ie("click", Te, rr), Ot(qt, Te);
|
|
3951
3955
|
};
|
|
3952
|
-
ke(To, (
|
|
3953
|
-
g(A) &&
|
|
3956
|
+
ke(To, (qt) => {
|
|
3957
|
+
g(A) && qt(dr);
|
|
3954
3958
|
}), Ot(rt, st);
|
|
3955
3959
|
};
|
|
3956
3960
|
ke(wo, (rt) => {
|
|
3957
|
-
(g(O) || g(A)) && rt(
|
|
3958
|
-
}),
|
|
3961
|
+
(g(O) || g(A)) && rt(ur);
|
|
3962
|
+
}), De(I), Dn(I, (rt) => _(d, rt), () => g(d)), Ke(() => Vn(I, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Ie("click", it, () => hn(Rt.UNDERLINE)), Ot(m, I);
|
|
3959
3963
|
};
|
|
3960
|
-
ke(
|
|
3961
|
-
g(v).isVisible && m(
|
|
3964
|
+
ke(gn, (m) => {
|
|
3965
|
+
g(v).isVisible && m(ar);
|
|
3962
3966
|
});
|
|
3963
|
-
var
|
|
3964
|
-
return
|
|
3967
|
+
var mn = Pt(gn, 2), cr = Ue(mn, !0);
|
|
3968
|
+
return De(mn), Ke(() => On(cr, g(f))), Ot(t, pn), ni(lr);
|
|
3965
3969
|
}
|
|
3966
|
-
|
|
3967
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
3970
|
+
gs(["click"]);
|
|
3971
|
+
customElements.define("pie-tool-annotation-toolbar", Hs(Ml, {
|
|
3968
3972
|
enabled: {
|
|
3969
3973
|
attribute: "enabled",
|
|
3970
3974
|
type: "Boolean"
|