@everymatrix/loyalty-rakeback 0.1.15 → 0.1.18

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,20 +1,20 @@
1
- var Ea = Object.defineProperty, xa = Object.defineProperties;
2
- var wa = Object.getOwnPropertyDescriptors;
3
- var ci = Object.getOwnPropertySymbols;
4
- var Sa = Object.prototype.hasOwnProperty, Ta = Object.prototype.propertyIsEnumerable;
5
- var di = (e) => {
1
+ var xa = Object.defineProperty, wa = Object.defineProperties;
2
+ var Sa = Object.getOwnPropertyDescriptors;
3
+ var pi = Object.getOwnPropertySymbols;
4
+ var Ta = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable;
5
+ var vi = (e) => {
6
6
  throw TypeError(e);
7
7
  };
8
- var bn = (e, t, r) => t in e ? Ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rr = (e, t) => {
8
+ var _n = (e, t, r) => t in e ? xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pr = (e, t) => {
9
9
  for (var r in t || (t = {}))
10
- Sa.call(t, r) && bn(e, r, t[r]);
11
- if (ci)
12
- for (var r of ci(t))
13
- Ta.call(t, r) && bn(e, r, t[r]);
10
+ Ta.call(t, r) && _n(e, r, t[r]);
11
+ if (pi)
12
+ for (var r of pi(t))
13
+ Ha.call(t, r) && _n(e, r, t[r]);
14
14
  return e;
15
- }, kr = (e, t) => xa(e, wa(t));
16
- var F = (e, t, r) => bn(e, typeof t != "symbol" ? t + "" : t, r), gn = (e, t, r) => t.has(e) || di("Cannot " + r);
17
- var f = (e, t, r) => (gn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), A = (e, t, r) => t.has(e) ? di("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), w = (e, t, r, n) => (gn(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), $ = (e, t, r) => (gn(e, t, "access private method"), r);
15
+ }, Rr = (e, t) => wa(e, Sa(t));
16
+ var F = (e, t, r) => _n(e, typeof t != "symbol" ? t + "" : t, r), bn = (e, t, r) => t.has(e) || vi("Cannot " + r);
17
+ var f = (e, t, r) => (bn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), A = (e, t, r) => t.has(e) ? vi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), w = (e, t, r, n) => (bn(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), O = (e, t, r) => (bn(e, t, "access private method"), r);
18
18
  var Bt = (e, t, r) => new Promise((n, i) => {
19
19
  var s = (u) => {
20
20
  try {
@@ -36,139 +36,139 @@ typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class
36
36
  }, get() {
37
37
  }, whenDefined() {
38
38
  } });
39
- const Ha = "5";
40
- var Fi, Gi, ji;
41
- typeof window != "undefined" && ((ji = (Gi = (Fi = window.__svelte) != null ? Fi : window.__svelte = {}).v) != null ? ji : Gi.v = /* @__PURE__ */ new Set()).add(Ha);
42
- const Aa = 2, Xi = "[", Wi = "[!", pi = "[?", Yi = "]", Wt = {}, Z = Symbol("uninitialized"), zi = !1;
43
- var $a = Array.isArray, Oa = Array.prototype.indexOf, qr = Array.prototype.includes, Ma = Array.from, Zr = Object.keys, _r = Object.defineProperty, It = Object.getOwnPropertyDescriptor, Ba = Object.prototype, Na = Array.prototype, Pa = Object.getPrototypeOf, vi = Object.isExtensible;
39
+ const Aa = "5";
40
+ var Gi, ji, Vi;
41
+ typeof window != "undefined" && ((Vi = (ji = (Gi = window.__svelte) != null ? Gi : window.__svelte = {}).v) != null ? Vi : ji.v = /* @__PURE__ */ new Set()).add(Aa);
42
+ const $a = 2, Wi = "[", Yi = "[!", mi = "[?", zi = "]", Wt = {}, Z = Symbol("uninitialized"), qi = !1;
43
+ var Oa = Array.isArray, Ma = Array.prototype.indexOf, zr = Array.prototype.includes, Ba = Array.from, qr = Object.keys, _r = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, Na = Object.prototype, Pa = Array.prototype, Ra = Object.getPrototypeOf, _i = Object.isExtensible;
44
44
  const Qe = () => {
45
45
  };
46
- function qi(e) {
46
+ function Zi(e) {
47
47
  for (var t = 0; t < e.length; t++)
48
48
  e[t]();
49
49
  }
50
- function Zi() {
50
+ function Ji() {
51
51
  var e, t, r = new Promise((n, i) => {
52
52
  e = n, t = i;
53
53
  });
54
54
  return { promise: r, resolve: e, reject: t };
55
55
  }
56
- const ee = 2, Yt = 4, Or = 8, Ji = 1 << 24, Pe = 16, Ce = 32, Ge = 64, Mn = 128, Se = 512, J = 1024, z = 2048, ke = 4096, Te = 8192, He = 16384, Ht = 32768, mi = 1 << 25, zt = 65536, Jr = 1 << 17, Ra = 1 << 18, At = 1 << 19, Qi = 1 << 20, St = 65536, Qr = 1 << 21, Lt = 1 << 22, ut = 1 << 23, yn = Symbol("$state"), ka = Symbol("legacy props"), Ca = Symbol("attributes"), Ia = Symbol("class"), La = Symbol("style"), ur = Symbol("text"), Mr = new class extends Error {
56
+ const ee = 2, Yt = 4, $r = 8, Qi = 1 << 24, Pe = 16, Ie = 32, Ge = 64, Bn = 128, we = 512, J = 1024, z = 2048, Ce = 4096, Se = 8192, Te = 16384, Ht = 32768, bi = 1 << 25, zt = 65536, Zr = 1 << 17, Ca = 1 << 18, At = 1 << 19, Ki = 1 << 20, St = 65536, Jr = 1 << 21, Lt = 1 << 22, ut = 1 << 23, gn = Symbol("$state"), Ia = Symbol("legacy props"), ka = Symbol("attributes"), La = Symbol("class"), Da = Symbol("style"), ur = Symbol("text"), Or = new class extends Error {
57
57
  constructor() {
58
58
  super(...arguments);
59
59
  F(this, "name", "StaleReactionError");
60
60
  F(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
61
61
  }
62
- }(), ln = 3, fn = 8;
63
- function Da() {
62
+ }(), un = 3, ln = 8;
63
+ function Ua() {
64
64
  throw new Error("https://svelte.dev/e/async_derived_orphan");
65
65
  }
66
- function Ua(e) {
66
+ function Fa(e) {
67
67
  throw new Error("https://svelte.dev/e/effect_in_teardown");
68
68
  }
69
- function Fa() {
69
+ function Ga() {
70
70
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
71
71
  }
72
- function Ga(e) {
72
+ function ja(e) {
73
73
  throw new Error("https://svelte.dev/e/effect_orphan");
74
74
  }
75
- function ja() {
75
+ function Va() {
76
76
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
77
77
  }
78
- function Va() {
78
+ function Xa() {
79
79
  throw new Error("https://svelte.dev/e/hydration_failed");
80
80
  }
81
- function Xa() {
81
+ function Wa() {
82
82
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
83
83
  }
84
- function Wa() {
84
+ function Ya() {
85
85
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
86
86
  }
87
- function Ya() {
87
+ function za() {
88
88
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
89
89
  }
90
- function za() {
90
+ function qa() {
91
91
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
92
92
  }
93
- function qa() {
93
+ function Za() {
94
94
  console.warn("https://svelte.dev/e/derived_inert");
95
95
  }
96
- function hn(e) {
96
+ function fn(e) {
97
97
  console.warn("https://svelte.dev/e/hydration_mismatch");
98
98
  }
99
- function Za() {
99
+ function Ja() {
100
100
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
101
101
  }
102
102
  let q = !1;
103
- function kt(e) {
103
+ function Ct(e) {
104
104
  q = e;
105
105
  }
106
- let k;
107
- function Ie(e) {
106
+ let C;
107
+ function ke(e) {
108
108
  if (e === null)
109
- throw hn(), Wt;
110
- return k = e;
109
+ throw fn(), Wt;
110
+ return C = e;
111
111
  }
112
- function Jn() {
113
- return Ie(/* @__PURE__ */ tt(k));
112
+ function Kn() {
113
+ return ke(/* @__PURE__ */ et(C));
114
114
  }
115
115
  function Cr(e) {
116
116
  if (q) {
117
- if (/* @__PURE__ */ tt(k) !== null)
118
- throw hn(), Wt;
119
- k = e;
117
+ if (/* @__PURE__ */ et(C) !== null)
118
+ throw fn(), Wt;
119
+ C = e;
120
120
  }
121
121
  }
122
- function Ja(e = 1) {
122
+ function Qa(e = 1) {
123
123
  if (q) {
124
- for (var t = e, r = k; t--; )
124
+ for (var t = e, r = C; t--; )
125
125
  r = /** @type {TemplateNode} */
126
- /* @__PURE__ */ tt(r);
127
- k = r;
126
+ /* @__PURE__ */ et(r);
127
+ C = r;
128
128
  }
129
129
  }
130
- function Ki(e = !0) {
131
- for (var t = 0, r = k; ; ) {
132
- if (r.nodeType === fn) {
130
+ function es(e = !0) {
131
+ for (var t = 0, r = C; ; ) {
132
+ if (r.nodeType === ln) {
133
133
  var n = (
134
134
  /** @type {Comment} */
135
135
  r.data
136
136
  );
137
- if (n === Yi) {
137
+ if (n === zi) {
138
138
  if (t === 0) return r;
139
139
  t -= 1;
140
- } else (n === Xi || n === Wi || // "[1", "[2", etc. for if blocks
140
+ } else (n === Wi || n === Yi || // "[1", "[2", etc. for if blocks
141
141
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
142
142
  }
143
143
  var i = (
144
144
  /** @type {TemplateNode} */
145
- /* @__PURE__ */ tt(r)
145
+ /* @__PURE__ */ et(r)
146
146
  );
147
147
  e && r.remove(), r = i;
148
148
  }
149
149
  }
150
- function Qa(e) {
151
- if (!e || e.nodeType !== fn)
152
- throw hn(), Wt;
150
+ function Ka(e) {
151
+ if (!e || e.nodeType !== ln)
152
+ throw fn(), Wt;
153
153
  return (
154
154
  /** @type {Comment} */
155
155
  e.data
156
156
  );
157
157
  }
158
- function es(e) {
158
+ function ts(e) {
159
159
  return e === this.v;
160
160
  }
161
- function ts(e, t) {
161
+ function rs(e, t) {
162
162
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
163
163
  }
164
- function Ka(e) {
165
- return !ts(e, this.v);
164
+ function eo(e) {
165
+ return !rs(e, this.v);
166
166
  }
167
- let eo = !1, ce = null;
167
+ let to = !1, ce = null;
168
168
  function qt(e) {
169
169
  ce = e;
170
170
  }
171
- function Qn(e, t = !1, r) {
171
+ function ei(e, t = !1, r) {
172
172
  ce = {
173
173
  p: ce,
174
174
  i: !1,
@@ -178,12 +178,12 @@ function Qn(e, t = !1, r) {
178
178
  x: null,
179
179
  r: (
180
180
  /** @type {Effect} */
181
- M
181
+ $
182
182
  ),
183
183
  l: null
184
184
  };
185
185
  }
186
- function Kn(e) {
186
+ function ti(e) {
187
187
  var t = (
188
188
  /** @type {ComponentContext} */
189
189
  ce
@@ -191,46 +191,46 @@ function Kn(e) {
191
191
  if (r !== null) {
192
192
  t.e = null;
193
193
  for (var n of r)
194
- Hs(n);
194
+ As(n);
195
195
  }
196
196
  return e !== void 0 && (t.x = e), t.i = !0, ce = t.p, e != null ? e : (
197
197
  /** @type {T} */
198
198
  {}
199
199
  );
200
200
  }
201
- function rs() {
201
+ function ns() {
202
202
  return !0;
203
203
  }
204
- let dt = [];
205
- function ns() {
206
- var e = dt;
207
- dt = [], qi(e);
204
+ let pt = [];
205
+ function is() {
206
+ var e = pt;
207
+ pt = [], Zi(e);
208
208
  }
209
- function pt(e) {
210
- if (dt.length === 0 && !pr) {
211
- var t = dt;
209
+ function vt(e) {
210
+ if (pt.length === 0 && !pr) {
211
+ var t = pt;
212
212
  queueMicrotask(() => {
213
- t === dt && ns();
213
+ t === pt && is();
214
214
  });
215
215
  }
216
- dt.push(e);
216
+ pt.push(e);
217
217
  }
218
- function to() {
219
- for (; dt.length > 0; )
220
- ns();
218
+ function ro() {
219
+ for (; pt.length > 0; )
220
+ is();
221
221
  }
222
- function is(e) {
223
- var t = M;
222
+ function ss(e) {
223
+ var t = $;
224
224
  if (t === null)
225
- return O.f |= ut, e;
225
+ return M.f |= ut, e;
226
226
  if (!(t.f & Ht) && !(t.f & Yt))
227
227
  throw e;
228
228
  st(e, t);
229
229
  }
230
230
  function st(e, t) {
231
- if (!(t !== null && t.f & He)) {
231
+ if (!(t !== null && t.f & Te)) {
232
232
  for (; t !== null; ) {
233
- if (t.f & Mn) {
233
+ if (t.f & Bn) {
234
234
  if (!(t.f & Ht))
235
235
  throw e;
236
236
  try {
@@ -245,28 +245,28 @@ function st(e, t) {
245
245
  throw e;
246
246
  }
247
247
  }
248
- const ro = -7169;
248
+ const no = -7169;
249
249
  function X(e, t) {
250
- e.f = e.f & ro | t;
250
+ e.f = e.f & no | t;
251
251
  }
252
- function ei(e) {
253
- e.f & Se || e.deps === null ? X(e, J) : X(e, ke);
252
+ function ri(e) {
253
+ e.f & we || e.deps === null ? X(e, J) : X(e, Ce);
254
254
  }
255
- function ss(e) {
255
+ function as(e) {
256
256
  if (e !== null)
257
257
  for (const t of e)
258
- !(t.f & ee) || !(t.f & St) || (t.f ^= St, ss(
258
+ !(t.f & ee) || !(t.f & St) || (t.f ^= St, as(
259
259
  /** @type {Derived} */
260
260
  t.deps
261
261
  ));
262
262
  }
263
- function as(e, t, r) {
264
- e.f & z ? t.add(e) : e.f & ke && r.add(e), ss(e.deps), X(e, J);
263
+ function os(e, t, r) {
264
+ e.f & z ? t.add(e) : e.f & Ce && r.add(e), as(e.deps), X(e, J);
265
265
  }
266
- function ti(e, t, r) {
266
+ function ni(e, t, r) {
267
267
  if (e == null)
268
268
  return t(void 0), r && r(void 0), Qe;
269
- const n = Fs(
269
+ const n = Gs(
270
270
  () => e.subscribe(
271
271
  t,
272
272
  // @ts-expect-error
@@ -276,16 +276,16 @@ function ti(e, t, r) {
276
276
  return n.unsubscribe ? () => n.unsubscribe() : n;
277
277
  }
278
278
  const Nt = [];
279
- function no(e, t) {
279
+ function io(e, t) {
280
280
  return {
281
- subscribe: cn(e, t).subscribe
281
+ subscribe: hn(e, t).subscribe
282
282
  };
283
283
  }
284
- function cn(e, t = Qe) {
284
+ function hn(e, t = Qe) {
285
285
  let r = null;
286
286
  const n = /* @__PURE__ */ new Set();
287
287
  function i(a) {
288
- if (ts(e, a) && (e = a, r)) {
288
+ if (rs(e, a) && (e = a, r)) {
289
289
  const u = !Nt.length;
290
290
  for (const l of n)
291
291
  l[1](), Nt.push(l, e);
@@ -318,7 +318,7 @@ function tr(e, t, r) {
318
318
  if (!i.every(Boolean))
319
319
  throw new Error("derived() expects stores as input, got a falsy value");
320
320
  const s = t.length < 2;
321
- return no(r, (o, a) => {
321
+ return io(r, (o, a) => {
322
322
  let u = !1;
323
323
  const l = [];
324
324
  let h = 0, d = Qe;
@@ -329,7 +329,7 @@ function tr(e, t, r) {
329
329
  const v = t(n ? l[0] : l, o, a);
330
330
  s ? o(v) : d = typeof v == "function" ? v : Qe;
331
331
  }, p = i.map(
332
- (v, g) => ti(
332
+ (v, g) => ni(
333
333
  v,
334
334
  (P) => {
335
335
  l[g] = P, h &= ~(1 << g), u && c();
@@ -340,40 +340,40 @@ function tr(e, t, r) {
340
340
  )
341
341
  );
342
342
  return u = !0, c(), function() {
343
- qi(p), d(), u = !1;
343
+ Zi(p), d(), u = !1;
344
344
  };
345
345
  });
346
346
  }
347
- function io(e) {
347
+ function so(e) {
348
348
  let t;
349
- return ti(e, (r) => t = r)(), t;
349
+ return ni(e, (r) => t = r)(), t;
350
350
  }
351
- let Bn = Symbol("unmounted");
352
- function so(e, t, r) {
351
+ let Nn = Symbol("unmounted");
352
+ function ao(e, t, r) {
353
353
  var s;
354
354
  const n = (s = r[t]) != null ? s : r[t] = {
355
355
  store: null,
356
- source: /* @__PURE__ */ gs(void 0),
356
+ source: /* @__PURE__ */ ys(void 0),
357
357
  unsubscribe: Qe
358
358
  };
359
- if (n.store !== e && !(Bn in r))
359
+ if (n.store !== e && !(Nn in r))
360
360
  if (n.unsubscribe(), n.store = e != null ? e : null, e == null)
361
361
  n.source.v = void 0, n.unsubscribe = Qe;
362
362
  else {
363
363
  var i = !0;
364
- n.unsubscribe = ti(e, (o) => {
364
+ n.unsubscribe = ni(e, (o) => {
365
365
  i ? n.source.v = o : te(n.source, o);
366
366
  }), i = !1;
367
367
  }
368
- return e && Bn in r ? io(e) : C(n.source);
368
+ return e && Nn in r ? so(e) : I(n.source);
369
369
  }
370
- function ao() {
370
+ function oo() {
371
371
  const e = {};
372
372
  function t() {
373
- Ts(() => {
373
+ Hs(() => {
374
374
  for (var r in e)
375
375
  e[r].unsubscribe();
376
- _r(e, Bn, {
376
+ _r(e, Nn, {
377
377
  enumerable: !1,
378
378
  value: !0
379
379
  });
@@ -381,31 +381,31 @@ function ao() {
381
381
  }
382
382
  return [e, t];
383
383
  }
384
- function dn(e) {
385
- var t = O, r = M;
386
- $e(null), je(null);
384
+ function cn(e) {
385
+ var t = M, r = $;
386
+ Ae(null), je(null);
387
387
  try {
388
388
  return e();
389
389
  } finally {
390
- $e(t), je(r);
390
+ Ae(t), je(r);
391
391
  }
392
392
  }
393
- function oo(e) {
394
- let t = 0, r = Br(0), n;
393
+ function uo(e) {
394
+ let t = 0, r = Mr(0), n;
395
395
  return () => {
396
- ui() && (C(r), As(() => (t === 0 && (n = Fs(() => e(() => vr(r)))), t += 1, () => {
397
- pt(() => {
396
+ fi() && (I(r), $s(() => (t === 0 && (n = Gs(() => e(() => vr(r)))), t += 1, () => {
397
+ vt(() => {
398
398
  t -= 1, t === 0 && (n == null || n(), n = void 0, vr(r));
399
399
  });
400
400
  })));
401
401
  };
402
402
  }
403
- var uo = zt | At;
404
- function lo(e, t, r, n) {
405
- new fo(e, t, r, n);
403
+ var lo = zt | At;
404
+ function fo(e, t, r, n) {
405
+ new ho(e, t, r, n);
406
406
  }
407
- var ve, wr, ye, _t, le, Ee, ae, me, We, bt, nt, Dt, Sr, Tr, Ye, an, L, os, us, Nn, ls, Pn, Fr, Gr, Rn, kn;
408
- class fo {
407
+ var ve, wr, ge, bt, le, ye, ae, me, Xe, gt, nt, Dt, Sr, Tr, We, sn, L, us, ls, Pn, fs, Rn, Ur, Fr, Cn, In;
408
+ class ho {
409
409
  /**
410
410
  * @param {TemplateNode} node
411
411
  * @param {BoundaryProps} props
@@ -426,22 +426,22 @@ class fo {
426
426
  /** @type {TemplateNode} */
427
427
  A(this, ve);
428
428
  /** @type {TemplateNode | null} */
429
- A(this, wr, q ? k : null);
429
+ A(this, wr, q ? C : null);
430
430
  /** @type {BoundaryProps} */
431
- A(this, ye);
431
+ A(this, ge);
432
432
  /** @type {((anchor: Node) => void)} */
433
- A(this, _t);
433
+ A(this, bt);
434
434
  /** @type {Effect} */
435
435
  A(this, le);
436
436
  /** @type {Effect | null} */
437
- A(this, Ee, null);
437
+ A(this, ye, null);
438
438
  /** @type {Effect | null} */
439
439
  A(this, ae, null);
440
440
  /** @type {Effect | null} */
441
441
  A(this, me, null);
442
442
  /** @type {DocumentFragment | null} */
443
- A(this, We, null);
444
- A(this, bt, 0);
443
+ A(this, Xe, null);
444
+ A(this, gt, 0);
445
445
  A(this, nt, 0);
446
446
  A(this, Dt, !1);
447
447
  /** @type {Set<Effect>} */
@@ -455,40 +455,40 @@ class fo {
455
455
  * calls followed by no-op flushes
456
456
  * @type {Source<number> | null}
457
457
  */
458
- A(this, Ye, null);
459
- A(this, an, oo(() => (w(this, Ye, Br(f(this, bt))), () => {
460
- w(this, Ye, null);
458
+ A(this, We, null);
459
+ A(this, sn, uo(() => (w(this, We, Mr(f(this, gt))), () => {
460
+ w(this, We, null);
461
461
  })));
462
462
  var s, o;
463
- w(this, ve, t), w(this, ye, r), w(this, _t, (a) => {
463
+ w(this, ve, t), w(this, ge, r), w(this, bt, (a) => {
464
464
  var u = (
465
465
  /** @type {Effect} */
466
- M
466
+ $
467
467
  );
468
- u.b = this, u.f |= Mn, n(a);
468
+ u.b = this, u.f |= Bn, n(a);
469
469
  }), this.parent = /** @type {Effect} */
470
- M.b, this.transform_error = (o = i != null ? i : (s = this.parent) == null ? void 0 : s.transform_error) != null ? o : (a) => a, w(this, le, $s(() => {
470
+ $.b, this.transform_error = (o = i != null ? i : (s = this.parent) == null ? void 0 : s.transform_error) != null ? o : (a) => a, w(this, le, Os(() => {
471
471
  if (q) {
472
472
  const a = (
473
473
  /** @type {Comment} */
474
474
  f(this, wr)
475
475
  );
476
- Jn();
477
- const u = a.data === Wi;
478
- if (a.data.startsWith(pi)) {
479
- const h = JSON.parse(a.data.slice(pi.length));
480
- $(this, L, us).call(this, h);
481
- } else u ? $(this, L, ls).call(this) : $(this, L, os).call(this);
476
+ Kn();
477
+ const u = a.data === Yi;
478
+ if (a.data.startsWith(mi)) {
479
+ const h = JSON.parse(a.data.slice(mi.length));
480
+ O(this, L, ls).call(this, h);
481
+ } else u ? O(this, L, fs).call(this) : O(this, L, us).call(this);
482
482
  } else
483
- $(this, L, Pn).call(this);
484
- }, uo)), q && w(this, ve, k);
483
+ O(this, L, Rn).call(this);
484
+ }, lo)), q && w(this, ve, C);
485
485
  }
486
486
  /**
487
487
  * Defer an effect inside a pending boundary until the boundary resolves
488
488
  * @param {Effect} effect
489
489
  */
490
490
  defer_effect(t) {
491
- as(t, f(this, Sr), f(this, Tr));
491
+ os(t, f(this, Sr), f(this, Tr));
492
492
  }
493
493
  /**
494
494
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -498,7 +498,7 @@ class fo {
498
498
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
499
499
  }
500
500
  has_pending_snippet() {
501
- return !!f(this, ye).pending;
501
+ return !!f(this, ge).pending;
502
502
  }
503
503
  /**
504
504
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -508,37 +508,37 @@ class fo {
508
508
  * @param {Batch} batch
509
509
  */
510
510
  update_pending_count(t, r) {
511
- $(this, L, Rn).call(this, t, r), w(this, bt, f(this, bt) + t), !(!f(this, Ye) || f(this, Dt)) && (w(this, Dt, !0), pt(() => {
512
- w(this, Dt, !1), f(this, Ye) && tn(f(this, Ye), f(this, bt));
511
+ O(this, L, Cn).call(this, t, r), w(this, gt, f(this, gt) + t), !(!f(this, We) || f(this, Dt)) && (w(this, Dt, !0), vt(() => {
512
+ w(this, Dt, !1), f(this, We) && en(f(this, We), f(this, gt));
513
513
  }));
514
514
  }
515
515
  get_effect_pending() {
516
- return f(this, an).call(this), C(
516
+ return f(this, sn).call(this), I(
517
517
  /** @type {Source<number>} */
518
- f(this, Ye)
518
+ f(this, We)
519
519
  );
520
520
  }
521
521
  /** @param {unknown} error */
522
522
  error(t) {
523
- if (!f(this, ye).onerror && !f(this, ye).failed)
523
+ if (!f(this, ge).onerror && !f(this, ge).failed)
524
524
  throw t;
525
- H != null && H.is_fork ? (f(this, Ee) && H.skip_effect(f(this, Ee)), f(this, ae) && H.skip_effect(f(this, ae)), f(this, me) && H.skip_effect(f(this, me)), H.oncommit(() => {
526
- $(this, L, kn).call(this, t);
527
- })) : $(this, L, kn).call(this, t);
525
+ H != null && H.is_fork ? (f(this, ye) && H.skip_effect(f(this, ye)), f(this, ae) && H.skip_effect(f(this, ae)), f(this, me) && H.skip_effect(f(this, me)), H.oncommit(() => {
526
+ O(this, L, In).call(this, t);
527
+ })) : O(this, L, In).call(this, t);
528
528
  }
529
529
  }
530
- ve = new WeakMap(), wr = new WeakMap(), ye = new WeakMap(), _t = new WeakMap(), le = new WeakMap(), Ee = new WeakMap(), ae = new WeakMap(), me = new WeakMap(), We = new WeakMap(), bt = new WeakMap(), nt = new WeakMap(), Dt = new WeakMap(), Sr = new WeakMap(), Tr = new WeakMap(), Ye = new WeakMap(), an = new WeakMap(), L = new WeakSet(), os = function() {
530
+ ve = new WeakMap(), wr = new WeakMap(), ge = new WeakMap(), bt = new WeakMap(), le = new WeakMap(), ye = new WeakMap(), ae = new WeakMap(), me = new WeakMap(), Xe = new WeakMap(), gt = new WeakMap(), nt = new WeakMap(), Dt = new WeakMap(), Sr = new WeakMap(), Tr = new WeakMap(), We = new WeakMap(), sn = new WeakMap(), L = new WeakSet(), us = function() {
531
531
  try {
532
- w(this, Ee, Xe(() => f(this, _t).call(this, f(this, ve))));
532
+ w(this, ye, rt(() => f(this, bt).call(this, f(this, ve))));
533
533
  } catch (t) {
534
534
  this.error(t);
535
535
  }
536
536
  }, /**
537
537
  * @param {unknown} error The deserialized error from the server's hydration comment
538
538
  */
539
- us = function(t) {
540
- const r = f(this, ye).failed, { reset: n, invoke_onerror: i } = $(this, L, Nn).call(this, t);
541
- pt(i), r && w(this, me, Xe(() => {
539
+ ls = function(t) {
540
+ const r = f(this, ge).failed, { reset: n, invoke_onerror: i } = O(this, L, Pn).call(this, t);
541
+ vt(i), r && w(this, me, rt(() => {
542
542
  r(
543
543
  f(this, ve),
544
544
  () => t,
@@ -551,57 +551,57 @@ us = function(t) {
551
551
  * @param {unknown} error
552
552
  * @returns {{ reset: () => void, invoke_onerror: () => void }}
553
553
  */
554
- Nn = function(t) {
554
+ Pn = function(t) {
555
555
  var r = !1, n = !1;
556
556
  const i = () => {
557
557
  if (r) {
558
- Za();
558
+ Ja();
559
559
  return;
560
560
  }
561
- r = !0, n && za(), f(this, me) !== null && mr(f(this, me), () => {
561
+ r = !0, n && qa(), f(this, me) !== null && mr(f(this, me), () => {
562
562
  w(this, me, null);
563
- }), $(this, L, Gr).call(this, () => {
564
- $(this, L, Pn).call(this);
563
+ }), O(this, L, Fr).call(this, () => {
564
+ O(this, L, Rn).call(this);
565
565
  });
566
566
  };
567
567
  return { reset: i, invoke_onerror: () => {
568
568
  var o, a;
569
569
  try {
570
- n = !0, (a = (o = f(this, ye)).onerror) == null || a.call(o, t, i), n = !1;
570
+ n = !0, (a = (o = f(this, ge)).onerror) == null || a.call(o, t, i), n = !1;
571
571
  } catch (u) {
572
572
  st(u, f(this, le) && f(this, le).parent);
573
573
  }
574
574
  } };
575
- }, ls = function() {
576
- const t = f(this, ye).pending;
577
- t && (this.is_pending = !0, w(this, ae, Xe(() => t(f(this, ve)))), pt(() => {
578
- var r = w(this, We, document.createDocumentFragment()), n = Ke();
579
- r.append(n), w(this, Ee, $(this, L, Gr).call(this, () => Xe(() => f(this, _t).call(this, n)))), f(this, nt) === 0 && (f(this, ve).before(r), w(this, We, null), mr(
575
+ }, fs = function() {
576
+ const t = f(this, ge).pending;
577
+ t && (this.is_pending = !0, w(this, ae, rt(() => t(f(this, ve)))), vt(() => {
578
+ var r = w(this, Xe, document.createDocumentFragment()), n = ft();
579
+ r.append(n), w(this, ye, O(this, L, Fr).call(this, () => rt(() => f(this, bt).call(this, n)))), f(this, nt) === 0 && (f(this, ve).before(r), w(this, Xe, null), mr(
580
580
  /** @type {Effect} */
581
581
  f(this, ae),
582
582
  () => {
583
583
  w(this, ae, null);
584
584
  }
585
- ), $(this, L, Fr).call(
585
+ ), O(this, L, Ur).call(
586
586
  this,
587
587
  /** @type {Batch} */
588
588
  H
589
589
  ));
590
590
  }));
591
- }, Pn = function() {
591
+ }, Rn = function() {
592
592
  try {
593
- if (this.is_pending = this.has_pending_snippet(), w(this, nt, 0), w(this, bt, 0), w(this, Ee, Xe(() => {
594
- f(this, _t).call(this, f(this, ve));
593
+ if (this.is_pending = this.has_pending_snippet(), w(this, nt, 0), w(this, gt, 0), w(this, ye, rt(() => {
594
+ f(this, bt).call(this, f(this, ve));
595
595
  })), f(this, nt) > 0) {
596
- var t = w(this, We, document.createDocumentFragment());
597
- Ps(f(this, Ee), t);
596
+ var t = w(this, Xe, document.createDocumentFragment());
597
+ Rs(f(this, ye), t);
598
598
  const r = (
599
599
  /** @type {(anchor: Node) => void} */
600
- f(this, ye).pending
600
+ f(this, ge).pending
601
601
  );
602
- w(this, ae, Xe(() => r(f(this, ve))));
602
+ w(this, ae, rt(() => r(f(this, ve))));
603
603
  } else
604
- $(this, L, Fr).call(
604
+ O(this, L, Ur).call(
605
605
  this,
606
606
  /** @type {Batch} */
607
607
  H
@@ -612,21 +612,21 @@ Nn = function(t) {
612
612
  }, /**
613
613
  * @param {Batch} batch
614
614
  */
615
- Fr = function(t) {
615
+ Ur = function(t) {
616
616
  this.is_pending = !1, t.transfer_effects(f(this, Sr), f(this, Tr));
617
617
  }, /**
618
618
  * @template T
619
619
  * @param {() => T} fn
620
620
  */
621
- Gr = function(t) {
622
- var r = M, n = O, i = ce;
623
- je(f(this, le)), $e(f(this, le)), qt(f(this, le).ctx);
621
+ Fr = function(t) {
622
+ var r = $, n = M, i = ce;
623
+ je(f(this, le)), Ae(f(this, le)), qt(f(this, le).ctx);
624
624
  try {
625
625
  return lt.ensure(), t();
626
626
  } catch (s) {
627
- return is(s), null;
627
+ return ss(s), null;
628
628
  } finally {
629
- je(r), $e(n), qt(i);
629
+ je(r), Ae(n), qt(i);
630
630
  }
631
631
  }, /**
632
632
  * Updates the pending count associated with the currently visible pending snippet,
@@ -634,34 +634,34 @@ Gr = function(t) {
634
634
  * @param {1 | -1} d
635
635
  * @param {Batch} batch
636
636
  */
637
- Rn = function(t, r) {
637
+ Cn = function(t, r) {
638
638
  var n;
639
639
  if (!this.has_pending_snippet()) {
640
- this.parent && $(n = this.parent, L, Rn).call(n, t, r);
640
+ this.parent && O(n = this.parent, L, Cn).call(n, t, r);
641
641
  return;
642
642
  }
643
- w(this, nt, f(this, nt) + t), f(this, nt) === 0 && ($(this, L, Fr).call(this, r), f(this, ae) && mr(f(this, ae), () => {
643
+ w(this, nt, f(this, nt) + t), f(this, nt) === 0 && (O(this, L, Ur).call(this, r), f(this, ae) && mr(f(this, ae), () => {
644
644
  w(this, ae, null);
645
- }), f(this, We) && (f(this, ve).before(f(this, We)), w(this, We, null)));
645
+ }), f(this, Xe) && (f(this, ve).before(f(this, Xe)), w(this, Xe, null)));
646
646
  }, /**
647
647
  * @param {unknown} error
648
648
  */
649
- kn = function(t) {
650
- f(this, Ee) && (de(f(this, Ee)), w(this, Ee, null)), f(this, ae) && (de(f(this, ae)), w(this, ae, null)), f(this, me) && (de(f(this, me)), w(this, me, null)), q && (Ie(
649
+ In = function(t) {
650
+ f(this, ye) && (de(f(this, ye)), w(this, ye, null)), f(this, ae) && (de(f(this, ae)), w(this, ae, null)), f(this, me) && (de(f(this, me)), w(this, me, null)), q && (ke(
651
651
  /** @type {TemplateNode} */
652
652
  f(this, wr)
653
- ), Ja(), Ie(Ki()));
654
- let r = f(this, ye).failed;
653
+ ), Qa(), ke(es()));
654
+ let r = f(this, ge).failed;
655
655
  const n = (i) => {
656
- const { reset: s, invoke_onerror: o } = $(this, L, Nn).call(this, i);
657
- o(), r && w(this, me, $(this, L, Gr).call(this, () => {
656
+ const { reset: s, invoke_onerror: o } = O(this, L, Pn).call(this, i);
657
+ o(), r && w(this, me, O(this, L, Fr).call(this, () => {
658
658
  try {
659
- return Xe(() => {
659
+ return rt(() => {
660
660
  var a = (
661
661
  /** @type {Effect} */
662
- M
662
+ $
663
663
  );
664
- a.b = this, a.f |= Mn, r(
664
+ a.b = this, a.f |= Bn, r(
665
665
  f(this, ve),
666
666
  () => i,
667
667
  () => s
@@ -676,7 +676,7 @@ kn = function(t) {
676
676
  }
677
677
  }));
678
678
  };
679
- pt(() => {
679
+ vt(() => {
680
680
  var i;
681
681
  try {
682
682
  i = this.transform_error(t);
@@ -692,8 +692,8 @@ kn = function(t) {
692
692
  ) : n(i);
693
693
  });
694
694
  };
695
- function ho(e, t, r, n) {
696
- const i = ri;
695
+ function co(e, t, r, n) {
696
+ const i = ii;
697
697
  var s = e.filter((p) => !p.settled), o = t.map(i);
698
698
  if (r.length === 0 && s.length === 0) {
699
699
  n(o);
@@ -701,50 +701,50 @@ function ho(e, t, r, n) {
701
701
  }
702
702
  var a = (
703
703
  /** @type {Effect} */
704
- M
705
- ), u = co(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
704
+ $
705
+ ), u = po(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
706
706
  function h(p) {
707
- if (!(a.f & He)) {
707
+ if (!(a.f & Te)) {
708
708
  u();
709
709
  try {
710
710
  n([...o, ...p]);
711
711
  } catch (v) {
712
712
  st(v, a);
713
713
  }
714
- Kr();
714
+ Qr();
715
715
  }
716
716
  }
717
- var d = fs();
717
+ var d = hs();
718
718
  if (r.length === 0) {
719
719
  l.then(() => h([])).finally(d);
720
720
  return;
721
721
  }
722
722
  function c() {
723
- Promise.all(r.map((p) => /* @__PURE__ */ po(p))).then(h).catch((p) => st(p, a)).finally(d);
723
+ Promise.all(r.map((p) => /* @__PURE__ */ vo(p))).then(h).catch((p) => st(p, a)).finally(d);
724
724
  }
725
725
  l ? l.then(() => {
726
- u(), c(), Kr();
726
+ u(), c(), Qr();
727
727
  }) : c();
728
728
  }
729
- function co() {
729
+ function po() {
730
730
  var e = (
731
731
  /** @type {Effect} */
732
- M
733
- ), t = O, r = ce, n = (
732
+ $
733
+ ), t = M, r = ce, n = (
734
734
  /** @type {Batch} */
735
735
  H
736
736
  );
737
737
  return function(s = !0) {
738
- je(e), $e(t), qt(r), s && !(e.f & He) && (n == null || n.activate(), n == null || n.apply());
738
+ je(e), Ae(t), qt(r), s && !(e.f & Te) && (n == null || n.activate(), n == null || n.apply());
739
739
  };
740
740
  }
741
- function Kr(e = !0) {
742
- je(null), $e(null), qt(null), e && (H == null || H.deactivate());
741
+ function Qr(e = !0) {
742
+ je(null), Ae(null), qt(null), e && (H == null || H.deactivate());
743
743
  }
744
- function fs() {
744
+ function hs() {
745
745
  var e = (
746
746
  /** @type {Effect} */
747
- M
747
+ $
748
748
  ), t = e.b, r = (
749
749
  /** @type {Batch} */
750
750
  H
@@ -754,13 +754,13 @@ function fs() {
754
754
  };
755
755
  }
756
756
  // @__NO_SIDE_EFFECTS__
757
- function ri(e) {
757
+ function ii(e) {
758
758
  var t = ee | z;
759
- return M !== null && (M.f |= At), {
759
+ return $ !== null && ($.f |= At), {
760
760
  ctx: ce,
761
761
  deps: null,
762
762
  effects: null,
763
- equals: es,
763
+ equals: ts,
764
764
  f: t,
765
765
  fn: e,
766
766
  reactions: null,
@@ -770,39 +770,39 @@ function ri(e) {
770
770
  Z
771
771
  ),
772
772
  wv: 0,
773
- parent: M,
773
+ parent: $,
774
774
  ac: null
775
775
  };
776
776
  }
777
777
  const lr = Symbol("obsolete");
778
778
  // @__NO_SIDE_EFFECTS__
779
- function po(e, t, r) {
779
+ function vo(e, t, r) {
780
780
  let n = (
781
781
  /** @type {Effect | null} */
782
- M
782
+ $
783
783
  );
784
- n === null && Da();
784
+ n === null && Ua();
785
785
  var i = (
786
786
  /** @type {Promise<V>} */
787
787
  /** @type {unknown} */
788
788
  void 0
789
- ), s = Br(
789
+ ), s = Mr(
790
790
  /** @type {V} */
791
791
  Z
792
- ), o = !O, a = /* @__PURE__ */ new Set();
792
+ ), o = !M, a = /* @__PURE__ */ new Set();
793
793
  return Mo(() => {
794
794
  var p, v;
795
795
  var u = (
796
796
  /** @type {Effect} */
797
- M
798
- ), l = Zi();
797
+ $
798
+ ), l = Ji();
799
799
  i = l.promise;
800
800
  try {
801
801
  Promise.resolve(e()).then(l.resolve, (g) => {
802
- g !== Mr && l.reject(g);
803
- }).finally(Kr);
802
+ g !== Or && l.reject(g);
803
+ }).finally(Qr);
804
804
  } catch (g) {
805
- l.reject(g), Kr();
805
+ l.reject(g), Qr();
806
806
  }
807
807
  var h = (
808
808
  /** @type {Batch} */
@@ -810,7 +810,7 @@ function po(e, t, r) {
810
810
  );
811
811
  if (o) {
812
812
  if (u.f & Ht)
813
- var d = fs();
813
+ var d = hs();
814
814
  if (
815
815
  // boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
816
816
  (p = n.b) != null && p.is_rendered()
@@ -822,10 +822,10 @@ function po(e, t, r) {
822
822
  a.add(l), h.async_deriveds.set(u, l);
823
823
  }
824
824
  const c = (g, P = void 0) => {
825
- d == null || d(), a.delete(l), P !== lr && (h.activate(), P ? (s.f |= ut, tn(s, P)) : (s.f & ut && (s.f ^= ut), tn(s, g)), h.deactivate());
825
+ d == null || d(), a.delete(l), P !== lr && (h.activate(), P ? (s.f |= ut, en(s, P)) : (s.f & ut && (s.f ^= ut), en(s, g)), h.deactivate());
826
826
  };
827
827
  l.promise.then(c, (g) => c(null, g || "unknown"));
828
- }), Ts(() => {
828
+ }), Hs(() => {
829
829
  for (const u of a)
830
830
  u.reject(lr);
831
831
  }), new Promise((u) => {
@@ -840,10 +840,10 @@ function po(e, t, r) {
840
840
  }
841
841
  // @__NO_SIDE_EFFECTS__
842
842
  function Ir(e) {
843
- const t = /* @__PURE__ */ ri(e);
844
- return Rs(t), t;
843
+ const t = /* @__PURE__ */ ii(e);
844
+ return Cs(t), t;
845
845
  }
846
- function vo(e) {
846
+ function mo(e) {
847
847
  var t = e.effects;
848
848
  if (t !== null) {
849
849
  e.effects = null;
@@ -854,55 +854,55 @@ function vo(e) {
854
854
  );
855
855
  }
856
856
  }
857
- function ni(e) {
858
- var t, r = M, n = e.parent;
859
- if (!et && n !== null && e.v !== Z && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
860
- n.f & (He | Te))
861
- return qa(), e.v;
857
+ function si(e) {
858
+ var t, r = $, n = e.parent;
859
+ if (!Ke && n !== null && e.v !== Z && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
860
+ n.f & (Te | Se))
861
+ return Za(), e.v;
862
862
  je(n);
863
863
  try {
864
- e.f &= ~St, vo(e), t = Ls(e);
864
+ e.f &= ~St, mo(e), t = Ds(e);
865
865
  } finally {
866
866
  je(r);
867
867
  }
868
868
  return t;
869
869
  }
870
- function hs(e) {
871
- var t = ni(e);
872
- if (!e.equals(t) && (e.wv = Cs(), (!(H != null && H.is_fork) || e.deps === null) && (H !== null ? (H.capture(e, t, !0), dr == null || dr.capture(e, t, !0)) : e.v = t, e.deps === null))) {
870
+ function cs(e) {
871
+ var t = si(e);
872
+ if (!e.equals(t) && (e.wv = ks(), (!(H != null && H.is_fork) || e.deps === null) && (H !== null ? (H.capture(e, t, !0), dr == null || dr.capture(e, t, !0)) : e.v = t, e.deps === null))) {
873
873
  X(e, J);
874
874
  return;
875
875
  }
876
- et || (re !== null ? (ui() || H != null && H.is_fork) && re.set(e, t) : ei(e));
876
+ Ke || (re !== null ? (fi() || H != null && H.is_fork) && re.set(e, t) : ri(e));
877
877
  }
878
- function mo(e) {
878
+ function _o(e) {
879
879
  var t;
880
880
  if (e.effects !== null)
881
881
  for (const r of e.effects)
882
- (r.teardown || r.ac) && ((t = r.teardown) == null || t.call(r), r.ac !== null && dn(() => {
883
- r.ac.abort(Mr), r.ac = null;
884
- }), r.fn !== null && (r.teardown = Qe), gr(r, 0), li(r));
882
+ (r.teardown || r.ac) && ((t = r.teardown) == null || t.call(r), r.ac !== null && cn(() => {
883
+ r.ac.abort(Or), r.ac = null;
884
+ }), r.fn !== null && (r.teardown = Qe), gr(r, 0), hi(r));
885
885
  }
886
- function cs(e) {
886
+ function ds(e) {
887
887
  if (e.effects !== null)
888
888
  for (const t of e.effects)
889
889
  t.teardown && t.fn !== null && Zt(t);
890
890
  }
891
- let En = null, Pt = null, H = null, dr = null, re = null, Cn = null, pr = !1, xn = !1, Ct = null, jr = null;
892
- var _i = 0;
893
- let _o = 1;
894
- var Ut, it, gt, Ft, Gt, jt, ze, Vt, fe, Hr, qe, Be, De, Xt, yt, I, In, fr, Ln, ds, ps, Rt, bo, hr;
895
- const on = class on {
891
+ let yn = null, Pt = null, H = null, dr = null, re = null, kn = null, pr = !1, En = !1, It = null, Gr = null;
892
+ var gi = 0;
893
+ let bo = 1;
894
+ var Ut, it, yt, Ft, Gt, jt, Ye, Vt, fe, Hr, ze, Me, De, Xt, Et, k, Ln, fr, Dn, ps, vs, Rt, go, hr;
895
+ const an = class an {
896
896
  constructor() {
897
- A(this, I);
898
- F(this, "id", _o++);
897
+ A(this, k);
898
+ F(this, "id", bo++);
899
899
  /** True as soon as `#process` was called */
900
900
  A(this, Ut, !1);
901
901
  F(this, "linked", !0);
902
902
  /** @type {Batch | null} */
903
903
  A(this, it, null);
904
904
  /** @type {Batch | null} */
905
- A(this, gt, null);
905
+ A(this, yt, null);
906
906
  /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
907
907
  F(this, "async_deriveds", /* @__PURE__ */ new Map());
908
908
  /**
@@ -937,7 +937,7 @@ const on = class on {
937
937
  * Async effects that are currently in flight, _not_ inside a pending boundary
938
938
  * @type {Map<Effect, number>}
939
939
  */
940
- A(this, ze, /* @__PURE__ */ new Map());
940
+ A(this, Ye, /* @__PURE__ */ new Map());
941
941
  /**
942
942
  * A deferred that resolves when the batch is committed, used with `settled()`
943
943
  * TODO replace with Promise.withResolvers once supported widely enough
@@ -958,12 +958,12 @@ const on = class on {
958
958
  * Deferred effects (which run after async work has completed) that are DIRTY
959
959
  * @type {Set<Effect>}
960
960
  */
961
- A(this, qe, /* @__PURE__ */ new Set());
961
+ A(this, ze, /* @__PURE__ */ new Set());
962
962
  /**
963
963
  * Deferred effects that are MAYBE_DIRTY
964
964
  * @type {Set<Effect>}
965
965
  */
966
- A(this, Be, /* @__PURE__ */ new Set());
966
+ A(this, Me, /* @__PURE__ */ new Set());
967
967
  /**
968
968
  * A map of branches that still exist, but will be destroyed when this batch
969
969
  * is committed — we skip over these during `process`.
@@ -978,8 +978,8 @@ const on = class on {
978
978
  */
979
979
  A(this, Xt, /* @__PURE__ */ new Set());
980
980
  F(this, "is_fork", !1);
981
- A(this, yt, !1);
982
- Pt === null ? En = Pt = this : (w(Pt, gt, this), w(this, it, Pt)), Pt = this;
981
+ A(this, Et, !1);
982
+ Pt === null ? yn = Pt = this : (w(Pt, yt, this), w(this, it, Pt)), Pt = this;
983
983
  }
984
984
  /**
985
985
  * Add an effect to the #skipped_branches map and reset its children
@@ -1001,7 +1001,7 @@ const on = class on {
1001
1001
  for (var i of n.d)
1002
1002
  X(i, z), r(i);
1003
1003
  for (i of n.m)
1004
- X(i, ke), r(i);
1004
+ X(i, Ce), r(i);
1005
1005
  }
1006
1006
  f(this, Xt).add(t);
1007
1007
  }
@@ -1023,9 +1023,9 @@ const on = class on {
1023
1023
  }
1024
1024
  flush() {
1025
1025
  try {
1026
- xn = !0, H = this, $(this, I, fr).call(this);
1026
+ En = !0, H = this, O(this, k, fr).call(this);
1027
1027
  } finally {
1028
- _i = 0, Cn = null, Ct = null, jr = null, xn = !1, H = null, re = null, xt.clear();
1028
+ gi = 0, kn = null, It = null, Gr = null, En = !1, H = null, re = null, Fe.clear();
1029
1029
  }
1030
1030
  }
1031
1031
  discard() {
@@ -1034,7 +1034,7 @@ const on = class on {
1034
1034
  f(this, Gt).clear();
1035
1035
  for (const r of this.async_deriveds.values())
1036
1036
  r.reject(lr);
1037
- $(this, I, hr).call(this), (t = f(this, Vt)) == null || t.resolve();
1037
+ O(this, k, hr).call(this), (t = f(this, Vt)) == null || t.resolve();
1038
1038
  }
1039
1039
  /**
1040
1040
  * @param {Effect} effect
@@ -1049,8 +1049,8 @@ const on = class on {
1049
1049
  increment(t, r) {
1050
1050
  var n;
1051
1051
  if (w(this, jt, f(this, jt) + 1), t) {
1052
- let i = (n = f(this, ze).get(r)) != null ? n : 0;
1053
- f(this, ze).set(r, i + 1);
1052
+ let i = (n = f(this, Ye).get(r)) != null ? n : 0;
1053
+ f(this, Ye).set(r, i + 1);
1054
1054
  }
1055
1055
  }
1056
1056
  /**
@@ -1060,11 +1060,11 @@ const on = class on {
1060
1060
  decrement(t, r) {
1061
1061
  var n;
1062
1062
  if (w(this, jt, f(this, jt) - 1), t) {
1063
- let i = (n = f(this, ze).get(r)) != null ? n : 0;
1064
- i === 1 ? f(this, ze).delete(r) : f(this, ze).set(r, i - 1);
1063
+ let i = (n = f(this, Ye).get(r)) != null ? n : 0;
1064
+ i === 1 ? f(this, Ye).delete(r) : f(this, Ye).set(r, i - 1);
1065
1065
  }
1066
- f(this, yt) || (w(this, yt, !0), pt(() => {
1067
- w(this, yt, !1), this.linked && this.flush();
1066
+ f(this, Et) || (w(this, Et, !0), vt(() => {
1067
+ w(this, Et, !1), this.linked && this.flush();
1068
1068
  }));
1069
1069
  }
1070
1070
  /**
@@ -1073,9 +1073,9 @@ const on = class on {
1073
1073
  */
1074
1074
  transfer_effects(t, r) {
1075
1075
  for (const n of t)
1076
- f(this, qe).add(n);
1076
+ f(this, ze).add(n);
1077
1077
  for (const n of r)
1078
- f(this, Be).add(n);
1078
+ f(this, Me).add(n);
1079
1079
  t.clear(), r.clear();
1080
1080
  }
1081
1081
  /** @param {(batch: Batch) => void} fn */
@@ -1088,12 +1088,12 @@ const on = class on {
1088
1088
  }
1089
1089
  settled() {
1090
1090
  var t;
1091
- return ((t = f(this, Vt)) != null ? t : w(this, Vt, Zi())).promise;
1091
+ return ((t = f(this, Vt)) != null ? t : w(this, Vt, Ji())).promise;
1092
1092
  }
1093
1093
  static ensure() {
1094
1094
  if (H === null) {
1095
- const t = H = new on();
1096
- !xn && !pr && pt(() => {
1095
+ const t = H = new an();
1096
+ !En && !pr && vt(() => {
1097
1097
  f(t, Ut) || t.flush();
1098
1098
  });
1099
1099
  }
@@ -1111,16 +1111,16 @@ const on = class on {
1111
1111
  */
1112
1112
  schedule(t) {
1113
1113
  var i;
1114
- if (Cn = t, (i = t.b) != null && i.is_pending && t.f & (Yt | Or | Ji) && !(t.f & Ht)) {
1114
+ if (kn = t, (i = t.b) != null && i.is_pending && t.f & (Yt | $r | Qi) && !(t.f & Ht)) {
1115
1115
  t.b.defer_effect(t);
1116
1116
  return;
1117
1117
  }
1118
1118
  for (var r = t; r.parent !== null; ) {
1119
1119
  r = r.parent;
1120
1120
  var n = r.f;
1121
- if (Ct !== null && r === M && (O === null || !(O.f & ee)))
1121
+ if (It !== null && r === $ && (M === null || !(M.f & ee)))
1122
1122
  return;
1123
- if (n & (Ge | Ce)) {
1123
+ if (n & (Ge | Ie)) {
1124
1124
  if (!(n & J))
1125
1125
  return;
1126
1126
  r.f ^= J;
@@ -1129,9 +1129,9 @@ const on = class on {
1129
1129
  f(this, fe).push(r);
1130
1130
  }
1131
1131
  };
1132
- Ut = new WeakMap(), it = new WeakMap(), gt = new WeakMap(), Ft = new WeakMap(), Gt = new WeakMap(), jt = new WeakMap(), ze = new WeakMap(), Vt = new WeakMap(), fe = new WeakMap(), Hr = new WeakMap(), qe = new WeakMap(), Be = new WeakMap(), De = new WeakMap(), Xt = new WeakMap(), yt = new WeakMap(), I = new WeakSet(), In = function() {
1132
+ Ut = new WeakMap(), it = new WeakMap(), yt = new WeakMap(), Ft = new WeakMap(), Gt = new WeakMap(), jt = new WeakMap(), Ye = new WeakMap(), Vt = new WeakMap(), fe = new WeakMap(), Hr = new WeakMap(), ze = new WeakMap(), Me = new WeakMap(), De = new WeakMap(), Xt = new WeakMap(), Et = new WeakMap(), k = new WeakSet(), Ln = function() {
1133
1133
  if (this.is_fork) return !0;
1134
- for (const n of f(this, ze).keys()) {
1134
+ for (const n of f(this, Ye).keys()) {
1135
1135
  for (var t = n, r = !1; t.parent !== null; ) {
1136
1136
  if (f(this, De).has(t)) {
1137
1137
  r = !0;
@@ -1145,53 +1145,53 @@ Ut = new WeakMap(), it = new WeakMap(), gt = new WeakMap(), Ft = new WeakMap(),
1145
1145
  return !1;
1146
1146
  }, fr = function() {
1147
1147
  var u, l, h, d;
1148
- w(this, Ut, !0), _i++ > 1e3 && ($(this, I, hr).call(this), go());
1149
- for (const c of f(this, qe))
1150
- f(this, Be).delete(c), X(c, z), this.schedule(c);
1151
- for (const c of f(this, Be))
1152
- X(c, ke), this.schedule(c);
1148
+ w(this, Ut, !0), gi++ > 1e3 && (O(this, k, hr).call(this), yo());
1149
+ for (const c of f(this, ze))
1150
+ f(this, Me).delete(c), X(c, z), this.schedule(c);
1151
+ for (const c of f(this, Me))
1152
+ X(c, Ce), this.schedule(c);
1153
1153
  const t = f(this, fe);
1154
1154
  w(this, fe, []), this.apply();
1155
- var r = Ct = [], n = [], i = jr = [];
1155
+ var r = It = [], n = [], i = Gr = [];
1156
1156
  for (const c of t)
1157
1157
  try {
1158
- $(this, I, Ln).call(this, c, r, n);
1158
+ O(this, k, Dn).call(this, c, r, n);
1159
1159
  } catch (p) {
1160
- throw _s(c), $(this, I, In).call(this) || this.discard(), p;
1160
+ throw bs(c), O(this, k, Ln).call(this) || this.discard(), p;
1161
1161
  }
1162
1162
  if (H = null, i.length > 0) {
1163
- var s = on.ensure();
1163
+ var s = an.ensure();
1164
1164
  for (const c of i)
1165
1165
  s.schedule(c);
1166
1166
  }
1167
- if (Ct = null, jr = null, $(this, I, In).call(this)) {
1168
- $(this, I, Rt).call(this, n), $(this, I, Rt).call(this, r);
1167
+ if (It = null, Gr = null, O(this, k, Ln).call(this)) {
1168
+ O(this, k, Rt).call(this, n), O(this, k, Rt).call(this, r);
1169
1169
  for (const [c, p] of f(this, De))
1170
- ms(c, p);
1170
+ _s(c, p);
1171
1171
  i.length > 0 && /** @type {unknown} */
1172
- $(u = H, I, fr).call(u);
1172
+ O(u = H, k, fr).call(u);
1173
1173
  return;
1174
1174
  }
1175
- const o = $(this, I, ds).call(this);
1175
+ const o = O(this, k, ps).call(this);
1176
1176
  if (o) {
1177
- $(this, I, Rt).call(this, n), $(this, I, Rt).call(this, r), $(l = o, I, ps).call(l, this);
1177
+ O(this, k, Rt).call(this, n), O(this, k, Rt).call(this, r), O(l = o, k, vs).call(l, this);
1178
1178
  return;
1179
1179
  }
1180
- f(this, qe).clear(), f(this, Be).clear();
1180
+ f(this, ze).clear(), f(this, Me).clear();
1181
1181
  for (const c of f(this, Ft)) c(this);
1182
- f(this, Ft).clear(), dr = this, bi(n), bi(r), dr = null, (h = f(this, Vt)) == null || h.resolve();
1182
+ f(this, Ft).clear(), dr = this, yi(n), yi(r), dr = null, (h = f(this, Vt)) == null || h.resolve();
1183
1183
  var a = (
1184
1184
  /** @type {Batch | null} */
1185
1185
  /** @type {unknown} */
1186
1186
  H
1187
1187
  );
1188
- if (f(this, jt) === 0 && (f(this, fe).length === 0 || a !== null) && $(this, I, hr).call(this), f(this, fe).length > 0)
1188
+ if (f(this, jt) === 0 && (f(this, fe).length === 0 || a !== null) && O(this, k, hr).call(this), f(this, fe).length > 0)
1189
1189
  if (a !== null) {
1190
1190
  const c = a;
1191
1191
  f(c, fe).push(...f(this, fe).filter((p) => !f(c, fe).includes(p)));
1192
1192
  } else
1193
1193
  a = this;
1194
- a !== null && $(d = a, I, fr).call(d);
1194
+ a !== null && (Fe.clear(), O(d = a, k, fr).call(d));
1195
1195
  }, /**
1196
1196
  * Traverse the effect tree, executing effects or stashing
1197
1197
  * them for later execution as appropriate
@@ -1199,12 +1199,12 @@ Ut = new WeakMap(), it = new WeakMap(), gt = new WeakMap(), Ft = new WeakMap(),
1199
1199
  * @param {Effect[]} effects
1200
1200
  * @param {Effect[]} render_effects
1201
1201
  */
1202
- Ln = function(t, r, n) {
1202
+ Dn = function(t, r, n) {
1203
1203
  t.f ^= J;
1204
1204
  for (var i = t.first; i !== null; ) {
1205
- var s = i.f, o = (s & (Ce | Ge)) !== 0, a = o && (s & J) !== 0, u = a || (s & Te) !== 0 || f(this, De).has(i);
1205
+ var s = i.f, o = (s & (Ie | Ge)) !== 0, a = o && (s & J) !== 0, u = a || (s & Se) !== 0 || f(this, De).has(i);
1206
1206
  if (!u && i.fn !== null) {
1207
- o ? i.f ^= J : s & Yt ? r.push(i) : Nr(i) && (s & Pe && f(this, Be).add(i), Zt(i));
1207
+ o ? i.f ^= J : s & Yt ? r.push(i) : Br(i) && (s & Pe && f(this, Me).add(i), Zt(i));
1208
1208
  var l = i.first;
1209
1209
  if (l !== null) {
1210
1210
  i = l;
@@ -1220,7 +1220,7 @@ Ln = function(t, r, n) {
1220
1220
  i = i.parent;
1221
1221
  }
1222
1222
  }
1223
- }, ds = function() {
1223
+ }, ps = function() {
1224
1224
  for (var t = f(this, it); t !== null; ) {
1225
1225
  if (!t.is_fork) {
1226
1226
  for (const [r, [, n]] of this.current)
@@ -1233,7 +1233,7 @@ Ln = function(t, r, n) {
1233
1233
  }, /**
1234
1234
  * @param {Batch} batch
1235
1235
  */
1236
- ps = function(t) {
1236
+ vs = function(t) {
1237
1237
  var n;
1238
1238
  for (const [i, s] of t.current)
1239
1239
  !this.previous.has(i) && t.previous.has(i) && this.previous.set(i, t.previous.get(i)), this.current.set(i, s);
@@ -1241,10 +1241,10 @@ ps = function(t) {
1241
1241
  const o = this.async_deriveds.get(i);
1242
1242
  o && s.promise.then(o.resolve).catch(o.reject);
1243
1243
  }
1244
- t.async_deriveds.clear(), this.transfer_effects(f(t, qe), f(t, Be));
1244
+ t.async_deriveds.clear(), this.transfer_effects(f(t, ze), f(t, Me));
1245
1245
  const r = (i) => {
1246
1246
  var s = i.reactions;
1247
- if (s !== null && !(i.f & ee && !(i.f & (z | ke))))
1247
+ if (s !== null && !(i.f & ee && !(i.f & (z | Ce))))
1248
1248
  for (const u of s) {
1249
1249
  var o = u.f;
1250
1250
  if (o & ee)
@@ -1257,22 +1257,22 @@ ps = function(t) {
1257
1257
  /** @type {Effect} */
1258
1258
  u
1259
1259
  );
1260
- o & (Lt | Pe) && !this.async_deriveds.has(a) && (f(this, Be).delete(a), X(a, z), this.schedule(a));
1260
+ o & (Lt | Pe) && !this.async_deriveds.has(a) && (f(this, Me).delete(a), X(a, z), this.schedule(a));
1261
1261
  }
1262
1262
  }
1263
1263
  };
1264
1264
  for (const i of this.current.keys())
1265
1265
  r(i);
1266
- this.oncommit(() => t.discard()), $(n = t, I, hr).call(n), H = this, $(this, I, fr).call(this);
1266
+ this.oncommit(() => t.discard()), O(n = t, k, hr).call(n), H = this, O(this, k, fr).call(this);
1267
1267
  }, /**
1268
1268
  * @param {Effect[]} effects
1269
1269
  */
1270
1270
  Rt = function(t) {
1271
1271
  for (var r = 0; r < t.length; r += 1)
1272
- as(t[r], f(this, qe), f(this, Be));
1273
- }, bo = function() {
1272
+ os(t[r], f(this, ze), f(this, Me));
1273
+ }, go = function() {
1274
1274
  var d;
1275
- for (let c = En; c !== null; c = f(c, gt)) {
1275
+ for (let c = yn; c !== null; c = f(c, yt)) {
1276
1276
  var t = c.id < this.id, r = [];
1277
1277
  for (const [p, [v, g]] of this.current) {
1278
1278
  if (c.current.has(p)) {
@@ -1305,12 +1305,12 @@ Rt = function(t) {
1305
1305
  for (const p of f(this, Xt))
1306
1306
  c.unskip_effect(p, (v) => {
1307
1307
  var g;
1308
- v.f & (Pe | Lt) ? c.schedule(v) : $(g = c, I, Rt).call(g, [v]);
1308
+ v.f & (Pe | Lt) ? c.schedule(v) : O(g = c, k, Rt).call(g, [v]);
1309
1309
  });
1310
1310
  c.activate();
1311
1311
  var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
1312
1312
  for (var u of r)
1313
- vs(u, s, o, a);
1313
+ ms(u, s, o, a);
1314
1314
  a = /* @__PURE__ */ new Map();
1315
1315
  var l = [...c.current].filter(([p, v]) => {
1316
1316
  const g = this.current.get(p);
@@ -1318,11 +1318,11 @@ Rt = function(t) {
1318
1318
  }).map(([p]) => p);
1319
1319
  if (l.length > 0)
1320
1320
  for (const p of f(this, Hr))
1321
- !(p.f & (He | Te | Jr)) && ii(p, l, a) && (p.f & (Lt | Pe) ? (X(p, z), c.schedule(p)) : f(c, qe).add(p));
1322
- if (f(c, fe).length > 0 && !f(c, yt)) {
1321
+ !(p.f & (Te | Se | Zr)) && ai(p, l, a) && (p.f & (Lt | Pe) ? (X(p, z), c.schedule(p)) : f(c, ze).add(p));
1322
+ if (f(c, fe).length > 0 && !f(c, Et)) {
1323
1323
  c.apply();
1324
1324
  for (var h of f(c, fe))
1325
- $(d = c, I, Ln).call(d, h, [], []);
1325
+ O(d = c, k, Dn).call(d, h, [], []);
1326
1326
  w(c, fe, []);
1327
1327
  }
1328
1328
  c.deactivate();
@@ -1331,17 +1331,17 @@ Rt = function(t) {
1331
1331
  }
1332
1332
  }, hr = function() {
1333
1333
  if (this.linked) {
1334
- var t = f(this, it), r = f(this, gt);
1335
- t === null ? En = r : w(t, gt, r), r === null ? Pt = t : w(r, it, t), this.linked = !1;
1334
+ var t = f(this, it), r = f(this, yt);
1335
+ t === null ? yn = r : w(t, yt, r), r === null ? Pt = t : w(r, it, t), this.linked = !1;
1336
1336
  }
1337
1337
  };
1338
- let lt = on;
1338
+ let lt = an;
1339
1339
  function Je(e) {
1340
1340
  var t = pr;
1341
1341
  pr = !0;
1342
1342
  try {
1343
1343
  for (var r; ; ) {
1344
- if (to(), H === null)
1344
+ if (ro(), H === null)
1345
1345
  return (
1346
1346
  /** @type {T} */
1347
1347
  r
@@ -1352,62 +1352,62 @@ function Je(e) {
1352
1352
  pr = t;
1353
1353
  }
1354
1354
  }
1355
- function go() {
1355
+ function yo() {
1356
1356
  try {
1357
- ja();
1357
+ Va();
1358
1358
  } catch (e) {
1359
- st(e, Cn);
1359
+ st(e, kn);
1360
1360
  }
1361
1361
  }
1362
- let Me = null;
1363
- function bi(e) {
1362
+ let Oe = null;
1363
+ function yi(e) {
1364
1364
  var t = e.length;
1365
1365
  if (t !== 0) {
1366
1366
  for (var r = 0; r < t; ) {
1367
1367
  var n = e[r++];
1368
- if (!(n.f & (He | Te)) && Nr(n) && (Me = /* @__PURE__ */ new Set(), Zt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ms(n), (Me == null ? void 0 : Me.size) > 0)) {
1369
- xt.clear();
1370
- for (const i of Me) {
1371
- if (i.f & (He | Te)) continue;
1368
+ if (!(n.f & (Te | Se)) && Br(n) && (Oe = /* @__PURE__ */ new Set(), Zt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Bs(n), (Oe == null ? void 0 : Oe.size) > 0)) {
1369
+ Fe.clear();
1370
+ for (const i of Oe) {
1371
+ if (i.f & (Te | Se)) continue;
1372
1372
  const s = [i];
1373
1373
  let o = i.parent;
1374
1374
  for (; o !== null; )
1375
- Me.has(o) && (Me.delete(o), s.push(o)), o = o.parent;
1375
+ Oe.has(o) && (Oe.delete(o), s.push(o)), o = o.parent;
1376
1376
  for (let a = s.length - 1; a >= 0; a--) {
1377
1377
  const u = s[a];
1378
- u.f & (He | Te) || Zt(u);
1378
+ u.f & (Te | Se) || Zt(u);
1379
1379
  }
1380
1380
  }
1381
- Me.clear();
1381
+ Oe.clear();
1382
1382
  }
1383
1383
  }
1384
- Me = null;
1384
+ Oe = null;
1385
1385
  }
1386
1386
  }
1387
- function vs(e, t, r, n) {
1387
+ function ms(e, t, r, n) {
1388
1388
  if (!r.has(e) && (r.add(e), e.reactions !== null))
1389
1389
  for (const i of e.reactions) {
1390
1390
  const s = i.f;
1391
- s & ee ? vs(
1391
+ s & ee ? ms(
1392
1392
  /** @type {Derived} */
1393
1393
  i,
1394
1394
  t,
1395
1395
  r,
1396
1396
  n
1397
- ) : s & (Lt | Pe) && !(s & z) && ii(i, t, n) && (X(i, z), si(
1397
+ ) : s & (Lt | Pe) && !(s & z) && ai(i, t, n) && (X(i, z), oi(
1398
1398
  /** @type {Effect} */
1399
1399
  i
1400
1400
  ));
1401
1401
  }
1402
1402
  }
1403
- function ii(e, t, r) {
1403
+ function ai(e, t, r) {
1404
1404
  const n = r.get(e);
1405
1405
  if (n !== void 0) return n;
1406
1406
  if (e.deps !== null)
1407
1407
  for (const i of e.deps) {
1408
- if (qr.call(t, i))
1408
+ if (zr.call(t, i))
1409
1409
  return !0;
1410
- if (i.f & ee && ii(
1410
+ if (i.f & ee && ai(
1411
1411
  /** @type {Derived} */
1412
1412
  i,
1413
1413
  t,
@@ -1421,92 +1421,92 @@ function ii(e, t, r) {
1421
1421
  }
1422
1422
  return r.set(e, !1), !1;
1423
1423
  }
1424
- function si(e) {
1424
+ function oi(e) {
1425
1425
  H.schedule(e);
1426
1426
  }
1427
- function ms(e, t) {
1428
- if (!(e.f & Ce && e.f & J)) {
1429
- e.f & z ? t.d.push(e) : e.f & ke && t.m.push(e), X(e, J);
1427
+ function _s(e, t) {
1428
+ if (!(e.f & Ie && e.f & J)) {
1429
+ e.f & z ? t.d.push(e) : e.f & Ce && t.m.push(e), X(e, J);
1430
1430
  for (var r = e.first; r !== null; )
1431
- ms(r, t), r = r.next;
1431
+ _s(r, t), r = r.next;
1432
1432
  }
1433
1433
  }
1434
- function _s(e) {
1434
+ function bs(e) {
1435
1435
  X(e, J);
1436
1436
  for (var t = e.first; t !== null; )
1437
- _s(t), t = t.next;
1437
+ bs(t), t = t.next;
1438
1438
  }
1439
- let en = /* @__PURE__ */ new Set();
1440
- const xt = /* @__PURE__ */ new Map();
1441
- let bs = !1;
1442
- function Br(e, t) {
1439
+ let Kr = /* @__PURE__ */ new Set();
1440
+ const Fe = /* @__PURE__ */ new Map();
1441
+ let gs = !1;
1442
+ function Mr(e, t) {
1443
1443
  var r = {
1444
1444
  f: 0,
1445
1445
  // TODO ideally we could skip this altogether, but it causes type errors
1446
1446
  v: e,
1447
1447
  reactions: null,
1448
- equals: es,
1448
+ equals: ts,
1449
1449
  rv: 0,
1450
1450
  wv: 0
1451
1451
  };
1452
1452
  return r;
1453
1453
  }
1454
1454
  // @__NO_SIDE_EFFECTS__
1455
- function we(e, t) {
1456
- const r = Br(e);
1457
- return Rs(r), r;
1455
+ function xe(e, t) {
1456
+ const r = Mr(e);
1457
+ return Cs(r), r;
1458
1458
  }
1459
1459
  // @__NO_SIDE_EFFECTS__
1460
- function gs(e, t = !1, r = !0) {
1461
- const n = Br(e);
1462
- return t || (n.equals = Ka), n;
1460
+ function ys(e, t = !1, r = !0) {
1461
+ const n = Mr(e);
1462
+ return t || (n.equals = eo), n;
1463
1463
  }
1464
1464
  function te(e, t, r = !1) {
1465
- O !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1465
+ M !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1466
1466
  // to ensure we error if state is set inside an inspect effect
1467
- (!Re || O.f & Jr) && rs() && O.f & (ee | Pe | Lt | Jr) && (Ae === null || !Ae.has(e)) && Ya();
1467
+ (!Re || M.f & Zr) && ns() && M.f & (ee | Pe | Lt | Zr) && (He === null || !He.has(e)) && za();
1468
1468
  let n = r ? cr(t) : t;
1469
- return tn(e, n, jr);
1469
+ return en(e, n, Gr);
1470
1470
  }
1471
- function tn(e, t, r = null) {
1471
+ function en(e, t, r = null) {
1472
1472
  if (!e.equals(t)) {
1473
- xt.set(e, et ? t : e.v);
1473
+ Ke ? Fe.set(e, t) : Fe.has(e) || Fe.set(e, e.v);
1474
1474
  var n = lt.ensure();
1475
1475
  if (n.capture(e, t), e.f & ee) {
1476
1476
  const i = (
1477
1477
  /** @type {Derived} */
1478
1478
  e
1479
1479
  );
1480
- e.f & z && ni(i), re === null && ei(i);
1480
+ e.f & z && si(i), re === null && ri(i);
1481
1481
  }
1482
- e.wv = Cs(), ys(e, z, r), M !== null && M.f & J && !(M.f & (Ce | Ge)) && (ge === null ? Ro([e]) : ge.push(e)), !n.is_fork && en.size > 0 && !bs && yo();
1482
+ e.wv = ks(), Es(e, z, r), $ !== null && $.f & J && !($.f & (Ie | Ge)) && (be === null ? Ro([e]) : be.push(e)), !n.is_fork && Kr.size > 0 && !gs && Eo();
1483
1483
  }
1484
1484
  return t;
1485
1485
  }
1486
- function yo() {
1487
- bs = !1;
1488
- for (const e of en) {
1489
- e.f & J && X(e, ke);
1486
+ function Eo() {
1487
+ gs = !1;
1488
+ for (const e of Kr) {
1489
+ e.f & J && X(e, Ce);
1490
1490
  let t;
1491
1491
  try {
1492
- t = Nr(e);
1492
+ t = Br(e);
1493
1493
  } catch (r) {
1494
1494
  t = !0;
1495
1495
  }
1496
1496
  t && Zt(e);
1497
1497
  }
1498
- en.clear();
1498
+ Kr.clear();
1499
1499
  }
1500
1500
  function vr(e) {
1501
1501
  te(e, e.v + 1);
1502
1502
  }
1503
- function ys(e, t, r) {
1503
+ function Es(e, t, r) {
1504
1504
  var n = e.reactions;
1505
1505
  if (n !== null)
1506
1506
  for (var i = n.length, s = 0; s < i; s++) {
1507
1507
  var o = n[s], a = o.f, u = (a & z) === 0;
1508
- if (u && X(o, t), a & Jr)
1509
- en.add(
1508
+ if (u && X(o, t), a & Zr)
1509
+ Kr.add(
1510
1510
  /** @type {Effect} */
1511
1511
  o
1512
1512
  );
@@ -1515,31 +1515,31 @@ function ys(e, t, r) {
1515
1515
  /** @type {Derived} */
1516
1516
  o
1517
1517
  );
1518
- re == null || re.delete(l), a & St || (a & Se && (M === null || !(M.f & Qr)) && (o.f |= St), ys(l, ke, r));
1518
+ re == null || re.delete(l), a & St || (a & we && ($ === null || !($.f & Jr)) && (o.f |= St), Es(l, Ce, r));
1519
1519
  } else if (u) {
1520
1520
  var h = (
1521
1521
  /** @type {Effect} */
1522
1522
  o
1523
1523
  );
1524
- a & Pe && Me !== null && Me.add(h), r !== null ? r.push(h) : si(h);
1524
+ a & Pe && Oe !== null && Oe.add(h), r !== null ? r.push(h) : oi(h);
1525
1525
  }
1526
1526
  }
1527
1527
  }
1528
1528
  function cr(e) {
1529
- if (typeof e != "object" || e === null || yn in e)
1529
+ if (typeof e != "object" || e === null || gn in e)
1530
1530
  return e;
1531
- const t = Pa(e);
1532
- if (t !== Ba && t !== Na)
1531
+ const t = Ra(e);
1532
+ if (t !== Na && t !== Pa)
1533
1533
  return e;
1534
- var r = /* @__PURE__ */ new Map(), n = $a(e), i = /* @__PURE__ */ we(0), s = wt, o = (a) => {
1534
+ var r = /* @__PURE__ */ new Map(), n = Oa(e), i = /* @__PURE__ */ xe(0), s = wt, o = (a) => {
1535
1535
  if (wt === s)
1536
1536
  return a();
1537
- var u = O, l = wt;
1538
- $e(null), wi(s);
1537
+ var u = M, l = wt;
1538
+ Ae(null), Ti(s);
1539
1539
  var h = a();
1540
- return $e(u), wi(l), h;
1540
+ return Ae(u), Ti(l), h;
1541
1541
  };
1542
- return n && r.set("length", /* @__PURE__ */ we(
1542
+ return n && r.set("length", /* @__PURE__ */ xe(
1543
1543
  /** @type {any[]} */
1544
1544
  e.length
1545
1545
  )), new Proxy(
@@ -1547,10 +1547,10 @@ function cr(e) {
1547
1547
  e,
1548
1548
  {
1549
1549
  defineProperty(a, u, l) {
1550
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Xa();
1550
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Wa();
1551
1551
  var h = r.get(u);
1552
1552
  return h === void 0 ? o(() => {
1553
- var d = /* @__PURE__ */ we(l.value);
1553
+ var d = /* @__PURE__ */ xe(l.value);
1554
1554
  return r.set(u, d), d;
1555
1555
  }) : te(h, l.value, !0), !0;
1556
1556
  },
@@ -1558,7 +1558,7 @@ function cr(e) {
1558
1558
  var l = r.get(u);
1559
1559
  if (l === void 0) {
1560
1560
  if (u in a) {
1561
- const h = o(() => /* @__PURE__ */ we(Z));
1561
+ const h = o(() => /* @__PURE__ */ xe(Z));
1562
1562
  r.set(u, h), vr(i);
1563
1563
  }
1564
1564
  } else
@@ -1567,14 +1567,14 @@ function cr(e) {
1567
1567
  },
1568
1568
  get(a, u, l) {
1569
1569
  var p;
1570
- if (u === yn)
1570
+ if (u === gn)
1571
1571
  return e;
1572
1572
  var h = r.get(u), d = u in a;
1573
- if (h === void 0 && (!d || (p = It(a, u)) != null && p.writable) && (h = o(() => {
1574
- var v = cr(d ? a[u] : Z), g = /* @__PURE__ */ we(v);
1573
+ if (h === void 0 && (!d || (p = kt(a, u)) != null && p.writable) && (h = o(() => {
1574
+ var v = cr(d ? a[u] : Z), g = /* @__PURE__ */ xe(v);
1575
1575
  return g;
1576
1576
  }), r.set(u, h)), h !== void 0) {
1577
- var c = C(h);
1577
+ var c = I(h);
1578
1578
  return c === Z ? void 0 : c;
1579
1579
  }
1580
1580
  return Reflect.get(a, u, l);
@@ -1583,7 +1583,7 @@ function cr(e) {
1583
1583
  var l = Reflect.getOwnPropertyDescriptor(a, u);
1584
1584
  if (l && "value" in l) {
1585
1585
  var h = r.get(u);
1586
- h && (l.value = C(h));
1586
+ h && (l.value = I(h));
1587
1587
  } else if (l === void 0) {
1588
1588
  var d = r.get(u), c = d == null ? void 0 : d.v;
1589
1589
  if (d !== void 0 && c !== Z)
@@ -1598,15 +1598,15 @@ function cr(e) {
1598
1598
  },
1599
1599
  has(a, u) {
1600
1600
  var c;
1601
- if (u === yn)
1601
+ if (u === gn)
1602
1602
  return !0;
1603
1603
  var l = r.get(u), h = l !== void 0 && l.v !== Z || Reflect.has(a, u);
1604
- if (l !== void 0 || M !== null && (!h || (c = It(a, u)) != null && c.writable)) {
1604
+ if (l !== void 0 || $ !== null && (!h || (c = kt(a, u)) != null && c.writable)) {
1605
1605
  l === void 0 && (l = o(() => {
1606
- var p = h ? cr(a[u]) : Z, v = /* @__PURE__ */ we(p);
1606
+ var p = h ? cr(a[u]) : Z, v = /* @__PURE__ */ xe(p);
1607
1607
  return v;
1608
1608
  }), r.set(u, l));
1609
- var d = C(l);
1609
+ var d = I(l);
1610
1610
  if (d === Z)
1611
1611
  return !1;
1612
1612
  }
@@ -1619,10 +1619,10 @@ function cr(e) {
1619
1619
  for (var p = l; p < /** @type {Source<number>} */
1620
1620
  d.v; p += 1) {
1621
1621
  var v = r.get(p + "");
1622
- v !== void 0 ? te(v, Z) : p in a && (v = o(() => /* @__PURE__ */ we(Z)), r.set(p + "", v));
1622
+ v !== void 0 ? te(v, Z) : p in a && (v = o(() => /* @__PURE__ */ xe(Z)), r.set(p + "", v));
1623
1623
  }
1624
1624
  if (d === void 0)
1625
- (!c || (j = It(a, u)) != null && j.writable) && (d = o(() => /* @__PURE__ */ we(void 0)), te(d, cr(l)), r.set(u, d));
1625
+ (!c || (j = kt(a, u)) != null && j.writable) && (d = o(() => /* @__PURE__ */ xe(void 0)), te(d, cr(l)), r.set(u, d));
1626
1626
  else {
1627
1627
  c = d.v !== Z;
1628
1628
  var g = o(() => cr(l));
@@ -1642,7 +1642,7 @@ function cr(e) {
1642
1642
  return !0;
1643
1643
  },
1644
1644
  ownKeys(a) {
1645
- C(i);
1645
+ I(i);
1646
1646
  var u = Reflect.ownKeys(a).filter((d) => {
1647
1647
  var c = r.get(d);
1648
1648
  return c === void 0 || c.v !== Z;
@@ -1652,112 +1652,109 @@ function cr(e) {
1652
1652
  return u;
1653
1653
  },
1654
1654
  setPrototypeOf() {
1655
- Wa();
1655
+ Ya();
1656
1656
  }
1657
1657
  }
1658
1658
  );
1659
1659
  }
1660
- var gi, Es, xs, ws;
1661
- function Dn() {
1662
- if (gi === void 0) {
1663
- gi = window, Es = /Firefox/.test(navigator.userAgent);
1660
+ var Ei, xs, ws, Ss;
1661
+ function Un() {
1662
+ if (Ei === void 0) {
1663
+ Ei = window, xs = /Firefox/.test(navigator.userAgent);
1664
1664
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1665
- xs = It(t, "firstChild").get, ws = It(t, "nextSibling").get, vi(e) && (e[Ia] = void 0, e[Ca] = null, e[La] = void 0, e.__e = void 0), vi(r) && (r[ur] = void 0);
1665
+ ws = kt(t, "firstChild").get, Ss = kt(t, "nextSibling").get, _i(e) && (e[La] = void 0, e[ka] = null, e[Da] = void 0, e.__e = void 0), _i(r) && (r[ur] = void 0);
1666
1666
  }
1667
1667
  }
1668
- function Ke(e = "") {
1668
+ function ft(e = "") {
1669
1669
  return document.createTextNode(e);
1670
1670
  }
1671
1671
  // @__NO_SIDE_EFFECTS__
1672
1672
  function br(e) {
1673
1673
  return (
1674
1674
  /** @type {TemplateNode | null} */
1675
- xs.call(e)
1675
+ ws.call(e)
1676
1676
  );
1677
1677
  }
1678
1678
  // @__NO_SIDE_EFFECTS__
1679
- function tt(e) {
1679
+ function et(e) {
1680
1680
  return (
1681
1681
  /** @type {TemplateNode | null} */
1682
- ws.call(e)
1682
+ Ss.call(e)
1683
1683
  );
1684
1684
  }
1685
- function Lr(e, t) {
1685
+ function kr(e, t) {
1686
1686
  if (!q)
1687
1687
  return /* @__PURE__ */ br(e);
1688
- var r = /* @__PURE__ */ br(k);
1688
+ var r = /* @__PURE__ */ br(C);
1689
1689
  if (r === null)
1690
- r = k.appendChild(Ke());
1691
- else if (t && r.nodeType !== ln) {
1692
- var n = Ke();
1693
- return r == null || r.before(n), Ie(n), n;
1690
+ r = C.appendChild(ft());
1691
+ else if (t && r.nodeType !== un) {
1692
+ var n = ft();
1693
+ return r == null || r.before(n), ke(n), n;
1694
1694
  }
1695
- return t && oi(
1695
+ return t && li(
1696
1696
  /** @type {Text} */
1697
1697
  r
1698
- ), Ie(r), r;
1698
+ ), ke(r), r;
1699
1699
  }
1700
- function Eo(e, t = !1) {
1700
+ function xo(e, t = !1) {
1701
1701
  if (!q) {
1702
1702
  var r = /* @__PURE__ */ br(e);
1703
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ tt(r) : r;
1703
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ et(r) : r;
1704
1704
  }
1705
1705
  if (t) {
1706
- if ((k == null ? void 0 : k.nodeType) !== ln) {
1707
- var n = Ke();
1708
- return k == null || k.before(n), Ie(n), n;
1706
+ if ((C == null ? void 0 : C.nodeType) !== un) {
1707
+ var n = ft();
1708
+ return C == null || C.before(n), ke(n), n;
1709
1709
  }
1710
- oi(
1710
+ li(
1711
1711
  /** @type {Text} */
1712
- k
1712
+ C
1713
1713
  );
1714
1714
  }
1715
- return k;
1715
+ return C;
1716
1716
  }
1717
- function xo(e, t = 1, r = !1) {
1718
- let n = q ? k : e;
1717
+ function wo(e, t = 1, r = !1) {
1718
+ let n = q ? C : e;
1719
1719
  for (var i; t--; )
1720
1720
  i = n, n = /** @type {TemplateNode} */
1721
- /* @__PURE__ */ tt(n);
1721
+ /* @__PURE__ */ et(n);
1722
1722
  if (!q)
1723
1723
  return n;
1724
1724
  if (r) {
1725
- if ((n == null ? void 0 : n.nodeType) !== ln) {
1726
- var s = Ke();
1727
- return n === null ? i == null || i.after(s) : n.before(s), Ie(s), s;
1725
+ if ((n == null ? void 0 : n.nodeType) !== un) {
1726
+ var s = ft();
1727
+ return n === null ? i == null || i.after(s) : n.before(s), ke(s), s;
1728
1728
  }
1729
- oi(
1729
+ li(
1730
1730
  /** @type {Text} */
1731
1731
  n
1732
1732
  );
1733
1733
  }
1734
- return Ie(n), n;
1734
+ return ke(n), n;
1735
1735
  }
1736
- function wo(e) {
1736
+ function So(e) {
1737
1737
  e.textContent = "";
1738
1738
  }
1739
- function So() {
1740
- return !1;
1741
- }
1742
- function ai(e, t, r) {
1739
+ function ui(e, t, r) {
1743
1740
  return (
1744
1741
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1745
1742
  document.createElement(e)
1746
1743
  );
1747
1744
  }
1748
- function oi(e) {
1745
+ function li(e) {
1749
1746
  if (
1750
1747
  /** @type {string} */
1751
1748
  e.nodeValue.length < 65536
1752
1749
  )
1753
1750
  return;
1754
1751
  let t = e.nextSibling;
1755
- for (; t !== null && t.nodeType === ln; )
1752
+ for (; t !== null && t.nodeType === un; )
1756
1753
  t.remove(), e.nodeValue += /** @type {string} */
1757
1754
  t.nodeValue, t = e.nextSibling;
1758
1755
  }
1759
- function Ss(e) {
1760
- M === null && (O === null && Ga(), Fa()), et && Ua();
1756
+ function Ts(e) {
1757
+ $ === null && (M === null && ja(), Ga()), Ke && Fa();
1761
1758
  }
1762
1759
  function To(e, t) {
1763
1760
  var r = t.last;
@@ -1765,13 +1762,13 @@ function To(e, t) {
1765
1762
  }
1766
1763
  function Le(e, t) {
1767
1764
  var o;
1768
- var r = M;
1769
- r !== null && r.f & Te && (e |= Te);
1765
+ var r = $;
1766
+ r !== null && r.f & Se && (e |= Se);
1770
1767
  var n = {
1771
1768
  ctx: ce,
1772
1769
  deps: null,
1773
1770
  nodes: null,
1774
- f: e | z | Se,
1771
+ f: e | z | we,
1775
1772
  first: null,
1776
1773
  fn: t,
1777
1774
  last: null,
@@ -1786,7 +1783,7 @@ function Le(e, t) {
1786
1783
  H == null || H.register_created_effect(n);
1787
1784
  var i = n;
1788
1785
  if (e & Yt)
1789
- Ct !== null ? Ct.push(n) : lt.ensure().schedule(n);
1786
+ It !== null ? It.push(n) : lt.ensure().schedule(n);
1790
1787
  else if (t !== null) {
1791
1788
  try {
1792
1789
  Zt(n);
@@ -1796,29 +1793,29 @@ function Le(e, t) {
1796
1793
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1797
1794
  !(i.f & At) && (i = i.first, e & Pe && e & zt && i !== null && (i.f |= zt));
1798
1795
  }
1799
- if (i !== null && (i.parent = r, r !== null && To(i, r), O !== null && O.f & ee && !(e & Ge))) {
1796
+ if (i !== null && (i.parent = r, r !== null && To(i, r), M !== null && M.f & ee && !(e & Ge))) {
1800
1797
  var s = (
1801
1798
  /** @type {Derived} */
1802
- O
1799
+ M
1803
1800
  );
1804
1801
  ((o = s.effects) != null ? o : s.effects = []).push(i);
1805
1802
  }
1806
1803
  return n;
1807
1804
  }
1808
- function ui() {
1809
- return O !== null && !Re;
1805
+ function fi() {
1806
+ return M !== null && !Re;
1810
1807
  }
1811
- function Ts(e) {
1812
- const t = Le(Or, null);
1808
+ function Hs(e) {
1809
+ const t = Le($r, null);
1813
1810
  return X(t, J), t.teardown = e, t;
1814
1811
  }
1815
- function yi(e) {
1812
+ function xi(e) {
1816
1813
  var i;
1817
- Ss();
1814
+ Ts();
1818
1815
  var t = (
1819
1816
  /** @type {Effect} */
1820
- M.f
1821
- ), r = !O && (t & Ce) !== 0 && ce !== null && !ce.i;
1817
+ $.f
1818
+ ), r = !M && (t & Ie) !== 0 && ce !== null && !ce.i;
1822
1819
  if (r) {
1823
1820
  var n = (
1824
1821
  /** @type {ComponentContext} */
@@ -1826,13 +1823,13 @@ function yi(e) {
1826
1823
  );
1827
1824
  ((i = n.e) != null ? i : n.e = []).push(e);
1828
1825
  } else
1829
- return Hs(e);
1826
+ return As(e);
1830
1827
  }
1831
- function Hs(e) {
1832
- return Le(Yt | Qi, e);
1828
+ function As(e) {
1829
+ return Le(Yt | Ki, e);
1833
1830
  }
1834
1831
  function Ho(e) {
1835
- return Ss(), Le(Or | Qi, e);
1832
+ return Ts(), Le($r | Ki, e);
1836
1833
  }
1837
1834
  function Ao(e) {
1838
1835
  lt.ensure();
@@ -1856,41 +1853,41 @@ function Oo(e) {
1856
1853
  function Mo(e) {
1857
1854
  return Le(Lt | At, e);
1858
1855
  }
1859
- function As(e, t = 0) {
1860
- return Le(Or | t, e);
1856
+ function $s(e, t = 0) {
1857
+ return Le($r | t, e);
1861
1858
  }
1862
1859
  function Bo(e, t = [], r = [], n = []) {
1863
- ho(n, t, r, (i) => {
1864
- Le(Or, () => {
1865
- e(...i.map(C));
1860
+ co(n, t, r, (i) => {
1861
+ Le($r, () => {
1862
+ e(...i.map(I));
1866
1863
  });
1867
1864
  });
1868
1865
  }
1869
- function $s(e, t = 0) {
1866
+ function Os(e, t = 0) {
1870
1867
  var r = Le(Pe | t, e);
1871
1868
  return r;
1872
1869
  }
1873
- function Xe(e) {
1874
- return Le(Ce | At, e);
1870
+ function rt(e) {
1871
+ return Le(Ie | At, e);
1875
1872
  }
1876
- function Os(e) {
1873
+ function Ms(e) {
1877
1874
  var t = e.teardown;
1878
1875
  if (t !== null) {
1879
- const r = et, n = O;
1880
- xi(!0), $e(null);
1876
+ const r = Ke, n = M;
1877
+ Si(!0), Ae(null);
1881
1878
  try {
1882
1879
  t.call(null);
1883
1880
  } finally {
1884
- xi(r), $e(n);
1881
+ Si(r), Ae(n);
1885
1882
  }
1886
1883
  }
1887
1884
  }
1888
- function li(e, t = !1) {
1885
+ function hi(e, t = !1) {
1889
1886
  var r = e.first;
1890
1887
  for (e.first = e.last = null; r !== null; ) {
1891
1888
  const i = r.ac;
1892
- i !== null && dn(() => {
1893
- i.abort(Mr);
1889
+ i !== null && cn(() => {
1890
+ i.abort(Or);
1894
1891
  });
1895
1892
  var n = r.next;
1896
1893
  r.f & Ge ? r.parent = null : de(r, t), r = n;
@@ -1899,37 +1896,37 @@ function li(e, t = !1) {
1899
1896
  function No(e) {
1900
1897
  for (var t = e.first; t !== null; ) {
1901
1898
  var r = t.next;
1902
- t.f & Ce || de(t), t = r;
1899
+ t.f & Ie || de(t), t = r;
1903
1900
  }
1904
1901
  }
1905
1902
  function de(e, t = !0) {
1906
1903
  var r = !1;
1907
- (t || e.f & Ra) && e.nodes !== null && e.nodes.end !== null && (Po(
1904
+ (t || e.f & Ca) && e.nodes !== null && e.nodes.end !== null && (Po(
1908
1905
  e.nodes.start,
1909
1906
  /** @type {TemplateNode} */
1910
1907
  e.nodes.end
1911
- ), r = !0), e.f |= mi, li(e, t && !r), gr(e, 0);
1908
+ ), r = !0), e.f |= bi, hi(e, t && !r), gr(e, 0);
1912
1909
  var n = e.nodes && e.nodes.t;
1913
1910
  if (n !== null)
1914
1911
  for (const s of n)
1915
1912
  s.stop();
1916
- Os(e), e.f ^= mi, e.f |= He;
1913
+ Ms(e), e.f ^= bi, e.f |= Te;
1917
1914
  var i = e.parent;
1918
- i !== null && i.first !== null && Ms(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1915
+ i !== null && i.first !== null && Bs(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1919
1916
  }
1920
1917
  function Po(e, t) {
1921
1918
  for (; e !== null; ) {
1922
- var r = e === t ? null : /* @__PURE__ */ tt(e);
1919
+ var r = e === t ? null : /* @__PURE__ */ et(e);
1923
1920
  e.remove(), e = r;
1924
1921
  }
1925
1922
  }
1926
- function Ms(e) {
1923
+ function Bs(e) {
1927
1924
  var t = e.parent, r = e.prev, n = e.next;
1928
1925
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1929
1926
  }
1930
1927
  function mr(e, t, r = !0) {
1931
1928
  var n = [];
1932
- Bs(e, n, !0);
1929
+ Ns(e, n, !0);
1933
1930
  var i = () => {
1934
1931
  r && de(e), t && t();
1935
1932
  }, s = n.length;
@@ -1940,9 +1937,9 @@ function mr(e, t, r = !0) {
1940
1937
  } else
1941
1938
  i();
1942
1939
  }
1943
- function Bs(e, t, r) {
1944
- if (!(e.f & Te)) {
1945
- e.f ^= Te;
1940
+ function Ns(e, t, r) {
1941
+ if (!(e.f & Se)) {
1942
+ e.f ^= Se;
1946
1943
  var n = e.nodes && e.nodes.t;
1947
1944
  if (n !== null)
1948
1945
  for (const a of n)
@@ -1953,22 +1950,22 @@ function Bs(e, t, r) {
1953
1950
  var o = (i.f & zt) !== 0 || // If this is a branch effect without a block effect parent,
1954
1951
  // it means the parent block effect was pruned. In that case,
1955
1952
  // transparency information was transferred to the branch effect.
1956
- (i.f & Ce) !== 0 && (e.f & Pe) !== 0;
1957
- Bs(i, t, o ? r : !1);
1953
+ (i.f & Ie) !== 0 && (e.f & Pe) !== 0;
1954
+ Ns(i, t, o ? r : !1);
1958
1955
  }
1959
1956
  i = s;
1960
1957
  }
1961
1958
  }
1962
1959
  }
1963
- function Ei(e) {
1964
- Ns(e, !0);
1960
+ function wi(e) {
1961
+ Ps(e, !0);
1965
1962
  }
1966
- function Ns(e, t) {
1967
- if (e.f & Te) {
1968
- e.f ^= Te, e.f & J || (X(e, z), lt.ensure().schedule(e));
1963
+ function Ps(e, t) {
1964
+ if (e.f & Se) {
1965
+ e.f ^= Se, e.f & J || (X(e, z), lt.ensure().schedule(e));
1969
1966
  for (var r = e.first; r !== null; ) {
1970
- var n = r.next, i = (r.f & zt) !== 0 || (r.f & Ce) !== 0;
1971
- Ns(r, i ? t : !1), r = n;
1967
+ var n = r.next, i = (r.f & zt) !== 0 || (r.f & Ie) !== 0;
1968
+ Ps(r, i ? t : !1), r = n;
1972
1969
  }
1973
1970
  var s = e.nodes && e.nodes.t;
1974
1971
  if (s !== null)
@@ -1976,90 +1973,90 @@ function Ns(e, t) {
1976
1973
  (o.is_global || t) && o.in();
1977
1974
  }
1978
1975
  }
1979
- function Ps(e, t) {
1976
+ function Rs(e, t) {
1980
1977
  if (e.nodes)
1981
1978
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1982
- var i = r === n ? null : /* @__PURE__ */ tt(r);
1979
+ var i = r === n ? null : /* @__PURE__ */ et(r);
1983
1980
  t.append(r), r = i;
1984
1981
  }
1985
1982
  }
1986
- let Vr = !1, et = !1;
1987
- function xi(e) {
1988
- et = e;
1983
+ let jr = !1, Ke = !1;
1984
+ function Si(e) {
1985
+ Ke = e;
1989
1986
  }
1990
- let O = null, Re = !1;
1991
- function $e(e) {
1992
- O = e;
1987
+ let M = null, Re = !1;
1988
+ function Ae(e) {
1989
+ M = e;
1993
1990
  }
1994
- let M = null;
1991
+ let $ = null;
1995
1992
  function je(e) {
1996
- M = e;
1993
+ $ = e;
1997
1994
  }
1998
- let Ae = null;
1999
- function Rs(e) {
2000
- O !== null && (Ae != null ? Ae : Ae = /* @__PURE__ */ new Set()).add(e);
1995
+ let He = null;
1996
+ function Cs(e) {
1997
+ M !== null && (He != null ? He : He = /* @__PURE__ */ new Set()).add(e);
2001
1998
  }
2002
- let he = null, pe = 0, ge = null;
1999
+ let he = null, pe = 0, be = null;
2003
2000
  function Ro(e) {
2004
- ge = e;
2001
+ be = e;
2005
2002
  }
2006
- let ks = 1, vt = 0, wt = vt;
2007
- function wi(e) {
2003
+ let Is = 1, mt = 0, wt = mt;
2004
+ function Ti(e) {
2008
2005
  wt = e;
2009
2006
  }
2010
- function Cs() {
2011
- return ++ks;
2007
+ function ks() {
2008
+ return ++Is;
2012
2009
  }
2013
- function Nr(e) {
2010
+ function Br(e) {
2014
2011
  var t = e.f;
2015
2012
  if (t & z)
2016
2013
  return !0;
2017
- if (t & ee && (e.f &= ~St), t & ke) {
2014
+ if (t & ee && (e.f &= ~St), t & Ce) {
2018
2015
  for (var r = (
2019
2016
  /** @type {Value[]} */
2020
2017
  e.deps
2021
2018
  ), n = r.length, i = 0; i < n; i++) {
2022
2019
  var s = r[i];
2023
- if (Nr(
2020
+ if (Br(
2024
2021
  /** @type {Derived} */
2025
2022
  s
2026
- ) && hs(
2023
+ ) && cs(
2027
2024
  /** @type {Derived} */
2028
2025
  s
2029
2026
  ), s.wv > e.wv)
2030
2027
  return !0;
2031
2028
  }
2032
- t & Se && // During time traveling we don't want to reset the status so that
2029
+ t & we && // During time traveling we don't want to reset the status so that
2033
2030
  // traversal of the graph in the other batches still happens
2034
2031
  re === null && X(e, J);
2035
2032
  }
2036
2033
  return !1;
2037
2034
  }
2038
- function Is(e, t, r = !0) {
2035
+ function Ls(e, t, r = !0) {
2039
2036
  var n = e.reactions;
2040
- if (n !== null && !(Ae !== null && Ae.has(e)))
2037
+ if (n !== null && !(He !== null && He.has(e)))
2041
2038
  for (var i = 0; i < n.length; i++) {
2042
2039
  var s = n[i];
2043
- s.f & ee ? Is(
2040
+ s.f & ee ? Ls(
2044
2041
  /** @type {Derived} */
2045
2042
  s,
2046
2043
  t,
2047
2044
  !1
2048
- ) : t === s && (r ? X(s, z) : s.f & J && X(s, ke), si(
2045
+ ) : t === s && (r ? X(s, z) : s.f & J && X(s, Ce), oi(
2049
2046
  /** @type {Effect} */
2050
2047
  s
2051
2048
  ));
2052
2049
  }
2053
2050
  }
2054
- function Ls(e) {
2051
+ function Ds(e) {
2055
2052
  var g, P;
2056
- var t = he, r = pe, n = ge, i = O, s = Ae, o = ce, a = Re, u = wt, l = e.f;
2053
+ var t = he, r = pe, n = be, i = M, s = He, o = ce, a = Re, u = wt, l = e.f;
2057
2054
  he = /** @type {null | Value[]} */
2058
- null, pe = 0, ge = null, O = l & (Ce | Ge) ? null : e, Ae = null, qt(e.ctx), Re = !1, wt = ++vt, e.ac !== null && (dn(() => {
2059
- e.ac.abort(Mr);
2055
+ null, pe = 0, be = null, M = l & (Ie | Ge) ? null : e, He = null, qt(e.ctx), Re = !1, wt = ++mt, e.ac !== null && (cn(() => {
2056
+ e.ac.abort(Or);
2060
2057
  }), e.ac = null);
2061
2058
  try {
2062
- e.f |= Qr;
2059
+ e.f |= Jr;
2063
2060
  var h = (
2064
2061
  /** @type {Function} */
2065
2062
  e.fn
@@ -2073,39 +2070,39 @@ function Ls(e) {
2073
2070
  c[pe + v] = he[v];
2074
2071
  else
2075
2072
  e.deps = c = he;
2076
- if (ui() && e.f & Se)
2073
+ if (fi() && e.f & we)
2077
2074
  for (v = pe; v < c.length; v++)
2078
2075
  ((P = (g = c[v]).reactions) != null ? P : g.reactions = []).push(e);
2079
2076
  } else !p && c !== null && pe < c.length && (gr(e, pe), c.length = pe);
2080
- if (rs() && ge !== null && !Re && c !== null && !(e.f & (ee | ke | z)))
2077
+ if (ns() && be !== null && !Re && c !== null && !(e.f & (ee | Ce | z)))
2081
2078
  for (v = 0; v < /** @type {Source[]} */
2082
- ge.length; v++)
2083
- Is(
2084
- ge[v],
2079
+ be.length; v++)
2080
+ Ls(
2081
+ be[v],
2085
2082
  /** @type {Effect} */
2086
2083
  e
2087
2084
  );
2088
2085
  if (i !== null && i !== e) {
2089
- if (vt++, i.deps !== null)
2086
+ if (mt++, i.deps !== null)
2090
2087
  for (let B = 0; B < r; B += 1)
2091
- i.deps[B].rv = vt;
2088
+ i.deps[B].rv = mt;
2092
2089
  if (t !== null)
2093
2090
  for (const B of t)
2094
- B.rv = vt;
2095
- ge !== null && (n === null ? n = ge : n.push(.../** @type {Source[]} */
2096
- ge));
2091
+ B.rv = mt;
2092
+ be !== null && (n === null ? n = be : n.push(.../** @type {Source[]} */
2093
+ be));
2097
2094
  }
2098
2095
  return e.f & ut && (e.f ^= ut), d;
2099
2096
  } catch (B) {
2100
- return is(B);
2097
+ return ss(B);
2101
2098
  } finally {
2102
- e.f ^= Qr, he = t, pe = r, ge = n, O = i, Ae = s, qt(o), Re = a, wt = u;
2099
+ e.f ^= Jr, he = t, pe = r, be = n, M = i, He = s, qt(o), Re = a, wt = u;
2103
2100
  }
2104
2101
  }
2105
- function ko(e, t) {
2102
+ function Co(e, t) {
2106
2103
  let r = t.reactions;
2107
2104
  if (r !== null) {
2108
- var n = Oa.call(r, e);
2105
+ var n = Ma.call(r, e);
2109
2106
  if (n !== -1) {
2110
2107
  var i = r.length - 1;
2111
2108
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
@@ -2114,68 +2111,68 @@ function ko(e, t) {
2114
2111
  if (r === null && t.f & ee && // Destroying a child effect while updating a parent effect can cause a dependency to appear
2115
2112
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
2116
2113
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
2117
- (he === null || !qr.call(he, t))) {
2114
+ (he === null || !zr.call(he, t))) {
2118
2115
  var s = (
2119
2116
  /** @type {Derived} */
2120
2117
  t
2121
2118
  );
2122
- s.f & Se && (s.f ^= Se, s.f &= ~St), s.v !== Z && ei(s), s.ac !== null && dn(() => {
2123
- s.ac.abort(Mr), s.ac = null, X(s, z);
2124
- }), mo(s), gr(s, 0);
2119
+ s.f & we && (s.f ^= we, s.f &= ~St), s.v !== Z && ri(s), s.ac !== null && cn(() => {
2120
+ s.ac.abort(Or), s.ac = null, X(s, z);
2121
+ }), _o(s), gr(s, 0);
2125
2122
  }
2126
2123
  }
2127
2124
  function gr(e, t) {
2128
2125
  var r = e.deps;
2129
2126
  if (r !== null)
2130
2127
  for (var n = t; n < r.length; n++)
2131
- ko(e, r[n]);
2128
+ Co(e, r[n]);
2132
2129
  }
2133
2130
  function Zt(e) {
2134
2131
  var t = e.f;
2135
- if (!(t & He)) {
2132
+ if (!(t & Te)) {
2136
2133
  X(e, J);
2137
- var r = M, n = Vr;
2138
- M = e, Vr = (t & (Ce | Ge)) === 0;
2134
+ var r = $, n = jr;
2135
+ $ = e, jr = (t & (Ie | Ge)) === 0;
2139
2136
  try {
2140
- t & (Pe | Ji) ? No(e) : li(e), Os(e);
2141
- var i = Ls(e);
2142
- e.teardown = typeof i == "function" ? i : null, e.wv = ks;
2137
+ t & (Pe | Qi) ? No(e) : hi(e), Ms(e);
2138
+ var i = Ds(e);
2139
+ e.teardown = typeof i == "function" ? i : null, e.wv = Is;
2143
2140
  var s;
2144
- zi && eo && e.f & z && e.deps;
2141
+ qi && to && e.f & z && e.deps;
2145
2142
  } finally {
2146
- Vr = n, M = r;
2143
+ jr = n, $ = r;
2147
2144
  }
2148
2145
  }
2149
2146
  }
2150
- function C(e) {
2147
+ function I(e) {
2151
2148
  var h;
2152
2149
  var t = e.f, r = (t & ee) !== 0;
2153
- if (O !== null && !Re) {
2154
- var n = M !== null && (M.f & He) !== 0;
2155
- if (!n && (Ae === null || !Ae.has(e))) {
2156
- var i = O.deps;
2157
- if (O.f & Qr)
2158
- e.rv < vt && (e.rv = vt, he === null && i !== null && i[pe] === e ? pe++ : he === null ? he = [e] : he.push(e));
2150
+ if (M !== null && !Re) {
2151
+ var n = $ !== null && ($.f & Te) !== 0;
2152
+ if (!n && (He === null || !He.has(e))) {
2153
+ var i = M.deps;
2154
+ if (M.f & Jr)
2155
+ e.rv < mt && (e.rv = mt, he === null && i !== null && i[pe] === e ? pe++ : he === null ? he = [e] : he.push(e));
2159
2156
  else {
2160
- (h = O.deps) != null || (O.deps = []), qr.call(O.deps, e) || O.deps.push(e);
2157
+ (h = M.deps) != null || (M.deps = []), zr.call(M.deps, e) || M.deps.push(e);
2161
2158
  var s = e.reactions;
2162
- s === null ? e.reactions = [O] : qr.call(s, O) || s.push(O);
2159
+ s === null ? e.reactions = [M] : zr.call(s, M) || s.push(M);
2163
2160
  }
2164
2161
  }
2165
2162
  }
2166
- if (et && xt.has(e))
2167
- return xt.get(e);
2163
+ if (Ke && Fe.has(e))
2164
+ return Fe.get(e);
2168
2165
  if (r) {
2169
2166
  var o = (
2170
2167
  /** @type {Derived} */
2171
2168
  e
2172
2169
  );
2173
- if (et) {
2170
+ if (Ke) {
2174
2171
  var a = o.v;
2175
- return (!(o.f & J) && o.reactions !== null || Us(o)) && (a = ni(o)), xt.set(o, a), a;
2172
+ return (!(o.f & J) && o.reactions !== null || Fs(o)) && (a = si(o)), Fe.set(o, a), a;
2176
2173
  }
2177
- var u = (o.f & Se) === 0 && !Re && O !== null && (Vr || (O.f & Se) !== 0), l = (o.f & Ht) === 0;
2178
- Nr(o) && (u && (o.f |= Se), hs(o)), u && !l && (cs(o), Ds(o));
2174
+ var u = (o.f & we) === 0 && !Re && M !== null && (jr || (M.f & we) !== 0), l = (o.f & Ht) === 0;
2175
+ Br(o) && (u && (o.f |= we), cs(o)), u && !l && (ds(o), Us(o));
2179
2176
  }
2180
2177
  if (re != null && re.has(e))
2181
2178
  return re.get(e);
@@ -2183,30 +2180,30 @@ function C(e) {
2183
2180
  throw e.v;
2184
2181
  return e.v;
2185
2182
  }
2186
- function Ds(e) {
2183
+ function Us(e) {
2187
2184
  var t;
2188
- if (e.f |= Se, e.deps !== null)
2185
+ if (e.f |= we, e.deps !== null)
2189
2186
  for (const r of e.deps)
2190
- ((t = r.reactions) != null ? t : r.reactions = []).push(e), r.f & ee && !(r.f & Se) && (cs(
2187
+ ((t = r.reactions) != null ? t : r.reactions = []).push(e), r.f & ee && !(r.f & we) && (ds(
2191
2188
  /** @type {Derived} */
2192
2189
  r
2193
- ), Ds(
2190
+ ), Us(
2194
2191
  /** @type {Derived} */
2195
2192
  r
2196
2193
  ));
2197
2194
  }
2198
- function Us(e) {
2195
+ function Fs(e) {
2199
2196
  if (e.v === Z) return !0;
2200
2197
  if (e.deps === null) return !1;
2201
2198
  for (const t of e.deps)
2202
- if (xt.has(t) || t.f & ee && Us(
2199
+ if (Fe.has(t) || t.f & ee && Fs(
2203
2200
  /** @type {Derived} */
2204
2201
  t
2205
2202
  ))
2206
2203
  return !0;
2207
2204
  return !1;
2208
2205
  }
2209
- function Fs(e) {
2206
+ function Gs(e) {
2210
2207
  var t = Re;
2211
2208
  try {
2212
2209
  return Re = !0, e();
@@ -2214,19 +2211,19 @@ function Fs(e) {
2214
2211
  Re = t;
2215
2212
  }
2216
2213
  }
2217
- const mt = Symbol("events"), Gs = /* @__PURE__ */ new Set(), Un = /* @__PURE__ */ new Set();
2218
- function Co(e, t, r) {
2214
+ const _t = Symbol("events"), js = /* @__PURE__ */ new Set(), Fn = /* @__PURE__ */ new Set();
2215
+ function Io(e, t, r) {
2219
2216
  var n;
2220
- ((n = t[mt]) != null ? n : t[mt] = {})[e] = r;
2217
+ ((n = t[_t]) != null ? n : t[_t] = {})[e] = r;
2221
2218
  }
2222
- function Io(e) {
2219
+ function ko(e) {
2223
2220
  for (var t = 0; t < e.length; t++)
2224
- Gs.add(e[t]);
2225
- for (var r of Un)
2221
+ js.add(e[t]);
2222
+ for (var r of Fn)
2226
2223
  r(e);
2227
2224
  }
2228
- let Si = null;
2229
- function Ti(e) {
2225
+ let xn = null, wn = !1;
2226
+ function Hi(e) {
2230
2227
  var g, P;
2231
2228
  var t = this, r = (
2232
2229
  /** @type {Node} */
@@ -2235,13 +2232,15 @@ function Ti(e) {
2235
2232
  /** @type {null | Element} */
2236
2233
  i[0] || e.target
2237
2234
  );
2238
- Si = e;
2239
- var o = 0, a = Si === e && e[mt];
2235
+ xn = e, wn || (wn = !0, setTimeout(() => {
2236
+ wn = !1, xn = null;
2237
+ }));
2238
+ var o = 0, a = xn === e && e[_t];
2240
2239
  if (a) {
2241
2240
  var u = i.indexOf(a);
2242
2241
  if (u !== -1 && (t === document || t === /** @type {any} */
2243
2242
  window)) {
2244
- e[mt] = t;
2243
+ e[_t] = t;
2245
2244
  return;
2246
2245
  }
2247
2246
  var l = i.indexOf(t);
@@ -2257,12 +2256,12 @@ function Ti(e) {
2257
2256
  return s || r;
2258
2257
  }
2259
2258
  });
2260
- var h = O, d = M;
2261
- $e(null), je(null);
2259
+ var h = M, d = $;
2260
+ Ae(null), je(null);
2262
2261
  try {
2263
2262
  for (var c, p = []; s !== null && s !== t; ) {
2264
2263
  try {
2265
- var v = (P = s[mt]) == null ? void 0 : P[n];
2264
+ var v = (P = s[_t]) == null ? void 0 : P[n];
2266
2265
  v != null && (!/** @type {any} */
2267
2266
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
2268
2267
  // -> the target could not have been disabled because it emits the event in the first place
@@ -2284,14 +2283,14 @@ function Ti(e) {
2284
2283
  throw c;
2285
2284
  }
2286
2285
  } finally {
2287
- e[mt] = t, delete e.currentTarget, $e(h), je(d);
2286
+ e[_t] = t, delete e.currentTarget, Ae(h), je(d);
2288
2287
  }
2289
2288
  }
2290
2289
  }
2291
- var Vi;
2292
- const wn = (
2290
+ var Xi;
2291
+ const Sn = (
2293
2292
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
2294
- ((Vi = globalThis == null ? void 0 : globalThis.window) == null ? void 0 : Vi.trustedTypes) && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
2293
+ ((Xi = globalThis == null ? void 0 : globalThis.window) == null ? void 0 : Xi.trustedTypes) && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
2295
2294
  /** @param {string} html */
2296
2295
  createHTML: (e) => e
2297
2296
  })
@@ -2300,48 +2299,48 @@ function Lo(e) {
2300
2299
  var t;
2301
2300
  return (
2302
2301
  /** @type {string} */
2303
- (t = wn == null ? void 0 : wn.createHTML(e)) != null ? t : e
2302
+ (t = Sn == null ? void 0 : Sn.createHTML(e)) != null ? t : e
2304
2303
  );
2305
2304
  }
2306
2305
  function Do(e) {
2307
- var t = ai("template");
2306
+ var t = ui("template");
2308
2307
  return t.innerHTML = Lo(e.replaceAll("<!>", "<!---->")), t.content;
2309
2308
  }
2310
2309
  function yr(e, t) {
2311
2310
  var r = (
2312
2311
  /** @type {Effect} */
2313
- M
2312
+ $
2314
2313
  );
2315
2314
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
2316
2315
  }
2317
2316
  // @__NO_SIDE_EFFECTS__
2318
- function js(e, t) {
2319
- var r = (t & Aa) !== 0, n, i = !e.startsWith("<!>");
2317
+ function Vs(e, t) {
2318
+ var r = (t & $a) !== 0, n, i = !e.startsWith("<!>");
2320
2319
  return () => {
2321
2320
  if (q)
2322
- return yr(k, null), k;
2321
+ return yr(C, null), C;
2323
2322
  n === void 0 && (n = Do(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
2324
2323
  /* @__PURE__ */ br(n));
2325
2324
  var s = (
2326
2325
  /** @type {TemplateNode} */
2327
- r || Es ? document.importNode(n, !0) : n.cloneNode(!0)
2326
+ r || xs ? document.importNode(n, !0) : n.cloneNode(!0)
2328
2327
  );
2329
2328
  return yr(s, s), s;
2330
2329
  };
2331
2330
  }
2332
2331
  function Uo() {
2333
2332
  if (q)
2334
- return yr(k, null), k;
2335
- var e = document.createDocumentFragment(), t = document.createComment(""), r = Ke();
2333
+ return yr(C, null), C;
2334
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = ft();
2336
2335
  return e.append(t, r), yr(t, r), e;
2337
2336
  }
2338
- function Xr(e, t) {
2337
+ function Vr(e, t) {
2339
2338
  if (q) {
2340
2339
  var r = (
2341
2340
  /** @type {Effect & { nodes: EffectNodes }} */
2342
- M
2341
+ $
2343
2342
  );
2344
- (!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = k), Jn();
2343
+ (!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = C), Kn();
2345
2344
  return;
2346
2345
  }
2347
2346
  e !== null && e.before(
@@ -2353,47 +2352,47 @@ const Fo = ["touchstart", "touchmove"];
2353
2352
  function Go(e) {
2354
2353
  return Fo.includes(e);
2355
2354
  }
2356
- function Hi(e, t) {
2355
+ function Ai(e, t) {
2357
2356
  var n;
2358
2357
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
2359
2358
  r !== /** @type {any} */
2360
2359
  ((n = e[ur]) != null ? n : e[ur] = e.nodeValue) && (e[ur] = r, e.nodeValue = `${r}`);
2361
2360
  }
2362
- function Vs(e, t) {
2363
- return Xs(e, t);
2361
+ function Xs(e, t) {
2362
+ return Ws(e, t);
2364
2363
  }
2365
2364
  function jo(e, t) {
2366
2365
  var o;
2367
- Dn(), t.intro = (o = t.intro) != null ? o : !1;
2368
- const r = t.target, n = q, i = k;
2366
+ Un(), t.intro = (o = t.intro) != null ? o : !1;
2367
+ const r = t.target, n = q, i = C;
2369
2368
  try {
2370
- for (var s = /* @__PURE__ */ br(r); s && (s.nodeType !== fn || /** @type {Comment} */
2371
- s.data !== Xi); )
2372
- s = /* @__PURE__ */ tt(s);
2369
+ for (var s = /* @__PURE__ */ br(r); s && (s.nodeType !== ln || /** @type {Comment} */
2370
+ s.data !== Wi); )
2371
+ s = /* @__PURE__ */ et(s);
2373
2372
  if (!s)
2374
2373
  throw Wt;
2375
- kt(!0), Ie(
2374
+ Ct(!0), ke(
2376
2375
  /** @type {Comment} */
2377
2376
  s
2378
2377
  );
2379
- const a = Xs(e, kr(Rr({}, t), { anchor: s }));
2380
- return kt(!1), /** @type {Exports} */
2378
+ const a = Ws(e, Rr(Pr({}, t), { anchor: s }));
2379
+ return Ct(!1), /** @type {Exports} */
2381
2380
  a;
2382
2381
  } catch (a) {
2383
2382
  if (a instanceof Error && a.message.split(`
2384
2383
  `).some((u) => u.startsWith("https://svelte.dev/e/")))
2385
2384
  throw a;
2386
- return a !== Wt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Va(), Dn(), wo(r), kt(!1), Vs(e, t);
2385
+ return a !== Wt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Xa(), Un(), So(r), Ct(!1), Xs(e, t);
2387
2386
  } finally {
2388
- kt(n), Ie(i);
2387
+ Ct(n), ke(i);
2389
2388
  }
2390
2389
  }
2391
- const Dr = /* @__PURE__ */ new Map();
2392
- function Xs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
2393
- Dn();
2390
+ const Lr = /* @__PURE__ */ new Map();
2391
+ function Ws(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
2392
+ Un();
2394
2393
  var u = void 0, l = $o(() => {
2395
- var h = r != null ? r : t.appendChild(Ke());
2396
- lo(
2394
+ var h = r != null ? r : t.appendChild(ft());
2395
+ fo(
2397
2396
  /** @type {TemplateNode} */
2398
2397
  h,
2399
2398
  {
@@ -2401,7 +2400,7 @@ function Xs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2401
2400
  }
2402
2401
  },
2403
2402
  (p) => {
2404
- Qn({});
2403
+ ei({});
2405
2404
  var v = (
2406
2405
  /** @type {ComponentContext} */
2407
2406
  ce
@@ -2410,10 +2409,10 @@ function Xs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2410
2409
  /** @type {TemplateNode} */
2411
2410
  p,
2412
2411
  null
2413
- ), u = e(p, n) || {}, q && (M.nodes.end = k, k === null || k.nodeType !== fn || /** @type {Comment} */
2414
- k.data !== Yi))
2415
- throw hn(), Wt;
2416
- Kn();
2412
+ ), u = e(p, n) || {}, q && ($.nodes.end = C, C === null || C.nodeType !== ln || /** @type {Comment} */
2413
+ C.data !== zi))
2414
+ throw fn(), Wt;
2415
+ ti();
2417
2416
  },
2418
2417
  a
2419
2418
  );
@@ -2424,38 +2423,38 @@ function Xs(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2424
2423
  d.add(g);
2425
2424
  var P = Go(g);
2426
2425
  for (const j of [t, document]) {
2427
- var B = Dr.get(j);
2428
- B === void 0 && (B = /* @__PURE__ */ new Map(), Dr.set(j, B));
2426
+ var B = Lr.get(j);
2427
+ B === void 0 && (B = /* @__PURE__ */ new Map(), Lr.set(j, B));
2429
2428
  var Q = B.get(g);
2430
- Q === void 0 ? (j.addEventListener(g, Ti, { passive: P }), B.set(g, 1)) : B.set(g, Q + 1);
2429
+ Q === void 0 ? (j.addEventListener(g, Hi, { passive: P }), B.set(g, 1)) : B.set(g, Q + 1);
2431
2430
  }
2432
2431
  }
2433
2432
  }
2434
2433
  };
2435
- return c(Ma(Gs)), Un.add(c), () => {
2434
+ return c(Ba(js)), Fn.add(c), () => {
2436
2435
  var P;
2437
2436
  for (var p of d)
2438
2437
  for (const B of [t, document]) {
2439
2438
  var v = (
2440
2439
  /** @type {Map<string, number>} */
2441
- Dr.get(B)
2440
+ Lr.get(B)
2442
2441
  ), g = (
2443
2442
  /** @type {number} */
2444
2443
  v.get(p)
2445
2444
  );
2446
- --g == 0 ? (B.removeEventListener(p, Ti), v.delete(p), v.size === 0 && Dr.delete(B)) : v.set(p, g);
2445
+ --g == 0 ? (B.removeEventListener(p, Hi), v.delete(p), v.size === 0 && Lr.delete(B)) : v.set(p, g);
2447
2446
  }
2448
- Un.delete(c), h !== r && ((P = h.parentNode) == null || P.removeChild(h));
2447
+ Fn.delete(c), h !== r && ((P = h.parentNode) == null || P.removeChild(h));
2449
2448
  };
2450
2449
  });
2451
- return Fn.set(u, l), u;
2450
+ return Gn.set(u, l), u;
2452
2451
  }
2453
- let Fn = /* @__PURE__ */ new WeakMap();
2452
+ let Gn = /* @__PURE__ */ new WeakMap();
2454
2453
  function Vo(e, t) {
2455
- const r = Fn.get(e);
2456
- return r ? (Fn.delete(e), r(t)) : Promise.resolve();
2454
+ const r = Gn.get(e);
2455
+ return r ? (Gn.delete(e), r(t)) : Promise.resolve();
2457
2456
  }
2458
- var Ne, Ue, _e, Et, Ar, $r, un;
2457
+ var Be, qe, Ne, xt, Ar, on, Qn;
2459
2458
  class Xo {
2460
2459
  /**
2461
2460
  * @param {TemplateNode} anchor
@@ -2465,7 +2464,7 @@ class Xo {
2465
2464
  /** @type {TemplateNode} */
2466
2465
  F(this, "anchor");
2467
2466
  /** @type {Map<Batch, Key>} */
2468
- A(this, Ne, /* @__PURE__ */ new Map());
2467
+ A(this, Be, /* @__PURE__ */ new Map());
2469
2468
  /**
2470
2469
  * Map of keys to effects that are currently rendered in the DOM.
2471
2470
  * These effects are visible and actively part of the document tree.
@@ -2480,18 +2479,18 @@ class Xo {
2480
2479
  * Can result in the entries `true->Effect` and `false->Effect`
2481
2480
  * @type {Map<Key, Effect>}
2482
2481
  */
2483
- A(this, Ue, /* @__PURE__ */ new Map());
2482
+ A(this, qe, /* @__PURE__ */ new Map());
2484
2483
  /**
2485
2484
  * Similar to #onscreen with respect to the keys, but contains branches that are not yet
2486
2485
  * in the DOM, because their insertion is deferred.
2487
2486
  * @type {Map<Key, Branch>}
2488
2487
  */
2489
- A(this, _e, /* @__PURE__ */ new Map());
2488
+ A(this, Ne, /* @__PURE__ */ new Map());
2490
2489
  /**
2491
2490
  * Keys of effects that are currently outroing
2492
2491
  * @type {Set<Key>}
2493
2492
  */
2494
- A(this, Et, /* @__PURE__ */ new Set());
2493
+ A(this, xt, /* @__PURE__ */ new Set());
2495
2494
  /**
2496
2495
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2497
2496
  * This is necessary for `<svelte:element>`
@@ -2500,46 +2499,46 @@ class Xo {
2500
2499
  /**
2501
2500
  * @param {Batch} batch
2502
2501
  */
2503
- A(this, $r, (t) => {
2504
- if (f(this, Ne).has(t)) {
2502
+ A(this, on, (t) => {
2503
+ if (f(this, Be).has(t)) {
2505
2504
  var r = (
2506
2505
  /** @type {Key} */
2507
- f(this, Ne).get(t)
2508
- ), n = f(this, Ue).get(r);
2506
+ f(this, Be).get(t)
2507
+ ), n = f(this, qe).get(r);
2509
2508
  if (n)
2510
- Ei(n), f(this, Et).delete(r);
2509
+ wi(n), f(this, xt).delete(r);
2511
2510
  else {
2512
- var i = f(this, _e).get(r);
2513
- i && (Ei(i.effect), f(this, Ue).set(r, i.effect), f(this, _e).delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
2511
+ var i = f(this, Ne).get(r);
2512
+ i && (wi(i.effect), f(this, qe).set(r, i.effect), f(this, Ne).delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
2514
2513
  }
2515
- for (const [s, o] of f(this, Ne)) {
2516
- if (f(this, Ne).delete(s), s === t)
2514
+ for (const [s, o] of f(this, Be)) {
2515
+ if (f(this, Be).delete(s), s === t)
2517
2516
  break;
2518
- const a = f(this, _e).get(o);
2519
- a && (de(a.effect), f(this, _e).delete(o));
2517
+ const a = f(this, Ne).get(o);
2518
+ a && (de(a.effect), f(this, Ne).delete(o));
2520
2519
  }
2521
- for (const [s, o] of f(this, Ue)) {
2522
- if (s === r || f(this, Et).has(s)) continue;
2520
+ for (const [s, o] of f(this, qe)) {
2521
+ if (s === r || f(this, xt).has(s)) continue;
2523
2522
  const a = () => {
2524
- if (Array.from(f(this, Ne).values()).includes(s)) {
2523
+ if (Array.from(f(this, Be).values()).includes(s)) {
2525
2524
  var l = document.createDocumentFragment();
2526
- Ps(o, l), l.append(Ke()), f(this, _e).set(s, { effect: o, fragment: l });
2525
+ Rs(o, l), l.append(ft()), f(this, Ne).set(s, { effect: o, fragment: l });
2527
2526
  } else
2528
2527
  de(o);
2529
- f(this, Et).delete(s), f(this, Ue).delete(s);
2528
+ f(this, xt).delete(s), f(this, qe).delete(s);
2530
2529
  };
2531
- f(this, Ar) || !n ? (f(this, Et).add(s), mr(o, a, !1)) : a();
2530
+ f(this, Ar) || !n ? (f(this, xt).add(s), mr(o, a, !1)) : a();
2532
2531
  }
2533
2532
  }
2534
2533
  });
2535
2534
  /**
2536
2535
  * @param {Batch} batch
2537
2536
  */
2538
- A(this, un, (t) => {
2539
- f(this, Ne).delete(t);
2540
- const r = Array.from(f(this, Ne).values());
2541
- for (const [n, i] of f(this, _e))
2542
- r.includes(n) || (de(i.effect), f(this, _e).delete(n));
2537
+ A(this, Qn, (t) => {
2538
+ f(this, Be).delete(t);
2539
+ const r = Array.from(f(this, Be).values());
2540
+ for (const [n, i] of f(this, Ne))
2541
+ r.includes(n) || (de(i.effect), f(this, Ne).delete(n));
2543
2542
  });
2544
2543
  this.anchor = t, w(this, Ar, r);
2545
2544
  }
@@ -2552,49 +2551,33 @@ class Xo {
2552
2551
  var n = (
2553
2552
  /** @type {Batch} */
2554
2553
  H
2555
- ), i = So();
2556
- if (r && !f(this, Ue).has(t) && !f(this, _e).has(t))
2557
- if (i) {
2558
- var s = document.createDocumentFragment(), o = Ke();
2559
- s.append(o), f(this, _e).set(t, {
2560
- effect: Xe(() => r(o)),
2561
- fragment: s
2562
- });
2563
- } else
2564
- f(this, Ue).set(
2565
- t,
2566
- Xe(() => r(this.anchor))
2567
- );
2568
- if (f(this, Ne).set(n, t), i) {
2569
- for (const [a, u] of f(this, Ue))
2570
- a === t ? n.unskip_effect(u) : n.skip_effect(u);
2571
- for (const [a, u] of f(this, _e))
2572
- a === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
2573
- n.oncommit(f(this, $r)), n.ondiscard(f(this, un));
2574
- } else
2575
- q && (this.anchor = k), f(this, $r).call(this, n);
2554
+ );
2555
+ r && !f(this, qe).has(t) && !f(this, Ne).has(t) && f(this, qe).set(
2556
+ t,
2557
+ rt(() => r(this.anchor))
2558
+ ), f(this, Be).set(n, t), q && (this.anchor = C), f(this, on).call(this, n);
2576
2559
  }
2577
2560
  }
2578
- Ne = new WeakMap(), Ue = new WeakMap(), _e = new WeakMap(), Et = new WeakMap(), Ar = new WeakMap(), $r = new WeakMap(), un = new WeakMap();
2561
+ Be = new WeakMap(), qe = new WeakMap(), Ne = new WeakMap(), xt = new WeakMap(), Ar = new WeakMap(), on = new WeakMap(), Qn = new WeakMap();
2579
2562
  function Wo(e, t, r = !1) {
2580
2563
  var n;
2581
- q && (n = k, Jn());
2564
+ q && (n = C, Kn());
2582
2565
  var i = new Xo(e), s = r ? zt : 0;
2583
2566
  function o(a, u) {
2584
2567
  if (q) {
2585
- var l = Qa(
2568
+ var l = Ka(
2586
2569
  /** @type {TemplateNode} */
2587
2570
  n
2588
2571
  );
2589
2572
  if (a !== parseInt(l.substring(1))) {
2590
- var h = Ki();
2591
- Ie(h), i.anchor = h, kt(!1), i.ensure(a, u), kt(!0);
2573
+ var h = es();
2574
+ ke(h), i.anchor = h, Ct(!1), i.ensure(a, u), Ct(!0);
2592
2575
  return;
2593
2576
  }
2594
2577
  }
2595
2578
  i.ensure(a, u);
2596
2579
  }
2597
- $s(() => {
2580
+ Os(() => {
2598
2581
  var a = !1;
2599
2582
  t((u, l = 0) => {
2600
2583
  a = !0, o(l, u);
@@ -2603,7 +2586,8 @@ function Wo(e, t, r = !1) {
2603
2586
  }
2604
2587
  function Yo(e, t) {
2605
2588
  Oo(() => {
2606
- var i;
2589
+ var i, s, o, a;
2590
+ e = (o = (s = (i = $ == null ? void 0 : $.parent) == null ? void 0 : i.nodes) == null ? void 0 : s.start) != null ? o : e;
2607
2591
  var r = e.getRootNode(), n = (
2608
2592
  /** @type {ShadowRoot} */
2609
2593
  r.host ? (
@@ -2611,15 +2595,15 @@ function Yo(e, t) {
2611
2595
  r
2612
2596
  ) : (
2613
2597
  /** @type {Document} */
2614
- (i = r.head) != null ? i : (
2598
+ (a = r.head) != null ? a : (
2615
2599
  /** @type {Document} */
2616
2600
  r.ownerDocument.head
2617
2601
  )
2618
2602
  )
2619
2603
  );
2620
2604
  if (!n.querySelector("#" + t.hash)) {
2621
- const s = ai("style");
2622
- s.id = t.hash, s.textContent = t.code, n.appendChild(s);
2605
+ const u = ui("style");
2606
+ u.id = t.hash, u.textContent = t.code, n.appendChild(u);
2623
2607
  }
2624
2608
  });
2625
2609
  }
@@ -2639,25 +2623,25 @@ function at(e, t, r, n) {
2639
2623
  );
2640
2624
  return c === void 0 ? o() : (s = !0, c);
2641
2625
  };
2642
- var l = !1, h = /* @__PURE__ */ ri(() => (l = !1, u())), d = (
2626
+ var l = !1, h = /* @__PURE__ */ ii(() => (l = !1, u())), d = (
2643
2627
  /** @type {Effect} */
2644
- M
2628
+ $
2645
2629
  );
2646
2630
  return (
2647
2631
  /** @type {() => V} */
2648
2632
  function(c, p) {
2649
2633
  if (arguments.length > 0) {
2650
- const v = p ? C(h) : c;
2634
+ const v = p ? I(h) : c;
2651
2635
  return te(h, v), l = !0, i !== void 0 && (i = v), c;
2652
2636
  }
2653
- return et && l || d.f & He ? h.v : C(h);
2637
+ return Ke && l || d.f & Te ? h.v : I(h);
2654
2638
  }
2655
2639
  );
2656
2640
  }
2657
2641
  function zo(e) {
2658
2642
  return new qo(e);
2659
2643
  }
2660
- var Ze, xe;
2644
+ var Ze, Ee;
2661
2645
  class qo {
2662
2646
  /**
2663
2647
  * @param {ComponentConstructorOptions & {
@@ -2668,22 +2652,22 @@ class qo {
2668
2652
  /** @type {any} */
2669
2653
  A(this, Ze);
2670
2654
  /** @type {Record<string, any>} */
2671
- A(this, xe);
2655
+ A(this, Ee);
2672
2656
  var s, o;
2673
2657
  var r = /* @__PURE__ */ new Map(), n = (a, u) => {
2674
- var l = /* @__PURE__ */ gs(u, !1, !1);
2658
+ var l = /* @__PURE__ */ ys(u, !1, !1);
2675
2659
  return r.set(a, l), l;
2676
2660
  };
2677
2661
  const i = new Proxy(
2678
- kr(Rr({}, t.props || {}), { $$events: {} }),
2662
+ Rr(Pr({}, t.props || {}), { $$events: {} }),
2679
2663
  {
2680
2664
  get(a, u) {
2681
2665
  var l;
2682
- return C((l = r.get(u)) != null ? l : n(u, Reflect.get(a, u)));
2666
+ return I((l = r.get(u)) != null ? l : n(u, Reflect.get(a, u)));
2683
2667
  },
2684
2668
  has(a, u) {
2685
2669
  var l;
2686
- return u === ka ? !0 : (C((l = r.get(u)) != null ? l : n(u, Reflect.get(a, u))), Reflect.has(a, u));
2670
+ return u === Ia ? !0 : (I((l = r.get(u)) != null ? l : n(u, Reflect.get(a, u))), Reflect.has(a, u));
2687
2671
  },
2688
2672
  set(a, u, l) {
2689
2673
  var h;
@@ -2691,7 +2675,7 @@ class qo {
2691
2675
  }
2692
2676
  }
2693
2677
  );
2694
- w(this, xe, (t.hydrate ? jo : Vs)(t.component, {
2678
+ w(this, Ee, (t.hydrate ? jo : Xs)(t.component, {
2695
2679
  target: t.target,
2696
2680
  anchor: t.anchor,
2697
2681
  props: i,
@@ -2700,27 +2684,27 @@ class qo {
2700
2684
  recover: t.recover,
2701
2685
  transformError: t.transformError
2702
2686
  })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && Je(), w(this, Ze, i.$$events);
2703
- for (const a of Object.keys(f(this, xe)))
2687
+ for (const a of Object.keys(f(this, Ee)))
2704
2688
  a === "$set" || a === "$destroy" || a === "$on" || _r(this, a, {
2705
2689
  get() {
2706
- return f(this, xe)[a];
2690
+ return f(this, Ee)[a];
2707
2691
  },
2708
2692
  /** @param {any} value */
2709
2693
  set(u) {
2710
- f(this, xe)[a] = u;
2694
+ f(this, Ee)[a] = u;
2711
2695
  },
2712
2696
  enumerable: !0
2713
2697
  });
2714
- f(this, xe).$set = /** @param {Record<string, any>} next */
2698
+ f(this, Ee).$set = /** @param {Record<string, any>} next */
2715
2699
  (a) => {
2716
2700
  Object.assign(i, a);
2717
- }, f(this, xe).$destroy = () => {
2718
- Vo(f(this, xe));
2701
+ }, f(this, Ee).$destroy = () => {
2702
+ Vo(f(this, Ee));
2719
2703
  };
2720
2704
  }
2721
2705
  /** @param {Record<string, any>} props */
2722
2706
  $set(t) {
2723
- f(this, xe).$set(t);
2707
+ f(this, Ee).$set(t);
2724
2708
  }
2725
2709
  /**
2726
2710
  * @param {string} event
@@ -2738,12 +2722,12 @@ class qo {
2738
2722
  };
2739
2723
  }
2740
2724
  $destroy() {
2741
- f(this, xe).$destroy();
2725
+ f(this, Ee).$destroy();
2742
2726
  }
2743
2727
  }
2744
- Ze = new WeakMap(), xe = new WeakMap();
2745
- let Ws;
2746
- typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2728
+ Ze = new WeakMap(), Ee = new WeakMap();
2729
+ let Ys;
2730
+ typeof HTMLElement == "function" && (Ys = class extends HTMLElement {
2747
2731
  /**
2748
2732
  * @param {*} $$componentCtor
2749
2733
  * @param {*} $$slots
@@ -2803,8 +2787,8 @@ typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2803
2787
  if (this.$$cn = !0, !this.$$c) {
2804
2788
  let t = function(i) {
2805
2789
  return (s) => {
2806
- const o = ai("slot");
2807
- i !== "default" && (o.name = i), Xr(s, o);
2790
+ const o = ui("slot");
2791
+ i !== "default" && (o.name = i), Vr(s, o);
2808
2792
  };
2809
2793
  };
2810
2794
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
@@ -2814,25 +2798,25 @@ typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2814
2798
  i in n && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), r.default = !0) : r[i] = t(i));
2815
2799
  for (const i of this.attributes) {
2816
2800
  const s = this.$$g_p(i.name);
2817
- s in this.$$d || (this.$$d[s] = Wr(s, i.value, this.$$p_d, "toProp"));
2801
+ s in this.$$d || (this.$$d[s] = Xr(s, i.value, this.$$p_d, "toProp"));
2818
2802
  }
2819
2803
  for (const i in this.$$p_d)
2820
2804
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2821
2805
  this.$$c = zo({
2822
2806
  component: this.$$ctor,
2823
2807
  target: this.$$shadowRoot || this,
2824
- props: kr(Rr({}, this.$$d), {
2808
+ props: Rr(Pr({}, this.$$d), {
2825
2809
  $$slots: r,
2826
2810
  $$host: this
2827
2811
  })
2828
2812
  }), this.$$me = Ao(() => {
2829
- As(() => {
2813
+ $s(() => {
2830
2814
  var i;
2831
2815
  this.$$r = !0;
2832
- for (const s of Zr(this.$$c)) {
2816
+ for (const s of qr(this.$$c)) {
2833
2817
  if (!((i = this.$$p_d[s]) != null && i.reflect)) continue;
2834
2818
  this.$$d[s] = this.$$c[s];
2835
- const o = Wr(
2819
+ const o = Xr(
2836
2820
  s,
2837
2821
  this.$$d[s],
2838
2822
  this.$$p_d,
@@ -2861,7 +2845,7 @@ typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2861
2845
  */
2862
2846
  attributeChangedCallback(t, r, n) {
2863
2847
  var i;
2864
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Wr(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
2848
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Xr(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
2865
2849
  }
2866
2850
  disconnectedCallback() {
2867
2851
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2872,12 +2856,12 @@ typeof HTMLElement == "function" && (Ws = class extends HTMLElement {
2872
2856
  * @param {string} attribute_name
2873
2857
  */
2874
2858
  $$g_p(t) {
2875
- return Zr(this.$$p_d).find(
2859
+ return qr(this.$$p_d).find(
2876
2860
  (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
2877
2861
  ) || t;
2878
2862
  }
2879
2863
  });
2880
- function Wr(e, t, r, n) {
2864
+ function Xr(e, t, r, n) {
2881
2865
  var s;
2882
2866
  const i = (s = r[e]) == null ? void 0 : s.type;
2883
2867
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -2916,28 +2900,28 @@ function Zo(e) {
2916
2900
  ] = !0;
2917
2901
  }), t;
2918
2902
  }
2919
- function Ys(e, t, r, n, i, s) {
2920
- let o = class extends Ws {
2903
+ function zs(e, t, r, n, i, s) {
2904
+ let o = class extends Ys {
2921
2905
  constructor() {
2922
2906
  super(e, r, i), this.$$p_d = t;
2923
2907
  }
2924
2908
  static get observedAttributes() {
2925
- return Zr(t).map(
2909
+ return qr(t).map(
2926
2910
  (a) => (t[a].attribute || a).toLowerCase()
2927
2911
  );
2928
2912
  }
2929
2913
  };
2930
- return Zr(t).forEach((a) => {
2914
+ return qr(t).forEach((a) => {
2931
2915
  _r(o.prototype, a, {
2932
2916
  get() {
2933
2917
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2934
2918
  },
2935
2919
  set(u) {
2936
2920
  var d;
2937
- u = Wr(a, u, t), this.$$d[a] = u;
2921
+ u = Xr(a, u, t), this.$$d[a] = u;
2938
2922
  var l = this.$$c;
2939
2923
  if (l) {
2940
- var h = (d = It(l, a)) == null ? void 0 : d.get;
2924
+ var h = (d = kt(l, a)) == null ? void 0 : d.get;
2941
2925
  h ? l[a] = u : l.$set({ [a]: u });
2942
2926
  }
2943
2927
  }
@@ -2952,7 +2936,7 @@ function Ys(e, t, r, n, i, s) {
2952
2936
  }), e.element = /** @type {any} */
2953
2937
  o, o;
2954
2938
  }
2955
- class zs extends Error {
2939
+ class qs extends Error {
2956
2940
  constructor(t, r) {
2957
2941
  super(r), this.code = t, this.name = "ElevateApiError";
2958
2942
  }
@@ -2963,14 +2947,14 @@ const Jo = (e) => Bt(void 0, null, function* () {
2963
2947
  e.userSession && r.append("X-SessionId", e.userSession);
2964
2948
  const i = yield (yield fetch(t.href, { method: "GET", headers: r })).json();
2965
2949
  if (!i.success)
2966
- throw new zs(i.errorCode, i.errorMessage);
2950
+ throw new qs(i.errorCode, i.errorMessage);
2967
2951
  return i.data;
2968
2952
  }), Qo = (e) => Bt(void 0, null, function* () {
2969
2953
  const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
2970
2954
  e.userSession && r.append("X-Sessionid", e.userSession);
2971
2955
  const i = yield (yield fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
2972
2956
  if (!i.success)
2973
- throw new zs(i.errorCode, i.errorMessage);
2957
+ throw new qs(i.errorCode, i.errorMessage);
2974
2958
  });
2975
2959
  var Ko = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2976
2960
  function eu(e) {
@@ -3002,8 +2986,8 @@ var tu = { exports: {} };
3002
2986
  return x === void 0;
3003
2987
  } }, ie = "en", se = {};
3004
2988
  se[ie] = Q;
3005
- var ft = "$isDayjsObject", ir = function(x) {
3006
- return x instanceof U || !(!x || !x[ft]);
2989
+ var ht = "$isDayjsObject", ir = function(x) {
2990
+ return x instanceof U || !(!x || !x[ht]);
3007
2991
  }, Ot = function x(b, m, E) {
3008
2992
  var _;
3009
2993
  if (!b) return ie;
@@ -3027,7 +3011,7 @@ var tu = { exports: {} };
3027
3011
  };
3028
3012
  var U = function() {
3029
3013
  function x(m) {
3030
- this.$L = Ot(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[ft] = !0;
3014
+ this.$L = Ot(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[ht] = !0;
3031
3015
  }
3032
3016
  var b = x.prototype;
3033
3017
  return b.parse = function(m) {
@@ -3066,20 +3050,20 @@ var tu = { exports: {} };
3066
3050
  }, b.valueOf = function() {
3067
3051
  return this.$d.getTime();
3068
3052
  }, b.startOf = function(m, E) {
3069
- var _ = this, S = !!y.u(E) || E, T = y.p(m), D = function(ct, ue) {
3070
- var rt = y.w(_.$u ? Date.UTC(_.$y, ue, ct) : new Date(_.$y, ue, ct), _);
3071
- return S ? rt : rt.endOf(l);
3072
- }, W = function(ct, ue) {
3073
- return y.w(_.toDate()[ct].apply(_.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), _);
3074
- }, K = this.$W, ne = this.$M, be = this.$D, Mt = "set" + (this.$u ? "UTC" : "");
3053
+ var _ = this, S = !!y.u(E) || E, T = y.p(m), D = function(dt, ue) {
3054
+ var tt = y.w(_.$u ? Date.UTC(_.$y, ue, dt) : new Date(_.$y, ue, dt), _);
3055
+ return S ? tt : tt.endOf(l);
3056
+ }, W = function(dt, ue) {
3057
+ return y.w(_.toDate()[dt].apply(_.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), _);
3058
+ }, K = this.$W, ne = this.$M, _e = this.$D, Mt = "set" + (this.$u ? "UTC" : "");
3075
3059
  switch (T) {
3076
3060
  case p:
3077
3061
  return S ? D(1, 0) : D(31, 11);
3078
3062
  case d:
3079
3063
  return S ? D(1, ne) : D(0, ne + 1);
3080
3064
  case h:
3081
- var ht = this.$locale().weekStart || 0, sr = (K < ht ? K + 7 : K) - ht;
3082
- return D(S ? be - sr : be + (6 - sr), ne);
3065
+ var ct = this.$locale().weekStart || 0, sr = (K < ct ? K + 7 : K) - ct;
3066
+ return D(S ? _e - sr : _e + (6 - sr), ne);
3083
3067
  case l:
3084
3068
  case v:
3085
3069
  return W(Mt + "Hours", 0);
@@ -3109,8 +3093,8 @@ var tu = { exports: {} };
3109
3093
  var _, S = this;
3110
3094
  m = Number(m);
3111
3095
  var T = y.p(E), D = function(ne) {
3112
- var be = Y(S);
3113
- return y.w(be.date(be.date() + Math.round(ne * m)), S);
3096
+ var _e = Y(S);
3097
+ return y.w(_e.date(_e.date() + Math.round(ne * m)), S);
3114
3098
  };
3115
3099
  if (T === d) return this.set(d, this.$M + m);
3116
3100
  if (T === p) return this.set(p, this.$y + m);
@@ -3123,16 +3107,16 @@ var tu = { exports: {} };
3123
3107
  }, b.format = function(m) {
3124
3108
  var E = this, _ = this.$locale();
3125
3109
  if (!this.isValid()) return _.invalidDate || g;
3126
- var S = m || "YYYY-MM-DDTHH:mm:ssZ", T = y.z(this), D = this.$H, W = this.$m, K = this.$M, ne = _.weekdays, be = _.months, Mt = _.meridiem, ht = function(ue, rt, ar, Pr) {
3127
- return ue && (ue[rt] || ue(E, S)) || ar[rt].slice(0, Pr);
3110
+ var S = m || "YYYY-MM-DDTHH:mm:ssZ", T = y.z(this), D = this.$H, W = this.$m, K = this.$M, ne = _.weekdays, _e = _.months, Mt = _.meridiem, ct = function(ue, tt, ar, Nr) {
3111
+ return ue && (ue[tt] || ue(E, S)) || ar[tt].slice(0, Nr);
3128
3112
  }, sr = function(ue) {
3129
3113
  return y.s(D % 12 || 12, ue, "0");
3130
- }, ct = Mt || function(ue, rt, ar) {
3131
- var Pr = ue < 12 ? "AM" : "PM";
3132
- return ar ? Pr.toLowerCase() : Pr;
3114
+ }, dt = Mt || function(ue, tt, ar) {
3115
+ var Nr = ue < 12 ? "AM" : "PM";
3116
+ return ar ? Nr.toLowerCase() : Nr;
3133
3117
  };
3134
- return S.replace(B, function(ue, rt) {
3135
- return rt || function(ar) {
3118
+ return S.replace(B, function(ue, tt) {
3119
+ return tt || function(ar) {
3136
3120
  switch (ar) {
3137
3121
  case "YY":
3138
3122
  return String(E.$y).slice(-2);
@@ -3143,9 +3127,9 @@ var tu = { exports: {} };
3143
3127
  case "MM":
3144
3128
  return y.s(K + 1, 2, "0");
3145
3129
  case "MMM":
3146
- return ht(_.monthsShort, K, be, 3);
3130
+ return ct(_.monthsShort, K, _e, 3);
3147
3131
  case "MMMM":
3148
- return ht(be, K);
3132
+ return ct(_e, K);
3149
3133
  case "D":
3150
3134
  return E.$D;
3151
3135
  case "DD":
@@ -3153,9 +3137,9 @@ var tu = { exports: {} };
3153
3137
  case "d":
3154
3138
  return String(E.$W);
3155
3139
  case "dd":
3156
- return ht(_.weekdaysMin, E.$W, ne, 2);
3140
+ return ct(_.weekdaysMin, E.$W, ne, 2);
3157
3141
  case "ddd":
3158
- return ht(_.weekdaysShort, E.$W, ne, 3);
3142
+ return ct(_.weekdaysShort, E.$W, ne, 3);
3159
3143
  case "dddd":
3160
3144
  return ne[E.$W];
3161
3145
  case "H":
@@ -3167,9 +3151,9 @@ var tu = { exports: {} };
3167
3151
  case "hh":
3168
3152
  return sr(2);
3169
3153
  case "a":
3170
- return ct(D, W, !0);
3154
+ return dt(D, W, !0);
3171
3155
  case "A":
3172
- return ct(D, W, !1);
3156
+ return dt(D, W, !1);
3173
3157
  case "m":
3174
3158
  return String(W);
3175
3159
  case "mm":
@@ -3189,18 +3173,18 @@ var tu = { exports: {} };
3189
3173
  }, b.utcOffset = function() {
3190
3174
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3191
3175
  }, b.diff = function(m, E, _) {
3192
- var S, T = this, D = y.p(E), W = Y(m), K = (W.utcOffset() - this.utcOffset()) * n, ne = this - W, be = function() {
3176
+ var S, T = this, D = y.p(E), W = Y(m), K = (W.utcOffset() - this.utcOffset()) * n, ne = this - W, _e = function() {
3193
3177
  return y.m(T, W);
3194
3178
  };
3195
3179
  switch (D) {
3196
3180
  case p:
3197
- S = be() / 12;
3181
+ S = _e() / 12;
3198
3182
  break;
3199
3183
  case d:
3200
- S = be();
3184
+ S = _e();
3201
3185
  break;
3202
3186
  case c:
3203
- S = be() / 3;
3187
+ S = _e() / 3;
3204
3188
  break;
3205
3189
  case h:
3206
3190
  S = (ne - K) / 6048e5;
@@ -3240,9 +3224,9 @@ var tu = { exports: {} };
3240
3224
  }, b.toString = function() {
3241
3225
  return this.$d.toUTCString();
3242
3226
  }, x;
3243
- }(), Oe = U.prototype;
3244
- return Y.prototype = Oe, [["$ms", s], ["$s", o], ["$m", a], ["$H", u], ["$W", l], ["$M", d], ["$y", p], ["$D", v]].forEach(function(x) {
3245
- Oe[x[1]] = function(b) {
3227
+ }(), $e = U.prototype;
3228
+ return Y.prototype = $e, [["$ms", s], ["$s", o], ["$m", a], ["$H", u], ["$W", l], ["$M", d], ["$y", p], ["$D", v]].forEach(function(x) {
3229
+ $e[x[1]] = function(b) {
3246
3230
  return this.$g(b, x[0], x[1]);
3247
3231
  };
3248
3232
  }), Y.extend = function(x, b) {
@@ -3313,10 +3297,10 @@ function _u(e) {
3313
3297
  return Object.propertyIsEnumerable.call(e, t);
3314
3298
  }) : [];
3315
3299
  }
3316
- function Ai(e) {
3300
+ function $i(e) {
3317
3301
  return Object.keys(e).concat(_u(e));
3318
3302
  }
3319
- function qs(e, t) {
3303
+ function Zs(e, t) {
3320
3304
  try {
3321
3305
  return t in e;
3322
3306
  } catch (r) {
@@ -3324,14 +3308,14 @@ function qs(e, t) {
3324
3308
  }
3325
3309
  }
3326
3310
  function bu(e, t) {
3327
- return qs(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
3311
+ return Zs(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
3328
3312
  }
3329
3313
  function gu(e, t, r) {
3330
3314
  var n = {};
3331
- return r.isMergeableObject(e) && Ai(e).forEach(function(i) {
3315
+ return r.isMergeableObject(e) && $i(e).forEach(function(i) {
3332
3316
  n[i] = Er(e[i], r);
3333
- }), Ai(t).forEach(function(i) {
3334
- bu(e, i) || (qs(e, i) && r.isMergeableObject(t[i]) ? n[i] = mu(i, r)(e[i], t[i], r) : n[i] = Er(t[i], r));
3317
+ }), $i(t).forEach(function(i) {
3318
+ bu(e, i) || (Zs(e, i) && r.isMergeableObject(t[i]) ? n[i] = mu(i, r)(e[i], t[i], r) : n[i] = Er(t[i], r));
3335
3319
  }), n;
3336
3320
  }
3337
3321
  function Jt(e, t, r) {
@@ -3348,30 +3332,30 @@ Jt.all = function(t, r) {
3348
3332
  };
3349
3333
  var yu = Jt, Eu = yu;
3350
3334
  const xu = /* @__PURE__ */ eu(Eu);
3351
- var Gn = function(e, t) {
3352
- return Gn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3335
+ var jn = function(e, t) {
3336
+ return jn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3353
3337
  r.__proto__ = n;
3354
3338
  } || function(r, n) {
3355
3339
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3356
- }, Gn(e, t);
3340
+ }, jn(e, t);
3357
3341
  };
3358
- function pn(e, t) {
3342
+ function dn(e, t) {
3359
3343
  if (typeof t != "function" && t !== null)
3360
3344
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3361
- Gn(e, t);
3345
+ jn(e, t);
3362
3346
  function r() {
3363
3347
  this.constructor = e;
3364
3348
  }
3365
3349
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3366
3350
  }
3367
- var Fe = function() {
3368
- return Fe = Object.assign || function(t) {
3351
+ var Ue = function() {
3352
+ return Ue = Object.assign || function(t) {
3369
3353
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3370
3354
  r = arguments[n];
3371
3355
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3372
3356
  }
3373
3357
  return t;
3374
- }, Fe.apply(this, arguments);
3358
+ }, Ue.apply(this, arguments);
3375
3359
  };
3376
3360
  function wu(e, t) {
3377
3361
  var r = {};
@@ -3381,12 +3365,12 @@ function wu(e, t) {
3381
3365
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
3382
3366
  return r;
3383
3367
  }
3384
- function Sn(e, t, r) {
3368
+ function Tn(e, t, r) {
3385
3369
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
3386
3370
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
3387
3371
  return e.concat(s || Array.prototype.slice.call(t));
3388
3372
  }
3389
- function Tn(e, t) {
3373
+ function Hn(e, t) {
3390
3374
  var r = t && t.cache ? t.cache : Mu, n = t && t.serializer ? t.serializer : $u, i = t && t.strategy ? t.strategy : Hu;
3391
3375
  return i(e, {
3392
3376
  cache: r,
@@ -3400,19 +3384,19 @@ function Tu(e, t, r, n) {
3400
3384
  var i = Su(n) ? n : r(n), s = t.get(i);
3401
3385
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
3402
3386
  }
3403
- function Zs(e, t, r) {
3387
+ function Js(e, t, r) {
3404
3388
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
3405
3389
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
3406
3390
  }
3407
- function Js(e, t, r, n, i) {
3391
+ function Qs(e, t, r, n, i) {
3408
3392
  return r.bind(t, e, n, i);
3409
3393
  }
3410
3394
  function Hu(e, t) {
3411
- var r = e.length === 1 ? Tu : Zs;
3412
- return Js(e, this, r, t.cache.create(), t.serializer);
3395
+ var r = e.length === 1 ? Tu : Js;
3396
+ return Qs(e, this, r, t.cache.create(), t.serializer);
3413
3397
  }
3414
3398
  function Au(e, t) {
3415
- return Js(e, this, Zs, t.cache.create(), t.serializer);
3399
+ return Qs(e, this, Js, t.cache.create(), t.serializer);
3416
3400
  }
3417
3401
  var $u = function() {
3418
3402
  return JSON.stringify(arguments);
@@ -3432,16 +3416,16 @@ var $u = function() {
3432
3416
  create: function() {
3433
3417
  return new Ou();
3434
3418
  }
3435
- }, Hn = {
3419
+ }, An = {
3436
3420
  variadic: Au
3437
- }, rn = function() {
3438
- return rn = Object.assign || function(t) {
3421
+ }, tn = function() {
3422
+ return tn = Object.assign || function(t) {
3439
3423
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3440
3424
  r = arguments[n];
3441
3425
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3442
3426
  }
3443
3427
  return t;
3444
- }, rn.apply(this, arguments);
3428
+ }, tn.apply(this, arguments);
3445
3429
  };
3446
3430
  var N;
3447
3431
  (function(e) {
@@ -3455,40 +3439,40 @@ var Qt;
3455
3439
  (function(e) {
3456
3440
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3457
3441
  })(Qt || (Qt = {}));
3458
- function $i(e) {
3442
+ function Oi(e) {
3459
3443
  return e.type === G.literal;
3460
3444
  }
3461
3445
  function Bu(e) {
3462
3446
  return e.type === G.argument;
3463
3447
  }
3464
- function Qs(e) {
3448
+ function Ks(e) {
3465
3449
  return e.type === G.number;
3466
3450
  }
3467
- function Ks(e) {
3451
+ function ea(e) {
3468
3452
  return e.type === G.date;
3469
3453
  }
3470
- function ea(e) {
3454
+ function ta(e) {
3471
3455
  return e.type === G.time;
3472
3456
  }
3473
- function ta(e) {
3457
+ function ra(e) {
3474
3458
  return e.type === G.select;
3475
3459
  }
3476
- function ra(e) {
3460
+ function na(e) {
3477
3461
  return e.type === G.plural;
3478
3462
  }
3479
3463
  function Nu(e) {
3480
3464
  return e.type === G.pound;
3481
3465
  }
3482
- function na(e) {
3466
+ function ia(e) {
3483
3467
  return e.type === G.tag;
3484
3468
  }
3485
- function ia(e) {
3469
+ function sa(e) {
3486
3470
  return !!(e && typeof e == "object" && e.type === Qt.number);
3487
3471
  }
3488
- function jn(e) {
3472
+ function Vn(e) {
3489
3473
  return !!(e && typeof e == "object" && e.type === Qt.dateTime);
3490
3474
  }
3491
- var sa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pu = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
3475
+ var aa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pu = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
3492
3476
  function Ru(e) {
3493
3477
  var t = {};
3494
3478
  return e.replace(Pu, function(r) {
@@ -3589,11 +3573,11 @@ var V = function() {
3589
3573
  return t;
3590
3574
  }, V.apply(this, arguments);
3591
3575
  };
3592
- var ku = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3593
- function Cu(e) {
3576
+ var Cu = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3577
+ function Iu(e) {
3594
3578
  if (e.length === 0)
3595
3579
  throw new Error("Number skeleton cannot be empty");
3596
- for (var t = e.split(ku).filter(function(c) {
3580
+ for (var t = e.split(Cu).filter(function(c) {
3597
3581
  return c.length > 0;
3598
3582
  }), r = [], n = 0, i = t; n < i.length; n++) {
3599
3583
  var s = i[n], o = s.split("/");
@@ -3608,17 +3592,17 @@ function Cu(e) {
3608
3592
  }
3609
3593
  return r;
3610
3594
  }
3611
- function Iu(e) {
3595
+ function ku(e) {
3612
3596
  return e.replace(/^(.*?)-/, "");
3613
3597
  }
3614
- var Oi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, aa = /^(@+)?(\+|#+)?[rs]?$/g, Lu = /(\*)(0+)|(#+)(0+)|(0+)/g, oa = /^(0+)$/;
3615
- function Mi(e) {
3598
+ var Mi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oa = /^(@+)?(\+|#+)?[rs]?$/g, Lu = /(\*)(0+)|(#+)(0+)|(0+)/g, ua = /^(0+)$/;
3599
+ function Bi(e) {
3616
3600
  var t = {};
3617
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(aa, function(r, n, i) {
3601
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(oa, function(r, n, i) {
3618
3602
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
3619
3603
  }), t;
3620
3604
  }
3621
- function ua(e) {
3605
+ function la(e) {
3622
3606
  switch (e) {
3623
3607
  case "sign-auto":
3624
3608
  return {
@@ -3666,14 +3650,14 @@ function Du(e) {
3666
3650
  notation: "scientific"
3667
3651
  }, e = e.slice(1)), t) {
3668
3652
  var r = e.slice(0, 2);
3669
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !oa.test(e))
3653
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ua.test(e))
3670
3654
  throw new Error("Malformed concise eng/scientific notation");
3671
3655
  t.minimumIntegerDigits = e.length;
3672
3656
  }
3673
3657
  return t;
3674
3658
  }
3675
- function Bi(e) {
3676
- var t = {}, r = ua(e);
3659
+ function Ni(e) {
3660
+ var t = {}, r = la(e);
3677
3661
  return r || t;
3678
3662
  }
3679
3663
  function Uu(e) {
@@ -3700,7 +3684,7 @@ function Uu(e) {
3700
3684
  continue;
3701
3685
  case "measure-unit":
3702
3686
  case "unit":
3703
- t.style = "unit", t.unit = Iu(i.options[0]);
3687
+ t.style = "unit", t.unit = ku(i.options[0]);
3704
3688
  continue;
3705
3689
  case "compact-short":
3706
3690
  case "K":
@@ -3712,12 +3696,12 @@ function Uu(e) {
3712
3696
  continue;
3713
3697
  case "scientific":
3714
3698
  t = V(V(V({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
3715
- return V(V({}, u), Bi(l));
3699
+ return V(V({}, u), Ni(l));
3716
3700
  }, {}));
3717
3701
  continue;
3718
3702
  case "engineering":
3719
3703
  t = V(V(V({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
3720
- return V(V({}, u), Bi(l));
3704
+ return V(V({}, u), Ni(l));
3721
3705
  }, {}));
3722
3706
  continue;
3723
3707
  case "notation-simple":
@@ -3775,32 +3759,32 @@ function Uu(e) {
3775
3759
  });
3776
3760
  continue;
3777
3761
  }
3778
- if (oa.test(i.stem)) {
3762
+ if (ua.test(i.stem)) {
3779
3763
  t.minimumIntegerDigits = i.stem.length;
3780
3764
  continue;
3781
3765
  }
3782
- if (Oi.test(i.stem)) {
3766
+ if (Mi.test(i.stem)) {
3783
3767
  if (i.options.length > 1)
3784
3768
  throw new RangeError("Fraction-precision stems only accept a single optional option");
3785
- i.stem.replace(Oi, function(u, l, h, d, c, p) {
3769
+ i.stem.replace(Mi, function(u, l, h, d, c, p) {
3786
3770
  return h === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
3787
3771
  });
3788
3772
  var s = i.options[0];
3789
- s === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = V(V({}, t), Mi(s)));
3773
+ s === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = V(V({}, t), Bi(s)));
3790
3774
  continue;
3791
3775
  }
3792
- if (aa.test(i.stem)) {
3793
- t = V(V({}, t), Mi(i.stem));
3776
+ if (oa.test(i.stem)) {
3777
+ t = V(V({}, t), Bi(i.stem));
3794
3778
  continue;
3795
3779
  }
3796
- var o = ua(i.stem);
3780
+ var o = la(i.stem);
3797
3781
  o && (t = V(V({}, t), o));
3798
3782
  var a = Du(i.stem);
3799
3783
  a && (t = V(V({}, t), a));
3800
3784
  }
3801
3785
  return t;
3802
3786
  }
3803
- var Ur = {
3787
+ var Dr = {
3804
3788
  "001": [
3805
3789
  "H",
3806
3790
  "h"
@@ -5249,23 +5233,23 @@ function Gu(e) {
5249
5233
  }
5250
5234
  var r = e.language, n;
5251
5235
  r !== "root" && (n = e.maximize().region);
5252
- var i = Ur[n || ""] || Ur[r || ""] || Ur["".concat(r, "-001")] || Ur["001"];
5236
+ var i = Dr[n || ""] || Dr[r || ""] || Dr["".concat(r, "-001")] || Dr["001"];
5253
5237
  return i[0];
5254
5238
  }
5255
- var An, ju = new RegExp("^".concat(sa.source, "*")), Vu = new RegExp("".concat(sa.source, "*$"));
5239
+ var $n, ju = new RegExp("^".concat(aa.source, "*")), Vu = new RegExp("".concat(aa.source, "*$"));
5256
5240
  function R(e, t) {
5257
5241
  return { start: e, end: t };
5258
5242
  }
5259
5243
  var Xu = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wu = !!String.fromCodePoint, Yu = !!Object.fromEntries, zu = !!String.prototype.codePointAt, qu = !!String.prototype.trimStart, Zu = !!String.prototype.trimEnd, Ju = !!Number.isSafeInteger, Qu = Ju ? Number.isSafeInteger : function(e) {
5260
5244
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
5261
- }, Vn = !0;
5245
+ }, Xn = !0;
5262
5246
  try {
5263
- var Ku = fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5264
- Vn = ((An = Ku.exec("a")) === null || An === void 0 ? void 0 : An[0]) === "a";
5247
+ var Ku = ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5248
+ Xn = (($n = Ku.exec("a")) === null || $n === void 0 ? void 0 : $n[0]) === "a";
5265
5249
  } catch (e) {
5266
- Vn = !1;
5250
+ Xn = !1;
5267
5251
  }
5268
- var Ni = Xu ? (
5252
+ var Pi = Xu ? (
5269
5253
  // Native
5270
5254
  function(t, r, n) {
5271
5255
  return t.startsWith(r, n);
@@ -5275,7 +5259,7 @@ var Ni = Xu ? (
5275
5259
  function(t, r, n) {
5276
5260
  return t.slice(n, n + r.length) === r;
5277
5261
  }
5278
- ), Xn = Wu ? String.fromCodePoint : (
5262
+ ), Wn = Wu ? String.fromCodePoint : (
5279
5263
  // IE11
5280
5264
  function() {
5281
5265
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -5287,7 +5271,7 @@ var Ni = Xu ? (
5287
5271
  }
5288
5272
  return n;
5289
5273
  }
5290
- ), Pi = (
5274
+ ), Ri = (
5291
5275
  // native
5292
5276
  Yu ? Object.fromEntries : (
5293
5277
  // Ponyfill
@@ -5299,7 +5283,7 @@ var Ni = Xu ? (
5299
5283
  return r;
5300
5284
  }
5301
5285
  )
5302
- ), la = zu ? (
5286
+ ), fa = zu ? (
5303
5287
  // Native
5304
5288
  function(t, r) {
5305
5289
  return t.codePointAt(r);
@@ -5334,27 +5318,27 @@ var Ni = Xu ? (
5334
5318
  return t.replace(Vu, "");
5335
5319
  }
5336
5320
  );
5337
- function fa(e, t) {
5321
+ function ha(e, t) {
5338
5322
  return new RegExp(e, t);
5339
5323
  }
5340
- var Wn;
5341
- if (Vn) {
5342
- var Ri = fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5343
- Wn = function(t, r) {
5324
+ var Yn;
5325
+ if (Xn) {
5326
+ var Ci = ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5327
+ Yn = function(t, r) {
5344
5328
  var n;
5345
- Ri.lastIndex = r;
5346
- var i = Ri.exec(t);
5329
+ Ci.lastIndex = r;
5330
+ var i = Ci.exec(t);
5347
5331
  return (n = i[1]) !== null && n !== void 0 ? n : "";
5348
5332
  };
5349
5333
  } else
5350
- Wn = function(t, r) {
5334
+ Yn = function(t, r) {
5351
5335
  for (var n = []; ; ) {
5352
- var i = la(t, r);
5353
- if (i === void 0 || ha(i) || sl(i))
5336
+ var i = fa(t, r);
5337
+ if (i === void 0 || ca(i) || sl(i))
5354
5338
  break;
5355
5339
  n.push(i), r += i >= 65536 ? 2 : 1;
5356
5340
  }
5357
- return Xn.apply(void 0, n);
5341
+ return Wn.apply(void 0, n);
5358
5342
  };
5359
5343
  var rl = (
5360
5344
  /** @class */
@@ -5387,7 +5371,7 @@ var rl = (
5387
5371
  if (n)
5388
5372
  break;
5389
5373
  return this.error(N.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
5390
- } else if (s === 60 && !this.ignoreTag && Yn(this.peek() || 0)) {
5374
+ } else if (s === 60 && !this.ignoreTag && zn(this.peek() || 0)) {
5391
5375
  var o = this.parseTag(t, r);
5392
5376
  if (o.err)
5393
5377
  return o;
@@ -5420,7 +5404,7 @@ var rl = (
5420
5404
  return s;
5421
5405
  var o = s.val, a = this.clonePosition();
5422
5406
  if (this.bumpIf("</")) {
5423
- if (this.isEOF() || !Yn(this.char()))
5407
+ if (this.isEOF() || !zn(this.char()))
5424
5408
  return this.error(N.INVALID_TAG, R(a, this.clonePosition()));
5425
5409
  var u = this.clonePosition(), l = this.parseTagName();
5426
5410
  return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, R(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -5501,12 +5485,12 @@ var rl = (
5501
5485
  r.push(n);
5502
5486
  this.bump();
5503
5487
  }
5504
- return Xn.apply(void 0, r);
5488
+ return Wn.apply(void 0, r);
5505
5489
  }, e.prototype.tryParseUnquoted = function(t, r) {
5506
5490
  if (this.isEOF())
5507
5491
  return null;
5508
5492
  var n = this.char();
5509
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Xn(n));
5493
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Wn(n));
5510
5494
  }, e.prototype.parseArgument = function(t, r) {
5511
5495
  var n = this.clonePosition();
5512
5496
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -5535,7 +5519,7 @@ var rl = (
5535
5519
  return this.error(N.MALFORMED_ARGUMENT, R(n, this.clonePosition()));
5536
5520
  }
5537
5521
  }, e.prototype.parseIdentifierIfPossible = function() {
5538
- var t = this.clonePosition(), r = this.offset(), n = Wn(this.message, r), i = r + n.length;
5522
+ var t = this.clonePosition(), r = this.offset(), n = Yn(this.message, r), i = r + n.length;
5539
5523
  this.bumpTo(i);
5540
5524
  var s = this.clonePosition(), o = R(t, s);
5541
5525
  return { value: n, location: o };
@@ -5564,7 +5548,7 @@ var rl = (
5564
5548
  if (v.err)
5565
5549
  return v;
5566
5550
  var g = R(i, this.clonePosition());
5567
- if (l && Ni(l == null ? void 0 : l.style, "::", 0)) {
5551
+ if (l && Pi(l == null ? void 0 : l.style, "::", 0)) {
5568
5552
  var P = el(l.style.slice(2));
5569
5553
  if (a === "number") {
5570
5554
  var d = this.parseNumberSkeletonFromString(P, l.styleLocation);
@@ -5604,7 +5588,7 @@ var rl = (
5604
5588
  case "select": {
5605
5589
  var j = this.clonePosition();
5606
5590
  if (this.bumpSpace(), !this.bumpIf(","))
5607
- return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, R(j, rn({}, j)));
5591
+ return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, R(j, tn({}, j)));
5608
5592
  this.bumpSpace();
5609
5593
  var Ve = this.parseIdentifierIfPossible(), ie = 0;
5610
5594
  if (a !== "select" && Ve.value === "offset") {
@@ -5622,23 +5606,23 @@ var rl = (
5622
5606
  var v = this.tryParseArgumentClose(i);
5623
5607
  if (v.err)
5624
5608
  return v;
5625
- var ft = R(i, this.clonePosition());
5609
+ var ht = R(i, this.clonePosition());
5626
5610
  return a === "select" ? {
5627
5611
  val: {
5628
5612
  type: G.select,
5629
5613
  value: n,
5630
- options: Pi(se.val),
5631
- location: ft
5614
+ options: Ri(se.val),
5615
+ location: ht
5632
5616
  },
5633
5617
  err: null
5634
5618
  } : {
5635
5619
  val: {
5636
5620
  type: G.plural,
5637
5621
  value: n,
5638
- options: Pi(se.val),
5622
+ options: Ri(se.val),
5639
5623
  offset: ie,
5640
5624
  pluralType: a === "plural" ? "cardinal" : "ordinal",
5641
- location: ft
5625
+ location: ht
5642
5626
  },
5643
5627
  err: null
5644
5628
  };
@@ -5686,7 +5670,7 @@ var rl = (
5686
5670
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
5687
5671
  var n = [];
5688
5672
  try {
5689
- n = Cu(t);
5673
+ n = Iu(t);
5690
5674
  } catch (i) {
5691
5675
  return this.error(N.INVALID_NUMBER_SKELETON, r);
5692
5676
  }
@@ -5758,7 +5742,7 @@ var rl = (
5758
5742
  var t = this.position.offset;
5759
5743
  if (t >= this.message.length)
5760
5744
  throw Error("out of bound");
5761
- var r = la(this.message, t);
5745
+ var r = fa(this.message, t);
5762
5746
  if (r === void 0)
5763
5747
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
5764
5748
  return r;
@@ -5777,7 +5761,7 @@ var rl = (
5777
5761
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
5778
5762
  }
5779
5763
  }, e.prototype.bumpIf = function(t) {
5780
- if (Ni(this.message, t, this.offset())) {
5764
+ if (Pi(this.message, t, this.offset())) {
5781
5765
  for (var r = 0; r < t.length; r++)
5782
5766
  this.bump();
5783
5767
  return !0;
@@ -5799,7 +5783,7 @@ var rl = (
5799
5783
  break;
5800
5784
  }
5801
5785
  }, e.prototype.bumpSpace = function() {
5802
- for (; !this.isEOF() && ha(this.char()); )
5786
+ for (; !this.isEOF() && ca(this.char()); )
5803
5787
  this.bump();
5804
5788
  }, e.prototype.peek = function() {
5805
5789
  if (this.isEOF())
@@ -5809,46 +5793,46 @@ var rl = (
5809
5793
  }, e;
5810
5794
  }()
5811
5795
  );
5812
- function Yn(e) {
5796
+ function zn(e) {
5813
5797
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5814
5798
  }
5815
5799
  function nl(e) {
5816
- return Yn(e) || e === 47;
5800
+ return zn(e) || e === 47;
5817
5801
  }
5818
5802
  function il(e) {
5819
5803
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
5820
5804
  }
5821
- function ha(e) {
5805
+ function ca(e) {
5822
5806
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5823
5807
  }
5824
5808
  function sl(e) {
5825
5809
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
5826
5810
  }
5827
- function zn(e) {
5811
+ function qn(e) {
5828
5812
  e.forEach(function(t) {
5829
- if (delete t.location, ta(t) || ra(t))
5813
+ if (delete t.location, ra(t) || na(t))
5830
5814
  for (var r in t.options)
5831
- delete t.options[r].location, zn(t.options[r].value);
5832
- else Qs(t) && ia(t.style) || (Ks(t) || ea(t)) && jn(t.style) ? delete t.style.location : na(t) && zn(t.children);
5815
+ delete t.options[r].location, qn(t.options[r].value);
5816
+ else Ks(t) && sa(t.style) || (ea(t) || ta(t)) && Vn(t.style) ? delete t.style.location : ia(t) && qn(t.children);
5833
5817
  });
5834
5818
  }
5835
5819
  function al(e, t) {
5836
- t === void 0 && (t = {}), t = rn({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5820
+ t === void 0 && (t = {}), t = tn({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5837
5821
  var r = new rl(e, t).parse();
5838
5822
  if (r.err) {
5839
5823
  var n = SyntaxError(N[r.err.kind]);
5840
5824
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5841
5825
  }
5842
- return t != null && t.captureLocation || zn(r.val), r.val;
5826
+ return t != null && t.captureLocation || qn(r.val), r.val;
5843
5827
  }
5844
5828
  var Kt;
5845
5829
  (function(e) {
5846
5830
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5847
5831
  })(Kt || (Kt = {}));
5848
- var vn = (
5832
+ var pn = (
5849
5833
  /** @class */
5850
5834
  function(e) {
5851
- pn(t, e);
5835
+ dn(t, e);
5852
5836
  function t(r, n, i) {
5853
5837
  var s = e.call(this, r) || this;
5854
5838
  return s.code = n, s.originalMessage = i, s;
@@ -5857,33 +5841,33 @@ var vn = (
5857
5841
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
5858
5842
  }, t;
5859
5843
  }(Error)
5860
- ), ki = (
5844
+ ), Ii = (
5861
5845
  /** @class */
5862
5846
  function(e) {
5863
- pn(t, e);
5847
+ dn(t, e);
5864
5848
  function t(r, n, i, s) {
5865
5849
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Kt.INVALID_VALUE, s) || this;
5866
5850
  }
5867
5851
  return t;
5868
- }(vn)
5852
+ }(pn)
5869
5853
  ), ol = (
5870
5854
  /** @class */
5871
5855
  function(e) {
5872
- pn(t, e);
5856
+ dn(t, e);
5873
5857
  function t(r, n, i) {
5874
5858
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Kt.INVALID_VALUE, i) || this;
5875
5859
  }
5876
5860
  return t;
5877
- }(vn)
5861
+ }(pn)
5878
5862
  ), ul = (
5879
5863
  /** @class */
5880
5864
  function(e) {
5881
- pn(t, e);
5865
+ dn(t, e);
5882
5866
  function t(r, n) {
5883
5867
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Kt.MISSING_VALUE, n) || this;
5884
5868
  }
5885
5869
  return t;
5886
- }(vn)
5870
+ }(pn)
5887
5871
  ), oe;
5888
5872
  (function(e) {
5889
5873
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -5897,8 +5881,8 @@ function ll(e) {
5897
5881
  function fl(e) {
5898
5882
  return typeof e == "function";
5899
5883
  }
5900
- function Yr(e, t, r, n, i, s, o) {
5901
- if (e.length === 1 && $i(e[0]))
5884
+ function Wr(e, t, r, n, i, s, o) {
5885
+ if (e.length === 1 && Oi(e[0]))
5902
5886
  return [
5903
5887
  {
5904
5888
  type: oe.literal,
@@ -5907,7 +5891,7 @@ function Yr(e, t, r, n, i, s, o) {
5907
5891
  ];
5908
5892
  for (var a = [], u = 0, l = e; u < l.length; u++) {
5909
5893
  var h = l[u];
5910
- if ($i(h)) {
5894
+ if (Oi(h)) {
5911
5895
  a.push({
5912
5896
  type: oe.literal,
5913
5897
  value: h.value
@@ -5932,35 +5916,35 @@ function Yr(e, t, r, n, i, s, o) {
5932
5916
  });
5933
5917
  continue;
5934
5918
  }
5935
- if (Ks(h)) {
5936
- var p = typeof h.style == "string" ? n.date[h.style] : jn(h.style) ? h.style.parsedOptions : void 0;
5919
+ if (ea(h)) {
5920
+ var p = typeof h.style == "string" ? n.date[h.style] : Vn(h.style) ? h.style.parsedOptions : void 0;
5937
5921
  a.push({
5938
5922
  type: oe.literal,
5939
5923
  value: r.getDateTimeFormat(t, p).format(c)
5940
5924
  });
5941
5925
  continue;
5942
5926
  }
5943
- if (ea(h)) {
5944
- var p = typeof h.style == "string" ? n.time[h.style] : jn(h.style) ? h.style.parsedOptions : n.time.medium;
5927
+ if (ta(h)) {
5928
+ var p = typeof h.style == "string" ? n.time[h.style] : Vn(h.style) ? h.style.parsedOptions : n.time.medium;
5945
5929
  a.push({
5946
5930
  type: oe.literal,
5947
5931
  value: r.getDateTimeFormat(t, p).format(c)
5948
5932
  });
5949
5933
  continue;
5950
5934
  }
5951
- if (Qs(h)) {
5952
- var p = typeof h.style == "string" ? n.number[h.style] : ia(h.style) ? h.style.parsedOptions : void 0;
5935
+ if (Ks(h)) {
5936
+ var p = typeof h.style == "string" ? n.number[h.style] : sa(h.style) ? h.style.parsedOptions : void 0;
5953
5937
  p && p.scale && (c = c * (p.scale || 1)), a.push({
5954
5938
  type: oe.literal,
5955
5939
  value: r.getNumberFormat(t, p).format(c)
5956
5940
  });
5957
5941
  continue;
5958
5942
  }
5959
- if (na(h)) {
5943
+ if (ia(h)) {
5960
5944
  var v = h.children, g = h.value, P = i[g];
5961
5945
  if (!fl(P))
5962
5946
  throw new ol(g, "function", o);
5963
- var B = Yr(v, t, r, n, i, s), Q = P(B.map(function(ie) {
5947
+ var B = Wr(v, t, r, n, i, s), Q = P(B.map(function(ie) {
5964
5948
  return ie.value;
5965
5949
  }));
5966
5950
  Array.isArray(Q) || (Q = [Q]), a.push.apply(a, Q.map(function(ie) {
@@ -5970,42 +5954,42 @@ function Yr(e, t, r, n, i, s, o) {
5970
5954
  };
5971
5955
  }));
5972
5956
  }
5973
- if (ta(h)) {
5957
+ if (ra(h)) {
5974
5958
  var j = h.options[c] || h.options.other;
5975
5959
  if (!j)
5976
- throw new ki(h.value, c, Object.keys(h.options), o);
5977
- a.push.apply(a, Yr(j.value, t, r, n, i));
5960
+ throw new Ii(h.value, c, Object.keys(h.options), o);
5961
+ a.push.apply(a, Wr(j.value, t, r, n, i));
5978
5962
  continue;
5979
5963
  }
5980
- if (ra(h)) {
5964
+ if (na(h)) {
5981
5965
  var j = h.options["=".concat(c)];
5982
5966
  if (!j) {
5983
5967
  if (!Intl.PluralRules)
5984
- throw new vn(`Intl.PluralRules is not available in this environment.
5968
+ throw new pn(`Intl.PluralRules is not available in this environment.
5985
5969
  Try polyfilling it using "@formatjs/intl-pluralrules"
5986
5970
  `, Kt.MISSING_INTL_API, o);
5987
5971
  var Ve = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
5988
5972
  j = h.options[Ve] || h.options.other;
5989
5973
  }
5990
5974
  if (!j)
5991
- throw new ki(h.value, c, Object.keys(h.options), o);
5992
- a.push.apply(a, Yr(j.value, t, r, n, i, c - (h.offset || 0)));
5975
+ throw new Ii(h.value, c, Object.keys(h.options), o);
5976
+ a.push.apply(a, Wr(j.value, t, r, n, i, c - (h.offset || 0)));
5993
5977
  continue;
5994
5978
  }
5995
5979
  }
5996
5980
  return ll(a);
5997
5981
  }
5998
5982
  function hl(e, t) {
5999
- return t ? Fe(Fe(Fe({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
6000
- return r[n] = Fe(Fe({}, e[n]), t[n] || {}), r;
5983
+ return t ? Ue(Ue(Ue({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5984
+ return r[n] = Ue(Ue({}, e[n]), t[n] || {}), r;
6001
5985
  }, {})) : e;
6002
5986
  }
6003
5987
  function cl(e, t) {
6004
5988
  return t ? Object.keys(e).reduce(function(r, n) {
6005
5989
  return r[n] = hl(e[n], t[n]), r;
6006
- }, Fe({}, e)) : e;
5990
+ }, Ue({}, e)) : e;
6007
5991
  }
6008
- function $n(e) {
5992
+ function On(e) {
6009
5993
  return {
6010
5994
  create: function() {
6011
5995
  return {
@@ -6025,29 +6009,29 @@ function dl(e) {
6025
6009
  dateTime: {},
6026
6010
  pluralRules: {}
6027
6011
  }), {
6028
- getNumberFormat: Tn(function() {
6012
+ getNumberFormat: Hn(function() {
6029
6013
  for (var t, r = [], n = 0; n < arguments.length; n++)
6030
6014
  r[n] = arguments[n];
6031
- return new ((t = Intl.NumberFormat).bind.apply(t, Sn([void 0], r, !1)))();
6015
+ return new ((t = Intl.NumberFormat).bind.apply(t, Tn([void 0], r, !1)))();
6032
6016
  }, {
6033
- cache: $n(e.number),
6034
- strategy: Hn.variadic
6017
+ cache: On(e.number),
6018
+ strategy: An.variadic
6035
6019
  }),
6036
- getDateTimeFormat: Tn(function() {
6020
+ getDateTimeFormat: Hn(function() {
6037
6021
  for (var t, r = [], n = 0; n < arguments.length; n++)
6038
6022
  r[n] = arguments[n];
6039
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Sn([void 0], r, !1)))();
6023
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Tn([void 0], r, !1)))();
6040
6024
  }, {
6041
- cache: $n(e.dateTime),
6042
- strategy: Hn.variadic
6025
+ cache: On(e.dateTime),
6026
+ strategy: An.variadic
6043
6027
  }),
6044
- getPluralRules: Tn(function() {
6028
+ getPluralRules: Hn(function() {
6045
6029
  for (var t, r = [], n = 0; n < arguments.length; n++)
6046
6030
  r[n] = arguments[n];
6047
- return new ((t = Intl.PluralRules).bind.apply(t, Sn([void 0], r, !1)))();
6031
+ return new ((t = Intl.PluralRules).bind.apply(t, Tn([void 0], r, !1)))();
6048
6032
  }, {
6049
- cache: $n(e.pluralRules),
6050
- strategy: Hn.variadic
6033
+ cache: On(e.pluralRules),
6034
+ strategy: An.variadic
6051
6035
  })
6052
6036
  };
6053
6037
  }
@@ -6070,7 +6054,7 @@ var pl = (
6070
6054
  }, []);
6071
6055
  return h.length <= 1 ? h[0] || "" : h;
6072
6056
  }, this.formatToParts = function(u) {
6073
- return Yr(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
6057
+ return Wr(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
6074
6058
  }, this.resolvedOptions = function() {
6075
6059
  var u;
6076
6060
  return {
@@ -6084,7 +6068,7 @@ var pl = (
6084
6068
  var o = i || {};
6085
6069
  o.formatters;
6086
6070
  var a = wu(o, ["formatters"]);
6087
- this.ast = e.__parse(t, Fe(Fe({}, a), { locale: this.resolvedLocale }));
6071
+ this.ast = e.__parse(t, Ue(Ue({}, a), { locale: this.resolvedLocale }));
6088
6072
  } else
6089
6073
  this.ast = t;
6090
6074
  if (!Array.isArray(this.ast))
@@ -6184,28 +6168,28 @@ function vl(e, t) {
6184
6168
  n = void 0;
6185
6169
  return n;
6186
6170
  }
6187
- const ot = {}, ml = (e, t, r) => r && (t in ot || (ot[t] = {}), e in ot[t] || (ot[t][e] = r), r), ca = (e, t) => {
6171
+ const ot = {}, ml = (e, t, r) => r && (t in ot || (ot[t] = {}), e in ot[t] || (ot[t][e] = r), r), da = (e, t) => {
6188
6172
  if (t == null)
6189
6173
  return;
6190
6174
  if (t in ot && e in ot[t])
6191
6175
  return ot[t][e];
6192
- const r = mn(t);
6176
+ const r = vn(t);
6193
6177
  for (let n = 0; n < r.length; n++) {
6194
6178
  const i = r[n], s = bl(i, e);
6195
6179
  if (s)
6196
6180
  return ml(e, t, s);
6197
6181
  }
6198
6182
  };
6199
- let fi;
6200
- const rr = cn({});
6183
+ let ci;
6184
+ const rr = hn({});
6201
6185
  function _l(e) {
6202
- return fi[e] || null;
6186
+ return ci[e] || null;
6203
6187
  }
6204
- function da(e) {
6205
- return e in fi;
6188
+ function pa(e) {
6189
+ return e in ci;
6206
6190
  }
6207
6191
  function bl(e, t) {
6208
- if (!da(e))
6192
+ if (!pa(e))
6209
6193
  return null;
6210
6194
  const r = _l(e);
6211
6195
  return vl(r, t);
@@ -6213,50 +6197,50 @@ function bl(e, t) {
6213
6197
  function gl(e) {
6214
6198
  if (e == null)
6215
6199
  return;
6216
- const t = mn(e);
6200
+ const t = vn(e);
6217
6201
  for (let r = 0; r < t.length; r++) {
6218
6202
  const n = t[r];
6219
- if (da(n))
6203
+ if (pa(n))
6220
6204
  return n;
6221
6205
  }
6222
6206
  }
6223
- function pa(e, ...t) {
6207
+ function va(e, ...t) {
6224
6208
  delete ot[e], rr.update((r) => (r[e] = xu.all([r[e] || {}, ...t]), r));
6225
6209
  }
6226
6210
  tr(
6227
6211
  [rr],
6228
6212
  ([e]) => Object.keys(e)
6229
6213
  );
6230
- rr.subscribe((e) => fi = e);
6231
- const zr = {};
6214
+ rr.subscribe((e) => ci = e);
6215
+ const Yr = {};
6232
6216
  function yl(e, t) {
6233
- zr[e].delete(t), zr[e].size === 0 && delete zr[e];
6217
+ Yr[e].delete(t), Yr[e].size === 0 && delete Yr[e];
6234
6218
  }
6235
- function va(e) {
6236
- return zr[e];
6219
+ function ma(e) {
6220
+ return Yr[e];
6237
6221
  }
6238
6222
  function El(e) {
6239
- return mn(e).map((t) => {
6240
- const r = va(t);
6223
+ return vn(e).map((t) => {
6224
+ const r = ma(t);
6241
6225
  return [t, r ? [...r] : []];
6242
6226
  }).filter(([, t]) => t.length > 0);
6243
6227
  }
6244
- function qn(e) {
6245
- return e == null ? !1 : mn(e).some(
6228
+ function Zn(e) {
6229
+ return e == null ? !1 : vn(e).some(
6246
6230
  (t) => {
6247
6231
  var r;
6248
- return (r = va(t)) == null ? void 0 : r.size;
6232
+ return (r = ma(t)) == null ? void 0 : r.size;
6249
6233
  }
6250
6234
  );
6251
6235
  }
6252
6236
  function xl(e, t) {
6253
6237
  return Promise.all(
6254
6238
  t.map((n) => (yl(e, n), n().then((i) => i.default || i)))
6255
- ).then((n) => pa(e, ...n));
6239
+ ).then((n) => va(e, ...n));
6256
6240
  }
6257
6241
  const or = {};
6258
- function ma(e) {
6259
- if (!qn(e))
6242
+ function _a(e) {
6243
+ if (!Zn(e))
6260
6244
  return e in or ? or[e] : Promise.resolve();
6261
6245
  const t = El(e);
6262
6246
  return or[e] = Promise.all(
@@ -6264,8 +6248,8 @@ function ma(e) {
6264
6248
  ([r, n]) => xl(r, n)
6265
6249
  )
6266
6250
  ).then(() => {
6267
- if (qn(e))
6268
- return ma(e);
6251
+ if (Zn(e))
6252
+ return _a(e);
6269
6253
  delete or[e];
6270
6254
  }), or[e];
6271
6255
  }
@@ -6309,67 +6293,67 @@ const wl = {
6309
6293
  function er() {
6310
6294
  return Tl;
6311
6295
  }
6312
- const On = cn(!1);
6313
- var Hl = Object.defineProperty, Al = Object.defineProperties, $l = Object.getOwnPropertyDescriptors, Ci = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Ml = Object.prototype.propertyIsEnumerable, Ii = (e, t, r) => t in e ? Hl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bl = (e, t) => {
6296
+ const Mn = hn(!1);
6297
+ var Hl = Object.defineProperty, Al = Object.defineProperties, $l = Object.getOwnPropertyDescriptors, ki = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Ml = Object.prototype.propertyIsEnumerable, Li = (e, t, r) => t in e ? Hl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bl = (e, t) => {
6314
6298
  for (var r in t || (t = {}))
6315
- Ol.call(t, r) && Ii(e, r, t[r]);
6316
- if (Ci)
6317
- for (var r of Ci(t))
6318
- Ml.call(t, r) && Ii(e, r, t[r]);
6299
+ Ol.call(t, r) && Li(e, r, t[r]);
6300
+ if (ki)
6301
+ for (var r of ki(t))
6302
+ Ml.call(t, r) && Li(e, r, t[r]);
6319
6303
  return e;
6320
6304
  }, Nl = (e, t) => Al(e, $l(t));
6321
- let Zn;
6322
- const nn = cn(null);
6323
- function Li(e) {
6305
+ let Jn;
6306
+ const rn = hn(null);
6307
+ function Di(e) {
6324
6308
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
6325
6309
  }
6326
- function mn(e, t = er().fallbackLocale) {
6327
- const r = Li(e);
6328
- return t ? [.../* @__PURE__ */ new Set([...r, ...Li(t)])] : r;
6310
+ function vn(e, t = er().fallbackLocale) {
6311
+ const r = Di(e);
6312
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Di(t)])] : r;
6329
6313
  }
6330
6314
  function $t() {
6331
- return Zn != null ? Zn : void 0;
6315
+ return Jn != null ? Jn : void 0;
6332
6316
  }
6333
- nn.subscribe((e) => {
6334
- Zn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
6317
+ rn.subscribe((e) => {
6318
+ Jn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
6335
6319
  });
6336
6320
  const Pl = (e) => {
6337
- if (e && gl(e) && qn(e)) {
6321
+ if (e && gl(e) && Zn(e)) {
6338
6322
  const { loadingDelay: t } = er();
6339
6323
  let r;
6340
6324
  return typeof window != "undefined" && $t() != null && t ? r = window.setTimeout(
6341
- () => On.set(!0),
6325
+ () => Mn.set(!0),
6342
6326
  t
6343
- ) : On.set(!0), ma(e).then(() => {
6344
- nn.set(e);
6327
+ ) : Mn.set(!0), _a(e).then(() => {
6328
+ rn.set(e);
6345
6329
  }).finally(() => {
6346
- clearTimeout(r), On.set(!1);
6330
+ clearTimeout(r), Mn.set(!1);
6347
6331
  });
6348
6332
  }
6349
- return nn.set(e);
6350
- }, Tt = Nl(Bl({}, nn), {
6333
+ return rn.set(e);
6334
+ }, Tt = Nl(Bl({}, rn), {
6351
6335
  set: Pl
6352
- }), _n = (e) => {
6336
+ }), mn = (e) => {
6353
6337
  const t = /* @__PURE__ */ Object.create(null);
6354
6338
  return (n) => {
6355
6339
  const i = JSON.stringify(n);
6356
6340
  return i in t ? t[i] : t[i] = e(n);
6357
6341
  };
6358
6342
  };
6359
- var Rl = Object.defineProperty, sn = Object.getOwnPropertySymbols, _a = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, Di = (e, t, r) => t in e ? Rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
6343
+ var Rl = Object.defineProperty, nn = Object.getOwnPropertySymbols, ba = Object.prototype.hasOwnProperty, ga = Object.prototype.propertyIsEnumerable, Ui = (e, t, r) => t in e ? Rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
6360
6344
  for (var r in t || (t = {}))
6361
- _a.call(t, r) && Di(e, r, t[r]);
6362
- if (sn)
6363
- for (var r of sn(t))
6364
- ba.call(t, r) && Di(e, r, t[r]);
6345
+ ba.call(t, r) && Ui(e, r, t[r]);
6346
+ if (nn)
6347
+ for (var r of nn(t))
6348
+ ga.call(t, r) && Ui(e, r, t[r]);
6365
6349
  return e;
6366
6350
  }, nr = (e, t) => {
6367
6351
  var r = {};
6368
6352
  for (var n in e)
6369
- _a.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
6370
- if (e != null && sn)
6371
- for (var n of sn(e))
6372
- t.indexOf(n) < 0 && ba.call(e, n) && (r[n] = e[n]);
6353
+ ba.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
6354
+ if (e != null && nn)
6355
+ for (var n of nn(e))
6356
+ t.indexOf(n) < 0 && ga.call(e, n) && (r[n] = e[n]);
6373
6357
  return r;
6374
6358
  };
6375
6359
  const xr = (e, t) => {
@@ -6377,21 +6361,21 @@ const xr = (e, t) => {
6377
6361
  if (e in r && t in r[e])
6378
6362
  return r[e][t];
6379
6363
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
6380
- }, kl = _n(
6364
+ }, Cl = mn(
6381
6365
  (e) => {
6382
6366
  var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
6383
6367
  if (r == null)
6384
6368
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
6385
6369
  return n && (i = xr("number", n)), new Intl.NumberFormat(r, i);
6386
6370
  }
6387
- ), Cl = _n(
6371
+ ), Il = mn(
6388
6372
  (e) => {
6389
6373
  var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
6390
6374
  if (r == null)
6391
6375
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
6392
6376
  return n ? i = xr("date", n) : Object.keys(i).length === 0 && (i = xr("date", "short")), new Intl.DateTimeFormat(r, i);
6393
6377
  }
6394
- ), Il = _n(
6378
+ ), kl = mn(
6395
6379
  (e) => {
6396
6380
  var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
6397
6381
  if (r == null)
@@ -6406,22 +6390,22 @@ const xr = (e, t) => {
6406
6390
  } = t, n = nr(t, [
6407
6391
  "locale"
6408
6392
  ]);
6409
- return kl(hi({ locale: r }, n));
6393
+ return Cl(di({ locale: r }, n));
6410
6394
  }, Dl = (e = {}) => {
6411
6395
  var t = e, {
6412
6396
  locale: r = $t()
6413
6397
  } = t, n = nr(t, [
6414
6398
  "locale"
6415
6399
  ]);
6416
- return Cl(hi({ locale: r }, n));
6400
+ return Il(di({ locale: r }, n));
6417
6401
  }, Ul = (e = {}) => {
6418
6402
  var t = e, {
6419
6403
  locale: r = $t()
6420
6404
  } = t, n = nr(t, [
6421
6405
  "locale"
6422
6406
  ]);
6423
- return Il(hi({ locale: r }, n));
6424
- }, Fl = _n(
6407
+ return kl(di({ locale: r }, n));
6408
+ }, Fl = mn(
6425
6409
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
6426
6410
  (e, t = $t()) => new pl(e, t, er().formats, {
6427
6411
  ignoreTag: er().ignoreTag
@@ -6439,7 +6423,7 @@ const xr = (e, t) => {
6439
6423
  throw new Error(
6440
6424
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
6441
6425
  );
6442
- let h = ca(e, u);
6426
+ let h = da(e, u);
6443
6427
  if (!h)
6444
6428
  h = (s = (i = (n = (r = er()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
6445
6429
  else if (typeof h != "string")
@@ -6458,7 +6442,7 @@ const xr = (e, t) => {
6458
6442
  );
6459
6443
  }
6460
6444
  return d;
6461
- }, jl = (e, t) => Ul(t).format(e), Vl = (e, t) => Dl(t).format(e), Xl = (e, t) => Ll(t).format(e), Wl = (e, t = $t()) => ca(e, t), Yl = tr([Tt, rr], () => Gl);
6445
+ }, jl = (e, t) => Ul(t).format(e), Vl = (e, t) => Dl(t).format(e), Xl = (e, t) => Ll(t).format(e), Wl = (e, t = $t()) => da(e, t), Yl = tr([Tt, rr], () => Gl);
6462
6446
  tr([Tt], () => jl);
6463
6447
  tr([Tt], () => Vl);
6464
6448
  tr([Tt], () => Xl);
@@ -6468,8 +6452,8 @@ function zl({ withLocale: e, translations: t }) {
6468
6452
  r == null && (rr.set(t), Tt.set(e));
6469
6453
  });
6470
6454
  }
6471
- function Ui(e, t) {
6472
- pa(e, t);
6455
+ function Fi(e, t) {
6456
+ va(e, t);
6473
6457
  }
6474
6458
  const ql = {
6475
6459
  en: {
@@ -6494,7 +6478,7 @@ const ql = {
6494
6478
  requestRakeback: "Rakeback igénylése"
6495
6479
  }
6496
6480
  }, Zl = "RakebackClaimConfirmed";
6497
- var Jl = /* @__PURE__ */ js('<div class="loyalty-rakeback-card svelte-bm1wev"><div class="loyalty-rakeback-card__content svelte-bm1wev"><span class="loyalty-rakeback-card__amount svelte-bm1wev"> </span> <button class="loyalty-rakeback-card__button svelte-bm1wev" type="button"> </button></div></div>'), Ql = /* @__PURE__ */ js('<div class="loyalty-rakeback-card svelte-bm1wev" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-bm1wev"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-bm1wev"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-bm1wev"></span></div></div>');
6481
+ var Jl = /* @__PURE__ */ Vs('<div class="loyalty-rakeback-card svelte-bm1wev"><div class="loyalty-rakeback-card__content svelte-bm1wev"><span class="loyalty-rakeback-card__amount svelte-bm1wev"> </span> <button class="loyalty-rakeback-card__button svelte-bm1wev" type="button"> </button></div></div>'), Ql = /* @__PURE__ */ Vs('<div class="loyalty-rakeback-card svelte-bm1wev" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-bm1wev"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-bm1wev"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-bm1wev"></span></div></div>');
6498
6482
  const Kl = {
6499
6483
  hash: "svelte-bm1wev",
6500
6484
  code: `.loyalty-rakeback-card.svelte-bm1wev {padding:14px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-rakeback-card__content.svelte-bm1wev {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-bm1wev {color:var(--text-default, #ffffff);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-bm1wev {height:37px;border-radius:6px;border-width:1px;padding:10px 16px;cursor:pointer;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:solid 1px var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));font-size:12px;font-weight:700;color:var(--button-secondary-text-default, #ffffff);}.loyalty-rakeback-card__button.svelte-bm1wev:disabled {opacity:0.4;cursor:default;}.loyalty-rakeback-skeleton.svelte-bm1wev {display:block;border-radius:4px;background:linear-gradient(
@@ -6518,17 +6502,17 @@ const Kl = {
6518
6502
  animation: none;}
6519
6503
  }`
6520
6504
  };
6521
- function ga(e, t) {
6522
- Qn(t, !0), Yo(e, Kl);
6523
- const r = () => so(Yl, "$_", n), [n, i] = ao(), s = at(t, "apiEndpoint", 7, ""), o = at(t, "userSession", 7, ""), a = at(t, "locale", 7, ""), u = at(t, "translationUrl");
6505
+ function ya(e, t) {
6506
+ ei(t, !0), Yo(e, Kl);
6507
+ const r = () => ao(Yl, "$_", n), [n, i] = oo(), s = at(t, "apiEndpoint", 7, ""), o = at(t, "userSession", 7, ""), a = at(t, "locale", 7, ""), u = at(t, "translationUrl");
6524
6508
  zl({ withLocale: a(), translations: {} }), Object.entries(ql).forEach(([y, U]) => {
6525
- Ui(y, U);
6509
+ Fi(y, U);
6526
6510
  });
6527
6511
  const l = () => {
6528
6512
  let y = new URL(u(), window.location.href);
6529
6513
  fetch(y.href).then((U) => U.json()).then((U) => {
6530
- Object.keys(U).forEach((Oe) => {
6531
- Ui(Oe, U[Oe]);
6514
+ Object.keys(U).forEach(($e) => {
6515
+ Fi($e, U[$e]);
6532
6516
  });
6533
6517
  }).catch((U) => {
6534
6518
  console.log("loyalty rakeback translation url err:", U);
@@ -6537,14 +6521,14 @@ function ga(e, t) {
6537
6521
  Ho(() => {
6538
6522
  u() && l();
6539
6523
  });
6540
- let h = /* @__PURE__ */ we(void 0), d = /* @__PURE__ */ we(!1), c = /* @__PURE__ */ we(!1), p = /* @__PURE__ */ we(!1);
6541
- const v = /* @__PURE__ */ Ir(() => C(h) ? ru(C(h).total.points <= 0 ? 0 : C(h).total.points, 2) : "0.00"), g = /* @__PURE__ */ Ir(() => {
6524
+ let h = /* @__PURE__ */ xe(void 0), d = /* @__PURE__ */ xe(!1), c = /* @__PURE__ */ xe(!1), p = /* @__PURE__ */ xe(!1);
6525
+ const v = /* @__PURE__ */ Ir(() => I(h) ? ru(I(h).total.points <= 0 ? 0 : I(h).total.points, 2) : "0.00"), g = /* @__PURE__ */ Ir(() => {
6542
6526
  var y, U;
6543
- return nu((U = (y = C(h)) == null ? void 0 : y.currency) != null ? U : "", a());
6527
+ return nu((U = (y = I(h)) == null ? void 0 : y.currency) != null ? U : "", a());
6544
6528
  }), P = /* @__PURE__ */ Ir(() => {
6545
6529
  var y;
6546
- return !!((y = C(h)) != null && y.claimable);
6547
- }), B = /* @__PURE__ */ Ir(() => C(d)), Q = () => Bt(this, null, function* () {
6530
+ return !!((y = I(h)) != null && y.claimable);
6531
+ }), B = /* @__PURE__ */ Ir(() => I(d)), Q = () => Bt(this, null, function* () {
6548
6532
  if (!(!s() || !o())) {
6549
6533
  te(p, !0);
6550
6534
  try {
@@ -6565,16 +6549,16 @@ function ga(e, t) {
6565
6549
  }
6566
6550
  }
6567
6551
  }), j = () => {
6568
- !C(P) || C(c) || !C(h) || iu(C(h).total.points);
6552
+ !I(P) || I(c) || !I(h) || iu(I(h).total.points);
6569
6553
  }, Ve = () => Bt(this, null, function* () {
6570
- if (!(!s() || !o() || !C(h))) {
6554
+ if (!(!s() || !o() || !I(h))) {
6571
6555
  te(c, !0);
6572
6556
  try {
6573
6557
  yield Qo({
6574
6558
  apiEndpoint: s(),
6575
6559
  userSession: o(),
6576
6560
  locale: a()
6577
- }), yield Q(), su(C(h).total.points);
6561
+ }), yield Q(), su(I(h).total.points);
6578
6562
  } catch (y) {
6579
6563
  console.error("Claim rakeback: ", y), au(y.message);
6580
6564
  } finally {
@@ -6582,12 +6566,12 @@ function ga(e, t) {
6582
6566
  }
6583
6567
  }
6584
6568
  });
6585
- yi(() => {
6569
+ xi(() => {
6586
6570
  s(), o(), a(), Q();
6587
- }), yi(() => {
6571
+ }), xi(() => {
6588
6572
  const y = (U) => {
6589
- var Oe;
6590
- ((Oe = U.data) == null ? void 0 : Oe.type) === Zl && Ve();
6573
+ var $e;
6574
+ (($e = U.data) == null ? void 0 : $e.type) === Zl && Ve();
6591
6575
  };
6592
6576
  return window.addEventListener("message", y), () => window.removeEventListener("message", y);
6593
6577
  });
@@ -6616,34 +6600,34 @@ function ga(e, t) {
6616
6600
  set translationUrl(y) {
6617
6601
  u(y), Je();
6618
6602
  }
6619
- }, se = Uo(), ft = Eo(se);
6603
+ }, se = Uo(), ht = xo(se);
6620
6604
  {
6621
6605
  var ir = (y) => {
6622
- var U = Jl(), Oe = Lr(U), x = Lr(Oe), b = Lr(x);
6606
+ var U = Jl(), $e = kr(U), x = kr($e), b = kr(x);
6623
6607
  Cr(x);
6624
- var m = xo(x, 2), E = Lr(m, !0);
6625
- Cr(m), Cr(Oe), Cr(U), Bo(
6608
+ var m = wo(x, 2), E = kr(m, !0);
6609
+ Cr(m), Cr($e), Cr(U), Bo(
6626
6610
  (_) => {
6627
6611
  var S, T;
6628
- Hi(b, `${(S = C(v)) != null ? S : ""} ${(T = C(g)) != null ? T : ""}`), m.disabled = C(c) || !C(P), Hi(E, _);
6612
+ Ai(b, `${(S = I(v)) != null ? S : ""} ${(T = I(g)) != null ? T : ""}`), m.disabled = I(c) || !I(P), Ai(E, _);
6629
6613
  },
6630
6614
  [() => r()("requestRakeback")]
6631
- ), Co("click", m, j), Xr(y, U);
6615
+ ), Io("click", m, j), Vr(y, U);
6632
6616
  }, Ot = (y) => {
6633
6617
  var U = Ql();
6634
- Xr(y, U);
6618
+ Vr(y, U);
6635
6619
  };
6636
- Wo(ft, (y) => {
6637
- C(B) ? y(ir) : C(p) && y(Ot, 1);
6620
+ Wo(ht, (y) => {
6621
+ I(B) ? y(ir) : I(p) && y(Ot, 1);
6638
6622
  });
6639
6623
  }
6640
- Xr(e, se);
6641
- var Y = Kn(ie);
6624
+ Vr(e, se);
6625
+ var Y = ti(ie);
6642
6626
  return i(), Y;
6643
6627
  }
6644
- Io(["click"]);
6645
- Ys(
6646
- ga,
6628
+ ko(["click"]);
6629
+ zs(
6630
+ ya,
6647
6631
  {
6648
6632
  apiEndpoint: {},
6649
6633
  userSession: {},
@@ -6654,8 +6638,8 @@ Ys(
6654
6638
  [],
6655
6639
  { mode: "open" }
6656
6640
  );
6657
- function ya(e, t) {
6658
- Qn(t, !0);
6641
+ function Ea(e, t) {
6642
+ ei(t, !0);
6659
6643
  let r = at(t, "apiEndpoint", 7, ""), n = at(t, "userSession", 7, ""), i = at(t, "locale", 7, ""), s = at(t, "translationUrl");
6660
6644
  var o = {
6661
6645
  get apiEndpoint() {
@@ -6683,7 +6667,7 @@ function ya(e, t) {
6683
6667
  s(a), Je();
6684
6668
  }
6685
6669
  };
6686
- return ga(e, {
6670
+ return ya(e, {
6687
6671
  get apiEndpoint() {
6688
6672
  return r();
6689
6673
  },
@@ -6696,10 +6680,10 @@ function ya(e, t) {
6696
6680
  get translationUrl() {
6697
6681
  return s();
6698
6682
  }
6699
- }), Kn(o);
6683
+ }), ti(o);
6700
6684
  }
6701
- customElements.define("loyalty-rakeback", Ys(
6702
- ya,
6685
+ customElements.define("loyalty-rakeback", zs(
6686
+ Ea,
6703
6687
  {
6704
6688
  apiEndpoint: {},
6705
6689
  userSession: {},
@@ -6711,9 +6695,9 @@ customElements.define("loyalty-rakeback", Ys(
6711
6695
  ));
6712
6696
  const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6713
6697
  __proto__: null,
6714
- default: ya
6698
+ default: Ea
6715
6699
  }, Symbol.toStringTag, { value: "Module" }));
6716
6700
  export {
6717
- ga as L,
6701
+ ya as L,
6718
6702
  rf as a
6719
6703
  };