@nil-/xit 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -4
- package/test.d.ts +8 -0
- package/test.js +31 -0
- package/assets/bundler.js +0 -276
- package/assets/index.js +0 -2536
- package/assets/svelte/animate.js +0 -29
- package/assets/svelte/easing.js +0 -130
- package/assets/svelte/events.js +0 -4
- package/assets/svelte/index.js +0 -2316
- package/assets/svelte/internal/client.js +0 -2304
- package/assets/svelte/internal/disclose-version.js +0 -2
- package/assets/svelte/motion.js +0 -460
- package/assets/svelte/store.js +0 -168
- package/assets/svelte/transition.js +0 -142
package/assets/svelte/index.js
DELETED
|
@@ -1,2316 +0,0 @@
|
|
|
1
|
-
import "./internal/client.js";
|
|
2
|
-
const $e = !1;
|
|
3
|
-
var Ie = Array.isArray, pn = Array.prototype.indexOf, hn = Array.from, Hr = Object.keys, wn = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, yn = Object.getOwnPropertyDescriptors, wt = Object.prototype, mn = Array.prototype, Re = Object.getPrototypeOf;
|
|
4
|
-
function Vr(e) {
|
|
5
|
-
return typeof e == "function";
|
|
6
|
-
}
|
|
7
|
-
const gn = () => {
|
|
8
|
-
};
|
|
9
|
-
function Yr(e) {
|
|
10
|
-
return typeof (e == null ? void 0 : e.then) == "function";
|
|
11
|
-
}
|
|
12
|
-
function Ur(e) {
|
|
13
|
-
return e();
|
|
14
|
-
}
|
|
15
|
-
function yt(e) {
|
|
16
|
-
for (var t = 0; t < e.length; t++)
|
|
17
|
-
e[t]();
|
|
18
|
-
}
|
|
19
|
-
function Wr() {
|
|
20
|
-
var e, t, n = new Promise((r, s) => {
|
|
21
|
-
e = r, t = s;
|
|
22
|
-
});
|
|
23
|
-
return { promise: n, resolve: e, reject: t };
|
|
24
|
-
}
|
|
25
|
-
function jr(e, t, n = !1) {
|
|
26
|
-
return e === void 0 ? n ? (
|
|
27
|
-
/** @type {() => V} */
|
|
28
|
-
t()
|
|
29
|
-
) : (
|
|
30
|
-
/** @type {V} */
|
|
31
|
-
t
|
|
32
|
-
) : e;
|
|
33
|
-
}
|
|
34
|
-
const S = 2, mt = 4, Ee = 8, Je = 16, V = 32, le = 64, ke = 128, M = 256, xe = 512, g = 1024, Y = 2048, ee = 4096, ie = 8192, fe = 16384, bn = 32768, Xe = 65536, En = 1 << 17, Tn = 1 << 18, gt = 1 << 19, bt = 1 << 20, G = Symbol("$state"), Et = Symbol("$state metadata"), Gr = Symbol("legacy props"), zr = Symbol(""), An = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
35
|
-
let Ce = !1, Ne = !1, Be = [], He = [];
|
|
36
|
-
function Tt() {
|
|
37
|
-
Ce = !1;
|
|
38
|
-
const e = Be.slice();
|
|
39
|
-
Be = [], yt(e);
|
|
40
|
-
}
|
|
41
|
-
function At() {
|
|
42
|
-
Ne = !1;
|
|
43
|
-
const e = He.slice();
|
|
44
|
-
He = [], yt(e);
|
|
45
|
-
}
|
|
46
|
-
function St(e) {
|
|
47
|
-
Ce || (Ce = !0, queueMicrotask(Tt)), Be.push(e);
|
|
48
|
-
}
|
|
49
|
-
function Kr(e) {
|
|
50
|
-
Ne || (Ne = !0, An(At)), He.push(e);
|
|
51
|
-
}
|
|
52
|
-
function Sn() {
|
|
53
|
-
Ce && Tt(), Ne && At();
|
|
54
|
-
}
|
|
55
|
-
function kt(e) {
|
|
56
|
-
return e === this.v;
|
|
57
|
-
}
|
|
58
|
-
function kn(e, t) {
|
|
59
|
-
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
60
|
-
}
|
|
61
|
-
function Jr(e, t) {
|
|
62
|
-
return e !== t;
|
|
63
|
-
}
|
|
64
|
-
function xt(e) {
|
|
65
|
-
return !kn(e, this.v);
|
|
66
|
-
}
|
|
67
|
-
function Xr(e, t, n) {
|
|
68
|
-
throw new Error("https://svelte.dev/e/component_api_changed");
|
|
69
|
-
}
|
|
70
|
-
function Zr(e, t) {
|
|
71
|
-
throw new Error("https://svelte.dev/e/component_api_invalid_new");
|
|
72
|
-
}
|
|
73
|
-
function Qr(e, t, n) {
|
|
74
|
-
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
75
|
-
}
|
|
76
|
-
function xn(e) {
|
|
77
|
-
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
78
|
-
}
|
|
79
|
-
function Cn() {
|
|
80
|
-
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
81
|
-
}
|
|
82
|
-
function Nn(e) {
|
|
83
|
-
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
84
|
-
}
|
|
85
|
-
function On() {
|
|
86
|
-
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
87
|
-
}
|
|
88
|
-
function In() {
|
|
89
|
-
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
90
|
-
}
|
|
91
|
-
function Ct(e) {
|
|
92
|
-
throw new Error("https://svelte.dev/e/lifecycle_legacy_only");
|
|
93
|
-
}
|
|
94
|
-
function es(e) {
|
|
95
|
-
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
96
|
-
}
|
|
97
|
-
function Rn() {
|
|
98
|
-
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
99
|
-
}
|
|
100
|
-
function Dn() {
|
|
101
|
-
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
102
|
-
}
|
|
103
|
-
function Pn() {
|
|
104
|
-
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
105
|
-
}
|
|
106
|
-
function Ln() {
|
|
107
|
-
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
108
|
-
}
|
|
109
|
-
let Mn = !1;
|
|
110
|
-
const ts = 1, ns = 2, rs = 4, ss = 8, as = 16, os = 1, is = 4, us = 8, ls = 16, fs = 1, cs = 2, _s = 4, Nt = 1, qn = 2, Ze = "[", Fn = "[!", Ot = "]", he = {}, b = Symbol(), W = Symbol("filename"), vs = Symbol("hmr"), ds = "http://www.w3.org/2000/svg";
|
|
111
|
-
function ps(e) {
|
|
112
|
-
console.warn("https://svelte.dev/e/dynamic_void_element_content");
|
|
113
|
-
}
|
|
114
|
-
const $n = [];
|
|
115
|
-
function Bn(e, t = !1) {
|
|
116
|
-
return Ae(e, /* @__PURE__ */ new Map(), "", $n);
|
|
117
|
-
}
|
|
118
|
-
function Ae(e, t, n, r, s = null) {
|
|
119
|
-
if (typeof e == "object" && e !== null) {
|
|
120
|
-
var a = t.get(e);
|
|
121
|
-
if (a !== void 0) return a;
|
|
122
|
-
if (e instanceof Map) return (
|
|
123
|
-
/** @type {Snapshot<T>} */
|
|
124
|
-
new Map(e)
|
|
125
|
-
);
|
|
126
|
-
if (e instanceof Set) return (
|
|
127
|
-
/** @type {Snapshot<T>} */
|
|
128
|
-
new Set(e)
|
|
129
|
-
);
|
|
130
|
-
if (Ie(e)) {
|
|
131
|
-
var o = (
|
|
132
|
-
/** @type {Snapshot<any>} */
|
|
133
|
-
Array(e.length)
|
|
134
|
-
);
|
|
135
|
-
t.set(e, o), s !== null && t.set(s, o);
|
|
136
|
-
for (var c = 0; c < e.length; c += 1) {
|
|
137
|
-
var u = e[c];
|
|
138
|
-
c in e && (o[c] = Ae(u, t, n, r));
|
|
139
|
-
}
|
|
140
|
-
return o;
|
|
141
|
-
}
|
|
142
|
-
if (Re(e) === wt) {
|
|
143
|
-
o = {}, t.set(e, o), s !== null && t.set(s, o);
|
|
144
|
-
for (var i in e)
|
|
145
|
-
o[i] = Ae(e[i], t, n, r);
|
|
146
|
-
return o;
|
|
147
|
-
}
|
|
148
|
-
if (e instanceof Date)
|
|
149
|
-
return (
|
|
150
|
-
/** @type {Snapshot<T>} */
|
|
151
|
-
structuredClone(e)
|
|
152
|
-
);
|
|
153
|
-
if (typeof /** @type {T & { toJSON?: any } } */
|
|
154
|
-
e.toJSON == "function")
|
|
155
|
-
return Ae(
|
|
156
|
-
/** @type {T & { toJSON(): any } } */
|
|
157
|
-
e.toJSON(),
|
|
158
|
-
t,
|
|
159
|
-
n,
|
|
160
|
-
r,
|
|
161
|
-
// Associate the instance with the toJSON clone
|
|
162
|
-
e
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
if (e instanceof EventTarget)
|
|
166
|
-
return (
|
|
167
|
-
/** @type {Snapshot<T>} */
|
|
168
|
-
e
|
|
169
|
-
);
|
|
170
|
-
try {
|
|
171
|
-
return (
|
|
172
|
-
/** @type {Snapshot<T>} */
|
|
173
|
-
structuredClone(e)
|
|
174
|
-
);
|
|
175
|
-
} catch {
|
|
176
|
-
return (
|
|
177
|
-
/** @type {Snapshot<T>} */
|
|
178
|
-
e
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
let U = null;
|
|
183
|
-
function Ve(e, t) {
|
|
184
|
-
const n = e.debug, r = e.trace_need_increase ? e.trace_v : e.v;
|
|
185
|
-
if (r === b)
|
|
186
|
-
return;
|
|
187
|
-
if (n) {
|
|
188
|
-
var s = $, a = /* @__PURE__ */ new Set();
|
|
189
|
-
vt(a);
|
|
190
|
-
try {
|
|
191
|
-
J(() => {
|
|
192
|
-
n();
|
|
193
|
-
});
|
|
194
|
-
} finally {
|
|
195
|
-
vt(s);
|
|
196
|
-
}
|
|
197
|
-
if (a.size > 0) {
|
|
198
|
-
for (const f of a)
|
|
199
|
-
Ve(f);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const o = e.f & S ? "$derived" : "$state", c = (
|
|
204
|
-
/** @type {Reaction} */
|
|
205
|
-
p
|
|
206
|
-
), u = e.wv > c.wv || c.wv === 0;
|
|
207
|
-
if (console.groupCollapsed(
|
|
208
|
-
`%c${o}`,
|
|
209
|
-
u ? "color: CornflowerBlue; font-weight: bold" : "color: grey; font-weight: bold",
|
|
210
|
-
typeof r == "object" && r !== null && G in r ? Bn(r, !0) : r
|
|
211
|
-
), o === "$derived") {
|
|
212
|
-
const f = new Set(
|
|
213
|
-
/** @type {Derived} */
|
|
214
|
-
e.deps
|
|
215
|
-
);
|
|
216
|
-
for (const l of f)
|
|
217
|
-
Ve(l);
|
|
218
|
-
}
|
|
219
|
-
e.created && console.log(e.created), e.updated && console.log(e.updated);
|
|
220
|
-
const i = t == null ? void 0 : t.read;
|
|
221
|
-
if (i && i.length > 0)
|
|
222
|
-
for (var _ of i)
|
|
223
|
-
console.log(_);
|
|
224
|
-
console.groupEnd();
|
|
225
|
-
}
|
|
226
|
-
function hs(e, t) {
|
|
227
|
-
var n = U;
|
|
228
|
-
try {
|
|
229
|
-
U = { entries: /* @__PURE__ */ new Map(), reaction: p };
|
|
230
|
-
var r = performance.now(), s = t(), a = (performance.now() - r).toFixed(2);
|
|
231
|
-
if (!pr())
|
|
232
|
-
console.log(`${e()} %cran outside of an effect (${a}ms)`, "color: grey");
|
|
233
|
-
else if (U.entries.size === 0)
|
|
234
|
-
console.log(`${e()} %cno reactive dependencies (${a}ms)`, "color: grey");
|
|
235
|
-
else {
|
|
236
|
-
console.group(`${e()} %c(${a}ms)`, "color: grey");
|
|
237
|
-
var o = U.entries;
|
|
238
|
-
U = null;
|
|
239
|
-
for (const [u, i] of o)
|
|
240
|
-
Ve(u, i);
|
|
241
|
-
console.groupEnd();
|
|
242
|
-
}
|
|
243
|
-
if (n !== null && U !== null)
|
|
244
|
-
for (const [u, i] of U.entries) {
|
|
245
|
-
var c = n.get(u);
|
|
246
|
-
c === void 0 ? n.set(u, i) : c.read.push(...i.read);
|
|
247
|
-
}
|
|
248
|
-
return s;
|
|
249
|
-
} finally {
|
|
250
|
-
U = n;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
function ws(e, t) {
|
|
254
|
-
console.warn("https://svelte.dev/e/assignment_value_stale");
|
|
255
|
-
}
|
|
256
|
-
function ys(e, t) {
|
|
257
|
-
console.warn("https://svelte.dev/e/binding_property_non_reactive");
|
|
258
|
-
}
|
|
259
|
-
function ms(e) {
|
|
260
|
-
console.warn("https://svelte.dev/e/console_log_state");
|
|
261
|
-
}
|
|
262
|
-
function Hn(e, t) {
|
|
263
|
-
console.warn("https://svelte.dev/e/event_handler_invalid");
|
|
264
|
-
}
|
|
265
|
-
function Qe(e) {
|
|
266
|
-
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
267
|
-
}
|
|
268
|
-
function Vn(e, t, n) {
|
|
269
|
-
console.warn("https://svelte.dev/e/ownership_invalid_binding");
|
|
270
|
-
}
|
|
271
|
-
function It(e) {
|
|
272
|
-
console.warn("https://svelte.dev/e/state_proxy_equality_mismatch");
|
|
273
|
-
}
|
|
274
|
-
const we = {}, Yn = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, Un = /@(.+):(\d+):(\d+)$/;
|
|
275
|
-
function et() {
|
|
276
|
-
const e = new Error().stack;
|
|
277
|
-
if (!e) return null;
|
|
278
|
-
const t = [];
|
|
279
|
-
for (const n of e.split(`
|
|
280
|
-
`)) {
|
|
281
|
-
let r = Yn.exec(n) ?? Un.exec(n);
|
|
282
|
-
r && t.push({
|
|
283
|
-
file: r[1],
|
|
284
|
-
line: +r[2],
|
|
285
|
-
column: +r[3]
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
return t;
|
|
289
|
-
}
|
|
290
|
-
function gs() {
|
|
291
|
-
var t;
|
|
292
|
-
const e = (t = et()) == null ? void 0 : t.slice(4);
|
|
293
|
-
if (!e) return null;
|
|
294
|
-
for (let n = 0; n < e.length; n++) {
|
|
295
|
-
const r = e[n], s = we[r.file];
|
|
296
|
-
if (!s) {
|
|
297
|
-
if (n === 0) return null;
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
for (const a of s) {
|
|
301
|
-
if (a.end == null)
|
|
302
|
-
return null;
|
|
303
|
-
if (a.start.line < r.line && a.end.line > r.line)
|
|
304
|
-
return a.component;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
return null;
|
|
308
|
-
}
|
|
309
|
-
const Fe = Symbol("ADD_OWNER");
|
|
310
|
-
function bs() {
|
|
311
|
-
var t, n;
|
|
312
|
-
const e = (t = et()) == null ? void 0 : t[2];
|
|
313
|
-
e && (we[n = e.file] ?? (we[n] = [])).push({
|
|
314
|
-
start: e,
|
|
315
|
-
// @ts-expect-error
|
|
316
|
-
end: null,
|
|
317
|
-
// @ts-expect-error we add the component at the end, since HMR will overwrite the function
|
|
318
|
-
component: null
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
function Es(e) {
|
|
322
|
-
var n;
|
|
323
|
-
const t = (n = et()) == null ? void 0 : n[2];
|
|
324
|
-
if (t) {
|
|
325
|
-
const r = we[t.file], s = r[r.length - 1];
|
|
326
|
-
s.end = t, s.component = e;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function Wn(e, t, n = !1, r = !1) {
|
|
330
|
-
if (e && !n) {
|
|
331
|
-
const s = tt, a = e[Et];
|
|
332
|
-
if (a && !Rt(a, s)) {
|
|
333
|
-
let o = Dt(a);
|
|
334
|
-
t && t[W] !== s[W] && !r && Vn(s[W], t[W], o[W]);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
Ye(e, t, /* @__PURE__ */ new Set());
|
|
338
|
-
}
|
|
339
|
-
function Ts(e, t, n = !1) {
|
|
340
|
-
wr(() => {
|
|
341
|
-
Wn(e(), t, !1, n);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
function Ye(e, t, n) {
|
|
345
|
-
const r = (
|
|
346
|
-
/** @type {ProxyMetadata} */
|
|
347
|
-
e == null ? void 0 : e[Et]
|
|
348
|
-
);
|
|
349
|
-
if (r)
|
|
350
|
-
"owners" in r && r.owners != null && (t ? r.owners.add(t) : r.owners = null);
|
|
351
|
-
else if (e && typeof e == "object") {
|
|
352
|
-
if (n.has(e)) return;
|
|
353
|
-
if (n.add(e), Fe in e && e[Fe])
|
|
354
|
-
qe(() => {
|
|
355
|
-
e[Fe](t);
|
|
356
|
-
});
|
|
357
|
-
else {
|
|
358
|
-
var s = Re(e);
|
|
359
|
-
if (s === Object.prototype)
|
|
360
|
-
for (const a in e)
|
|
361
|
-
Ye(e[a], t, n);
|
|
362
|
-
else if (s === Array.prototype)
|
|
363
|
-
for (let a = 0; a < e.length; a += 1)
|
|
364
|
-
Ye(e[a], t, n);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
function Rt(e, t) {
|
|
369
|
-
return e.owners === null ? !0 : e.owners.has(t) || // This helps avoid false positives when using HMR, where the component function is replaced
|
|
370
|
-
[...e.owners].some(
|
|
371
|
-
(n) => (
|
|
372
|
-
/** @type {any} */
|
|
373
|
-
n[W] === /** @type {any} */
|
|
374
|
-
(t == null ? void 0 : t[W])
|
|
375
|
-
)
|
|
376
|
-
) || e.parent !== null && Rt(e.parent, t);
|
|
377
|
-
}
|
|
378
|
-
function Dt(e) {
|
|
379
|
-
var t;
|
|
380
|
-
return ((t = e == null ? void 0 : e.owners) == null ? void 0 : t.values().next().value) ?? Dt(
|
|
381
|
-
/** @type {ProxyMetadata} */
|
|
382
|
-
e.parent
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
function As(e) {
|
|
386
|
-
e();
|
|
387
|
-
}
|
|
388
|
-
function Ss() {
|
|
389
|
-
throw new Error("https://svelte.dev/e/invalid_default_snippet");
|
|
390
|
-
}
|
|
391
|
-
function ce(e) {
|
|
392
|
-
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
393
|
-
}
|
|
394
|
-
function ks(e) {
|
|
395
|
-
throw new Error("https://svelte.dev/e/store_invalid_shape");
|
|
396
|
-
}
|
|
397
|
-
function xs() {
|
|
398
|
-
throw new Error("https://svelte.dev/e/svelte_element_invalid_this_value");
|
|
399
|
-
}
|
|
400
|
-
let h = null;
|
|
401
|
-
function lt(e) {
|
|
402
|
-
h = e;
|
|
403
|
-
}
|
|
404
|
-
let tt = null;
|
|
405
|
-
function ft(e) {
|
|
406
|
-
tt = e;
|
|
407
|
-
}
|
|
408
|
-
function jn(e) {
|
|
409
|
-
return (
|
|
410
|
-
/** @type {T} */
|
|
411
|
-
De().get(e)
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
function Gn(e, t) {
|
|
415
|
-
return De().set(e, t), t;
|
|
416
|
-
}
|
|
417
|
-
function zn(e) {
|
|
418
|
-
return De().has(e);
|
|
419
|
-
}
|
|
420
|
-
function Kn() {
|
|
421
|
-
return De();
|
|
422
|
-
}
|
|
423
|
-
function Jn(e, t = !1, n) {
|
|
424
|
-
h = {
|
|
425
|
-
p: h,
|
|
426
|
-
c: null,
|
|
427
|
-
e: null,
|
|
428
|
-
m: !1,
|
|
429
|
-
s: e,
|
|
430
|
-
x: null,
|
|
431
|
-
l: null
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
function Xn(e) {
|
|
435
|
-
const t = h;
|
|
436
|
-
if (t !== null) {
|
|
437
|
-
e !== void 0 && (t.x = e);
|
|
438
|
-
const o = t.e;
|
|
439
|
-
if (o !== null) {
|
|
440
|
-
var n = w, r = p;
|
|
441
|
-
t.e = null;
|
|
442
|
-
try {
|
|
443
|
-
for (var s = 0; s < o.length; s++) {
|
|
444
|
-
var a = o[s];
|
|
445
|
-
K(a.effect), z(a.reaction), Zt(a.fn);
|
|
446
|
-
}
|
|
447
|
-
} finally {
|
|
448
|
-
K(n), z(r);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
h = t.p, t.m = !0;
|
|
452
|
-
}
|
|
453
|
-
return e || /** @type {T} */
|
|
454
|
-
{};
|
|
455
|
-
}
|
|
456
|
-
function Pt() {
|
|
457
|
-
return !0;
|
|
458
|
-
}
|
|
459
|
-
function De(e) {
|
|
460
|
-
return h === null && ce(), h.c ?? (h.c = new Map(Zn(h) || void 0));
|
|
461
|
-
}
|
|
462
|
-
function Zn(e) {
|
|
463
|
-
let t = e.p;
|
|
464
|
-
for (; t !== null; ) {
|
|
465
|
-
const n = t.c;
|
|
466
|
-
if (n !== null)
|
|
467
|
-
return n;
|
|
468
|
-
t = t.p;
|
|
469
|
-
}
|
|
470
|
-
return null;
|
|
471
|
-
}
|
|
472
|
-
function R(e, t) {
|
|
473
|
-
var n = {
|
|
474
|
-
f: 0,
|
|
475
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
476
|
-
v: e,
|
|
477
|
-
reactions: null,
|
|
478
|
-
equals: kt,
|
|
479
|
-
rv: 0,
|
|
480
|
-
wv: 0
|
|
481
|
-
};
|
|
482
|
-
return n;
|
|
483
|
-
}
|
|
484
|
-
function Cs(e) {
|
|
485
|
-
return /* @__PURE__ */ Lt(R(e));
|
|
486
|
-
}
|
|
487
|
-
// @__NO_SIDE_EFFECTS__
|
|
488
|
-
function Qn(e, t = !1) {
|
|
489
|
-
const n = R(e);
|
|
490
|
-
return t || (n.equals = xt), n;
|
|
491
|
-
}
|
|
492
|
-
function Ns(e, t = !1) {
|
|
493
|
-
return /* @__PURE__ */ Lt(/* @__PURE__ */ Qn(e, t));
|
|
494
|
-
}
|
|
495
|
-
// @__NO_SIDE_EFFECTS__
|
|
496
|
-
function Lt(e) {
|
|
497
|
-
return p !== null && !P && p.f & S && (L === null ? rr([e]) : L.push(e)), e;
|
|
498
|
-
}
|
|
499
|
-
function Os(e, t) {
|
|
500
|
-
return C(
|
|
501
|
-
e,
|
|
502
|
-
J(() => D(e))
|
|
503
|
-
), t;
|
|
504
|
-
}
|
|
505
|
-
function C(e, t) {
|
|
506
|
-
return p !== null && !P && Pt() && p.f & (S | Je) && // If the source was created locally within the current derived, then
|
|
507
|
-
// we allow the mutation.
|
|
508
|
-
(L === null || !L.includes(e)) && Ln(), Ue(e, t);
|
|
509
|
-
}
|
|
510
|
-
function Ue(e, t) {
|
|
511
|
-
return e.equals(t) || (e.v, e.v = t, e.wv = Vt(), Mt(e, Y), w !== null && w.f & g && !(w.f & (V | le)) && (F === null ? sr([e]) : F.push(e))), t;
|
|
512
|
-
}
|
|
513
|
-
function Is(e, t = 1) {
|
|
514
|
-
var n = D(e), r = t === 1 ? n++ : n--;
|
|
515
|
-
return C(e, n), r;
|
|
516
|
-
}
|
|
517
|
-
function Rs(e, t = 1) {
|
|
518
|
-
var n = D(e);
|
|
519
|
-
return C(e, t === 1 ? ++n : --n);
|
|
520
|
-
}
|
|
521
|
-
function Mt(e, t) {
|
|
522
|
-
var n = e.reactions;
|
|
523
|
-
if (n !== null)
|
|
524
|
-
for (var r = n.length, s = 0; s < r; s++) {
|
|
525
|
-
var a = n[s], o = a.f;
|
|
526
|
-
o & Y || (O(a, t), o & (g | M) && (o & S ? Mt(
|
|
527
|
-
/** @type {Derived} */
|
|
528
|
-
a,
|
|
529
|
-
ee
|
|
530
|
-
) : Me(
|
|
531
|
-
/** @type {Effect} */
|
|
532
|
-
a
|
|
533
|
-
)));
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
// @__NO_SIDE_EFFECTS__
|
|
537
|
-
function qt(e) {
|
|
538
|
-
var t = S | Y, n = p !== null && p.f & S ? (
|
|
539
|
-
/** @type {Derived} */
|
|
540
|
-
p
|
|
541
|
-
) : null;
|
|
542
|
-
return w === null || n !== null && n.f & M ? t |= M : w.f |= bt, {
|
|
543
|
-
ctx: h,
|
|
544
|
-
deps: null,
|
|
545
|
-
effects: null,
|
|
546
|
-
equals: kt,
|
|
547
|
-
f: t,
|
|
548
|
-
fn: e,
|
|
549
|
-
reactions: null,
|
|
550
|
-
rv: 0,
|
|
551
|
-
v: (
|
|
552
|
-
/** @type {V} */
|
|
553
|
-
null
|
|
554
|
-
),
|
|
555
|
-
wv: 0,
|
|
556
|
-
parent: n ?? w
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
// @__NO_SIDE_EFFECTS__
|
|
560
|
-
function Ds(e) {
|
|
561
|
-
const t = /* @__PURE__ */ qt(e);
|
|
562
|
-
return t.equals = xt, t;
|
|
563
|
-
}
|
|
564
|
-
function nt(e) {
|
|
565
|
-
var t = e.effects;
|
|
566
|
-
if (t !== null) {
|
|
567
|
-
e.effects = null;
|
|
568
|
-
for (var n = 0; n < t.length; n += 1)
|
|
569
|
-
H(
|
|
570
|
-
/** @type {Effect} */
|
|
571
|
-
t[n]
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
function er(e) {
|
|
576
|
-
for (var t = e.parent; t !== null; ) {
|
|
577
|
-
if (!(t.f & S))
|
|
578
|
-
return (
|
|
579
|
-
/** @type {Effect} */
|
|
580
|
-
t
|
|
581
|
-
);
|
|
582
|
-
t = t.parent;
|
|
583
|
-
}
|
|
584
|
-
return null;
|
|
585
|
-
}
|
|
586
|
-
function Ft(e) {
|
|
587
|
-
var t, n = w;
|
|
588
|
-
K(er(e));
|
|
589
|
-
try {
|
|
590
|
-
nt(e), t = Ut(e);
|
|
591
|
-
} finally {
|
|
592
|
-
K(n);
|
|
593
|
-
}
|
|
594
|
-
return t;
|
|
595
|
-
}
|
|
596
|
-
function $t(e) {
|
|
597
|
-
var t = Ft(e), n = (j || e.f & M) && e.deps !== null ? ee : g;
|
|
598
|
-
O(e, n), e.equals(t) || (e.v = t, e.wv = Vt());
|
|
599
|
-
}
|
|
600
|
-
function tr(e) {
|
|
601
|
-
nt(e), be(e, 0), O(e, fe), e.v = e.deps = e.ctx = e.reactions = null;
|
|
602
|
-
}
|
|
603
|
-
const Bt = 0, nr = 1;
|
|
604
|
-
let ye = !1, Se = Bt, me = !1, ge = null, ae = !1, rt = !1;
|
|
605
|
-
function ct(e) {
|
|
606
|
-
ae = e;
|
|
607
|
-
}
|
|
608
|
-
function _t(e) {
|
|
609
|
-
rt = e;
|
|
610
|
-
}
|
|
611
|
-
let Q = [], oe = 0;
|
|
612
|
-
let p = null, P = !1;
|
|
613
|
-
function z(e) {
|
|
614
|
-
p = e;
|
|
615
|
-
}
|
|
616
|
-
let w = null;
|
|
617
|
-
function K(e) {
|
|
618
|
-
w = e;
|
|
619
|
-
}
|
|
620
|
-
let L = null;
|
|
621
|
-
function rr(e) {
|
|
622
|
-
L = e;
|
|
623
|
-
}
|
|
624
|
-
let E = null, A = 0, F = null;
|
|
625
|
-
function sr(e) {
|
|
626
|
-
F = e;
|
|
627
|
-
}
|
|
628
|
-
let Ht = 1, Oe = 0, j = !1, $ = null;
|
|
629
|
-
function vt(e) {
|
|
630
|
-
$ = e;
|
|
631
|
-
}
|
|
632
|
-
function Vt() {
|
|
633
|
-
return ++Ht;
|
|
634
|
-
}
|
|
635
|
-
function _e(e) {
|
|
636
|
-
var i;
|
|
637
|
-
var t = e.f;
|
|
638
|
-
if (t & Y)
|
|
639
|
-
return !0;
|
|
640
|
-
if (t & ee) {
|
|
641
|
-
var n = e.deps, r = (t & M) !== 0;
|
|
642
|
-
if (n !== null) {
|
|
643
|
-
var s, a, o = (t & xe) !== 0, c = r && w !== null && !j, u = n.length;
|
|
644
|
-
if (o || c) {
|
|
645
|
-
for (s = 0; s < u; s++)
|
|
646
|
-
a = n[s], (o || !((i = a == null ? void 0 : a.reactions) != null && i.includes(e))) && (a.reactions ?? (a.reactions = [])).push(e);
|
|
647
|
-
o && (e.f ^= xe);
|
|
648
|
-
}
|
|
649
|
-
for (s = 0; s < u; s++)
|
|
650
|
-
if (a = n[s], _e(
|
|
651
|
-
/** @type {Derived} */
|
|
652
|
-
a
|
|
653
|
-
) && $t(
|
|
654
|
-
/** @type {Derived} */
|
|
655
|
-
a
|
|
656
|
-
), a.wv > e.wv)
|
|
657
|
-
return !0;
|
|
658
|
-
}
|
|
659
|
-
(!r || w !== null && !j) && O(e, g);
|
|
660
|
-
}
|
|
661
|
-
return !1;
|
|
662
|
-
}
|
|
663
|
-
function ar(e, t) {
|
|
664
|
-
for (var n = t; n !== null; ) {
|
|
665
|
-
if (n.f & ke)
|
|
666
|
-
try {
|
|
667
|
-
n.fn(e);
|
|
668
|
-
return;
|
|
669
|
-
} catch {
|
|
670
|
-
n.f ^= ke;
|
|
671
|
-
}
|
|
672
|
-
n = n.parent;
|
|
673
|
-
}
|
|
674
|
-
throw ye = !1, e;
|
|
675
|
-
}
|
|
676
|
-
function or(e) {
|
|
677
|
-
return (e.f & fe) === 0 && (e.parent === null || (e.parent.f & ke) === 0);
|
|
678
|
-
}
|
|
679
|
-
function Ps() {
|
|
680
|
-
ye = !1;
|
|
681
|
-
}
|
|
682
|
-
function Pe(e, t, n, r) {
|
|
683
|
-
if (ye) {
|
|
684
|
-
if (n === null && (ye = !1), or(t))
|
|
685
|
-
throw e;
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
n !== null && (ye = !0);
|
|
689
|
-
{
|
|
690
|
-
ar(e, t);
|
|
691
|
-
return;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
function Yt(e, t, n = 0) {
|
|
695
|
-
var r = e.reactions;
|
|
696
|
-
if (r !== null)
|
|
697
|
-
for (var s = 0; s < r.length; s++) {
|
|
698
|
-
var a = r[s];
|
|
699
|
-
a.f & S ? Yt(
|
|
700
|
-
/** @type {Derived} */
|
|
701
|
-
a,
|
|
702
|
-
t,
|
|
703
|
-
n + 1
|
|
704
|
-
) : t === a && (n === 0 ? O(a, Y) : a.f & g && O(a, ee), Me(
|
|
705
|
-
/** @type {Effect} */
|
|
706
|
-
a
|
|
707
|
-
));
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
function Ut(e) {
|
|
711
|
-
var d;
|
|
712
|
-
var t = E, n = A, r = F, s = p, a = j, o = L, c = h, u = P, i = e.f;
|
|
713
|
-
E = /** @type {null | Value[]} */
|
|
714
|
-
null, A = 0, F = null, p = i & (V | le) ? null : e, j = (i & M) !== 0 && (!ae || // If we were previously not in a reactive context and we're reading an unowned derived
|
|
715
|
-
// that was created inside another reaction, then we don't fully know the real owner and thus
|
|
716
|
-
// we need to skip adding any reactions for this unowned
|
|
717
|
-
(s === null || u) && /** @type {Derived} */
|
|
718
|
-
e.parent !== null), L = null, lt(e.ctx), P = !1, Oe++;
|
|
719
|
-
try {
|
|
720
|
-
var _ = (
|
|
721
|
-
/** @type {Function} */
|
|
722
|
-
(0, e.fn)()
|
|
723
|
-
), f = e.deps;
|
|
724
|
-
if (E !== null) {
|
|
725
|
-
var l;
|
|
726
|
-
if (be(e, A), f !== null && A > 0)
|
|
727
|
-
for (f.length = A + E.length, l = 0; l < E.length; l++)
|
|
728
|
-
f[A + l] = E[l];
|
|
729
|
-
else
|
|
730
|
-
e.deps = f = E;
|
|
731
|
-
if (!j)
|
|
732
|
-
for (l = A; l < f.length; l++)
|
|
733
|
-
((d = f[l]).reactions ?? (d.reactions = [])).push(e);
|
|
734
|
-
} else f !== null && A < f.length && (be(e, A), f.length = A);
|
|
735
|
-
if (Pt() && F !== null && !(e.f & (S | ee | Y)))
|
|
736
|
-
for (l = 0; l < /** @type {Source[]} */
|
|
737
|
-
F.length; l++)
|
|
738
|
-
Yt(
|
|
739
|
-
F[l],
|
|
740
|
-
/** @type {Effect} */
|
|
741
|
-
e
|
|
742
|
-
);
|
|
743
|
-
return s !== null && Oe++, _;
|
|
744
|
-
} finally {
|
|
745
|
-
E = t, A = n, F = r, p = s, j = a, L = o, lt(c), P = u;
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
function ir(e, t) {
|
|
749
|
-
let n = t.reactions;
|
|
750
|
-
if (n !== null) {
|
|
751
|
-
var r = pn.call(n, e);
|
|
752
|
-
if (r !== -1) {
|
|
753
|
-
var s = n.length - 1;
|
|
754
|
-
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
n === null && t.f & S && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
758
|
-
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
759
|
-
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
760
|
-
(E === null || !E.includes(t)) && (O(t, ee), t.f & (M | xe) || (t.f ^= xe), nt(
|
|
761
|
-
/** @type {Derived} **/
|
|
762
|
-
t
|
|
763
|
-
), be(
|
|
764
|
-
/** @type {Derived} **/
|
|
765
|
-
t,
|
|
766
|
-
0
|
|
767
|
-
));
|
|
768
|
-
}
|
|
769
|
-
function be(e, t) {
|
|
770
|
-
var n = e.deps;
|
|
771
|
-
if (n !== null)
|
|
772
|
-
for (var r = t; r < n.length; r++)
|
|
773
|
-
ir(e, n[r]);
|
|
774
|
-
}
|
|
775
|
-
function Le(e) {
|
|
776
|
-
var t = e.f;
|
|
777
|
-
if (!(t & fe)) {
|
|
778
|
-
O(e, g);
|
|
779
|
-
var n = w, r = h;
|
|
780
|
-
w = e;
|
|
781
|
-
try {
|
|
782
|
-
t & Je ? mr(e) : tn(e), en(e);
|
|
783
|
-
var s = Ut(e);
|
|
784
|
-
e.teardown = typeof s == "function" ? s : null, e.wv = Ht;
|
|
785
|
-
var a = e.deps, o;
|
|
786
|
-
$e && Mn && e.f & Y;
|
|
787
|
-
} catch (c) {
|
|
788
|
-
Pe(c, e, n, r || e.ctx);
|
|
789
|
-
} finally {
|
|
790
|
-
w = n;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
function Wt() {
|
|
795
|
-
if (oe > 1e3) {
|
|
796
|
-
oe = 0;
|
|
797
|
-
try {
|
|
798
|
-
On();
|
|
799
|
-
} catch (e) {
|
|
800
|
-
if (ge !== null)
|
|
801
|
-
Pe(e, ge, null);
|
|
802
|
-
else
|
|
803
|
-
throw e;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
oe++;
|
|
807
|
-
}
|
|
808
|
-
function jt(e) {
|
|
809
|
-
var t = e.length;
|
|
810
|
-
if (t !== 0) {
|
|
811
|
-
Wt();
|
|
812
|
-
var n = ae;
|
|
813
|
-
ae = !0;
|
|
814
|
-
try {
|
|
815
|
-
for (var r = 0; r < t; r++) {
|
|
816
|
-
var s = e[r];
|
|
817
|
-
s.f & g || (s.f ^= g);
|
|
818
|
-
var a = [];
|
|
819
|
-
Gt(s, a), ur(a);
|
|
820
|
-
}
|
|
821
|
-
} finally {
|
|
822
|
-
ae = n;
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
function ur(e) {
|
|
827
|
-
var t = e.length;
|
|
828
|
-
if (t !== 0)
|
|
829
|
-
for (var n = 0; n < t; n++) {
|
|
830
|
-
var r = e[n];
|
|
831
|
-
if (!(r.f & (fe | ie)))
|
|
832
|
-
try {
|
|
833
|
-
_e(r) && (Le(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? nn(r) : r.fn = null));
|
|
834
|
-
} catch (s) {
|
|
835
|
-
Pe(s, r, null, r.ctx);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
function lr() {
|
|
840
|
-
if (me = !1, oe > 1001)
|
|
841
|
-
return;
|
|
842
|
-
const e = Q;
|
|
843
|
-
Q = [], jt(e), me || (oe = 0, ge = null);
|
|
844
|
-
}
|
|
845
|
-
function Me(e) {
|
|
846
|
-
Se === Bt && (me || (me = !0, queueMicrotask(lr))), ge = e;
|
|
847
|
-
for (var t = e; t.parent !== null; ) {
|
|
848
|
-
t = t.parent;
|
|
849
|
-
var n = t.f;
|
|
850
|
-
if (n & (le | V)) {
|
|
851
|
-
if (!(n & g)) return;
|
|
852
|
-
t.f ^= g;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
Q.push(t);
|
|
856
|
-
}
|
|
857
|
-
function Gt(e, t) {
|
|
858
|
-
var n = e.first, r = [];
|
|
859
|
-
e: for (; n !== null; ) {
|
|
860
|
-
var s = n.f, a = (s & V) !== 0, o = a && (s & g) !== 0, c = n.next;
|
|
861
|
-
if (!o && !(s & ie))
|
|
862
|
-
if (s & Ee) {
|
|
863
|
-
if (a)
|
|
864
|
-
n.f ^= g;
|
|
865
|
-
else {
|
|
866
|
-
var u = p;
|
|
867
|
-
try {
|
|
868
|
-
p = n, _e(n) && Le(n);
|
|
869
|
-
} catch (l) {
|
|
870
|
-
Pe(l, n, null, n.ctx);
|
|
871
|
-
} finally {
|
|
872
|
-
p = u;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
var i = n.first;
|
|
876
|
-
if (i !== null) {
|
|
877
|
-
n = i;
|
|
878
|
-
continue;
|
|
879
|
-
}
|
|
880
|
-
} else s & mt && r.push(n);
|
|
881
|
-
if (c === null) {
|
|
882
|
-
let l = n.parent;
|
|
883
|
-
for (; l !== null; ) {
|
|
884
|
-
if (e === l)
|
|
885
|
-
break e;
|
|
886
|
-
var _ = l.next;
|
|
887
|
-
if (_ !== null) {
|
|
888
|
-
n = _;
|
|
889
|
-
continue e;
|
|
890
|
-
}
|
|
891
|
-
l = l.parent;
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
n = c;
|
|
895
|
-
}
|
|
896
|
-
for (var f = 0; f < r.length; f++)
|
|
897
|
-
i = r[f], t.push(i), Gt(i, t);
|
|
898
|
-
}
|
|
899
|
-
function st(e) {
|
|
900
|
-
var t = Se, n = Q;
|
|
901
|
-
try {
|
|
902
|
-
Wt();
|
|
903
|
-
const s = [];
|
|
904
|
-
Se = nr, Q = s, me = !1, jt(n);
|
|
905
|
-
var r = e == null ? void 0 : e();
|
|
906
|
-
return Sn(), (Q.length > 0 || s.length > 0) && st(), oe = 0, ge = null, r;
|
|
907
|
-
} finally {
|
|
908
|
-
Se = t, Q = n;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
async function fr() {
|
|
912
|
-
await Promise.resolve(), st();
|
|
913
|
-
}
|
|
914
|
-
function D(e) {
|
|
915
|
-
var t = e.f, n = (t & S) !== 0;
|
|
916
|
-
if (n && t & fe) {
|
|
917
|
-
var r = Ft(
|
|
918
|
-
/** @type {Derived} */
|
|
919
|
-
e
|
|
920
|
-
);
|
|
921
|
-
return tr(
|
|
922
|
-
/** @type {Derived} */
|
|
923
|
-
e
|
|
924
|
-
), r;
|
|
925
|
-
}
|
|
926
|
-
if ($ !== null && $.add(e), p !== null && !P) {
|
|
927
|
-
L !== null && L.includes(e) && Pn();
|
|
928
|
-
var s = p.deps;
|
|
929
|
-
e.rv < Oe && (e.rv = Oe, E === null && s !== null && s[A] === e ? A++ : E === null ? E = [e] : E.push(e));
|
|
930
|
-
} else if (n && /** @type {Derived} */
|
|
931
|
-
e.deps === null && /** @type {Derived} */
|
|
932
|
-
e.effects === null) {
|
|
933
|
-
var a = (
|
|
934
|
-
/** @type {Derived} */
|
|
935
|
-
e
|
|
936
|
-
), o = a.parent;
|
|
937
|
-
o !== null && !(o.f & M) && (a.f ^= M);
|
|
938
|
-
}
|
|
939
|
-
return n && (a = /** @type {Derived} */
|
|
940
|
-
e, _e(a) && $t(a)), e.v;
|
|
941
|
-
}
|
|
942
|
-
function Ls(e) {
|
|
943
|
-
return e && D(e);
|
|
944
|
-
}
|
|
945
|
-
function cr(e) {
|
|
946
|
-
var t = $;
|
|
947
|
-
$ = /* @__PURE__ */ new Set();
|
|
948
|
-
var n = $, r;
|
|
949
|
-
try {
|
|
950
|
-
if (J(e), t !== null)
|
|
951
|
-
for (r of $)
|
|
952
|
-
t.add(r);
|
|
953
|
-
} finally {
|
|
954
|
-
$ = t;
|
|
955
|
-
}
|
|
956
|
-
return n;
|
|
957
|
-
}
|
|
958
|
-
function Ms(e) {
|
|
959
|
-
var t = cr(() => J(e));
|
|
960
|
-
for (var n of t)
|
|
961
|
-
if (n.f & En)
|
|
962
|
-
for (
|
|
963
|
-
const r of
|
|
964
|
-
/** @type {Derived} */
|
|
965
|
-
n.deps || []
|
|
966
|
-
)
|
|
967
|
-
r.f & S || Ue(r, r.v);
|
|
968
|
-
else
|
|
969
|
-
Ue(n, n.v);
|
|
970
|
-
}
|
|
971
|
-
function J(e) {
|
|
972
|
-
var t = P;
|
|
973
|
-
try {
|
|
974
|
-
return P = !0, e();
|
|
975
|
-
} finally {
|
|
976
|
-
P = t;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
const _r = -7169;
|
|
980
|
-
function O(e, t) {
|
|
981
|
-
e.f = e.f & _r | t;
|
|
982
|
-
}
|
|
983
|
-
function qs(e, t) {
|
|
984
|
-
var n = {};
|
|
985
|
-
for (var r in e)
|
|
986
|
-
t.includes(r) || (n[r] = e[r]);
|
|
987
|
-
return n;
|
|
988
|
-
}
|
|
989
|
-
function Fs(e) {
|
|
990
|
-
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
991
|
-
if (G in e)
|
|
992
|
-
We(e);
|
|
993
|
-
else if (!Array.isArray(e))
|
|
994
|
-
for (let t in e) {
|
|
995
|
-
const n = e[t];
|
|
996
|
-
typeof n == "object" && n && G in n && We(n);
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
function We(e, t = /* @__PURE__ */ new Set()) {
|
|
1001
|
-
if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
|
|
1002
|
-
!(e instanceof EventTarget) && !t.has(e)) {
|
|
1003
|
-
t.add(e), e instanceof Date && e.getTime();
|
|
1004
|
-
for (let r in e)
|
|
1005
|
-
try {
|
|
1006
|
-
We(e[r], t);
|
|
1007
|
-
} catch {
|
|
1008
|
-
}
|
|
1009
|
-
const n = Re(e);
|
|
1010
|
-
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1011
|
-
const r = yn(n);
|
|
1012
|
-
for (let s in r) {
|
|
1013
|
-
const a = r[s].get;
|
|
1014
|
-
if (a)
|
|
1015
|
-
try {
|
|
1016
|
-
a.call(e);
|
|
1017
|
-
} catch {
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
let y = !1;
|
|
1024
|
-
function se(e) {
|
|
1025
|
-
y = e;
|
|
1026
|
-
}
|
|
1027
|
-
let v;
|
|
1028
|
-
function I(e) {
|
|
1029
|
-
if (e === null)
|
|
1030
|
-
throw Qe(), he;
|
|
1031
|
-
return v = e;
|
|
1032
|
-
}
|
|
1033
|
-
function at() {
|
|
1034
|
-
return I(
|
|
1035
|
-
/** @type {TemplateNode} */
|
|
1036
|
-
/* @__PURE__ */ q(v)
|
|
1037
|
-
);
|
|
1038
|
-
}
|
|
1039
|
-
function $s(e) {
|
|
1040
|
-
if (y) {
|
|
1041
|
-
if (/* @__PURE__ */ q(v) !== null)
|
|
1042
|
-
throw Qe(), he;
|
|
1043
|
-
v = e;
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
function Bs(e) {
|
|
1047
|
-
y && (v = e.content);
|
|
1048
|
-
}
|
|
1049
|
-
function Hs(e = 1) {
|
|
1050
|
-
if (y) {
|
|
1051
|
-
for (var t = e, n = v; t--; )
|
|
1052
|
-
n = /** @type {TemplateNode} */
|
|
1053
|
-
/* @__PURE__ */ q(n);
|
|
1054
|
-
v = n;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
function Vs() {
|
|
1058
|
-
for (var e = 0, t = v; ; ) {
|
|
1059
|
-
if (t.nodeType === 8) {
|
|
1060
|
-
var n = (
|
|
1061
|
-
/** @type {Comment} */
|
|
1062
|
-
t.data
|
|
1063
|
-
);
|
|
1064
|
-
if (n === Ot) {
|
|
1065
|
-
if (e === 0) return t;
|
|
1066
|
-
e -= 1;
|
|
1067
|
-
} else (n === Ze || n === Fn) && (e += 1);
|
|
1068
|
-
}
|
|
1069
|
-
var r = (
|
|
1070
|
-
/** @type {TemplateNode} */
|
|
1071
|
-
/* @__PURE__ */ q(t)
|
|
1072
|
-
);
|
|
1073
|
-
t.remove(), t = r;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
function ve(e, t = null, n) {
|
|
1077
|
-
if (typeof e != "object" || e === null || G in e)
|
|
1078
|
-
return e;
|
|
1079
|
-
const r = Re(e);
|
|
1080
|
-
if (r !== wt && r !== mn)
|
|
1081
|
-
return e;
|
|
1082
|
-
var s = /* @__PURE__ */ new Map(), a = Ie(e), o = R(0);
|
|
1083
|
-
a && s.set("length", R(
|
|
1084
|
-
/** @type {any[]} */
|
|
1085
|
-
e.length
|
|
1086
|
-
));
|
|
1087
|
-
var c;
|
|
1088
|
-
return new Proxy(
|
|
1089
|
-
/** @type {any} */
|
|
1090
|
-
e,
|
|
1091
|
-
{
|
|
1092
|
-
defineProperty(u, i, _) {
|
|
1093
|
-
(!("value" in _) || _.configurable === !1 || _.enumerable === !1 || _.writable === !1) && Rn();
|
|
1094
|
-
var f = s.get(i);
|
|
1095
|
-
return f === void 0 ? (f = R(_.value), s.set(i, f)) : C(f, ve(_.value, c)), !0;
|
|
1096
|
-
},
|
|
1097
|
-
deleteProperty(u, i) {
|
|
1098
|
-
var _ = s.get(i);
|
|
1099
|
-
if (_ === void 0)
|
|
1100
|
-
i in u && s.set(i, R(b));
|
|
1101
|
-
else {
|
|
1102
|
-
if (a && typeof i == "string") {
|
|
1103
|
-
var f = (
|
|
1104
|
-
/** @type {Source<number>} */
|
|
1105
|
-
s.get("length")
|
|
1106
|
-
), l = Number(i);
|
|
1107
|
-
Number.isInteger(l) && l < f.v && C(f, l);
|
|
1108
|
-
}
|
|
1109
|
-
C(_, b), dt(o);
|
|
1110
|
-
}
|
|
1111
|
-
return !0;
|
|
1112
|
-
},
|
|
1113
|
-
get(u, i, _) {
|
|
1114
|
-
var m;
|
|
1115
|
-
if (i === G)
|
|
1116
|
-
return e;
|
|
1117
|
-
var f = s.get(i), l = i in u;
|
|
1118
|
-
if (f === void 0 && (!l || (m = pe(u, i)) != null && m.writable) && (f = R(ve(l ? u[i] : b, c)), s.set(i, f)), f !== void 0) {
|
|
1119
|
-
var d = D(f);
|
|
1120
|
-
return d === b ? void 0 : d;
|
|
1121
|
-
}
|
|
1122
|
-
return Reflect.get(u, i, _);
|
|
1123
|
-
},
|
|
1124
|
-
getOwnPropertyDescriptor(u, i) {
|
|
1125
|
-
var _ = Reflect.getOwnPropertyDescriptor(u, i);
|
|
1126
|
-
if (_ && "value" in _) {
|
|
1127
|
-
var f = s.get(i);
|
|
1128
|
-
f && (_.value = D(f));
|
|
1129
|
-
} else if (_ === void 0) {
|
|
1130
|
-
var l = s.get(i), d = l == null ? void 0 : l.v;
|
|
1131
|
-
if (l !== void 0 && d !== b)
|
|
1132
|
-
return {
|
|
1133
|
-
enumerable: !0,
|
|
1134
|
-
configurable: !0,
|
|
1135
|
-
value: d,
|
|
1136
|
-
writable: !0
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
return _;
|
|
1140
|
-
},
|
|
1141
|
-
has(u, i) {
|
|
1142
|
-
var d;
|
|
1143
|
-
if (i === G)
|
|
1144
|
-
return !0;
|
|
1145
|
-
var _ = s.get(i), f = _ !== void 0 && _.v !== b || Reflect.has(u, i);
|
|
1146
|
-
if (_ !== void 0 || w !== null && (!f || (d = pe(u, i)) != null && d.writable)) {
|
|
1147
|
-
_ === void 0 && (_ = R(f ? ve(u[i], c) : b), s.set(i, _));
|
|
1148
|
-
var l = D(_);
|
|
1149
|
-
if (l === b)
|
|
1150
|
-
return !1;
|
|
1151
|
-
}
|
|
1152
|
-
return f;
|
|
1153
|
-
},
|
|
1154
|
-
set(u, i, _, f) {
|
|
1155
|
-
var Z;
|
|
1156
|
-
var l = s.get(i), d = i in u;
|
|
1157
|
-
if (a && i === "length")
|
|
1158
|
-
for (var m = _; m < /** @type {Source<number>} */
|
|
1159
|
-
l.v; m += 1) {
|
|
1160
|
-
var k = s.get(m + "");
|
|
1161
|
-
k !== void 0 ? C(k, b) : m in u && (k = R(b), s.set(m + "", k));
|
|
1162
|
-
}
|
|
1163
|
-
l === void 0 ? (!d || (Z = pe(u, i)) != null && Z.writable) && (l = R(void 0), C(l, ve(_, c)), s.set(i, l)) : (d = l.v !== b, C(l, ve(_, c)));
|
|
1164
|
-
var te = Reflect.getOwnPropertyDescriptor(u, i);
|
|
1165
|
-
if (te != null && te.set && te.set.call(f, _), !d) {
|
|
1166
|
-
if (a && typeof i == "string") {
|
|
1167
|
-
var Te = (
|
|
1168
|
-
/** @type {Source<number>} */
|
|
1169
|
-
s.get("length")
|
|
1170
|
-
), ne = Number(i);
|
|
1171
|
-
Number.isInteger(ne) && ne >= Te.v && C(Te, ne + 1);
|
|
1172
|
-
}
|
|
1173
|
-
dt(o);
|
|
1174
|
-
}
|
|
1175
|
-
return !0;
|
|
1176
|
-
},
|
|
1177
|
-
ownKeys(u) {
|
|
1178
|
-
D(o);
|
|
1179
|
-
var i = Reflect.ownKeys(u).filter((l) => {
|
|
1180
|
-
var d = s.get(l);
|
|
1181
|
-
return d === void 0 || d.v !== b;
|
|
1182
|
-
});
|
|
1183
|
-
for (var [_, f] of s)
|
|
1184
|
-
f.v !== b && !(_ in u) && i.push(_);
|
|
1185
|
-
return i;
|
|
1186
|
-
},
|
|
1187
|
-
setPrototypeOf() {
|
|
1188
|
-
Dn();
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
);
|
|
1192
|
-
}
|
|
1193
|
-
function dt(e, t = 1) {
|
|
1194
|
-
C(e, e.v + t);
|
|
1195
|
-
}
|
|
1196
|
-
function ue(e) {
|
|
1197
|
-
return e !== null && typeof e == "object" && G in e ? e[G] : e;
|
|
1198
|
-
}
|
|
1199
|
-
function Ys(e, t) {
|
|
1200
|
-
return Object.is(ue(e), ue(t));
|
|
1201
|
-
}
|
|
1202
|
-
function Us(e, t, n = !0) {
|
|
1203
|
-
try {
|
|
1204
|
-
e === t != (ue(e) === ue(t)) && It(n ? "===" : "!==");
|
|
1205
|
-
} catch {
|
|
1206
|
-
}
|
|
1207
|
-
return e === t === n;
|
|
1208
|
-
}
|
|
1209
|
-
function Ws(e, t, n = !0) {
|
|
1210
|
-
return e == t != (ue(e) == ue(t)) && It(), e == t === n;
|
|
1211
|
-
}
|
|
1212
|
-
var pt, vr, zt, Kt;
|
|
1213
|
-
function je() {
|
|
1214
|
-
if (pt === void 0) {
|
|
1215
|
-
pt = window, vr = document;
|
|
1216
|
-
var e = Element.prototype, t = Node.prototype;
|
|
1217
|
-
zt = pe(t, "firstChild").get, Kt = pe(t, "nextSibling").get, e.__click = void 0, e.__className = "", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
function B(e = "") {
|
|
1221
|
-
return document.createTextNode(e);
|
|
1222
|
-
}
|
|
1223
|
-
// @__NO_SIDE_EFFECTS__
|
|
1224
|
-
function T(e) {
|
|
1225
|
-
return zt.call(e);
|
|
1226
|
-
}
|
|
1227
|
-
// @__NO_SIDE_EFFECTS__
|
|
1228
|
-
function q(e) {
|
|
1229
|
-
return Kt.call(e);
|
|
1230
|
-
}
|
|
1231
|
-
function js(e, t) {
|
|
1232
|
-
if (!y)
|
|
1233
|
-
return /* @__PURE__ */ T(e);
|
|
1234
|
-
var n = (
|
|
1235
|
-
/** @type {TemplateNode} */
|
|
1236
|
-
/* @__PURE__ */ T(v)
|
|
1237
|
-
);
|
|
1238
|
-
if (n === null)
|
|
1239
|
-
n = v.appendChild(B());
|
|
1240
|
-
else if (t && n.nodeType !== 3) {
|
|
1241
|
-
var r = B();
|
|
1242
|
-
return n == null || n.before(r), I(r), r;
|
|
1243
|
-
}
|
|
1244
|
-
return I(n), n;
|
|
1245
|
-
}
|
|
1246
|
-
function Gs(e, t) {
|
|
1247
|
-
if (!y) {
|
|
1248
|
-
var n = (
|
|
1249
|
-
/** @type {DocumentFragment} */
|
|
1250
|
-
/* @__PURE__ */ T(
|
|
1251
|
-
/** @type {Node} */
|
|
1252
|
-
e
|
|
1253
|
-
)
|
|
1254
|
-
);
|
|
1255
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ q(n) : n;
|
|
1256
|
-
}
|
|
1257
|
-
if (t && (v == null ? void 0 : v.nodeType) !== 3) {
|
|
1258
|
-
var r = B();
|
|
1259
|
-
return v == null || v.before(r), I(r), r;
|
|
1260
|
-
}
|
|
1261
|
-
return v;
|
|
1262
|
-
}
|
|
1263
|
-
function zs(e, t = 1, n = !1) {
|
|
1264
|
-
let r = y ? v : e;
|
|
1265
|
-
for (var s; t--; )
|
|
1266
|
-
s = r, r = /** @type {TemplateNode} */
|
|
1267
|
-
/* @__PURE__ */ q(r);
|
|
1268
|
-
if (!y)
|
|
1269
|
-
return r;
|
|
1270
|
-
var a = r == null ? void 0 : r.nodeType;
|
|
1271
|
-
if (n && a !== 3) {
|
|
1272
|
-
var o = B();
|
|
1273
|
-
return r === null ? s == null || s.after(o) : r.before(o), I(o), o;
|
|
1274
|
-
}
|
|
1275
|
-
return I(r), /** @type {TemplateNode} */
|
|
1276
|
-
r;
|
|
1277
|
-
}
|
|
1278
|
-
function Jt(e) {
|
|
1279
|
-
e.textContent = "";
|
|
1280
|
-
}
|
|
1281
|
-
function Xt(e) {
|
|
1282
|
-
w === null && p === null && Nn(), p !== null && p.f & M && w === null && Cn(), rt && xn();
|
|
1283
|
-
}
|
|
1284
|
-
function dr(e, t) {
|
|
1285
|
-
var n = t.last;
|
|
1286
|
-
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1287
|
-
}
|
|
1288
|
-
function X(e, t, n, r = !0) {
|
|
1289
|
-
var s = (e & le) !== 0, a = w, o = {
|
|
1290
|
-
ctx: h,
|
|
1291
|
-
deps: null,
|
|
1292
|
-
nodes_start: null,
|
|
1293
|
-
nodes_end: null,
|
|
1294
|
-
f: e | Y,
|
|
1295
|
-
first: null,
|
|
1296
|
-
fn: t,
|
|
1297
|
-
last: null,
|
|
1298
|
-
next: null,
|
|
1299
|
-
parent: s ? null : a,
|
|
1300
|
-
prev: null,
|
|
1301
|
-
teardown: null,
|
|
1302
|
-
transitions: null,
|
|
1303
|
-
wv: 0
|
|
1304
|
-
};
|
|
1305
|
-
if (n) {
|
|
1306
|
-
var c = ae;
|
|
1307
|
-
try {
|
|
1308
|
-
ct(!0), Le(o), o.f |= bn;
|
|
1309
|
-
} catch (_) {
|
|
1310
|
-
throw H(o), _;
|
|
1311
|
-
} finally {
|
|
1312
|
-
ct(c);
|
|
1313
|
-
}
|
|
1314
|
-
} else t !== null && Me(o);
|
|
1315
|
-
var u = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (bt | ke)) === 0;
|
|
1316
|
-
if (!u && !s && r && (a !== null && dr(o, a), p !== null && p.f & S)) {
|
|
1317
|
-
var i = (
|
|
1318
|
-
/** @type {Derived} */
|
|
1319
|
-
p
|
|
1320
|
-
);
|
|
1321
|
-
(i.effects ?? (i.effects = [])).push(o);
|
|
1322
|
-
}
|
|
1323
|
-
return o;
|
|
1324
|
-
}
|
|
1325
|
-
function pr() {
|
|
1326
|
-
return p === null || P ? !1 : !j;
|
|
1327
|
-
}
|
|
1328
|
-
function ot(e) {
|
|
1329
|
-
const t = X(Ee, null, !1);
|
|
1330
|
-
return O(t, g), t.teardown = e, t;
|
|
1331
|
-
}
|
|
1332
|
-
function hr(e) {
|
|
1333
|
-
Xt();
|
|
1334
|
-
var t = w !== null && (w.f & V) !== 0 && h !== null && !h.m;
|
|
1335
|
-
if (t) {
|
|
1336
|
-
var n = (
|
|
1337
|
-
/** @type {ComponentContext} */
|
|
1338
|
-
h
|
|
1339
|
-
);
|
|
1340
|
-
(n.e ?? (n.e = [])).push({
|
|
1341
|
-
fn: e,
|
|
1342
|
-
effect: w,
|
|
1343
|
-
reaction: p
|
|
1344
|
-
});
|
|
1345
|
-
} else {
|
|
1346
|
-
var r = Zt(e);
|
|
1347
|
-
return r;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
function wr(e) {
|
|
1351
|
-
return Xt(), qe(e);
|
|
1352
|
-
}
|
|
1353
|
-
function Ks(e) {
|
|
1354
|
-
return X(Tn, e, !0);
|
|
1355
|
-
}
|
|
1356
|
-
function Js(e) {
|
|
1357
|
-
const t = X(le, e, !0);
|
|
1358
|
-
return () => {
|
|
1359
|
-
H(t);
|
|
1360
|
-
};
|
|
1361
|
-
}
|
|
1362
|
-
function yr(e) {
|
|
1363
|
-
const t = X(le, e, !0);
|
|
1364
|
-
return (n = {}) => new Promise((r) => {
|
|
1365
|
-
n.outro ? gr(t, () => {
|
|
1366
|
-
H(t), r(void 0);
|
|
1367
|
-
}) : (H(t), r(void 0));
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
function Zt(e) {
|
|
1371
|
-
return X(mt, e, !1);
|
|
1372
|
-
}
|
|
1373
|
-
function Xs(e, t) {
|
|
1374
|
-
var n = (
|
|
1375
|
-
/** @type {ComponentContextLegacy} */
|
|
1376
|
-
h
|
|
1377
|
-
), r = { effect: null, ran: !1 };
|
|
1378
|
-
n.l.r1.push(r), r.effect = qe(() => {
|
|
1379
|
-
e(), !r.ran && (r.ran = !0, C(n.l.r2, !0), J(t));
|
|
1380
|
-
});
|
|
1381
|
-
}
|
|
1382
|
-
function Zs() {
|
|
1383
|
-
var e = (
|
|
1384
|
-
/** @type {ComponentContextLegacy} */
|
|
1385
|
-
h
|
|
1386
|
-
);
|
|
1387
|
-
qe(() => {
|
|
1388
|
-
if (D(e.l.r2)) {
|
|
1389
|
-
for (var t of e.l.r1) {
|
|
1390
|
-
var n = t.effect;
|
|
1391
|
-
n.f & g && O(n, ee), _e(n) && Le(n), t.ran = !1;
|
|
1392
|
-
}
|
|
1393
|
-
e.l.r2.v = !1;
|
|
1394
|
-
}
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
function qe(e) {
|
|
1398
|
-
return X(Ee, e, !0);
|
|
1399
|
-
}
|
|
1400
|
-
function Qs(e, t = [], n = qt) {
|
|
1401
|
-
const r = t.map(n);
|
|
1402
|
-
return it(() => e(...r.map(D)));
|
|
1403
|
-
}
|
|
1404
|
-
function it(e, t = 0) {
|
|
1405
|
-
return X(Ee | Je | t, e, !0);
|
|
1406
|
-
}
|
|
1407
|
-
function Qt(e, t = !0) {
|
|
1408
|
-
return X(Ee | V, e, !0, t);
|
|
1409
|
-
}
|
|
1410
|
-
function en(e) {
|
|
1411
|
-
var t = e.teardown;
|
|
1412
|
-
if (t !== null) {
|
|
1413
|
-
const n = rt, r = p;
|
|
1414
|
-
_t(!0), z(null);
|
|
1415
|
-
try {
|
|
1416
|
-
t.call(null);
|
|
1417
|
-
} finally {
|
|
1418
|
-
_t(n), z(r);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
function tn(e, t = !1) {
|
|
1423
|
-
var n = e.first;
|
|
1424
|
-
for (e.first = e.last = null; n !== null; ) {
|
|
1425
|
-
var r = n.next;
|
|
1426
|
-
H(n, t), n = r;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
function mr(e) {
|
|
1430
|
-
for (var t = e.first; t !== null; ) {
|
|
1431
|
-
var n = t.next;
|
|
1432
|
-
t.f & V || H(t), t = n;
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
function H(e, t = !0) {
|
|
1436
|
-
var n = !1;
|
|
1437
|
-
if ((t || e.f & gt) && e.nodes_start !== null) {
|
|
1438
|
-
for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
|
|
1439
|
-
var a = r === s ? null : (
|
|
1440
|
-
/** @type {TemplateNode} */
|
|
1441
|
-
/* @__PURE__ */ q(r)
|
|
1442
|
-
);
|
|
1443
|
-
r.remove(), r = a;
|
|
1444
|
-
}
|
|
1445
|
-
n = !0;
|
|
1446
|
-
}
|
|
1447
|
-
tn(e, t && !n), be(e, 0), O(e, fe);
|
|
1448
|
-
var o = e.transitions;
|
|
1449
|
-
if (o !== null)
|
|
1450
|
-
for (const u of o)
|
|
1451
|
-
u.stop();
|
|
1452
|
-
en(e);
|
|
1453
|
-
var c = e.parent;
|
|
1454
|
-
c !== null && c.first !== null && nn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
1455
|
-
}
|
|
1456
|
-
function nn(e) {
|
|
1457
|
-
var t = e.parent, n = e.prev, r = e.next;
|
|
1458
|
-
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1459
|
-
}
|
|
1460
|
-
function gr(e, t) {
|
|
1461
|
-
var n = [];
|
|
1462
|
-
rn(e, n, !0), br(n, () => {
|
|
1463
|
-
H(e), t && t();
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
function br(e, t) {
|
|
1467
|
-
var n = e.length;
|
|
1468
|
-
if (n > 0) {
|
|
1469
|
-
var r = () => --n || t();
|
|
1470
|
-
for (var s of e)
|
|
1471
|
-
s.out(r);
|
|
1472
|
-
} else
|
|
1473
|
-
t();
|
|
1474
|
-
}
|
|
1475
|
-
function rn(e, t, n) {
|
|
1476
|
-
if (!(e.f & ie)) {
|
|
1477
|
-
if (e.f ^= ie, e.transitions !== null)
|
|
1478
|
-
for (const o of e.transitions)
|
|
1479
|
-
(o.is_global || n) && t.push(o);
|
|
1480
|
-
for (var r = e.first; r !== null; ) {
|
|
1481
|
-
var s = r.next, a = (r.f & Xe) !== 0 || (r.f & V) !== 0;
|
|
1482
|
-
rn(r, t, a ? n : !1), r = s;
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
function ea(e) {
|
|
1487
|
-
sn(e, !0);
|
|
1488
|
-
}
|
|
1489
|
-
function sn(e, t) {
|
|
1490
|
-
if (e.f & ie) {
|
|
1491
|
-
e.f ^= ie, e.f & g || (e.f ^= g), _e(e) && (O(e, Y), Me(e));
|
|
1492
|
-
for (var n = e.first; n !== null; ) {
|
|
1493
|
-
var r = n.next, s = (n.f & Xe) !== 0 || (n.f & V) !== 0;
|
|
1494
|
-
sn(n, s ? t : !1), n = r;
|
|
1495
|
-
}
|
|
1496
|
-
if (e.transitions !== null)
|
|
1497
|
-
for (const a of e.transitions)
|
|
1498
|
-
(a.is_global || t) && a.in();
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
const Er = [
|
|
1502
|
-
"area",
|
|
1503
|
-
"base",
|
|
1504
|
-
"br",
|
|
1505
|
-
"col",
|
|
1506
|
-
"command",
|
|
1507
|
-
"embed",
|
|
1508
|
-
"hr",
|
|
1509
|
-
"img",
|
|
1510
|
-
"input",
|
|
1511
|
-
"keygen",
|
|
1512
|
-
"link",
|
|
1513
|
-
"meta",
|
|
1514
|
-
"param",
|
|
1515
|
-
"source",
|
|
1516
|
-
"track",
|
|
1517
|
-
"wbr"
|
|
1518
|
-
];
|
|
1519
|
-
function ta(e) {
|
|
1520
|
-
return Er.includes(e) || e.toLowerCase() === "!doctype";
|
|
1521
|
-
}
|
|
1522
|
-
function na(e) {
|
|
1523
|
-
return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
|
|
1524
|
-
}
|
|
1525
|
-
const Tr = [
|
|
1526
|
-
"beforeinput",
|
|
1527
|
-
"click",
|
|
1528
|
-
"change",
|
|
1529
|
-
"dblclick",
|
|
1530
|
-
"contextmenu",
|
|
1531
|
-
"focusin",
|
|
1532
|
-
"focusout",
|
|
1533
|
-
"input",
|
|
1534
|
-
"keydown",
|
|
1535
|
-
"keyup",
|
|
1536
|
-
"mousedown",
|
|
1537
|
-
"mousemove",
|
|
1538
|
-
"mouseout",
|
|
1539
|
-
"mouseover",
|
|
1540
|
-
"mouseup",
|
|
1541
|
-
"pointerdown",
|
|
1542
|
-
"pointermove",
|
|
1543
|
-
"pointerout",
|
|
1544
|
-
"pointerover",
|
|
1545
|
-
"pointerup",
|
|
1546
|
-
"touchend",
|
|
1547
|
-
"touchmove",
|
|
1548
|
-
"touchstart"
|
|
1549
|
-
];
|
|
1550
|
-
function ra(e) {
|
|
1551
|
-
return Tr.includes(e);
|
|
1552
|
-
}
|
|
1553
|
-
const Ar = {
|
|
1554
|
-
// no `class: 'className'` because we handle that separately
|
|
1555
|
-
formnovalidate: "formNoValidate",
|
|
1556
|
-
ismap: "isMap",
|
|
1557
|
-
nomodule: "noModule",
|
|
1558
|
-
playsinline: "playsInline",
|
|
1559
|
-
readonly: "readOnly",
|
|
1560
|
-
defaultvalue: "defaultValue",
|
|
1561
|
-
defaultchecked: "defaultChecked",
|
|
1562
|
-
srcobject: "srcObject",
|
|
1563
|
-
novalidate: "noValidate",
|
|
1564
|
-
allowfullscreen: "allowFullscreen",
|
|
1565
|
-
disablepictureinpicture: "disablePictureInPicture",
|
|
1566
|
-
disableremoteplayback: "disableRemotePlayback"
|
|
1567
|
-
};
|
|
1568
|
-
function sa(e) {
|
|
1569
|
-
return e = e.toLowerCase(), Ar[e] ?? e;
|
|
1570
|
-
}
|
|
1571
|
-
const Sr = ["touchstart", "touchmove"];
|
|
1572
|
-
function kr(e) {
|
|
1573
|
-
return Sr.includes(e);
|
|
1574
|
-
}
|
|
1575
|
-
const xr = (
|
|
1576
|
-
/** @type {const} */
|
|
1577
|
-
["textarea", "script", "style", "title"]
|
|
1578
|
-
);
|
|
1579
|
-
function aa(e) {
|
|
1580
|
-
return xr.includes(
|
|
1581
|
-
/** @type {RAW_TEXT_ELEMENTS[number]} */
|
|
1582
|
-
e
|
|
1583
|
-
);
|
|
1584
|
-
}
|
|
1585
|
-
function oa(e) {
|
|
1586
|
-
return e == null ? void 0 : e.replace(/\//g, "/");
|
|
1587
|
-
}
|
|
1588
|
-
function ia(e, t) {
|
|
1589
|
-
if (t) {
|
|
1590
|
-
const n = document.body;
|
|
1591
|
-
e.autofocus = !0, St(() => {
|
|
1592
|
-
document.activeElement === n && e.focus();
|
|
1593
|
-
});
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
function ua(e) {
|
|
1597
|
-
y && /* @__PURE__ */ T(e) !== null && Jt(e);
|
|
1598
|
-
}
|
|
1599
|
-
let ht = !1;
|
|
1600
|
-
function Cr() {
|
|
1601
|
-
ht || (ht = !0, document.addEventListener(
|
|
1602
|
-
"reset",
|
|
1603
|
-
(e) => {
|
|
1604
|
-
Promise.resolve().then(() => {
|
|
1605
|
-
var t;
|
|
1606
|
-
if (!e.defaultPrevented)
|
|
1607
|
-
for (
|
|
1608
|
-
const n of
|
|
1609
|
-
/**@type {HTMLFormElement} */
|
|
1610
|
-
e.target.elements
|
|
1611
|
-
)
|
|
1612
|
-
(t = n.__on_r) == null || t.call(n);
|
|
1613
|
-
});
|
|
1614
|
-
},
|
|
1615
|
-
// In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
|
|
1616
|
-
{ capture: !0 }
|
|
1617
|
-
));
|
|
1618
|
-
}
|
|
1619
|
-
function la(e, t, n, r = !0) {
|
|
1620
|
-
r && n();
|
|
1621
|
-
for (var s of t)
|
|
1622
|
-
e.addEventListener(s, n);
|
|
1623
|
-
ot(() => {
|
|
1624
|
-
for (var a of t)
|
|
1625
|
-
e.removeEventListener(a, n);
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
function an(e) {
|
|
1629
|
-
var t = p, n = w;
|
|
1630
|
-
z(null), K(null);
|
|
1631
|
-
try {
|
|
1632
|
-
return e();
|
|
1633
|
-
} finally {
|
|
1634
|
-
z(t), K(n);
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
function fa(e, t, n, r = n) {
|
|
1638
|
-
e.addEventListener(t, () => an(n));
|
|
1639
|
-
const s = e.__on_r;
|
|
1640
|
-
s ? e.__on_r = () => {
|
|
1641
|
-
s(), r(!0);
|
|
1642
|
-
} : e.__on_r = () => r(!0), Cr();
|
|
1643
|
-
}
|
|
1644
|
-
const on = /* @__PURE__ */ new Set(), Ge = /* @__PURE__ */ new Set();
|
|
1645
|
-
function ca(e) {
|
|
1646
|
-
if (!y) return;
|
|
1647
|
-
e.onload && e.removeAttribute("onload"), e.onerror && e.removeAttribute("onerror");
|
|
1648
|
-
const t = e.__e;
|
|
1649
|
-
t !== void 0 && (e.__e = void 0, queueMicrotask(() => {
|
|
1650
|
-
e.isConnected && e.dispatchEvent(t);
|
|
1651
|
-
}));
|
|
1652
|
-
}
|
|
1653
|
-
function un(e, t, n, r = {}) {
|
|
1654
|
-
function s(a) {
|
|
1655
|
-
if (r.capture || de.call(t, a), !a.cancelBubble)
|
|
1656
|
-
return an(() => n == null ? void 0 : n.call(this, a));
|
|
1657
|
-
}
|
|
1658
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? St(() => {
|
|
1659
|
-
t.addEventListener(e, s, r);
|
|
1660
|
-
}) : t.addEventListener(e, s, r), s;
|
|
1661
|
-
}
|
|
1662
|
-
function _a(e, t, n, r = {}) {
|
|
1663
|
-
var s = un(t, e, n, r);
|
|
1664
|
-
return () => {
|
|
1665
|
-
e.removeEventListener(t, s, r);
|
|
1666
|
-
};
|
|
1667
|
-
}
|
|
1668
|
-
function va(e, t, n, r, s) {
|
|
1669
|
-
var a = { capture: r, passive: s }, o = un(e, t, n, a);
|
|
1670
|
-
(t === document.body || t === window || t === document) && ot(() => {
|
|
1671
|
-
t.removeEventListener(e, o, a);
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
function da(e) {
|
|
1675
|
-
for (var t = 0; t < e.length; t++)
|
|
1676
|
-
on.add(e[t]);
|
|
1677
|
-
for (var n of Ge)
|
|
1678
|
-
n(e);
|
|
1679
|
-
}
|
|
1680
|
-
function de(e) {
|
|
1681
|
-
var ne;
|
|
1682
|
-
var t = this, n = (
|
|
1683
|
-
/** @type {Node} */
|
|
1684
|
-
t.ownerDocument
|
|
1685
|
-
), r = e.type, s = ((ne = e.composedPath) == null ? void 0 : ne.call(e)) || [], a = (
|
|
1686
|
-
/** @type {null | Element} */
|
|
1687
|
-
s[0] || e.target
|
|
1688
|
-
), o = 0, c = e.__root;
|
|
1689
|
-
if (c) {
|
|
1690
|
-
var u = s.indexOf(c);
|
|
1691
|
-
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1692
|
-
window)) {
|
|
1693
|
-
e.__root = t;
|
|
1694
|
-
return;
|
|
1695
|
-
}
|
|
1696
|
-
var i = s.indexOf(t);
|
|
1697
|
-
if (i === -1)
|
|
1698
|
-
return;
|
|
1699
|
-
u <= i && (o = u);
|
|
1700
|
-
}
|
|
1701
|
-
if (a = /** @type {Element} */
|
|
1702
|
-
s[o] || e.target, a !== t) {
|
|
1703
|
-
wn(e, "currentTarget", {
|
|
1704
|
-
configurable: !0,
|
|
1705
|
-
get() {
|
|
1706
|
-
return a || n;
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
var _ = p, f = w;
|
|
1710
|
-
z(null), K(null);
|
|
1711
|
-
try {
|
|
1712
|
-
for (var l, d = []; a !== null; ) {
|
|
1713
|
-
var m = a.assignedSlot || a.parentNode || /** @type {any} */
|
|
1714
|
-
a.host || null;
|
|
1715
|
-
try {
|
|
1716
|
-
var k = a["__" + r];
|
|
1717
|
-
if (k !== void 0 && !/** @type {any} */
|
|
1718
|
-
a.disabled)
|
|
1719
|
-
if (Ie(k)) {
|
|
1720
|
-
var [te, ...Te] = k;
|
|
1721
|
-
te.apply(a, [e, ...Te]);
|
|
1722
|
-
} else
|
|
1723
|
-
k.call(a, e);
|
|
1724
|
-
} catch (Z) {
|
|
1725
|
-
l ? d.push(Z) : l = Z;
|
|
1726
|
-
}
|
|
1727
|
-
if (e.cancelBubble || m === t || m === null)
|
|
1728
|
-
break;
|
|
1729
|
-
a = m;
|
|
1730
|
-
}
|
|
1731
|
-
if (l) {
|
|
1732
|
-
for (let Z of d)
|
|
1733
|
-
queueMicrotask(() => {
|
|
1734
|
-
throw Z;
|
|
1735
|
-
});
|
|
1736
|
-
throw l;
|
|
1737
|
-
}
|
|
1738
|
-
} finally {
|
|
1739
|
-
e.__root = t, delete e.currentTarget, z(_), K(f);
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
function pa(e, t, n, r, s, a = !1, o = !1) {
|
|
1744
|
-
let c, u;
|
|
1745
|
-
try {
|
|
1746
|
-
c = e();
|
|
1747
|
-
} catch (i) {
|
|
1748
|
-
u = i;
|
|
1749
|
-
}
|
|
1750
|
-
if (typeof c == "function")
|
|
1751
|
-
c.apply(t, n);
|
|
1752
|
-
else if (a || c != null || u) {
|
|
1753
|
-
const i = r == null ? void 0 : r[W];
|
|
1754
|
-
if (s ? `${i}${s[0]}${s[1]}` : `${i}`, n[0].type, Hn(), u)
|
|
1755
|
-
throw u;
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
let x;
|
|
1759
|
-
function Nr() {
|
|
1760
|
-
x = void 0;
|
|
1761
|
-
}
|
|
1762
|
-
function ha(e) {
|
|
1763
|
-
let t = null, n = y;
|
|
1764
|
-
var r;
|
|
1765
|
-
if (y) {
|
|
1766
|
-
for (t = v, x === void 0 && (x = /** @type {TemplateNode} */
|
|
1767
|
-
/* @__PURE__ */ T(document.head)); x !== null && (x.nodeType !== 8 || /** @type {Comment} */
|
|
1768
|
-
x.data !== Ze); )
|
|
1769
|
-
x = /** @type {TemplateNode} */
|
|
1770
|
-
/* @__PURE__ */ q(x);
|
|
1771
|
-
x === null ? se(!1) : x = I(
|
|
1772
|
-
/** @type {TemplateNode} */
|
|
1773
|
-
/* @__PURE__ */ q(x)
|
|
1774
|
-
);
|
|
1775
|
-
}
|
|
1776
|
-
y || (r = document.head.appendChild(B()));
|
|
1777
|
-
try {
|
|
1778
|
-
it(() => e(r), gt);
|
|
1779
|
-
} finally {
|
|
1780
|
-
n && (se(!0), x = v, I(
|
|
1781
|
-
/** @type {TemplateNode} */
|
|
1782
|
-
t
|
|
1783
|
-
));
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
function ut(e) {
|
|
1787
|
-
var t = document.createElement("template");
|
|
1788
|
-
return t.innerHTML = e, t.content;
|
|
1789
|
-
}
|
|
1790
|
-
function N(e, t) {
|
|
1791
|
-
var n = (
|
|
1792
|
-
/** @type {Effect} */
|
|
1793
|
-
w
|
|
1794
|
-
);
|
|
1795
|
-
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1796
|
-
}
|
|
1797
|
-
// @__NO_SIDE_EFFECTS__
|
|
1798
|
-
function Or(e, t) {
|
|
1799
|
-
var n = (t & Nt) !== 0, r = (t & qn) !== 0, s, a = !e.startsWith("<!>");
|
|
1800
|
-
return () => {
|
|
1801
|
-
if (y)
|
|
1802
|
-
return N(v, null), v;
|
|
1803
|
-
s === void 0 && (s = ut(a ? e : "<!>" + e), n || (s = /** @type {Node} */
|
|
1804
|
-
/* @__PURE__ */ T(s)));
|
|
1805
|
-
var o = (
|
|
1806
|
-
/** @type {TemplateNode} */
|
|
1807
|
-
r ? document.importNode(s, !0) : s.cloneNode(!0)
|
|
1808
|
-
);
|
|
1809
|
-
if (n) {
|
|
1810
|
-
var c = (
|
|
1811
|
-
/** @type {TemplateNode} */
|
|
1812
|
-
/* @__PURE__ */ T(o)
|
|
1813
|
-
), u = (
|
|
1814
|
-
/** @type {TemplateNode} */
|
|
1815
|
-
o.lastChild
|
|
1816
|
-
);
|
|
1817
|
-
N(c, u);
|
|
1818
|
-
} else
|
|
1819
|
-
N(o, o);
|
|
1820
|
-
return o;
|
|
1821
|
-
};
|
|
1822
|
-
}
|
|
1823
|
-
// @__NO_SIDE_EFFECTS__
|
|
1824
|
-
function wa(e, t) {
|
|
1825
|
-
var n = /* @__PURE__ */ Or(e, t);
|
|
1826
|
-
return () => fn(
|
|
1827
|
-
/** @type {Element | DocumentFragment} */
|
|
1828
|
-
n()
|
|
1829
|
-
);
|
|
1830
|
-
}
|
|
1831
|
-
// @__NO_SIDE_EFFECTS__
|
|
1832
|
-
function ln(e, t, n = "svg") {
|
|
1833
|
-
var r = !e.startsWith("<!>"), s = (t & Nt) !== 0, a = `<${n}>${r ? e : "<!>" + e}</${n}>`, o;
|
|
1834
|
-
return () => {
|
|
1835
|
-
if (y)
|
|
1836
|
-
return N(v, null), v;
|
|
1837
|
-
if (!o) {
|
|
1838
|
-
var c = (
|
|
1839
|
-
/** @type {DocumentFragment} */
|
|
1840
|
-
ut(a)
|
|
1841
|
-
), u = (
|
|
1842
|
-
/** @type {Element} */
|
|
1843
|
-
/* @__PURE__ */ T(c)
|
|
1844
|
-
);
|
|
1845
|
-
if (s)
|
|
1846
|
-
for (o = document.createDocumentFragment(); /* @__PURE__ */ T(u); )
|
|
1847
|
-
o.appendChild(
|
|
1848
|
-
/** @type {Node} */
|
|
1849
|
-
/* @__PURE__ */ T(u)
|
|
1850
|
-
);
|
|
1851
|
-
else
|
|
1852
|
-
o = /** @type {Element} */
|
|
1853
|
-
/* @__PURE__ */ T(u);
|
|
1854
|
-
}
|
|
1855
|
-
var i = (
|
|
1856
|
-
/** @type {TemplateNode} */
|
|
1857
|
-
o.cloneNode(!0)
|
|
1858
|
-
);
|
|
1859
|
-
if (s) {
|
|
1860
|
-
var _ = (
|
|
1861
|
-
/** @type {TemplateNode} */
|
|
1862
|
-
/* @__PURE__ */ T(i)
|
|
1863
|
-
), f = (
|
|
1864
|
-
/** @type {TemplateNode} */
|
|
1865
|
-
i.lastChild
|
|
1866
|
-
);
|
|
1867
|
-
N(_, f);
|
|
1868
|
-
} else
|
|
1869
|
-
N(i, i);
|
|
1870
|
-
return i;
|
|
1871
|
-
};
|
|
1872
|
-
}
|
|
1873
|
-
// @__NO_SIDE_EFFECTS__
|
|
1874
|
-
function ya(e, t) {
|
|
1875
|
-
var n = /* @__PURE__ */ ln(e, t);
|
|
1876
|
-
return () => fn(
|
|
1877
|
-
/** @type {Element | DocumentFragment} */
|
|
1878
|
-
n()
|
|
1879
|
-
);
|
|
1880
|
-
}
|
|
1881
|
-
// @__NO_SIDE_EFFECTS__
|
|
1882
|
-
function ma(e, t) {
|
|
1883
|
-
return /* @__PURE__ */ ln(e, t, "math");
|
|
1884
|
-
}
|
|
1885
|
-
function fn(e) {
|
|
1886
|
-
if (y) return e;
|
|
1887
|
-
const t = e.nodeType === 11, n = (
|
|
1888
|
-
/** @type {HTMLElement} */
|
|
1889
|
-
e.tagName === "SCRIPT" ? [
|
|
1890
|
-
/** @type {HTMLScriptElement} */
|
|
1891
|
-
e
|
|
1892
|
-
] : e.querySelectorAll("script")
|
|
1893
|
-
), r = (
|
|
1894
|
-
/** @type {Effect} */
|
|
1895
|
-
w
|
|
1896
|
-
);
|
|
1897
|
-
for (const a of n) {
|
|
1898
|
-
const o = document.createElement("script");
|
|
1899
|
-
for (var s of a.attributes)
|
|
1900
|
-
o.setAttribute(s.name, s.value);
|
|
1901
|
-
o.textContent = a.textContent, (t ? e.firstChild === a : e === a) && (r.nodes_start = o), (t ? e.lastChild === a : e === a) && (r.nodes_end = o), a.replaceWith(o);
|
|
1902
|
-
}
|
|
1903
|
-
return e;
|
|
1904
|
-
}
|
|
1905
|
-
function ga(e = "") {
|
|
1906
|
-
if (!y) {
|
|
1907
|
-
var t = B(e + "");
|
|
1908
|
-
return N(t, t), t;
|
|
1909
|
-
}
|
|
1910
|
-
var n = v;
|
|
1911
|
-
return n.nodeType !== 3 && (n.before(n = B()), I(n)), N(n, n), n;
|
|
1912
|
-
}
|
|
1913
|
-
function ba() {
|
|
1914
|
-
if (y)
|
|
1915
|
-
return N(v, null), v;
|
|
1916
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n = B();
|
|
1917
|
-
return e.append(t, n), N(t, n), e;
|
|
1918
|
-
}
|
|
1919
|
-
function Ea(e, t) {
|
|
1920
|
-
if (y) {
|
|
1921
|
-
w.nodes_end = v, at();
|
|
1922
|
-
return;
|
|
1923
|
-
}
|
|
1924
|
-
e !== null && e.before(
|
|
1925
|
-
/** @type {Node} */
|
|
1926
|
-
t
|
|
1927
|
-
);
|
|
1928
|
-
}
|
|
1929
|
-
let ze = !0;
|
|
1930
|
-
function Ta(e) {
|
|
1931
|
-
ze = e;
|
|
1932
|
-
}
|
|
1933
|
-
function Aa(e, t) {
|
|
1934
|
-
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1935
|
-
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n == null ? "" : n + "");
|
|
1936
|
-
}
|
|
1937
|
-
function cn(e, t) {
|
|
1938
|
-
return _n(e, t);
|
|
1939
|
-
}
|
|
1940
|
-
function Ir(e, t) {
|
|
1941
|
-
je(), t.intro = t.intro ?? !1;
|
|
1942
|
-
const n = t.target, r = y, s = v;
|
|
1943
|
-
try {
|
|
1944
|
-
for (var a = (
|
|
1945
|
-
/** @type {TemplateNode} */
|
|
1946
|
-
/* @__PURE__ */ T(n)
|
|
1947
|
-
); a && (a.nodeType !== 8 || /** @type {Comment} */
|
|
1948
|
-
a.data !== Ze); )
|
|
1949
|
-
a = /** @type {TemplateNode} */
|
|
1950
|
-
/* @__PURE__ */ q(a);
|
|
1951
|
-
if (!a)
|
|
1952
|
-
throw he;
|
|
1953
|
-
se(!0), I(
|
|
1954
|
-
/** @type {Comment} */
|
|
1955
|
-
a
|
|
1956
|
-
), at();
|
|
1957
|
-
const o = _n(e, { ...t, anchor: a });
|
|
1958
|
-
if (v === null || v.nodeType !== 8 || /** @type {Comment} */
|
|
1959
|
-
v.data !== Ot)
|
|
1960
|
-
throw Qe(), he;
|
|
1961
|
-
return se(!1), /** @type {Exports} */
|
|
1962
|
-
o;
|
|
1963
|
-
} catch (o) {
|
|
1964
|
-
if (o === he)
|
|
1965
|
-
return t.recover === !1 && In(), je(), Jt(n), se(!1), cn(e, t);
|
|
1966
|
-
throw o;
|
|
1967
|
-
} finally {
|
|
1968
|
-
se(r), I(s), Nr();
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
const re = /* @__PURE__ */ new Map();
|
|
1972
|
-
function _n(e, { target: t, anchor: n, props: r = {}, events: s, context: a, intro: o = !0 }) {
|
|
1973
|
-
je();
|
|
1974
|
-
var c = /* @__PURE__ */ new Set(), u = (f) => {
|
|
1975
|
-
for (var l = 0; l < f.length; l++) {
|
|
1976
|
-
var d = f[l];
|
|
1977
|
-
if (!c.has(d)) {
|
|
1978
|
-
c.add(d);
|
|
1979
|
-
var m = kr(d);
|
|
1980
|
-
t.addEventListener(d, de, { passive: m });
|
|
1981
|
-
var k = re.get(d);
|
|
1982
|
-
k === void 0 ? (document.addEventListener(d, de, { passive: m }), re.set(d, 1)) : re.set(d, k + 1);
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
1986
|
-
u(hn(on)), Ge.add(u);
|
|
1987
|
-
var i = void 0, _ = yr(() => {
|
|
1988
|
-
var f = n ?? t.appendChild(B());
|
|
1989
|
-
return Qt(() => {
|
|
1990
|
-
if (a) {
|
|
1991
|
-
Jn({});
|
|
1992
|
-
var l = (
|
|
1993
|
-
/** @type {ComponentContext} */
|
|
1994
|
-
h
|
|
1995
|
-
);
|
|
1996
|
-
l.c = a;
|
|
1997
|
-
}
|
|
1998
|
-
s && (r.$$events = s), y && N(
|
|
1999
|
-
/** @type {TemplateNode} */
|
|
2000
|
-
f,
|
|
2001
|
-
null
|
|
2002
|
-
), ze = o, i = e(f, r) || {}, ze = !0, y && (w.nodes_end = v), a && Xn();
|
|
2003
|
-
}), () => {
|
|
2004
|
-
var m;
|
|
2005
|
-
for (var l of c) {
|
|
2006
|
-
t.removeEventListener(l, de);
|
|
2007
|
-
var d = (
|
|
2008
|
-
/** @type {number} */
|
|
2009
|
-
re.get(l)
|
|
2010
|
-
);
|
|
2011
|
-
--d === 0 ? (document.removeEventListener(l, de), re.delete(l)) : re.set(l, d);
|
|
2012
|
-
}
|
|
2013
|
-
Ge.delete(u), f !== n && ((m = f.parentNode) == null || m.removeChild(f));
|
|
2014
|
-
};
|
|
2015
|
-
});
|
|
2016
|
-
return Ke.set(i, _), i;
|
|
2017
|
-
}
|
|
2018
|
-
let Ke = /* @__PURE__ */ new WeakMap();
|
|
2019
|
-
function Rr(e, t) {
|
|
2020
|
-
const n = Ke.get(e);
|
|
2021
|
-
return n ? (Ke.delete(e), n(t)) : Promise.resolve();
|
|
2022
|
-
}
|
|
2023
|
-
function Sa(e, t, ...n) {
|
|
2024
|
-
var r = e, s = gn, a;
|
|
2025
|
-
it(() => {
|
|
2026
|
-
s !== (s = t()) && (a && (H(a), a = null), a = Qt(() => (
|
|
2027
|
-
/** @type {SnippetFn} */
|
|
2028
|
-
s(r, ...n)
|
|
2029
|
-
)));
|
|
2030
|
-
}, Xe), y && (r = v);
|
|
2031
|
-
}
|
|
2032
|
-
function ka(e, t) {
|
|
2033
|
-
return (n, ...r) => {
|
|
2034
|
-
var s = tt;
|
|
2035
|
-
ft(e);
|
|
2036
|
-
try {
|
|
2037
|
-
return t(n, ...r);
|
|
2038
|
-
} finally {
|
|
2039
|
-
ft(s);
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
2042
|
-
}
|
|
2043
|
-
function Dr(e) {
|
|
2044
|
-
return (t, ...n) => {
|
|
2045
|
-
var u;
|
|
2046
|
-
var r = e(...n), s;
|
|
2047
|
-
if (y)
|
|
2048
|
-
s = /** @type {Element} */
|
|
2049
|
-
v, at();
|
|
2050
|
-
else {
|
|
2051
|
-
var a = r.render().trim(), o = ut(a);
|
|
2052
|
-
s = /** @type {Element} */
|
|
2053
|
-
/* @__PURE__ */ T(o), t.before(s);
|
|
2054
|
-
}
|
|
2055
|
-
const c = (u = r.setup) == null ? void 0 : u.call(r, s);
|
|
2056
|
-
N(s, s), typeof c == "function" && ot(c);
|
|
2057
|
-
};
|
|
2058
|
-
}
|
|
2059
|
-
function vn(e) {
|
|
2060
|
-
h === null && ce(), hr(() => {
|
|
2061
|
-
const t = J(e);
|
|
2062
|
-
if (typeof t == "function") return (
|
|
2063
|
-
/** @type {() => void} */
|
|
2064
|
-
t
|
|
2065
|
-
);
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
function Pr(e) {
|
|
2069
|
-
h === null && ce(), vn(() => () => J(e));
|
|
2070
|
-
}
|
|
2071
|
-
function Lr(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
2072
|
-
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
2073
|
-
}
|
|
2074
|
-
function Mr() {
|
|
2075
|
-
const e = h;
|
|
2076
|
-
return e === null && ce(), (t, n, r) => {
|
|
2077
|
-
var a;
|
|
2078
|
-
const s = (
|
|
2079
|
-
/** @type {Record<string, Function | Function[]>} */
|
|
2080
|
-
(a = e.s.$$events) == null ? void 0 : a[
|
|
2081
|
-
/** @type {any} */
|
|
2082
|
-
t
|
|
2083
|
-
]
|
|
2084
|
-
);
|
|
2085
|
-
if (s) {
|
|
2086
|
-
const o = Ie(s) ? s.slice() : [s], c = Lr(
|
|
2087
|
-
/** @type {string} */
|
|
2088
|
-
t,
|
|
2089
|
-
n,
|
|
2090
|
-
r
|
|
2091
|
-
);
|
|
2092
|
-
for (const u of o)
|
|
2093
|
-
u.call(e.x, c);
|
|
2094
|
-
return !c.defaultPrevented;
|
|
2095
|
-
}
|
|
2096
|
-
return !0;
|
|
2097
|
-
};
|
|
2098
|
-
}
|
|
2099
|
-
function qr(e) {
|
|
2100
|
-
h === null && ce(), h.l === null && Ct(), dn(h).b.push(e);
|
|
2101
|
-
}
|
|
2102
|
-
function Fr(e) {
|
|
2103
|
-
h === null && ce(), h.l === null && Ct(), dn(h).a.push(e);
|
|
2104
|
-
}
|
|
2105
|
-
function dn(e) {
|
|
2106
|
-
var t = (
|
|
2107
|
-
/** @type {ComponentContextLegacy} */
|
|
2108
|
-
e.l
|
|
2109
|
-
);
|
|
2110
|
-
return t.u ?? (t.u = { a: [], b: [], m: [] });
|
|
2111
|
-
}
|
|
2112
|
-
function $r(e) {
|
|
2113
|
-
st(e);
|
|
2114
|
-
}
|
|
2115
|
-
const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2116
|
-
__proto__: null,
|
|
2117
|
-
afterUpdate: Fr,
|
|
2118
|
-
beforeUpdate: qr,
|
|
2119
|
-
createEventDispatcher: Mr,
|
|
2120
|
-
createRawSnippet: Dr,
|
|
2121
|
-
flushSync: $r,
|
|
2122
|
-
getAllContexts: Kn,
|
|
2123
|
-
getContext: jn,
|
|
2124
|
-
hasContext: zn,
|
|
2125
|
-
hydrate: Ir,
|
|
2126
|
-
mount: cn,
|
|
2127
|
-
onDestroy: Pr,
|
|
2128
|
-
onMount: vn,
|
|
2129
|
-
setContext: Gn,
|
|
2130
|
-
tick: fr,
|
|
2131
|
-
unmount: Rr,
|
|
2132
|
-
untrack: J
|
|
2133
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2134
|
-
export {
|
|
2135
|
-
ie as $,
|
|
2136
|
-
gs as A,
|
|
2137
|
-
Xr as B,
|
|
2138
|
-
Xt as C,
|
|
2139
|
-
Ks as D,
|
|
2140
|
-
Xe as E,
|
|
2141
|
-
W as F,
|
|
2142
|
-
Bn as G,
|
|
2143
|
-
Ze as H,
|
|
2144
|
-
at as I,
|
|
2145
|
-
Yr as J,
|
|
2146
|
-
Ue as K,
|
|
2147
|
-
St as L,
|
|
2148
|
-
K as M,
|
|
2149
|
-
z as N,
|
|
2150
|
-
lt as O,
|
|
2151
|
-
ea as P,
|
|
2152
|
-
gr as Q,
|
|
2153
|
-
st as R,
|
|
2154
|
-
Vs as S,
|
|
2155
|
-
I as T,
|
|
2156
|
-
b as U,
|
|
2157
|
-
se as V,
|
|
2158
|
-
Jr as W,
|
|
2159
|
-
ot as X,
|
|
2160
|
-
T as Y,
|
|
2161
|
-
B as Z,
|
|
2162
|
-
rs as _,
|
|
2163
|
-
C as a,
|
|
2164
|
-
ke as a$,
|
|
2165
|
-
hn as a0,
|
|
2166
|
-
w as a1,
|
|
2167
|
-
ts as a2,
|
|
2168
|
-
ns as a3,
|
|
2169
|
-
rn as a4,
|
|
2170
|
-
Jt as a5,
|
|
2171
|
-
br as a6,
|
|
2172
|
-
Ds as a7,
|
|
2173
|
-
Ie as a8,
|
|
2174
|
-
ss as a9,
|
|
2175
|
-
Vr as aA,
|
|
2176
|
-
fs as aB,
|
|
2177
|
-
cs as aC,
|
|
2178
|
-
_s as aD,
|
|
2179
|
-
la as aE,
|
|
2180
|
-
fa as aF,
|
|
2181
|
-
Ys as aG,
|
|
2182
|
-
pe as aH,
|
|
2183
|
-
G as aI,
|
|
2184
|
-
an as aJ,
|
|
2185
|
-
wr as aK,
|
|
2186
|
-
hr as aL,
|
|
2187
|
-
Ur as aM,
|
|
2188
|
-
qt as aN,
|
|
2189
|
-
wn as aO,
|
|
2190
|
-
es as aP,
|
|
2191
|
-
is as aQ,
|
|
2192
|
-
xt as aR,
|
|
2193
|
-
$ as aS,
|
|
2194
|
-
ve as aT,
|
|
2195
|
-
Is as aU,
|
|
2196
|
-
Gr as aV,
|
|
2197
|
-
V as aW,
|
|
2198
|
-
le as aX,
|
|
2199
|
-
os as aY,
|
|
2200
|
-
us as aZ,
|
|
2201
|
-
ls as a_,
|
|
2202
|
-
Qn as aa,
|
|
2203
|
-
as as ab,
|
|
2204
|
-
q as ac,
|
|
2205
|
-
Qe as ad,
|
|
2206
|
-
he as ae,
|
|
2207
|
-
N as af,
|
|
2208
|
-
ut as ag,
|
|
2209
|
-
ds as ah,
|
|
2210
|
-
aa as ai,
|
|
2211
|
-
Zt as aj,
|
|
2212
|
-
Fs as ak,
|
|
2213
|
-
Kr as al,
|
|
2214
|
-
Cr as am,
|
|
2215
|
-
zr as an,
|
|
2216
|
-
na as ao,
|
|
2217
|
-
un as ap,
|
|
2218
|
-
da as aq,
|
|
2219
|
-
ia as ar,
|
|
2220
|
-
sa as as,
|
|
2221
|
-
Re as at,
|
|
2222
|
-
p as au,
|
|
2223
|
-
ra as av,
|
|
2224
|
-
yn as aw,
|
|
2225
|
-
ze as ax,
|
|
2226
|
-
Je as ay,
|
|
2227
|
-
bn as az,
|
|
2228
|
-
qe as b,
|
|
2229
|
-
Hs as b0,
|
|
2230
|
-
Ps as b1,
|
|
2231
|
-
Pe as b2,
|
|
2232
|
-
tt as b3,
|
|
2233
|
-
Qr as b4,
|
|
2234
|
-
ys as b5,
|
|
2235
|
-
Ir as b6,
|
|
2236
|
-
cn as b7,
|
|
2237
|
-
Rr as b8,
|
|
2238
|
-
Hr as b9,
|
|
2239
|
-
ya as bA,
|
|
2240
|
-
ma as bB,
|
|
2241
|
-
Or as bC,
|
|
2242
|
-
wa as bD,
|
|
2243
|
-
ga as bE,
|
|
2244
|
-
Xs as bF,
|
|
2245
|
-
Zs as bG,
|
|
2246
|
-
Qs as bH,
|
|
2247
|
-
Ns as bI,
|
|
2248
|
-
Os as bJ,
|
|
2249
|
-
Cs as bK,
|
|
2250
|
-
Rs as bL,
|
|
2251
|
-
Aa as bM,
|
|
2252
|
-
Ls as bN,
|
|
2253
|
-
Ms as bO,
|
|
2254
|
-
qs as bP,
|
|
2255
|
-
We as bQ,
|
|
2256
|
-
js as bR,
|
|
2257
|
-
Gs as bS,
|
|
2258
|
-
zs as bT,
|
|
2259
|
-
pt as bU,
|
|
2260
|
-
vr as bV,
|
|
2261
|
-
jr as bW,
|
|
2262
|
-
Ss as bX,
|
|
2263
|
-
Us as bY,
|
|
2264
|
-
Ws as bZ,
|
|
2265
|
-
xa as b_,
|
|
2266
|
-
Ea as ba,
|
|
2267
|
-
ta as bb,
|
|
2268
|
-
ps as bc,
|
|
2269
|
-
xs as bd,
|
|
2270
|
-
ks as be,
|
|
2271
|
-
ms as bf,
|
|
2272
|
-
Jn as bg,
|
|
2273
|
-
Xn as bh,
|
|
2274
|
-
Fe as bi,
|
|
2275
|
-
Wn as bj,
|
|
2276
|
-
bs as bk,
|
|
2277
|
-
Es as bl,
|
|
2278
|
-
Ts as bm,
|
|
2279
|
-
As as bn,
|
|
2280
|
-
hs as bo,
|
|
2281
|
-
Sa as bp,
|
|
2282
|
-
ka as bq,
|
|
2283
|
-
ha as br,
|
|
2284
|
-
pa as bs,
|
|
2285
|
-
va as bt,
|
|
2286
|
-
ca as bu,
|
|
2287
|
-
ua as bv,
|
|
2288
|
-
Bs as bw,
|
|
2289
|
-
$s as bx,
|
|
2290
|
-
ba as by,
|
|
2291
|
-
ln as bz,
|
|
2292
|
-
R as c,
|
|
2293
|
-
Js as d,
|
|
2294
|
-
pr as e,
|
|
2295
|
-
Wr as f,
|
|
2296
|
-
D as g,
|
|
2297
|
-
ws as h,
|
|
2298
|
-
oa as i,
|
|
2299
|
-
y as j,
|
|
2300
|
-
Fn as k,
|
|
2301
|
-
Ot as l,
|
|
2302
|
-
vs as m,
|
|
2303
|
-
gn as n,
|
|
2304
|
-
_a as o,
|
|
2305
|
-
it as p,
|
|
2306
|
-
Qt as q,
|
|
2307
|
-
yt as r,
|
|
2308
|
-
kn as s,
|
|
2309
|
-
fr as t,
|
|
2310
|
-
J as u,
|
|
2311
|
-
v,
|
|
2312
|
-
H as w,
|
|
2313
|
-
Ta as x,
|
|
2314
|
-
Zr as y,
|
|
2315
|
-
h as z
|
|
2316
|
-
};
|