@nil-/xit 0.1.5 → 0.1.6

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,2113 @@
1
+ var Yr = Object.defineProperty;
2
+ var Xe = (e) => {
3
+ throw TypeError(e);
4
+ };
5
+ var Kr = (e, r, t) => r in e ? Yr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
6
+ var Ze = (e, r, t) => Kr(e, typeof r != "symbol" ? r + "" : r, t), Te = (e, r, t) => r.has(e) || Xe("Cannot " + t);
7
+ var L = (e, r, t) => (Te(e, r, "read from private field"), t ? t.call(e) : r.get(e)), ae = (e, r, t) => r.has(e) ? Xe("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), ke = (e, r, t, n) => (Te(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t), Qe = (e, r, t) => (Te(e, r, "access private method"), t);
8
+ import { S as gr, F as I, B as Ur, C as yr, r as k, D as wr, E as oe, G as J, H as Er, I as Vr, v as R, J as Wr, k as C, U as T, K as X, p as x, L as K, M as Gr, i as _e, N as Ar, O as y, P as Jr, Q as Fe, R as Nr, T as Xr, V as j, W as de, X as D, Y as S, Z as me, _ as ge, $ as Zr, c as mr, a0 as Qr, a1 as jr, a2 as et, a3 as M, a4 as Ie, a5 as Y, a6 as Z, a7 as le, a8 as ne, a9 as rt, aa as q, ab as $, ac as xr, ad as Tr, ae as Se, af as U, ag as qe, ah as je, ai as ze, aj as tt, ak as Be, al as nt, am as kr, an as it, ao as Sr, ap as at, aq as Or, ar as st, as as ft, at as Pe, au as ut, av as ot, aw as lt, ax as Ce, ay as ct, az as er, aA as vt, aB as _t, aC as dt, aD as ht, aE as bt, aF as pt, aG as gt, aH as F, a as ee, aI as se, x as G, aJ as yt, aK as wt, aL as Et, aM as rr, aN as ye, aO as Rr, aP as At, u as tr, aQ as Nt, aR as nr, aS as mt, aT as Le, aU as xt, aV as Tt, aW as Ir, aX as kt, aY as St, aZ as ir, a_ as Ot, a$ as Rt, b0 as It, b1 as Pt, b2 as Ct, b3 as Lt, b4 as Dt, b5 as Mt, b6 as Ft, b7 as qt, b8 as zt, b9 as Bt, ba as $t, bb as Ht, bc as Yt, bd as Kt, be as Ut } from "./index2.js";
9
+ import { bh as ua, bo as oa, bi as la, bf as ca, bL as va, bp as _a, bK as da, bJ as ha, bP as ba, n as pa, o as ga, bj as ya, bG as wa, bQ as Ea, bM as Aa, f as Na, e as ma, g as xa, j as Ta, bg as ka, bl as Sa, bR as Oa, bE as Ra, bw as Ia, bx as Pa, bs as Ca, bz as La, bA as Da, bm as Ma, bq as Fa, bH as qa, bI as za, bk as Ba, bn as $a, bD as Ha, s as Ya, bC as Ka, bN as Ua, bB as Va, br as Wa, bt as Ga, by as Ja, bu as Xa, bv as Za, t as Qa, bF as ja, bO as es } from "./index2.js";
10
+ import { s as ts, w as ns } from "./snippet.js";
11
+ var ar = /* @__PURE__ */ new Map();
12
+ function yn(e) {
13
+ var r = ar.get(e);
14
+ if (r) {
15
+ for (const t of r)
16
+ t.remove();
17
+ ar.delete(e);
18
+ }
19
+ }
20
+ const fe = {}, Vt = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, Wt = /@(.+):(\d+):(\d+)$/;
21
+ function $e() {
22
+ const e = new Error().stack;
23
+ if (!e) return null;
24
+ const r = [];
25
+ for (const t of e.split(`
26
+ `)) {
27
+ let n = Vt.exec(t) ?? Wt.exec(t);
28
+ n && r.push({
29
+ file: n[1],
30
+ line: +n[2],
31
+ column: +n[3]
32
+ });
33
+ }
34
+ return r;
35
+ }
36
+ function Gt() {
37
+ var r;
38
+ const e = (r = $e()) == null ? void 0 : r.slice(4);
39
+ if (!e) return null;
40
+ for (let t = 0; t < e.length; t++) {
41
+ const n = e[t], i = fe[n.file];
42
+ if (!i) {
43
+ if (t === 0) return null;
44
+ continue;
45
+ }
46
+ for (const a of i)
47
+ if (a.start.line < n.line && a.end.line > n.line)
48
+ return a.component;
49
+ }
50
+ return null;
51
+ }
52
+ const Oe = Symbol("ADD_OWNER");
53
+ function wn() {
54
+ var r, t;
55
+ const e = (r = $e()) == null ? void 0 : r[2];
56
+ e && (fe[t = e.file] ?? (fe[t] = [])).push({
57
+ start: e,
58
+ // @ts-expect-error
59
+ end: null,
60
+ // @ts-expect-error we add the component at the end, since HMR will overwrite the function
61
+ component: null
62
+ });
63
+ }
64
+ function En(e) {
65
+ var t;
66
+ const r = (t = $e()) == null ? void 0 : t[2];
67
+ if (r) {
68
+ const n = fe[r.file], i = n[n.length - 1];
69
+ i.end = r, i.component = e;
70
+ }
71
+ }
72
+ function Jt(e, r, t = !1, n = !1) {
73
+ if (e && !t) {
74
+ const i = wr, a = e[gr];
75
+ if (a && !Pr(a, i)) {
76
+ let s = Cr(a);
77
+ r[I] !== i[I] && !n && Ur(i[I], r[I], s[I]);
78
+ }
79
+ }
80
+ De(e, r, /* @__PURE__ */ new Set());
81
+ }
82
+ function An(e, r, t = !1) {
83
+ yr(() => {
84
+ Jt(e(), r, !1, t);
85
+ });
86
+ }
87
+ function De(e, r, t) {
88
+ const n = (
89
+ /** @type {ProxyMetadata} */
90
+ e == null ? void 0 : e[gr]
91
+ );
92
+ if (n)
93
+ "owners" in n && n.owners != null && n.owners.add(r);
94
+ else if (e && typeof e == "object") {
95
+ if (t.has(e)) return;
96
+ if (t.add(e), Oe in e && e[Oe])
97
+ k(() => {
98
+ e[Oe](r);
99
+ });
100
+ else {
101
+ var i = oe(e);
102
+ if (i === Object.prototype)
103
+ for (const a in e)
104
+ De(e[a], r, t);
105
+ else if (i === Array.prototype)
106
+ for (let a = 0; a < e.length; a += 1)
107
+ De(e[a], r, t);
108
+ }
109
+ }
110
+ }
111
+ function Pr(e, r) {
112
+ return e.owners === null ? !0 : e.owners.has(r) || e.parent !== null && Pr(e.parent, r);
113
+ }
114
+ function Cr(e) {
115
+ var r;
116
+ return ((r = e == null ? void 0 : e.owners) == null ? void 0 : r.values().next().value) ?? Cr(
117
+ /** @type {ProxyMetadata} */
118
+ e.parent
119
+ );
120
+ }
121
+ function Nn(e) {
122
+ e();
123
+ }
124
+ function re(e, r = null, t) {
125
+ if (typeof e != "object" || e === null || J in e)
126
+ return e;
127
+ const n = oe(e);
128
+ if (n !== Er && n !== Vr)
129
+ return e;
130
+ var i = /* @__PURE__ */ new Map(), a = _e(e), s = R(0);
131
+ a && i.set("length", R(
132
+ /** @type {any[]} */
133
+ e.length
134
+ ));
135
+ var c;
136
+ return new Proxy(
137
+ /** @type {any} */
138
+ e,
139
+ {
140
+ defineProperty(l, f, o) {
141
+ (!("value" in o) || o.configurable === !1 || o.enumerable === !1 || o.writable === !1) && Wr();
142
+ var u = i.get(f);
143
+ return u === void 0 ? (u = R(o.value), i.set(f, u)) : C(u, re(o.value, c)), !0;
144
+ },
145
+ deleteProperty(l, f) {
146
+ var o = i.get(f);
147
+ if (o === void 0)
148
+ f in l && i.set(f, R(T));
149
+ else {
150
+ if (a && typeof f == "string") {
151
+ var u = (
152
+ /** @type {Source<number>} */
153
+ i.get("length")
154
+ ), v = Number(f);
155
+ Number.isInteger(v) && v < u.v && C(u, v);
156
+ }
157
+ C(o, T), sr(s);
158
+ }
159
+ return !0;
160
+ },
161
+ get(l, f, o) {
162
+ var h;
163
+ if (f === J)
164
+ return e;
165
+ var u = i.get(f), v = f in l;
166
+ if (u === void 0 && (!v || (h = X(l, f)) != null && h.writable) && (u = R(re(v ? l[f] : T, c)), i.set(f, u)), u !== void 0) {
167
+ var _ = x(u);
168
+ return _ === T ? void 0 : _;
169
+ }
170
+ return Reflect.get(l, f, o);
171
+ },
172
+ getOwnPropertyDescriptor(l, f) {
173
+ var o = Reflect.getOwnPropertyDescriptor(l, f);
174
+ if (o && "value" in o) {
175
+ var u = i.get(f);
176
+ u && (o.value = x(u));
177
+ } else if (o === void 0) {
178
+ var v = i.get(f), _ = v == null ? void 0 : v.v;
179
+ if (v !== void 0 && _ !== T)
180
+ return {
181
+ enumerable: !0,
182
+ configurable: !0,
183
+ value: _,
184
+ writable: !0
185
+ };
186
+ }
187
+ return o;
188
+ },
189
+ has(l, f) {
190
+ var _;
191
+ if (f === J)
192
+ return !0;
193
+ var o = i.get(f), u = o !== void 0 && o.v !== T || Reflect.has(l, f);
194
+ if (o !== void 0 || K !== null && (!u || (_ = X(l, f)) != null && _.writable)) {
195
+ o === void 0 && (o = R(u ? re(l[f], c) : T), i.set(f, o));
196
+ var v = x(o);
197
+ if (v === T)
198
+ return !1;
199
+ }
200
+ return u;
201
+ },
202
+ set(l, f, o, u) {
203
+ var b;
204
+ var v = i.get(f), _ = f in l;
205
+ if (a && f === "length")
206
+ for (var h = o; h < /** @type {Source<number>} */
207
+ v.v; h += 1) {
208
+ var g = i.get(h + "");
209
+ g !== void 0 ? C(g, T) : h in l && (g = R(T), i.set(h + "", g));
210
+ }
211
+ v === void 0 ? (!_ || (b = X(l, f)) != null && b.writable) && (v = R(void 0), C(v, re(o, c)), i.set(f, v)) : (_ = v.v !== T, C(v, re(o, c)));
212
+ var w = Reflect.getOwnPropertyDescriptor(l, f);
213
+ if (w != null && w.set && w.set.call(u, o), !_) {
214
+ if (a && typeof f == "string") {
215
+ var p = (
216
+ /** @type {Source<number>} */
217
+ i.get("length")
218
+ ), d = Number(f);
219
+ Number.isInteger(d) && d >= p.v && C(p, d + 1);
220
+ }
221
+ sr(s);
222
+ }
223
+ return !0;
224
+ },
225
+ ownKeys(l) {
226
+ x(s);
227
+ var f = Reflect.ownKeys(l).filter((v) => {
228
+ var _ = i.get(v);
229
+ return _ === void 0 || _.v !== T;
230
+ });
231
+ for (var [o, u] of i)
232
+ u.v !== T && !(o in l) && f.push(o);
233
+ return f;
234
+ },
235
+ setPrototypeOf() {
236
+ Gr();
237
+ }
238
+ }
239
+ );
240
+ }
241
+ function sr(e, r = 1) {
242
+ C(e, e.v + r);
243
+ }
244
+ function V(e) {
245
+ return e !== null && typeof e == "object" && J in e ? e[J] : e;
246
+ }
247
+ function Lr(e, r) {
248
+ return Object.is(V(e), V(r));
249
+ }
250
+ function mn(e, r, t = !0) {
251
+ try {
252
+ e === r != (V(e) === V(r)) && Ar(t ? "===" : "!==");
253
+ } catch {
254
+ }
255
+ return e === r === t;
256
+ }
257
+ function xn(e, r, t = !0) {
258
+ return e == r != (V(e) == V(r)) && Ar(), e == r === t;
259
+ }
260
+ function Tn(e, r, t) {
261
+ return (...n) => {
262
+ const i = e(...n);
263
+ var a = y ? i : i.nodeType === 11 ? i.firstChild : i;
264
+ return Dr(a, r, t), i;
265
+ };
266
+ }
267
+ function Xt(e, r, t) {
268
+ e.__svelte_meta = {
269
+ loc: { file: r, line: t[0], column: t[1] }
270
+ }, t[2] && Dr(e.firstChild, r, t[2]);
271
+ }
272
+ function Dr(e, r, t) {
273
+ for (var n = 0, i = 0; e && n < t.length; ) {
274
+ if (y && e.nodeType === 8) {
275
+ var a = (
276
+ /** @type {Comment} */
277
+ e
278
+ );
279
+ a.data === Jr || a.data === Fe ? i += 1 : a.data[0] === Nr && (i -= 1);
280
+ }
281
+ i === 0 && e.nodeType === 1 && Xt(
282
+ /** @type {Element} */
283
+ e,
284
+ r,
285
+ t[n++]
286
+ ), e = e.nextSibling;
287
+ }
288
+ }
289
+ function kn(e, r) {
290
+ function t(n, i) {
291
+ let a = {}, s, c = !1;
292
+ return j(() => {
293
+ const l = r(), f = x(l);
294
+ if (s) {
295
+ for (var o in a) delete a[o];
296
+ me(s);
297
+ }
298
+ s = D(() => {
299
+ c && ge(!1), Object.defineProperties(
300
+ a,
301
+ Object.getOwnPropertyDescriptors(
302
+ // @ts-expect-error
303
+ new.target ? new f(n, i) : f(n, i)
304
+ )
305
+ ), c && ge(!0);
306
+ });
307
+ }, de), c = !0, y && (n = S), a;
308
+ }
309
+ return t[I] = e[I], t[Xr] = {
310
+ // When we accept an update, we set the original source to the new component
311
+ original: e,
312
+ // The `get_source` parameter reads `wrapper[HMR].source`, but in the `accept`
313
+ // function we always replace it with `previous[HMR].source`, which in practice
314
+ // means we only ever update the original
315
+ source: R(e)
316
+ }, t;
317
+ }
318
+ function Sn(e) {
319
+ e && Zr(e[I] ?? "a component", e.name);
320
+ }
321
+ function On() {
322
+ var t;
323
+ const e = (t = mr) == null ? void 0 : t.function;
324
+ function r(n) {
325
+ var a;
326
+ const i = ((a = Gt()) == null ? void 0 : a[I]) ?? "Something";
327
+ Qr(i, n, e[I]);
328
+ }
329
+ return {
330
+ $destroy: () => r("$destroy()"),
331
+ $on: () => r("$on(...)"),
332
+ $set: () => r("$set(...)")
333
+ };
334
+ }
335
+ function Zt(e) {
336
+ console.warn("dynamic_void_element_content");
337
+ }
338
+ function Mr(e, r = !1) {
339
+ return pe(e, /* @__PURE__ */ new Map());
340
+ }
341
+ function pe(e, r, t, n) {
342
+ if (typeof e == "object" && e !== null) {
343
+ const a = r.get(e);
344
+ if (a !== void 0) return a;
345
+ if (e instanceof Map) return (
346
+ /** @type {Snapshot<T>} */
347
+ new Map(e)
348
+ );
349
+ if (e instanceof Set) return (
350
+ /** @type {Snapshot<T>} */
351
+ new Set(e)
352
+ );
353
+ if (_e(e)) {
354
+ const s = (
355
+ /** @type {Snapshot<any>} */
356
+ []
357
+ );
358
+ r.set(e, s);
359
+ for (let c = 0; c < e.length; c += 1)
360
+ s.push(pe(e[c], r));
361
+ return s;
362
+ }
363
+ if (oe(e) === Er) {
364
+ const s = {};
365
+ r.set(e, s);
366
+ for (var i in e)
367
+ s[i] = pe(e[i], r);
368
+ return s;
369
+ }
370
+ if (e instanceof Date)
371
+ return (
372
+ /** @type {Snapshot<T>} */
373
+ structuredClone(e)
374
+ );
375
+ if (typeof /** @type {T & { toJSON?: any } } */
376
+ e.toJSON == "function")
377
+ return pe(
378
+ /** @type {T & { toJSON(): any } } */
379
+ e.toJSON(),
380
+ r
381
+ );
382
+ }
383
+ if (e instanceof EventTarget)
384
+ return (
385
+ /** @type {Snapshot<T>} */
386
+ e
387
+ );
388
+ try {
389
+ return (
390
+ /** @type {Snapshot<T>} */
391
+ structuredClone(e)
392
+ );
393
+ } catch {
394
+ return (
395
+ /** @type {Snapshot<T>} */
396
+ e
397
+ );
398
+ }
399
+ }
400
+ function Rn(e, r = console.log) {
401
+ jr();
402
+ let t = !0;
403
+ et(() => {
404
+ var n = T;
405
+ try {
406
+ n = e();
407
+ } catch (i) {
408
+ console.error(i);
409
+ }
410
+ n !== T && r(t ? "init" : "update", ...Mr(n, !0)), t = !1;
411
+ });
412
+ }
413
+ function In(e, r, t, n = null, i = !1) {
414
+ y && M();
415
+ var a = e, s = null, c = null, l = null, f = i ? de : 0;
416
+ j(() => {
417
+ if (l === (l = !!r())) return;
418
+ let o = !1;
419
+ if (y) {
420
+ const u = (
421
+ /** @type {Comment} */
422
+ a.data === Fe
423
+ );
424
+ l === u && (a = Ie(), Y(a), Z(!1), o = !0);
425
+ }
426
+ l ? (s ? le(s) : s = D(() => t(a)), c && ne(c, () => {
427
+ c = null;
428
+ })) : (c ? le(c) : n && (c = D(() => n(a))), s && ne(s, () => {
429
+ s = null;
430
+ })), o && Z(!0);
431
+ }, f), y && (a = S);
432
+ }
433
+ function Pn(e, r, t) {
434
+ y && M();
435
+ var n = e, i = T, a;
436
+ j(() => {
437
+ rt(i, i = r()) && (a && ne(a), a = D(() => t(n)));
438
+ }), y && (n = S);
439
+ }
440
+ function Cn(e, r) {
441
+ y && Y(
442
+ /** @type {TemplateNode} */
443
+ $(e)
444
+ ), k(() => {
445
+ var t = r();
446
+ for (var n in t) {
447
+ var i = t[n];
448
+ i ? e.style.setProperty(n, i) : e.style.removeProperty(n);
449
+ }
450
+ }), q(() => {
451
+ e.remove();
452
+ });
453
+ }
454
+ let Q = null;
455
+ function fr(e) {
456
+ Q = e;
457
+ }
458
+ function Ln(e, r) {
459
+ return r;
460
+ }
461
+ function Qt(e, r, t, n) {
462
+ for (var i = [], a = r.length, s = 0; s < a; s++)
463
+ nt(r[s].e, i, !0);
464
+ var c = a > 0 && i.length === 0 && t !== null;
465
+ if (c) {
466
+ var l = (
467
+ /** @type {Element} */
468
+ /** @type {Element} */
469
+ t.parentNode
470
+ );
471
+ kr(l), l.append(
472
+ /** @type {Element} */
473
+ t
474
+ ), n.clear(), z(e, r[0].prev, r[a - 1].next);
475
+ }
476
+ it(i, () => {
477
+ for (var f = 0; f < a; f++) {
478
+ var o = r[f];
479
+ c || (n.delete(o.k), z(e, o.prev, o.next)), me(o.e, !c);
480
+ }
481
+ });
482
+ }
483
+ function Dn(e, r, t, n, i, a = null) {
484
+ var s = e, c = { flags: r, items: /* @__PURE__ */ new Map(), first: null }, l = (r & Sr) !== 0;
485
+ if (l) {
486
+ var f = (
487
+ /** @type {Element} */
488
+ e
489
+ );
490
+ s = y ? Y(
491
+ /** @type {Comment | Text} */
492
+ $(f)
493
+ ) : f.appendChild(xr());
494
+ }
495
+ y && M();
496
+ var o = null, u = !1;
497
+ j(() => {
498
+ var v = t(), _ = _e(v) ? v : v == null ? [] : Tr(v), h = _.length;
499
+ if (u && h === 0)
500
+ return;
501
+ u = h === 0;
502
+ let g = !1;
503
+ if (y) {
504
+ var w = (
505
+ /** @type {Comment} */
506
+ s.data === Fe
507
+ );
508
+ w !== (h === 0) && (s = Ie(), Y(s), Z(!1), g = !0);
509
+ }
510
+ if (y) {
511
+ for (var p = null, d, b = 0; b < h; b++) {
512
+ if (S.nodeType === 8 && /** @type {Comment} */
513
+ S.data === Nr) {
514
+ s = /** @type {Comment} */
515
+ S, g = !0, Z(!1);
516
+ break;
517
+ }
518
+ var E = _[b], N = n(E, b);
519
+ d = Fr(S, c, p, null, E, N, b, i, r), c.items.set(N, d), p = d;
520
+ }
521
+ h > 0 && Y(Ie());
522
+ }
523
+ y || jt(_, c, s, i, r, n), a !== null && (h === 0 ? o ? le(o) : o = D(() => a(s)) : o !== null && ne(o, () => {
524
+ o = null;
525
+ })), g && Z(!0), t();
526
+ }), y && (s = S);
527
+ }
528
+ function jt(e, r, t, n, i, a) {
529
+ var Ue, Ve, We, Ge;
530
+ var s = (i & at) !== 0, c = (i & (qe | ze)) !== 0, l = e.length, f = r.items, o = r.first, u = o, v, _ = null, h, g = [], w = [], p, d, b, E;
531
+ if (s)
532
+ for (E = 0; E < l; E += 1)
533
+ p = e[E], d = a(p, E), b = f.get(d), b !== void 0 && ((Ue = b.a) == null || Ue.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(b));
534
+ for (E = 0; E < l; E += 1) {
535
+ if (p = e[E], d = a(p, E), b = f.get(d), b === void 0) {
536
+ var N = u ? (
537
+ /** @type {TemplateNode} */
538
+ u.e.nodes_start
539
+ ) : t;
540
+ _ = Fr(
541
+ N,
542
+ r,
543
+ _,
544
+ _ === null ? r.first : _.next,
545
+ p,
546
+ d,
547
+ E,
548
+ n,
549
+ i
550
+ ), f.set(d, _), g = [], w = [], u = _.next;
551
+ continue;
552
+ }
553
+ if (c && en(b, p, E, i), b.e.f & Se && (le(b.e), s && ((Ve = b.a) == null || Ve.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(b))), b !== u) {
554
+ if (v !== void 0 && v.has(b)) {
555
+ if (g.length < w.length) {
556
+ var A = w[0], m;
557
+ _ = A.prev;
558
+ var P = g[0], W = g[g.length - 1];
559
+ for (m = 0; m < g.length; m += 1)
560
+ ur(g[m], A, t);
561
+ for (m = 0; m < w.length; m += 1)
562
+ v.delete(w[m]);
563
+ z(r, P.prev, W.next), z(r, _, P), z(r, W, A), u = A, _ = W, E -= 1, g = [], w = [];
564
+ } else
565
+ v.delete(b), ur(b, u, t), z(r, b.prev, b.next), z(r, b, _ === null ? r.first : _.next), z(r, _, b), _ = b;
566
+ continue;
567
+ }
568
+ for (g = [], w = []; u !== null && u.k !== d; )
569
+ u.e.f & Se || (v ?? (v = /* @__PURE__ */ new Set())).add(u), w.push(u), u = u.next;
570
+ if (u === null)
571
+ continue;
572
+ b = u;
573
+ }
574
+ g.push(b), _ = b, u = b.next;
575
+ }
576
+ if (u !== null || v !== void 0) {
577
+ for (var ie = v === void 0 ? [] : Tr(v); u !== null; )
578
+ u.e.f & Se || ie.push(u), u = u.next;
579
+ var xe = ie.length;
580
+ if (xe > 0) {
581
+ var Hr = i & Sr && l === 0 ? t : null;
582
+ if (s) {
583
+ for (E = 0; E < xe; E += 1)
584
+ (We = ie[E].a) == null || We.measure();
585
+ for (E = 0; E < xe; E += 1)
586
+ (Ge = ie[E].a) == null || Ge.fix();
587
+ }
588
+ Qt(r, ie, Hr, f);
589
+ }
590
+ }
591
+ s && U(() => {
592
+ var Je;
593
+ if (h !== void 0)
594
+ for (b of h)
595
+ (Je = b.a) == null || Je.apply();
596
+ }), K.first = r.first && r.first.e, K.last = _ && _.e;
597
+ }
598
+ function en(e, r, t, n) {
599
+ n & qe && je(e.v, r), n & ze ? je(
600
+ /** @type {Value<number>} */
601
+ e.i,
602
+ t
603
+ ) : e.i = t;
604
+ }
605
+ function Fr(e, r, t, n, i, a, s, c, l) {
606
+ var f = Q;
607
+ try {
608
+ var o = (l & qe) !== 0, u = (l & tt) === 0, v = o ? u ? Be(i) : R(i) : i, _ = l & ze ? R(s) : s, h = {
609
+ i: _,
610
+ v,
611
+ k: a,
612
+ a: null,
613
+ // @ts-expect-error
614
+ e: null,
615
+ prev: t,
616
+ next: n
617
+ };
618
+ return Q = h, h.e = D(() => c(e, v, _), y), h.e.prev = t && t.e, h.e.next = n && n.e, t === null ? r.first = h : (t.next = h, t.e.next = h.e), n !== null && (n.prev = h, n.e.prev = h.e), h;
619
+ } finally {
620
+ Q = f;
621
+ }
622
+ }
623
+ function ur(e, r, t) {
624
+ for (var n = e.next ? (
625
+ /** @type {TemplateNode} */
626
+ e.next.e.nodes_start
627
+ ) : t, i = r ? (
628
+ /** @type {TemplateNode} */
629
+ r.e.nodes_start
630
+ ) : t, a = (
631
+ /** @type {TemplateNode} */
632
+ e.e.nodes_start
633
+ ); a !== n; ) {
634
+ var s = (
635
+ /** @type {TemplateNode} */
636
+ Or(a)
637
+ );
638
+ i.before(a), a = s;
639
+ }
640
+ }
641
+ function z(e, r, t) {
642
+ r === null ? e.first = t : (r.next = t, r.e.next = t && t.e), t !== null && (t.prev = r, t.e.prev = r && r.e);
643
+ }
644
+ function Mn(e, r, t, n, i) {
645
+ var a = e, s = "", c;
646
+ j(() => {
647
+ if (s === (s = r() ?? "")) {
648
+ y && M();
649
+ return;
650
+ }
651
+ c !== void 0 && (me(c), c = void 0), s !== "" && (c = D(() => {
652
+ if (y) {
653
+ S.data;
654
+ for (var l = M(), f = l; l !== null && (l.nodeType !== 8 || /** @type {Comment} */
655
+ l.data !== ""); )
656
+ f = l, l = /** @type {TemplateNode} */
657
+ Or(l);
658
+ if (l === null)
659
+ throw st(), ft;
660
+ Pe(S, f), a = Y(l);
661
+ return;
662
+ }
663
+ var o = s + "";
664
+ t ? o = `<svg>${o}</svg>` : n && (o = `<math>${o}</math>`);
665
+ var u = ut(o);
666
+ if ((t || n) && (u = /** @type {Element} */
667
+ $(u)), Pe(
668
+ /** @type {TemplateNode} */
669
+ $(u),
670
+ /** @type {TemplateNode} */
671
+ u.lastChild
672
+ ), t || n)
673
+ for (; $(u); )
674
+ a.before(
675
+ /** @type {Node} */
676
+ $(u)
677
+ );
678
+ else
679
+ a.before(u);
680
+ }));
681
+ });
682
+ }
683
+ function Fn(e, r, t, n, i) {
684
+ var c;
685
+ y && M();
686
+ var a = (c = r.$$slots) == null ? void 0 : c[t], s = !1;
687
+ a === !0 && (a = r[t === "default" ? "children" : t], s = !0), a === void 0 ? i !== null && i(e) : a(e, s ? () => n : n);
688
+ }
689
+ function qn(e) {
690
+ const r = {};
691
+ e.children && (r.default = !0);
692
+ for (const t in e.$$slots)
693
+ r[t] = !0;
694
+ return r;
695
+ }
696
+ function zn(e, r, t) {
697
+ y && M();
698
+ var n = e, i, a;
699
+ j(() => {
700
+ i !== (i = r()) && (a && (ne(a), a = null), i && (a = D(() => t(n, i))));
701
+ }, de), y && (n = S);
702
+ }
703
+ function Bn(e, r, t, n, i, a) {
704
+ let s = y;
705
+ y && M();
706
+ var c, l, f = null;
707
+ y && S.nodeType === 1 && (f = /** @type {Element} */
708
+ S, M());
709
+ var o = (
710
+ /** @type {TemplateNode} */
711
+ y ? S : e
712
+ ), u, v = Q;
713
+ j(() => {
714
+ const _ = r() || null;
715
+ var h = i ? i() : t || _ === "svg" ? ot : null;
716
+ if (_ !== c) {
717
+ var g = Q;
718
+ fr(v), u && (_ === null ? ne(u, () => {
719
+ u = null, l = null;
720
+ }) : _ === l ? le(u) : (me(u), ge(!1))), _ && _ !== l && (u = D(() => {
721
+ if (f = y ? (
722
+ /** @type {Element} */
723
+ f
724
+ ) : h ? document.createElementNS(h, _) : document.createElement(_), Pe(f, f), n) {
725
+ var w = (
726
+ /** @type {TemplateNode} */
727
+ y ? $(f) : f.appendChild(xr())
728
+ );
729
+ y && (w === null ? Z(!1) : Y(w)), n(f, w);
730
+ }
731
+ K.nodes_end = f, o.before(f);
732
+ })), c = _, c && (l = c), ge(!0), fr(g);
733
+ }
734
+ }, de), s && (Z(!0), Y(o));
735
+ }
736
+ function $n(e, r) {
737
+ U(() => {
738
+ var t = e.getRootNode(), n = (
739
+ /** @type {ShadowRoot} */
740
+ t.host ? (
741
+ /** @type {ShadowRoot} */
742
+ t
743
+ ) : (
744
+ /** @type {Document} */
745
+ t.head ?? /** @type {Document} */
746
+ t.ownerDocument.head
747
+ )
748
+ );
749
+ if (!n.querySelector("#" + r.hash)) {
750
+ const i = document.createElement("style");
751
+ i.id = r.hash, i.textContent = r.code, n.appendChild(i);
752
+ }
753
+ });
754
+ }
755
+ function rn(e, r) {
756
+ if (r) {
757
+ const t = document.body;
758
+ e.autofocus = !0, U(() => {
759
+ document.activeElement === t && e.focus();
760
+ });
761
+ }
762
+ }
763
+ function Hn(e) {
764
+ y && $(e) !== null && kr(e);
765
+ }
766
+ let or = !1;
767
+ function qr() {
768
+ or || (or = !0, document.addEventListener(
769
+ "reset",
770
+ (e) => {
771
+ Promise.resolve().then(() => {
772
+ var r;
773
+ if (!e.defaultPrevented)
774
+ for (
775
+ const t of
776
+ /**@type {HTMLFormElement} */
777
+ e.target.elements
778
+ )
779
+ (r = t.__on_r) == null || r.call(t);
780
+ });
781
+ },
782
+ // In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
783
+ { capture: !0 }
784
+ ));
785
+ }
786
+ function Yn(e) {
787
+ if (y) {
788
+ var r = !1, t = () => {
789
+ if (!r) {
790
+ if (r = !0, e.hasAttribute("value")) {
791
+ var n = e.value;
792
+ we(e, "value", null), e.value = n;
793
+ }
794
+ if (e.hasAttribute("checked")) {
795
+ var i = e.checked;
796
+ we(e, "checked", null), e.checked = i;
797
+ }
798
+ }
799
+ };
800
+ e.__on_r = t, lt(t), qr();
801
+ }
802
+ }
803
+ function Kn(e, r) {
804
+ var t = e.__attributes ?? (e.__attributes = {});
805
+ t.value === (t.value = r) || e.value === r || (e.value = r);
806
+ }
807
+ function Un(e, r) {
808
+ var t = e.__attributes ?? (e.__attributes = {});
809
+ t.checked !== (t.checked = r) && (e.checked = r);
810
+ }
811
+ function we(e, r, t, n) {
812
+ var i = e.__attributes ?? (e.__attributes = {});
813
+ y && (i[r] = e.getAttribute(r), r === "src" || r === "srcset" || r === "href" && e.nodeName === "LINK") || i[r] !== (i[r] = t) && (r === "loading" && (e[Ce] = t), t == null ? e.removeAttribute(r) : typeof t != "string" && He(e).includes(r) ? e[r] = t : e.setAttribute(r, t));
814
+ }
815
+ function Vn(e, r, t) {
816
+ e.setAttributeNS("http://www.w3.org/1999/xlink", r, t);
817
+ }
818
+ function Wn(e, r, t) {
819
+ He(e).includes(r) ? e[r] = t : we(e, r, t);
820
+ }
821
+ function Gn(e, r, t, n, i = !1, a = !1, s = !1) {
822
+ var c = r || {}, l = e.tagName === "OPTION";
823
+ for (var f in r)
824
+ f in t || (t[f] = null);
825
+ n !== void 0 && (t.class = t.class ? t.class + " " + n : n);
826
+ var o = He(e), u = (
827
+ /** @type {Record<string, unknown>} **/
828
+ e.__attributes ?? (e.__attributes = {})
829
+ ), v = [];
830
+ for (const p in t) {
831
+ let d = t[p];
832
+ if (l && p === "value" && d == null) {
833
+ e.value = e.__value = "", c[p] = d;
834
+ continue;
835
+ }
836
+ var _ = c[p];
837
+ if (d !== _) {
838
+ c[p] = d;
839
+ var h = p[0] + p[1];
840
+ if (h !== "$$")
841
+ if (h === "on") {
842
+ const b = {}, E = "$$" + p;
843
+ let N = p.slice(2);
844
+ var g = dt(N);
845
+ if (ct(N) && (N = N.slice(0, -7), b.capture = !0), !g && _) {
846
+ if (d != null) continue;
847
+ e.removeEventListener(N, c[E], b), c[E] = null;
848
+ }
849
+ if (d != null)
850
+ if (g)
851
+ e[`__${N}`] = d, vt([N]);
852
+ else {
853
+ let A = function(m) {
854
+ c[p].call(this, m);
855
+ };
856
+ r ? c[E] = er(N, e, A, b) : v.push([
857
+ p,
858
+ d,
859
+ () => c[E] = er(N, e, A, b)
860
+ ]);
861
+ }
862
+ } else if (p === "style" && d != null)
863
+ e.style.cssText = d + "";
864
+ else if (p === "autofocus")
865
+ rn(
866
+ /** @type {HTMLElement} */
867
+ e,
868
+ !!d
869
+ );
870
+ else if (p === "__value" || p === "value" && d != null)
871
+ e.value = e[p] = e.__value = d;
872
+ else {
873
+ var w = p;
874
+ i || (w = _t(w)), d == null && !a ? (u[p] = null, e.removeAttribute(p)) : o.includes(w) && (a || typeof d != "string") ? e[w] = d : typeof d != "function" && (y && (w === "src" || w === "href" || w === "srcset") || we(e, w, d));
875
+ }
876
+ }
877
+ }
878
+ return r || U(() => {
879
+ if (e.isConnected)
880
+ for (const [p, d, b] of v)
881
+ c[p] === d && b();
882
+ }), c;
883
+ }
884
+ var lr = /* @__PURE__ */ new Map();
885
+ function He(e) {
886
+ var r = lr.get(e.nodeName);
887
+ if (r) return r;
888
+ lr.set(e.nodeName, r = []);
889
+ for (var t, n = oe(e), i = Element.prototype; i !== n; ) {
890
+ t = ht(n);
891
+ for (var a in t)
892
+ t[a].set && r.push(a);
893
+ n = oe(n);
894
+ }
895
+ return r;
896
+ }
897
+ function Jn(e) {
898
+ if (!y && e.loading === "lazy") {
899
+ var r = e.src;
900
+ e[Ce] = null, e.loading = "eager", e.removeAttribute("src"), requestAnimationFrame(() => {
901
+ e[Ce] !== "eager" && (e.loading = "lazy"), e.src = r;
902
+ });
903
+ }
904
+ }
905
+ function Xn(e, r) {
906
+ var t = e.__className, n = Ye(r);
907
+ y && e.getAttribute("class") === n ? e.__className = n : (t !== n || y && e.getAttribute("class") !== n) && (n === "" ? e.removeAttribute("class") : e.setAttribute("class", n), e.__className = n);
908
+ }
909
+ function Zn(e, r) {
910
+ var t = e.__className, n = Ye(r);
911
+ y && e.getAttribute("class") === n ? e.__className = n : (t !== n || y && e.getAttribute("class") !== n) && (n === "" ? e.removeAttribute("class") : e.setAttribute("class", n), e.__className = n);
912
+ }
913
+ function Qn(e, r) {
914
+ var t = e.__className, n = Ye(r);
915
+ y && e.className === n ? e.__className = n : (t !== n || y && e.className !== n) && (r == null ? e.removeAttribute("class") : e.className = n, e.__className = n);
916
+ }
917
+ function Ye(e) {
918
+ return e ?? "";
919
+ }
920
+ function jn(e, r, t) {
921
+ if (t) {
922
+ if (e.classList.contains(r)) return;
923
+ e.classList.add(r);
924
+ } else {
925
+ if (!e.classList.contains(r)) return;
926
+ e.classList.remove(r);
927
+ }
928
+ }
929
+ function ei(e, r, t, n, i) {
930
+ var a = e.__attributes ?? (e.__attributes = {}), s = e.style, c = "style-" + r;
931
+ a[c] === t && (!i || s.getPropertyValue(r) === t) || (a[c] = t, t == null ? s.removeProperty(r) : s.setProperty(r, t, n ? "important" : ""));
932
+ }
933
+ const tn = requestAnimationFrame, nn = () => performance.now(), H = {
934
+ tick: (
935
+ /** @param {any} _ */
936
+ (e) => tn(e)
937
+ ),
938
+ now: () => nn(),
939
+ tasks: /* @__PURE__ */ new Set()
940
+ };
941
+ function zr(e) {
942
+ H.tasks.forEach((r) => {
943
+ r.c(e) || (H.tasks.delete(r), r.f());
944
+ }), H.tasks.size !== 0 && H.tick(zr);
945
+ }
946
+ function an(e) {
947
+ let r;
948
+ return H.tasks.size === 0 && H.tick(zr), {
949
+ promise: new Promise((t) => {
950
+ H.tasks.add(r = { c: e, f: t });
951
+ }),
952
+ abort() {
953
+ H.tasks.delete(r);
954
+ }
955
+ };
956
+ }
957
+ function be(e, r) {
958
+ e.dispatchEvent(new CustomEvent(r));
959
+ }
960
+ function sn(e) {
961
+ if (e === "float") return "cssFloat";
962
+ if (e === "offset") return "cssOffset";
963
+ if (e.startsWith("--")) return e;
964
+ const r = e.split("-");
965
+ return r.length === 1 ? r[0] : r[0] + r.slice(1).map(
966
+ /** @param {any} word */
967
+ (t) => t[0].toUpperCase() + t.slice(1)
968
+ ).join("");
969
+ }
970
+ function cr(e) {
971
+ const r = {}, t = e.split(";");
972
+ for (const n of t) {
973
+ const [i, a] = n.split(":");
974
+ if (!i || a === void 0) break;
975
+ const s = sn(i.trim());
976
+ r[s] = a.trim();
977
+ }
978
+ return r;
979
+ }
980
+ const fn = (e) => e;
981
+ function ri(e, r, t) {
982
+ var n = (
983
+ /** @type {EachItem} */
984
+ Q
985
+ ), i, a, s, c = null;
986
+ n.a ?? (n.a = {
987
+ element: e,
988
+ measure() {
989
+ i = this.element.getBoundingClientRect();
990
+ },
991
+ apply() {
992
+ if (s == null || s.abort(), a = this.element.getBoundingClientRect(), i.left !== a.left || i.right !== a.right || i.top !== a.top || i.bottom !== a.bottom) {
993
+ const l = r()(this.element, { from: i, to: a }, t == null ? void 0 : t());
994
+ s = Ee(this.element, l, void 0, 1, () => {
995
+ s == null || s.abort(), s = void 0;
996
+ });
997
+ }
998
+ },
999
+ fix() {
1000
+ if (!e.getAnimations().length) {
1001
+ var { position: l, width: f, height: o } = getComputedStyle(e);
1002
+ if (l !== "absolute" && l !== "fixed") {
1003
+ var u = (
1004
+ /** @type {HTMLElement | SVGElement} */
1005
+ e.style
1006
+ );
1007
+ c = {
1008
+ position: u.position,
1009
+ width: u.width,
1010
+ height: u.height,
1011
+ transform: u.transform
1012
+ }, u.position = "absolute", u.width = f, u.height = o;
1013
+ var v = e.getBoundingClientRect();
1014
+ if (i.left !== v.left || i.top !== v.top) {
1015
+ var _ = `translate(${i.left - v.left}px, ${i.top - v.top}px)`;
1016
+ u.transform = u.transform ? `${u.transform} ${_}` : _;
1017
+ }
1018
+ }
1019
+ }
1020
+ },
1021
+ unfix() {
1022
+ if (c) {
1023
+ var l = (
1024
+ /** @type {HTMLElement | SVGElement} */
1025
+ e.style
1026
+ );
1027
+ l.position = c.position, l.width = c.width, l.height = c.height, l.transform = c.transform;
1028
+ }
1029
+ }
1030
+ }), n.a.element = e;
1031
+ }
1032
+ function ti(e, r, t, n) {
1033
+ var i = (e & yt) !== 0, a = (e & wt) !== 0, s = i && a, c = (e & Et) !== 0, l = s ? "both" : i ? "in" : "out", f, o = r.inert, u, v;
1034
+ function _() {
1035
+ var d = Rr, b = K;
1036
+ rr(null), ye(null);
1037
+ try {
1038
+ return f ?? (f = t()(r, (n == null ? void 0 : n()) ?? /** @type {P} */
1039
+ {}, {
1040
+ direction: l
1041
+ }));
1042
+ } finally {
1043
+ rr(d), ye(b);
1044
+ }
1045
+ }
1046
+ var h = {
1047
+ is_global: c,
1048
+ in() {
1049
+ var d;
1050
+ if (r.inert = o, !i) {
1051
+ v == null || v.abort(), (d = v == null ? void 0 : v.reset) == null || d.call(v);
1052
+ return;
1053
+ }
1054
+ a || u == null || u.abort(), be(r, "introstart"), u = Ee(r, _(), v, 1, () => {
1055
+ be(r, "introend"), u == null || u.abort(), u = f = void 0;
1056
+ });
1057
+ },
1058
+ out(d) {
1059
+ if (!a) {
1060
+ d == null || d(), f = void 0;
1061
+ return;
1062
+ }
1063
+ r.inert = !0, be(r, "outrostart"), v = Ee(r, _(), u, 0, () => {
1064
+ be(r, "outroend"), d == null || d();
1065
+ });
1066
+ },
1067
+ stop: () => {
1068
+ u == null || u.abort(), v == null || v.abort();
1069
+ }
1070
+ }, g = (
1071
+ /** @type {Effect} */
1072
+ K
1073
+ );
1074
+ if ((g.transitions ?? (g.transitions = [])).push(h), i && bt) {
1075
+ var w = c;
1076
+ if (!w) {
1077
+ for (var p = (
1078
+ /** @type {Effect | null} */
1079
+ g.parent
1080
+ ); p && p.f & de; )
1081
+ for (; (p = p.parent) && !(p.f & pt); )
1082
+ ;
1083
+ w = !p || (p.f & gt) !== 0;
1084
+ }
1085
+ w && F(() => {
1086
+ ee(() => h.in());
1087
+ });
1088
+ }
1089
+ }
1090
+ function Ee(e, r, t, n, i) {
1091
+ var a = n === 1;
1092
+ if (se(r)) {
1093
+ var s, c = !1;
1094
+ return U(() => {
1095
+ if (!c) {
1096
+ var w = r({ direction: a ? "in" : "out" });
1097
+ s = Ee(e, w, t, n, i);
1098
+ }
1099
+ }), {
1100
+ abort: () => {
1101
+ c = !0, s == null || s.abort();
1102
+ },
1103
+ deactivate: () => s.deactivate(),
1104
+ reset: () => s.reset(),
1105
+ t: () => s.t()
1106
+ };
1107
+ }
1108
+ if (t == null || t.deactivate(), !(r != null && r.duration))
1109
+ return i(), {
1110
+ abort: G,
1111
+ deactivate: G,
1112
+ reset: G,
1113
+ t: () => n
1114
+ };
1115
+ const { delay: l = 0, css: f, tick: o, easing: u = fn } = r;
1116
+ var v = [];
1117
+ if (a && t === void 0 && (o && o(0, 1), f)) {
1118
+ var _ = cr(f(0, 1));
1119
+ v.push(_, _);
1120
+ }
1121
+ var h = () => 1 - n, g = e.animate(v, { duration: l });
1122
+ return g.onfinish = () => {
1123
+ var w = (t == null ? void 0 : t.t()) ?? 1 - n;
1124
+ t == null || t.abort();
1125
+ var p = n - w, d = (
1126
+ /** @type {number} */
1127
+ r.duration * Math.abs(p)
1128
+ ), b = [];
1129
+ if (d > 0) {
1130
+ if (f)
1131
+ for (var E = Math.ceil(d / 16.666666666666668), N = 0; N <= E; N += 1) {
1132
+ var A = w + p * u(N / E), m = f(A, 1 - A);
1133
+ b.push(cr(m));
1134
+ }
1135
+ h = () => {
1136
+ var P = (
1137
+ /** @type {number} */
1138
+ /** @type {globalThis.Animation} */
1139
+ g.currentTime
1140
+ );
1141
+ return w + p * u(P / d);
1142
+ }, o && an(() => {
1143
+ if (g.playState !== "running") return !1;
1144
+ var P = h();
1145
+ return o(P, 1 - P), !0;
1146
+ });
1147
+ }
1148
+ g = e.animate(b, { duration: d, fill: "forwards" }), g.onfinish = () => {
1149
+ h = () => n, o == null || o(n, 1 - n), i();
1150
+ };
1151
+ }, {
1152
+ abort: () => {
1153
+ g && (g.cancel(), g.effect = null);
1154
+ },
1155
+ deactivate: () => {
1156
+ i = G;
1157
+ },
1158
+ reset: () => {
1159
+ n === 0 && (o == null || o(1, 0));
1160
+ },
1161
+ t: () => h()
1162
+ };
1163
+ }
1164
+ function O(e, r, t, n = !0) {
1165
+ n && t();
1166
+ for (var i of r)
1167
+ e.addEventListener(i, t);
1168
+ q(() => {
1169
+ for (var a of r)
1170
+ e.removeEventListener(a, t);
1171
+ });
1172
+ }
1173
+ function he(e, r, t, n = t) {
1174
+ e.addEventListener(r, t);
1175
+ const i = e.__on_r;
1176
+ i ? e.__on_r = () => {
1177
+ i(), n();
1178
+ } : e.__on_r = n, qr();
1179
+ }
1180
+ function ni(e) {
1181
+ O(document, ["focusin", "focusout"], (r) => {
1182
+ r && r.type === "focusout" && /** @type {FocusEvent} */
1183
+ r.relatedTarget || e(document.activeElement);
1184
+ });
1185
+ }
1186
+ function ii(e, r, t = r) {
1187
+ var n = At();
1188
+ he(e, "input", () => {
1189
+ var i = _r(e) ? dr(e.value) : e.value;
1190
+ t(i), n && i !== (i = r()) && (e.value = i ?? "");
1191
+ }), k(() => {
1192
+ var i = r();
1193
+ if (y && e.defaultValue !== e.value) {
1194
+ t(e.value);
1195
+ return;
1196
+ }
1197
+ _r(e) && i === dr(e.value) || e.type === "date" && !i && !e.value || i !== e.value && (e.value = i ?? "");
1198
+ });
1199
+ }
1200
+ const Re = /* @__PURE__ */ new Set();
1201
+ function ai(e, r, t, n, i = n) {
1202
+ var a = t.getAttribute("type") === "checkbox", s = e;
1203
+ let c = !1;
1204
+ if (r !== null)
1205
+ for (var l of r)
1206
+ s = s[l] ?? (s[l] = []);
1207
+ s.push(t), he(
1208
+ t,
1209
+ "change",
1210
+ () => {
1211
+ var f = t.__value;
1212
+ a && (f = vr(s, f, t.checked)), i(f);
1213
+ },
1214
+ // TODO better default value handling
1215
+ () => i(a ? [] : null)
1216
+ ), k(() => {
1217
+ var f = n();
1218
+ if (y && t.defaultChecked !== t.checked) {
1219
+ c = !0;
1220
+ return;
1221
+ }
1222
+ a ? (f = f || [], t.checked = V(f).includes(V(t.__value))) : t.checked = Lr(t.__value, f);
1223
+ }), q(() => {
1224
+ var f = s.indexOf(t);
1225
+ f !== -1 && s.splice(f, 1);
1226
+ }), Re.has(s) || (Re.add(s), U(() => {
1227
+ s.sort((f, o) => f.compareDocumentPosition(o) === 4 ? -1 : 1), Re.delete(s);
1228
+ })), U(() => {
1229
+ if (c) {
1230
+ var f;
1231
+ if (a)
1232
+ f = vr(s, f, t.checked);
1233
+ else {
1234
+ var o = s.find((u) => u.checked);
1235
+ f = o == null ? void 0 : o.__value;
1236
+ }
1237
+ i(f);
1238
+ }
1239
+ });
1240
+ }
1241
+ function si(e, r, t = r) {
1242
+ he(e, "change", () => {
1243
+ var n = e.checked;
1244
+ t(n);
1245
+ }), r() == null && t(!1), k(() => {
1246
+ var n = r();
1247
+ e.checked = !!n;
1248
+ });
1249
+ }
1250
+ function vr(e, r, t) {
1251
+ for (var n = /* @__PURE__ */ new Set(), i = 0; i < e.length; i += 1)
1252
+ e[i].checked && n.add(e[i].__value);
1253
+ return t || n.delete(r), Array.from(n);
1254
+ }
1255
+ function _r(e) {
1256
+ var r = e.type;
1257
+ return r === "number" || r === "range";
1258
+ }
1259
+ function dr(e) {
1260
+ return e === "" ? null : +e;
1261
+ }
1262
+ function fi(e, r, t = r) {
1263
+ he(e, "change", () => {
1264
+ t(e.files);
1265
+ }), k(() => {
1266
+ e.files = r();
1267
+ });
1268
+ }
1269
+ function Ke(e) {
1270
+ for (var r = [], t = 0; t < e.length; t += 1)
1271
+ r.push({ start: e.start(t), end: e.end(t) });
1272
+ return r;
1273
+ }
1274
+ function ui(e, r, t = r) {
1275
+ var n, i, a = () => {
1276
+ cancelAnimationFrame(n), e.paused || (n = requestAnimationFrame(a));
1277
+ var s = e.currentTime;
1278
+ i !== s && t(i = s);
1279
+ };
1280
+ n = requestAnimationFrame(a), e.addEventListener("timeupdate", a), k(() => {
1281
+ var s = Number(r());
1282
+ i !== s && !isNaN(
1283
+ /** @type {any} */
1284
+ s
1285
+ ) && (e.currentTime = i = s);
1286
+ }), q(() => cancelAnimationFrame(n));
1287
+ }
1288
+ function oi(e, r) {
1289
+ O(e, ["loadedmetadata", "progress"], () => r(Ke(e.buffered)));
1290
+ }
1291
+ function li(e, r) {
1292
+ O(e, ["loadedmetadata"], () => r(Ke(e.seekable)));
1293
+ }
1294
+ function ci(e, r) {
1295
+ O(e, ["timeupdate"], () => r(Ke(e.played)));
1296
+ }
1297
+ function vi(e, r) {
1298
+ O(e, ["seeking", "seeked"], () => r(e.seeking));
1299
+ }
1300
+ function _i(e, r) {
1301
+ O(e, ["timeupdate", "ended"], () => r(e.ended));
1302
+ }
1303
+ function di(e, r) {
1304
+ O(
1305
+ e,
1306
+ ["loadedmetadata", "loadeddata", "canplay", "canplaythrough", "playing", "waiting", "emptied"],
1307
+ () => r(e.readyState)
1308
+ );
1309
+ }
1310
+ function hi(e, r, t = r) {
1311
+ F(() => {
1312
+ var n = Number(r());
1313
+ n !== e.playbackRate && !isNaN(n) && (e.playbackRate = n);
1314
+ }), F(() => {
1315
+ O(e, ["ratechange"], () => {
1316
+ t(e.playbackRate);
1317
+ });
1318
+ });
1319
+ }
1320
+ function bi(e, r, t = r) {
1321
+ var n = r(), i = () => {
1322
+ n !== e.paused && t(n = e.paused);
1323
+ };
1324
+ O(e, ["play", "pause", "canplay"], i, n == null), F(() => {
1325
+ (n = !!r()) !== e.paused && (n ? e.pause() : e.play().catch(() => {
1326
+ t(n = !0);
1327
+ }));
1328
+ });
1329
+ }
1330
+ function pi(e, r, t = r) {
1331
+ var n = () => {
1332
+ t(e.volume);
1333
+ };
1334
+ r() == null && n(), O(e, ["volumechange"], n, !1), k(() => {
1335
+ var i = Number(r());
1336
+ i !== e.volume && !isNaN(i) && (e.volume = i);
1337
+ });
1338
+ }
1339
+ function gi(e, r, t = r) {
1340
+ var n = () => {
1341
+ t(e.muted);
1342
+ };
1343
+ r() == null && n(), O(e, ["volumechange"], n, !1), k(() => {
1344
+ var i = !!r();
1345
+ e.muted !== i && (e.muted = i);
1346
+ });
1347
+ }
1348
+ function yi(e) {
1349
+ O(window, ["online", "offline"], () => {
1350
+ e(navigator.onLine);
1351
+ });
1352
+ }
1353
+ function wi(e, r, t) {
1354
+ var n = X(e, r);
1355
+ n && n.set && (e[r] = t, q(() => {
1356
+ e[r] = null;
1357
+ }));
1358
+ }
1359
+ function Me(e, r, t) {
1360
+ if (e.multiple)
1361
+ return on(e, r);
1362
+ for (var n of e.options) {
1363
+ var i = ue(n);
1364
+ if (Lr(i, r)) {
1365
+ n.selected = !0;
1366
+ return;
1367
+ }
1368
+ }
1369
+ (!t || r !== void 0) && (e.selectedIndex = -1);
1370
+ }
1371
+ function un(e, r) {
1372
+ let t = !0;
1373
+ F(() => {
1374
+ r && Me(e, ee(r), t), t = !1;
1375
+ var n = new MutationObserver(() => {
1376
+ var i = e.__value;
1377
+ Me(e, i);
1378
+ });
1379
+ return n.observe(e, {
1380
+ // Listen to option element changes
1381
+ childList: !0,
1382
+ subtree: !0,
1383
+ // because of <optgroup>
1384
+ // Listen to option element value attribute changes
1385
+ // (doesn't get notified of select value changes,
1386
+ // because that property is not reflected as an attribute)
1387
+ attributes: !0,
1388
+ attributeFilter: ["value"]
1389
+ }), () => {
1390
+ n.disconnect();
1391
+ };
1392
+ });
1393
+ }
1394
+ function Ei(e, r, t = r) {
1395
+ var n = !0;
1396
+ he(e, "change", () => {
1397
+ var i;
1398
+ if (e.multiple)
1399
+ i = [].map.call(e.querySelectorAll(":checked"), ue);
1400
+ else {
1401
+ var a = e.querySelector(":checked");
1402
+ i = a && ue(a);
1403
+ }
1404
+ t(i);
1405
+ }), F(() => {
1406
+ var i = r();
1407
+ if (Me(e, i, n), n && i === void 0) {
1408
+ var a = e.querySelector(":checked");
1409
+ a !== null && (i = ue(a), t(i));
1410
+ }
1411
+ e.__value = i, n = !1;
1412
+ }), un(e);
1413
+ }
1414
+ function on(e, r) {
1415
+ for (var t of e.options)
1416
+ t.selected = ~r.indexOf(ue(t));
1417
+ }
1418
+ function ue(e) {
1419
+ return "__value" in e ? e.__value : e.value;
1420
+ }
1421
+ var B, te, ve, Ae, Br;
1422
+ const Ne = class Ne {
1423
+ /** @param {ResizeObserverOptions} options */
1424
+ constructor(r) {
1425
+ ae(this, Ae);
1426
+ /** */
1427
+ ae(this, B, /* @__PURE__ */ new WeakMap());
1428
+ /** @type {ResizeObserver | undefined} */
1429
+ ae(this, te);
1430
+ /** @type {ResizeObserverOptions} */
1431
+ ae(this, ve);
1432
+ ke(this, ve, r);
1433
+ }
1434
+ /**
1435
+ * @param {Element} element
1436
+ * @param {(entry: ResizeObserverEntry) => any} listener
1437
+ */
1438
+ observe(r, t) {
1439
+ var n = L(this, B).get(r) || /* @__PURE__ */ new Set();
1440
+ return n.add(t), L(this, B).set(r, n), Qe(this, Ae, Br).call(this).observe(r, L(this, ve)), () => {
1441
+ var i = L(this, B).get(r);
1442
+ i.delete(t), i.size === 0 && (L(this, B).delete(r), L(this, te).unobserve(r));
1443
+ };
1444
+ }
1445
+ };
1446
+ B = new WeakMap(), te = new WeakMap(), ve = new WeakMap(), Ae = new WeakSet(), Br = function() {
1447
+ return L(this, te) ?? ke(this, te, new ResizeObserver(
1448
+ /** @param {any} entries */
1449
+ (r) => {
1450
+ for (var t of r) {
1451
+ Ne.entries.set(t.target, t);
1452
+ for (var n of L(this, B).get(t.target) || [])
1453
+ n(t);
1454
+ }
1455
+ }
1456
+ ));
1457
+ }, /** @static */
1458
+ Ze(Ne, "entries", /* @__PURE__ */ new WeakMap());
1459
+ let ce = Ne;
1460
+ var ln = /* @__PURE__ */ new ce({
1461
+ box: "content-box"
1462
+ }), $r = /* @__PURE__ */ new ce({
1463
+ box: "border-box"
1464
+ }), cn = /* @__PURE__ */ new ce({
1465
+ box: "device-pixel-content-box"
1466
+ });
1467
+ function Ai(e, r, t) {
1468
+ var n = r === "contentRect" || r === "contentBoxSize" ? ln : r === "borderBoxSize" ? $r : cn, i = n.observe(
1469
+ e,
1470
+ /** @param {any} entry */
1471
+ (a) => t(a[r])
1472
+ );
1473
+ q(i);
1474
+ }
1475
+ function Ni(e, r, t) {
1476
+ var n = $r.observe(e, () => t(e[r]));
1477
+ F(() => (ee(() => t(e[r])), n));
1478
+ }
1479
+ function hr(e, r) {
1480
+ return e === r || (e == null ? void 0 : e[J]) === r;
1481
+ }
1482
+ function mi(e = {}, r, t, n) {
1483
+ return F(() => {
1484
+ var i, a;
1485
+ return k(() => {
1486
+ i = a, a = (n == null ? void 0 : n()) || [], ee(() => {
1487
+ e !== t(...a) && (r(e, ...a), i && hr(t(...i), e) && r(null, ...i));
1488
+ });
1489
+ }), () => {
1490
+ U(() => {
1491
+ a && hr(t(...a), e) && r(null, ...a);
1492
+ });
1493
+ };
1494
+ }), e;
1495
+ }
1496
+ function xi(e, r, t, n = t) {
1497
+ r.addEventListener("input", () => {
1498
+ n(r[e]);
1499
+ }), k(() => {
1500
+ var i = t();
1501
+ if (r[e] !== i)
1502
+ if (i == null) {
1503
+ var a = r[e];
1504
+ n(a);
1505
+ } else
1506
+ r[e] = i + "";
1507
+ });
1508
+ }
1509
+ function Ti(e, r, t, n, i) {
1510
+ var a = () => {
1511
+ n(t[e]);
1512
+ };
1513
+ t.addEventListener(r, a), i ? k(() => {
1514
+ t[e] = i();
1515
+ }) : a(), (t === document.body || t === window || t === document) && q(() => {
1516
+ t.removeEventListener(r, a);
1517
+ });
1518
+ }
1519
+ function ki(e, r) {
1520
+ O(e, ["focus", "blur"], () => {
1521
+ r(e === document.activeElement);
1522
+ });
1523
+ }
1524
+ function Si(e, r, t = r) {
1525
+ var n = e === "x", i = () => {
1526
+ a = !0, clearTimeout(s), s = setTimeout(c, 100), t(window[n ? "scrollX" : "scrollY"]);
1527
+ };
1528
+ addEventListener("scroll", i, {
1529
+ passive: !0
1530
+ });
1531
+ var a = !1, s, c = () => {
1532
+ a = !1;
1533
+ }, l = !0;
1534
+ k(() => {
1535
+ var f = r();
1536
+ l ? l = !1 : !a && f != null && (a = !0, clearTimeout(s), n ? scrollTo(f, window.scrollY) : scrollTo(window.scrollX, f), s = setTimeout(c, 100));
1537
+ }), F(i), q(() => {
1538
+ removeEventListener("scroll", i);
1539
+ });
1540
+ }
1541
+ function Oi(e, r) {
1542
+ O(window, ["resize"], () => r(window[e]));
1543
+ }
1544
+ function Ri(e) {
1545
+ return function(...r) {
1546
+ var t = (
1547
+ /** @type {Event} */
1548
+ r[0]
1549
+ );
1550
+ t.isTrusted && (e == null || e.apply(this, r));
1551
+ };
1552
+ }
1553
+ function Ii(e) {
1554
+ return function(...r) {
1555
+ var t = (
1556
+ /** @type {Event} */
1557
+ r[0]
1558
+ );
1559
+ t.target === this && (e == null || e.apply(this, r));
1560
+ };
1561
+ }
1562
+ function Pi(e) {
1563
+ return function(...r) {
1564
+ var t = (
1565
+ /** @type {Event} */
1566
+ r[0]
1567
+ );
1568
+ return t.stopPropagation(), e == null ? void 0 : e.apply(this, r);
1569
+ };
1570
+ }
1571
+ function Ci(e) {
1572
+ var r = !1;
1573
+ return function(...t) {
1574
+ if (!r)
1575
+ return r = !0, e == null ? void 0 : e.apply(this, t);
1576
+ };
1577
+ }
1578
+ function Li(e) {
1579
+ return function(...r) {
1580
+ var t = (
1581
+ /** @type {Event} */
1582
+ r[0]
1583
+ );
1584
+ return t.stopImmediatePropagation(), e == null ? void 0 : e.apply(this, r);
1585
+ };
1586
+ }
1587
+ function Di(e) {
1588
+ return function(...r) {
1589
+ var t = (
1590
+ /** @type {Event} */
1591
+ r[0]
1592
+ );
1593
+ return t.preventDefault(), e == null ? void 0 : e.apply(this, r);
1594
+ };
1595
+ }
1596
+ function Mi(e = !1) {
1597
+ const r = (
1598
+ /** @type {ComponentContextLegacy} */
1599
+ mr
1600
+ ), t = r.l.u;
1601
+ if (!t) return;
1602
+ let n = () => mt(r.s);
1603
+ if (e) {
1604
+ let i = 0, a = (
1605
+ /** @type {Record<string, any>} */
1606
+ {}
1607
+ );
1608
+ const s = Le(() => {
1609
+ let c = !1;
1610
+ const l = r.s;
1611
+ for (const f in l)
1612
+ l[f] !== a[f] && (a[f] = l[f], c = !0);
1613
+ return c && i++, i;
1614
+ });
1615
+ n = () => x(s);
1616
+ }
1617
+ t.b.length && yr(() => {
1618
+ br(r, n), nr(t.b);
1619
+ }), tr(() => {
1620
+ const i = ee(() => t.m.map(Nt));
1621
+ return () => {
1622
+ for (const a of i)
1623
+ typeof a == "function" && a();
1624
+ };
1625
+ }), t.a.length && tr(() => {
1626
+ br(r, n), nr(t.a);
1627
+ });
1628
+ }
1629
+ function br(e, r) {
1630
+ if (e.l.s)
1631
+ for (const t of e.l.s) x(t);
1632
+ r();
1633
+ }
1634
+ function Fi(e) {
1635
+ var r = R(0);
1636
+ return function() {
1637
+ return arguments.length === 1 ? (C(r, x(r) + 1), arguments[0]) : (x(r), e());
1638
+ };
1639
+ }
1640
+ function qi(e, r) {
1641
+ var a;
1642
+ var t = (
1643
+ /** @type {Record<string, Function[] | Function>} */
1644
+ (a = e.$$events) == null ? void 0 : a[r.type]
1645
+ ), n = _e(t) ? t.slice() : t == null ? [] : [t];
1646
+ for (var i of n)
1647
+ i.call(this, r);
1648
+ }
1649
+ function zi(e, r, t) {
1650
+ var n;
1651
+ e.$$events || (e.$$events = {}), (n = e.$$events)[r] || (n[r] = []), e.$$events[r].push(t);
1652
+ }
1653
+ function Bi(e) {
1654
+ for (var r in e)
1655
+ r in this && (this[r] = e[r]);
1656
+ }
1657
+ function $i(e, r = 1) {
1658
+ const t = e();
1659
+ return e(t + r), t;
1660
+ }
1661
+ function Hi(e, r = 1) {
1662
+ const t = e() + r;
1663
+ return e(t), t;
1664
+ }
1665
+ const vn = {
1666
+ get(e, r) {
1667
+ if (!e.exclude.includes(r))
1668
+ return e.props[r];
1669
+ },
1670
+ set(e, r) {
1671
+ return !1;
1672
+ },
1673
+ getOwnPropertyDescriptor(e, r) {
1674
+ if (!e.exclude.includes(r) && r in e.props)
1675
+ return {
1676
+ enumerable: !0,
1677
+ configurable: !0,
1678
+ value: e.props[r]
1679
+ };
1680
+ },
1681
+ has(e, r) {
1682
+ return e.exclude.includes(r) ? !1 : r in e.props;
1683
+ },
1684
+ ownKeys(e) {
1685
+ return Reflect.ownKeys(e.props).filter((r) => !e.exclude.includes(r));
1686
+ }
1687
+ };
1688
+ // @__NO_SIDE_EFFECTS__
1689
+ function Yi(e, r, t) {
1690
+ return new Proxy(
1691
+ { props: e, exclude: r },
1692
+ vn
1693
+ );
1694
+ }
1695
+ const _n = {
1696
+ get(e, r) {
1697
+ if (!e.exclude.includes(r))
1698
+ return x(e.version), r in e.special ? e.special[r]() : e.props[r];
1699
+ },
1700
+ set(e, r, t) {
1701
+ return r in e.special || (e.special[r] = hn(
1702
+ {
1703
+ get [r]() {
1704
+ return e.props[r];
1705
+ }
1706
+ },
1707
+ /** @type {string} */
1708
+ r,
1709
+ Ir
1710
+ )), e.special[r](t), ir(e.version), !0;
1711
+ },
1712
+ getOwnPropertyDescriptor(e, r) {
1713
+ if (!e.exclude.includes(r) && r in e.props)
1714
+ return {
1715
+ enumerable: !0,
1716
+ configurable: !0,
1717
+ value: e.props[r]
1718
+ };
1719
+ },
1720
+ deleteProperty(e, r) {
1721
+ return e.exclude.includes(r) || (e.exclude.push(r), ir(e.version)), !0;
1722
+ },
1723
+ has(e, r) {
1724
+ return e.exclude.includes(r) ? !1 : r in e.props;
1725
+ },
1726
+ ownKeys(e) {
1727
+ return Reflect.ownKeys(e.props).filter((r) => !e.exclude.includes(r));
1728
+ }
1729
+ };
1730
+ function Ki(e, r) {
1731
+ return new Proxy({ props: e, exclude: r, special: {}, version: R(0) }, _n);
1732
+ }
1733
+ const dn = {
1734
+ get(e, r) {
1735
+ let t = e.props.length;
1736
+ for (; t--; ) {
1737
+ let n = e.props[t];
1738
+ if (se(n) && (n = n()), typeof n == "object" && n !== null && r in n) return n[r];
1739
+ }
1740
+ },
1741
+ getOwnPropertyDescriptor(e, r) {
1742
+ let t = e.props.length;
1743
+ for (; t--; ) {
1744
+ let n = e.props[t];
1745
+ if (se(n) && (n = n()), typeof n == "object" && n !== null && r in n) {
1746
+ const i = X(n, r);
1747
+ return i && !i.configurable && (i.configurable = !0), i;
1748
+ }
1749
+ }
1750
+ },
1751
+ has(e, r) {
1752
+ for (let t of e.props)
1753
+ if (se(t) && (t = t()), t != null && r in t) return !0;
1754
+ return !1;
1755
+ },
1756
+ ownKeys(e) {
1757
+ const r = [];
1758
+ for (let t of e.props) {
1759
+ se(t) && (t = t());
1760
+ for (const n in t)
1761
+ r.includes(n) || r.push(n);
1762
+ }
1763
+ return r;
1764
+ }
1765
+ };
1766
+ function Ui(...e) {
1767
+ return new Proxy({ props: e }, dn);
1768
+ }
1769
+ function pr(e) {
1770
+ for (var r = K, t = K; r !== null && !(r.f & (Ot | Rt)); )
1771
+ r = r.parent;
1772
+ try {
1773
+ return ye(r), e();
1774
+ } finally {
1775
+ ye(t);
1776
+ }
1777
+ }
1778
+ function hn(e, r, t, n) {
1779
+ var N;
1780
+ var i = (t & It) !== 0, a = (t & Pt) !== 0, s = (t & Ct) !== 0, c = (t & Mt) !== 0, l = (
1781
+ /** @type {V} */
1782
+ e[r]
1783
+ ), f = (N = X(e, r)) == null ? void 0 : N.set, o = (
1784
+ /** @type {V} */
1785
+ n
1786
+ ), u = !0, v = !1, _ = () => (v = !0, u && (u = !1, c ? o = ee(
1787
+ /** @type {() => V} */
1788
+ n
1789
+ ) : o = /** @type {V} */
1790
+ n), o);
1791
+ l === void 0 && n !== void 0 && (f && a && xt(), l = _(), f && f(l));
1792
+ var h;
1793
+ if (a)
1794
+ h = () => {
1795
+ var A = (
1796
+ /** @type {V} */
1797
+ e[r]
1798
+ );
1799
+ return A === void 0 ? _() : (u = !0, v = !1, A);
1800
+ };
1801
+ else {
1802
+ var g = pr(
1803
+ () => (i ? Le : Lt)(() => (
1804
+ /** @type {V} */
1805
+ e[r]
1806
+ ))
1807
+ );
1808
+ g.f |= Tt, h = () => {
1809
+ var A = x(g);
1810
+ return A !== void 0 && (o = /** @type {V} */
1811
+ void 0), A === void 0 ? o : A;
1812
+ };
1813
+ }
1814
+ if (!(t & Ir))
1815
+ return h;
1816
+ if (f) {
1817
+ var w = e.$$legacy;
1818
+ return function(A, m) {
1819
+ return arguments.length > 0 ? ((!a || !m || w) && f(m ? h() : A), A) : h();
1820
+ };
1821
+ }
1822
+ var p = !1, d = !1, b = Be(l), E = pr(
1823
+ () => Le(() => {
1824
+ var A = h(), m = x(b), P = (
1825
+ /** @type {Derived} */
1826
+ Rr
1827
+ );
1828
+ return p || A === void 0 && P.f & Dt ? (p = !1, d = !0, m) : (d = !1, b.v = A);
1829
+ })
1830
+ );
1831
+ return i || (E.equals = kt), function(A, m) {
1832
+ var P = x(E);
1833
+ if (St && (p = d, h(), x(b)), arguments.length > 0) {
1834
+ const W = m ? x(E) : a && s ? re(A) : A;
1835
+ return E.equals(W) || (p = !0, C(b, W), v && o !== void 0 && (o = W), x(E)), A;
1836
+ }
1837
+ return P;
1838
+ };
1839
+ }
1840
+ function Vi(e, r, t) {
1841
+ const n = t[r] ?? (t[r] = {
1842
+ store: null,
1843
+ source: Be(void 0),
1844
+ unsubscribe: G
1845
+ });
1846
+ if (n.store !== e)
1847
+ if (n.unsubscribe(), n.store = e ?? null, e == null)
1848
+ n.source.v = void 0, n.unsubscribe = G;
1849
+ else {
1850
+ var i = !0;
1851
+ n.unsubscribe = Ft(e, (a) => {
1852
+ i ? n.source.v = a : C(n.source, a);
1853
+ }), i = !1;
1854
+ }
1855
+ return x(n.source);
1856
+ }
1857
+ function Wi(e, r, t) {
1858
+ let n = t[r];
1859
+ return n && n.store !== e && (n.unsubscribe(), n.unsubscribe = G), e;
1860
+ }
1861
+ function bn(e, r) {
1862
+ return e.set(r), r;
1863
+ }
1864
+ function Gi(e, r) {
1865
+ var t = e[r];
1866
+ t.store !== null && bn(t.store, t.source.v);
1867
+ }
1868
+ function Ji() {
1869
+ const e = {};
1870
+ return q(() => {
1871
+ for (var r in e)
1872
+ e[r].unsubscribe();
1873
+ }), e;
1874
+ }
1875
+ function Xi(e, r, t) {
1876
+ return e.set(t), r;
1877
+ }
1878
+ function Zi(e, r, t = 1) {
1879
+ return e.set(r + t), r;
1880
+ }
1881
+ function Qi(e, r, t = 1) {
1882
+ const n = r + t;
1883
+ return e.set(n), n;
1884
+ }
1885
+ function ji(e, r) {
1886
+ k(() => {
1887
+ const t = /* @__PURE__ */ new Map(), n = e(), i = _e(n) ? n : n == null ? [] : Array.from(n), a = i.length;
1888
+ for (let s = 0; s < a; s++) {
1889
+ const c = r(i[s], s);
1890
+ if (t.has(c)) {
1891
+ String(t.get(c));
1892
+ let l = String(i[s]);
1893
+ l.startsWith("[object ") && (l = null), qt();
1894
+ }
1895
+ t.set(c, s);
1896
+ }
1897
+ });
1898
+ }
1899
+ function ea(e, r, t, n) {
1900
+ var a;
1901
+ for (const s in e) {
1902
+ var i = (a = X(e, s)) == null ? void 0 : a.set;
1903
+ n.name, i && (t.includes(s) && zt(n[I]), r.includes(s) || Bt(s, n[I]));
1904
+ }
1905
+ }
1906
+ function ra(e, r, t, n, i) {
1907
+ var s;
1908
+ var a = !1;
1909
+ (s = wr) == null || s[I], k(() => {
1910
+ if (!a) {
1911
+ var c = r(), l = t(), f = !1, o = k(() => {
1912
+ f || c[l];
1913
+ });
1914
+ f = !0, o.deps === null && ($t(), a = !0);
1915
+ }
1916
+ });
1917
+ }
1918
+ function ta(e) {
1919
+ const r = e();
1920
+ r && Ht(r) && Zt();
1921
+ }
1922
+ function na(e) {
1923
+ const r = e();
1924
+ r && !(typeof r == "string") && Yt();
1925
+ }
1926
+ function ia(e, r) {
1927
+ e != null && typeof e.subscribe != "function" && Kt();
1928
+ }
1929
+ function aa(e, ...r) {
1930
+ return ee(() => {
1931
+ try {
1932
+ let t = !1;
1933
+ const n = [];
1934
+ for (const i of r)
1935
+ i && typeof i == "object" && J in i ? (n.push(Mr(i, !0)), t = !0) : n.push(i);
1936
+ t && (Ut(e), console.log("%c[snapshot]", "color: grey", ...n));
1937
+ } catch {
1938
+ }
1939
+ }), r;
1940
+ }
1941
+ export {
1942
+ Oe as ADD_OWNER,
1943
+ I as FILENAME,
1944
+ Xr as HMR,
1945
+ ot as NAMESPACE_SVG,
1946
+ ua as action,
1947
+ zi as add_legacy_event_listener,
1948
+ Tn as add_locations,
1949
+ Jt as add_owner,
1950
+ An as add_owner_effect,
1951
+ ri as animation,
1952
+ oa as append,
1953
+ $n as append_styles,
1954
+ la as apply,
1955
+ rn as autofocus,
1956
+ ca as await,
1957
+ ni as bind_active_element,
1958
+ oi as bind_buffered,
1959
+ si as bind_checked,
1960
+ xi as bind_content_editable,
1961
+ ui as bind_current_time,
1962
+ Ni as bind_element_size,
1963
+ _i as bind_ended,
1964
+ fi as bind_files,
1965
+ ki as bind_focused,
1966
+ ai as bind_group,
1967
+ gi as bind_muted,
1968
+ yi as bind_online,
1969
+ bi as bind_paused,
1970
+ hi as bind_playback_rate,
1971
+ ci as bind_played,
1972
+ wi as bind_prop,
1973
+ Ti as bind_property,
1974
+ di as bind_ready_state,
1975
+ Ai as bind_resize_observer,
1976
+ li as bind_seekable,
1977
+ vi as bind_seeking,
1978
+ Ei as bind_select_value,
1979
+ mi as bind_this,
1980
+ ii as bind_value,
1981
+ pi as bind_volume,
1982
+ Si as bind_window_scroll,
1983
+ Oi as bind_window_size,
1984
+ qi as bubble_event,
1985
+ Sn as check_target,
1986
+ va as child,
1987
+ yn as cleanup_styles,
1988
+ _a as comment,
1989
+ zn as component,
1990
+ da as create_custom_element,
1991
+ Cn as css_props,
1992
+ ha as deep_read,
1993
+ mt as deep_read_state,
1994
+ vt as delegate,
1995
+ Le as derived,
1996
+ Lt as derived_safe_equal,
1997
+ ba as document,
1998
+ Dn as each,
1999
+ F as effect,
2000
+ pa as effect_root,
2001
+ ga as effect_tracking,
2002
+ Bn as element,
2003
+ xn as equals,
2004
+ ya as event,
2005
+ wa as exclude_from_object,
2006
+ Ea as fallback,
2007
+ Aa as first_child,
2008
+ Na as flush_sync,
2009
+ x as get,
2010
+ ma as getAllContexts,
2011
+ xa as getContext,
2012
+ Jn as handle_lazy_img,
2013
+ Ta as hasContext,
2014
+ ka as head,
2015
+ kn as hmr,
2016
+ Mn as html,
2017
+ Sa as hydrate_template,
2018
+ In as if,
2019
+ Ln as index,
2020
+ Mi as init,
2021
+ un as init_select,
2022
+ Rn as inspect,
2023
+ Oa as invalid_default_snippet,
2024
+ Ra as invalidate_inner_signals,
2025
+ Gi as invalidate_store,
2026
+ Pn as key,
2027
+ On as legacy_api,
2028
+ Ia as legacy_pre_effect,
2029
+ Pa as legacy_pre_effect_reset,
2030
+ Ki as legacy_rest_props,
2031
+ aa as log_if_contains_state,
2032
+ En as mark_module_end,
2033
+ wn as mark_module_start,
2034
+ Ca as mathml_template,
2035
+ La as mutable_state,
2036
+ Da as mutate,
2037
+ Ma as next,
2038
+ G as noop,
2039
+ Fa as ns_template,
2040
+ Ci as once,
2041
+ qa as pop,
2042
+ Di as preventDefault,
2043
+ hn as prop,
2044
+ re as proxy,
2045
+ za as push,
2046
+ H as raf,
2047
+ Fi as reactive_import,
2048
+ Yn as remove_input_defaults,
2049
+ Hn as remove_textarea_child,
2050
+ k as render_effect,
2051
+ Ba as replay_events,
2052
+ $a as reset,
2053
+ Yi as rest_props,
2054
+ Ha as safe_get,
2055
+ qn as sanitize_slots,
2056
+ Me as select_option,
2057
+ Ii as self,
2058
+ C as set,
2059
+ Ya as setContext,
2060
+ we as set_attribute,
2061
+ Gn as set_attributes,
2062
+ Un as set_checked,
2063
+ Qn as set_class,
2064
+ Wn as set_custom_element_data,
2065
+ Zn as set_mathml_class,
2066
+ ei as set_style,
2067
+ Xn as set_svg_class,
2068
+ Ka as set_text,
2069
+ Kn as set_value,
2070
+ Vn as set_xlink_attribute,
2071
+ Ji as setup_stores,
2072
+ Ua as sibling,
2073
+ Nn as skip_ownership_validation,
2074
+ Fn as slot,
2075
+ Mr as snapshot,
2076
+ ts as snippet,
2077
+ Ui as spread_props,
2078
+ Va as state,
2079
+ Li as stopImmediatePropagation,
2080
+ Pi as stopPropagation,
2081
+ Vi as store_get,
2082
+ Xi as store_mutate,
2083
+ bn as store_set,
2084
+ Wi as store_unsub,
2085
+ mn as strict_equals,
2086
+ Wa as svg_template_with_script,
2087
+ Ga as template,
2088
+ Ja as template_effect,
2089
+ Xa as template_with_script,
2090
+ Za as text,
2091
+ Qa as tick,
2092
+ jn as toggle_class,
2093
+ ti as transition,
2094
+ Ri as trusted,
2095
+ ee as untrack,
2096
+ ir as update,
2097
+ Bi as update_legacy_props,
2098
+ ja as update_pre,
2099
+ Hi as update_pre_prop,
2100
+ Qi as update_pre_store,
2101
+ $i as update_prop,
2102
+ Zi as update_store,
2103
+ tr as user_effect,
2104
+ yr as user_pre_effect,
2105
+ ra as validate_binding,
2106
+ na as validate_dynamic_element_tag,
2107
+ ji as validate_each_keys,
2108
+ ea as validate_prop_bindings,
2109
+ ia as validate_store,
2110
+ ta as validate_void_dynamic_element,
2111
+ es as window,
2112
+ ns as wrap_snippet
2113
+ };