@hintergrund/ui 0.1.1 → 0.1.2

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,25 +1,28 @@
1
1
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
2
- const at = 1, ft = 2, fn = 4, ir = 8, ar = 16, fr = 1, lr = 2, ur = 4, or = 8, cr = 16, Ns = 4, hr = 1, dr = 2, ln = "[", lt = "[!", Dt = "]", Re = {}, N = Symbol(), _r = "http://www.w3.org/1999/xhtml", un = !1;
3
- var ut = Array.isArray, vr = Array.prototype.indexOf, Ft = Array.from, tt = Object.keys, Ie = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, pr = Object.getOwnPropertyDescriptors, mr = Object.prototype, gr = Array.prototype, on = Object.getPrototypeOf, zt = Object.isExtensible;
2
+ const ft = 1, at = 2, un = 4, ur = 8, or = 16, cr = 1, hr = 2, dr = 4, _r = 8, vr = 16, Os = 4, pr = 1, mr = 2, on = "[", lt = "[!", jt = "]", Re = {}, N = Symbol(), gr = "http://www.w3.org/1999/xhtml", cn = !1;
3
+ var ut = Array.isArray, yr = Array.prototype.indexOf, qt = Array.from, tt = Object.keys, Ie = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, hn = Object.getOwnPropertyDescriptors, wr = Object.prototype, $r = Array.prototype, Bt = Object.getPrototypeOf, Xt = Object.isExtensible;
4
4
  function Cs(e) {
5
5
  return typeof e == "function";
6
6
  }
7
- const Os = () => {
7
+ const Rs = () => {
8
8
  };
9
- function Rs(e) {
9
+ function Is(e) {
10
10
  return typeof e?.then == "function";
11
11
  }
12
- function $r(e) {
12
+ function Ps(e) {
13
+ return e();
14
+ }
15
+ function br(e) {
13
16
  for (var t = 0; t < e.length; t++)
14
17
  e[t]();
15
18
  }
16
- function cn() {
19
+ function dn() {
17
20
  var e, t, n = new Promise((r, s) => {
18
21
  e = r, t = s;
19
22
  });
20
23
  return { promise: n, resolve: e, reject: t };
21
24
  }
22
- function Is(e, t) {
25
+ function Ms(e, t) {
23
26
  if (Array.isArray(e))
24
27
  return e;
25
28
  if (!(Symbol.iterator in e))
@@ -29,53 +32,53 @@ function Is(e, t) {
29
32
  if (n.push(r), n.length === t) break;
30
33
  return n;
31
34
  }
32
- const F = 2, qt = 4, jt = 8, Ee = 16, ue = 32, _e = 64, ot = 128, W = 256, nt = 512, P = 1024, U = 2048, ve = 4096, H = 8192, fe = 16384, Bt = 32768, ct = 65536, Jt = 1 << 17, wr = 1 << 18, Se = 1 << 19, br = 1 << 20, At = 1 << 21, Ht = 1 << 22, $e = 1 << 23, Ne = Symbol("$state"), hn = Symbol("legacy props"), yr = Symbol(""), Ae = new class extends Error {
35
+ const F = 2, Ht = 4, ot = 8, Se = 16, ue = 32, ve = 64, ct = 128, W = 256, nt = 512, P = 1024, U = 2048, pe = 4096, H = 8192, ae = 16384, Ut = 32768, ht = 65536, Zt = 1 << 17, Er = 1 << 18, ke = 1 << 19, _n = 1 << 20, xt = 1 << 21, Vt = 1 << 22, we = 1 << 23, he = Symbol("$state"), vn = Symbol("legacy props"), Sr = Symbol(""), xe = new class extends Error {
33
36
  name = "StaleReactionError";
34
37
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
35
- }(), ht = 3, De = 8;
36
- function Er(e) {
38
+ }(), dt = 3, De = 8;
39
+ function kr(e) {
37
40
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
38
41
  }
39
- function Sr() {
42
+ function Tr() {
40
43
  throw new Error("https://svelte.dev/e/async_derived_orphan");
41
44
  }
42
- function kr(e) {
45
+ function Ar(e) {
43
46
  throw new Error("https://svelte.dev/e/effect_in_teardown");
44
47
  }
45
- function Tr() {
48
+ function xr() {
46
49
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
47
50
  }
48
- function Ar(e) {
51
+ function Nr(e) {
49
52
  throw new Error("https://svelte.dev/e/effect_orphan");
50
53
  }
51
- function xr() {
54
+ function Or() {
52
55
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
53
56
  }
54
- function Nr() {
57
+ function Cr() {
55
58
  throw new Error("https://svelte.dev/e/hydration_failed");
56
59
  }
57
- function Cr(e) {
60
+ function Rr(e) {
58
61
  throw new Error("https://svelte.dev/e/props_invalid_value");
59
62
  }
60
- function Or() {
63
+ function Ir() {
61
64
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
62
65
  }
63
- function Rr() {
66
+ function Pr() {
64
67
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
65
68
  }
66
- function Ir() {
69
+ function Mr() {
67
70
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
68
71
  }
69
- function Pr() {
72
+ function Lr() {
70
73
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
71
74
  }
72
- function dt(e) {
75
+ function _t(e) {
73
76
  console.warn("https://svelte.dev/e/hydration_mismatch");
74
77
  }
75
- function Mr() {
78
+ function Dr() {
76
79
  console.warn("https://svelte.dev/e/select_multiple_invalid_value");
77
80
  }
78
- function Lr() {
81
+ function Fr() {
79
82
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
80
83
  }
81
84
  let v = !1;
@@ -83,29 +86,29 @@ function B(e) {
83
86
  v = e;
84
87
  }
85
88
  let w;
86
- function O(e) {
89
+ function C(e) {
87
90
  if (e === null)
88
- throw dt(), Re;
91
+ throw _t(), Re;
89
92
  return w = e;
90
93
  }
91
- function _t() {
92
- return O(
94
+ function vt() {
95
+ return C(
93
96
  /** @type {TemplateNode} */
94
- /* @__PURE__ */ se(w)
97
+ /* @__PURE__ */ ie(w)
95
98
  );
96
99
  }
97
- function Ms(e) {
100
+ function Ds(e) {
98
101
  if (v) {
99
- if (/* @__PURE__ */ se(w) !== null)
100
- throw dt(), Re;
102
+ if (/* @__PURE__ */ ie(w) !== null)
103
+ throw _t(), Re;
101
104
  w = e;
102
105
  }
103
106
  }
104
- function Dr(e = 1) {
107
+ function jr(e = 1) {
105
108
  if (v) {
106
109
  for (var t = e, n = w; t--; )
107
110
  n = /** @type {TemplateNode} */
108
- /* @__PURE__ */ se(n);
111
+ /* @__PURE__ */ ie(n);
109
112
  w = n;
110
113
  }
111
114
  }
@@ -116,53 +119,53 @@ function rt(e = !0) {
116
119
  /** @type {Comment} */
117
120
  n.data
118
121
  );
119
- if (r === Dt) {
122
+ if (r === jt) {
120
123
  if (t === 0) return n;
121
124
  t -= 1;
122
- } else (r === ln || r === lt) && (t += 1);
125
+ } else (r === on || r === lt) && (t += 1);
123
126
  }
124
127
  var s = (
125
128
  /** @type {TemplateNode} */
126
- /* @__PURE__ */ se(n)
129
+ /* @__PURE__ */ ie(n)
127
130
  );
128
131
  e && n.remove(), n = s;
129
132
  }
130
133
  }
131
- function dn(e) {
134
+ function pn(e) {
132
135
  if (!e || e.nodeType !== De)
133
- throw dt(), Re;
136
+ throw _t(), Re;
134
137
  return (
135
138
  /** @type {Comment} */
136
139
  e.data
137
140
  );
138
141
  }
139
- function _n(e) {
142
+ function mn(e) {
140
143
  return e === this.v;
141
144
  }
142
- function Fr(e, t) {
145
+ function qr(e, t) {
143
146
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
144
147
  }
145
- function vn(e) {
146
- return !Fr(e, this.v);
148
+ function gn(e) {
149
+ return !qr(e, this.v);
147
150
  }
148
- let Ge = !1, qr = !1;
149
- function Ls() {
151
+ let Ge = !1, Br = !1;
152
+ function Fs() {
150
153
  Ge = !0;
151
154
  }
152
155
  let A = null;
153
156
  function Pe(e) {
154
157
  A = e;
155
158
  }
156
- function Ds(e) {
159
+ function js(e) {
157
160
  return (
158
161
  /** @type {T} */
159
- pn().get(e)
162
+ yn().get(e)
160
163
  );
161
164
  }
162
- function Fs(e, t) {
163
- return pn().set(e, t), t;
165
+ function qs(e, t) {
166
+ return yn().set(e, t), t;
164
167
  }
165
- function jr(e, t = !1, n) {
168
+ function Hr(e, t = !1, n) {
166
169
  A = {
167
170
  p: A,
168
171
  c: null,
@@ -172,7 +175,7 @@ function jr(e, t = !1, n) {
172
175
  l: Ge && !t ? { s: null, u: null, $: [] } : null
173
176
  };
174
177
  }
175
- function Br(e) {
178
+ function Ur(e) {
176
179
  var t = (
177
180
  /** @type {ComponentContext} */
178
181
  A
@@ -180,7 +183,7 @@ function Br(e) {
180
183
  if (n !== null) {
181
184
  t.e = null;
182
185
  for (var r of n)
183
- Pn(r);
186
+ Fn(r);
184
187
  }
185
188
  return e !== void 0 && (t.x = e), A = t.p, e ?? /** @type {T} */
186
189
  {};
@@ -188,10 +191,10 @@ function Br(e) {
188
191
  function Ke() {
189
192
  return !Ge || A !== null && A.l === null;
190
193
  }
191
- function pn(e) {
192
- return A === null && Er(), A.c ??= new Map(Hr(A) || void 0);
194
+ function yn(e) {
195
+ return A === null && kr(), A.c ??= new Map(Vr(A) || void 0);
193
196
  }
194
- function Hr(e) {
197
+ function Vr(e) {
195
198
  let t = e.p;
196
199
  for (; t !== null; ) {
197
200
  const n = t.c;
@@ -201,39 +204,39 @@ function Hr(e) {
201
204
  }
202
205
  return null;
203
206
  }
204
- let me = [];
205
- function mn() {
206
- var e = me;
207
- me = [], $r(e);
207
+ let ge = [];
208
+ function wn() {
209
+ var e = ge;
210
+ ge = [], br(e);
208
211
  }
209
- function de(e) {
210
- if (me.length === 0 && !Ue) {
211
- var t = me;
212
+ function _e(e) {
213
+ if (ge.length === 0 && !Ue) {
214
+ var t = ge;
212
215
  queueMicrotask(() => {
213
- t === me && mn();
216
+ t === ge && wn();
214
217
  });
215
218
  }
216
- me.push(e);
219
+ ge.push(e);
217
220
  }
218
- function Ur() {
219
- for (; me.length > 0; )
220
- mn();
221
+ function Yr() {
222
+ for (; ge.length > 0; )
223
+ wn();
221
224
  }
222
- const Vr = /* @__PURE__ */ new WeakMap();
223
- function gn(e) {
225
+ const Wr = /* @__PURE__ */ new WeakMap();
226
+ function $n(e) {
224
227
  var t = m;
225
228
  if (t === null)
226
- return $.f |= $e, e;
227
- if ((t.f & Bt) === 0) {
228
- if ((t.f & ot) === 0)
229
- throw !t.parent && e instanceof Error && $n(e), e;
229
+ return y.f |= we, e;
230
+ if ((t.f & Ut) === 0) {
231
+ if ((t.f & ct) === 0)
232
+ throw !t.parent && e instanceof Error && bn(e), e;
230
233
  t.b.error(e);
231
234
  } else
232
235
  Me(e, t);
233
236
  }
234
237
  function Me(e, t) {
235
238
  for (; t !== null; ) {
236
- if ((t.f & ot) !== 0)
239
+ if ((t.f & ct) !== 0)
237
240
  try {
238
241
  t.b.error(e);
239
242
  return;
@@ -242,10 +245,10 @@ function Me(e, t) {
242
245
  }
243
246
  t = t.parent;
244
247
  }
245
- throw e instanceof Error && $n(e), e;
248
+ throw e instanceof Error && bn(e), e;
246
249
  }
247
- function $n(e) {
248
- const t = Vr.get(e);
250
+ function bn(e) {
251
+ const t = Wr.get(e);
249
252
  t && (Ie(e, "message", {
250
253
  value: t.message
251
254
  }), Ie(e, "stack", {
@@ -253,8 +256,8 @@ function $n(e) {
253
256
  }));
254
257
  }
255
258
  const Ze = /* @__PURE__ */ new Set();
256
- let y = null, He = null, z = null, xt = /* @__PURE__ */ new Set(), ee = [], vt = null, Nt = !1, Ue = !1;
257
- class te {
259
+ let b = null, He = null, z = null, Nt = /* @__PURE__ */ new Set(), te = [], pt = null, Ot = !1, Ue = !1;
260
+ class ne {
258
261
  committed = !1;
259
262
  /**
260
263
  * The current values of any sources that are updated in this batch
@@ -292,12 +295,12 @@ class te {
292
295
  * Deferred effects (which run after async work has completed) that are DIRTY
293
296
  * @type {Effect[]}
294
297
  */
295
- #f = [];
298
+ #a = [];
296
299
  /**
297
300
  * Deferred effects that are MAYBE_DIRTY
298
301
  * @type {Effect[]}
299
302
  */
300
- #a = [];
303
+ #f = [];
301
304
  /**
302
305
  * A set of branches that still exist, but will be destroyed when this batch
303
306
  * is committed — we skip over these during `process`
@@ -309,7 +312,7 @@ class te {
309
312
  * @param {Effect[]} root_effects
310
313
  */
311
314
  process(t) {
312
- ee = [], He = null, this.apply();
315
+ te = [], He = null, this.apply();
313
316
  var n = {
314
317
  parent: null,
315
318
  effect: null,
@@ -319,7 +322,7 @@ class te {
319
322
  };
320
323
  for (const r of t)
321
324
  this.#s(r, n);
322
- this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this, y = null, Xt(n.render_effects), Xt(n.effects), He = null), z = null;
325
+ this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this, b = null, Qt(n.render_effects), Qt(n.effects), He = null), z = null;
323
326
  }
324
327
  /**
325
328
  * Traverse the effect tree, executing effects or stashing
@@ -330,15 +333,15 @@ class te {
330
333
  #s(t, n) {
331
334
  t.f ^= P;
332
335
  for (var r = t.first; r !== null; ) {
333
- var s = r.f, i = (s & (ue | _e)) !== 0, a = i && (s & P) !== 0, f = a || (s & H) !== 0 || this.skipped_effects.has(r);
334
- if ((r.f & ot) !== 0 && r.b?.is_pending() && (n = {
336
+ var s = r.f, i = (s & (ue | ve)) !== 0, f = i && (s & P) !== 0, a = f || (s & H) !== 0 || this.skipped_effects.has(r);
337
+ if ((r.f & ct) !== 0 && r.b?.is_pending() && (n = {
335
338
  parent: n,
336
339
  effect: r,
337
340
  effects: [],
338
341
  render_effects: [],
339
342
  block_effects: []
340
- }), !f && r.fn !== null) {
341
- i ? r.f ^= P : (s & qt) !== 0 ? n.effects.push(r) : $t(r) && ((r.f & Ee) !== 0 && n.block_effects.push(r), it(r));
343
+ }), !a && r.fn !== null) {
344
+ i ? r.f ^= P : (s & Ht) !== 0 ? n.effects.push(r) : wt(r) && ((r.f & Se) !== 0 && n.block_effects.push(r), it(r));
342
345
  var l = r.first;
343
346
  if (l !== null) {
344
347
  r = l;
@@ -356,7 +359,7 @@ class te {
356
359
  */
357
360
  #i(t) {
358
361
  for (const n of t)
359
- ((n.f & U) !== 0 ? this.#f : this.#a).push(n), D(n, P);
362
+ ((n.f & U) !== 0 ? this.#a : this.#f).push(n), D(n, P);
360
363
  }
361
364
  /**
362
365
  * Associate a change to a given source with the current
@@ -368,20 +371,20 @@ class te {
368
371
  this.#t.has(t) || this.#t.set(t, n), this.current.set(t, t.v), z?.set(t, t.v);
369
372
  }
370
373
  activate() {
371
- y = this;
374
+ b = this;
372
375
  }
373
376
  deactivate() {
374
- y = null, z = null;
377
+ b = null, z = null;
375
378
  }
376
379
  flush() {
377
- if (ee.length > 0) {
378
- if (this.activate(), bn(), y !== null && y !== this)
380
+ if (te.length > 0) {
381
+ if (this.activate(), Sn(), b !== null && b !== this)
379
382
  return;
380
383
  } else
381
384
  this.#u();
382
385
  this.deactivate();
383
- for (const t of xt)
384
- if (xt.delete(t), t(), y !== null)
386
+ for (const t of Nt)
387
+ if (Nt.delete(t), t(), b !== null)
385
388
  break;
386
389
  }
387
390
  #u() {
@@ -407,29 +410,29 @@ class te {
407
410
  continue;
408
411
  }
409
412
  const i = [];
410
- for (const [f, l] of this.current) {
411
- if (s.current.has(f))
412
- if (n && l !== s.current.get(f))
413
- s.current.set(f, l);
413
+ for (const [a, l] of this.current) {
414
+ if (s.current.has(a))
415
+ if (n && l !== s.current.get(a))
416
+ s.current.set(a, l);
414
417
  else
415
418
  continue;
416
- i.push(f);
419
+ i.push(a);
417
420
  }
418
421
  if (i.length === 0)
419
422
  continue;
420
- const a = [...s.current.keys()].filter((f) => !this.current.has(f));
421
- if (a.length > 0) {
422
- for (const f of i)
423
- yn(f, a);
424
- if (ee.length > 0) {
425
- y = s, s.apply();
426
- for (const f of ee)
427
- s.#s(f, r);
428
- ee = [], s.deactivate();
423
+ const f = [...s.current.keys()].filter((a) => !this.current.has(a));
424
+ if (f.length > 0) {
425
+ for (const a of i)
426
+ kn(a, f);
427
+ if (te.length > 0) {
428
+ b = s, s.apply();
429
+ for (const a of te)
430
+ s.#s(a, r);
431
+ te = [], s.deactivate();
429
432
  }
430
433
  }
431
434
  }
432
- y = null, z = t;
435
+ b = null, z = t;
433
436
  }
434
437
  this.committed = !0, Ze.delete(this), this.#l?.resolve();
435
438
  }
@@ -446,116 +449,116 @@ class te {
446
449
  */
447
450
  decrement(t) {
448
451
  this.#n -= 1, t && (this.#r -= 1);
449
- for (const n of this.#f)
450
- D(n, U), be(n);
451
452
  for (const n of this.#a)
452
- D(n, ve), be(n);
453
- this.#f = [], this.#a = [], this.flush();
453
+ D(n, U), be(n);
454
+ for (const n of this.#f)
455
+ D(n, pe), be(n);
456
+ this.#a = [], this.#f = [], this.flush();
454
457
  }
455
458
  /** @param {() => void} fn */
456
459
  add_callback(t) {
457
460
  this.#e.add(t);
458
461
  }
459
462
  settled() {
460
- return (this.#l ??= cn()).promise;
463
+ return (this.#l ??= dn()).promise;
461
464
  }
462
465
  static ensure() {
463
- if (y === null) {
464
- const t = y = new te();
465
- Ze.add(y), Ue || te.enqueue(() => {
466
- y === t && t.flush();
466
+ if (b === null) {
467
+ const t = b = new ne();
468
+ Ze.add(b), Ue || ne.enqueue(() => {
469
+ b === t && t.flush();
467
470
  });
468
471
  }
469
- return y;
472
+ return b;
470
473
  }
471
474
  /** @param {() => void} task */
472
475
  static enqueue(t) {
473
- de(t);
476
+ _e(t);
474
477
  }
475
478
  apply() {
476
479
  }
477
480
  }
478
- function wn(e) {
481
+ function En(e) {
479
482
  var t = Ue;
480
483
  Ue = !0;
481
484
  try {
482
485
  for (var n; ; ) {
483
- if (Ur(), ee.length === 0 && (y?.flush(), ee.length === 0))
484
- return vt = null, /** @type {T} */
486
+ if (Yr(), te.length === 0 && (b?.flush(), te.length === 0))
487
+ return pt = null, /** @type {T} */
485
488
  n;
486
- bn();
489
+ Sn();
487
490
  }
488
491
  } finally {
489
492
  Ue = t;
490
493
  }
491
494
  }
492
- function bn() {
493
- var e = Oe;
494
- Nt = !0;
495
+ function Sn() {
496
+ var e = Ce;
497
+ Ot = !0;
495
498
  try {
496
499
  var t = 0;
497
- for (tn(!0); ee.length > 0; ) {
498
- var n = te.ensure();
500
+ for (rn(!0); te.length > 0; ) {
501
+ var n = ne.ensure();
499
502
  if (t++ > 1e3) {
500
503
  var r, s;
501
- Yr();
504
+ Gr();
502
505
  }
503
- n.process(ee), he.clear();
506
+ n.process(te), de.clear();
504
507
  }
505
508
  } finally {
506
- Nt = !1, tn(e), vt = null;
509
+ Ot = !1, rn(e), pt = null;
507
510
  }
508
511
  }
509
- function Yr() {
512
+ function Gr() {
510
513
  try {
511
- xr();
514
+ Or();
512
515
  } catch (e) {
513
- Me(e, vt);
516
+ Me(e, pt);
514
517
  }
515
518
  }
516
- let ae = null;
517
- function Xt(e) {
519
+ let fe = null;
520
+ function Qt(e) {
518
521
  var t = e.length;
519
522
  if (t !== 0) {
520
523
  for (var n = 0; n < t; ) {
521
524
  var r = e[n++];
522
- if ((r.f & (fe | H)) === 0 && $t(r) && (ae = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? Fn(r) : r.fn = null), ae?.size > 0)) {
523
- he.clear();
524
- for (const s of ae) {
525
- if ((s.f & (fe | H)) !== 0) continue;
525
+ if ((r.f & (ae | H)) === 0 && wt(r) && (fe = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? Hn(r) : r.fn = null), fe?.size > 0)) {
526
+ de.clear();
527
+ for (const s of fe) {
528
+ if ((s.f & (ae | H)) !== 0) continue;
526
529
  const i = [s];
527
- let a = s.parent;
528
- for (; a !== null; )
529
- ae.has(a) && (ae.delete(a), i.push(a)), a = a.parent;
530
- for (let f = i.length - 1; f >= 0; f--) {
531
- const l = i[f];
532
- (l.f & (fe | H)) === 0 && it(l);
530
+ let f = s.parent;
531
+ for (; f !== null; )
532
+ fe.has(f) && (fe.delete(f), i.push(f)), f = f.parent;
533
+ for (let a = i.length - 1; a >= 0; a--) {
534
+ const l = i[a];
535
+ (l.f & (ae | H)) === 0 && it(l);
533
536
  }
534
537
  }
535
- ae.clear();
538
+ fe.clear();
536
539
  }
537
540
  }
538
- ae = null;
541
+ fe = null;
539
542
  }
540
543
  }
541
- function yn(e, t) {
544
+ function kn(e, t) {
542
545
  if (e.reactions !== null)
543
546
  for (const n of e.reactions) {
544
547
  const r = n.f;
545
- (r & F) !== 0 ? yn(
548
+ (r & F) !== 0 ? kn(
546
549
  /** @type {Derived} */
547
550
  n,
548
551
  t
549
- ) : (r & (Ht | Ee)) !== 0 && En(n, t) && (D(n, U), be(
552
+ ) : (r & (Vt | Se)) !== 0 && Tn(n, t) && (D(n, U), be(
550
553
  /** @type {Effect} */
551
554
  n
552
555
  ));
553
556
  }
554
557
  }
555
- function En(e, t) {
558
+ function Tn(e, t) {
556
559
  if (e.deps !== null) {
557
560
  for (const n of e.deps)
558
- if (t.includes(n) || (n.f & F) !== 0 && En(
561
+ if (t.includes(n) || (n.f & F) !== 0 && Tn(
559
562
  /** @type {Derived} */
560
563
  n,
561
564
  t
@@ -565,33 +568,33 @@ function En(e, t) {
565
568
  return !1;
566
569
  }
567
570
  function be(e) {
568
- for (var t = vt = e; t.parent !== null; ) {
571
+ for (var t = pt = e; t.parent !== null; ) {
569
572
  t = t.parent;
570
573
  var n = t.f;
571
- if (Nt && t === m && (n & Ee) !== 0)
574
+ if (Ot && t === m && (n & Se) !== 0)
572
575
  return;
573
- if ((n & (_e | ue)) !== 0) {
576
+ if ((n & (ve | ue)) !== 0) {
574
577
  if ((n & P) === 0) return;
575
578
  t.f ^= P;
576
579
  }
577
580
  }
578
- ee.push(t);
581
+ te.push(t);
579
582
  }
580
- function Wr(e) {
581
- let t = 0, n = ye(0), r;
583
+ function Kr(e) {
584
+ let t = 0, n = Ee(0), r;
582
585
  return () => {
583
- ns() && (M(n), Fe(() => (t === 0 && (r = wt(() => e(() => Ve(n)))), t += 1, () => {
584
- de(() => {
586
+ rs() && (M(n), Fe(() => (t === 0 && (r = $t(() => e(() => Ve(n)))), t += 1, () => {
587
+ _e(() => {
585
588
  t -= 1, t === 0 && (r?.(), r = void 0, Ve(n));
586
589
  });
587
590
  })));
588
591
  };
589
592
  }
590
- var Gr = ct | Se | ot;
591
- function Kr(e, t, n) {
592
- new zr(e, t, n);
593
+ var zr = ht | ke | ct;
594
+ function Jr(e, t, n) {
595
+ new Xr(e, t, n);
593
596
  }
594
- class zr {
597
+ class Xr {
595
598
  /** @type {Boundary | null} */
596
599
  parent;
597
600
  #t = !1;
@@ -604,9 +607,9 @@ class zr {
604
607
  /** @type {((anchor: Node) => void)} */
605
608
  #l;
606
609
  /** @type {Effect} */
607
- #f;
610
+ #a;
608
611
  /** @type {Effect | null} */
609
- #a = null;
612
+ #f = null;
610
613
  /** @type {Effect | null} */
611
614
  #s = null;
612
615
  /** @type {Effect | null} */
@@ -627,7 +630,7 @@ class zr {
627
630
  #m = () => {
628
631
  this.#h && Le(this.#h, this.#o);
629
632
  };
630
- #g = Wr(() => (this.#h = ye(this.#o), () => {
633
+ #g = Kr(() => (this.#h = Ee(this.#o), () => {
631
634
  this.#h = null;
632
635
  }));
633
636
  /**
@@ -637,25 +640,25 @@ class zr {
637
640
  */
638
641
  constructor(t, n, r) {
639
642
  this.#e = t, this.#r = n, this.#l = r, this.parent = /** @type {Effect} */
640
- m.b, this.#t = !!this.#r.pending, this.#f = Wt(() => {
643
+ m.b, this.#t = !!this.#r.pending, this.#a = Kt(() => {
641
644
  if (m.b = this, v) {
642
645
  const s = this.#n;
643
- _t(), /** @type {Comment} */
646
+ vt(), /** @type {Comment} */
644
647
  s.nodeType === De && /** @type {Comment} */
645
- s.data === lt ? this.#w() : this.#$();
648
+ s.data === lt ? this.#w() : this.#y();
646
649
  } else {
647
650
  try {
648
- this.#a = Y(() => r(this.#e));
651
+ this.#f = Y(() => r(this.#e));
649
652
  } catch (s) {
650
653
  this.error(s);
651
654
  }
652
655
  this.#c > 0 ? this.#v() : this.#t = !1;
653
656
  }
654
- }, Gr), v && (this.#e = w);
657
+ }, zr), v && (this.#e = w);
655
658
  }
656
- #$() {
659
+ #y() {
657
660
  try {
658
- this.#a = Y(() => this.#l(this.#e));
661
+ this.#f = Y(() => this.#l(this.#e));
659
662
  } catch (t) {
660
663
  this.error(t);
661
664
  }
@@ -663,8 +666,8 @@ class zr {
663
666
  }
664
667
  #w() {
665
668
  const t = this.#r.pending;
666
- t && (this.#s = Y(() => t(this.#e)), te.enqueue(() => {
667
- this.#a = this.#_(() => (te.ensure(), Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : (Ce(
669
+ t && (this.#s = Y(() => t(this.#e)), ne.enqueue(() => {
670
+ this.#f = this.#_(() => (ne.ensure(), Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : (Oe(
668
671
  /** @type {Effect} */
669
672
  this.#s,
670
673
  () => {
@@ -687,14 +690,14 @@ class zr {
687
690
  * @param {() => Effect | null} fn
688
691
  */
689
692
  #_(t) {
690
- var n = m, r = $, s = A;
691
- K(this.#f), C(this.#f), Pe(this.#f.ctx);
693
+ var n = m, r = y, s = A;
694
+ K(this.#a), O(this.#a), Pe(this.#a.ctx);
692
695
  try {
693
696
  return t();
694
697
  } catch (i) {
695
- return gn(i), null;
698
+ return $n(i), null;
696
699
  } finally {
697
- K(n), C(r), Pe(s);
700
+ K(n), O(r), Pe(s);
698
701
  }
699
702
  }
700
703
  #v() {
@@ -702,7 +705,7 @@ class zr {
702
705
  /** @type {(anchor: Node) => void} */
703
706
  this.#r.pending
704
707
  );
705
- this.#a !== null && (this.#u = document.createDocumentFragment(), Bn(this.#a, this.#u)), this.#s === null && (this.#s = Y(() => t(this.#e)));
708
+ this.#f !== null && (this.#u = document.createDocumentFragment(), Yn(this.#f, this.#u)), this.#s === null && (this.#s = Y(() => t(this.#e)));
706
709
  }
707
710
  /**
708
711
  * Updates the pending count associated with the currently visible pending snippet,
@@ -714,7 +717,7 @@ class zr {
714
717
  this.parent && this.parent.#p(t);
715
718
  return;
716
719
  }
717
- this.#c += t, this.#c === 0 && (this.#t = !1, this.#s && Ce(this.#s, () => {
720
+ this.#c += t, this.#c === 0 && (this.#t = !1, this.#s && Oe(this.#s, () => {
718
721
  this.#s = null;
719
722
  }), this.#u && (this.#e.before(this.#u), this.#u = null));
720
723
  }
@@ -725,7 +728,7 @@ class zr {
725
728
  * @param {1 | -1} d
726
729
  */
727
730
  update_pending_count(t) {
728
- this.#p(t), this.#o += t, xt.add(this.#m);
731
+ this.#p(t), this.#o += t, Nt.add(this.#m);
729
732
  }
730
733
  get_effect_pending() {
731
734
  return this.#g(), M(
@@ -739,29 +742,29 @@ class zr {
739
742
  let r = this.#r.failed;
740
743
  if (this.#d || !n && !r)
741
744
  throw t;
742
- this.#a && (L(this.#a), this.#a = null), this.#s && (L(this.#s), this.#s = null), this.#i && (L(this.#i), this.#i = null), v && (O(
745
+ this.#f && (L(this.#f), this.#f = null), this.#s && (L(this.#s), this.#s = null), this.#i && (L(this.#i), this.#i = null), v && (C(
743
746
  /** @type {TemplateNode} */
744
747
  this.#n
745
- ), Dr(), O(rt()));
748
+ ), jr(), C(rt()));
746
749
  var s = !1, i = !1;
747
- const a = () => {
750
+ const f = () => {
748
751
  if (s) {
749
- Lr();
752
+ Fr();
750
753
  return;
751
754
  }
752
- s = !0, i && Pr(), te.ensure(), this.#o = 0, this.#i !== null && Ce(this.#i, () => {
755
+ s = !0, i && Lr(), ne.ensure(), this.#o = 0, this.#i !== null && Oe(this.#i, () => {
753
756
  this.#i = null;
754
- }), this.#t = this.has_pending_snippet(), this.#a = this.#_(() => (this.#d = !1, Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : this.#t = !1;
757
+ }), this.#t = this.has_pending_snippet(), this.#f = this.#_(() => (this.#d = !1, Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : this.#t = !1;
755
758
  };
756
- var f = $;
759
+ var a = y;
757
760
  try {
758
- C(null), i = !0, n?.(t, a), i = !1;
761
+ O(null), i = !0, n?.(t, f), i = !1;
759
762
  } catch (l) {
760
- Me(l, this.#f && this.#f.parent);
763
+ Me(l, this.#a && this.#a.parent);
761
764
  } finally {
762
- C(f);
765
+ O(a);
763
766
  }
764
- r && de(() => {
767
+ r && _e(() => {
765
768
  this.#i = this.#_(() => {
766
769
  this.#d = !0;
767
770
  try {
@@ -769,14 +772,14 @@ class zr {
769
772
  r(
770
773
  this.#e,
771
774
  () => t,
772
- () => a
775
+ () => f
773
776
  );
774
777
  });
775
778
  } catch (l) {
776
779
  return Me(
777
780
  l,
778
781
  /** @type {Effect} */
779
- this.#f.parent
782
+ this.#a.parent
780
783
  ), null;
781
784
  } finally {
782
785
  this.#d = !1;
@@ -785,50 +788,50 @@ class zr {
785
788
  });
786
789
  }
787
790
  }
788
- function Jr(e, t, n) {
789
- const r = Ke() ? pt : Ut;
791
+ function Zr(e, t, n) {
792
+ const r = Ke() ? mt : Yt;
790
793
  if (t.length === 0) {
791
794
  n(e.map(r));
792
795
  return;
793
796
  }
794
- var s = y, i = (
797
+ var s = b, i = (
795
798
  /** @type {Effect} */
796
799
  m
797
- ), a = Xr(), f = v;
798
- Promise.all(t.map((l) => /* @__PURE__ */ Zr(l))).then((l) => {
799
- a();
800
+ ), f = Qr(), a = v;
801
+ Promise.all(t.map((l) => /* @__PURE__ */ es(l))).then((l) => {
802
+ f();
800
803
  try {
801
804
  n([...e.map(r), ...l]);
802
805
  } catch (u) {
803
- (i.f & fe) === 0 && Me(u, i);
806
+ (i.f & ae) === 0 && Me(u, i);
804
807
  }
805
- f && B(!1), s?.deactivate(), Ct();
808
+ a && B(!1), s?.deactivate(), Ct();
806
809
  }).catch((l) => {
807
810
  Me(l, i);
808
811
  });
809
812
  }
810
- function Xr() {
811
- var e = m, t = $, n = A, r = y, s = v;
813
+ function Qr() {
814
+ var e = m, t = y, n = A, r = b, s = v;
812
815
  if (s)
813
816
  var i = w;
814
817
  return function() {
815
- K(e), C(t), Pe(n), r?.activate(), s && (B(!0), O(i));
818
+ K(e), O(t), Pe(n), r?.activate(), s && (B(!0), C(i));
816
819
  };
817
820
  }
818
821
  function Ct() {
819
- K(null), C(null), Pe(null);
822
+ K(null), O(null), Pe(null);
820
823
  }
821
824
  // @__NO_SIDE_EFFECTS__
822
- function pt(e) {
823
- var t = F | U, n = $ !== null && ($.f & F) !== 0 ? (
825
+ function mt(e) {
826
+ var t = F | U, n = y !== null && (y.f & F) !== 0 ? (
824
827
  /** @type {Derived} */
825
- $
828
+ y
826
829
  ) : null;
827
- return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |= Se, {
830
+ return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |= ke, {
828
831
  ctx: A,
829
832
  deps: null,
830
833
  effects: null,
831
- equals: _n,
834
+ equals: mn,
832
835
  f: t,
833
836
  fn: e,
834
837
  reactions: null,
@@ -843,12 +846,12 @@ function pt(e) {
843
846
  };
844
847
  }
845
848
  // @__NO_SIDE_EFFECTS__
846
- function Zr(e, t) {
849
+ function es(e, t) {
847
850
  let n = (
848
851
  /** @type {Effect | null} */
849
852
  m
850
853
  );
851
- n === null && Sr();
854
+ n === null && Tr();
852
855
  var r = (
853
856
  /** @type {Boundary} */
854
857
  n.b
@@ -856,44 +859,44 @@ function Zr(e, t) {
856
859
  /** @type {Promise<V>} */
857
860
  /** @type {unknown} */
858
861
  void 0
859
- ), i = ye(
862
+ ), i = Ee(
860
863
  /** @type {V} */
861
864
  N
862
- ), a = !$, f = /* @__PURE__ */ new Map();
863
- return is(() => {
864
- var l = cn();
865
+ ), f = !y, a = /* @__PURE__ */ new Map();
866
+ return fs(() => {
867
+ var l = dn();
865
868
  s = l.promise;
866
869
  try {
867
870
  Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
868
- u === y && u.committed && u.deactivate(), Ct();
871
+ u === b && u.committed && u.deactivate(), Ct();
869
872
  });
870
873
  } catch (h) {
871
874
  l.reject(h), Ct();
872
875
  }
873
876
  var u = (
874
877
  /** @type {Batch} */
875
- y
878
+ b
876
879
  );
877
- if (a) {
880
+ if (f) {
878
881
  var c = !r.is_pending();
879
- r.update_pending_count(1), u.increment(c), f.get(u)?.reject(Ae), f.delete(u), f.set(u, l);
882
+ r.update_pending_count(1), u.increment(c), a.get(u)?.reject(xe), a.delete(u), a.set(u, l);
880
883
  }
881
884
  const _ = (h, d = void 0) => {
882
885
  if (u.activate(), d)
883
- d !== Ae && (i.f |= $e, Le(i, d));
886
+ d !== xe && (i.f |= we, Le(i, d));
884
887
  else {
885
- (i.f & $e) !== 0 && (i.f ^= $e), Le(i, h);
886
- for (const [o, g] of f) {
887
- if (f.delete(o), o === u) break;
888
- g.reject(Ae);
888
+ (i.f & we) !== 0 && (i.f ^= we), Le(i, h);
889
+ for (const [o, g] of a) {
890
+ if (a.delete(o), o === u) break;
891
+ g.reject(xe);
889
892
  }
890
893
  }
891
- a && (r.update_pending_count(-1), u.decrement(c));
894
+ f && (r.update_pending_count(-1), u.decrement(c));
892
895
  };
893
896
  l.promise.then(_, (h) => _(null, h || "unknown"));
894
- }), gt(() => {
895
- for (const l of f.values())
896
- l.reject(Ae);
897
+ }), yt(() => {
898
+ for (const l of a.values())
899
+ l.reject(xe);
897
900
  }), new Promise((l) => {
898
901
  function u(c) {
899
902
  function _() {
@@ -905,16 +908,16 @@ function Zr(e, t) {
905
908
  });
906
909
  }
907
910
  // @__NO_SIDE_EFFECTS__
908
- function qs(e) {
909
- const t = /* @__PURE__ */ pt(e);
910
- return Hn(t), t;
911
+ function Bs(e) {
912
+ const t = /* @__PURE__ */ mt(e);
913
+ return Wn(t), t;
911
914
  }
912
915
  // @__NO_SIDE_EFFECTS__
913
- function Ut(e) {
914
- const t = /* @__PURE__ */ pt(e);
915
- return t.equals = vn, t;
916
+ function Yt(e) {
917
+ const t = /* @__PURE__ */ mt(e);
918
+ return t.equals = gn, t;
916
919
  }
917
- function Sn(e) {
920
+ function An(e) {
918
921
  var t = e.effects;
919
922
  if (t !== null) {
920
923
  e.effects = null;
@@ -925,7 +928,7 @@ function Sn(e) {
925
928
  );
926
929
  }
927
930
  }
928
- function Qr(e) {
931
+ function ts(e) {
929
932
  for (var t = e.parent; t !== null; ) {
930
933
  if ((t.f & F) === 0)
931
934
  return (
@@ -936,34 +939,34 @@ function Qr(e) {
936
939
  }
937
940
  return null;
938
941
  }
939
- function Vt(e) {
942
+ function Wt(e) {
940
943
  var t, n = m;
941
- K(Qr(e));
944
+ K(ts(e));
942
945
  try {
943
- Sn(e), t = Wn(e);
946
+ An(e), t = Jn(e);
944
947
  } finally {
945
948
  K(n);
946
949
  }
947
950
  return t;
948
951
  }
949
- function kn(e) {
950
- var t = Vt(e);
951
- if (e.equals(t) || (e.v = t, e.wv = Vn()), !ke)
952
+ function xn(e) {
953
+ var t = Wt(e);
954
+ if (e.equals(t) || (e.v = t, e.wv = Kn()), !Te)
952
955
  if (z !== null)
953
956
  z.set(e, e.v);
954
957
  else {
955
- var n = (ce || (e.f & W) !== 0) && e.deps !== null ? ve : P;
958
+ var n = (ce || (e.f & W) !== 0) && e.deps !== null ? pe : P;
956
959
  D(e, n);
957
960
  }
958
961
  }
959
- const he = /* @__PURE__ */ new Map();
960
- function ye(e, t) {
962
+ const de = /* @__PURE__ */ new Map();
963
+ function Ee(e, t) {
961
964
  var n = {
962
965
  f: 0,
963
966
  // TODO ideally we could skip this altogether, but it causes type errors
964
967
  v: e,
965
968
  reactions: null,
966
- equals: _n,
969
+ equals: mn,
967
970
  rv: 0,
968
971
  wv: 0
969
972
  };
@@ -971,74 +974,74 @@ function ye(e, t) {
971
974
  }
972
975
  // @__NO_SIDE_EFFECTS__
973
976
  function oe(e, t) {
974
- const n = ye(e);
975
- return Hn(n), n;
977
+ const n = Ee(e);
978
+ return Wn(n), n;
976
979
  }
977
980
  // @__NO_SIDE_EFFECTS__
978
- function Tn(e, t = !1, n = !0) {
979
- const r = ye(e);
980
- return t || (r.equals = vn), Ge && n && A !== null && A.l !== null && (A.l.s ??= []).push(r), r;
981
+ function Nn(e, t = !1, n = !0) {
982
+ const r = Ee(e);
983
+ return t || (r.equals = gn), Ge && n && A !== null && A.l !== null && (A.l.s ??= []).push(r), r;
981
984
  }
982
- function Q(e, t, n = !1) {
983
- $ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
985
+ function ee(e, t, n = !1) {
986
+ y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
984
987
  // to ensure we error if state is set inside an inspect effect
985
- (!J || ($.f & Jt) !== 0) && Ke() && ($.f & (F | Ee | Ht | Jt)) !== 0 && !le?.includes(e) && Ir();
986
- let r = n ? xe(t) : t;
988
+ (!J || (y.f & Zt) !== 0) && Ke() && (y.f & (F | Se | Vt | Zt)) !== 0 && !le?.includes(e) && Mr();
989
+ let r = n ? Ne(t) : t;
987
990
  return Le(e, r);
988
991
  }
989
992
  function Le(e, t) {
990
993
  if (!e.equals(t)) {
991
994
  var n = e.v;
992
- ke ? he.set(e, t) : he.set(e, n), e.v = t;
993
- var r = te.ensure();
994
- r.capture(e, n), (e.f & F) !== 0 && ((e.f & U) !== 0 && Vt(
995
+ Te ? de.set(e, t) : de.set(e, n), e.v = t;
996
+ var r = ne.ensure();
997
+ r.capture(e, n), (e.f & F) !== 0 && ((e.f & U) !== 0 && Wt(
995
998
  /** @type {Derived} */
996
999
  e
997
- ), D(e, (e.f & W) === 0 ? P : ve)), e.wv = Vn(), An(e, U), Ke() && m !== null && (m.f & P) !== 0 && (m.f & (ue | _e)) === 0 && (V === null ? ls([e]) : V.push(e));
1000
+ ), D(e, (e.f & W) === 0 ? P : pe)), e.wv = Kn(), On(e, U), Ke() && m !== null && (m.f & P) !== 0 && (m.f & (ue | ve)) === 0 && (V === null ? us([e]) : V.push(e));
998
1001
  }
999
1002
  return t;
1000
1003
  }
1001
- function js(e, t = 1) {
1004
+ function Hs(e, t = 1) {
1002
1005
  var n = M(e), r = t === 1 ? n++ : n--;
1003
- return Q(e, n), r;
1006
+ return ee(e, n), r;
1004
1007
  }
1005
1008
  function Ve(e) {
1006
- Q(e, e.v + 1);
1009
+ ee(e, e.v + 1);
1007
1010
  }
1008
- function An(e, t) {
1011
+ function On(e, t) {
1009
1012
  var n = e.reactions;
1010
1013
  if (n !== null)
1011
1014
  for (var r = Ke(), s = n.length, i = 0; i < s; i++) {
1012
- var a = n[i], f = a.f;
1013
- if (!(!r && a === m)) {
1014
- var l = (f & U) === 0;
1015
- l && D(a, t), (f & F) !== 0 ? An(
1015
+ var f = n[i], a = f.f;
1016
+ if (!(!r && f === m)) {
1017
+ var l = (a & U) === 0;
1018
+ l && D(f, t), (a & F) !== 0 ? On(
1016
1019
  /** @type {Derived} */
1017
- a,
1018
- ve
1019
- ) : l && ((f & Ee) !== 0 && ae !== null && ae.add(
1020
+ f,
1021
+ pe
1022
+ ) : l && ((a & Se) !== 0 && fe !== null && fe.add(
1020
1023
  /** @type {Effect} */
1021
- a
1024
+ f
1022
1025
  ), be(
1023
1026
  /** @type {Effect} */
1024
- a
1027
+ f
1025
1028
  ));
1026
1029
  }
1027
1030
  }
1028
1031
  }
1029
- function xe(e) {
1030
- if (typeof e != "object" || e === null || Ne in e)
1032
+ function Ne(e) {
1033
+ if (typeof e != "object" || e === null || he in e)
1031
1034
  return e;
1032
- const t = on(e);
1033
- if (t !== mr && t !== gr)
1035
+ const t = Bt(e);
1036
+ if (t !== wr && t !== $r)
1034
1037
  return e;
1035
- var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i = we, a = (f) => {
1036
- if (we === i)
1037
- return f();
1038
- var l = $, u = we;
1039
- C(null), rn(i);
1040
- var c = f();
1041
- return C(l), rn(u), c;
1038
+ var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i = $e, f = (a) => {
1039
+ if ($e === i)
1040
+ return a();
1041
+ var l = y, u = $e;
1042
+ O(null), fn(i);
1043
+ var c = a();
1044
+ return O(l), fn(u), c;
1042
1045
  };
1043
1046
  return r && n.set("length", /* @__PURE__ */ oe(
1044
1047
  /** @type {any[]} */
@@ -1047,40 +1050,40 @@ function xe(e) {
1047
1050
  /** @type {any} */
1048
1051
  e,
1049
1052
  {
1050
- defineProperty(f, l, u) {
1051
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Or();
1053
+ defineProperty(a, l, u) {
1054
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ir();
1052
1055
  var c = n.get(l);
1053
- return c === void 0 ? c = a(() => {
1056
+ return c === void 0 ? c = f(() => {
1054
1057
  var _ = /* @__PURE__ */ oe(u.value);
1055
1058
  return n.set(l, _), _;
1056
- }) : Q(c, u.value, !0), !0;
1059
+ }) : ee(c, u.value, !0), !0;
1057
1060
  },
1058
- deleteProperty(f, l) {
1061
+ deleteProperty(a, l) {
1059
1062
  var u = n.get(l);
1060
1063
  if (u === void 0) {
1061
- if (l in f) {
1062
- const c = a(() => /* @__PURE__ */ oe(N));
1064
+ if (l in a) {
1065
+ const c = f(() => /* @__PURE__ */ oe(N));
1063
1066
  n.set(l, c), Ve(s);
1064
1067
  }
1065
1068
  } else
1066
- Q(u, N), Ve(s);
1069
+ ee(u, N), Ve(s);
1067
1070
  return !0;
1068
1071
  },
1069
- get(f, l, u) {
1070
- if (l === Ne)
1072
+ get(a, l, u) {
1073
+ if (l === he)
1071
1074
  return e;
1072
- var c = n.get(l), _ = l in f;
1073
- if (c === void 0 && (!_ || ge(f, l)?.writable) && (c = a(() => {
1074
- var d = xe(_ ? f[l] : N), o = /* @__PURE__ */ oe(d);
1075
+ var c = n.get(l), _ = l in a;
1076
+ if (c === void 0 && (!_ || ye(a, l)?.writable) && (c = f(() => {
1077
+ var d = Ne(_ ? a[l] : N), o = /* @__PURE__ */ oe(d);
1075
1078
  return o;
1076
1079
  }), n.set(l, c)), c !== void 0) {
1077
1080
  var h = M(c);
1078
1081
  return h === N ? void 0 : h;
1079
1082
  }
1080
- return Reflect.get(f, l, u);
1083
+ return Reflect.get(a, l, u);
1081
1084
  },
1082
- getOwnPropertyDescriptor(f, l) {
1083
- var u = Reflect.getOwnPropertyDescriptor(f, l);
1085
+ getOwnPropertyDescriptor(a, l) {
1086
+ var u = Reflect.getOwnPropertyDescriptor(a, l);
1084
1087
  if (u && "value" in u) {
1085
1088
  var c = n.get(l);
1086
1089
  c && (u.value = M(c));
@@ -1096,13 +1099,13 @@ function xe(e) {
1096
1099
  }
1097
1100
  return u;
1098
1101
  },
1099
- has(f, l) {
1100
- if (l === Ne)
1102
+ has(a, l) {
1103
+ if (l === he)
1101
1104
  return !0;
1102
- var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(f, l);
1103
- if (u !== void 0 || m !== null && (!c || ge(f, l)?.writable)) {
1104
- u === void 0 && (u = a(() => {
1105
- var h = c ? xe(f[l]) : N, d = /* @__PURE__ */ oe(h);
1105
+ var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(a, l);
1106
+ if (u !== void 0 || m !== null && (!c || ye(a, l)?.writable)) {
1107
+ u === void 0 && (u = f(() => {
1108
+ var h = c ? Ne(a[l]) : N, d = /* @__PURE__ */ oe(h);
1106
1109
  return d;
1107
1110
  }), n.set(l, u));
1108
1111
  var _ = M(u);
@@ -1111,138 +1114,138 @@ function xe(e) {
1111
1114
  }
1112
1115
  return c;
1113
1116
  },
1114
- set(f, l, u, c) {
1115
- var _ = n.get(l), h = l in f;
1117
+ set(a, l, u, c) {
1118
+ var _ = n.get(l), h = l in a;
1116
1119
  if (r && l === "length")
1117
1120
  for (var d = u; d < /** @type {Source<number>} */
1118
1121
  _.v; d += 1) {
1119
1122
  var o = n.get(d + "");
1120
- o !== void 0 ? Q(o, N) : d in f && (o = a(() => /* @__PURE__ */ oe(N)), n.set(d + "", o));
1123
+ o !== void 0 ? ee(o, N) : d in a && (o = f(() => /* @__PURE__ */ oe(N)), n.set(d + "", o));
1121
1124
  }
1122
1125
  if (_ === void 0)
1123
- (!h || ge(f, l)?.writable) && (_ = a(() => /* @__PURE__ */ oe(void 0)), Q(_, xe(u)), n.set(l, _));
1126
+ (!h || ye(a, l)?.writable) && (_ = f(() => /* @__PURE__ */ oe(void 0)), ee(_, Ne(u)), n.set(l, _));
1124
1127
  else {
1125
1128
  h = _.v !== N;
1126
- var g = a(() => xe(u));
1127
- Q(_, g);
1129
+ var g = f(() => Ne(u));
1130
+ ee(_, g);
1128
1131
  }
1129
- var b = Reflect.getOwnPropertyDescriptor(f, l);
1130
- if (b?.set && b.set.call(c, u), !h) {
1132
+ var $ = Reflect.getOwnPropertyDescriptor(a, l);
1133
+ if ($?.set && $.set.call(c, u), !h) {
1131
1134
  if (r && typeof l == "string") {
1132
1135
  var E = (
1133
1136
  /** @type {Source<number>} */
1134
1137
  n.get("length")
1135
1138
  ), T = Number(l);
1136
- Number.isInteger(T) && T >= E.v && Q(E, T + 1);
1139
+ Number.isInteger(T) && T >= E.v && ee(E, T + 1);
1137
1140
  }
1138
1141
  Ve(s);
1139
1142
  }
1140
1143
  return !0;
1141
1144
  },
1142
- ownKeys(f) {
1145
+ ownKeys(a) {
1143
1146
  M(s);
1144
- var l = Reflect.ownKeys(f).filter((_) => {
1147
+ var l = Reflect.ownKeys(a).filter((_) => {
1145
1148
  var h = n.get(_);
1146
1149
  return h === void 0 || h.v !== N;
1147
1150
  });
1148
1151
  for (var [u, c] of n)
1149
- c.v !== N && !(u in f) && l.push(u);
1152
+ c.v !== N && !(u in a) && l.push(u);
1150
1153
  return l;
1151
1154
  },
1152
1155
  setPrototypeOf() {
1153
- Rr();
1156
+ Pr();
1154
1157
  }
1155
1158
  }
1156
1159
  );
1157
1160
  }
1158
- function Zt(e) {
1161
+ function en(e) {
1159
1162
  try {
1160
- if (e !== null && typeof e == "object" && Ne in e)
1161
- return e[Ne];
1163
+ if (e !== null && typeof e == "object" && he in e)
1164
+ return e[he];
1162
1165
  } catch {
1163
1166
  }
1164
1167
  return e;
1165
1168
  }
1166
- function xn(e, t) {
1167
- return Object.is(Zt(e), Zt(t));
1169
+ function Cn(e, t) {
1170
+ return Object.is(en(e), en(t));
1168
1171
  }
1169
- var Qt, Nn, Cn, On;
1170
- function Ot() {
1171
- if (Qt === void 0) {
1172
- Qt = window, Nn = /Firefox/.test(navigator.userAgent);
1172
+ var tn, Rn, In, Pn;
1173
+ function Rt() {
1174
+ if (tn === void 0) {
1175
+ tn = window, Rn = /Firefox/.test(navigator.userAgent);
1173
1176
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1174
- Cn = ge(t, "firstChild").get, On = ge(t, "nextSibling").get, zt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), zt(n) && (n.__t = void 0);
1177
+ In = ye(t, "firstChild").get, Pn = ye(t, "nextSibling").get, Xt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Xt(n) && (n.__t = void 0);
1175
1178
  }
1176
1179
  }
1177
1180
  function G(e = "") {
1178
1181
  return document.createTextNode(e);
1179
1182
  }
1180
1183
  // @__NO_SIDE_EFFECTS__
1181
- function re(e) {
1182
- return Cn.call(e);
1184
+ function se(e) {
1185
+ return In.call(e);
1183
1186
  }
1184
1187
  // @__NO_SIDE_EFFECTS__
1185
- function se(e) {
1186
- return On.call(e);
1188
+ function ie(e) {
1189
+ return Pn.call(e);
1187
1190
  }
1188
- function Bs(e, t) {
1191
+ function Us(e, t) {
1189
1192
  if (!v)
1190
- return /* @__PURE__ */ re(e);
1193
+ return /* @__PURE__ */ se(e);
1191
1194
  var n = (
1192
1195
  /** @type {TemplateNode} */
1193
- /* @__PURE__ */ re(w)
1196
+ /* @__PURE__ */ se(w)
1194
1197
  );
1195
1198
  if (n === null)
1196
1199
  n = w.appendChild(G());
1197
- else if (t && n.nodeType !== ht) {
1200
+ else if (t && n.nodeType !== dt) {
1198
1201
  var r = G();
1199
- return n?.before(r), O(r), r;
1202
+ return n?.before(r), C(r), r;
1200
1203
  }
1201
- return O(n), n;
1204
+ return C(n), n;
1202
1205
  }
1203
- function Hs(e, t = !1) {
1206
+ function Vs(e, t = !1) {
1204
1207
  if (!v) {
1205
1208
  var n = (
1206
1209
  /** @type {DocumentFragment} */
1207
- /* @__PURE__ */ re(
1210
+ /* @__PURE__ */ se(
1208
1211
  /** @type {Node} */
1209
1212
  e
1210
1213
  )
1211
1214
  );
1212
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ se(n) : n;
1215
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ ie(n) : n;
1213
1216
  }
1214
- if (t && w?.nodeType !== ht) {
1217
+ if (t && w?.nodeType !== dt) {
1215
1218
  var r = G();
1216
- return w?.before(r), O(r), r;
1219
+ return w?.before(r), C(r), r;
1217
1220
  }
1218
1221
  return w;
1219
1222
  }
1220
- function Us(e, t = 1, n = !1) {
1223
+ function Ys(e, t = 1, n = !1) {
1221
1224
  let r = v ? w : e;
1222
1225
  for (var s; t--; )
1223
1226
  s = r, r = /** @type {TemplateNode} */
1224
- /* @__PURE__ */ se(r);
1227
+ /* @__PURE__ */ ie(r);
1225
1228
  if (!v)
1226
1229
  return r;
1227
- if (n && r?.nodeType !== ht) {
1230
+ if (n && r?.nodeType !== dt) {
1228
1231
  var i = G();
1229
- return r === null ? s?.after(i) : r.before(i), O(i), i;
1232
+ return r === null ? s?.after(i) : r.before(i), C(i), i;
1230
1233
  }
1231
- return O(r), /** @type {TemplateNode} */
1234
+ return C(r), /** @type {TemplateNode} */
1232
1235
  r;
1233
1236
  }
1234
- function Yt(e) {
1237
+ function Gt(e) {
1235
1238
  e.textContent = "";
1236
1239
  }
1237
- function Rn() {
1240
+ function Mn() {
1238
1241
  return !1;
1239
1242
  }
1240
- function Vs(e) {
1241
- v && /* @__PURE__ */ re(e) !== null && Yt(e);
1243
+ function Ws(e) {
1244
+ v && /* @__PURE__ */ se(e) !== null && Gt(e);
1242
1245
  }
1243
- let en = !1;
1244
- function In() {
1245
- en || (en = !0, document.addEventListener(
1246
+ let nn = !1;
1247
+ function Ln() {
1248
+ nn || (nn = !0, document.addEventListener(
1246
1249
  "reset",
1247
1250
  (e) => {
1248
1251
  Promise.resolve().then(() => {
@@ -1259,30 +1262,30 @@ function In() {
1259
1262
  { capture: !0 }
1260
1263
  ));
1261
1264
  }
1262
- function mt(e) {
1263
- var t = $, n = m;
1264
- C(null), K(null);
1265
+ function gt(e) {
1266
+ var t = y, n = m;
1267
+ O(null), K(null);
1265
1268
  try {
1266
1269
  return e();
1267
1270
  } finally {
1268
- C(t), K(n);
1271
+ O(t), K(n);
1269
1272
  }
1270
1273
  }
1271
1274
  function ze(e, t, n, r = n) {
1272
- e.addEventListener(t, () => mt(n));
1275
+ e.addEventListener(t, () => gt(n));
1273
1276
  const s = e.__on_r;
1274
1277
  s ? e.__on_r = () => {
1275
1278
  s(), r(!0);
1276
- } : e.__on_r = () => r(!0), In();
1279
+ } : e.__on_r = () => r(!0), Ln();
1277
1280
  }
1278
- function es(e) {
1279
- m === null && $ === null && Ar(), $ !== null && ($.f & W) !== 0 && m === null && Tr(), ke && kr();
1281
+ function Dn(e) {
1282
+ m === null && y === null && Nr(), y !== null && (y.f & W) !== 0 && m === null && xr(), Te && Ar();
1280
1283
  }
1281
- function ts(e, t) {
1284
+ function ns(e, t) {
1282
1285
  var n = t.last;
1283
1286
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1284
1287
  }
1285
- function ie(e, t, n, r = !0) {
1288
+ function X(e, t, n, r = !0) {
1286
1289
  var s = m;
1287
1290
  s !== null && (s.f & H) !== 0 && (e |= H);
1288
1291
  var i = {
@@ -1305,37 +1308,37 @@ function ie(e, t, n, r = !0) {
1305
1308
  };
1306
1309
  if (n)
1307
1310
  try {
1308
- it(i), i.f |= Bt;
1311
+ it(i), i.f |= Ut;
1309
1312
  } catch (l) {
1310
1313
  throw L(i), l;
1311
1314
  }
1312
1315
  else t !== null && be(i);
1313
1316
  if (r) {
1314
- var a = i;
1315
- if (n && a.deps === null && a.teardown === null && a.nodes_start === null && a.first === a.last && // either `null`, or a singular child
1316
- (a.f & Se) === 0 && (a = a.first), a !== null && (a.parent = s, s !== null && ts(a, s), $ !== null && ($.f & F) !== 0 && (e & _e) === 0)) {
1317
- var f = (
1317
+ var f = i;
1318
+ if (n && f.deps === null && f.teardown === null && f.nodes_start === null && f.first === f.last && // either `null`, or a singular child
1319
+ (f.f & ke) === 0 && (f = f.first), f !== null && (f.parent = s, s !== null && ns(f, s), y !== null && (y.f & F) !== 0 && (e & ve) === 0)) {
1320
+ var a = (
1318
1321
  /** @type {Derived} */
1319
- $
1322
+ y
1320
1323
  );
1321
- (f.effects ??= []).push(a);
1324
+ (a.effects ??= []).push(f);
1322
1325
  }
1323
1326
  }
1324
1327
  return i;
1325
1328
  }
1326
- function ns() {
1327
- return $ !== null && !J;
1329
+ function rs() {
1330
+ return y !== null && !J;
1328
1331
  }
1329
- function gt(e) {
1330
- const t = ie(jt, null, !1);
1332
+ function yt(e) {
1333
+ const t = X(ot, null, !1);
1331
1334
  return D(t, P), t.teardown = e, t;
1332
1335
  }
1333
- function Ys(e) {
1334
- es();
1336
+ function Gs(e) {
1337
+ Dn();
1335
1338
  var t = (
1336
1339
  /** @type {Effect} */
1337
1340
  m.f
1338
- ), n = !$ && (t & ue) !== 0 && (t & Bt) === 0;
1341
+ ), n = !y && (t & ue) !== 0 && (t & Ut) === 0;
1339
1342
  if (n) {
1340
1343
  var r = (
1341
1344
  /** @type {ComponentContext} */
@@ -1343,69 +1346,72 @@ function Ys(e) {
1343
1346
  );
1344
1347
  (r.e ??= []).push(e);
1345
1348
  } else
1346
- return Pn(e);
1349
+ return Fn(e);
1350
+ }
1351
+ function Fn(e) {
1352
+ return X(Ht | _n, e, !1);
1347
1353
  }
1348
- function Pn(e) {
1349
- return ie(qt | br, e, !1);
1354
+ function Ks(e) {
1355
+ return Dn(), X(ot | _n, e, !0);
1350
1356
  }
1351
- function rs(e) {
1352
- te.ensure();
1353
- const t = ie(_e | Se, e, !0);
1357
+ function ss(e) {
1358
+ ne.ensure();
1359
+ const t = X(ve | ke, e, !0);
1354
1360
  return () => {
1355
1361
  L(t);
1356
1362
  };
1357
1363
  }
1358
- function ss(e) {
1359
- te.ensure();
1360
- const t = ie(_e | Se, e, !0);
1364
+ function is(e) {
1365
+ ne.ensure();
1366
+ const t = X(ve | ke, e, !0);
1361
1367
  return (n = {}) => new Promise((r) => {
1362
- n.outro ? Ce(t, () => {
1368
+ n.outro ? Oe(t, () => {
1363
1369
  L(t), r(void 0);
1364
1370
  }) : (L(t), r(void 0));
1365
1371
  });
1366
1372
  }
1367
- function Mn(e) {
1368
- return ie(qt, e, !1);
1373
+ function jn(e) {
1374
+ return X(Ht, e, !1);
1369
1375
  }
1370
- function is(e) {
1371
- return ie(Ht | Se, e, !0);
1376
+ function fs(e) {
1377
+ return X(Vt | ke, e, !0);
1372
1378
  }
1373
1379
  function Fe(e, t = 0) {
1374
- return ie(jt | t, e, !0);
1380
+ return X(ot | t, e, !0);
1375
1381
  }
1376
- function Ws(e, t = [], n = []) {
1377
- Jr(t, n, (r) => {
1378
- ie(jt, () => e(...r.map(M)), !0);
1382
+ function zs(e, t = [], n = []) {
1383
+ Zr(t, n, (r) => {
1384
+ X(ot, () => e(...r.map(M)), !0);
1379
1385
  });
1380
1386
  }
1381
- function Wt(e, t = 0) {
1382
- var n = ie(Ee | t, e, !0);
1387
+ function Kt(e, t = 0) {
1388
+ var n = X(Se | t, e, !0);
1383
1389
  return n;
1384
1390
  }
1385
1391
  function Y(e, t = !0) {
1386
- return ie(ue | Se, e, !0, t);
1392
+ return X(ue | ke, e, !0, t);
1387
1393
  }
1388
- function Ln(e) {
1394
+ function qn(e) {
1389
1395
  var t = e.teardown;
1390
1396
  if (t !== null) {
1391
- const n = ke, r = $;
1392
- nn(!0), C(null);
1397
+ const n = Te, r = y;
1398
+ sn(!0), O(null);
1393
1399
  try {
1394
1400
  t.call(null);
1395
1401
  } finally {
1396
- nn(n), C(r);
1402
+ sn(n), O(r);
1397
1403
  }
1398
1404
  }
1399
1405
  }
1400
- function Dn(e, t = !1) {
1406
+ function Bn(e, t = !1) {
1401
1407
  var n = e.first;
1402
1408
  for (e.first = e.last = null; n !== null; ) {
1403
1409
  const s = n.ac;
1404
- s !== null && mt(() => {
1405
- s.abort(Ae);
1410
+ s !== null && gt(() => {
1411
+ s.abort(xe);
1406
1412
  });
1407
1413
  var r = n.next;
1408
- (n.f & _e) !== 0 ? n.parent = null : L(n, t), n = r;
1414
+ (n.f & ve) !== 0 ? n.parent = null : L(n, t), n = r;
1409
1415
  }
1410
1416
  }
1411
1417
  function as(e) {
@@ -1416,39 +1422,39 @@ function as(e) {
1416
1422
  }
1417
1423
  function L(e, t = !0) {
1418
1424
  var n = !1;
1419
- (t || (e.f & wr) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (fs(
1425
+ (t || (e.f & Er) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (ls(
1420
1426
  e.nodes_start,
1421
1427
  /** @type {TemplateNode} */
1422
1428
  e.nodes_end
1423
- ), n = !0), Dn(e, t && !n), st(e, 0), D(e, fe);
1429
+ ), n = !0), Bn(e, t && !n), st(e, 0), D(e, ae);
1424
1430
  var r = e.transitions;
1425
1431
  if (r !== null)
1426
1432
  for (const i of r)
1427
1433
  i.stop();
1428
- Ln(e);
1434
+ qn(e);
1429
1435
  var s = e.parent;
1430
- s !== null && s.first !== null && Fn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
1436
+ s !== null && s.first !== null && Hn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
1431
1437
  }
1432
- function fs(e, t) {
1438
+ function ls(e, t) {
1433
1439
  for (; e !== null; ) {
1434
1440
  var n = e === t ? null : (
1435
1441
  /** @type {TemplateNode} */
1436
- /* @__PURE__ */ se(e)
1442
+ /* @__PURE__ */ ie(e)
1437
1443
  );
1438
1444
  e.remove(), e = n;
1439
1445
  }
1440
1446
  }
1441
- function Fn(e) {
1447
+ function Hn(e) {
1442
1448
  var t = e.parent, n = e.prev, r = e.next;
1443
1449
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1444
1450
  }
1445
- function Ce(e, t, n = !0) {
1451
+ function Oe(e, t, n = !0) {
1446
1452
  var r = [];
1447
- Gt(e, r, !0), qn(r, () => {
1453
+ zt(e, r, !0), Un(r, () => {
1448
1454
  n && L(e), t && t();
1449
1455
  });
1450
1456
  }
1451
- function qn(e, t) {
1457
+ function Un(e, t) {
1452
1458
  var n = e.length;
1453
1459
  if (n > 0) {
1454
1460
  var r = () => --n || t();
@@ -1457,95 +1463,95 @@ function qn(e, t) {
1457
1463
  } else
1458
1464
  t();
1459
1465
  }
1460
- function Gt(e, t, n) {
1466
+ function zt(e, t, n) {
1461
1467
  if ((e.f & H) === 0) {
1462
1468
  if (e.f ^= H, e.transitions !== null)
1463
- for (const a of e.transitions)
1464
- (a.is_global || n) && t.push(a);
1469
+ for (const f of e.transitions)
1470
+ (f.is_global || n) && t.push(f);
1465
1471
  for (var r = e.first; r !== null; ) {
1466
- var s = r.next, i = (r.f & ct) !== 0 || (r.f & ue) !== 0;
1467
- Gt(r, t, i ? n : !1), r = s;
1472
+ var s = r.next, i = (r.f & ht) !== 0 || (r.f & ue) !== 0;
1473
+ zt(r, t, i ? n : !1), r = s;
1468
1474
  }
1469
1475
  }
1470
1476
  }
1471
- function Kt(e) {
1472
- jn(e, !0);
1477
+ function Jt(e) {
1478
+ Vn(e, !0);
1473
1479
  }
1474
- function jn(e, t) {
1480
+ function Vn(e, t) {
1475
1481
  if ((e.f & H) !== 0) {
1476
1482
  e.f ^= H, (e.f & P) === 0 && (D(e, U), be(e));
1477
1483
  for (var n = e.first; n !== null; ) {
1478
- var r = n.next, s = (n.f & ct) !== 0 || (n.f & ue) !== 0;
1479
- jn(n, s ? t : !1), n = r;
1484
+ var r = n.next, s = (n.f & ht) !== 0 || (n.f & ue) !== 0;
1485
+ Vn(n, s ? t : !1), n = r;
1480
1486
  }
1481
1487
  if (e.transitions !== null)
1482
1488
  for (const i of e.transitions)
1483
1489
  (i.is_global || t) && i.in();
1484
1490
  }
1485
1491
  }
1486
- function Bn(e, t) {
1492
+ function Yn(e, t) {
1487
1493
  for (var n = e.nodes_start, r = e.nodes_end; n !== null; ) {
1488
1494
  var s = n === r ? null : (
1489
1495
  /** @type {TemplateNode} */
1490
- /* @__PURE__ */ se(n)
1496
+ /* @__PURE__ */ ie(n)
1491
1497
  );
1492
1498
  t.append(n), n = s;
1493
1499
  }
1494
1500
  }
1495
- let Oe = !1;
1496
- function tn(e) {
1497
- Oe = e;
1501
+ let Ce = !1;
1502
+ function rn(e) {
1503
+ Ce = e;
1498
1504
  }
1499
- let ke = !1;
1500
- function nn(e) {
1501
- ke = e;
1505
+ let Te = !1;
1506
+ function sn(e) {
1507
+ Te = e;
1502
1508
  }
1503
- let $ = null, J = !1;
1504
- function C(e) {
1505
- $ = e;
1509
+ let y = null, J = !1;
1510
+ function O(e) {
1511
+ y = e;
1506
1512
  }
1507
1513
  let m = null;
1508
1514
  function K(e) {
1509
1515
  m = e;
1510
1516
  }
1511
1517
  let le = null;
1512
- function Hn(e) {
1513
- $ !== null && (le === null ? le = [e] : le.push(e));
1518
+ function Wn(e) {
1519
+ y !== null && (le === null ? le = [e] : le.push(e));
1514
1520
  }
1515
- let I = null, j = 0, V = null;
1516
- function ls(e) {
1521
+ let I = null, q = 0, V = null;
1522
+ function us(e) {
1517
1523
  V = e;
1518
1524
  }
1519
- let Un = 1, We = 0, we = We;
1520
- function rn(e) {
1521
- we = e;
1525
+ let Gn = 1, We = 0, $e = We;
1526
+ function fn(e) {
1527
+ $e = e;
1522
1528
  }
1523
1529
  let ce = !1;
1524
- function Vn() {
1525
- return ++Un;
1530
+ function Kn() {
1531
+ return ++Gn;
1526
1532
  }
1527
- function $t(e) {
1533
+ function wt(e) {
1528
1534
  var t = e.f;
1529
1535
  if ((t & U) !== 0)
1530
1536
  return !0;
1531
- if ((t & ve) !== 0) {
1537
+ if ((t & pe) !== 0) {
1532
1538
  var n = e.deps, r = (t & W) !== 0;
1533
1539
  if (n !== null) {
1534
- var s, i, a = (t & nt) !== 0, f = r && m !== null && !ce, l = n.length;
1535
- if ((a || f) && (m === null || (m.f & fe) === 0)) {
1540
+ var s, i, f = (t & nt) !== 0, a = r && m !== null && !ce, l = n.length;
1541
+ if ((f || a) && (m === null || (m.f & ae) === 0)) {
1536
1542
  var u = (
1537
1543
  /** @type {Derived} */
1538
1544
  e
1539
1545
  ), c = u.parent;
1540
1546
  for (s = 0; s < l; s++)
1541
- i = n[s], (a || !i?.reactions?.includes(u)) && (i.reactions ??= []).push(u);
1542
- a && (u.f ^= nt), f && c !== null && (c.f & W) === 0 && (u.f ^= W);
1547
+ i = n[s], (f || !i?.reactions?.includes(u)) && (i.reactions ??= []).push(u);
1548
+ f && (u.f ^= nt), a && c !== null && (c.f & W) === 0 && (u.f ^= W);
1543
1549
  }
1544
1550
  for (s = 0; s < l; s++)
1545
- if (i = n[s], $t(
1551
+ if (i = n[s], wt(
1546
1552
  /** @type {Derived} */
1547
1553
  i
1548
- ) && kn(
1554
+ ) && xn(
1549
1555
  /** @type {Derived} */
1550
1556
  i
1551
1557
  ), i.wv > e.wv)
@@ -1555,67 +1561,67 @@ function $t(e) {
1555
1561
  }
1556
1562
  return !1;
1557
1563
  }
1558
- function Yn(e, t, n = !0) {
1564
+ function zn(e, t, n = !0) {
1559
1565
  var r = e.reactions;
1560
1566
  if (r !== null && !le?.includes(e))
1561
1567
  for (var s = 0; s < r.length; s++) {
1562
1568
  var i = r[s];
1563
- (i.f & F) !== 0 ? Yn(
1569
+ (i.f & F) !== 0 ? zn(
1564
1570
  /** @type {Derived} */
1565
1571
  i,
1566
1572
  t,
1567
1573
  !1
1568
- ) : t === i && (n ? D(i, U) : (i.f & P) !== 0 && D(i, ve), be(
1574
+ ) : t === i && (n ? D(i, U) : (i.f & P) !== 0 && D(i, pe), be(
1569
1575
  /** @type {Effect} */
1570
1576
  i
1571
1577
  ));
1572
1578
  }
1573
1579
  }
1574
- function Wn(e) {
1575
- var t = I, n = j, r = V, s = $, i = ce, a = le, f = A, l = J, u = we, c = e.f;
1580
+ function Jn(e) {
1581
+ var t = I, n = q, r = V, s = y, i = ce, f = le, a = A, l = J, u = $e, c = e.f;
1576
1582
  I = /** @type {null | Value[]} */
1577
- null, j = 0, V = null, ce = (c & W) !== 0 && (J || !Oe || $ === null), $ = (c & (ue | _e)) === 0 ? e : null, le = null, Pe(e.ctx), J = !1, we = ++We, e.ac !== null && (mt(() => {
1578
- e.ac.abort(Ae);
1583
+ null, q = 0, V = null, ce = (c & W) !== 0 && (J || !Ce || y === null), y = (c & (ue | ve)) === 0 ? e : null, le = null, Pe(e.ctx), J = !1, $e = ++We, e.ac !== null && (gt(() => {
1584
+ e.ac.abort(xe);
1579
1585
  }), e.ac = null);
1580
1586
  try {
1581
- e.f |= At;
1587
+ e.f |= xt;
1582
1588
  var _ = (
1583
1589
  /** @type {Function} */
1584
1590
  e.fn
1585
1591
  ), h = _(), d = e.deps;
1586
1592
  if (I !== null) {
1587
1593
  var o;
1588
- if (st(e, j), d !== null && j > 0)
1589
- for (d.length = j + I.length, o = 0; o < I.length; o++)
1590
- d[j + o] = I[o];
1594
+ if (st(e, q), d !== null && q > 0)
1595
+ for (d.length = q + I.length, o = 0; o < I.length; o++)
1596
+ d[q + o] = I[o];
1591
1597
  else
1592
1598
  e.deps = d = I;
1593
1599
  if (!ce || // Deriveds that already have reactions can cleanup, so we still add them as reactions
1594
1600
  (c & F) !== 0 && /** @type {import('#client').Derived} */
1595
1601
  e.reactions !== null)
1596
- for (o = j; o < d.length; o++)
1602
+ for (o = q; o < d.length; o++)
1597
1603
  (d[o].reactions ??= []).push(e);
1598
- } else d !== null && j < d.length && (st(e, j), d.length = j);
1599
- if (Ke() && V !== null && !J && d !== null && (e.f & (F | ve | U)) === 0)
1604
+ } else d !== null && q < d.length && (st(e, q), d.length = q);
1605
+ if (Ke() && V !== null && !J && d !== null && (e.f & (F | pe | U)) === 0)
1600
1606
  for (o = 0; o < /** @type {Source[]} */
1601
1607
  V.length; o++)
1602
- Yn(
1608
+ zn(
1603
1609
  V[o],
1604
1610
  /** @type {Effect} */
1605
1611
  e
1606
1612
  );
1607
1613
  return s !== null && s !== e && (We++, V !== null && (r === null ? r = V : r.push(.../** @type {Source[]} */
1608
- V))), (e.f & $e) !== 0 && (e.f ^= $e), h;
1614
+ V))), (e.f & we) !== 0 && (e.f ^= we), h;
1609
1615
  } catch (g) {
1610
- return gn(g);
1616
+ return $n(g);
1611
1617
  } finally {
1612
- e.f ^= At, I = t, j = n, V = r, $ = s, ce = i, le = a, Pe(f), J = l, we = u;
1618
+ e.f ^= xt, I = t, q = n, V = r, y = s, ce = i, le = f, Pe(a), J = l, $e = u;
1613
1619
  }
1614
1620
  }
1615
- function us(e, t) {
1621
+ function os(e, t) {
1616
1622
  let n = t.reactions;
1617
1623
  if (n !== null) {
1618
- var r = vr.call(n, e);
1624
+ var r = yr.call(n, e);
1619
1625
  if (r !== -1) {
1620
1626
  var s = n.length - 1;
1621
1627
  s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
@@ -1624,7 +1630,7 @@ function us(e, t) {
1624
1630
  n === null && (t.f & F) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1625
1631
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1626
1632
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1627
- (I === null || !I.includes(t)) && (D(t, ve), (t.f & (W | nt)) === 0 && (t.f ^= nt), Sn(
1633
+ (I === null || !I.includes(t)) && (D(t, pe), (t.f & (W | nt)) === 0 && (t.f ^= nt), An(
1628
1634
  /** @type {Derived} **/
1629
1635
  t
1630
1636
  ), st(
@@ -1637,84 +1643,84 @@ function st(e, t) {
1637
1643
  var n = e.deps;
1638
1644
  if (n !== null)
1639
1645
  for (var r = t; r < n.length; r++)
1640
- us(e, n[r]);
1646
+ os(e, n[r]);
1641
1647
  }
1642
1648
  function it(e) {
1643
1649
  var t = e.f;
1644
- if ((t & fe) === 0) {
1650
+ if ((t & ae) === 0) {
1645
1651
  D(e, P);
1646
- var n = m, r = Oe;
1647
- m = e, Oe = !0;
1652
+ var n = m, r = Ce;
1653
+ m = e, Ce = !0;
1648
1654
  try {
1649
- (t & Ee) !== 0 ? as(e) : Dn(e), Ln(e);
1650
- var s = Wn(e);
1651
- e.teardown = typeof s == "function" ? s : null, e.wv = Un;
1655
+ (t & Se) !== 0 ? as(e) : Bn(e), qn(e);
1656
+ var s = Jn(e);
1657
+ e.teardown = typeof s == "function" ? s : null, e.wv = Gn;
1652
1658
  var i;
1653
- un && qr && (e.f & U) !== 0 && e.deps;
1659
+ cn && Br && (e.f & U) !== 0 && e.deps;
1654
1660
  } finally {
1655
- Oe = r, m = n;
1661
+ Ce = r, m = n;
1656
1662
  }
1657
1663
  }
1658
1664
  }
1659
- async function os() {
1660
- await Promise.resolve(), wn();
1665
+ async function cs() {
1666
+ await Promise.resolve(), En();
1661
1667
  }
1662
1668
  function M(e) {
1663
1669
  var t = e.f, n = (t & F) !== 0;
1664
- if ($ !== null && !J) {
1665
- var r = m !== null && (m.f & fe) !== 0;
1670
+ if (y !== null && !J) {
1671
+ var r = m !== null && (m.f & ae) !== 0;
1666
1672
  if (!r && !le?.includes(e)) {
1667
- var s = $.deps;
1668
- if (($.f & At) !== 0)
1669
- e.rv < We && (e.rv = We, I === null && s !== null && s[j] === e ? j++ : I === null ? I = [e] : (!ce || !I.includes(e)) && I.push(e));
1673
+ var s = y.deps;
1674
+ if ((y.f & xt) !== 0)
1675
+ e.rv < We && (e.rv = We, I === null && s !== null && s[q] === e ? q++ : I === null ? I = [e] : (!ce || !I.includes(e)) && I.push(e));
1670
1676
  else {
1671
- ($.deps ??= []).push(e);
1677
+ (y.deps ??= []).push(e);
1672
1678
  var i = e.reactions;
1673
- i === null ? e.reactions = [$] : i.includes($) || i.push($);
1679
+ i === null ? e.reactions = [y] : i.includes(y) || i.push(y);
1674
1680
  }
1675
1681
  }
1676
1682
  } else if (n && /** @type {Derived} */
1677
1683
  e.deps === null && /** @type {Derived} */
1678
1684
  e.effects === null) {
1679
- var a = (
1685
+ var f = (
1680
1686
  /** @type {Derived} */
1681
1687
  e
1682
- ), f = a.parent;
1683
- f !== null && (f.f & W) === 0 && (a.f ^= W);
1688
+ ), a = f.parent;
1689
+ a !== null && (a.f & W) === 0 && (f.f ^= W);
1684
1690
  }
1685
- if (ke) {
1686
- if (he.has(e))
1687
- return he.get(e);
1691
+ if (Te) {
1692
+ if (de.has(e))
1693
+ return de.get(e);
1688
1694
  if (n) {
1689
- a = /** @type {Derived} */
1695
+ f = /** @type {Derived} */
1690
1696
  e;
1691
- var l = a.v;
1692
- return ((a.f & P) === 0 && a.reactions !== null || Gn(a)) && (l = Vt(a)), he.set(a, l), l;
1697
+ var l = f.v;
1698
+ return ((f.f & P) === 0 && f.reactions !== null || Xn(f)) && (l = Wt(f)), de.set(f, l), l;
1693
1699
  }
1694
1700
  } else if (n) {
1695
- if (a = /** @type {Derived} */
1696
- e, z?.has(a))
1697
- return z.get(a);
1698
- $t(a) && kn(a);
1701
+ if (f = /** @type {Derived} */
1702
+ e, z?.has(f))
1703
+ return z.get(f);
1704
+ wt(f) && xn(f);
1699
1705
  }
1700
1706
  if (z?.has(e))
1701
1707
  return z.get(e);
1702
- if ((e.f & $e) !== 0)
1708
+ if ((e.f & we) !== 0)
1703
1709
  throw e.v;
1704
1710
  return e.v;
1705
1711
  }
1706
- function Gn(e) {
1712
+ function Xn(e) {
1707
1713
  if (e.v === N) return !0;
1708
1714
  if (e.deps === null) return !1;
1709
1715
  for (const t of e.deps)
1710
- if (he.has(t) || (t.f & F) !== 0 && Gn(
1716
+ if (de.has(t) || (t.f & F) !== 0 && Xn(
1711
1717
  /** @type {Derived} */
1712
1718
  t
1713
1719
  ))
1714
1720
  return !0;
1715
1721
  return !1;
1716
1722
  }
1717
- function wt(e) {
1723
+ function $t(e) {
1718
1724
  var t = J;
1719
1725
  try {
1720
1726
  return J = !0, e();
@@ -1722,12 +1728,46 @@ function wt(e) {
1722
1728
  J = t;
1723
1729
  }
1724
1730
  }
1725
- const cs = -7169;
1731
+ const hs = -7169;
1726
1732
  function D(e, t) {
1727
- e.f = e.f & cs | t;
1733
+ e.f = e.f & hs | t;
1734
+ }
1735
+ function Js(e) {
1736
+ if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1737
+ if (he in e)
1738
+ It(e);
1739
+ else if (!Array.isArray(e))
1740
+ for (let t in e) {
1741
+ const n = e[t];
1742
+ typeof n == "object" && n && he in n && It(n);
1743
+ }
1744
+ }
1728
1745
  }
1729
- const Kn = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Set();
1730
- function Gs(e) {
1746
+ function It(e, t = /* @__PURE__ */ new Set()) {
1747
+ if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
1748
+ !(e instanceof EventTarget) && !t.has(e)) {
1749
+ t.add(e), e instanceof Date && e.getTime();
1750
+ for (let r in e)
1751
+ try {
1752
+ It(e[r], t);
1753
+ } catch {
1754
+ }
1755
+ const n = Bt(e);
1756
+ if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1757
+ const r = hn(n);
1758
+ for (let s in r) {
1759
+ const i = r[s].get;
1760
+ if (i)
1761
+ try {
1762
+ i.call(e);
1763
+ } catch {
1764
+ }
1765
+ }
1766
+ }
1767
+ }
1768
+ }
1769
+ const Zn = /* @__PURE__ */ new Set(), Pt = /* @__PURE__ */ new Set();
1770
+ function Xs(e) {
1731
1771
  if (!v) return;
1732
1772
  e.removeAttribute("onload"), e.removeAttribute("onerror");
1733
1773
  const t = e.__e;
@@ -1735,31 +1775,31 @@ function Gs(e) {
1735
1775
  e.isConnected && e.dispatchEvent(t);
1736
1776
  }));
1737
1777
  }
1738
- function hs(e, t, n, r = {}) {
1778
+ function ds(e, t, n, r = {}) {
1739
1779
  function s(i) {
1740
1780
  if (r.capture || Be.call(t, i), !i.cancelBubble)
1741
- return mt(() => n?.call(this, i));
1781
+ return gt(() => n?.call(this, i));
1742
1782
  }
1743
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? de(() => {
1783
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? _e(() => {
1744
1784
  t.addEventListener(e, s, r);
1745
1785
  }) : t.addEventListener(e, s, r), s;
1746
1786
  }
1747
- function Ks(e, t, n, r, s) {
1748
- var i = { capture: r, passive: s }, a = hs(e, t, n, i);
1787
+ function Zs(e, t, n, r, s) {
1788
+ var i = { capture: r, passive: s }, f = ds(e, t, n, i);
1749
1789
  (t === document.body || // @ts-ignore
1750
1790
  t === window || // @ts-ignore
1751
1791
  t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
1752
- t instanceof HTMLMediaElement) && gt(() => {
1753
- t.removeEventListener(e, a, i);
1792
+ t instanceof HTMLMediaElement) && yt(() => {
1793
+ t.removeEventListener(e, f, i);
1754
1794
  });
1755
1795
  }
1756
- function zs(e) {
1796
+ function Qs(e) {
1757
1797
  for (var t = 0; t < e.length; t++)
1758
- Kn.add(e[t]);
1759
- for (var n of Rt)
1798
+ Zn.add(e[t]);
1799
+ for (var n of Pt)
1760
1800
  n(e);
1761
1801
  }
1762
- let sn = null;
1802
+ let an = null;
1763
1803
  function Be(e) {
1764
1804
  var t = this, n = (
1765
1805
  /** @type {Node} */
@@ -1768,10 +1808,10 @@ function Be(e) {
1768
1808
  /** @type {null | Element} */
1769
1809
  s[0] || e.target
1770
1810
  );
1771
- sn = e;
1772
- var a = 0, f = sn === e && e.__root;
1773
- if (f) {
1774
- var l = s.indexOf(f);
1811
+ an = e;
1812
+ var f = 0, a = an === e && e.__root;
1813
+ if (a) {
1814
+ var l = s.indexOf(a);
1775
1815
  if (l !== -1 && (t === document || t === /** @type {any} */
1776
1816
  window)) {
1777
1817
  e.__root = t;
@@ -1780,18 +1820,18 @@ function Be(e) {
1780
1820
  var u = s.indexOf(t);
1781
1821
  if (u === -1)
1782
1822
  return;
1783
- l <= u && (a = l);
1823
+ l <= u && (f = l);
1784
1824
  }
1785
1825
  if (i = /** @type {Element} */
1786
- s[a] || e.target, i !== t) {
1826
+ s[f] || e.target, i !== t) {
1787
1827
  Ie(e, "currentTarget", {
1788
1828
  configurable: !0,
1789
1829
  get() {
1790
1830
  return i || n;
1791
1831
  }
1792
1832
  });
1793
- var c = $, _ = m;
1794
- C(null), K(null);
1833
+ var c = y, _ = m;
1834
+ O(null), K(null);
1795
1835
  try {
1796
1836
  for (var h, d = []; i !== null; ) {
1797
1837
  var o = i.assignedSlot || i.parentNode || /** @type {any} */
@@ -1803,8 +1843,8 @@ function Be(e) {
1803
1843
  // -> the target could not have been disabled because it emits the event in the first place
1804
1844
  e.target === i))
1805
1845
  if (ut(g)) {
1806
- var [b, ...E] = g;
1807
- b.apply(i, [e, ...E]);
1846
+ var [$, ...E] = g;
1847
+ $.apply(i, [e, ...E]);
1808
1848
  } else
1809
1849
  g.call(i, e);
1810
1850
  } catch (T) {
@@ -1822,15 +1862,15 @@ function Be(e) {
1822
1862
  throw h;
1823
1863
  }
1824
1864
  } finally {
1825
- e.__root = t, delete e.currentTarget, C(c), K(_);
1865
+ e.__root = t, delete e.currentTarget, O(c), K(_);
1826
1866
  }
1827
1867
  }
1828
1868
  }
1829
- function zn(e) {
1869
+ function Qn(e) {
1830
1870
  var t = document.createElement("template");
1831
1871
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1832
1872
  }
1833
- function ne(e, t) {
1873
+ function re(e, t) {
1834
1874
  var n = (
1835
1875
  /** @type {Effect} */
1836
1876
  m
@@ -1838,76 +1878,76 @@ function ne(e, t) {
1838
1878
  n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
1839
1879
  }
1840
1880
  // @__NO_SIDE_EFFECTS__
1841
- function Js(e, t) {
1842
- var n = (t & hr) !== 0, r = (t & dr) !== 0, s, i = !e.startsWith("<!>");
1881
+ function ei(e, t) {
1882
+ var n = (t & pr) !== 0, r = (t & mr) !== 0, s, i = !e.startsWith("<!>");
1843
1883
  return () => {
1844
1884
  if (v)
1845
- return ne(w, null), w;
1846
- s === void 0 && (s = zn(i ? e : "<!>" + e), n || (s = /** @type {Node} */
1847
- /* @__PURE__ */ re(s)));
1848
- var a = (
1885
+ return re(w, null), w;
1886
+ s === void 0 && (s = Qn(i ? e : "<!>" + e), n || (s = /** @type {Node} */
1887
+ /* @__PURE__ */ se(s)));
1888
+ var f = (
1849
1889
  /** @type {TemplateNode} */
1850
- r || Nn ? document.importNode(s, !0) : s.cloneNode(!0)
1890
+ r || Rn ? document.importNode(s, !0) : s.cloneNode(!0)
1851
1891
  );
1852
1892
  if (n) {
1853
- var f = (
1893
+ var a = (
1854
1894
  /** @type {TemplateNode} */
1855
- /* @__PURE__ */ re(a)
1895
+ /* @__PURE__ */ se(f)
1856
1896
  ), l = (
1857
1897
  /** @type {TemplateNode} */
1858
- a.lastChild
1898
+ f.lastChild
1859
1899
  );
1860
- ne(f, l);
1900
+ re(a, l);
1861
1901
  } else
1862
- ne(a, a);
1863
- return a;
1902
+ re(f, f);
1903
+ return f;
1864
1904
  };
1865
1905
  }
1866
1906
  // @__NO_SIDE_EFFECTS__
1867
- function ds(e, t, n = "svg") {
1907
+ function _s(e, t, n = "svg") {
1868
1908
  var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
1869
1909
  return () => {
1870
1910
  if (v)
1871
- return ne(w, null), w;
1911
+ return re(w, null), w;
1872
1912
  if (!i) {
1873
- var a = (
1913
+ var f = (
1874
1914
  /** @type {DocumentFragment} */
1875
- zn(s)
1876
- ), f = (
1915
+ Qn(s)
1916
+ ), a = (
1877
1917
  /** @type {Element} */
1878
- /* @__PURE__ */ re(a)
1918
+ /* @__PURE__ */ se(f)
1879
1919
  );
1880
1920
  i = /** @type {Element} */
1881
- /* @__PURE__ */ re(f);
1921
+ /* @__PURE__ */ se(a);
1882
1922
  }
1883
1923
  var l = (
1884
1924
  /** @type {TemplateNode} */
1885
1925
  i.cloneNode(!0)
1886
1926
  );
1887
- return ne(l, l), l;
1927
+ return re(l, l), l;
1888
1928
  };
1889
1929
  }
1890
1930
  // @__NO_SIDE_EFFECTS__
1891
- function Xs(e, t) {
1892
- return /* @__PURE__ */ ds(e, t, "svg");
1931
+ function ti(e, t) {
1932
+ return /* @__PURE__ */ _s(e, t, "svg");
1893
1933
  }
1894
- function Zs(e = "") {
1934
+ function ni(e = "") {
1895
1935
  if (!v) {
1896
1936
  var t = G(e + "");
1897
- return ne(t, t), t;
1937
+ return re(t, t), t;
1898
1938
  }
1899
1939
  var n = w;
1900
- return n.nodeType !== ht && (n.before(n = G()), O(n)), ne(n, n), n;
1940
+ return n.nodeType !== dt && (n.before(n = G()), C(n)), re(n, n), n;
1901
1941
  }
1902
- function Qs() {
1942
+ function ri() {
1903
1943
  if (v)
1904
- return ne(w, null), w;
1944
+ return re(w, null), w;
1905
1945
  var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
1906
- return e.append(t, n), ne(t, n), e;
1946
+ return e.append(t, n), re(t, n), e;
1907
1947
  }
1908
- function _s(e, t) {
1948
+ function vs(e, t) {
1909
1949
  if (v) {
1910
- m.nodes_end = w, _t();
1950
+ m.nodes_end = w, vt();
1911
1951
  return;
1912
1952
  }
1913
1953
  e !== null && e.before(
@@ -1915,65 +1955,65 @@ function _s(e, t) {
1915
1955
  t
1916
1956
  );
1917
1957
  }
1918
- const vs = ["touchstart", "touchmove"];
1919
- function ps(e) {
1920
- return vs.includes(e);
1958
+ const ps = ["touchstart", "touchmove"];
1959
+ function ms(e) {
1960
+ return ps.includes(e);
1921
1961
  }
1922
- function ei(e, t) {
1962
+ function si(e, t) {
1923
1963
  var n = t == null ? "" : typeof t == "object" ? t + "" : t;
1924
1964
  n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = n + "");
1925
1965
  }
1926
- function Jn(e, t) {
1927
- return Xn(e, t);
1966
+ function er(e, t) {
1967
+ return tr(e, t);
1928
1968
  }
1929
- function ms(e, t) {
1930
- Ot(), t.intro = t.intro ?? !1;
1969
+ function gs(e, t) {
1970
+ Rt(), t.intro = t.intro ?? !1;
1931
1971
  const n = t.target, r = v, s = w;
1932
1972
  try {
1933
1973
  for (var i = (
1934
1974
  /** @type {TemplateNode} */
1935
- /* @__PURE__ */ re(n)
1975
+ /* @__PURE__ */ se(n)
1936
1976
  ); i && (i.nodeType !== De || /** @type {Comment} */
1937
- i.data !== ln); )
1977
+ i.data !== on); )
1938
1978
  i = /** @type {TemplateNode} */
1939
- /* @__PURE__ */ se(i);
1979
+ /* @__PURE__ */ ie(i);
1940
1980
  if (!i)
1941
1981
  throw Re;
1942
- B(!0), O(
1982
+ B(!0), C(
1943
1983
  /** @type {Comment} */
1944
1984
  i
1945
1985
  );
1946
- const a = Xn(e, { ...t, anchor: i });
1986
+ const f = tr(e, { ...t, anchor: i });
1947
1987
  return B(!1), /** @type {Exports} */
1948
- a;
1949
- } catch (a) {
1950
- if (a instanceof Error && a.message.split(`
1951
- `).some((f) => f.startsWith("https://svelte.dev/e/")))
1952
- throw a;
1953
- return a !== Re && console.warn("Failed to hydrate: ", a), t.recover === !1 && Nr(), Ot(), Yt(n), B(!1), Jn(e, t);
1988
+ f;
1989
+ } catch (f) {
1990
+ if (f instanceof Error && f.message.split(`
1991
+ `).some((a) => a.startsWith("https://svelte.dev/e/")))
1992
+ throw f;
1993
+ return f !== Re && console.warn("Failed to hydrate: ", f), t.recover === !1 && Cr(), Rt(), Gt(n), B(!1), er(e, t);
1954
1994
  } finally {
1955
- B(r), O(s);
1995
+ B(r), C(s);
1956
1996
  }
1957
1997
  }
1958
- const Te = /* @__PURE__ */ new Map();
1959
- function Xn(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1960
- Ot();
1961
- var f = /* @__PURE__ */ new Set(), l = (_) => {
1998
+ const Ae = /* @__PURE__ */ new Map();
1999
+ function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: f = !0 }) {
2000
+ Rt();
2001
+ var a = /* @__PURE__ */ new Set(), l = (_) => {
1962
2002
  for (var h = 0; h < _.length; h++) {
1963
2003
  var d = _[h];
1964
- if (!f.has(d)) {
1965
- f.add(d);
1966
- var o = ps(d);
2004
+ if (!a.has(d)) {
2005
+ a.add(d);
2006
+ var o = ms(d);
1967
2007
  t.addEventListener(d, Be, { passive: o });
1968
- var g = Te.get(d);
1969
- g === void 0 ? (document.addEventListener(d, Be, { passive: o }), Te.set(d, 1)) : Te.set(d, g + 1);
2008
+ var g = Ae.get(d);
2009
+ g === void 0 ? (document.addEventListener(d, Be, { passive: o }), Ae.set(d, 1)) : Ae.set(d, g + 1);
1970
2010
  }
1971
2011
  }
1972
2012
  };
1973
- l(Ft(Kn)), Rt.add(l);
1974
- var u = void 0, c = ss(() => {
2013
+ l(qt(Zn)), Pt.add(l);
2014
+ var u = void 0, c = is(() => {
1975
2015
  var _ = n ?? t.appendChild(G());
1976
- return Kr(
2016
+ return Jr(
1977
2017
  /** @type {TemplateNode} */
1978
2018
  _,
1979
2019
  {
@@ -1982,42 +2022,42 @@ function Xn(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
1982
2022
  },
1983
2023
  (h) => {
1984
2024
  if (i) {
1985
- jr({});
2025
+ Hr({});
1986
2026
  var d = (
1987
2027
  /** @type {ComponentContext} */
1988
2028
  A
1989
2029
  );
1990
2030
  d.c = i;
1991
2031
  }
1992
- if (s && (r.$$events = s), v && ne(
2032
+ if (s && (r.$$events = s), v && re(
1993
2033
  /** @type {TemplateNode} */
1994
2034
  h,
1995
2035
  null
1996
2036
  ), u = e(h, r) || {}, v && (m.nodes_end = w, w === null || w.nodeType !== De || /** @type {Comment} */
1997
- w.data !== Dt))
1998
- throw dt(), Re;
1999
- i && Br();
2037
+ w.data !== jt))
2038
+ throw _t(), Re;
2039
+ i && Ur();
2000
2040
  }
2001
2041
  ), () => {
2002
- for (var h of f) {
2042
+ for (var h of a) {
2003
2043
  t.removeEventListener(h, Be);
2004
2044
  var d = (
2005
2045
  /** @type {number} */
2006
- Te.get(h)
2046
+ Ae.get(h)
2007
2047
  );
2008
- --d === 0 ? (document.removeEventListener(h, Be), Te.delete(h)) : Te.set(h, d);
2048
+ --d === 0 ? (document.removeEventListener(h, Be), Ae.delete(h)) : Ae.set(h, d);
2009
2049
  }
2010
- Rt.delete(l), _ !== n && _.parentNode?.removeChild(_);
2050
+ Pt.delete(l), _ !== n && _.parentNode?.removeChild(_);
2011
2051
  };
2012
2052
  });
2013
- return It.set(u, c), u;
2053
+ return Mt.set(u, c), u;
2014
2054
  }
2015
- let It = /* @__PURE__ */ new WeakMap();
2016
- function gs(e, t) {
2017
- const n = It.get(e);
2018
- return n ? (It.delete(e), n(t)) : Promise.resolve();
2055
+ let Mt = /* @__PURE__ */ new WeakMap();
2056
+ function ys(e, t) {
2057
+ const n = Mt.get(e);
2058
+ return n ? (Mt.delete(e), n(t)) : Promise.resolve();
2019
2059
  }
2020
- class $s {
2060
+ class ws {
2021
2061
  /** @type {TemplateNode} */
2022
2062
  anchor;
2023
2063
  /** @type {Map<Batch, Key>} */
@@ -2041,7 +2081,7 @@ class $s {
2041
2081
  #l = () => {
2042
2082
  var t = (
2043
2083
  /** @type {Batch} */
2044
- y
2084
+ b
2045
2085
  );
2046
2086
  if (this.#t.has(t)) {
2047
2087
  var n = (
@@ -2049,28 +2089,28 @@ class $s {
2049
2089
  this.#t.get(t)
2050
2090
  ), r = this.#e.get(n);
2051
2091
  if (r)
2052
- Kt(r);
2092
+ Jt(r);
2053
2093
  else {
2054
2094
  var s = this.#n.get(n);
2055
2095
  s && (this.#e.set(n, s.effect), this.#n.delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
2056
2096
  }
2057
- for (const [i, a] of this.#t) {
2097
+ for (const [i, f] of this.#t) {
2058
2098
  if (this.#t.delete(i), i === t)
2059
2099
  break;
2060
- const f = this.#n.get(a);
2061
- f && (L(f.effect), this.#n.delete(a));
2100
+ const a = this.#n.get(f);
2101
+ a && (L(a.effect), this.#n.delete(f));
2062
2102
  }
2063
- for (const [i, a] of this.#e) {
2103
+ for (const [i, f] of this.#e) {
2064
2104
  if (i === n) continue;
2065
- const f = () => {
2105
+ const a = () => {
2066
2106
  if (Array.from(this.#t.values()).includes(i)) {
2067
2107
  var u = document.createDocumentFragment();
2068
- Bn(a, u), u.append(G()), this.#n.set(i, { effect: a, fragment: u });
2108
+ Yn(f, u), u.append(G()), this.#n.set(i, { effect: f, fragment: u });
2069
2109
  } else
2070
- L(a);
2110
+ L(f);
2071
2111
  this.#e.delete(i);
2072
2112
  };
2073
- this.#r || !r ? Ce(a, f, !1) : f();
2113
+ this.#r || !r ? Oe(f, a, !1) : a();
2074
2114
  }
2075
2115
  }
2076
2116
  };
@@ -2082,13 +2122,13 @@ class $s {
2082
2122
  ensure(t, n) {
2083
2123
  var r = (
2084
2124
  /** @type {Batch} */
2085
- y
2086
- ), s = Rn();
2125
+ b
2126
+ ), s = Mn();
2087
2127
  if (n && !this.#e.has(t) && !this.#n.has(t))
2088
2128
  if (s) {
2089
- var i = document.createDocumentFragment(), a = G();
2090
- i.append(a), this.#n.set(t, {
2091
- effect: Y(() => n(a)),
2129
+ var i = document.createDocumentFragment(), f = G();
2130
+ i.append(f), this.#n.set(t, {
2131
+ effect: Y(() => n(f)),
2092
2132
  fragment: i
2093
2133
  });
2094
2134
  } else
@@ -2097,94 +2137,94 @@ class $s {
2097
2137
  Y(() => n(this.anchor))
2098
2138
  );
2099
2139
  if (this.#t.set(r, t), s) {
2100
- for (const [f, l] of this.#e)
2101
- f === t ? r.skipped_effects.delete(l) : r.skipped_effects.add(l);
2102
- for (const [f, l] of this.#n)
2103
- f === t ? r.skipped_effects.delete(l.effect) : r.skipped_effects.add(l.effect);
2140
+ for (const [a, l] of this.#e)
2141
+ a === t ? r.skipped_effects.delete(l) : r.skipped_effects.add(l);
2142
+ for (const [a, l] of this.#n)
2143
+ a === t ? r.skipped_effects.delete(l.effect) : r.skipped_effects.add(l.effect);
2104
2144
  r.add_callback(this.#l);
2105
2145
  } else
2106
2146
  v && (this.anchor = w), this.#l();
2107
2147
  }
2108
2148
  }
2109
- function ti(e, t, n = !1) {
2110
- v && _t();
2111
- var r = new $s(e), s = n ? ct : 0;
2112
- function i(a, f) {
2149
+ function ii(e, t, n = !1) {
2150
+ v && vt();
2151
+ var r = new ws(e), s = n ? ht : 0;
2152
+ function i(f, a) {
2113
2153
  if (v) {
2114
- const u = dn(e) === lt;
2115
- if (a === u) {
2154
+ const u = pn(e) === lt;
2155
+ if (f === u) {
2116
2156
  var l = rt();
2117
- O(l), r.anchor = l, B(!1), r.ensure(a, f), B(!0);
2157
+ C(l), r.anchor = l, B(!1), r.ensure(f, a), B(!0);
2118
2158
  return;
2119
2159
  }
2120
2160
  }
2121
- r.ensure(a, f);
2161
+ r.ensure(f, a);
2122
2162
  }
2123
- Wt(() => {
2124
- var a = !1;
2125
- t((f, l = !0) => {
2126
- a = !0, i(l, f);
2127
- }), a || i(!1, null);
2163
+ Kt(() => {
2164
+ var f = !1;
2165
+ t((a, l = !0) => {
2166
+ f = !0, i(l, a);
2167
+ }), f || i(!1, null);
2128
2168
  }, s);
2129
2169
  }
2130
- function ni(e, t) {
2170
+ function fi(e, t) {
2131
2171
  return t;
2132
2172
  }
2133
- function ws(e, t, n) {
2134
- for (var r = e.items, s = [], i = t.length, a = 0; a < i; a++)
2135
- Gt(t[a].e, s, !0);
2136
- var f = i > 0 && s.length === 0 && n !== null;
2137
- if (f) {
2173
+ function $s(e, t, n) {
2174
+ for (var r = e.items, s = [], i = t.length, f = 0; f < i; f++)
2175
+ zt(t[f].e, s, !0);
2176
+ var a = i > 0 && s.length === 0 && n !== null;
2177
+ if (a) {
2138
2178
  var l = (
2139
2179
  /** @type {Element} */
2140
2180
  /** @type {Element} */
2141
2181
  n.parentNode
2142
2182
  );
2143
- Yt(l), l.append(
2183
+ Gt(l), l.append(
2144
2184
  /** @type {Element} */
2145
2185
  n
2146
- ), r.clear(), Z(e, t[0].prev, t[i - 1].next);
2186
+ ), r.clear(), Q(e, t[0].prev, t[i - 1].next);
2147
2187
  }
2148
- qn(s, () => {
2188
+ Un(s, () => {
2149
2189
  for (var u = 0; u < i; u++) {
2150
2190
  var c = t[u];
2151
- f || (r.delete(c.k), Z(e, c.prev, c.next)), L(c.e, !f);
2191
+ a || (r.delete(c.k), Q(e, c.prev, c.next)), L(c.e, !a);
2152
2192
  }
2153
2193
  });
2154
2194
  }
2155
- function ri(e, t, n, r, s, i = null) {
2156
- var a = e, f = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & fn) !== 0;
2195
+ function ai(e, t, n, r, s, i = null) {
2196
+ var f = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & un) !== 0;
2157
2197
  if (l) {
2158
2198
  var u = (
2159
2199
  /** @type {Element} */
2160
2200
  e
2161
2201
  );
2162
- a = v ? O(
2202
+ f = v ? C(
2163
2203
  /** @type {Comment | Text} */
2164
- /* @__PURE__ */ re(u)
2204
+ /* @__PURE__ */ se(u)
2165
2205
  ) : u.appendChild(G());
2166
2206
  }
2167
- v && _t();
2168
- var c = null, _ = !1, h = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ Ut(() => {
2207
+ v && vt();
2208
+ var c = null, _ = !1, h = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ Yt(() => {
2169
2209
  var E = n();
2170
- return ut(E) ? E : E == null ? [] : Ft(E);
2210
+ return ut(E) ? E : E == null ? [] : qt(E);
2171
2211
  }), o, g;
2172
- function b() {
2212
+ function $() {
2173
2213
  bs(
2174
2214
  g,
2175
2215
  o,
2176
- f,
2177
- h,
2178
2216
  a,
2217
+ h,
2218
+ f,
2179
2219
  s,
2180
2220
  t,
2181
2221
  r,
2182
2222
  n
2183
- ), i !== null && (o.length === 0 ? c ? Kt(c) : c = Y(() => i(a)) : c !== null && Ce(c, () => {
2223
+ ), i !== null && (o.length === 0 ? c ? Jt(c) : c = Y(() => i(f)) : c !== null && Oe(c, () => {
2184
2224
  c = null;
2185
2225
  }));
2186
2226
  }
2187
- Wt(() => {
2227
+ Kt(() => {
2188
2228
  g ??= /** @type {Effect} */
2189
2229
  m, o = /** @type {V[]} */
2190
2230
  M(d);
@@ -2194,22 +2234,22 @@ function ri(e, t, n, r, s, i = null) {
2194
2234
  _ = E === 0;
2195
2235
  let T = !1;
2196
2236
  if (v) {
2197
- var k = dn(a) === lt;
2198
- k !== (E === 0) && (a = rt(), O(a), B(!1), T = !0);
2237
+ var k = pn(f) === lt;
2238
+ k !== (E === 0) && (f = rt(), C(f), B(!1), T = !0);
2199
2239
  }
2200
2240
  if (v) {
2201
- for (var q = null, x, p = 0; p < E; p++) {
2241
+ for (var j = null, x, p = 0; p < E; p++) {
2202
2242
  if (w.nodeType === De && /** @type {Comment} */
2203
- w.data === Dt) {
2204
- a = /** @type {Comment} */
2243
+ w.data === jt) {
2244
+ f = /** @type {Comment} */
2205
2245
  w, T = !0, B(!1);
2206
2246
  break;
2207
2247
  }
2208
2248
  var S = o[p], R = r(S, p);
2209
- x = Pt(
2249
+ x = Lt(
2210
2250
  w,
2211
- f,
2212
- q,
2251
+ a,
2252
+ j,
2213
2253
  null,
2214
2254
  S,
2215
2255
  R,
@@ -2217,23 +2257,23 @@ function ri(e, t, n, r, s, i = null) {
2217
2257
  s,
2218
2258
  t,
2219
2259
  n
2220
- ), f.items.set(R, x), q = x;
2260
+ ), a.items.set(R, x), j = x;
2221
2261
  }
2222
- E > 0 && O(rt());
2262
+ E > 0 && C(rt());
2223
2263
  }
2224
2264
  if (v)
2225
- E === 0 && i && (c = Y(() => i(a)));
2226
- else if (Rn()) {
2227
- var qe = /* @__PURE__ */ new Set(), Je = (
2265
+ E === 0 && i && (c = Y(() => i(f)));
2266
+ else if (Mn()) {
2267
+ var je = /* @__PURE__ */ new Set(), Je = (
2228
2268
  /** @type {Batch} */
2229
- y
2269
+ b
2230
2270
  );
2231
2271
  for (p = 0; p < E; p += 1) {
2232
2272
  S = o[p], R = r(S, p);
2233
- var pe = f.items.get(R) ?? h.get(R);
2234
- pe ? (t & (at | ft)) !== 0 && Zn(pe, S, p, t) : (x = Pt(
2273
+ var me = a.items.get(R) ?? h.get(R);
2274
+ me ? (t & (ft | at)) !== 0 && nr(me, S, p, t) : (x = Lt(
2235
2275
  null,
2236
- f,
2276
+ a,
2237
2277
  null,
2238
2278
  null,
2239
2279
  S,
@@ -2243,62 +2283,62 @@ function ri(e, t, n, r, s, i = null) {
2243
2283
  t,
2244
2284
  n,
2245
2285
  !0
2246
- ), h.set(R, x)), qe.add(R);
2286
+ ), h.set(R, x)), je.add(R);
2247
2287
  }
2248
- for (const [X, Xe] of f.items)
2249
- qe.has(X) || Je.skipped_effects.add(Xe.e);
2250
- Je.add_callback(b);
2288
+ for (const [Z, Xe] of a.items)
2289
+ je.has(Z) || Je.skipped_effects.add(Xe.e);
2290
+ Je.add_callback($);
2251
2291
  } else
2252
- b();
2292
+ $();
2253
2293
  T && B(!0), M(d);
2254
- }), v && (a = w);
2294
+ }), v && (f = w);
2255
2295
  }
2256
- function bs(e, t, n, r, s, i, a, f, l) {
2257
- var u = (a & ir) !== 0, c = (a & (at | ft)) !== 0, _ = t.length, h = n.items, d = n.first, o = d, g, b = null, E, T = [], k = [], q, x, p, S;
2296
+ function bs(e, t, n, r, s, i, f, a, l) {
2297
+ var u = (f & ur) !== 0, c = (f & (ft | at)) !== 0, _ = t.length, h = n.items, d = n.first, o = d, g, $ = null, E, T = [], k = [], j, x, p, S;
2258
2298
  if (u)
2259
2299
  for (S = 0; S < _; S += 1)
2260
- q = t[S], x = f(q, S), p = h.get(x), p !== void 0 && (p.a?.measure(), (E ??= /* @__PURE__ */ new Set()).add(p));
2300
+ j = t[S], x = a(j, S), p = h.get(x), p !== void 0 && (p.a?.measure(), (E ??= /* @__PURE__ */ new Set()).add(p));
2261
2301
  for (S = 0; S < _; S += 1) {
2262
- if (q = t[S], x = f(q, S), p = h.get(x), p === void 0) {
2302
+ if (j = t[S], x = a(j, S), p = h.get(x), p === void 0) {
2263
2303
  var R = r.get(x);
2264
2304
  if (R !== void 0) {
2265
2305
  r.delete(x), h.set(x, R);
2266
- var qe = b ? b.next : o;
2267
- Z(n, b, R), Z(n, R, qe), Et(R, qe, s), b = R;
2306
+ var je = $ ? $.next : o;
2307
+ Q(n, $, R), Q(n, R, je), St(R, je, s), $ = R;
2268
2308
  } else {
2269
2309
  var Je = o ? (
2270
2310
  /** @type {TemplateNode} */
2271
2311
  o.e.nodes_start
2272
2312
  ) : s;
2273
- b = Pt(
2313
+ $ = Lt(
2274
2314
  Je,
2275
2315
  n,
2276
- b,
2277
- b === null ? n.first : b.next,
2278
- q,
2316
+ $,
2317
+ $ === null ? n.first : $.next,
2318
+ j,
2279
2319
  x,
2280
2320
  S,
2281
2321
  i,
2282
- a,
2322
+ f,
2283
2323
  l
2284
2324
  );
2285
2325
  }
2286
- h.set(x, b), T = [], k = [], o = b.next;
2326
+ h.set(x, $), T = [], k = [], o = $.next;
2287
2327
  continue;
2288
2328
  }
2289
- if (c && Zn(p, q, S, a), (p.e.f & H) !== 0 && (Kt(p.e), u && (p.a?.unfix(), (E ??= /* @__PURE__ */ new Set()).delete(p))), p !== o) {
2329
+ if (c && nr(p, j, S, f), (p.e.f & H) !== 0 && (Jt(p.e), u && (p.a?.unfix(), (E ??= /* @__PURE__ */ new Set()).delete(p))), p !== o) {
2290
2330
  if (g !== void 0 && g.has(p)) {
2291
2331
  if (T.length < k.length) {
2292
- var pe = k[0], X;
2293
- b = pe.prev;
2332
+ var me = k[0], Z;
2333
+ $ = me.prev;
2294
2334
  var Xe = T[0], bt = T[T.length - 1];
2295
- for (X = 0; X < T.length; X += 1)
2296
- Et(T[X], pe, s);
2297
- for (X = 0; X < k.length; X += 1)
2298
- g.delete(k[X]);
2299
- Z(n, Xe.prev, bt.next), Z(n, b, Xe), Z(n, bt, pe), o = pe, b = bt, S -= 1, T = [], k = [];
2335
+ for (Z = 0; Z < T.length; Z += 1)
2336
+ St(T[Z], me, s);
2337
+ for (Z = 0; Z < k.length; Z += 1)
2338
+ g.delete(k[Z]);
2339
+ Q(n, Xe.prev, bt.next), Q(n, $, Xe), Q(n, bt, me), o = me, $ = bt, S -= 1, T = [], k = [];
2300
2340
  } else
2301
- g.delete(p), Et(p, o, s), Z(n, p.prev, p.next), Z(n, p, b === null ? n.first : b.next), Z(n, b, p), b = p;
2341
+ g.delete(p), St(p, o, s), Q(n, p.prev, p.next), Q(n, p, $ === null ? n.first : $.next), Q(n, $, p), $ = p;
2302
2342
  continue;
2303
2343
  }
2304
2344
  for (T = [], k = []; o !== null && o.k !== x; )
@@ -2307,41 +2347,41 @@ function bs(e, t, n, r, s, i, a, f, l) {
2307
2347
  continue;
2308
2348
  p = o;
2309
2349
  }
2310
- T.push(p), b = p, o = p.next;
2350
+ T.push(p), $ = p, o = p.next;
2311
2351
  }
2312
2352
  if (o !== null || g !== void 0) {
2313
- for (var je = g === void 0 ? [] : Ft(g); o !== null; )
2314
- (o.e.f & H) === 0 && je.push(o), o = o.next;
2315
- var yt = je.length;
2316
- if (yt > 0) {
2317
- var rr = (a & fn) !== 0 && _ === 0 ? s : null;
2353
+ for (var qe = g === void 0 ? [] : qt(g); o !== null; )
2354
+ (o.e.f & H) === 0 && qe.push(o), o = o.next;
2355
+ var Et = qe.length;
2356
+ if (Et > 0) {
2357
+ var ar = (f & un) !== 0 && _ === 0 ? s : null;
2318
2358
  if (u) {
2319
- for (S = 0; S < yt; S += 1)
2320
- je[S].a?.measure();
2321
- for (S = 0; S < yt; S += 1)
2322
- je[S].a?.fix();
2359
+ for (S = 0; S < Et; S += 1)
2360
+ qe[S].a?.measure();
2361
+ for (S = 0; S < Et; S += 1)
2362
+ qe[S].a?.fix();
2323
2363
  }
2324
- ws(n, je, rr);
2364
+ $s(n, qe, ar);
2325
2365
  }
2326
2366
  }
2327
- u && de(() => {
2367
+ u && _e(() => {
2328
2368
  if (E !== void 0)
2329
2369
  for (p of E)
2330
2370
  p.a?.apply();
2331
- }), e.first = n.first && n.first.e, e.last = b && b.e;
2332
- for (var sr of r.values())
2333
- L(sr.e);
2371
+ }), e.first = n.first && n.first.e, e.last = $ && $.e;
2372
+ for (var lr of r.values())
2373
+ L(lr.e);
2334
2374
  r.clear();
2335
2375
  }
2336
- function Zn(e, t, n, r) {
2337
- (r & at) !== 0 && Le(e.v, t), (r & ft) !== 0 ? Le(
2376
+ function nr(e, t, n, r) {
2377
+ (r & ft) !== 0 && Le(e.v, t), (r & at) !== 0 ? Le(
2338
2378
  /** @type {Value<number>} */
2339
2379
  e.i,
2340
2380
  n
2341
2381
  ) : e.i = n;
2342
2382
  }
2343
- function Pt(e, t, n, r, s, i, a, f, l, u, c) {
2344
- var _ = (l & at) !== 0, h = (l & ar) === 0, d = _ ? h ? /* @__PURE__ */ Tn(s, !1, !1) : ye(s) : s, o = (l & ft) === 0 ? a : ye(a), g = {
2383
+ function Lt(e, t, n, r, s, i, f, a, l, u, c) {
2384
+ var _ = (l & ft) !== 0, h = (l & or) === 0, d = _ ? h ? /* @__PURE__ */ Nn(s, !1, !1) : Ee(s) : s, o = (l & at) === 0 ? f : Ee(f), g = {
2345
2385
  i: o,
2346
2386
  v: d,
2347
2387
  k: i,
@@ -2353,10 +2393,10 @@ function Pt(e, t, n, r, s, i, a, f, l, u, c) {
2353
2393
  };
2354
2394
  try {
2355
2395
  if (e === null) {
2356
- var b = document.createDocumentFragment();
2357
- b.append(e = G());
2396
+ var $ = document.createDocumentFragment();
2397
+ $.append(e = G());
2358
2398
  }
2359
- return g.e = Y(() => f(
2399
+ return g.e = Y(() => a(
2360
2400
  /** @type {Node} */
2361
2401
  e,
2362
2402
  d,
@@ -2366,7 +2406,7 @@ function Pt(e, t, n, r, s, i, a, f, l, u, c) {
2366
2406
  } finally {
2367
2407
  }
2368
2408
  }
2369
- function Et(e, t, n) {
2409
+ function St(e, t, n) {
2370
2410
  for (var r = e.next ? (
2371
2411
  /** @type {TemplateNode} */
2372
2412
  e.next.e.nodes_start
@@ -2377,18 +2417,18 @@ function Et(e, t, n) {
2377
2417
  /** @type {TemplateNode} */
2378
2418
  e.e.nodes_start
2379
2419
  ); i !== null && i !== r; ) {
2380
- var a = (
2420
+ var f = (
2381
2421
  /** @type {TemplateNode} */
2382
- /* @__PURE__ */ se(i)
2422
+ /* @__PURE__ */ ie(i)
2383
2423
  );
2384
- s.before(i), i = a;
2424
+ s.before(i), i = f;
2385
2425
  }
2386
2426
  }
2387
- function Z(e, t, n) {
2427
+ function Q(e, t, n) {
2388
2428
  t === null ? e.first = n : (t.next = n, t.e.next = n && n.e), n !== null && (n.prev = t, n.e.prev = t && t.e);
2389
2429
  }
2390
- function si(e, t) {
2391
- Mn(() => {
2430
+ function li(e, t) {
2431
+ jn(() => {
2392
2432
  var n = e.getRootNode(), r = (
2393
2433
  /** @type {ShadowRoot} */
2394
2434
  n.host ? (
@@ -2406,28 +2446,28 @@ function si(e, t) {
2406
2446
  }
2407
2447
  });
2408
2448
  }
2409
- function Qn(e, t, n = !1) {
2449
+ function rr(e, t, n = !1) {
2410
2450
  if (e.multiple) {
2411
2451
  if (t == null)
2412
2452
  return;
2413
2453
  if (!ut(t))
2414
- return Mr();
2454
+ return Dr();
2415
2455
  for (var r of e.options)
2416
2456
  r.selected = t.includes(Ye(r));
2417
2457
  return;
2418
2458
  }
2419
2459
  for (r of e.options) {
2420
2460
  var s = Ye(r);
2421
- if (xn(s, t)) {
2461
+ if (Cn(s, t)) {
2422
2462
  r.selected = !0;
2423
2463
  return;
2424
2464
  }
2425
2465
  }
2426
2466
  (!n || t !== void 0) && (e.selectedIndex = -1);
2427
2467
  }
2428
- function ys(e) {
2468
+ function Es(e) {
2429
2469
  var t = new MutationObserver(() => {
2430
- Qn(e, e.__value);
2470
+ rr(e, e.__value);
2431
2471
  });
2432
2472
  t.observe(e, {
2433
2473
  // Listen to option element changes
@@ -2439,203 +2479,203 @@ function ys(e) {
2439
2479
  // because that property is not reflected as an attribute)
2440
2480
  attributes: !0,
2441
2481
  attributeFilter: ["value"]
2442
- }), gt(() => {
2482
+ }), yt(() => {
2443
2483
  t.disconnect();
2444
2484
  });
2445
2485
  }
2446
- function ii(e, t, n = t) {
2486
+ function ui(e, t, n = t) {
2447
2487
  var r = /* @__PURE__ */ new WeakSet(), s = !0;
2448
2488
  ze(e, "change", (i) => {
2449
- var a = i ? "[selected]" : ":checked", f;
2489
+ var f = i ? "[selected]" : ":checked", a;
2450
2490
  if (e.multiple)
2451
- f = [].map.call(e.querySelectorAll(a), Ye);
2491
+ a = [].map.call(e.querySelectorAll(f), Ye);
2452
2492
  else {
2453
- var l = e.querySelector(a) ?? // will fall back to first non-disabled option if no option is selected
2493
+ var l = e.querySelector(f) ?? // will fall back to first non-disabled option if no option is selected
2454
2494
  e.querySelector("option:not([disabled])");
2455
- f = l && Ye(l);
2495
+ a = l && Ye(l);
2456
2496
  }
2457
- n(f), y !== null && r.add(y);
2458
- }), Mn(() => {
2497
+ n(a), b !== null && r.add(b);
2498
+ }), jn(() => {
2459
2499
  var i = t();
2460
2500
  if (e === document.activeElement) {
2461
- var a = (
2501
+ var f = (
2462
2502
  /** @type {Batch} */
2463
- He ?? y
2503
+ He ?? b
2464
2504
  );
2465
- if (r.has(a))
2505
+ if (r.has(f))
2466
2506
  return;
2467
2507
  }
2468
- if (Qn(e, i, s), s && i === void 0) {
2469
- var f = e.querySelector(":checked");
2470
- f !== null && (i = Ye(f), n(i));
2508
+ if (rr(e, i, s), s && i === void 0) {
2509
+ var a = e.querySelector(":checked");
2510
+ a !== null && (i = Ye(a), n(i));
2471
2511
  }
2472
2512
  e.__value = i, s = !1;
2473
- }), ys(e);
2513
+ }), Es(e);
2474
2514
  }
2475
2515
  function Ye(e) {
2476
2516
  return "__value" in e ? e.__value : e.value;
2477
2517
  }
2478
- const Es = Symbol("is custom element"), Ss = Symbol("is html");
2479
- function ai(e) {
2518
+ const Ss = Symbol("is custom element"), ks = Symbol("is html");
2519
+ function oi(e) {
2480
2520
  if (v) {
2481
2521
  var t = !1, n = () => {
2482
2522
  if (!t) {
2483
2523
  if (t = !0, e.hasAttribute("value")) {
2484
2524
  var r = e.value;
2485
- Mt(e, "value", null), e.value = r;
2525
+ Dt(e, "value", null), e.value = r;
2486
2526
  }
2487
2527
  if (e.hasAttribute("checked")) {
2488
2528
  var s = e.checked;
2489
- Mt(e, "checked", null), e.checked = s;
2529
+ Dt(e, "checked", null), e.checked = s;
2490
2530
  }
2491
2531
  }
2492
2532
  };
2493
- e.__on_r = n, de(n), In();
2533
+ e.__on_r = n, _e(n), Ln();
2494
2534
  }
2495
2535
  }
2496
- function fi(e, t) {
2497
- var n = er(e);
2536
+ function ci(e, t) {
2537
+ var n = sr(e);
2498
2538
  n.value === (n.value = // treat null and undefined the same for the initial value
2499
2539
  t ?? void 0) || // @ts-expect-error
2500
2540
  // `progress` elements always need their value set when it's `0`
2501
2541
  e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
2502
2542
  }
2503
- function Mt(e, t, n, r) {
2504
- var s = er(e);
2505
- v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[yr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && tr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2543
+ function Dt(e, t, n, r) {
2544
+ var s = sr(e);
2545
+ v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[Sr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ir(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2506
2546
  }
2507
- function li(e, t, n) {
2508
- var r = $, s = m;
2547
+ function hi(e, t, n) {
2548
+ var r = y, s = m;
2509
2549
  let i = v;
2510
- v && B(!1), C(null), K(null);
2550
+ v && B(!1), O(null), K(null);
2511
2551
  try {
2512
2552
  // `style` should use `set_attribute` rather than the setter
2513
2553
  t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
2514
2554
  // because during their upgrade/instantiation they might add more setters.
2515
2555
  // Instead, fall back to a simple "an object, then set as property" heuristic.
2516
- (Lt.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
2517
- !customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ? tr(e).includes(t) : n && typeof n == "object") ? e[t] = n : Mt(e, t, n == null ? n : String(n));
2556
+ (Ft.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
2557
+ !customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ? ir(e).includes(t) : n && typeof n == "object") ? e[t] = n : Dt(e, t, n == null ? n : String(n));
2518
2558
  } finally {
2519
- C(r), K(s), i && B(!0);
2559
+ O(r), K(s), i && B(!0);
2520
2560
  }
2521
2561
  }
2522
- function er(e) {
2562
+ function sr(e) {
2523
2563
  return (
2524
2564
  /** @type {Record<string | symbol, unknown>} **/
2525
2565
  // @ts-expect-error
2526
2566
  e.__attributes ??= {
2527
- [Es]: e.nodeName.includes("-"),
2528
- [Ss]: e.namespaceURI === _r
2567
+ [Ss]: e.nodeName.includes("-"),
2568
+ [ks]: e.namespaceURI === gr
2529
2569
  }
2530
2570
  );
2531
2571
  }
2532
- var Lt = /* @__PURE__ */ new Map();
2533
- function tr(e) {
2534
- var t = e.getAttribute("is") || e.nodeName, n = Lt.get(t);
2572
+ var Ft = /* @__PURE__ */ new Map();
2573
+ function ir(e) {
2574
+ var t = e.getAttribute("is") || e.nodeName, n = Ft.get(t);
2535
2575
  if (n) return n;
2536
- Lt.set(t, n = []);
2576
+ Ft.set(t, n = []);
2537
2577
  for (var r, s = e, i = Element.prototype; i !== s; ) {
2538
- r = pr(s);
2539
- for (var a in r)
2540
- r[a].set && n.push(a);
2541
- s = on(s);
2578
+ r = hn(s);
2579
+ for (var f in r)
2580
+ r[f].set && n.push(f);
2581
+ s = Bt(s);
2542
2582
  }
2543
2583
  return n;
2544
2584
  }
2545
- function ui(e, t, n = t) {
2585
+ function di(e, t, n = t) {
2546
2586
  var r = /* @__PURE__ */ new WeakSet();
2547
2587
  ze(e, "input", async (s) => {
2548
2588
  var i = s ? e.defaultValue : e.value;
2549
- if (i = kt(e) ? Tt(i) : i, n(i), y !== null && r.add(y), await os(), i !== (i = t())) {
2550
- var a = e.selectionStart, f = e.selectionEnd, l = e.value.length;
2551
- if (e.value = i ?? "", f !== null) {
2589
+ if (i = Tt(e) ? At(i) : i, n(i), b !== null && r.add(b), await cs(), i !== (i = t())) {
2590
+ var f = e.selectionStart, a = e.selectionEnd, l = e.value.length;
2591
+ if (e.value = i ?? "", a !== null) {
2552
2592
  var u = e.value.length;
2553
- a === f && f === l && u > l ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = a, e.selectionEnd = Math.min(f, u));
2593
+ f === a && a === l && u > l ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = f, e.selectionEnd = Math.min(a, u));
2554
2594
  }
2555
2595
  }
2556
2596
  }), // If we are hydrating and the value has since changed,
2557
2597
  // then use the updated value from the input instead.
2558
2598
  (v && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
2559
2599
  // TODO Svelte 6: remove input.value check and set to empty string?
2560
- wt(t) == null && e.value) && (n(kt(e) ? Tt(e.value) : e.value), y !== null && r.add(y)), Fe(() => {
2600
+ $t(t) == null && e.value) && (n(Tt(e) ? At(e.value) : e.value), b !== null && r.add(b)), Fe(() => {
2561
2601
  var s = t();
2562
2602
  if (e === document.activeElement) {
2563
2603
  var i = (
2564
2604
  /** @type {Batch} */
2565
- He ?? y
2605
+ He ?? b
2566
2606
  );
2567
2607
  if (r.has(i))
2568
2608
  return;
2569
2609
  }
2570
- kt(e) && s === Tt(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
2610
+ Tt(e) && s === At(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
2571
2611
  });
2572
2612
  }
2573
- const St = /* @__PURE__ */ new Set();
2574
- function oi(e, t, n, r, s = r) {
2575
- var i = n.getAttribute("type") === "checkbox", a = e;
2576
- let f = !1;
2613
+ const kt = /* @__PURE__ */ new Set();
2614
+ function _i(e, t, n, r, s = r) {
2615
+ var i = n.getAttribute("type") === "checkbox", f = e;
2616
+ let a = !1;
2577
2617
  if (t !== null)
2578
2618
  for (var l of t)
2579
- a = a[l] ??= [];
2580
- a.push(n), ze(
2619
+ f = f[l] ??= [];
2620
+ f.push(n), ze(
2581
2621
  n,
2582
2622
  "change",
2583
2623
  () => {
2584
2624
  var u = n.__value;
2585
- i && (u = an(a, u, n.checked)), s(u);
2625
+ i && (u = ln(f, u, n.checked)), s(u);
2586
2626
  },
2587
2627
  // TODO better default value handling
2588
2628
  () => s(i ? [] : null)
2589
2629
  ), Fe(() => {
2590
2630
  var u = r();
2591
2631
  if (v && n.defaultChecked !== n.checked) {
2592
- f = !0;
2632
+ a = !0;
2593
2633
  return;
2594
2634
  }
2595
- i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked = xn(n.__value, u);
2596
- }), gt(() => {
2597
- var u = a.indexOf(n);
2598
- u !== -1 && a.splice(u, 1);
2599
- }), St.has(a) || (St.add(a), de(() => {
2600
- a.sort((u, c) => u.compareDocumentPosition(c) === 4 ? -1 : 1), St.delete(a);
2601
- })), de(() => {
2602
- if (f) {
2635
+ i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked = Cn(n.__value, u);
2636
+ }), yt(() => {
2637
+ var u = f.indexOf(n);
2638
+ u !== -1 && f.splice(u, 1);
2639
+ }), kt.has(f) || (kt.add(f), _e(() => {
2640
+ f.sort((u, c) => u.compareDocumentPosition(c) === 4 ? -1 : 1), kt.delete(f);
2641
+ })), _e(() => {
2642
+ if (a) {
2603
2643
  var u;
2604
2644
  if (i)
2605
- u = an(a, u, n.checked);
2645
+ u = ln(f, u, n.checked);
2606
2646
  else {
2607
- var c = a.find((_) => _.checked);
2647
+ var c = f.find((_) => _.checked);
2608
2648
  u = c?.__value;
2609
2649
  }
2610
2650
  s(u);
2611
2651
  }
2612
2652
  });
2613
2653
  }
2614
- function ci(e, t, n = t) {
2654
+ function vi(e, t, n = t) {
2615
2655
  ze(e, "change", (r) => {
2616
2656
  var s = r ? e.defaultChecked : e.checked;
2617
2657
  n(s);
2618
2658
  }), // If we are hydrating and the value has since changed,
2619
2659
  // then use the update value from the input instead.
2620
2660
  (v && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
2621
- wt(t) == null) && n(e.checked), Fe(() => {
2661
+ $t(t) == null) && n(e.checked), Fe(() => {
2622
2662
  var r = t();
2623
2663
  e.checked = !!r;
2624
2664
  });
2625
2665
  }
2626
- function an(e, t, n) {
2666
+ function ln(e, t, n) {
2627
2667
  for (var r = /* @__PURE__ */ new Set(), s = 0; s < e.length; s += 1)
2628
2668
  e[s].checked && r.add(e[s].__value);
2629
2669
  return n || r.delete(t), Array.from(r);
2630
2670
  }
2631
- function kt(e) {
2671
+ function Tt(e) {
2632
2672
  var t = e.type;
2633
2673
  return t === "number" || t === "range";
2634
2674
  }
2635
- function Tt(e) {
2675
+ function At(e) {
2636
2676
  return e === "" ? null : +e;
2637
2677
  }
2638
- function hi(e, t, n = t) {
2678
+ function pi(e, t, n = t) {
2639
2679
  ze(e, "change", () => {
2640
2680
  n(e.files);
2641
2681
  }), // If we are hydrating and the value has since changed,
@@ -2645,7 +2685,7 @@ function hi(e, t, n = t) {
2645
2685
  });
2646
2686
  }
2647
2687
  let Qe = !1;
2648
- function ks(e) {
2688
+ function Ts(e) {
2649
2689
  var t = Qe;
2650
2690
  try {
2651
2691
  return Qe = !1, [e(), Qe];
@@ -2653,27 +2693,27 @@ function ks(e) {
2653
2693
  Qe = t;
2654
2694
  }
2655
2695
  }
2656
- function di(e, t, n, r) {
2657
- var s = !Ge || (n & lr) !== 0, i = (n & or) !== 0, a = (n & cr) !== 0, f = (
2696
+ function mi(e, t, n, r) {
2697
+ var s = !Ge || (n & hr) !== 0, i = (n & _r) !== 0, f = (n & vr) !== 0, a = (
2658
2698
  /** @type {V} */
2659
2699
  r
2660
- ), l = !0, u = () => (l && (l = !1, f = a ? wt(
2700
+ ), l = !0, u = () => (l && (l = !1, a = f ? $t(
2661
2701
  /** @type {() => V} */
2662
2702
  r
2663
2703
  ) : (
2664
2704
  /** @type {V} */
2665
2705
  r
2666
- )), f), c;
2706
+ )), a), c;
2667
2707
  if (i) {
2668
- var _ = Ne in e || hn in e;
2669
- c = ge(e, t)?.set ?? (_ && t in e ? (k) => e[t] = k : void 0);
2708
+ var _ = he in e || vn in e;
2709
+ c = ye(e, t)?.set ?? (_ && t in e ? (k) => e[t] = k : void 0);
2670
2710
  }
2671
2711
  var h, d = !1;
2672
- i ? [h, d] = ks(() => (
2712
+ i ? [h, d] = Ts(() => (
2673
2713
  /** @type {V} */
2674
2714
  e[t]
2675
2715
  )) : h = /** @type {V} */
2676
- e[t], h === void 0 && r !== void 0 && (h = u(), c && (s && Cr(), c(h)));
2716
+ e[t], h === void 0 && r !== void 0 && (h = u(), c && (s && Rr(), c(h)));
2677
2717
  var o;
2678
2718
  if (s ? o = () => {
2679
2719
  var k = (
@@ -2686,20 +2726,20 @@ function di(e, t, n, r) {
2686
2726
  /** @type {V} */
2687
2727
  e[t]
2688
2728
  );
2689
- return k !== void 0 && (f = /** @type {V} */
2690
- void 0), k === void 0 ? f : k;
2691
- }, s && (n & ur) === 0)
2729
+ return k !== void 0 && (a = /** @type {V} */
2730
+ void 0), k === void 0 ? a : k;
2731
+ }, s && (n & dr) === 0)
2692
2732
  return o;
2693
2733
  if (c) {
2694
2734
  var g = e.$$legacy;
2695
2735
  return (
2696
2736
  /** @type {() => V} */
2697
- (function(k, q) {
2698
- return arguments.length > 0 ? ((!s || !q || g || d) && c(q ? o() : k), k) : o();
2737
+ (function(k, j) {
2738
+ return arguments.length > 0 ? ((!s || !j || g || d) && c(j ? o() : k), k) : o();
2699
2739
  })
2700
2740
  );
2701
2741
  }
2702
- var b = !1, E = ((n & fr) !== 0 ? pt : Ut)(() => (b = !1, o()));
2742
+ var $ = !1, E = ((n & cr) !== 0 ? mt : Yt)(() => ($ = !1, o()));
2703
2743
  i && M(E);
2704
2744
  var T = (
2705
2745
  /** @type {Effect} */
@@ -2707,19 +2747,19 @@ function di(e, t, n, r) {
2707
2747
  );
2708
2748
  return (
2709
2749
  /** @type {() => V} */
2710
- (function(k, q) {
2750
+ (function(k, j) {
2711
2751
  if (arguments.length > 0) {
2712
- const x = q ? M(E) : s && i ? xe(k) : k;
2713
- return Q(E, x), b = !0, f !== void 0 && (f = x), k;
2752
+ const x = j ? M(E) : s && i ? Ne(k) : k;
2753
+ return ee(E, x), $ = !0, a !== void 0 && (a = x), k;
2714
2754
  }
2715
- return ke && b || (T.f & fe) !== 0 ? E.v : M(E);
2755
+ return Te && $ || (T.f & ae) !== 0 ? E.v : M(E);
2716
2756
  })
2717
2757
  );
2718
2758
  }
2719
- function Ts(e) {
2720
- return new As(e);
2759
+ function As(e) {
2760
+ return new xs(e);
2721
2761
  }
2722
- class As {
2762
+ class xs {
2723
2763
  /** @type {any} */
2724
2764
  #t;
2725
2765
  /** @type {Record<string, any>} */
@@ -2730,40 +2770,40 @@ class As {
2730
2770
  * }} options
2731
2771
  */
2732
2772
  constructor(t) {
2733
- var n = /* @__PURE__ */ new Map(), r = (i, a) => {
2734
- var f = /* @__PURE__ */ Tn(a, !1, !1);
2735
- return n.set(i, f), f;
2773
+ var n = /* @__PURE__ */ new Map(), r = (i, f) => {
2774
+ var a = /* @__PURE__ */ Nn(f, !1, !1);
2775
+ return n.set(i, a), a;
2736
2776
  };
2737
2777
  const s = new Proxy(
2738
2778
  { ...t.props || {}, $$events: {} },
2739
2779
  {
2740
- get(i, a) {
2741
- return M(n.get(a) ?? r(a, Reflect.get(i, a)));
2780
+ get(i, f) {
2781
+ return M(n.get(f) ?? r(f, Reflect.get(i, f)));
2742
2782
  },
2743
- has(i, a) {
2744
- return a === hn ? !0 : (M(n.get(a) ?? r(a, Reflect.get(i, a))), Reflect.has(i, a));
2783
+ has(i, f) {
2784
+ return f === vn ? !0 : (M(n.get(f) ?? r(f, Reflect.get(i, f))), Reflect.has(i, f));
2745
2785
  },
2746
- set(i, a, f) {
2747
- return Q(n.get(a) ?? r(a, f), f), Reflect.set(i, a, f);
2786
+ set(i, f, a) {
2787
+ return ee(n.get(f) ?? r(f, a), a), Reflect.set(i, f, a);
2748
2788
  }
2749
2789
  }
2750
2790
  );
2751
- this.#e = (t.hydrate ? ms : Jn)(t.component, {
2791
+ this.#e = (t.hydrate ? gs : er)(t.component, {
2752
2792
  target: t.target,
2753
2793
  anchor: t.anchor,
2754
2794
  props: s,
2755
2795
  context: t.context,
2756
2796
  intro: t.intro ?? !1,
2757
2797
  recover: t.recover
2758
- }), (!t?.props?.$$host || t.sync === !1) && wn(), this.#t = s.$$events;
2798
+ }), (!t?.props?.$$host || t.sync === !1) && En(), this.#t = s.$$events;
2759
2799
  for (const i of Object.keys(this.#e))
2760
2800
  i === "$set" || i === "$destroy" || i === "$on" || Ie(this, i, {
2761
2801
  get() {
2762
2802
  return this.#e[i];
2763
2803
  },
2764
2804
  /** @param {any} value */
2765
- set(a) {
2766
- this.#e[i] = a;
2805
+ set(f) {
2806
+ this.#e[i] = f;
2767
2807
  },
2768
2808
  enumerable: !0
2769
2809
  });
@@ -2771,7 +2811,7 @@ class As {
2771
2811
  (i) => {
2772
2812
  Object.assign(s, i);
2773
2813
  }, this.#e.$destroy = () => {
2774
- gs(this.#e);
2814
+ ys(this.#e);
2775
2815
  };
2776
2816
  }
2777
2817
  /** @param {Record<string, any>} props */
@@ -2797,8 +2837,8 @@ class As {
2797
2837
  this.#e.$destroy();
2798
2838
  }
2799
2839
  }
2800
- let nr;
2801
- typeof HTMLElement == "function" && (nr = class extends HTMLElement {
2840
+ let fr;
2841
+ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
2802
2842
  /** The Svelte component constructor */
2803
2843
  $$ctor;
2804
2844
  /** Slots */
@@ -2855,12 +2895,12 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
2855
2895
  let e = function(r) {
2856
2896
  return (s) => {
2857
2897
  const i = document.createElement("slot");
2858
- r !== "default" && (i.name = r), _s(s, i);
2898
+ r !== "default" && (i.name = r), vs(s, i);
2859
2899
  };
2860
2900
  };
2861
2901
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2862
2902
  return;
2863
- const t = {}, n = xs(this);
2903
+ const t = {}, n = Ns(this);
2864
2904
  for (const r of this.$$s)
2865
2905
  r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2866
2906
  for (const r of this.attributes) {
@@ -2869,7 +2909,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
2869
2909
  }
2870
2910
  for (const r in this.$$p_d)
2871
2911
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
2872
- this.$$c = Ts({
2912
+ this.$$c = As({
2873
2913
  component: this.$$ctor,
2874
2914
  target: this.shadowRoot || this,
2875
2915
  props: {
@@ -2877,7 +2917,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
2877
2917
  $$slots: t,
2878
2918
  $$host: this
2879
2919
  }
2880
- }), this.$$me = rs(() => {
2920
+ }), this.$$me = ss(() => {
2881
2921
  Fe(() => {
2882
2922
  this.$$r = !0;
2883
2923
  for (const r of tt(this.$$c)) {
@@ -2956,7 +2996,7 @@ function et(e, t, n, r) {
2956
2996
  return t;
2957
2997
  }
2958
2998
  }
2959
- function xs(e) {
2999
+ function Ns(e) {
2960
3000
  const t = {};
2961
3001
  return e.childNodes.forEach((n) => {
2962
3002
  t[
@@ -2965,125 +3005,131 @@ function xs(e) {
2965
3005
  ] = !0;
2966
3006
  }), t;
2967
3007
  }
2968
- function _i(e, t, n, r, s, i) {
2969
- let a = class extends nr {
3008
+ function gi(e, t, n, r, s, i) {
3009
+ let f = class extends fr {
2970
3010
  constructor() {
2971
3011
  super(e, n, s), this.$$p_d = t;
2972
3012
  }
2973
3013
  static get observedAttributes() {
2974
3014
  return tt(t).map(
2975
- (f) => (t[f].attribute || f).toLowerCase()
3015
+ (a) => (t[a].attribute || a).toLowerCase()
2976
3016
  );
2977
3017
  }
2978
3018
  };
2979
- return tt(t).forEach((f) => {
2980
- Ie(a.prototype, f, {
3019
+ return tt(t).forEach((a) => {
3020
+ Ie(f.prototype, a, {
2981
3021
  get() {
2982
- return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
3022
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2983
3023
  },
2984
3024
  set(l) {
2985
- l = et(f, l, t), this.$$d[f] = l;
3025
+ l = et(a, l, t), this.$$d[a] = l;
2986
3026
  var u = this.$$c;
2987
3027
  if (u) {
2988
- var c = ge(u, f)?.get;
2989
- c ? u[f] = l : u.$set({ [f]: l });
3028
+ var c = ye(u, a)?.get;
3029
+ c ? u[a] = l : u.$set({ [a]: l });
2990
3030
  }
2991
3031
  }
2992
3032
  });
2993
- }), r.forEach((f) => {
2994
- Ie(a.prototype, f, {
3033
+ }), r.forEach((a) => {
3034
+ Ie(f.prototype, a, {
2995
3035
  get() {
2996
- return this.$$c?.[f];
3036
+ return this.$$c?.[a];
2997
3037
  }
2998
3038
  });
2999
3039
  }), e.element = /** @type {any} */
3000
- a, a;
3040
+ f, f;
3001
3041
  }
3002
3042
  export {
3003
- Xs as $,
3004
- dt as A,
3005
- $s as B,
3043
+ ii as $,
3044
+ _t as A,
3045
+ ws as B,
3006
3046
  De as C,
3007
3047
  Re as D,
3008
- ct as E,
3009
- ne as F,
3010
- zn as G,
3048
+ ht as E,
3049
+ re as F,
3050
+ Qn as G,
3011
3051
  lt as H,
3012
- re as I,
3013
- mt as J,
3052
+ se as I,
3053
+ gt as J,
3014
3054
  Cs as K,
3015
- Os as L,
3016
- Mn as M,
3055
+ Rs as L,
3056
+ jn as M,
3017
3057
  Fe as N,
3018
- _i as O,
3019
- di as P,
3020
- Qs as Q,
3021
- Hs as R,
3022
- Ne as S,
3023
- Ns as T,
3058
+ Ks as O,
3059
+ br as P,
3060
+ Ps as Q,
3061
+ M as R,
3062
+ he as S,
3063
+ Os as T,
3024
3064
  N as U,
3025
- ti as V,
3026
- _s as W,
3027
- Br as X,
3028
- jr as Y,
3029
- M as Z,
3030
- qs as _,
3065
+ Js as V,
3066
+ mt as W,
3067
+ gi as X,
3068
+ mi as Y,
3069
+ ri as Z,
3070
+ Vs as _,
3031
3071
  Ge as a,
3032
- Bs as a0,
3033
- Ms as a1,
3034
- Mt as a2,
3035
- zs as a3,
3036
- si as a4,
3037
- Js as a5,
3038
- Ks as a6,
3039
- oe as a7,
3040
- Q as a8,
3041
- Us as a9,
3072
+ vs as a0,
3073
+ Ur as a1,
3074
+ Hr as a2,
3075
+ Bs as a3,
3076
+ ti as a4,
3077
+ Us as a5,
3078
+ Ds as a6,
3079
+ Dt as a7,
3080
+ Qs as a8,
3081
+ li as a9,
3082
+ ci as aA,
3083
+ ui as aB,
3042
3084
  ei as aa,
3043
- ri as ab,
3044
- ni as ac,
3045
- xe as ad,
3046
- Ds as ae,
3047
- Fs as af,
3085
+ Zs as ab,
3086
+ oe as ac,
3087
+ ee as ad,
3088
+ Ys as ae,
3089
+ si as af,
3048
3090
  ai as ag,
3049
- Dr as ah,
3050
- oi as ai,
3051
- li as aj,
3052
- Is as ak,
3053
- Zs as al,
3054
- ui as am,
3055
- Ls as an,
3056
- Qt as ao,
3057
- Gs as ap,
3058
- hi as aq,
3059
- ci as ar,
3060
- js as as,
3061
- Vs as at,
3062
- fi as au,
3063
- ii as av,
3064
- Wt as b,
3091
+ fi as ah,
3092
+ Ne as ai,
3093
+ js as aj,
3094
+ qs as ak,
3095
+ oi as al,
3096
+ jr as am,
3097
+ _i as an,
3098
+ hi as ao,
3099
+ Ms as ap,
3100
+ ni as aq,
3101
+ Fs as ar,
3102
+ Yt as as,
3103
+ tn as at,
3104
+ Xs as au,
3105
+ di as av,
3106
+ pi as aw,
3107
+ vi as ax,
3108
+ Hs as ay,
3109
+ Ws as az,
3110
+ Kt as b,
3065
3111
  A as c,
3066
- wt as d,
3067
- _t as e,
3068
- Rs as f,
3112
+ $t as d,
3113
+ vt as e,
3114
+ Is as f,
3069
3115
  rt as g,
3070
3116
  v as h,
3071
3117
  Ke as i,
3072
3118
  B as j,
3073
3119
  Le as k,
3074
- Er as l,
3075
- ye as m,
3076
- Tn as n,
3077
- Xr as o,
3120
+ kr as l,
3121
+ Ee as m,
3122
+ Nn as n,
3123
+ Qr as o,
3078
3124
  Ct as p,
3079
- de as q,
3125
+ _e as q,
3080
3126
  Ue as r,
3081
- O as s,
3082
- wn as t,
3083
- Ys as u,
3084
- Ws as v,
3127
+ C as s,
3128
+ En as t,
3129
+ Gs as u,
3130
+ zs as v,
3085
3131
  m as w,
3086
- fs as x,
3132
+ ls as x,
3087
3133
  w as y,
3088
- se as z
3134
+ ie as z
3089
3135
  };