@nil-/xit 0.2.2 → 0.2.4

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