@nil-/xit 0.2.3 → 0.2.4

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