@pie-players/pie-tool-sign-language 0.3.50
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.
|
@@ -0,0 +1,2649 @@
|
|
|
1
|
+
import { applyMediaFragment as _i, collectEntityCatalogRegistrations as pi, isSafeMediaSrc as gi, normalizeMediaFragment as mi, normalizeMediaSources as wi, trimmedOrUndefined as nt } from "@pie-players/pie-assessment-toolkit";
|
|
2
|
+
import { resolveToolTag as yi } from "@pie-players/pie-assessment-toolkit/tools/internal";
|
|
3
|
+
if (typeof window < "u") {
|
|
4
|
+
var Gr, Ur;
|
|
5
|
+
((Gr = (Ur = window).__svelte ?? (Ur.__svelte = {})).v ?? (Gr.v = /* @__PURE__ */ new Set())).add("5");
|
|
6
|
+
}
|
|
7
|
+
var Je = {}, P = /* @__PURE__ */ Symbol("uninitialized");
|
|
8
|
+
var dn = Array.isArray, bi = Array.prototype.indexOf, It = Array.prototype.includes, Xt = Array.from, Pt = Object.keys, Wt = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, $i = Object.getOwnPropertyDescriptors, ki = Object.prototype, Si = Array.prototype, hn = Object.getPrototypeOf, Hr = Object.isExtensible, Ei = () => {
|
|
9
|
+
};
|
|
10
|
+
function xi(e) {
|
|
11
|
+
for (var t = 0; t < e.length; t++) e[t]();
|
|
12
|
+
}
|
|
13
|
+
function vn() {
|
|
14
|
+
var e, t;
|
|
15
|
+
return {
|
|
16
|
+
promise: new Promise((r, n) => {
|
|
17
|
+
e = r, t = n;
|
|
18
|
+
}),
|
|
19
|
+
resolve: e,
|
|
20
|
+
reject: t
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function _t(e) {
|
|
24
|
+
"@babel/helpers - typeof";
|
|
25
|
+
return _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
26
|
+
return typeof t;
|
|
27
|
+
} : function(t) {
|
|
28
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
29
|
+
}, _t(e);
|
|
30
|
+
}
|
|
31
|
+
function Mi(e, t) {
|
|
32
|
+
if (_t(e) != "object" || !e) return e;
|
|
33
|
+
var r = e[Symbol.toPrimitive];
|
|
34
|
+
if (r !== void 0) {
|
|
35
|
+
var n = r.call(e, t || "default");
|
|
36
|
+
if (_t(n) != "object") return n;
|
|
37
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
38
|
+
}
|
|
39
|
+
return (t === "string" ? String : Number)(e);
|
|
40
|
+
}
|
|
41
|
+
function Ti(e) {
|
|
42
|
+
var t = Mi(e, "string");
|
|
43
|
+
return _t(t) == "symbol" ? t : t + "";
|
|
44
|
+
}
|
|
45
|
+
function R(e, t, r) {
|
|
46
|
+
return (t = Ti(t)) in e ? Object.defineProperty(e, t, {
|
|
47
|
+
value: r,
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0
|
|
51
|
+
}) : e[t] = r, e;
|
|
52
|
+
}
|
|
53
|
+
var Oa = 1 << 24, Q = 1024, Y = 2048, qe = 4096, $r = 8192, Ai = 16384, kr = 32768, Br = 1 << 25, Sr = 65536, Ca = 1 << 17, Na = 1 << 18, rt = 1 << 19, Li = 1 << 20, ct = 1 << 25, wt = 65536, zr = 1 << 21, Ri = 1 << 22, jt = 1 << 23, dt = /* @__PURE__ */ Symbol("$state"), _n = /* @__PURE__ */ Symbol("legacy props"), Oi = /* @__PURE__ */ Symbol(""), Ci = /* @__PURE__ */ Symbol("proxy path"), fr = /* @__PURE__ */ Symbol("attributes"), Ni = /* @__PURE__ */ Symbol("class"), Ii = /* @__PURE__ */ Symbol("style"), Lt = /* @__PURE__ */ Symbol("text");
|
|
54
|
+
var yt = new class extends Error {
|
|
55
|
+
constructor(...t) {
|
|
56
|
+
super(...t), R(this, "name", "StaleReactionError"), R(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
57
|
+
}
|
|
58
|
+
}(), Pi = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
59
|
+
function Wi() {
|
|
60
|
+
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
61
|
+
}
|
|
62
|
+
function ji(e, t, r) {
|
|
63
|
+
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
64
|
+
}
|
|
65
|
+
function Fi(e) {
|
|
66
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
67
|
+
}
|
|
68
|
+
function Di() {
|
|
69
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
70
|
+
}
|
|
71
|
+
function qi(e) {
|
|
72
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
73
|
+
}
|
|
74
|
+
function Gi() {
|
|
75
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
76
|
+
}
|
|
77
|
+
function Ui() {
|
|
78
|
+
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
79
|
+
}
|
|
80
|
+
function Hi(e) {
|
|
81
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
82
|
+
}
|
|
83
|
+
function Bi() {
|
|
84
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
85
|
+
}
|
|
86
|
+
function zi() {
|
|
87
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
88
|
+
}
|
|
89
|
+
function Yi() {
|
|
90
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
91
|
+
}
|
|
92
|
+
function Vi() {
|
|
93
|
+
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
94
|
+
}
|
|
95
|
+
function Ki() {
|
|
96
|
+
console.warn("https://svelte.dev/e/derived_inert");
|
|
97
|
+
}
|
|
98
|
+
function Jt(e) {
|
|
99
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
100
|
+
}
|
|
101
|
+
function Xi() {
|
|
102
|
+
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
103
|
+
}
|
|
104
|
+
var L = !1;
|
|
105
|
+
function ge(e) {
|
|
106
|
+
L = e;
|
|
107
|
+
}
|
|
108
|
+
var M;
|
|
109
|
+
function U(e) {
|
|
110
|
+
if (e === null)
|
|
111
|
+
throw Jt(), Je;
|
|
112
|
+
return M = e;
|
|
113
|
+
}
|
|
114
|
+
function Zt() {
|
|
115
|
+
return U(/* @__PURE__ */ he(M));
|
|
116
|
+
}
|
|
117
|
+
function er(e) {
|
|
118
|
+
if (L) {
|
|
119
|
+
if (/* @__PURE__ */ he(M) !== null)
|
|
120
|
+
throw Jt(), Je;
|
|
121
|
+
M = e;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function Ji(e = 1) {
|
|
125
|
+
if (L) {
|
|
126
|
+
for (var t = e, r = M; t--; ) r = /* @__PURE__ */ he(r);
|
|
127
|
+
M = r;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function Ft(e = !0) {
|
|
131
|
+
for (var t = 0, r = M; ; ) {
|
|
132
|
+
if (r.nodeType === 8) {
|
|
133
|
+
var n = r.data;
|
|
134
|
+
if (n === "]") {
|
|
135
|
+
if (t === 0) return r;
|
|
136
|
+
t -= 1;
|
|
137
|
+
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
138
|
+
}
|
|
139
|
+
var i = /* @__PURE__ */ he(r);
|
|
140
|
+
e && r.remove(), r = i;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function pn(e) {
|
|
144
|
+
if (!e || e.nodeType !== 8)
|
|
145
|
+
throw Jt(), Je;
|
|
146
|
+
return e.data;
|
|
147
|
+
}
|
|
148
|
+
function gn(e) {
|
|
149
|
+
return e === this.v;
|
|
150
|
+
}
|
|
151
|
+
function Zi(e, t) {
|
|
152
|
+
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
153
|
+
}
|
|
154
|
+
function mn(e) {
|
|
155
|
+
return !Zi(e, this.v);
|
|
156
|
+
}
|
|
157
|
+
var we = !1, Qt = !1;
|
|
158
|
+
function Yr(e, t) {
|
|
159
|
+
return e.label = t, Qi(e.v, t), e;
|
|
160
|
+
}
|
|
161
|
+
function Qi(e, t) {
|
|
162
|
+
return e?.[Ci]?.(t), e;
|
|
163
|
+
}
|
|
164
|
+
var I = null;
|
|
165
|
+
function Ze(e) {
|
|
166
|
+
I = e;
|
|
167
|
+
}
|
|
168
|
+
function wn(e, t = !1, r) {
|
|
169
|
+
I = {
|
|
170
|
+
p: I,
|
|
171
|
+
i: !1,
|
|
172
|
+
c: null,
|
|
173
|
+
e: null,
|
|
174
|
+
s: e,
|
|
175
|
+
x: null,
|
|
176
|
+
r: $,
|
|
177
|
+
l: Qt && !t ? {
|
|
178
|
+
s: null,
|
|
179
|
+
u: null,
|
|
180
|
+
$: []
|
|
181
|
+
} : null
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function yn(e) {
|
|
185
|
+
var t = I, r = t.e;
|
|
186
|
+
if (r !== null) {
|
|
187
|
+
t.e = null;
|
|
188
|
+
for (var n of r) Vn(n);
|
|
189
|
+
}
|
|
190
|
+
return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
|
|
191
|
+
}
|
|
192
|
+
function bt() {
|
|
193
|
+
return !Qt || I !== null && I.l === null;
|
|
194
|
+
}
|
|
195
|
+
var Ae = [];
|
|
196
|
+
function bn() {
|
|
197
|
+
var e = Ae;
|
|
198
|
+
Ae = [], xi(e);
|
|
199
|
+
}
|
|
200
|
+
function ye(e) {
|
|
201
|
+
if (Ae.length === 0 && !ht) {
|
|
202
|
+
var t = Ae;
|
|
203
|
+
queueMicrotask(() => {
|
|
204
|
+
t === Ae && bn();
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
Ae.push(e);
|
|
208
|
+
}
|
|
209
|
+
function es() {
|
|
210
|
+
for (; Ae.length > 0; ) bn();
|
|
211
|
+
}
|
|
212
|
+
function $n(e) {
|
|
213
|
+
var t = $;
|
|
214
|
+
if (t === null)
|
|
215
|
+
return E.f |= jt, e;
|
|
216
|
+
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
217
|
+
throw e;
|
|
218
|
+
Ee(e, t);
|
|
219
|
+
}
|
|
220
|
+
function Ee(e, t) {
|
|
221
|
+
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
222
|
+
for (; t !== null; ) {
|
|
223
|
+
if ((t.f & 128) !== 0) {
|
|
224
|
+
if ((t.f & 32768) === 0) throw e;
|
|
225
|
+
try {
|
|
226
|
+
t.b.error(e);
|
|
227
|
+
return;
|
|
228
|
+
} catch (r) {
|
|
229
|
+
e = r;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
t = t.parent;
|
|
233
|
+
}
|
|
234
|
+
throw e;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
var ts = ~(Y | qe | Q);
|
|
238
|
+
function C(e, t) {
|
|
239
|
+
e.f = e.f & ts | t;
|
|
240
|
+
}
|
|
241
|
+
function Er(e) {
|
|
242
|
+
(e.f & 512) !== 0 || e.deps === null ? C(e, Q) : C(e, qe);
|
|
243
|
+
}
|
|
244
|
+
function kn(e) {
|
|
245
|
+
if (e !== null)
|
|
246
|
+
for (const t of e)
|
|
247
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= wt, kn(t.deps));
|
|
248
|
+
}
|
|
249
|
+
function Sn(e, t, r) {
|
|
250
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), kn(e.deps), C(e, Q);
|
|
251
|
+
}
|
|
252
|
+
var rs = !1, St = !1;
|
|
253
|
+
function ns(e) {
|
|
254
|
+
var t = St;
|
|
255
|
+
try {
|
|
256
|
+
return St = !1, [e(), St];
|
|
257
|
+
} finally {
|
|
258
|
+
St = t;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function $t(e) {
|
|
262
|
+
var t = E, r = $;
|
|
263
|
+
te(null), de(null);
|
|
264
|
+
try {
|
|
265
|
+
return e();
|
|
266
|
+
} finally {
|
|
267
|
+
te(t), de(r);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function is(e) {
|
|
271
|
+
let t = 0, r = Fe(0), n;
|
|
272
|
+
return () => {
|
|
273
|
+
Ir() && (x(r), Pr(() => (t === 0 && (n = Dr(() => e(() => vt(r)))), t += 1, () => {
|
|
274
|
+
ye(() => {
|
|
275
|
+
t -= 1, t === 0 && (n?.(), n = void 0, vt(r));
|
|
276
|
+
});
|
|
277
|
+
})));
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
function En(e, t) {
|
|
281
|
+
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
282
|
+
}
|
|
283
|
+
function xr(e, t) {
|
|
284
|
+
En(e, t), t.add(e);
|
|
285
|
+
}
|
|
286
|
+
function y(e, t, r) {
|
|
287
|
+
En(e, t), t.set(e, r);
|
|
288
|
+
}
|
|
289
|
+
function b(e, t, r) {
|
|
290
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
291
|
+
throw new TypeError("Private element is not present on this object");
|
|
292
|
+
}
|
|
293
|
+
function w(e, t, r) {
|
|
294
|
+
return e.set(b(e, t), r), r;
|
|
295
|
+
}
|
|
296
|
+
function a(e, t) {
|
|
297
|
+
return e.get(b(e, t));
|
|
298
|
+
}
|
|
299
|
+
var ss = Sr | rt;
|
|
300
|
+
function as(e, t, r, n) {
|
|
301
|
+
new ls(e, t, r, n);
|
|
302
|
+
}
|
|
303
|
+
var se = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), ls = class {
|
|
304
|
+
constructor(e, t, r, n) {
|
|
305
|
+
xr(this, W), R(this, "parent", void 0), R(this, "is_pending", !1), R(this, "transform_error", void 0), y(this, se, void 0), y(this, ur, L ? M : null), y(this, ue, void 0), y(this, pt, void 0), y(this, J, void 0), y(this, ce, null), y(this, z, null), y(this, ne, null), y(this, Ce, null), y(this, Be, 0), y(this, Ne, 0), y(this, Et, !1), y(this, cr, /* @__PURE__ */ new Set()), y(this, dr, /* @__PURE__ */ new Set()), y(this, xe, null), y(this, Vr, is(() => (w(xe, this, Fe(a(Be, this))), () => {
|
|
306
|
+
w(xe, this, null);
|
|
307
|
+
}))), w(se, this, e), w(ue, this, t), w(pt, this, (i) => {
|
|
308
|
+
var s = $;
|
|
309
|
+
s.b = this, s.f |= 128, r(i);
|
|
310
|
+
}), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), w(J, this, Wr(() => {
|
|
311
|
+
if (L) {
|
|
312
|
+
const i = a(ur, this);
|
|
313
|
+
Zt();
|
|
314
|
+
const s = i.data === "[!";
|
|
315
|
+
if (i.data.startsWith("[?")) {
|
|
316
|
+
const l = JSON.parse(i.data.slice(2));
|
|
317
|
+
b(W, this, fs).call(this, l);
|
|
318
|
+
} else s ? b(W, this, us).call(this) : b(W, this, os).call(this);
|
|
319
|
+
} else b(W, this, Mn).call(this);
|
|
320
|
+
}, ss)), L && w(se, this, M);
|
|
321
|
+
}
|
|
322
|
+
defer_effect(e) {
|
|
323
|
+
Sn(e, a(cr, this), a(dr, this));
|
|
324
|
+
}
|
|
325
|
+
is_rendered() {
|
|
326
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
327
|
+
}
|
|
328
|
+
has_pending_snippet() {
|
|
329
|
+
return !!a(ue, this).pending;
|
|
330
|
+
}
|
|
331
|
+
update_pending_count(e, t) {
|
|
332
|
+
b(W, this, Tn).call(this, e, t), w(Be, this, a(Be, this) + e), !(!a(xe, this) || a(Et, this)) && (w(Et, this, !0), ye(() => {
|
|
333
|
+
w(Et, this, !1), a(xe, this) && et(a(xe, this), a(Be, this));
|
|
334
|
+
}));
|
|
335
|
+
}
|
|
336
|
+
get_effect_pending() {
|
|
337
|
+
return a(Vr, this).call(this), x(a(xe, this));
|
|
338
|
+
}
|
|
339
|
+
error(e) {
|
|
340
|
+
if (!a(ue, this).onerror && !a(ue, this).failed) throw e;
|
|
341
|
+
k?.is_fork ? (a(ce, this) && k.skip_effect(a(ce, this)), a(z, this) && k.skip_effect(a(z, this)), a(ne, this) && k.skip_effect(a(ne, this)), k.oncommit(() => {
|
|
342
|
+
b(W, this, Kr).call(this, e);
|
|
343
|
+
})) : b(W, this, Kr).call(this, e);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
function os() {
|
|
347
|
+
try {
|
|
348
|
+
w(ce, this, ee(() => a(pt, this).call(this, a(se, this))));
|
|
349
|
+
} catch (e) {
|
|
350
|
+
this.error(e);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function fs(e) {
|
|
354
|
+
const t = a(ue, this).failed, { reset: r, invoke_onerror: n } = b(W, this, xn).call(this, e);
|
|
355
|
+
ye(n), t && w(ne, this, ee(() => {
|
|
356
|
+
t(a(se, this), () => e, () => r);
|
|
357
|
+
}));
|
|
358
|
+
}
|
|
359
|
+
function xn(e) {
|
|
360
|
+
var t = !1, r = !1;
|
|
361
|
+
const n = () => {
|
|
362
|
+
if (t) {
|
|
363
|
+
Xi();
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
t = !0, r && Vi(), a(ne, this) !== null && Ue(a(ne, this), () => {
|
|
367
|
+
w(ne, this, null);
|
|
368
|
+
}), b(W, this, Tr).call(this, () => {
|
|
369
|
+
b(W, this, Mn).call(this);
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
return {
|
|
373
|
+
reset: n,
|
|
374
|
+
invoke_onerror: () => {
|
|
375
|
+
try {
|
|
376
|
+
r = !0, a(ue, this).onerror?.(e, n), r = !1;
|
|
377
|
+
} catch (s) {
|
|
378
|
+
Ee(s, a(J, this) && a(J, this).parent);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
function us() {
|
|
384
|
+
const e = a(ue, this).pending;
|
|
385
|
+
e && (this.is_pending = !0, w(z, this, ee(() => e(a(se, this)))), ye(() => {
|
|
386
|
+
var t = w(Ce, this, document.createDocumentFragment()), r = Z();
|
|
387
|
+
t.append(r), w(ce, this, b(W, this, Tr).call(this, () => ee(() => a(pt, this).call(this, r)))), a(Ne, this) === 0 && (a(se, this).before(t), w(Ce, this, null), Ue(a(z, this), () => {
|
|
388
|
+
w(z, this, null);
|
|
389
|
+
}), b(W, this, Mr).call(this, k));
|
|
390
|
+
}));
|
|
391
|
+
}
|
|
392
|
+
function Mn() {
|
|
393
|
+
try {
|
|
394
|
+
if (this.is_pending = this.has_pending_snippet(), w(Ne, this, 0), w(Be, this, 0), w(ce, this, ee(() => {
|
|
395
|
+
a(pt, this).call(this, a(se, this));
|
|
396
|
+
})), a(Ne, this) > 0) {
|
|
397
|
+
var e = w(Ce, this, document.createDocumentFragment());
|
|
398
|
+
Fr(a(ce, this), e);
|
|
399
|
+
const t = a(ue, this).pending;
|
|
400
|
+
w(z, this, ee(() => t(a(se, this))));
|
|
401
|
+
} else b(W, this, Mr).call(this, k);
|
|
402
|
+
} catch (t) {
|
|
403
|
+
this.error(t);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function Mr(e) {
|
|
407
|
+
this.is_pending = !1, e.transfer_effects(a(cr, this), a(dr, this));
|
|
408
|
+
}
|
|
409
|
+
function Tr(e) {
|
|
410
|
+
var t = $, r = E, n = I;
|
|
411
|
+
de(a(J, this)), te(a(J, this)), Ze(a(J, this).ctx);
|
|
412
|
+
try {
|
|
413
|
+
return Ge.ensure(), e();
|
|
414
|
+
} catch (i) {
|
|
415
|
+
return $n(i), null;
|
|
416
|
+
} finally {
|
|
417
|
+
de(t), te(r), Ze(n);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function Tn(e, t) {
|
|
421
|
+
if (!this.has_pending_snippet()) {
|
|
422
|
+
if (this.parent) {
|
|
423
|
+
var r;
|
|
424
|
+
b(W, r = this.parent, Tn).call(r, e, t);
|
|
425
|
+
}
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
w(Ne, this, a(Ne, this) + e), a(Ne, this) === 0 && (b(W, this, Mr).call(this, t), a(z, this) && Ue(a(z, this), () => {
|
|
429
|
+
w(z, this, null);
|
|
430
|
+
}), a(Ce, this) && (a(se, this).before(a(Ce, this)), w(Ce, this, null)));
|
|
431
|
+
}
|
|
432
|
+
function Kr(e) {
|
|
433
|
+
a(ce, this) && (q(a(ce, this)), w(ce, this, null)), a(z, this) && (q(a(z, this)), w(z, this, null)), a(ne, this) && (q(a(ne, this)), w(ne, this, null)), L && (U(a(ur, this)), Ji(), U(Ft()));
|
|
434
|
+
let t = a(ue, this).failed;
|
|
435
|
+
const r = (n) => {
|
|
436
|
+
const { reset: i, invoke_onerror: s } = b(W, this, xn).call(this, n);
|
|
437
|
+
s(), t && w(ne, this, b(W, this, Tr).call(this, () => {
|
|
438
|
+
try {
|
|
439
|
+
return ee(() => {
|
|
440
|
+
var l = $;
|
|
441
|
+
l.b = this, l.f |= 128, t(a(se, this), () => n, () => i);
|
|
442
|
+
});
|
|
443
|
+
} catch (l) {
|
|
444
|
+
return Ee(l, a(J, this).parent), null;
|
|
445
|
+
}
|
|
446
|
+
}));
|
|
447
|
+
};
|
|
448
|
+
ye(() => {
|
|
449
|
+
var n;
|
|
450
|
+
try {
|
|
451
|
+
n = this.transform_error(e);
|
|
452
|
+
} catch (i) {
|
|
453
|
+
Ee(i, a(J, this) && a(J, this).parent);
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => Ee(i, a(J, this) && a(J, this).parent)) : r(n);
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function cs(e, t, r, n) {
|
|
460
|
+
const i = bt() ? gt : Ar;
|
|
461
|
+
var s = e.filter((u) => !u.settled), l = t.map(i);
|
|
462
|
+
if (r.length === 0 && s.length === 0) {
|
|
463
|
+
n(l);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
var o = $, f = ds(), h = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
|
|
467
|
+
function v(u) {
|
|
468
|
+
if ((o.f & 16384) === 0) {
|
|
469
|
+
f();
|
|
470
|
+
try {
|
|
471
|
+
n([...l, ...u]);
|
|
472
|
+
} catch (g) {
|
|
473
|
+
Ee(g, o);
|
|
474
|
+
}
|
|
475
|
+
Dt();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var d = An();
|
|
479
|
+
if (r.length === 0) {
|
|
480
|
+
h.then(() => v([])).finally(d);
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
function c() {
|
|
484
|
+
Promise.all(r.map((u) => /* @__PURE__ */ hs(u))).then(v).catch((u) => Ee(u, o)).finally(d);
|
|
485
|
+
}
|
|
486
|
+
h ? h.then(() => {
|
|
487
|
+
f(), c(), Dt();
|
|
488
|
+
}) : c();
|
|
489
|
+
}
|
|
490
|
+
function ds() {
|
|
491
|
+
var e = $, t = E, r = I, n = k;
|
|
492
|
+
if (0) var i;
|
|
493
|
+
return function(l = !0) {
|
|
494
|
+
de(e), te(t), Ze(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
function Dt(e = !0) {
|
|
498
|
+
de(null), te(null), Ze(null), e && k?.deactivate();
|
|
499
|
+
}
|
|
500
|
+
function An() {
|
|
501
|
+
var e = $, t = e.b, r = k, n = !!t?.is_rendered();
|
|
502
|
+
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
503
|
+
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
// @__NO_SIDE_EFFECTS__
|
|
507
|
+
function gt(e) {
|
|
508
|
+
var t = 2 | Y;
|
|
509
|
+
return $ !== null && ($.f |= rt), {
|
|
510
|
+
ctx: I,
|
|
511
|
+
deps: null,
|
|
512
|
+
effects: null,
|
|
513
|
+
equals: gn,
|
|
514
|
+
f: t,
|
|
515
|
+
fn: e,
|
|
516
|
+
reactions: null,
|
|
517
|
+
rv: 0,
|
|
518
|
+
v: P,
|
|
519
|
+
wv: 0,
|
|
520
|
+
parent: $,
|
|
521
|
+
ac: null
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
var at = /* @__PURE__ */ Symbol("obsolete");
|
|
525
|
+
// @__NO_SIDE_EFFECTS__
|
|
526
|
+
function hs(e, t, r) {
|
|
527
|
+
let n = $;
|
|
528
|
+
n === null && Wi();
|
|
529
|
+
var i = void 0, s = Fe(P), l = !E, o = /* @__PURE__ */ new Set();
|
|
530
|
+
return Os(() => {
|
|
531
|
+
var f = $, h = vn();
|
|
532
|
+
i = h.promise;
|
|
533
|
+
try {
|
|
534
|
+
Promise.resolve(e()).then(h.resolve, (u) => {
|
|
535
|
+
u !== yt && h.reject(u);
|
|
536
|
+
}).finally(Dt);
|
|
537
|
+
} catch (u) {
|
|
538
|
+
h.reject(u), Dt();
|
|
539
|
+
}
|
|
540
|
+
var v = k;
|
|
541
|
+
if (l) {
|
|
542
|
+
if ((f.f & 32768) !== 0) var d = An();
|
|
543
|
+
if (n.b?.is_rendered()) v.async_deriveds.get(f)?.reject(at);
|
|
544
|
+
else for (const u of o.values()) u.reject(at);
|
|
545
|
+
o.add(h), v.async_deriveds.set(f, h);
|
|
546
|
+
}
|
|
547
|
+
const c = (u, g = void 0) => {
|
|
548
|
+
d?.(), o.delete(h), g !== at && (v.activate(), g ? (s.f |= jt, et(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= jt), et(s, u)), v.deactivate());
|
|
549
|
+
};
|
|
550
|
+
h.promise.then(c, (u) => c(null, u || "unknown"));
|
|
551
|
+
}), Yn(() => {
|
|
552
|
+
for (const f of o) f.reject(at);
|
|
553
|
+
}), new Promise((f) => {
|
|
554
|
+
function h(v) {
|
|
555
|
+
function d() {
|
|
556
|
+
v === i ? f(s) : h(i);
|
|
557
|
+
}
|
|
558
|
+
v.then(d, d);
|
|
559
|
+
}
|
|
560
|
+
h(i);
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
// @__NO_SIDE_EFFECTS__
|
|
564
|
+
function tr(e) {
|
|
565
|
+
const t = /* @__PURE__ */ gt(e);
|
|
566
|
+
return we || ei(t), t;
|
|
567
|
+
}
|
|
568
|
+
// @__NO_SIDE_EFFECTS__
|
|
569
|
+
function Ar(e) {
|
|
570
|
+
const t = /* @__PURE__ */ gt(e);
|
|
571
|
+
return t.equals = mn, t;
|
|
572
|
+
}
|
|
573
|
+
function vs(e) {
|
|
574
|
+
var t = e.effects;
|
|
575
|
+
if (t !== null) {
|
|
576
|
+
e.effects = null;
|
|
577
|
+
for (var r = 0; r < t.length; r += 1) q(t[r]);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
function Lr(e) {
|
|
581
|
+
var t, r = $, n = e.parent;
|
|
582
|
+
if (!be && n !== null && e.v !== P && (n.f & 24576) !== 0)
|
|
583
|
+
return Ki(), e.v;
|
|
584
|
+
de(n);
|
|
585
|
+
try {
|
|
586
|
+
e.f &= ~wt, vs(e), t = ii(e);
|
|
587
|
+
} finally {
|
|
588
|
+
de(r);
|
|
589
|
+
}
|
|
590
|
+
return t;
|
|
591
|
+
}
|
|
592
|
+
function Ln(e) {
|
|
593
|
+
var t = Lr(e);
|
|
594
|
+
if (!e.equals(t) && (e.wv = ri(), (!k?.is_fork || e.deps === null) && (k !== null ? (k.capture(e, t, !0), hr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
595
|
+
C(e, Q);
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
be || (D !== null ? (Ir() || k?.is_fork) && D.set(e, t) : Er(e));
|
|
599
|
+
}
|
|
600
|
+
function _s(e) {
|
|
601
|
+
if (e.effects !== null)
|
|
602
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $t(() => {
|
|
603
|
+
t.ac.abort(yt), t.ac = null;
|
|
604
|
+
}), t.fn !== null && (t.teardown = Ei), mt(t, 0), jr(t));
|
|
605
|
+
}
|
|
606
|
+
function Rn(e) {
|
|
607
|
+
if (e.effects !== null)
|
|
608
|
+
for (const t of e.effects) t.teardown && t.fn !== null && tt(t);
|
|
609
|
+
}
|
|
610
|
+
var On, qt = null, ze = null, k = null, hr = null, D = null, vr = null, ht = !1, rr = !1, Qe = null, Gt = null, Cn = 0;
|
|
611
|
+
var ps = 1, Ut = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Ge = class Nn {
|
|
612
|
+
constructor() {
|
|
613
|
+
xr(this, N), R(this, "id", ps++), y(this, Ut, !1), R(this, "linked", !0), y(this, Ie, null), y(this, Le, null), R(this, "async_deriveds", /* @__PURE__ */ new Map()), R(this, "current", /* @__PURE__ */ new Map()), R(this, "previous", /* @__PURE__ */ new Map()), y(this, Ht, /* @__PURE__ */ new Set()), y(this, xt, /* @__PURE__ */ new Set()), y(this, Ye, 0), y(this, Te, /* @__PURE__ */ new Map()), y(this, lt, null), y(this, X, []), y(this, _r, []), y(this, je, /* @__PURE__ */ new Set()), y(this, me, /* @__PURE__ */ new Set()), y(this, Se, /* @__PURE__ */ new Map()), y(this, Rt, /* @__PURE__ */ new Set()), R(this, "is_fork", !1), y(this, ot, !1), ze === null ? qt = ze = this : (w(Le, ze, this), w(Ie, this, ze)), ze = this;
|
|
614
|
+
}
|
|
615
|
+
skip_effect(t) {
|
|
616
|
+
a(Se, this).has(t) || a(Se, this).set(t, {
|
|
617
|
+
d: [],
|
|
618
|
+
m: []
|
|
619
|
+
}), a(Rt, this).delete(t);
|
|
620
|
+
}
|
|
621
|
+
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
622
|
+
var n = a(Se, this).get(t);
|
|
623
|
+
if (n) {
|
|
624
|
+
a(Se, this).delete(t);
|
|
625
|
+
for (var i of n.d)
|
|
626
|
+
C(i, Y), r(i);
|
|
627
|
+
for (i of n.m)
|
|
628
|
+
C(i, qe), r(i);
|
|
629
|
+
}
|
|
630
|
+
a(Rt, this).add(t);
|
|
631
|
+
}
|
|
632
|
+
capture(t, r, n = !1) {
|
|
633
|
+
t.v !== P && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), D?.set(t, r)), this.is_fork || (t.v = r);
|
|
634
|
+
}
|
|
635
|
+
activate() {
|
|
636
|
+
k = this;
|
|
637
|
+
}
|
|
638
|
+
deactivate() {
|
|
639
|
+
k = null, D = null;
|
|
640
|
+
}
|
|
641
|
+
flush() {
|
|
642
|
+
try {
|
|
643
|
+
rr = !0, k = this, b(N, this, Bt).call(this);
|
|
644
|
+
} finally {
|
|
645
|
+
Cn = 0, vr = null, Qe = null, Gt = null, rr = !1, k = null, D = null, Pe.clear();
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
discard() {
|
|
649
|
+
for (const t of a(xt, this)) t(this);
|
|
650
|
+
a(xt, this).clear();
|
|
651
|
+
for (const t of this.async_deriveds.values()) t.reject(at);
|
|
652
|
+
b(N, this, zt).call(this), a(lt, this)?.resolve();
|
|
653
|
+
}
|
|
654
|
+
register_created_effect(t) {
|
|
655
|
+
a(_r, this).push(t);
|
|
656
|
+
}
|
|
657
|
+
increment(t, r) {
|
|
658
|
+
if (w(Ye, this, a(Ye, this) + 1), t) {
|
|
659
|
+
let n = a(Te, this).get(r) ?? 0;
|
|
660
|
+
a(Te, this).set(r, n + 1);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
decrement(t, r) {
|
|
664
|
+
if (w(Ye, this, a(Ye, this) - 1), t) {
|
|
665
|
+
let n = a(Te, this).get(r) ?? 0;
|
|
666
|
+
n === 1 ? a(Te, this).delete(r) : a(Te, this).set(r, n - 1);
|
|
667
|
+
}
|
|
668
|
+
a(ot, this) || (w(ot, this, !0), ye(() => {
|
|
669
|
+
w(ot, this, !1), this.linked && this.flush();
|
|
670
|
+
}));
|
|
671
|
+
}
|
|
672
|
+
transfer_effects(t, r) {
|
|
673
|
+
for (const n of t) a(je, this).add(n);
|
|
674
|
+
for (const n of r) a(me, this).add(n);
|
|
675
|
+
t.clear(), r.clear();
|
|
676
|
+
}
|
|
677
|
+
oncommit(t) {
|
|
678
|
+
a(Ht, this).add(t);
|
|
679
|
+
}
|
|
680
|
+
ondiscard(t) {
|
|
681
|
+
a(xt, this).add(t);
|
|
682
|
+
}
|
|
683
|
+
settled() {
|
|
684
|
+
return (a(lt, this) ?? w(lt, this, vn())).promise;
|
|
685
|
+
}
|
|
686
|
+
static ensure() {
|
|
687
|
+
if (k === null) {
|
|
688
|
+
const t = k = new Nn();
|
|
689
|
+
!rr && !ht && ye(() => {
|
|
690
|
+
a(Ut, t) || t.flush();
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
return k;
|
|
694
|
+
}
|
|
695
|
+
apply() {
|
|
696
|
+
if (!we || !this.is_fork && a(Ie, this) === null && a(Le, this) === null) {
|
|
697
|
+
D = null;
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
D = /* @__PURE__ */ new Map();
|
|
701
|
+
for (const [r, [n]] of this.current) D.set(r, n);
|
|
702
|
+
for (let r = qt; r !== null; r = a(Le, r))
|
|
703
|
+
if (!(r === this || r.is_fork)) {
|
|
704
|
+
var t = !1;
|
|
705
|
+
if (r.id < this.id) {
|
|
706
|
+
for (const [n, [, i]] of r.current)
|
|
707
|
+
if (!i && this.current.has(n)) {
|
|
708
|
+
t = !0;
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
if (!t)
|
|
713
|
+
for (const [n, i] of r.previous) D.has(n) || D.set(n, i);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
schedule(t) {
|
|
717
|
+
if (vr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
718
|
+
t.b.defer_effect(t);
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
for (var r = t; r.parent !== null; ) {
|
|
722
|
+
r = r.parent;
|
|
723
|
+
var n = r.f;
|
|
724
|
+
if (Qe !== null && r === $ && (we || (E === null || (E.f & 2) === 0) && !rs))
|
|
725
|
+
return;
|
|
726
|
+
if ((n & 96) !== 0) {
|
|
727
|
+
if ((n & 1024) === 0) return;
|
|
728
|
+
r.f ^= Q;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
a(X, this).push(r);
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
On = Ge;
|
|
735
|
+
function Xr() {
|
|
736
|
+
if (this.is_fork) return !0;
|
|
737
|
+
for (const r of a(Te, this).keys()) {
|
|
738
|
+
for (var e = r, t = !1; e.parent !== null; ) {
|
|
739
|
+
if (a(Se, this).has(e)) {
|
|
740
|
+
t = !0;
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
e = e.parent;
|
|
744
|
+
}
|
|
745
|
+
if (!t) return !0;
|
|
746
|
+
}
|
|
747
|
+
return !1;
|
|
748
|
+
}
|
|
749
|
+
function Bt() {
|
|
750
|
+
w(Ut, this, !0), Cn++ > 1e3 && (b(N, this, zt).call(this), ys());
|
|
751
|
+
for (const o of a(je, this))
|
|
752
|
+
a(me, this).delete(o), C(o, Y), this.schedule(o);
|
|
753
|
+
for (const o of a(me, this))
|
|
754
|
+
C(o, qe), this.schedule(o);
|
|
755
|
+
const e = a(X, this);
|
|
756
|
+
w(X, this, []), this.apply();
|
|
757
|
+
var t = Qe = [], r = [], n = Gt = [];
|
|
758
|
+
for (const o of e) try {
|
|
759
|
+
b(N, this, In).call(this, o, t, r);
|
|
760
|
+
} catch (f) {
|
|
761
|
+
throw jn(o), b(N, this, Xr).call(this) || this.discard(), f;
|
|
762
|
+
}
|
|
763
|
+
if (k = null, n.length > 0) {
|
|
764
|
+
var i = On.ensure();
|
|
765
|
+
for (const o of n) i.schedule(o);
|
|
766
|
+
}
|
|
767
|
+
if (Qe = null, Gt = null, b(N, this, Xr).call(this)) {
|
|
768
|
+
b(N, this, ft).call(this, r), b(N, this, ft).call(this, t);
|
|
769
|
+
for (const [o, f] of a(Se, this)) Wn(o, f);
|
|
770
|
+
n.length > 0 && b(N, k, Bt).call(k);
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
const s = b(N, this, gs).call(this);
|
|
774
|
+
if (s) {
|
|
775
|
+
b(N, this, ft).call(this, r), b(N, this, ft).call(this, t), b(N, s, ms).call(s, this);
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
a(je, this).clear(), a(me, this).clear();
|
|
779
|
+
for (const o of a(Ht, this)) o(this);
|
|
780
|
+
a(Ht, this).clear(), hr = this, Jr(r), Jr(t), hr = null, a(lt, this)?.resolve();
|
|
781
|
+
var l = k;
|
|
782
|
+
if (a(Ye, this) === 0 && (a(X, this).length === 0 || l !== null) && (b(N, this, zt).call(this), we && (b(N, this, ws).call(this), k = l)), a(X, this).length > 0) if (l !== null) {
|
|
783
|
+
const o = l;
|
|
784
|
+
a(X, o).push(...a(X, this).filter((f) => !a(X, o).includes(f)));
|
|
785
|
+
} else l = this;
|
|
786
|
+
l !== null && b(N, l, Bt).call(l);
|
|
787
|
+
}
|
|
788
|
+
function In(e, t, r) {
|
|
789
|
+
e.f ^= Q;
|
|
790
|
+
for (var n = e.first; n !== null; ) {
|
|
791
|
+
var i = n.f, s = (i & 96) !== 0;
|
|
792
|
+
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Se, this).has(n)) && n.fn !== null) {
|
|
793
|
+
s ? n.f ^= Q : (i & 4) !== 0 ? t.push(n) : we && (i & 16777224) !== 0 ? r.push(n) : kt(n) && ((i & 16) !== 0 && a(me, this).add(n), tt(n));
|
|
794
|
+
var l = n.first;
|
|
795
|
+
if (l !== null) {
|
|
796
|
+
n = l;
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
for (; n !== null; ) {
|
|
801
|
+
var o = n.next;
|
|
802
|
+
if (o !== null) {
|
|
803
|
+
n = o;
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
n = n.parent;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
function gs() {
|
|
811
|
+
for (var e = a(Ie, this); e !== null; ) {
|
|
812
|
+
if (!e.is_fork) {
|
|
813
|
+
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
814
|
+
}
|
|
815
|
+
e = a(Ie, e);
|
|
816
|
+
}
|
|
817
|
+
return null;
|
|
818
|
+
}
|
|
819
|
+
function ms(e) {
|
|
820
|
+
for (const [r, n] of e.current)
|
|
821
|
+
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
822
|
+
for (const [r, n] of e.async_deriveds) {
|
|
823
|
+
const i = this.async_deriveds.get(r);
|
|
824
|
+
i && n.promise.then(i.resolve).catch(i.reject);
|
|
825
|
+
}
|
|
826
|
+
e.async_deriveds.clear(), this.transfer_effects(a(je, e), a(me, e));
|
|
827
|
+
const t = (r) => {
|
|
828
|
+
var n = r.reactions;
|
|
829
|
+
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
830
|
+
for (const l of n) {
|
|
831
|
+
var i = l.f;
|
|
832
|
+
if ((i & 2) !== 0) t(l);
|
|
833
|
+
else {
|
|
834
|
+
var s = l;
|
|
835
|
+
i & 4194320 && !this.async_deriveds.has(s) && (a(me, this).delete(s), C(s, Y), this.schedule(s));
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
for (const r of this.current.keys()) t(r);
|
|
840
|
+
this.oncommit(() => e.discard()), b(N, e, zt).call(e), k = this, b(N, this, Bt).call(this);
|
|
841
|
+
}
|
|
842
|
+
function ft(e) {
|
|
843
|
+
for (var t = 0; t < e.length; t += 1) Sn(e[t], a(je, this), a(me, this));
|
|
844
|
+
}
|
|
845
|
+
function ws() {
|
|
846
|
+
for (let v = qt; v !== null; v = a(Le, v)) {
|
|
847
|
+
var e = v.id < this.id, t = [];
|
|
848
|
+
for (const [d, [c, u]] of this.current) {
|
|
849
|
+
if (v.current.has(d)) {
|
|
850
|
+
var r = v.current.get(d)[0];
|
|
851
|
+
if (e && c !== r) v.current.set(d, [c, u]);
|
|
852
|
+
else continue;
|
|
853
|
+
}
|
|
854
|
+
t.push(d);
|
|
855
|
+
}
|
|
856
|
+
if (e) for (const [d, c] of this.async_deriveds) {
|
|
857
|
+
const u = v.async_deriveds.get(d);
|
|
858
|
+
u && c.promise.then(u.resolve).catch(u.reject);
|
|
859
|
+
}
|
|
860
|
+
var n = [...v.current.keys()].filter((d) => !v.current.get(d)[1]);
|
|
861
|
+
if (!(!a(Ut, v) || n.length === 0)) {
|
|
862
|
+
var i = n.filter((d) => !this.current.has(d));
|
|
863
|
+
if (i.length === 0)
|
|
864
|
+
e && v.discard();
|
|
865
|
+
else if (t.length > 0) {
|
|
866
|
+
if (e) for (const d of a(Rt, this)) v.unskip_effect(d, (c) => {
|
|
867
|
+
(c.f & 4194320) !== 0 ? v.schedule(c) : b(N, v, ft).call(v, [c]);
|
|
868
|
+
});
|
|
869
|
+
v.activate();
|
|
870
|
+
var s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
871
|
+
for (var o of t) Pn(o, i, s, l);
|
|
872
|
+
l = /* @__PURE__ */ new Map();
|
|
873
|
+
var f = [...v.current].filter(([d, c]) => {
|
|
874
|
+
const u = this.current.get(d);
|
|
875
|
+
return u ? u[0] !== c[0] || u[1] !== c[1] : !0;
|
|
876
|
+
}).map(([d]) => d);
|
|
877
|
+
if (f.length > 0)
|
|
878
|
+
for (const d of a(_r, this)) (d.f & 155648) === 0 && Rr(d, f, l) && ((d.f & 4194320) !== 0 ? (C(d, Y), v.schedule(d)) : a(je, v).add(d));
|
|
879
|
+
if (a(X, v).length > 0 && !a(ot, v)) {
|
|
880
|
+
v.apply();
|
|
881
|
+
for (var h of a(X, v)) b(N, v, In).call(v, h, [], []);
|
|
882
|
+
w(X, v, []);
|
|
883
|
+
}
|
|
884
|
+
v.deactivate();
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
function zt() {
|
|
890
|
+
if (this.linked) {
|
|
891
|
+
var e = a(Ie, this), t = a(Le, this);
|
|
892
|
+
e === null ? qt = t : w(Le, e, t), t === null ? ze = e : w(Ie, t, e), this.linked = !1;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
function pr(e) {
|
|
896
|
+
var t = ht;
|
|
897
|
+
ht = !0;
|
|
898
|
+
try {
|
|
899
|
+
var r;
|
|
900
|
+
for (e && (k !== null && !k.is_fork && k.flush(), r = e()); ; ) {
|
|
901
|
+
if (es(), k === null) return r;
|
|
902
|
+
k.flush();
|
|
903
|
+
}
|
|
904
|
+
} finally {
|
|
905
|
+
ht = t;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
function ys() {
|
|
909
|
+
if (0) {
|
|
910
|
+
var e;
|
|
911
|
+
for (const r of k.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
912
|
+
var t;
|
|
913
|
+
}
|
|
914
|
+
try {
|
|
915
|
+
Gi();
|
|
916
|
+
} catch (r) {
|
|
917
|
+
Ee(r, vr);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
var oe = null;
|
|
921
|
+
function Jr(e) {
|
|
922
|
+
var t = e.length;
|
|
923
|
+
if (t !== 0) {
|
|
924
|
+
for (var r = 0; r < t; ) {
|
|
925
|
+
var n = e[r++];
|
|
926
|
+
if ((n.f & 24576) === 0 && kt(n) && (oe = /* @__PURE__ */ new Set(), tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Jn(n), oe?.size > 0)) {
|
|
927
|
+
Pe.clear();
|
|
928
|
+
for (const i of oe) {
|
|
929
|
+
if ((i.f & 24576) !== 0) continue;
|
|
930
|
+
const s = [i];
|
|
931
|
+
let l = i.parent;
|
|
932
|
+
for (; l !== null; )
|
|
933
|
+
oe.has(l) && (oe.delete(l), s.push(l)), l = l.parent;
|
|
934
|
+
for (let o = s.length - 1; o >= 0; o--) {
|
|
935
|
+
const f = s[o];
|
|
936
|
+
(f.f & 24576) === 0 && tt(f);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
oe.clear();
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
oe = null;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
function Pn(e, t, r, n) {
|
|
946
|
+
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
947
|
+
for (const i of e.reactions) {
|
|
948
|
+
const s = i.f;
|
|
949
|
+
(s & 2) !== 0 ? Pn(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Rr(i, t, n) && (C(i, Y), Or(i));
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
function Rr(e, t, r) {
|
|
953
|
+
const n = r.get(e);
|
|
954
|
+
if (n !== void 0) return n;
|
|
955
|
+
if (e.deps !== null) for (const i of e.deps) {
|
|
956
|
+
if (It.call(t, i)) return !0;
|
|
957
|
+
if ((i.f & 2) !== 0 && Rr(i, t, r))
|
|
958
|
+
return r.set(i, !0), !0;
|
|
959
|
+
}
|
|
960
|
+
return r.set(e, !1), !1;
|
|
961
|
+
}
|
|
962
|
+
function Or(e) {
|
|
963
|
+
k.schedule(e);
|
|
964
|
+
}
|
|
965
|
+
function Wn(e, t) {
|
|
966
|
+
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
967
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), C(e, Q);
|
|
968
|
+
for (var r = e.first; r !== null; )
|
|
969
|
+
Wn(r, t), r = r.next;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
function jn(e) {
|
|
973
|
+
C(e, Q);
|
|
974
|
+
for (var t = e.first; t !== null; )
|
|
975
|
+
jn(t), t = t.next;
|
|
976
|
+
}
|
|
977
|
+
var Yt = /* @__PURE__ */ new Set(), Pe = /* @__PURE__ */ new Map();
|
|
978
|
+
var Fn = !1;
|
|
979
|
+
function Fe(e, t) {
|
|
980
|
+
var r = {
|
|
981
|
+
f: 0,
|
|
982
|
+
v: e,
|
|
983
|
+
reactions: null,
|
|
984
|
+
equals: gn,
|
|
985
|
+
rv: 0,
|
|
986
|
+
wv: 0
|
|
987
|
+
};
|
|
988
|
+
return r;
|
|
989
|
+
}
|
|
990
|
+
// @__NO_SIDE_EFFECTS__
|
|
991
|
+
function pe(e, t) {
|
|
992
|
+
const r = Fe(e, t);
|
|
993
|
+
return ei(r), r;
|
|
994
|
+
}
|
|
995
|
+
// @__NO_SIDE_EFFECTS__
|
|
996
|
+
function Dn(e, t = !1, r = !0) {
|
|
997
|
+
const n = Fe(e);
|
|
998
|
+
if (t || (n.equals = mn), Qt && r && I !== null && I.l !== null) {
|
|
999
|
+
var i;
|
|
1000
|
+
((i = I.l).s ?? (i.s = [])).push(n);
|
|
1001
|
+
}
|
|
1002
|
+
return n;
|
|
1003
|
+
}
|
|
1004
|
+
function fe(e, t, r = !1) {
|
|
1005
|
+
E !== null && (!ie || (E.f & 131072) !== 0) && bt() && (E.f & 4325394) !== 0 && (ae === null || !ae.has(e)) && Yi();
|
|
1006
|
+
let n = r ? Ke(t) : t;
|
|
1007
|
+
return et(e, n, Gt);
|
|
1008
|
+
}
|
|
1009
|
+
function et(e, t, r = null) {
|
|
1010
|
+
if (!e.equals(t)) {
|
|
1011
|
+
Pe.set(e, be ? t : e.v);
|
|
1012
|
+
var n = Ge.ensure();
|
|
1013
|
+
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
1014
|
+
const i = e;
|
|
1015
|
+
(e.f & 2048) !== 0 && Lr(i), D === null && Er(i);
|
|
1016
|
+
}
|
|
1017
|
+
e.wv = ri(), qn(e, Y, r), bt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (K === null ? Ps([e]) : K.push(e)), !n.is_fork && Yt.size > 0 && !Fn && bs();
|
|
1018
|
+
}
|
|
1019
|
+
return t;
|
|
1020
|
+
}
|
|
1021
|
+
function bs() {
|
|
1022
|
+
Fn = !1;
|
|
1023
|
+
for (const e of Yt) {
|
|
1024
|
+
(e.f & 1024) !== 0 && C(e, qe);
|
|
1025
|
+
let t;
|
|
1026
|
+
try {
|
|
1027
|
+
t = kt(e);
|
|
1028
|
+
} catch {
|
|
1029
|
+
t = !0;
|
|
1030
|
+
}
|
|
1031
|
+
t && tt(e);
|
|
1032
|
+
}
|
|
1033
|
+
Yt.clear();
|
|
1034
|
+
}
|
|
1035
|
+
function vt(e) {
|
|
1036
|
+
fe(e, e.v + 1);
|
|
1037
|
+
}
|
|
1038
|
+
function qn(e, t, r) {
|
|
1039
|
+
var n = e.reactions;
|
|
1040
|
+
if (n !== null)
|
|
1041
|
+
for (var i = bt(), s = n.length, l = 0; l < s; l++) {
|
|
1042
|
+
var o = n[l], f = o.f;
|
|
1043
|
+
if (!(!i && o === $)) {
|
|
1044
|
+
var h = (f & Y) === 0;
|
|
1045
|
+
if (h && C(o, t), (f & 131072) !== 0) Yt.add(o);
|
|
1046
|
+
else if ((f & 2) !== 0) {
|
|
1047
|
+
var v = o;
|
|
1048
|
+
D?.delete(v), (f & 65536) === 0 && (f & 512 && ($ === null || ($.f & 2097152) === 0) && (o.f |= wt), qn(v, qe, r));
|
|
1049
|
+
} else if (h) {
|
|
1050
|
+
var d = o;
|
|
1051
|
+
(f & 16) !== 0 && oe !== null && oe.add(d), r !== null ? r.push(d) : Or(d);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
var $s = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
1057
|
+
function Ke(e) {
|
|
1058
|
+
if (typeof e != "object" || e === null || dt in e) return e;
|
|
1059
|
+
const t = hn(e);
|
|
1060
|
+
if (t !== ki && t !== Si) return e;
|
|
1061
|
+
var r = /* @__PURE__ */ new Map(), n = dn(e), i = /* @__PURE__ */ pe(0), s = null, l = We, o = (d) => {
|
|
1062
|
+
if (We === l) return d();
|
|
1063
|
+
var c = E, u = We;
|
|
1064
|
+
te(null), rn(l);
|
|
1065
|
+
var g = d();
|
|
1066
|
+
return te(c), rn(u), g;
|
|
1067
|
+
};
|
|
1068
|
+
n && r.set("length", /* @__PURE__ */ pe(e.length, s));
|
|
1069
|
+
var f = "";
|
|
1070
|
+
let h = !1;
|
|
1071
|
+
function v(d) {
|
|
1072
|
+
if (!h) {
|
|
1073
|
+
h = !0, f = d, Yr(i, `${f} version`);
|
|
1074
|
+
for (const [c, u] of r) Yr(u, ks(f, c));
|
|
1075
|
+
h = !1;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
return new Proxy(e, {
|
|
1079
|
+
defineProperty(d, c, u) {
|
|
1080
|
+
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Bi();
|
|
1081
|
+
var g = r.get(c);
|
|
1082
|
+
return g === void 0 ? o(() => {
|
|
1083
|
+
var m = /* @__PURE__ */ pe(u.value, s);
|
|
1084
|
+
return r.set(c, m), m;
|
|
1085
|
+
}) : fe(g, u.value, !0), !0;
|
|
1086
|
+
},
|
|
1087
|
+
deleteProperty(d, c) {
|
|
1088
|
+
var u = r.get(c);
|
|
1089
|
+
if (u === void 0) {
|
|
1090
|
+
if (c in d) {
|
|
1091
|
+
const g = o(() => /* @__PURE__ */ pe(P, s));
|
|
1092
|
+
r.set(c, g), vt(i);
|
|
1093
|
+
}
|
|
1094
|
+
} else
|
|
1095
|
+
fe(u, P), vt(i);
|
|
1096
|
+
return !0;
|
|
1097
|
+
},
|
|
1098
|
+
get(d, c, u) {
|
|
1099
|
+
if (c === dt) return e;
|
|
1100
|
+
var g = r.get(c), m = c in d;
|
|
1101
|
+
if (g === void 0 && (!m || Oe(d, c)?.writable) && (g = o(() => {
|
|
1102
|
+
var p = /* @__PURE__ */ pe(Ke(m ? d[c] : P), s);
|
|
1103
|
+
return p;
|
|
1104
|
+
}), r.set(c, g)), g !== void 0) {
|
|
1105
|
+
var _ = x(g);
|
|
1106
|
+
return _ === P ? void 0 : _;
|
|
1107
|
+
}
|
|
1108
|
+
return Reflect.get(d, c, u);
|
|
1109
|
+
},
|
|
1110
|
+
getOwnPropertyDescriptor(d, c) {
|
|
1111
|
+
var u = Reflect.getOwnPropertyDescriptor(d, c);
|
|
1112
|
+
if (u && "value" in u) {
|
|
1113
|
+
var g = r.get(c);
|
|
1114
|
+
g && (u.value = x(g));
|
|
1115
|
+
} else if (u === void 0) {
|
|
1116
|
+
var m = r.get(c), _ = m?.v;
|
|
1117
|
+
if (m !== void 0 && _ !== P) return {
|
|
1118
|
+
enumerable: !0,
|
|
1119
|
+
configurable: !0,
|
|
1120
|
+
value: _,
|
|
1121
|
+
writable: !0
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
return u;
|
|
1125
|
+
},
|
|
1126
|
+
has(d, c) {
|
|
1127
|
+
if (c === dt) return !0;
|
|
1128
|
+
var u = r.get(c), g = u !== void 0 && u.v !== P || Reflect.has(d, c);
|
|
1129
|
+
return (u !== void 0 || $ !== null && (!g || Oe(d, c)?.writable)) && (u === void 0 && (u = o(() => {
|
|
1130
|
+
var m = /* @__PURE__ */ pe(g ? Ke(d[c]) : P, s);
|
|
1131
|
+
return m;
|
|
1132
|
+
}), r.set(c, u)), x(u) === P) ? !1 : g;
|
|
1133
|
+
},
|
|
1134
|
+
set(d, c, u, g) {
|
|
1135
|
+
var m = r.get(c), _ = c in d;
|
|
1136
|
+
if (n && c === "length") for (var p = u; p < m.v; p += 1) {
|
|
1137
|
+
var T = r.get(p + "");
|
|
1138
|
+
T !== void 0 ? fe(T, P) : p in d && (T = o(() => /* @__PURE__ */ pe(P, s)), r.set(p + "", T));
|
|
1139
|
+
}
|
|
1140
|
+
if (m === void 0)
|
|
1141
|
+
(!_ || Oe(d, c)?.writable) && (m = o(() => /* @__PURE__ */ pe(void 0, s)), fe(m, Ke(u)), r.set(c, m));
|
|
1142
|
+
else {
|
|
1143
|
+
_ = m.v !== P;
|
|
1144
|
+
var A = o(() => Ke(u));
|
|
1145
|
+
fe(m, A);
|
|
1146
|
+
}
|
|
1147
|
+
var S = Reflect.getOwnPropertyDescriptor(d, c);
|
|
1148
|
+
if (S?.set && S.set.call(g, u), !_) {
|
|
1149
|
+
if (n && typeof c == "string") {
|
|
1150
|
+
var F = r.get("length"), O = Number(c);
|
|
1151
|
+
Number.isInteger(O) && O >= F.v && fe(F, O + 1);
|
|
1152
|
+
}
|
|
1153
|
+
vt(i);
|
|
1154
|
+
}
|
|
1155
|
+
return !0;
|
|
1156
|
+
},
|
|
1157
|
+
ownKeys(d) {
|
|
1158
|
+
x(i);
|
|
1159
|
+
var c = Reflect.ownKeys(d).filter((m) => {
|
|
1160
|
+
var _ = r.get(m);
|
|
1161
|
+
return _ === void 0 || _.v !== P;
|
|
1162
|
+
});
|
|
1163
|
+
for (var [u, g] of r) g.v !== P && !(u in d) && c.push(u);
|
|
1164
|
+
return c;
|
|
1165
|
+
},
|
|
1166
|
+
setPrototypeOf() {
|
|
1167
|
+
zi();
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
function ks(e, t) {
|
|
1172
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : $s.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1173
|
+
}
|
|
1174
|
+
var Zr, Ss, Gn, Un, Hn;
|
|
1175
|
+
function gr() {
|
|
1176
|
+
if (Zr === void 0) {
|
|
1177
|
+
Zr = window, Ss = document, Gn = /Firefox/.test(navigator.userAgent);
|
|
1178
|
+
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1179
|
+
Un = Oe(t, "firstChild").get, Hn = Oe(t, "nextSibling").get, Hr(e) && (e[Ni] = void 0, e[fr] = null, e[Ii] = void 0, e.__e = void 0), Hr(r) && (r[Lt] = void 0);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
function Z(e = "") {
|
|
1183
|
+
return document.createTextNode(e);
|
|
1184
|
+
}
|
|
1185
|
+
// @__NO_SIDE_EFFECTS__
|
|
1186
|
+
function De(e) {
|
|
1187
|
+
return Un.call(e);
|
|
1188
|
+
}
|
|
1189
|
+
// @__NO_SIDE_EFFECTS__
|
|
1190
|
+
function he(e) {
|
|
1191
|
+
return Hn.call(e);
|
|
1192
|
+
}
|
|
1193
|
+
function Qr(e, t) {
|
|
1194
|
+
if (!L) return /* @__PURE__ */ De(e);
|
|
1195
|
+
var r = /* @__PURE__ */ De(M);
|
|
1196
|
+
if (r === null) r = M.appendChild(Z());
|
|
1197
|
+
else if (t && r.nodeType !== 3) {
|
|
1198
|
+
var n = Z();
|
|
1199
|
+
return r?.before(n), U(n), n;
|
|
1200
|
+
}
|
|
1201
|
+
return t && Nr(r), U(r), r;
|
|
1202
|
+
}
|
|
1203
|
+
function Es(e, t = !1) {
|
|
1204
|
+
if (!L) {
|
|
1205
|
+
var r = /* @__PURE__ */ De(e);
|
|
1206
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
|
|
1207
|
+
}
|
|
1208
|
+
if (t) {
|
|
1209
|
+
if (M?.nodeType !== 3) {
|
|
1210
|
+
var n = Z();
|
|
1211
|
+
return M?.before(n), U(n), n;
|
|
1212
|
+
}
|
|
1213
|
+
Nr(M);
|
|
1214
|
+
}
|
|
1215
|
+
return M;
|
|
1216
|
+
}
|
|
1217
|
+
function xs(e, t = 1, r = !1) {
|
|
1218
|
+
let n = L ? M : e;
|
|
1219
|
+
for (var i; t--; )
|
|
1220
|
+
i = n, n = /* @__PURE__ */ he(n);
|
|
1221
|
+
if (!L) return n;
|
|
1222
|
+
if (r) {
|
|
1223
|
+
if (n?.nodeType !== 3) {
|
|
1224
|
+
var s = Z();
|
|
1225
|
+
return n === null ? i?.after(s) : n.before(s), U(s), s;
|
|
1226
|
+
}
|
|
1227
|
+
Nr(n);
|
|
1228
|
+
}
|
|
1229
|
+
return U(n), n;
|
|
1230
|
+
}
|
|
1231
|
+
function Bn(e) {
|
|
1232
|
+
e.textContent = "";
|
|
1233
|
+
}
|
|
1234
|
+
function zn() {
|
|
1235
|
+
return !we || oe !== null ? !1 : ($.f & kr) !== 0;
|
|
1236
|
+
}
|
|
1237
|
+
function Cr(e, t, r) {
|
|
1238
|
+
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1239
|
+
}
|
|
1240
|
+
function Nr(e) {
|
|
1241
|
+
if (e.nodeValue.length < 65536) return;
|
|
1242
|
+
let t = e.nextSibling;
|
|
1243
|
+
for (; t !== null && t.nodeType === 3; )
|
|
1244
|
+
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1245
|
+
}
|
|
1246
|
+
function Ms(e) {
|
|
1247
|
+
$ === null && (E === null && qi(e), Di()), be && Fi(e);
|
|
1248
|
+
}
|
|
1249
|
+
function Ts(e, t) {
|
|
1250
|
+
var r = t.last;
|
|
1251
|
+
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1252
|
+
}
|
|
1253
|
+
function ve(e, t) {
|
|
1254
|
+
var r = $;
|
|
1255
|
+
r !== null && (r.f & 8192) !== 0 && (e |= $r);
|
|
1256
|
+
var n = {
|
|
1257
|
+
ctx: I,
|
|
1258
|
+
deps: null,
|
|
1259
|
+
nodes: null,
|
|
1260
|
+
f: e | Y | 512,
|
|
1261
|
+
first: null,
|
|
1262
|
+
fn: t,
|
|
1263
|
+
last: null,
|
|
1264
|
+
next: null,
|
|
1265
|
+
parent: r,
|
|
1266
|
+
b: r && r.b,
|
|
1267
|
+
prev: null,
|
|
1268
|
+
teardown: null,
|
|
1269
|
+
wv: 0,
|
|
1270
|
+
ac: null
|
|
1271
|
+
};
|
|
1272
|
+
k?.register_created_effect(n);
|
|
1273
|
+
var i = n;
|
|
1274
|
+
if ((e & 4) !== 0) Qe !== null ? Qe.push(n) : Ge.ensure().schedule(n);
|
|
1275
|
+
else if (t !== null) {
|
|
1276
|
+
try {
|
|
1277
|
+
tt(n);
|
|
1278
|
+
} catch (l) {
|
|
1279
|
+
throw q(n), l;
|
|
1280
|
+
}
|
|
1281
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Sr));
|
|
1282
|
+
}
|
|
1283
|
+
if (i !== null && (i.parent = r, r !== null && Ts(i, r), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1284
|
+
var s = E;
|
|
1285
|
+
(s.effects ?? (s.effects = [])).push(i);
|
|
1286
|
+
}
|
|
1287
|
+
return n;
|
|
1288
|
+
}
|
|
1289
|
+
function Ir() {
|
|
1290
|
+
return E !== null && !ie;
|
|
1291
|
+
}
|
|
1292
|
+
function Yn(e) {
|
|
1293
|
+
const t = ve(8, null);
|
|
1294
|
+
return C(t, Q), t.teardown = e, t;
|
|
1295
|
+
}
|
|
1296
|
+
function As(e) {
|
|
1297
|
+
Ms("$effect");
|
|
1298
|
+
var t = $.f;
|
|
1299
|
+
if (!E && (t & 32) !== 0 && I !== null && !I.i) {
|
|
1300
|
+
var r = I;
|
|
1301
|
+
(r.e ?? (r.e = [])).push(e);
|
|
1302
|
+
} else return Vn(e);
|
|
1303
|
+
}
|
|
1304
|
+
function Vn(e) {
|
|
1305
|
+
return ve(4 | Li, e);
|
|
1306
|
+
}
|
|
1307
|
+
function Ls(e) {
|
|
1308
|
+
Ge.ensure();
|
|
1309
|
+
const t = ve(64 | rt, e);
|
|
1310
|
+
return () => {
|
|
1311
|
+
q(t);
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
function Rs(e) {
|
|
1315
|
+
Ge.ensure();
|
|
1316
|
+
const t = ve(64 | rt, e);
|
|
1317
|
+
return (r = {}) => new Promise((n) => {
|
|
1318
|
+
r.outro ? Ue(t, () => {
|
|
1319
|
+
q(t), n(void 0);
|
|
1320
|
+
}) : (q(t), n(void 0));
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
function Kn(e) {
|
|
1324
|
+
return ve(4, e);
|
|
1325
|
+
}
|
|
1326
|
+
function Os(e) {
|
|
1327
|
+
return ve(Ri | rt, e);
|
|
1328
|
+
}
|
|
1329
|
+
function Pr(e, t = 0) {
|
|
1330
|
+
return ve(8 | t, e);
|
|
1331
|
+
}
|
|
1332
|
+
function en(e, t = [], r = [], n = []) {
|
|
1333
|
+
cs(n, t, r, (i) => {
|
|
1334
|
+
ve(8, () => {
|
|
1335
|
+
e(...i.map(x));
|
|
1336
|
+
});
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
function Wr(e, t = 0) {
|
|
1340
|
+
var r = ve(16 | t, e);
|
|
1341
|
+
return r;
|
|
1342
|
+
}
|
|
1343
|
+
function ee(e) {
|
|
1344
|
+
return ve(32 | rt, e);
|
|
1345
|
+
}
|
|
1346
|
+
function Xn(e) {
|
|
1347
|
+
var t = e.teardown;
|
|
1348
|
+
if (t !== null) {
|
|
1349
|
+
const r = be, n = E;
|
|
1350
|
+
tn(!0), te(null);
|
|
1351
|
+
try {
|
|
1352
|
+
t.call(null);
|
|
1353
|
+
} finally {
|
|
1354
|
+
tn(r), te(n);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function jr(e, t = !1) {
|
|
1359
|
+
var r = e.first;
|
|
1360
|
+
for (e.first = e.last = null; r !== null; ) {
|
|
1361
|
+
const i = r.ac;
|
|
1362
|
+
i !== null && $t(() => {
|
|
1363
|
+
i.abort(yt);
|
|
1364
|
+
});
|
|
1365
|
+
var n = r.next;
|
|
1366
|
+
(r.f & 64) !== 0 ? r.parent = null : q(r, t), r = n;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
function Cs(e) {
|
|
1370
|
+
for (var t = e.first; t !== null; ) {
|
|
1371
|
+
var r = t.next;
|
|
1372
|
+
(t.f & 32) === 0 && q(t), t = r;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
function q(e, t = !0) {
|
|
1376
|
+
var r = !1;
|
|
1377
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ns(e.nodes.start, e.nodes.end), r = !0), e.f |= Br, jr(e, t && !r), mt(e, 0);
|
|
1378
|
+
var n = e.nodes && e.nodes.t;
|
|
1379
|
+
if (n !== null) for (const s of n) s.stop();
|
|
1380
|
+
Xn(e), e.f ^= Br, e.f |= Ai;
|
|
1381
|
+
var i = e.parent;
|
|
1382
|
+
i !== null && i.first !== null && Jn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1383
|
+
}
|
|
1384
|
+
function Ns(e, t) {
|
|
1385
|
+
for (; e !== null; ) {
|
|
1386
|
+
var r = e === t ? null : /* @__PURE__ */ he(e);
|
|
1387
|
+
e.remove(), e = r;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
function Jn(e) {
|
|
1391
|
+
var t = e.parent, r = e.prev, n = e.next;
|
|
1392
|
+
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1393
|
+
}
|
|
1394
|
+
function Ue(e, t, r = !0) {
|
|
1395
|
+
var n = [];
|
|
1396
|
+
Zn(e, n, !0);
|
|
1397
|
+
var i = () => {
|
|
1398
|
+
r && q(e), t && t();
|
|
1399
|
+
}, s = n.length;
|
|
1400
|
+
if (s > 0) {
|
|
1401
|
+
var l = () => --s || i();
|
|
1402
|
+
for (var o of n) o.out(l);
|
|
1403
|
+
} else i();
|
|
1404
|
+
}
|
|
1405
|
+
function Zn(e, t, r) {
|
|
1406
|
+
if ((e.f & 8192) === 0) {
|
|
1407
|
+
e.f ^= $r;
|
|
1408
|
+
var n = e.nodes && e.nodes.t;
|
|
1409
|
+
if (n !== null)
|
|
1410
|
+
for (const o of n) (o.is_global || r) && t.push(o);
|
|
1411
|
+
for (var i = e.first; i !== null; ) {
|
|
1412
|
+
var s = i.next;
|
|
1413
|
+
if ((i.f & 64) === 0) {
|
|
1414
|
+
var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1415
|
+
Zn(i, t, l ? r : !1);
|
|
1416
|
+
}
|
|
1417
|
+
i = s;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
function Vt(e) {
|
|
1422
|
+
Qn(e, !0);
|
|
1423
|
+
}
|
|
1424
|
+
function Qn(e, t) {
|
|
1425
|
+
if ((e.f & 8192) !== 0) {
|
|
1426
|
+
e.f ^= $r, (e.f & 1024) === 0 && (C(e, Y), Ge.ensure().schedule(e));
|
|
1427
|
+
for (var r = e.first; r !== null; ) {
|
|
1428
|
+
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1429
|
+
Qn(r, i ? t : !1), r = n;
|
|
1430
|
+
}
|
|
1431
|
+
var s = e.nodes && e.nodes.t;
|
|
1432
|
+
if (s !== null)
|
|
1433
|
+
for (const l of s) (l.is_global || t) && l.in();
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function Fr(e, t) {
|
|
1437
|
+
if (e.nodes)
|
|
1438
|
+
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1439
|
+
var i = r === n ? null : /* @__PURE__ */ he(r);
|
|
1440
|
+
t.append(r), r = i;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
var Is = null, Ot = !1, be = !1;
|
|
1444
|
+
function tn(e) {
|
|
1445
|
+
be = e;
|
|
1446
|
+
}
|
|
1447
|
+
var E = null, ie = !1;
|
|
1448
|
+
function te(e) {
|
|
1449
|
+
E = e;
|
|
1450
|
+
}
|
|
1451
|
+
var $ = null;
|
|
1452
|
+
function de(e) {
|
|
1453
|
+
$ = e;
|
|
1454
|
+
}
|
|
1455
|
+
var ae = null;
|
|
1456
|
+
function ei(e) {
|
|
1457
|
+
E !== null && (!we || (E.f & 2) !== 0) && (ae ?? (ae = /* @__PURE__ */ new Set())).add(e);
|
|
1458
|
+
}
|
|
1459
|
+
var G = null, B = 0, K = null;
|
|
1460
|
+
function Ps(e) {
|
|
1461
|
+
K = e;
|
|
1462
|
+
}
|
|
1463
|
+
var ti = 1, Re = 0, We = Re;
|
|
1464
|
+
function rn(e) {
|
|
1465
|
+
We = e;
|
|
1466
|
+
}
|
|
1467
|
+
function ri() {
|
|
1468
|
+
return ++ti;
|
|
1469
|
+
}
|
|
1470
|
+
function kt(e) {
|
|
1471
|
+
var t = e.f;
|
|
1472
|
+
if ((t & 2048) !== 0) return !0;
|
|
1473
|
+
if (t & 2 && (e.f &= ~wt), (t & 4096) !== 0) {
|
|
1474
|
+
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1475
|
+
var s = r[i];
|
|
1476
|
+
if (kt(s) && Ln(s), s.wv > e.wv) return !0;
|
|
1477
|
+
}
|
|
1478
|
+
(t & 512) !== 0 && D === null && C(e, Q);
|
|
1479
|
+
}
|
|
1480
|
+
return !1;
|
|
1481
|
+
}
|
|
1482
|
+
function ni(e, t, r = !0) {
|
|
1483
|
+
var n = e.reactions;
|
|
1484
|
+
if (n !== null && !(!we && ae !== null && ae.has(e)))
|
|
1485
|
+
for (var i = 0; i < n.length; i++) {
|
|
1486
|
+
var s = n[i];
|
|
1487
|
+
(s.f & 2) !== 0 ? ni(s, t, !1) : t === s && (r ? C(s, Y) : (s.f & 1024) !== 0 && C(s, qe), Or(s));
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
function ii(e) {
|
|
1491
|
+
var t = G, r = B, n = K, i = E, s = ae, l = I, o = ie, f = We, h = e.f;
|
|
1492
|
+
G = null, B = 0, K = null, E = (h & 96) === 0 ? e : null, ae = null, Ze(e.ctx), ie = !1, We = ++Re, e.ac !== null && ($t(() => {
|
|
1493
|
+
e.ac.abort(yt);
|
|
1494
|
+
}), e.ac = null);
|
|
1495
|
+
try {
|
|
1496
|
+
e.f |= zr;
|
|
1497
|
+
var v = e.fn, d = v();
|
|
1498
|
+
e.f |= kr;
|
|
1499
|
+
var c = e.deps, u = k?.is_fork;
|
|
1500
|
+
if (G !== null) {
|
|
1501
|
+
var g;
|
|
1502
|
+
if (u || mt(e, B), c !== null && B > 0)
|
|
1503
|
+
for (c.length = B + G.length, g = 0; g < G.length; g++) c[B + g] = G[g];
|
|
1504
|
+
else e.deps = c = G;
|
|
1505
|
+
if (Ir() && (e.f & 512) !== 0) for (g = B; g < c.length; g++) {
|
|
1506
|
+
var m;
|
|
1507
|
+
((m = c[g]).reactions ?? (m.reactions = [])).push(e);
|
|
1508
|
+
}
|
|
1509
|
+
} else !u && c !== null && B < c.length && (mt(e, B), c.length = B);
|
|
1510
|
+
if (bt() && K !== null && !ie && c !== null && (e.f & 6146) === 0) for (g = 0; g < K.length; g++) ni(K[g], e);
|
|
1511
|
+
if (i !== null && i !== e) {
|
|
1512
|
+
if (Re++, i.deps !== null) for (let _ = 0; _ < r; _ += 1) i.deps[_].rv = Re;
|
|
1513
|
+
if (t !== null) for (const _ of t) _.rv = Re;
|
|
1514
|
+
K !== null && (n === null ? n = K : n.push(...K));
|
|
1515
|
+
}
|
|
1516
|
+
return (e.f & 8388608) !== 0 && (e.f ^= jt), d;
|
|
1517
|
+
} catch (_) {
|
|
1518
|
+
return $n(_);
|
|
1519
|
+
} finally {
|
|
1520
|
+
e.f ^= zr, G = t, B = r, K = n, E = i, ae = s, Ze(l), ie = o, We = f;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
function Ws(e, t) {
|
|
1524
|
+
let r = t.reactions;
|
|
1525
|
+
if (r !== null) {
|
|
1526
|
+
var n = bi.call(r, e);
|
|
1527
|
+
if (n !== -1) {
|
|
1528
|
+
var i = r.length - 1;
|
|
1529
|
+
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
if (r === null && (t.f & 2) !== 0 && (G === null || !It.call(G, t))) {
|
|
1533
|
+
var s = t;
|
|
1534
|
+
(s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~wt), s.v !== P && Er(s), s.ac !== null && $t(() => {
|
|
1535
|
+
s.ac.abort(yt), s.ac = null, C(s, Y);
|
|
1536
|
+
}), _s(s), mt(s, 0);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
function mt(e, t) {
|
|
1540
|
+
var r = e.deps;
|
|
1541
|
+
if (r !== null)
|
|
1542
|
+
for (var n = t; n < r.length; n++) Ws(e, r[n]);
|
|
1543
|
+
}
|
|
1544
|
+
function tt(e) {
|
|
1545
|
+
var t = e.f;
|
|
1546
|
+
if ((t & 16384) === 0) {
|
|
1547
|
+
C(e, Q);
|
|
1548
|
+
var r = $, n = Ot;
|
|
1549
|
+
if ($ = e, Ot = (t & 96) === 0, 0)
|
|
1550
|
+
var i, s;
|
|
1551
|
+
try {
|
|
1552
|
+
(t & 16777232) !== 0 ? Cs(e) : jr(e), Xn(e);
|
|
1553
|
+
var l = ii(e);
|
|
1554
|
+
if (e.teardown = typeof l == "function" ? l : null, e.wv = ti, 0)
|
|
1555
|
+
for (var o of e.deps) ;
|
|
1556
|
+
} finally {
|
|
1557
|
+
Ot = n, $ = r;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
function x(e) {
|
|
1562
|
+
var t = (e.f & 2) !== 0;
|
|
1563
|
+
if (Is?.add(e), E !== null && !ie && !($ !== null && ($.f & 16384) !== 0) && (ae === null || !ae.has(e))) {
|
|
1564
|
+
var r = E.deps;
|
|
1565
|
+
if ((E.f & 2097152) !== 0)
|
|
1566
|
+
e.rv < Re && (e.rv = Re, G === null && r !== null && r[B] === e ? B++ : G === null ? G = [e] : G.push(e));
|
|
1567
|
+
else {
|
|
1568
|
+
var n;
|
|
1569
|
+
(n = E).deps ?? (n.deps = []), It.call(E.deps, e) || E.deps.push(e);
|
|
1570
|
+
var i = e.reactions;
|
|
1571
|
+
i === null ? e.reactions = [E] : It.call(i, E) || i.push(E);
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
if (0) {
|
|
1575
|
+
if (!ie && reactivity_loss_tracker && k === null && hr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1576
|
+
var s;
|
|
1577
|
+
if (tracing_mode_flag && !ie && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
|
|
1578
|
+
if (s)
|
|
1579
|
+
var l, o;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
if (be && Pe.has(e)) return Pe.get(e);
|
|
1583
|
+
if (t) {
|
|
1584
|
+
var f = e;
|
|
1585
|
+
if (be) {
|
|
1586
|
+
var h = f.v;
|
|
1587
|
+
return ((f.f & 1024) === 0 && f.reactions !== null || ai(f)) && (h = Lr(f)), Pe.set(f, h), h;
|
|
1588
|
+
}
|
|
1589
|
+
var v = (f.f & 512) === 0 && !ie && E !== null && (Ot || (E.f & 512) !== 0), d = (f.f & kr) === 0;
|
|
1590
|
+
kt(f) && (v && (f.f |= 512), Ln(f)), v && !d && (Rn(f), si(f));
|
|
1591
|
+
}
|
|
1592
|
+
if (D?.has(e)) return D.get(e);
|
|
1593
|
+
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1594
|
+
return e.v;
|
|
1595
|
+
}
|
|
1596
|
+
function si(e) {
|
|
1597
|
+
if (e.f |= 512, e.deps !== null)
|
|
1598
|
+
for (const t of e.deps)
|
|
1599
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Rn(t), si(t));
|
|
1600
|
+
}
|
|
1601
|
+
function ai(e) {
|
|
1602
|
+
if (e.v === P) return !0;
|
|
1603
|
+
if (e.deps === null) return !1;
|
|
1604
|
+
for (const t of e.deps)
|
|
1605
|
+
if (Pe.has(t) || (t.f & 2) !== 0 && ai(t)) return !0;
|
|
1606
|
+
return !1;
|
|
1607
|
+
}
|
|
1608
|
+
function Dr(e) {
|
|
1609
|
+
var t = ie;
|
|
1610
|
+
try {
|
|
1611
|
+
return ie = !0, e();
|
|
1612
|
+
} finally {
|
|
1613
|
+
ie = t;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
var Mt = /* @__PURE__ */ Symbol("events"), js = /* @__PURE__ */ new Set(), nn = /* @__PURE__ */ new Set();
|
|
1617
|
+
function Fs(e, t, r, n = {}) {
|
|
1618
|
+
function i(s) {
|
|
1619
|
+
if (n.capture || mr.call(t, s), !s.cancelBubble) return $t(() => r?.call(this, s));
|
|
1620
|
+
}
|
|
1621
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? ye(() => {
|
|
1622
|
+
t.addEventListener(e, i, n);
|
|
1623
|
+
}) : t.addEventListener(e, i, n), i;
|
|
1624
|
+
}
|
|
1625
|
+
function nr(e, t, r, n, i) {
|
|
1626
|
+
var s = {
|
|
1627
|
+
capture: n,
|
|
1628
|
+
passive: i
|
|
1629
|
+
}, l = Fs(e, t, r, s);
|
|
1630
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Yn(() => {
|
|
1631
|
+
t.removeEventListener(e, l, s);
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
var sn = null;
|
|
1635
|
+
function mr(e) {
|
|
1636
|
+
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1637
|
+
sn = e;
|
|
1638
|
+
var l = 0, o = sn === e && e[Mt];
|
|
1639
|
+
if (o) {
|
|
1640
|
+
var f = i.indexOf(o);
|
|
1641
|
+
if (f !== -1 && (t === document || t === window)) {
|
|
1642
|
+
e[Mt] = t;
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
var h = i.indexOf(t);
|
|
1646
|
+
if (h === -1) return;
|
|
1647
|
+
f <= h && (l = f);
|
|
1648
|
+
}
|
|
1649
|
+
if (s = i[l] || e.target, s !== t) {
|
|
1650
|
+
Wt(e, "currentTarget", {
|
|
1651
|
+
configurable: !0,
|
|
1652
|
+
get() {
|
|
1653
|
+
return s || r;
|
|
1654
|
+
}
|
|
1655
|
+
});
|
|
1656
|
+
var v = E, d = $;
|
|
1657
|
+
te(null), de(null);
|
|
1658
|
+
try {
|
|
1659
|
+
for (var c, u = []; s !== null && s !== t; ) {
|
|
1660
|
+
try {
|
|
1661
|
+
var g = s[Mt]?.[n];
|
|
1662
|
+
g != null && (!s.disabled || e.target === s) && g.call(s, e);
|
|
1663
|
+
} catch (m) {
|
|
1664
|
+
c ? u.push(m) : c = m;
|
|
1665
|
+
}
|
|
1666
|
+
if (e.cancelBubble) break;
|
|
1667
|
+
l++, s = l < i.length ? i[l] : null;
|
|
1668
|
+
}
|
|
1669
|
+
if (c) {
|
|
1670
|
+
for (let m of u) queueMicrotask(() => {
|
|
1671
|
+
throw m;
|
|
1672
|
+
});
|
|
1673
|
+
throw c;
|
|
1674
|
+
}
|
|
1675
|
+
} finally {
|
|
1676
|
+
e[Mt] = t, delete e.currentTarget, te(v), de(d);
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
var Ds = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1681
|
+
function qs(e) {
|
|
1682
|
+
return Ds?.createHTML(e) ?? e;
|
|
1683
|
+
}
|
|
1684
|
+
function Gs(e) {
|
|
1685
|
+
var t = Cr("template");
|
|
1686
|
+
return t.innerHTML = qs(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1687
|
+
}
|
|
1688
|
+
function Xe(e, t) {
|
|
1689
|
+
var r = $;
|
|
1690
|
+
r.nodes === null && (r.nodes = {
|
|
1691
|
+
start: e,
|
|
1692
|
+
end: t,
|
|
1693
|
+
a: null,
|
|
1694
|
+
t: null
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
// @__NO_SIDE_EFFECTS__
|
|
1698
|
+
function li(e, t) {
|
|
1699
|
+
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1700
|
+
return () => {
|
|
1701
|
+
if (L)
|
|
1702
|
+
return Xe(M, null), M;
|
|
1703
|
+
i === void 0 && (i = Gs(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ De(i)));
|
|
1704
|
+
var l = n || Gn ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1705
|
+
if (r) {
|
|
1706
|
+
var o = /* @__PURE__ */ De(l), f = l.lastChild;
|
|
1707
|
+
Xe(o, f);
|
|
1708
|
+
} else Xe(l, l);
|
|
1709
|
+
return l;
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
function Us() {
|
|
1713
|
+
if (L)
|
|
1714
|
+
return Xe(M, null), M;
|
|
1715
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = Z();
|
|
1716
|
+
return e.append(t, r), Xe(t, r), e;
|
|
1717
|
+
}
|
|
1718
|
+
function Ct(e, t) {
|
|
1719
|
+
if (L) {
|
|
1720
|
+
var r = $;
|
|
1721
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = M), Zt();
|
|
1722
|
+
return;
|
|
1723
|
+
}
|
|
1724
|
+
e !== null && e.before(t);
|
|
1725
|
+
}
|
|
1726
|
+
var Hs = [
|
|
1727
|
+
"allowfullscreen",
|
|
1728
|
+
"async",
|
|
1729
|
+
"autofocus",
|
|
1730
|
+
"autoplay",
|
|
1731
|
+
"checked",
|
|
1732
|
+
"controls",
|
|
1733
|
+
"default",
|
|
1734
|
+
"disabled",
|
|
1735
|
+
"formnovalidate",
|
|
1736
|
+
"indeterminate",
|
|
1737
|
+
"inert",
|
|
1738
|
+
"ismap",
|
|
1739
|
+
"loop",
|
|
1740
|
+
"multiple",
|
|
1741
|
+
"muted",
|
|
1742
|
+
"nomodule",
|
|
1743
|
+
"novalidate",
|
|
1744
|
+
"open",
|
|
1745
|
+
"playsinline",
|
|
1746
|
+
"readonly",
|
|
1747
|
+
"required",
|
|
1748
|
+
"reversed",
|
|
1749
|
+
"seamless",
|
|
1750
|
+
"selected",
|
|
1751
|
+
"webkitdirectory",
|
|
1752
|
+
"defer",
|
|
1753
|
+
"disablepictureinpicture",
|
|
1754
|
+
"disableremoteplayback"
|
|
1755
|
+
], Pa = [
|
|
1756
|
+
...Hs,
|
|
1757
|
+
"formNoValidate",
|
|
1758
|
+
"isMap",
|
|
1759
|
+
"noModule",
|
|
1760
|
+
"playsInline",
|
|
1761
|
+
"readOnly",
|
|
1762
|
+
"value",
|
|
1763
|
+
"volume",
|
|
1764
|
+
"defaultValue",
|
|
1765
|
+
"defaultChecked",
|
|
1766
|
+
"srcObject",
|
|
1767
|
+
"noValidate",
|
|
1768
|
+
"allowFullscreen",
|
|
1769
|
+
"disablePictureInPicture",
|
|
1770
|
+
"disableRemotePlayback"
|
|
1771
|
+
], Bs = ["touchstart", "touchmove"];
|
|
1772
|
+
function zs(e) {
|
|
1773
|
+
return Bs.includes(e);
|
|
1774
|
+
}
|
|
1775
|
+
var Ys = [
|
|
1776
|
+
"$state",
|
|
1777
|
+
"$state.raw",
|
|
1778
|
+
"$derived",
|
|
1779
|
+
"$derived.by"
|
|
1780
|
+
], Wa = [
|
|
1781
|
+
...Ys,
|
|
1782
|
+
"$state.eager",
|
|
1783
|
+
"$state.snapshot",
|
|
1784
|
+
"$props",
|
|
1785
|
+
"$props.id",
|
|
1786
|
+
"$bindable",
|
|
1787
|
+
"$effect",
|
|
1788
|
+
"$effect.pre",
|
|
1789
|
+
"$effect.tracking",
|
|
1790
|
+
"$effect.root",
|
|
1791
|
+
"$effect.pending",
|
|
1792
|
+
"$inspect",
|
|
1793
|
+
"$inspect().with",
|
|
1794
|
+
"$inspect.trace",
|
|
1795
|
+
"$host"
|
|
1796
|
+
], an = !0;
|
|
1797
|
+
function Vs(e, t) {
|
|
1798
|
+
var r, n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1799
|
+
n !== ((r = e)[Lt] ?? (r[Lt] = e.nodeValue)) && (e[Lt] = n, e.nodeValue = `${n}`);
|
|
1800
|
+
}
|
|
1801
|
+
function oi(e, t) {
|
|
1802
|
+
return fi(e, t);
|
|
1803
|
+
}
|
|
1804
|
+
function Ks(e, t) {
|
|
1805
|
+
gr(), t.intro = t.intro ?? !1;
|
|
1806
|
+
const r = t.target, n = L, i = M;
|
|
1807
|
+
try {
|
|
1808
|
+
for (var s = /* @__PURE__ */ De(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ he(s);
|
|
1809
|
+
if (!s) throw Je;
|
|
1810
|
+
ge(!0), U(s);
|
|
1811
|
+
const l = fi(e, {
|
|
1812
|
+
...t,
|
|
1813
|
+
anchor: s
|
|
1814
|
+
});
|
|
1815
|
+
return ge(!1), l;
|
|
1816
|
+
} catch (l) {
|
|
1817
|
+
if (l instanceof Error && l.message.split(`
|
|
1818
|
+
`).some((o) => o.startsWith("https://svelte.dev/e/"))) throw l;
|
|
1819
|
+
return l !== Je && console.warn("Failed to hydrate: ", l), t.recover === !1 && Ui(), gr(), Bn(r), ge(!1), oi(e, t);
|
|
1820
|
+
} finally {
|
|
1821
|
+
ge(n), U(i);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
var Tt = /* @__PURE__ */ new Map();
|
|
1825
|
+
function fi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
|
|
1826
|
+
gr();
|
|
1827
|
+
var f = void 0, h = Rs(() => {
|
|
1828
|
+
var v = r ?? t.appendChild(Z());
|
|
1829
|
+
as(v, { pending: () => {
|
|
1830
|
+
} }, (u) => {
|
|
1831
|
+
wn({});
|
|
1832
|
+
var g = I;
|
|
1833
|
+
if (s && (g.c = s), i && (n.$$events = i), L && Xe(u, null), an = l, f = e(u, n) || {}, an = !0, L && ($.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]"))
|
|
1834
|
+
throw Jt(), Je;
|
|
1835
|
+
yn();
|
|
1836
|
+
}, o);
|
|
1837
|
+
var d = /* @__PURE__ */ new Set(), c = (u) => {
|
|
1838
|
+
for (var g = 0; g < u.length; g++) {
|
|
1839
|
+
var m = u[g];
|
|
1840
|
+
if (!d.has(m)) {
|
|
1841
|
+
d.add(m);
|
|
1842
|
+
var _ = zs(m);
|
|
1843
|
+
for (const A of [t, document]) {
|
|
1844
|
+
var p = Tt.get(A);
|
|
1845
|
+
p === void 0 && (p = /* @__PURE__ */ new Map(), Tt.set(A, p));
|
|
1846
|
+
var T = p.get(m);
|
|
1847
|
+
T === void 0 ? (A.addEventListener(m, mr, { passive: _ }), p.set(m, 1)) : p.set(m, T + 1);
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
};
|
|
1852
|
+
return c(Xt(js)), nn.add(c), () => {
|
|
1853
|
+
for (var u of d) for (const _ of [t, document]) {
|
|
1854
|
+
var g = Tt.get(_), m = g.get(u);
|
|
1855
|
+
--m == 0 ? (_.removeEventListener(u, mr), g.delete(u), g.size === 0 && Tt.delete(_)) : g.set(u, m);
|
|
1856
|
+
}
|
|
1857
|
+
nn.delete(c), v !== r && v.parentNode?.removeChild(v);
|
|
1858
|
+
};
|
|
1859
|
+
});
|
|
1860
|
+
return wr.set(f, h), f;
|
|
1861
|
+
}
|
|
1862
|
+
var wr = /* @__PURE__ */ new WeakMap();
|
|
1863
|
+
function Xs(e, t) {
|
|
1864
|
+
const r = wr.get(e);
|
|
1865
|
+
return r ? (wr.delete(e), r(t)) : Promise.resolve();
|
|
1866
|
+
}
|
|
1867
|
+
var _e = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), Js = class {
|
|
1868
|
+
constructor(e, t = !0) {
|
|
1869
|
+
R(this, "anchor", void 0), y(this, _e, /* @__PURE__ */ new Map()), y(this, $e, /* @__PURE__ */ new Map()), y(this, re, /* @__PURE__ */ new Map()), y(this, it, /* @__PURE__ */ new Set()), y(this, ir, !0), y(this, sr, (r) => {
|
|
1870
|
+
if (a(_e, this).has(r)) {
|
|
1871
|
+
var n = a(_e, this).get(r), i = a($e, this).get(n);
|
|
1872
|
+
if (i)
|
|
1873
|
+
Vt(i), a(it, this).delete(n);
|
|
1874
|
+
else {
|
|
1875
|
+
var s = a(re, this).get(n);
|
|
1876
|
+
s && (Vt(s.effect), a($e, this).set(n, s.effect), a(re, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1877
|
+
}
|
|
1878
|
+
for (const [l, o] of a(_e, this)) {
|
|
1879
|
+
if (a(_e, this).delete(l), l === r) break;
|
|
1880
|
+
const f = a(re, this).get(o);
|
|
1881
|
+
f && (q(f.effect), a(re, this).delete(o));
|
|
1882
|
+
}
|
|
1883
|
+
for (const [l, o] of a($e, this)) {
|
|
1884
|
+
if (l === n || a(it, this).has(l)) continue;
|
|
1885
|
+
const f = () => {
|
|
1886
|
+
if (Array.from(a(_e, this).values()).includes(l)) {
|
|
1887
|
+
var h = document.createDocumentFragment();
|
|
1888
|
+
Fr(o, h), h.append(Z()), a(re, this).set(l, {
|
|
1889
|
+
effect: o,
|
|
1890
|
+
fragment: h
|
|
1891
|
+
});
|
|
1892
|
+
} else q(o);
|
|
1893
|
+
a(it, this).delete(l), a($e, this).delete(l);
|
|
1894
|
+
};
|
|
1895
|
+
a(ir, this) || !i ? (a(it, this).add(l), Ue(o, f, !1)) : f();
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}), y(this, ln, (r) => {
|
|
1899
|
+
a(_e, this).delete(r);
|
|
1900
|
+
const n = Array.from(a(_e, this).values());
|
|
1901
|
+
for (const [i, s] of a(re, this)) n.includes(i) || (q(s.effect), a(re, this).delete(i));
|
|
1902
|
+
}), this.anchor = e, w(ir, this, t);
|
|
1903
|
+
}
|
|
1904
|
+
ensure(e, t) {
|
|
1905
|
+
var r = k, n = zn();
|
|
1906
|
+
if (t && !a($e, this).has(e) && !a(re, this).has(e)) if (n) {
|
|
1907
|
+
var i = document.createDocumentFragment(), s = Z();
|
|
1908
|
+
i.append(s), a(re, this).set(e, {
|
|
1909
|
+
effect: ee(() => t(s)),
|
|
1910
|
+
fragment: i
|
|
1911
|
+
});
|
|
1912
|
+
} else a($e, this).set(e, ee(() => t(this.anchor)));
|
|
1913
|
+
if (a(_e, this).set(r, e), n) {
|
|
1914
|
+
for (const [l, o] of a($e, this)) l === e ? r.unskip_effect(o) : r.skip_effect(o);
|
|
1915
|
+
for (const [l, o] of a(re, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
|
|
1916
|
+
r.oncommit(a(sr, this)), r.ondiscard(a(ln, this));
|
|
1917
|
+
} else
|
|
1918
|
+
L && (this.anchor = M), a(sr, this).call(this, r);
|
|
1919
|
+
}
|
|
1920
|
+
};
|
|
1921
|
+
function Zs(e, t, r = !1) {
|
|
1922
|
+
var n;
|
|
1923
|
+
L && (n = M, Zt());
|
|
1924
|
+
var i = new Js(e), s = r ? Sr : 0;
|
|
1925
|
+
function l(o, f) {
|
|
1926
|
+
if (L) {
|
|
1927
|
+
var h = pn(n);
|
|
1928
|
+
if (o !== parseInt(h.substring(1))) {
|
|
1929
|
+
var v = Ft();
|
|
1930
|
+
U(v), i.anchor = v, ge(!1), i.ensure(o, f), ge(!0);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
i.ensure(o, f);
|
|
1935
|
+
}
|
|
1936
|
+
Wr(() => {
|
|
1937
|
+
var o = !1;
|
|
1938
|
+
t((f, h = 0) => {
|
|
1939
|
+
o = !0, l(h, f);
|
|
1940
|
+
}), o || l(-1, null);
|
|
1941
|
+
}, s);
|
|
1942
|
+
}
|
|
1943
|
+
function Qs(e, t, r) {
|
|
1944
|
+
for (var n = [], i = t.length, s, l = t.length, o = 0; o < i; o++) {
|
|
1945
|
+
let d = t[o];
|
|
1946
|
+
Ue(d, () => {
|
|
1947
|
+
if (s) {
|
|
1948
|
+
if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
|
|
1949
|
+
var c = e.outrogroups;
|
|
1950
|
+
yr(e, Xt(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
|
|
1951
|
+
}
|
|
1952
|
+
} else l -= 1;
|
|
1953
|
+
}, !1);
|
|
1954
|
+
}
|
|
1955
|
+
if (l === 0) {
|
|
1956
|
+
var f = n.length === 0 && r !== null;
|
|
1957
|
+
if (f) {
|
|
1958
|
+
var h = r, v = h.parentNode;
|
|
1959
|
+
Bn(v), v.append(h), e.items.clear();
|
|
1960
|
+
}
|
|
1961
|
+
yr(e, t, !f);
|
|
1962
|
+
} else
|
|
1963
|
+
s = {
|
|
1964
|
+
pending: new Set(t),
|
|
1965
|
+
done: /* @__PURE__ */ new Set()
|
|
1966
|
+
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
1967
|
+
}
|
|
1968
|
+
function yr(e, t, r = !0) {
|
|
1969
|
+
var n;
|
|
1970
|
+
if (e.pending.size > 0) {
|
|
1971
|
+
n = /* @__PURE__ */ new Set();
|
|
1972
|
+
for (const l of e.pending.values()) for (const o of l) n.add(e.items.get(o).e);
|
|
1973
|
+
}
|
|
1974
|
+
for (var i = 0; i < t.length; i++) {
|
|
1975
|
+
var s = t[i];
|
|
1976
|
+
n?.has(s) ? (s.f |= ct, Fr(s, document.createDocumentFragment())) : q(t[i], r);
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
var At;
|
|
1980
|
+
function ea(e, t, r, n, i, s = null) {
|
|
1981
|
+
var l = e, o = /* @__PURE__ */ new Map();
|
|
1982
|
+
if ((t & 4) !== 0) {
|
|
1983
|
+
var f = e;
|
|
1984
|
+
l = L ? U(/* @__PURE__ */ De(f)) : f.appendChild(Z());
|
|
1985
|
+
}
|
|
1986
|
+
L && Zt();
|
|
1987
|
+
var h = null, v = /* @__PURE__ */ Ar(() => {
|
|
1988
|
+
var p = r();
|
|
1989
|
+
return dn(p) ? p : p == null ? [] : Xt(p);
|
|
1990
|
+
}), d, c = /* @__PURE__ */ new Map(), u = !0;
|
|
1991
|
+
function g(p) {
|
|
1992
|
+
(_.effect.f & 16384) === 0 && (_.pending.delete(p), _.fallback = h, ta(_, d, l, t, n), h !== null && (d.length === 0 ? (h.f & 33554432) === 0 ? Vt(h) : (h.f ^= ct, ut(h, null, l)) : Ue(h, () => {
|
|
1993
|
+
h = null;
|
|
1994
|
+
})));
|
|
1995
|
+
}
|
|
1996
|
+
function m(p) {
|
|
1997
|
+
_.pending.delete(p);
|
|
1998
|
+
}
|
|
1999
|
+
var _ = {
|
|
2000
|
+
effect: Wr(() => {
|
|
2001
|
+
d = x(v);
|
|
2002
|
+
var p = d.length;
|
|
2003
|
+
let T = !1;
|
|
2004
|
+
L && pn(l) === "[!" != (p === 0) && (l = Ft(), U(l), ge(!1), T = !0);
|
|
2005
|
+
for (var A = /* @__PURE__ */ new Set(), S = k, F = zn(), O = 0; O < p; O += 1) {
|
|
2006
|
+
L && M.nodeType === 8 && M.data === "]" && (l = M, T = !0, ge(!1));
|
|
2007
|
+
var H = d[O], V = n(H, O);
|
|
2008
|
+
if (0)
|
|
2009
|
+
var qr;
|
|
2010
|
+
var j = u ? null : o.get(V);
|
|
2011
|
+
j ? (j.v && et(j.v, H), j.i && et(j.i, O), F && S.unskip_effect(j.e)) : (j = ra(o, u ? l : At ?? (At = Z()), H, V, O, i, t, r), u || (j.e.f |= ct), o.set(V, j)), A.add(V);
|
|
2012
|
+
}
|
|
2013
|
+
if (p === 0 && s && !h && (u ? h = ee(() => s(l)) : (h = ee(() => s(At ?? (At = Z()))), h.f |= ct)), p > A.size && ji("", "", ""), L && p > 0 && U(Ft()), !u)
|
|
2014
|
+
if (c.set(S, A), F) {
|
|
2015
|
+
for (const [hi, vi] of o) A.has(hi) || S.skip_effect(vi.e);
|
|
2016
|
+
S.oncommit(g), S.ondiscard(m);
|
|
2017
|
+
} else g(S);
|
|
2018
|
+
T && ge(!0), x(v);
|
|
2019
|
+
}),
|
|
2020
|
+
flags: t,
|
|
2021
|
+
items: o,
|
|
2022
|
+
pending: c,
|
|
2023
|
+
outrogroups: null,
|
|
2024
|
+
fallback: h
|
|
2025
|
+
};
|
|
2026
|
+
u = !1, L && (l = M);
|
|
2027
|
+
}
|
|
2028
|
+
function st(e) {
|
|
2029
|
+
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2030
|
+
return e;
|
|
2031
|
+
}
|
|
2032
|
+
function ta(e, t, r, n, i) {
|
|
2033
|
+
var s = (n & 8) !== 0, l = t.length, o = e.items, f = st(e.effect.first), h, v = null, d, c = [], u = [], g, m, _, p;
|
|
2034
|
+
if (s) for (p = 0; p < l; p += 1)
|
|
2035
|
+
g = t[p], m = i(g, p), _ = o.get(m).e, (_.f & 33554432) === 0 && (_.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(_));
|
|
2036
|
+
for (p = 0; p < l; p += 1) {
|
|
2037
|
+
if (g = t[p], m = i(g, p), _ = o.get(m).e, e.outrogroups !== null) for (const j of e.outrogroups)
|
|
2038
|
+
j.pending.delete(_), j.done.delete(_);
|
|
2039
|
+
if ((_.f & 8192) !== 0 && (Vt(_), s && (_.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(_))), (_.f & 33554432) !== 0)
|
|
2040
|
+
if (_.f ^= ct, _ === f) ut(_, null, r);
|
|
2041
|
+
else {
|
|
2042
|
+
var T = v ? v.next : f;
|
|
2043
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), ke(e, v, _), ke(e, _, T), ut(_, T, r), v = _, c = [], u = [], f = st(v.next);
|
|
2044
|
+
continue;
|
|
2045
|
+
}
|
|
2046
|
+
if (_ !== f) {
|
|
2047
|
+
if (h !== void 0 && h.has(_)) {
|
|
2048
|
+
if (c.length < u.length) {
|
|
2049
|
+
var A = u[0], S;
|
|
2050
|
+
v = A.prev;
|
|
2051
|
+
var F = c[0], O = c[c.length - 1];
|
|
2052
|
+
for (S = 0; S < c.length; S += 1) ut(c[S], A, r);
|
|
2053
|
+
for (S = 0; S < u.length; S += 1) h.delete(u[S]);
|
|
2054
|
+
ke(e, F.prev, O.next), ke(e, v, F), ke(e, O, A), f = A, v = O, p -= 1, c = [], u = [];
|
|
2055
|
+
} else
|
|
2056
|
+
h.delete(_), ut(_, f, r), ke(e, _.prev, _.next), ke(e, _, v === null ? e.effect.first : v.next), ke(e, v, _), v = _;
|
|
2057
|
+
continue;
|
|
2058
|
+
}
|
|
2059
|
+
for (c = [], u = []; f !== null && f !== _; )
|
|
2060
|
+
(h ?? (h = /* @__PURE__ */ new Set())).add(f), u.push(f), f = st(f.next);
|
|
2061
|
+
if (f === null) continue;
|
|
2062
|
+
}
|
|
2063
|
+
(_.f & 33554432) === 0 && c.push(_), v = _, f = st(_.next);
|
|
2064
|
+
}
|
|
2065
|
+
if (e.outrogroups !== null) {
|
|
2066
|
+
for (const j of e.outrogroups) j.pending.size === 0 && (yr(e, Xt(j.done)), e.outrogroups?.delete(j));
|
|
2067
|
+
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2068
|
+
}
|
|
2069
|
+
if (f !== null || h !== void 0) {
|
|
2070
|
+
var H = [];
|
|
2071
|
+
if (h !== void 0)
|
|
2072
|
+
for (_ of h) (_.f & 8192) === 0 && H.push(_);
|
|
2073
|
+
for (; f !== null; )
|
|
2074
|
+
(f.f & 8192) === 0 && f !== e.fallback && H.push(f), f = st(f.next);
|
|
2075
|
+
var V = H.length;
|
|
2076
|
+
if (V > 0) {
|
|
2077
|
+
var qr = (n & 4) !== 0 && l === 0 ? r : null;
|
|
2078
|
+
if (s) {
|
|
2079
|
+
for (p = 0; p < V; p += 1) H[p].nodes?.a?.measure();
|
|
2080
|
+
for (p = 0; p < V; p += 1) H[p].nodes?.a?.fix();
|
|
2081
|
+
}
|
|
2082
|
+
Qs(e, H, qr);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
s && ye(() => {
|
|
2086
|
+
if (d !== void 0)
|
|
2087
|
+
for (_ of d) _.nodes?.a?.apply();
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
function ra(e, t, r, n, i, s, l, o) {
|
|
2091
|
+
var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */ Dn(r, !1, !1) : Fe(r) : null, h = (l & 2) !== 0 ? Fe(i) : null;
|
|
2092
|
+
return {
|
|
2093
|
+
v: f,
|
|
2094
|
+
i: h,
|
|
2095
|
+
e: ee(() => (s(t, f ?? r, h ?? i, o), () => {
|
|
2096
|
+
e.delete(n);
|
|
2097
|
+
}))
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
function ut(e, t, r) {
|
|
2101
|
+
if (e.nodes)
|
|
2102
|
+
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2103
|
+
var l = /* @__PURE__ */ he(n);
|
|
2104
|
+
if (s.before(n), n === i) return;
|
|
2105
|
+
n = l;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
function ke(e, t, r) {
|
|
2109
|
+
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2110
|
+
}
|
|
2111
|
+
function na(e, t) {
|
|
2112
|
+
Kn(() => {
|
|
2113
|
+
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2114
|
+
if (!n.querySelector("#" + t.hash)) {
|
|
2115
|
+
const i = Cr("style");
|
|
2116
|
+
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
var ia = /* @__PURE__ */ Symbol("is custom element"), sa = /* @__PURE__ */ Symbol("is html"), aa = Pi ? "link" : "LINK";
|
|
2121
|
+
function He(e, t, r, n) {
|
|
2122
|
+
var i = la(e);
|
|
2123
|
+
if (L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === aa)) {
|
|
2124
|
+
n || void 0;
|
|
2125
|
+
return;
|
|
2126
|
+
}
|
|
2127
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[Oi] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && oa(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2128
|
+
}
|
|
2129
|
+
function la(e) {
|
|
2130
|
+
var t;
|
|
2131
|
+
return (t = e)[fr] ?? (t[fr] = {
|
|
2132
|
+
[ia]: e.nodeName.includes("-"),
|
|
2133
|
+
[sa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2134
|
+
});
|
|
2135
|
+
}
|
|
2136
|
+
var on = /* @__PURE__ */ new Map();
|
|
2137
|
+
function oa(e) {
|
|
2138
|
+
var t = e.getAttribute("is") || e.nodeName, r = on.get(t);
|
|
2139
|
+
if (r) return r;
|
|
2140
|
+
on.set(t, r = []);
|
|
2141
|
+
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2142
|
+
n = $i(i);
|
|
2143
|
+
for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.push(l);
|
|
2144
|
+
i = hn(i);
|
|
2145
|
+
}
|
|
2146
|
+
return r;
|
|
2147
|
+
}
|
|
2148
|
+
var ui, Ve = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakSet(), ci = class {
|
|
2149
|
+
constructor(e) {
|
|
2150
|
+
xr(this, fn), y(this, Ve, /* @__PURE__ */ new WeakMap()), y(this, Kt, void 0), y(this, ar, void 0), w(ar, this, e);
|
|
2151
|
+
}
|
|
2152
|
+
observe(e, t) {
|
|
2153
|
+
var r = a(Ve, this).get(e) || /* @__PURE__ */ new Set();
|
|
2154
|
+
return r.add(t), a(Ve, this).set(e, r), b(fn, this, fa).call(this).observe(e, a(ar, this)), () => {
|
|
2155
|
+
var n = a(Ve, this).get(e);
|
|
2156
|
+
n.delete(t), n.size === 0 && (a(Ve, this).delete(e), a(Kt, this).unobserve(e));
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
ui = ci;
|
|
2161
|
+
function fa() {
|
|
2162
|
+
return a(Kt, this) ?? w(Kt, this, new ResizeObserver((e) => {
|
|
2163
|
+
for (var t of e) {
|
|
2164
|
+
ui.entries.set(t.target, t);
|
|
2165
|
+
for (var r of a(Ve, this).get(t.target) || []) r(t);
|
|
2166
|
+
}
|
|
2167
|
+
}));
|
|
2168
|
+
}
|
|
2169
|
+
R(ci, "entries", /* @__PURE__ */ new WeakMap());
|
|
2170
|
+
function lr(e, t) {
|
|
2171
|
+
return e === t || e?.[dt] === t;
|
|
2172
|
+
}
|
|
2173
|
+
function ua(e = {}, t, r, n) {
|
|
2174
|
+
var i = I.r, s = $;
|
|
2175
|
+
return Kn(() => {
|
|
2176
|
+
var l, o;
|
|
2177
|
+
return Pr(() => {
|
|
2178
|
+
l = o, o = n?.() || [], Dr(() => {
|
|
2179
|
+
lr(r(...o), e) || (t(e, ...o), l && lr(r(...l), e) && t(null, ...l));
|
|
2180
|
+
});
|
|
2181
|
+
}), () => {
|
|
2182
|
+
let f = s;
|
|
2183
|
+
for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
|
|
2184
|
+
const h = () => {
|
|
2185
|
+
o && lr(r(...o), e) && t(null, ...o);
|
|
2186
|
+
}, v = f.teardown;
|
|
2187
|
+
f.teardown = () => {
|
|
2188
|
+
h(), v?.();
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
}), e;
|
|
2192
|
+
}
|
|
2193
|
+
function un(e, t, r, n) {
|
|
2194
|
+
var i = !Qt || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, h = void 0, v = () => l && i ? (h ?? (h = /* @__PURE__ */ gt(n)), x(h)) : (f && (f = !1, o = l ? Dr(n) : n), o);
|
|
2195
|
+
let d;
|
|
2196
|
+
if (s) {
|
|
2197
|
+
var c = dt in e || _n in e;
|
|
2198
|
+
d = Oe(e, t)?.set ?? (c && t in e ? (S) => e[t] = S : void 0);
|
|
2199
|
+
}
|
|
2200
|
+
var u, g = !1;
|
|
2201
|
+
s ? [u, g] = ns(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = v(), d && (i && Hi(t), d(u)));
|
|
2202
|
+
var m;
|
|
2203
|
+
if (i ? m = () => {
|
|
2204
|
+
var S = e[t];
|
|
2205
|
+
return S === void 0 ? v() : (f = !0, S);
|
|
2206
|
+
} : m = () => {
|
|
2207
|
+
var S = e[t];
|
|
2208
|
+
return S !== void 0 && (o = void 0), S === void 0 ? o : S;
|
|
2209
|
+
}, i && (r & 4) === 0) return m;
|
|
2210
|
+
if (d) {
|
|
2211
|
+
var _ = e.$$legacy;
|
|
2212
|
+
return (function(S, F) {
|
|
2213
|
+
return arguments.length > 0 ? ((!i || !F || _ || g) && d(F ? m() : S), S) : m();
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
var p = !1, T = ((r & 1) !== 0 ? gt : Ar)(() => (p = !1, m()));
|
|
2217
|
+
s && x(T);
|
|
2218
|
+
var A = $;
|
|
2219
|
+
return (function(S, F) {
|
|
2220
|
+
if (arguments.length > 0) {
|
|
2221
|
+
const O = F ? x(T) : i && s ? Ke(S) : S;
|
|
2222
|
+
return fe(T, O), p = !0, o !== void 0 && (o = O), S;
|
|
2223
|
+
}
|
|
2224
|
+
return be && p || (A.f & 16384) !== 0 ? T.v : x(T);
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
function ca(e) {
|
|
2228
|
+
return new da(e);
|
|
2229
|
+
}
|
|
2230
|
+
var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), da = class {
|
|
2231
|
+
constructor(e) {
|
|
2232
|
+
y(this, Me, void 0), y(this, le, void 0);
|
|
2233
|
+
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2234
|
+
var l = /* @__PURE__ */ Dn(s, !1, !1);
|
|
2235
|
+
return t.set(i, l), l;
|
|
2236
|
+
};
|
|
2237
|
+
const n = new Proxy({
|
|
2238
|
+
...e.props || {},
|
|
2239
|
+
$$events: {}
|
|
2240
|
+
}, {
|
|
2241
|
+
get(i, s) {
|
|
2242
|
+
return x(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2243
|
+
},
|
|
2244
|
+
has(i, s) {
|
|
2245
|
+
return s === _n ? !0 : (x(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2246
|
+
},
|
|
2247
|
+
set(i, s, l) {
|
|
2248
|
+
return fe(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
|
|
2249
|
+
}
|
|
2250
|
+
});
|
|
2251
|
+
w(le, this, (e.hydrate ? Ks : oi)(e.component, {
|
|
2252
|
+
target: e.target,
|
|
2253
|
+
anchor: e.anchor,
|
|
2254
|
+
props: n,
|
|
2255
|
+
context: e.context,
|
|
2256
|
+
intro: e.intro ?? !1,
|
|
2257
|
+
recover: e.recover,
|
|
2258
|
+
transformError: e.transformError
|
|
2259
|
+
})), !we && (!e?.props?.$$host || e.sync === !1) && pr(), w(Me, this, n.$$events);
|
|
2260
|
+
for (const i of Object.keys(a(le, this)))
|
|
2261
|
+
i === "$set" || i === "$destroy" || i === "$on" || Wt(this, i, {
|
|
2262
|
+
get() {
|
|
2263
|
+
return a(le, this)[i];
|
|
2264
|
+
},
|
|
2265
|
+
set(s) {
|
|
2266
|
+
a(le, this)[i] = s;
|
|
2267
|
+
},
|
|
2268
|
+
enumerable: !0
|
|
2269
|
+
});
|
|
2270
|
+
a(le, this).$set = (i) => {
|
|
2271
|
+
Object.assign(n, i);
|
|
2272
|
+
}, a(le, this).$destroy = () => {
|
|
2273
|
+
Xs(a(le, this));
|
|
2274
|
+
};
|
|
2275
|
+
}
|
|
2276
|
+
$set(e) {
|
|
2277
|
+
a(le, this).$set(e);
|
|
2278
|
+
}
|
|
2279
|
+
$on(e, t) {
|
|
2280
|
+
a(Me, this)[e] = a(Me, this)[e] || [];
|
|
2281
|
+
const r = (...n) => t.call(this, ...n);
|
|
2282
|
+
return a(Me, this)[e].push(r), () => {
|
|
2283
|
+
a(Me, this)[e] = a(Me, this)[e].filter((n) => n !== r);
|
|
2284
|
+
};
|
|
2285
|
+
}
|
|
2286
|
+
$destroy() {
|
|
2287
|
+
a(le, this).$destroy();
|
|
2288
|
+
}
|
|
2289
|
+
}, di;
|
|
2290
|
+
typeof HTMLElement == "function" && (di = class extends HTMLElement {
|
|
2291
|
+
constructor(e, t, r) {
|
|
2292
|
+
super(), R(this, "$$ctor", void 0), R(this, "$$s", void 0), R(this, "$$c", void 0), R(this, "$$cn", !1), R(this, "$$d", {}), R(this, "$$r", !1), R(this, "$$p_d", {}), R(this, "$$l", {}), R(this, "$$l_u", /* @__PURE__ */ new Map()), R(this, "$$me", void 0), R(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2293
|
+
}
|
|
2294
|
+
addEventListener(e, t, r) {
|
|
2295
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
2296
|
+
const n = this.$$c.$on(e, t);
|
|
2297
|
+
this.$$l_u.set(t, n);
|
|
2298
|
+
}
|
|
2299
|
+
super.addEventListener(e, t, r);
|
|
2300
|
+
}
|
|
2301
|
+
removeEventListener(e, t, r) {
|
|
2302
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
2303
|
+
const n = this.$$l_u.get(t);
|
|
2304
|
+
n && (n(), this.$$l_u.delete(t));
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
async connectedCallback() {
|
|
2308
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
2309
|
+
let e = function(n) {
|
|
2310
|
+
return (i) => {
|
|
2311
|
+
const s = Cr("slot");
|
|
2312
|
+
n !== "default" && (s.name = n), Ct(i, s);
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2316
|
+
const t = {}, r = ha(this);
|
|
2317
|
+
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2318
|
+
for (const n of this.attributes) {
|
|
2319
|
+
const i = this.$$g_p(n.name);
|
|
2320
|
+
i in this.$$d || (this.$$d[i] = Nt(i, n.value, this.$$p_d, "toProp"));
|
|
2321
|
+
}
|
|
2322
|
+
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2323
|
+
this.$$c = ca({
|
|
2324
|
+
component: this.$$ctor,
|
|
2325
|
+
target: this.$$shadowRoot || this,
|
|
2326
|
+
props: {
|
|
2327
|
+
...this.$$d,
|
|
2328
|
+
$$slots: t,
|
|
2329
|
+
$$host: this
|
|
2330
|
+
}
|
|
2331
|
+
}), this.$$me = Ls(() => {
|
|
2332
|
+
Pr(() => {
|
|
2333
|
+
this.$$r = !0;
|
|
2334
|
+
for (const n of Pt(this.$$c)) {
|
|
2335
|
+
if (!this.$$p_d[n]?.reflect) continue;
|
|
2336
|
+
this.$$d[n] = this.$$c[n];
|
|
2337
|
+
const i = Nt(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2338
|
+
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2339
|
+
}
|
|
2340
|
+
this.$$r = !1;
|
|
2341
|
+
});
|
|
2342
|
+
});
|
|
2343
|
+
for (const n in this.$$l) for (const i of this.$$l[n]) {
|
|
2344
|
+
const s = this.$$c.$on(n, i);
|
|
2345
|
+
this.$$l_u.set(i, s);
|
|
2346
|
+
}
|
|
2347
|
+
this.$$l = {};
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
attributeChangedCallback(e, t, r) {
|
|
2351
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Nt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2352
|
+
}
|
|
2353
|
+
disconnectedCallback() {
|
|
2354
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
2355
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
$$g_p(e) {
|
|
2359
|
+
return Pt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2360
|
+
}
|
|
2361
|
+
});
|
|
2362
|
+
function Nt(e, t, r, n) {
|
|
2363
|
+
const i = r[e]?.type;
|
|
2364
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2365
|
+
if (n === "toAttribute") switch (i) {
|
|
2366
|
+
case "Object":
|
|
2367
|
+
case "Array":
|
|
2368
|
+
return t == null ? null : JSON.stringify(t);
|
|
2369
|
+
case "Boolean":
|
|
2370
|
+
return t ? "" : null;
|
|
2371
|
+
case "Number":
|
|
2372
|
+
return t ?? null;
|
|
2373
|
+
default:
|
|
2374
|
+
return t;
|
|
2375
|
+
}
|
|
2376
|
+
else switch (i) {
|
|
2377
|
+
case "Object":
|
|
2378
|
+
case "Array":
|
|
2379
|
+
return t && JSON.parse(t);
|
|
2380
|
+
case "Boolean":
|
|
2381
|
+
return t;
|
|
2382
|
+
case "Number":
|
|
2383
|
+
return t != null ? +t : t;
|
|
2384
|
+
default:
|
|
2385
|
+
return t;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
function ha(e) {
|
|
2389
|
+
const t = {};
|
|
2390
|
+
return e.childNodes.forEach((r) => {
|
|
2391
|
+
t[r.slot || "default"] = !0;
|
|
2392
|
+
}), t;
|
|
2393
|
+
}
|
|
2394
|
+
function va(e, t, r, n, i, s) {
|
|
2395
|
+
let l = class extends di {
|
|
2396
|
+
constructor() {
|
|
2397
|
+
super(e, r, i), this.$$p_d = t;
|
|
2398
|
+
}
|
|
2399
|
+
static get observedAttributes() {
|
|
2400
|
+
return Pt(t).map((o) => (t[o].attribute || o).toLowerCase());
|
|
2401
|
+
}
|
|
2402
|
+
};
|
|
2403
|
+
return Pt(t).forEach((o) => {
|
|
2404
|
+
Wt(l.prototype, o, {
|
|
2405
|
+
get() {
|
|
2406
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2407
|
+
},
|
|
2408
|
+
set(f) {
|
|
2409
|
+
f = Nt(o, f, t), this.$$d[o] = f;
|
|
2410
|
+
var h = this.$$c;
|
|
2411
|
+
h && (Oe(h, o)?.get ? h[o] = f : h.$set({ [o]: f }));
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
}), n.forEach((o) => {
|
|
2415
|
+
Wt(l.prototype, o, { get() {
|
|
2416
|
+
return this.$$c?.[o];
|
|
2417
|
+
} });
|
|
2418
|
+
}), s && (l = s(l)), e.element = l, l;
|
|
2419
|
+
}
|
|
2420
|
+
var br = "sign-language", ja = "ase", _a = {
|
|
2421
|
+
ase: "American Sign Language",
|
|
2422
|
+
bfi: "British Sign Language",
|
|
2423
|
+
fsl: "French Sign Language",
|
|
2424
|
+
gss: "Greek Sign Language",
|
|
2425
|
+
mfs: "Mexican Sign Language",
|
|
2426
|
+
"eng-US": "Signed English",
|
|
2427
|
+
"en-US": "Signed English"
|
|
2428
|
+
};
|
|
2429
|
+
function pa(e) {
|
|
2430
|
+
const t = (e || "").trim();
|
|
2431
|
+
return t ? _a[t] ?? `Sign language (${t})` : "Sign language";
|
|
2432
|
+
}
|
|
2433
|
+
function cn(e) {
|
|
2434
|
+
if (!e) return null;
|
|
2435
|
+
const t = nt(e.language), r = e.payload;
|
|
2436
|
+
if (!r || typeof r != "object")
|
|
2437
|
+
return nt(e.content) ? console.warn("[sign-language] card carries `content` but no `payload`; signing media must be a structured payload, so this card is ignored") : console.warn("[sign-language] card carries no `payload`; signing media lives in `payload` (a card written against the older `signLanguage` key needs re-importing), so this card is ignored"), null;
|
|
2438
|
+
const n = r.media, i = wi(n?.sources);
|
|
2439
|
+
if (i.length === 0) return null;
|
|
2440
|
+
const s = nt(n?.poster);
|
|
2441
|
+
return {
|
|
2442
|
+
signLang: nt(r.signLang) ?? t,
|
|
2443
|
+
sources: i,
|
|
2444
|
+
poster: s && gi(s) ? s : void 0,
|
|
2445
|
+
label: nt(n?.label),
|
|
2446
|
+
fragment: mi(r.fragment)
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
function ga(e, t) {
|
|
2450
|
+
if (!e.signLang) return !0;
|
|
2451
|
+
const r = (t || "").trim();
|
|
2452
|
+
return r ? e.signLang.toLowerCase() === r.toLowerCase() : !0;
|
|
2453
|
+
}
|
|
2454
|
+
function ma(e) {
|
|
2455
|
+
return e?.catalog === br;
|
|
2456
|
+
}
|
|
2457
|
+
var wa = 0, ya = /* @__PURE__ */ li("<source/>"), ba = /* @__PURE__ */ li('<figure class="pie-tool-sign-language svelte-detmj8"><video class="pie-tool-sign-language__video svelte-detmj8" controls="" playsinline="" preload="metadata"></video> <figcaption class="pie-tool-sign-language__caption svelte-detmj8"> </figcaption></figure>', 2), $a = {
|
|
2458
|
+
hash: "svelte-detmj8",
|
|
2459
|
+
code: `:host {display:block;min-width:0;}.pie-tool-sign-language.svelte-detmj8 {display:flex;flex-direction:column;gap:0.5rem;margin:0;min-width:0;}.pie-tool-sign-language__video.svelte-detmj8 {width:100%;
|
|
2460
|
+
/* Signing needs height for hands and face, so the recording's own frame
|
|
2461
|
+
shape drives the box (portrait clips stay tall) with a target for the
|
|
2462
|
+
common case and a floor so a narrow column cannot crush it. A flat
|
|
2463
|
+
width percentage alone either wastes space or makes signing
|
|
2464
|
+
unreadable. */aspect-ratio:var(--pie-section-player-item-media-aspect-ratio, 3 / 4);min-height:var(--pie-section-player-item-media-min-height, 220px);max-height:var(--pie-section-player-item-media-max-height, 60vh);object-fit:contain;border-radius:var(--pie-section-player-card-radius, 8px);background:var(--pie-blue-grey-900, #111827);}.pie-tool-sign-language__caption.svelte-detmj8 {font-size:0.8125rem;color:var(--pie-text-light, var(--pie-text, #111827));}`
|
|
2465
|
+
};
|
|
2466
|
+
function ka(e, t) {
|
|
2467
|
+
wn(t, !0), na(e, $a);
|
|
2468
|
+
let r = un(t, "media", 7, null), n = un(t, "ttsService", 7, null), i = /* @__PURE__ */ pe(null);
|
|
2469
|
+
const s = `pie-tool-sign-language-${wa += 1}`, l = /* @__PURE__ */ tr(() => pa(r()?.signLang)), o = /* @__PURE__ */ tr(() => r()?.label || `${x(l)} translation`), f = /* @__PURE__ */ tr(() => (r()?.sources ?? []).map((p) => ({
|
|
2470
|
+
...p,
|
|
2471
|
+
src: _i(p.src, r()?.fragment)
|
|
2472
|
+
})));
|
|
2473
|
+
function h() {
|
|
2474
|
+
x(i) && !x(i).paused && x(i).pause();
|
|
2475
|
+
}
|
|
2476
|
+
function v() {
|
|
2477
|
+
if (n())
|
|
2478
|
+
try {
|
|
2479
|
+
n().isPlaying() && n().pause();
|
|
2480
|
+
} catch {
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
function d() {
|
|
2484
|
+
const p = r()?.fragment?.startSeconds;
|
|
2485
|
+
!x(i) || p === void 0 || x(i).currentTime < p && (x(i).currentTime = p);
|
|
2486
|
+
}
|
|
2487
|
+
function c() {
|
|
2488
|
+
const p = r()?.fragment?.endSeconds;
|
|
2489
|
+
!x(i) || p === void 0 || x(i).currentTime >= p && x(i).pause();
|
|
2490
|
+
}
|
|
2491
|
+
As(() => {
|
|
2492
|
+
if (!n() || typeof n().onStateChange != "function") return;
|
|
2493
|
+
const p = (T) => {
|
|
2494
|
+
(T === "playing" || T === "loading") && h();
|
|
2495
|
+
};
|
|
2496
|
+
return n().onStateChange(s, p), () => {
|
|
2497
|
+
try {
|
|
2498
|
+
n().offStateChange(s, p);
|
|
2499
|
+
} catch {
|
|
2500
|
+
}
|
|
2501
|
+
};
|
|
2502
|
+
});
|
|
2503
|
+
var u = {
|
|
2504
|
+
get media() {
|
|
2505
|
+
return r();
|
|
2506
|
+
},
|
|
2507
|
+
set media(p = null) {
|
|
2508
|
+
r(p), pr();
|
|
2509
|
+
},
|
|
2510
|
+
get ttsService() {
|
|
2511
|
+
return n();
|
|
2512
|
+
},
|
|
2513
|
+
set ttsService(p = null) {
|
|
2514
|
+
n(p), pr();
|
|
2515
|
+
}
|
|
2516
|
+
}, g = Us(), m = Es(g), _ = (p) => {
|
|
2517
|
+
var T = ba(), A = Qr(T);
|
|
2518
|
+
A.muted = !0, ea(A, 21, () => x(f), (O) => O.src, (O, H) => {
|
|
2519
|
+
var V = ya();
|
|
2520
|
+
en(() => {
|
|
2521
|
+
He(V, "src", x(H).src), He(V, "type", x(H).type || void 0);
|
|
2522
|
+
}), Ct(O, V);
|
|
2523
|
+
}), er(A), ua(A, (O) => fe(i, O), () => x(i));
|
|
2524
|
+
var S = xs(A, 2), F = Qr(S, !0);
|
|
2525
|
+
er(S), er(T), en(() => {
|
|
2526
|
+
He(T, "data-pie-sign-language", r().signLang || void 0), He(T, "data-pie-catalog-id", r().catalogId || void 0), He(A, "aria-label", x(o)), He(A, "poster", r().poster || void 0), Vs(F, x(l));
|
|
2527
|
+
}), nr("play", A, v), nr("loadedmetadata", A, d), nr("timeupdate", A, c), Ct(p, T);
|
|
2528
|
+
};
|
|
2529
|
+
return Zs(m, (p) => {
|
|
2530
|
+
r() && x(f).length > 0 && p(_);
|
|
2531
|
+
}), Ct(e, g), yn(u);
|
|
2532
|
+
}
|
|
2533
|
+
customElements.define("pie-tool-sign-language", va(ka, {
|
|
2534
|
+
media: { type: "Object" },
|
|
2535
|
+
ttsService: { type: "Object" }
|
|
2536
|
+
}, [], [], { mode: "open" }));
|
|
2537
|
+
var or = "signLanguage";
|
|
2538
|
+
function Sa(e) {
|
|
2539
|
+
if (!e) return [];
|
|
2540
|
+
const t = [], r = /* @__PURE__ */ new Set(), n = pi(e, {
|
|
2541
|
+
kind: "item",
|
|
2542
|
+
itemId: e.id ?? ""
|
|
2543
|
+
});
|
|
2544
|
+
for (const i of n) {
|
|
2545
|
+
const s = i.context.modelId;
|
|
2546
|
+
for (const l of i.catalogs) {
|
|
2547
|
+
if (!Array.isArray(l?.cards) || !l.cards.some(ma)) continue;
|
|
2548
|
+
const o = `${s ?? ""}|${l.identifier}`;
|
|
2549
|
+
r.has(o) || (r.add(o), t.push(s ? {
|
|
2550
|
+
catalogId: l.identifier,
|
|
2551
|
+
modelId: s
|
|
2552
|
+
} : { catalogId: l.identifier }));
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
return t;
|
|
2556
|
+
}
|
|
2557
|
+
function Ea(e) {
|
|
2558
|
+
const t = e.requestedSignLang?.trim() || "ase";
|
|
2559
|
+
for (const r of e.refs) {
|
|
2560
|
+
const n = r.modelId ? {
|
|
2561
|
+
...e.ownerContext,
|
|
2562
|
+
modelId: r.modelId
|
|
2563
|
+
} : e.ownerContext, i = cn(e.resolver.getAlternative(r.catalogId, {
|
|
2564
|
+
type: br,
|
|
2565
|
+
language: t,
|
|
2566
|
+
useFallback: !1,
|
|
2567
|
+
context: n
|
|
2568
|
+
}));
|
|
2569
|
+
if (i) return {
|
|
2570
|
+
...i,
|
|
2571
|
+
catalogId: r.catalogId
|
|
2572
|
+
};
|
|
2573
|
+
const s = cn(e.resolver.getAlternative(r.catalogId, {
|
|
2574
|
+
type: br,
|
|
2575
|
+
language: t,
|
|
2576
|
+
useFallback: !0,
|
|
2577
|
+
context: n
|
|
2578
|
+
}));
|
|
2579
|
+
if (s && ga(s, t)) return {
|
|
2580
|
+
...s,
|
|
2581
|
+
catalogId: r.catalogId
|
|
2582
|
+
};
|
|
2583
|
+
}
|
|
2584
|
+
return null;
|
|
2585
|
+
}
|
|
2586
|
+
function xa(e) {
|
|
2587
|
+
if (!e || typeof e != "object") return;
|
|
2588
|
+
const t = e.signLang;
|
|
2589
|
+
if (typeof t == "string" && t.trim()) return t.trim();
|
|
2590
|
+
}
|
|
2591
|
+
function Ma(e) {
|
|
2592
|
+
const t = e.catalogResolver;
|
|
2593
|
+
if (!t) return null;
|
|
2594
|
+
const r = Sa(e.item);
|
|
2595
|
+
return r.length === 0 ? null : Ea({
|
|
2596
|
+
resolver: t,
|
|
2597
|
+
refs: r,
|
|
2598
|
+
ownerContext: e.ownerContext,
|
|
2599
|
+
requestedSignLang: xa(e.parameters)
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
var Ta = "content-media", Aa = "pie-tool-sign-language", Fa = {
|
|
2603
|
+
toolId: or,
|
|
2604
|
+
name: "Sign Language",
|
|
2605
|
+
description: "Signed translation, docked beside the content it interprets",
|
|
2606
|
+
supportedLevels: ["item", "passage"],
|
|
2607
|
+
pnpSupportIds: [or],
|
|
2608
|
+
activation: "region",
|
|
2609
|
+
surfaces: [Ta],
|
|
2610
|
+
requiresAuthoredContent: { resolve(e) {
|
|
2611
|
+
return Ma(e);
|
|
2612
|
+
} },
|
|
2613
|
+
renderSurface(e) {
|
|
2614
|
+
const t = e.content;
|
|
2615
|
+
if (!t) return null;
|
|
2616
|
+
const r = e.componentOverrides ?? {}, n = yi(e.toolId, {
|
|
2617
|
+
...r,
|
|
2618
|
+
toolTagMap: {
|
|
2619
|
+
[or]: Aa,
|
|
2620
|
+
...r.toolTagMap
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
if (typeof customElements < "u" && !customElements.get(n)) return null;
|
|
2624
|
+
const i = document.createElement(n), s = (l) => {
|
|
2625
|
+
i.media = l.content, i.ttsService = l.services.ttsService;
|
|
2626
|
+
};
|
|
2627
|
+
return s(e), {
|
|
2628
|
+
element: i,
|
|
2629
|
+
ariaLabel: t.label || void 0,
|
|
2630
|
+
sync: s
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2633
|
+
};
|
|
2634
|
+
export {
|
|
2635
|
+
ja as AMERICAN_SIGN_LANGUAGE,
|
|
2636
|
+
Ta as CONTENT_MEDIA_SURFACE,
|
|
2637
|
+
br as SIGN_LANGUAGE_CATALOG_TYPE,
|
|
2638
|
+
Aa as SIGN_LANGUAGE_ELEMENT_TAG,
|
|
2639
|
+
or as SIGN_LANGUAGE_FEATURE_ID,
|
|
2640
|
+
Sa as collectSignLanguageCatalogRefs,
|
|
2641
|
+
pa as describeSignLanguage,
|
|
2642
|
+
ma as isSignLanguageCard,
|
|
2643
|
+
ga as matchesRequestedSignLanguage,
|
|
2644
|
+
xa as resolveRequestedSignLanguage,
|
|
2645
|
+
Ea as resolveSignLanguageAlternate,
|
|
2646
|
+
Ma as resolveSignLanguageContent,
|
|
2647
|
+
cn as resolveSignLanguageMedia,
|
|
2648
|
+
Fa as signLanguageRegistration
|
|
2649
|
+
};
|