@nil-/xit 0.4.18 → 0.4.20

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