@everymatrix/loyalty-rakeback 0.1.7 → 0.1.8

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,130 +1,130 @@
1
- const pi = "5";
2
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(pi);
3
- const vi = 2, jr = "[", or = "[!", Vr = "]", Re = {}, N = Symbol(), jt = !1;
4
- var _i = Array.isArray, mi = Array.prototype.indexOf, bi = Array.from, _t = Object.keys, Ye = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, gi = Object.prototype, yi = Array.prototype, Ei = Object.getPrototypeOf, Er = Object.isExtensible;
5
- const de = () => {
1
+ const Si = "5";
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Si);
3
+ const Hi = 2, Zr = "[", fr = "[!", Yr = "]", Me = {}, O = Symbol(), zt = !1;
4
+ var Ai = Array.isArray, Bi = Array.prototype.indexOf, Ni = Array.from, wt = Object.keys, rt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Oi = Object.prototype, Pi = Array.prototype, Ci = Object.getPrototypeOf, wr = Object.isExtensible;
5
+ const pe = () => {
6
6
  };
7
- function Xr(e) {
7
+ function Qr(e) {
8
8
  for (var t = 0; t < e.length; t++)
9
9
  e[t]();
10
10
  }
11
- function Wr() {
11
+ function Jr() {
12
12
  var e, t, r = new Promise((n, i) => {
13
13
  e = n, t = i;
14
14
  });
15
15
  return { promise: r, resolve: e, reject: t };
16
16
  }
17
- const O = 2, mt = 4, St = 8, qr = 1 << 24, ue = 16, le = 32, me = 64, ur = 128, j = 512, P = 1024, R = 2048, fe = 4096, J = 8192, ie = 16384, Ht = 32768, Le = 65536, xr = 1 << 17, zr = 1 << 18, He = 1 << 19, xi = 1 << 20, Te = 32768, Vt = 1 << 21, lr = 1 << 22, pe = 1 << 23, Lt = Symbol("$state"), wi = Symbol("legacy props"), Pe = new class extends Error {
17
+ const C = 2, Tt = 4, ut = 8, Kr = 1 << 24, le = 16, fe = 32, be = 64, hr = 128, X = 512, I = 1024, L = 2048, he = 4096, ee = 8192, se = 16384, Ct = 32768, $e = 65536, Tr = 1 << 17, en = 1 << 18, Be = 1 << 19, tn = 1 << 20, He = 32768, qt = 1 << 21, cr = 1 << 22, ve = 1 << 23, Ut = Symbol("$state"), Ii = Symbol("legacy props"), Ie = new class extends Error {
18
18
  name = "StaleReactionError";
19
19
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
20
- }(), fr = 3, rt = 8;
21
- function Ti() {
20
+ }(), dr = 3, lt = 8;
21
+ function Ri() {
22
22
  throw new Error("https://svelte.dev/e/async_derived_orphan");
23
23
  }
24
- function Si(e) {
24
+ function Li(e) {
25
25
  throw new Error("https://svelte.dev/e/effect_in_teardown");
26
26
  }
27
- function Hi() {
27
+ function Mi() {
28
28
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
29
29
  }
30
- function Ai(e) {
30
+ function $i(e) {
31
31
  throw new Error("https://svelte.dev/e/effect_orphan");
32
32
  }
33
- function Bi() {
33
+ function ki() {
34
34
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
35
35
  }
36
- function Ni() {
36
+ function Di() {
37
37
  throw new Error("https://svelte.dev/e/hydration_failed");
38
38
  }
39
- function Oi() {
39
+ function Ui() {
40
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
41
41
  }
42
- function Pi() {
42
+ function Fi() {
43
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
44
44
  }
45
- function Ci() {
45
+ function Gi() {
46
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
47
47
  }
48
- function Ii() {
48
+ function ji() {
49
49
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
50
50
  }
51
- function At(e) {
51
+ function It(e) {
52
52
  console.warn("https://svelte.dev/e/hydration_mismatch");
53
53
  }
54
- function Ri() {
54
+ function Vi() {
55
55
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
56
56
  }
57
57
  let A = !1;
58
- function Ce(e) {
58
+ function Re(e) {
59
59
  A = e;
60
60
  }
61
- let E;
62
- function Z(e) {
61
+ let x;
62
+ function Y(e) {
63
63
  if (e === null)
64
- throw At(), Re;
65
- return E = e;
64
+ throw It(), Me;
65
+ return x = e;
66
66
  }
67
- function hr() {
68
- return Z(/* @__PURE__ */ he(E));
67
+ function pr() {
68
+ return Y(/* @__PURE__ */ ce(x));
69
69
  }
70
- function at(e) {
70
+ function dt(e) {
71
71
  if (A) {
72
- if (/* @__PURE__ */ he(E) !== null)
73
- throw At(), Re;
74
- E = e;
72
+ if (/* @__PURE__ */ ce(x) !== null)
73
+ throw It(), Me;
74
+ x = e;
75
75
  }
76
76
  }
77
- function Li(e = 1) {
77
+ function Xi(e = 1) {
78
78
  if (A) {
79
- for (var t = e, r = E; t--; )
79
+ for (var t = e, r = x; t--; )
80
80
  r = /** @type {TemplateNode} */
81
- /* @__PURE__ */ he(r);
82
- E = r;
81
+ /* @__PURE__ */ ce(r);
82
+ x = r;
83
83
  }
84
84
  }
85
- function Zr(e = !0) {
86
- for (var t = 0, r = E; ; ) {
87
- if (r.nodeType === rt) {
85
+ function rn(e = !0) {
86
+ for (var t = 0, r = x; ; ) {
87
+ if (r.nodeType === lt) {
88
88
  var n = (
89
89
  /** @type {Comment} */
90
90
  r.data
91
91
  );
92
- if (n === Vr) {
92
+ if (n === Yr) {
93
93
  if (t === 0) return r;
94
94
  t -= 1;
95
- } else (n === jr || n === or) && (t += 1);
95
+ } else (n === Zr || n === fr) && (t += 1);
96
96
  }
97
97
  var i = (
98
98
  /** @type {TemplateNode} */
99
- /* @__PURE__ */ he(r)
99
+ /* @__PURE__ */ ce(r)
100
100
  );
101
101
  e && r.remove(), r = i;
102
102
  }
103
103
  }
104
- function Mi(e) {
105
- if (!e || e.nodeType !== rt)
106
- throw At(), Re;
104
+ function Wi(e) {
105
+ if (!e || e.nodeType !== lt)
106
+ throw It(), Me;
107
107
  return (
108
108
  /** @type {Comment} */
109
109
  e.data
110
110
  );
111
111
  }
112
- function Yr(e) {
112
+ function nn(e) {
113
113
  return e === this.v;
114
114
  }
115
- function Qr(e, t) {
115
+ function sn(e, t) {
116
116
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
117
117
  }
118
- function $i(e) {
119
- return !Qr(e, this.v);
118
+ function zi(e) {
119
+ return !sn(e, this.v);
120
120
  }
121
- let Di = !1, V = null;
122
- function Me(e) {
123
- V = e;
121
+ let qi = !1, W = null;
122
+ function ke(e) {
123
+ W = e;
124
124
  }
125
- function Jr(e, t = !1, r) {
126
- V = {
127
- p: V,
125
+ function an(e, t = !1, r) {
126
+ W = {
127
+ p: W,
128
128
  i: !1,
129
129
  c: null,
130
130
  e: null,
@@ -133,55 +133,55 @@ function Jr(e, t = !1, r) {
133
133
  l: null
134
134
  };
135
135
  }
136
- function Kr(e) {
136
+ function on(e) {
137
137
  var t = (
138
138
  /** @type {ComponentContext} */
139
- V
139
+ W
140
140
  ), r = t.e;
141
141
  if (r !== null) {
142
142
  t.e = null;
143
143
  for (var n of r)
144
- gn(n);
144
+ An(n);
145
145
  }
146
- return e !== void 0 && (t.x = e), t.i = !0, V = t.p, e ?? /** @type {T} */
146
+ return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
147
147
  {};
148
148
  }
149
- function en() {
149
+ function un() {
150
150
  return !0;
151
151
  }
152
- let ye = [];
153
- function tn() {
154
- var e = ye;
155
- ye = [], Xr(e);
152
+ let xe = [];
153
+ function ln() {
154
+ var e = xe;
155
+ xe = [], Qr(e);
156
156
  }
157
- function cr(e) {
158
- if (ye.length === 0 && !qe) {
159
- var t = ye;
157
+ function vr(e) {
158
+ if (xe.length === 0 && !Ke) {
159
+ var t = xe;
160
160
  queueMicrotask(() => {
161
- t === ye && tn();
161
+ t === xe && ln();
162
162
  });
163
163
  }
164
- ye.push(e);
164
+ xe.push(e);
165
165
  }
166
- function Fi() {
167
- for (; ye.length > 0; )
168
- tn();
166
+ function Zi() {
167
+ for (; xe.length > 0; )
168
+ ln();
169
169
  }
170
- function rn(e) {
170
+ function fn(e) {
171
171
  var t = b;
172
172
  if (t === null)
173
- return _.f |= pe, e;
174
- if (t.f & Ht)
175
- $e(e, t);
173
+ return _.f |= ve, e;
174
+ if (t.f & Ct)
175
+ De(e, t);
176
176
  else {
177
- if (!(t.f & ur))
177
+ if (!(t.f & hr))
178
178
  throw e;
179
179
  t.b.error(e);
180
180
  }
181
181
  }
182
- function $e(e, t) {
182
+ function De(e, t) {
183
183
  for (; t !== null; ) {
184
- if (t.f & ur)
184
+ if (t.f & hr)
185
185
  try {
186
186
  t.b.error(e);
187
187
  return;
@@ -192,26 +192,26 @@ function $e(e, t) {
192
192
  }
193
193
  throw e;
194
194
  }
195
- const ki = -7169;
195
+ const Yi = -7169;
196
196
  function B(e, t) {
197
- e.f = e.f & ki | t;
197
+ e.f = e.f & Yi | t;
198
198
  }
199
- function dr(e) {
200
- e.f & j || e.deps === null ? B(e, P) : B(e, fe);
199
+ function _r(e) {
200
+ e.f & X || e.deps === null ? B(e, I) : B(e, he);
201
201
  }
202
- function nn(e) {
202
+ function hn(e) {
203
203
  if (e !== null)
204
204
  for (const t of e)
205
- !(t.f & O) || !(t.f & Te) || (t.f ^= Te, nn(
205
+ !(t.f & C) || !(t.f & He) || (t.f ^= He, hn(
206
206
  /** @type {Derived} */
207
207
  t.deps
208
208
  ));
209
209
  }
210
- function sn(e, t, r) {
211
- e.f & R ? t.add(e) : e.f & fe && r.add(e), nn(e.deps), B(e, P);
210
+ function cn(e, t, r) {
211
+ e.f & L ? t.add(e) : e.f & he && r.add(e), hn(e.deps), B(e, I);
212
212
  }
213
- const ot = /* @__PURE__ */ new Set();
214
- let S = null, W = null, G = [], Bt = null, Xt = !1, qe = !1;
213
+ const pt = /* @__PURE__ */ new Set();
214
+ let H = null, z = null, V = [], Rt = null, Zt = !1, Ke = !1;
215
215
  class q {
216
216
  committed = !1;
217
217
  /**
@@ -276,11 +276,11 @@ class q {
276
276
  * @param {Effect[]} root_effects
277
277
  */
278
278
  process(t) {
279
- G = [], this.apply();
279
+ V = [], this.apply();
280
280
  var r = [], n = [];
281
281
  for (const i of t)
282
282
  this.#o(i, r, n);
283
- this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null, wr(n), wr(r), this.#a?.resolve()), W = null;
283
+ this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (H = null, Sr(n), Sr(r), this.#a?.resolve()), z = null;
284
284
  }
285
285
  /**
286
286
  * Traverse the effect tree, executing effects or stashing
@@ -290,11 +290,11 @@ class q {
290
290
  * @param {Effect[]} render_effects
291
291
  */
292
292
  #o(t, r, n) {
293
- t.f ^= P;
293
+ t.f ^= I;
294
294
  for (var i = t.first, s = null; i !== null; ) {
295
- var a = i.f, o = (a & (le | me)) !== 0, u = o && (a & P) !== 0, l = u || (a & J) !== 0 || this.skipped_effects.has(i);
295
+ var a = i.f, o = (a & (fe | be)) !== 0, u = o && (a & I) !== 0, l = u || (a & ee) !== 0 || this.skipped_effects.has(i);
296
296
  if (!l && i.fn !== null) {
297
- o ? i.f ^= P : s !== null && a & (mt | St | qr) ? s.b.defer_effect(i) : a & mt ? r.push(i) : it(i) && (a & ue && this.#i.add(i), Je(i));
297
+ o ? i.f ^= I : s !== null && a & (Tt | ut | Kr) ? s.b.defer_effect(i) : a & Tt ? r.push(i) : ht(i) && (a & le && this.#i.add(i), it(i));
298
298
  var f = i.first;
299
299
  if (f !== null) {
300
300
  i = f;
@@ -311,7 +311,7 @@ class q {
311
311
  */
312
312
  #u(t) {
313
313
  for (var r = 0; r < t.length; r += 1)
314
- sn(t[r], this.#i, this.#n);
314
+ cn(t[r], this.#i, this.#n);
315
315
  }
316
316
  /**
317
317
  * Associate a change to a given source with the current
@@ -320,17 +320,17 @@ class q {
320
320
  * @param {any} value
321
321
  */
322
322
  capture(t, r) {
323
- r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & pe || (this.current.set(t, t.v), W?.set(t, t.v));
323
+ r !== O && !this.previous.has(t) && this.previous.set(t, r), t.f & ve || (this.current.set(t, t.v), z?.set(t, t.v));
324
324
  }
325
325
  activate() {
326
- S = this, this.apply();
326
+ H = this, this.apply();
327
327
  }
328
328
  deactivate() {
329
- S === this && (S = null, W = null);
329
+ H === this && (H = null, z = null);
330
330
  }
331
331
  flush() {
332
- if (this.activate(), G.length > 0) {
333
- if (an(), S !== null && S !== this)
332
+ if (this.activate(), V.length > 0) {
333
+ if (dn(), H !== null && H !== this)
334
334
  return;
335
335
  } else this.#r === 0 && this.process([]);
336
336
  this.deactivate();
@@ -347,10 +347,10 @@ class q {
347
347
  this.#r === 0 && this.#f();
348
348
  }
349
349
  #f() {
350
- if (ot.size > 1) {
350
+ if (pt.size > 1) {
351
351
  this.previous.clear();
352
- var t = W, r = !0;
353
- for (const i of ot) {
352
+ var t = z, r = !0;
353
+ for (const i of pt) {
354
354
  if (i === this) {
355
355
  r = !1;
356
356
  continue;
@@ -368,23 +368,23 @@ class q {
368
368
  continue;
369
369
  const a = [...i.current.keys()].filter((o) => !this.current.has(o));
370
370
  if (a.length > 0) {
371
- var n = G;
372
- G = [];
371
+ var n = V;
372
+ V = [];
373
373
  const o = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
374
374
  for (const l of s)
375
- on(l, a, o, u);
376
- if (G.length > 0) {
377
- S = i, i.apply();
378
- for (const l of G)
375
+ pn(l, a, o, u);
376
+ if (V.length > 0) {
377
+ H = i, i.apply();
378
+ for (const l of V)
379
379
  i.#o(l, [], []);
380
380
  i.deactivate();
381
381
  }
382
- G = n;
382
+ V = n;
383
383
  }
384
384
  }
385
- S = null, W = t;
385
+ H = null, z = t;
386
386
  }
387
- this.committed = !0, ot.delete(this);
387
+ this.committed = !0, pt.delete(this);
388
388
  }
389
389
  /**
390
390
  *
@@ -402,9 +402,9 @@ class q {
402
402
  }
403
403
  revive() {
404
404
  for (const t of this.#i)
405
- this.#n.delete(t), B(t, R), ae(t);
405
+ this.#n.delete(t), B(t, L), oe(t);
406
406
  for (const t of this.#n)
407
- B(t, fe), ae(t);
407
+ B(t, he), oe(t);
408
408
  this.flush();
409
409
  }
410
410
  /** @param {() => void} fn */
@@ -416,112 +416,112 @@ class q {
416
416
  this.#t.add(t);
417
417
  }
418
418
  settled() {
419
- return (this.#a ??= Wr()).promise;
419
+ return (this.#a ??= Jr()).promise;
420
420
  }
421
421
  static ensure() {
422
- if (S === null) {
423
- const t = S = new q();
424
- ot.add(S), qe || q.enqueue(() => {
425
- S === t && t.flush();
422
+ if (H === null) {
423
+ const t = H = new q();
424
+ pt.add(H), Ke || q.enqueue(() => {
425
+ H === t && t.flush();
426
426
  });
427
427
  }
428
- return S;
428
+ return H;
429
429
  }
430
430
  /** @param {() => void} task */
431
431
  static enqueue(t) {
432
- cr(t);
432
+ vr(t);
433
433
  }
434
434
  apply() {
435
435
  }
436
436
  }
437
- function ct(e) {
438
- var t = qe;
439
- qe = !0;
437
+ function Ye(e) {
438
+ var t = Ke;
439
+ Ke = !0;
440
440
  try {
441
441
  for (var r; ; ) {
442
- if (Fi(), G.length === 0 && (S?.flush(), G.length === 0))
443
- return Bt = null, /** @type {T} */
442
+ if (Zi(), V.length === 0 && (H?.flush(), V.length === 0))
443
+ return Rt = null, /** @type {T} */
444
444
  r;
445
- an();
445
+ dn();
446
446
  }
447
447
  } finally {
448
- qe = t;
448
+ Ke = t;
449
449
  }
450
450
  }
451
- function an() {
452
- var e = xe;
453
- Xt = !0;
451
+ function dn() {
452
+ var e = Te;
453
+ Zt = !0;
454
454
  var t = null;
455
455
  try {
456
456
  var r = 0;
457
- for (yt(!0); G.length > 0; ) {
457
+ for (At(!0); V.length > 0; ) {
458
458
  var n = q.ensure();
459
459
  if (r++ > 1e3) {
460
460
  var i, s;
461
- Ui();
461
+ Qi();
462
462
  }
463
- n.process(G), ve.clear();
463
+ n.process(V), _e.clear();
464
464
  }
465
465
  } finally {
466
- Xt = !1, yt(e), Bt = null;
466
+ Zt = !1, At(e), Rt = null;
467
467
  }
468
468
  }
469
- function Ui() {
469
+ function Qi() {
470
470
  try {
471
- Bi();
471
+ ki();
472
472
  } catch (e) {
473
- $e(e, Bt);
473
+ De(e, Rt);
474
474
  }
475
475
  }
476
- let re = null;
477
- function wr(e) {
476
+ let ne = null;
477
+ function Sr(e) {
478
478
  var t = e.length;
479
479
  if (t !== 0) {
480
480
  for (var r = 0; r < t; ) {
481
481
  var n = e[r++];
482
- if (!(n.f & (ie | J)) && it(n) && (re = /* @__PURE__ */ new Set(), Je(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Tn(n) : n.fn = null), re?.size > 0)) {
483
- ve.clear();
484
- for (const i of re) {
485
- if (i.f & (ie | J)) continue;
482
+ if (!(n.f & (se | ee)) && ht(n) && (ne = /* @__PURE__ */ new Set(), it(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Cn(n) : n.fn = null), ne?.size > 0)) {
483
+ _e.clear();
484
+ for (const i of ne) {
485
+ if (i.f & (se | ee)) continue;
486
486
  const s = [i];
487
487
  let a = i.parent;
488
488
  for (; a !== null; )
489
- re.has(a) && (re.delete(a), s.push(a)), a = a.parent;
489
+ ne.has(a) && (ne.delete(a), s.push(a)), a = a.parent;
490
490
  for (let o = s.length - 1; o >= 0; o--) {
491
491
  const u = s[o];
492
- u.f & (ie | J) || Je(u);
492
+ u.f & (se | ee) || it(u);
493
493
  }
494
494
  }
495
- re.clear();
495
+ ne.clear();
496
496
  }
497
497
  }
498
- re = null;
498
+ ne = null;
499
499
  }
500
500
  }
501
- function on(e, t, r, n) {
501
+ function pn(e, t, r, n) {
502
502
  if (!r.has(e) && (r.add(e), e.reactions !== null))
503
503
  for (const i of e.reactions) {
504
504
  const s = i.f;
505
- s & O ? on(
505
+ s & C ? pn(
506
506
  /** @type {Derived} */
507
507
  i,
508
508
  t,
509
509
  r,
510
510
  n
511
- ) : s & (lr | ue) && !(s & R) && un(i, t, n) && (B(i, R), ae(
511
+ ) : s & (cr | le) && !(s & L) && vn(i, t, n) && (B(i, L), oe(
512
512
  /** @type {Effect} */
513
513
  i
514
514
  ));
515
515
  }
516
516
  }
517
- function un(e, t, r) {
517
+ function vn(e, t, r) {
518
518
  const n = r.get(e);
519
519
  if (n !== void 0) return n;
520
520
  if (e.deps !== null)
521
521
  for (const i of e.deps) {
522
522
  if (t.includes(i))
523
523
  return !0;
524
- if (i.f & O && un(
524
+ if (i.f & C && vn(
525
525
  /** @type {Derived} */
526
526
  i,
527
527
  t,
@@ -535,41 +535,41 @@ function un(e, t, r) {
535
535
  }
536
536
  return r.set(e, !1), !1;
537
537
  }
538
- function ae(e) {
539
- for (var t = Bt = e; t.parent !== null; ) {
538
+ function oe(e) {
539
+ for (var t = Rt = e; t.parent !== null; ) {
540
540
  t = t.parent;
541
541
  var r = t.f;
542
- if (Xt && t === b && r & ue && !(r & zr))
542
+ if (Zt && t === b && r & le && !(r & en))
543
543
  return;
544
- if (r & (me | le)) {
545
- if (!(r & P)) return;
546
- t.f ^= P;
544
+ if (r & (be | fe)) {
545
+ if (!(r & I)) return;
546
+ t.f ^= I;
547
547
  }
548
548
  }
549
- G.push(t);
549
+ V.push(t);
550
550
  }
551
- function Gi(e) {
552
- let t = 0, r = nt(0), n;
551
+ function Ji(e) {
552
+ let t = 0, r = ft(0), n;
553
553
  return () => {
554
- _r() && (g(r), yn(() => (t === 0 && (n = Ln(() => e(() => ze(r)))), t += 1, () => {
555
- cr(() => {
556
- t -= 1, t === 0 && (n?.(), n = void 0, ze(r));
554
+ gr() && (g(r), Bn(() => (t === 0 && (n = jn(() => e(() => et(r)))), t += 1, () => {
555
+ vr(() => {
556
+ t -= 1, t === 0 && (n?.(), n = void 0, et(r));
557
557
  });
558
558
  })));
559
559
  };
560
560
  }
561
- var ji = Le | He | ur;
562
- function Vi(e, t, r) {
563
- new Xi(e, t, r);
561
+ var Ki = $e | Be | hr;
562
+ function es(e, t, r) {
563
+ new ts(e, t, r);
564
564
  }
565
- class Xi {
565
+ class ts {
566
566
  /** @type {Boundary | null} */
567
567
  parent;
568
568
  is_pending = !1;
569
569
  /** @type {TemplateNode} */
570
570
  #e;
571
571
  /** @type {TemplateNode | null} */
572
- #t = A ? E : null;
572
+ #t = A ? x : null;
573
573
  /** @type {BoundaryProps} */
574
574
  #r;
575
575
  /** @type {((anchor: Node) => void)} */
@@ -601,7 +601,7 @@ class Xi {
601
601
  * @type {Source<number> | null}
602
602
  */
603
603
  #c = null;
604
- #y = Gi(() => (this.#c = nt(this.#f), () => {
604
+ #y = Ji(() => (this.#c = ft(this.#f), () => {
605
605
  this.#c = null;
606
606
  }));
607
607
  /**
@@ -611,16 +611,16 @@ class Xi {
611
611
  */
612
612
  constructor(t, r, n) {
613
613
  this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
614
- b.b, this.is_pending = !!this.#r.pending, this.#a = En(() => {
614
+ b.b, this.is_pending = !!this.#r.pending, this.#a = Nn(() => {
615
615
  if (b.b = this, A) {
616
616
  const s = this.#t;
617
- hr(), /** @type {Comment} */
618
- s.nodeType === rt && /** @type {Comment} */
619
- s.data === or ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
617
+ pr(), /** @type {Comment} */
618
+ s.nodeType === lt && /** @type {Comment} */
619
+ s.data === fr ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
620
620
  } else {
621
621
  var i = this.#b();
622
622
  try {
623
- this.#i = ne(() => n(i));
623
+ this.#i = ie(() => n(i));
624
624
  } catch (s) {
625
625
  this.error(s);
626
626
  }
@@ -629,20 +629,20 @@ class Xi {
629
629
  return () => {
630
630
  this.#l?.remove();
631
631
  };
632
- }, ji), A && (this.#e = E);
632
+ }, Ki), A && (this.#e = x);
633
633
  }
634
634
  #E() {
635
635
  try {
636
- this.#i = ne(() => this.#s(this.#e));
636
+ this.#i = ie(() => this.#s(this.#e));
637
637
  } catch (t) {
638
638
  this.error(t);
639
639
  }
640
640
  }
641
641
  #x() {
642
642
  const t = this.#r.pending;
643
- t && (this.#n = ne(() => t(this.#e)), q.enqueue(() => {
643
+ t && (this.#n = ie(() => t(this.#e)), q.enqueue(() => {
644
644
  var r = this.#b();
645
- this.#i = this.#_(() => (q.ensure(), ne(() => this.#s(r)))), this.#h > 0 ? this.#m() : (Ze(
645
+ this.#i = this.#_(() => (q.ensure(), ie(() => this.#s(r)))), this.#h > 0 ? this.#m() : (tt(
646
646
  /** @type {Effect} */
647
647
  this.#n,
648
648
  () => {
@@ -653,14 +653,14 @@ class Xi {
653
653
  }
654
654
  #b() {
655
655
  var t = this.#e;
656
- return this.is_pending && (this.#l = oe(), this.#e.before(this.#l), t = this.#l), t;
656
+ return this.is_pending && (this.#l = ue(), this.#e.before(this.#l), t = this.#l), t;
657
657
  }
658
658
  /**
659
659
  * Defer an effect inside a pending boundary until the boundary resolves
660
660
  * @param {Effect} effect
661
661
  */
662
662
  defer_effect(t) {
663
- sn(t, this.#p, this.#v);
663
+ cn(t, this.#p, this.#v);
664
664
  }
665
665
  /**
666
666
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -676,14 +676,14 @@ class Xi {
676
676
  * @param {() => Effect | null} fn
677
677
  */
678
678
  #_(t) {
679
- var r = b, n = _, i = V;
680
- K(this.#a), M(this.#a), Me(this.#a.ctx);
679
+ var r = b, n = _, i = W;
680
+ te(this.#a), $(this.#a), ke(this.#a.ctx);
681
681
  try {
682
682
  return t();
683
683
  } catch (s) {
684
- return rn(s), null;
684
+ return fn(s), null;
685
685
  } finally {
686
- K(r), M(n), Me(i);
686
+ te(r), $(n), ke(i);
687
687
  }
688
688
  }
689
689
  #m() {
@@ -694,7 +694,7 @@ class Xi {
694
694
  this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
695
695
  /** @type {TemplateNode} */
696
696
  this.#l
697
- ), An(this.#i, this.#u)), this.#n === null && (this.#n = ne(() => t(this.#e)));
697
+ ), Ln(this.#i, this.#u)), this.#n === null && (this.#n = ie(() => t(this.#e)));
698
698
  }
699
699
  /**
700
700
  * Updates the pending count associated with the currently visible pending snippet,
@@ -709,10 +709,10 @@ class Xi {
709
709
  if (this.#h += t, this.#h === 0) {
710
710
  this.is_pending = !1;
711
711
  for (const r of this.#p)
712
- B(r, R), ae(r);
712
+ B(r, L), oe(r);
713
713
  for (const r of this.#v)
714
- B(r, fe), ae(r);
715
- this.#p.clear(), this.#v.clear(), this.#n && Ze(this.#n, () => {
714
+ B(r, he), oe(r);
715
+ this.#p.clear(), this.#v.clear(), this.#n && tt(this.#n, () => {
716
716
  this.#n = null;
717
717
  }), this.#u && (this.#e.before(this.#u), this.#u = null);
718
718
  }
@@ -724,7 +724,7 @@ class Xi {
724
724
  * @param {1 | -1} d
725
725
  */
726
726
  update_pending_count(t) {
727
- this.#g(t), this.#f += t, this.#c && gt(this.#c, this.#f);
727
+ this.#g(t), this.#f += t, this.#c && Ht(this.#c, this.#f);
728
728
  }
729
729
  get_effect_pending() {
730
730
  return this.#y(), g(
@@ -738,33 +738,33 @@ class Xi {
738
738
  let n = this.#r.failed;
739
739
  if (this.#d || !r && !n)
740
740
  throw t;
741
- this.#i && ($(this.#i), this.#i = null), this.#n && ($(this.#n), this.#n = null), this.#o && ($(this.#o), this.#o = null), A && (Z(
741
+ this.#i && (k(this.#i), this.#i = null), this.#n && (k(this.#n), this.#n = null), this.#o && (k(this.#o), this.#o = null), A && (Y(
742
742
  /** @type {TemplateNode} */
743
743
  this.#t
744
- ), Li(), Z(Zr()));
744
+ ), Xi(), Y(rn()));
745
745
  var i = !1, s = !1;
746
746
  const a = () => {
747
747
  if (i) {
748
- Ri();
748
+ Vi();
749
749
  return;
750
750
  }
751
- i = !0, s && Ii(), q.ensure(), this.#f = 0, this.#o !== null && Ze(this.#o, () => {
751
+ i = !0, s && ji(), q.ensure(), this.#f = 0, this.#o !== null && tt(this.#o, () => {
752
752
  this.#o = null;
753
- }), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ne(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
753
+ }), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ie(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
754
754
  };
755
755
  var o = _;
756
756
  try {
757
- M(null), s = !0, r?.(t, a), s = !1;
757
+ $(null), s = !0, r?.(t, a), s = !1;
758
758
  } catch (u) {
759
- $e(u, this.#a && this.#a.parent);
759
+ De(u, this.#a && this.#a.parent);
760
760
  } finally {
761
- M(o);
761
+ $(o);
762
762
  }
763
- n && cr(() => {
763
+ n && vr(() => {
764
764
  this.#o = this.#_(() => {
765
765
  q.ensure(), this.#d = !0;
766
766
  try {
767
- return ne(() => {
767
+ return ie(() => {
768
768
  n(
769
769
  this.#e,
770
770
  () => t,
@@ -772,7 +772,7 @@ class Xi {
772
772
  );
773
773
  });
774
774
  } catch (u) {
775
- return $e(
775
+ return De(
776
776
  u,
777
777
  /** @type {Effect} */
778
778
  this.#a.parent
@@ -784,27 +784,27 @@ class Xi {
784
784
  });
785
785
  }
786
786
  }
787
- function Wi(e, t, r, n) {
788
- const i = pr;
787
+ function rs(e, t, r, n) {
788
+ const i = mr;
789
789
  if (r.length === 0 && e.length === 0) {
790
790
  n(t.map(i));
791
791
  return;
792
792
  }
793
- var s = S, a = (
793
+ var s = H, a = (
794
794
  /** @type {Effect} */
795
795
  b
796
- ), o = qi();
796
+ ), o = ns();
797
797
  function u() {
798
- Promise.all(r.map((l) => /* @__PURE__ */ zi(l))).then((l) => {
798
+ Promise.all(r.map((l) => /* @__PURE__ */ is(l))).then((l) => {
799
799
  o();
800
800
  try {
801
801
  n([...t.map(i), ...l]);
802
802
  } catch (f) {
803
- a.f & ie || $e(f, a);
803
+ a.f & se || De(f, a);
804
804
  }
805
- s?.deactivate(), bt();
805
+ s?.deactivate(), St();
806
806
  }).catch((l) => {
807
- $e(l, a);
807
+ De(l, a);
808
808
  });
809
809
  }
810
810
  e.length > 0 ? Promise.all(e).then(() => {
@@ -812,37 +812,37 @@ function Wi(e, t, r, n) {
812
812
  try {
813
813
  return u();
814
814
  } finally {
815
- s?.deactivate(), bt();
815
+ s?.deactivate(), St();
816
816
  }
817
817
  }) : u();
818
818
  }
819
- function qi() {
820
- var e = b, t = _, r = V, n = S;
819
+ function ns() {
820
+ var e = b, t = _, r = W, n = H;
821
821
  return function(s = !0) {
822
- K(e), M(t), Me(r), s && n?.activate();
822
+ te(e), $(t), ke(r), s && n?.activate();
823
823
  };
824
824
  }
825
- function bt() {
826
- K(null), M(null), Me(null);
825
+ function St() {
826
+ te(null), $(null), ke(null);
827
827
  }
828
828
  // @__NO_SIDE_EFFECTS__
829
- function pr(e) {
830
- var t = O | R, r = _ !== null && _.f & O ? (
829
+ function mr(e) {
830
+ var t = C | L, r = _ !== null && _.f & C ? (
831
831
  /** @type {Derived} */
832
832
  _
833
833
  ) : null;
834
- return b !== null && (b.f |= He), {
835
- ctx: V,
834
+ return b !== null && (b.f |= Be), {
835
+ ctx: W,
836
836
  deps: null,
837
837
  effects: null,
838
- equals: Yr,
838
+ equals: nn,
839
839
  f: t,
840
840
  fn: e,
841
841
  reactions: null,
842
842
  rv: 0,
843
843
  v: (
844
844
  /** @type {V} */
845
- N
845
+ O
846
846
  ),
847
847
  wv: 0,
848
848
  parent: r ?? b,
@@ -850,12 +850,12 @@ function pr(e) {
850
850
  };
851
851
  }
852
852
  // @__NO_SIDE_EFFECTS__
853
- function zi(e, t, r) {
853
+ function is(e, t, r) {
854
854
  let n = (
855
855
  /** @type {Effect | null} */
856
856
  b
857
857
  );
858
- n === null && Ti();
858
+ n === null && Ri();
859
859
  var i = (
860
860
  /** @type {Boundary} */
861
861
  n.b
@@ -863,44 +863,44 @@ function zi(e, t, r) {
863
863
  /** @type {Promise<V>} */
864
864
  /** @type {unknown} */
865
865
  void 0
866
- ), a = nt(
866
+ ), a = ft(
867
867
  /** @type {V} */
868
- N
868
+ O
869
869
  ), o = !_, u = /* @__PURE__ */ new Map();
870
- return as(() => {
871
- var l = Wr();
870
+ return vs(() => {
871
+ var l = Jr();
872
872
  s = l.promise;
873
873
  try {
874
874
  Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
875
- f === S && f.committed && f.deactivate(), bt();
875
+ f === H && f.committed && f.deactivate(), St();
876
876
  });
877
877
  } catch (d) {
878
- l.reject(d), bt();
878
+ l.reject(d), St();
879
879
  }
880
880
  var f = (
881
881
  /** @type {Batch} */
882
- S
882
+ H
883
883
  );
884
884
  if (o) {
885
885
  var c = i.is_rendered();
886
- i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Pe), u.delete(f), u.set(f, l);
886
+ i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Ie), u.delete(f), u.set(f, l);
887
887
  }
888
888
  const h = (d, p = void 0) => {
889
889
  if (f.activate(), p)
890
- p !== Pe && (a.f |= pe, gt(a, p));
890
+ p !== Ie && (a.f |= ve, Ht(a, p));
891
891
  else {
892
- a.f & pe && (a.f ^= pe), gt(a, d);
893
- for (const [y, H] of u) {
894
- if (u.delete(y), y === f) break;
895
- H.reject(Pe);
892
+ a.f & ve && (a.f ^= ve), Ht(a, d);
893
+ for (const [E, T] of u) {
894
+ if (u.delete(E), E === f) break;
895
+ T.reject(Ie);
896
896
  }
897
897
  }
898
898
  o && (i.update_pending_count(-1), f.decrement(c));
899
899
  };
900
900
  l.promise.then(h, (d) => h(null, d || "unknown"));
901
- }), bn(() => {
901
+ }), Hn(() => {
902
902
  for (const l of u.values())
903
- l.reject(Pe);
903
+ l.reject(Ie);
904
904
  }), new Promise((l) => {
905
905
  function f(c) {
906
906
  function h() {
@@ -912,25 +912,25 @@ function zi(e, t, r) {
912
912
  });
913
913
  }
914
914
  // @__NO_SIDE_EFFECTS__
915
- function ut(e) {
916
- const t = /* @__PURE__ */ pr(e);
917
- return Bn(t), t;
915
+ function vt(e) {
916
+ const t = /* @__PURE__ */ mr(e);
917
+ return Mn(t), t;
918
918
  }
919
- function ln(e) {
919
+ function _n(e) {
920
920
  var t = e.effects;
921
921
  if (t !== null) {
922
922
  e.effects = null;
923
923
  for (var r = 0; r < t.length; r += 1)
924
- $(
924
+ k(
925
925
  /** @type {Effect} */
926
926
  t[r]
927
927
  );
928
928
  }
929
929
  }
930
- function Zi(e) {
930
+ function ss(e) {
931
931
  for (var t = e.parent; t !== null; ) {
932
- if (!(t.f & O))
933
- return t.f & ie ? null : (
932
+ if (!(t.f & C))
933
+ return t.f & se ? null : (
934
934
  /** @type {Effect} */
935
935
  t
936
936
  );
@@ -938,123 +938,123 @@ function Zi(e) {
938
938
  }
939
939
  return null;
940
940
  }
941
- function vr(e) {
941
+ function br(e) {
942
942
  var t, r = b;
943
- K(Zi(e));
943
+ te(ss(e));
944
944
  try {
945
- e.f &= ~Te, ln(e), t = Cn(e);
945
+ e.f &= ~He, _n(e), t = Un(e);
946
946
  } finally {
947
- K(r);
947
+ te(r);
948
948
  }
949
949
  return t;
950
950
  }
951
- function fn(e) {
952
- var t = vr(e);
953
- if (!e.equals(t) && (e.wv = On(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
954
- B(e, P);
951
+ function mn(e) {
952
+ var t = br(e);
953
+ if (!e.equals(t) && (e.wv = kn(), (!H?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
954
+ B(e, I);
955
955
  return;
956
956
  }
957
- _e || (W !== null ? (_r() || S?.is_fork) && W.set(e, t) : dr(e));
957
+ me || (z !== null ? (gr() || H?.is_fork) && z.set(e, t) : _r(e));
958
958
  }
959
- let Wt = /* @__PURE__ */ new Set();
960
- const ve = /* @__PURE__ */ new Map();
961
- let hn = !1;
962
- function nt(e, t) {
959
+ let Yt = /* @__PURE__ */ new Set();
960
+ const _e = /* @__PURE__ */ new Map();
961
+ let bn = !1;
962
+ function ft(e, t) {
963
963
  var r = {
964
964
  f: 0,
965
965
  // TODO ideally we could skip this altogether, but it causes type errors
966
966
  v: e,
967
967
  reactions: null,
968
- equals: Yr,
968
+ equals: nn,
969
969
  rv: 0,
970
970
  wv: 0
971
971
  };
972
972
  return r;
973
973
  }
974
974
  // @__NO_SIDE_EFFECTS__
975
- function X(e, t) {
976
- const r = nt(e);
977
- return Bn(r), r;
975
+ function j(e, t) {
976
+ const r = ft(e);
977
+ return Mn(r), r;
978
978
  }
979
979
  // @__NO_SIDE_EFFECTS__
980
- function cn(e, t = !1, r = !0) {
981
- const n = nt(e);
982
- return t || (n.equals = $i), n;
980
+ function gn(e, t = !1, r = !0) {
981
+ const n = ft(e);
982
+ return t || (n.equals = zi), n;
983
983
  }
984
- function I(e, t, r = !1) {
984
+ function P(e, t, r = !1) {
985
985
  _ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
986
986
  // to ensure we error if state is set inside an inspect effect
987
- (!z || _.f & xr) && en() && _.f & (O | ue | lr | xr) && !se?.includes(e) && Ci();
988
- let n = r ? We(t) : t;
989
- return gt(e, n);
987
+ (!Z || _.f & Tr) && un() && _.f & (C | le | cr | Tr) && !ae?.includes(e) && Gi();
988
+ let n = r ? Qe(t) : t;
989
+ return Ht(e, n);
990
990
  }
991
- function gt(e, t) {
991
+ function Ht(e, t) {
992
992
  if (!e.equals(t)) {
993
993
  var r = e.v;
994
- _e ? ve.set(e, t) : ve.set(e, r), e.v = t;
994
+ me ? _e.set(e, t) : _e.set(e, r), e.v = t;
995
995
  var n = q.ensure();
996
- if (n.capture(e, r), e.f & O) {
996
+ if (n.capture(e, r), e.f & C) {
997
997
  const i = (
998
998
  /** @type {Derived} */
999
999
  e
1000
1000
  );
1001
- e.f & R && vr(i), dr(i);
1001
+ e.f & L && br(i), _r(i);
1002
1002
  }
1003
- e.wv = On(), dn(e, R), b !== null && b.f & P && !(b.f & (le | me)) && (U === null ? hs([e]) : U.push(e)), !n.is_fork && Wt.size > 0 && !hn && Yi();
1003
+ e.wv = kn(), yn(e, L), b !== null && b.f & I && !(b.f & (fe | be)) && (G === null ? ys([e]) : G.push(e)), !n.is_fork && Yt.size > 0 && !bn && as();
1004
1004
  }
1005
1005
  return t;
1006
1006
  }
1007
- function Yi() {
1008
- hn = !1;
1009
- var e = xe;
1010
- yt(!0);
1011
- const t = Array.from(Wt);
1007
+ function as() {
1008
+ bn = !1;
1009
+ var e = Te;
1010
+ At(!0);
1011
+ const t = Array.from(Yt);
1012
1012
  try {
1013
1013
  for (const r of t)
1014
- r.f & P && B(r, fe), it(r) && Je(r);
1014
+ r.f & I && B(r, he), ht(r) && it(r);
1015
1015
  } finally {
1016
- yt(e);
1016
+ At(e);
1017
1017
  }
1018
- Wt.clear();
1018
+ Yt.clear();
1019
1019
  }
1020
- function ze(e) {
1021
- I(e, e.v + 1);
1020
+ function et(e) {
1021
+ P(e, e.v + 1);
1022
1022
  }
1023
- function dn(e, t) {
1023
+ function yn(e, t) {
1024
1024
  var r = e.reactions;
1025
1025
  if (r !== null)
1026
1026
  for (var n = r.length, i = 0; i < n; i++) {
1027
- var s = r[i], a = s.f, o = (a & R) === 0;
1028
- if (o && B(s, t), a & O) {
1027
+ var s = r[i], a = s.f, o = (a & L) === 0;
1028
+ if (o && B(s, t), a & C) {
1029
1029
  var u = (
1030
1030
  /** @type {Derived} */
1031
1031
  s
1032
1032
  );
1033
- W?.delete(u), a & Te || (a & j && (s.f |= Te), dn(u, fe));
1034
- } else o && (a & ue && re !== null && re.add(
1033
+ z?.delete(u), a & He || (a & X && (s.f |= He), yn(u, he));
1034
+ } else o && (a & le && ne !== null && ne.add(
1035
1035
  /** @type {Effect} */
1036
1036
  s
1037
- ), ae(
1037
+ ), oe(
1038
1038
  /** @type {Effect} */
1039
1039
  s
1040
1040
  ));
1041
1041
  }
1042
1042
  }
1043
- function We(e) {
1044
- if (typeof e != "object" || e === null || Lt in e)
1043
+ function Qe(e) {
1044
+ if (typeof e != "object" || e === null || Ut in e)
1045
1045
  return e;
1046
- const t = Ei(e);
1047
- if (t !== gi && t !== yi)
1046
+ const t = Ci(e);
1047
+ if (t !== Oi && t !== Pi)
1048
1048
  return e;
1049
- var r = /* @__PURE__ */ new Map(), n = _i(e), i = /* @__PURE__ */ X(0), s = we, a = (o) => {
1050
- if (we === s)
1049
+ var r = /* @__PURE__ */ new Map(), n = Ai(e), i = /* @__PURE__ */ j(0), s = Se, a = (o) => {
1050
+ if (Se === s)
1051
1051
  return o();
1052
- var u = _, l = we;
1053
- M(null), Ar(s);
1052
+ var u = _, l = Se;
1053
+ $(null), Or(s);
1054
1054
  var f = o();
1055
- return M(u), Ar(l), f;
1055
+ return $(u), Or(l), f;
1056
1056
  };
1057
- return n && r.set("length", /* @__PURE__ */ X(
1057
+ return n && r.set("length", /* @__PURE__ */ j(
1058
1058
  /** @type {any[]} */
1059
1059
  e.length
1060
1060
  )), new Proxy(
@@ -1062,34 +1062,34 @@ function We(e) {
1062
1062
  e,
1063
1063
  {
1064
1064
  defineProperty(o, u, l) {
1065
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Oi();
1065
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Ui();
1066
1066
  var f = r.get(u);
1067
1067
  return f === void 0 ? f = a(() => {
1068
- var c = /* @__PURE__ */ X(l.value);
1068
+ var c = /* @__PURE__ */ j(l.value);
1069
1069
  return r.set(u, c), c;
1070
- }) : I(f, l.value, !0), !0;
1070
+ }) : P(f, l.value, !0), !0;
1071
1071
  },
1072
1072
  deleteProperty(o, u) {
1073
1073
  var l = r.get(u);
1074
1074
  if (l === void 0) {
1075
1075
  if (u in o) {
1076
- const f = a(() => /* @__PURE__ */ X(N));
1077
- r.set(u, f), ze(i);
1076
+ const f = a(() => /* @__PURE__ */ j(O));
1077
+ r.set(u, f), et(i);
1078
1078
  }
1079
1079
  } else
1080
- I(l, N), ze(i);
1080
+ P(l, O), et(i);
1081
1081
  return !0;
1082
1082
  },
1083
1083
  get(o, u, l) {
1084
- if (u === Lt)
1084
+ if (u === Ut)
1085
1085
  return e;
1086
1086
  var f = r.get(u), c = u in o;
1087
- if (f === void 0 && (!c || Ie(o, u)?.writable) && (f = a(() => {
1088
- var d = We(c ? o[u] : N), p = /* @__PURE__ */ X(d);
1087
+ if (f === void 0 && (!c || Le(o, u)?.writable) && (f = a(() => {
1088
+ var d = Qe(c ? o[u] : O), p = /* @__PURE__ */ j(d);
1089
1089
  return p;
1090
1090
  }), r.set(u, f)), f !== void 0) {
1091
1091
  var h = g(f);
1092
- return h === N ? void 0 : h;
1092
+ return h === O ? void 0 : h;
1093
1093
  }
1094
1094
  return Reflect.get(o, u, l);
1095
1095
  },
@@ -1100,7 +1100,7 @@ function We(e) {
1100
1100
  f && (l.value = g(f));
1101
1101
  } else if (l === void 0) {
1102
1102
  var c = r.get(u), h = c?.v;
1103
- if (c !== void 0 && h !== N)
1103
+ if (c !== void 0 && h !== O)
1104
1104
  return {
1105
1105
  enumerable: !0,
1106
1106
  configurable: !0,
@@ -1111,16 +1111,16 @@ function We(e) {
1111
1111
  return l;
1112
1112
  },
1113
1113
  has(o, u) {
1114
- if (u === Lt)
1114
+ if (u === Ut)
1115
1115
  return !0;
1116
- var l = r.get(u), f = l !== void 0 && l.v !== N || Reflect.has(o, u);
1117
- if (l !== void 0 || b !== null && (!f || Ie(o, u)?.writable)) {
1116
+ var l = r.get(u), f = l !== void 0 && l.v !== O || Reflect.has(o, u);
1117
+ if (l !== void 0 || b !== null && (!f || Le(o, u)?.writable)) {
1118
1118
  l === void 0 && (l = a(() => {
1119
- var h = f ? We(o[u]) : N, d = /* @__PURE__ */ X(h);
1119
+ var h = f ? Qe(o[u]) : O, d = /* @__PURE__ */ j(h);
1120
1120
  return d;
1121
1121
  }), r.set(u, l));
1122
1122
  var c = g(l);
1123
- if (c === N)
1123
+ if (c === O)
1124
1124
  return !1;
1125
1125
  }
1126
1126
  return f;
@@ -1131,25 +1131,25 @@ function We(e) {
1131
1131
  for (var d = l; d < /** @type {Source<number>} */
1132
1132
  c.v; d += 1) {
1133
1133
  var p = r.get(d + "");
1134
- p !== void 0 ? I(p, N) : d in o && (p = a(() => /* @__PURE__ */ X(N)), r.set(d + "", p));
1134
+ p !== void 0 ? P(p, O) : d in o && (p = a(() => /* @__PURE__ */ j(O)), r.set(d + "", p));
1135
1135
  }
1136
1136
  if (c === void 0)
1137
- (!h || Ie(o, u)?.writable) && (c = a(() => /* @__PURE__ */ X(void 0)), I(c, We(l)), r.set(u, c));
1137
+ (!h || Le(o, u)?.writable) && (c = a(() => /* @__PURE__ */ j(void 0)), P(c, Qe(l)), r.set(u, c));
1138
1138
  else {
1139
- h = c.v !== N;
1140
- var y = a(() => We(l));
1141
- I(c, y);
1139
+ h = c.v !== O;
1140
+ var E = a(() => Qe(l));
1141
+ P(c, E);
1142
1142
  }
1143
- var H = Reflect.getOwnPropertyDescriptor(o, u);
1144
- if (H?.set && H.set.call(f, l), !h) {
1143
+ var T = Reflect.getOwnPropertyDescriptor(o, u);
1144
+ if (T?.set && T.set.call(f, l), !h) {
1145
1145
  if (n && typeof u == "string") {
1146
- var Y = (
1146
+ var J = (
1147
1147
  /** @type {Source<number>} */
1148
1148
  r.get("length")
1149
- ), k = Number(u);
1150
- Number.isInteger(k) && k >= Y.v && I(Y, k + 1);
1149
+ ), D = Number(u);
1150
+ Number.isInteger(D) && D >= J.v && P(J, D + 1);
1151
1151
  }
1152
- ze(i);
1152
+ et(i);
1153
1153
  }
1154
1154
  return !0;
1155
1155
  },
@@ -1157,109 +1157,109 @@ function We(e) {
1157
1157
  g(i);
1158
1158
  var u = Reflect.ownKeys(o).filter((c) => {
1159
1159
  var h = r.get(c);
1160
- return h === void 0 || h.v !== N;
1160
+ return h === void 0 || h.v !== O;
1161
1161
  });
1162
1162
  for (var [l, f] of r)
1163
- f.v !== N && !(l in o) && u.push(l);
1163
+ f.v !== O && !(l in o) && u.push(l);
1164
1164
  return u;
1165
1165
  },
1166
1166
  setPrototypeOf() {
1167
- Pi();
1167
+ Fi();
1168
1168
  }
1169
1169
  }
1170
1170
  );
1171
1171
  }
1172
- var Tr, pn, vn, _n;
1173
- function qt() {
1174
- if (Tr === void 0) {
1175
- Tr = window, pn = /Firefox/.test(navigator.userAgent);
1172
+ var Hr, En, xn, wn;
1173
+ function Qt() {
1174
+ if (Hr === void 0) {
1175
+ Hr = window, En = /Firefox/.test(navigator.userAgent);
1176
1176
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1177
- vn = Ie(t, "firstChild").get, _n = Ie(t, "nextSibling").get, Er(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Er(r) && (r.__t = void 0);
1177
+ xn = Le(t, "firstChild").get, wn = Le(t, "nextSibling").get, wr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), wr(r) && (r.__t = void 0);
1178
1178
  }
1179
1179
  }
1180
- function oe(e = "") {
1180
+ function ue(e = "") {
1181
1181
  return document.createTextNode(e);
1182
1182
  }
1183
1183
  // @__NO_SIDE_EFFECTS__
1184
- function Qe(e) {
1184
+ function nt(e) {
1185
1185
  return (
1186
1186
  /** @type {TemplateNode | null} */
1187
- vn.call(e)
1187
+ xn.call(e)
1188
1188
  );
1189
1189
  }
1190
1190
  // @__NO_SIDE_EFFECTS__
1191
- function he(e) {
1191
+ function ce(e) {
1192
1192
  return (
1193
1193
  /** @type {TemplateNode | null} */
1194
- _n.call(e)
1194
+ wn.call(e)
1195
1195
  );
1196
1196
  }
1197
- function lt(e, t) {
1197
+ function _t(e, t) {
1198
1198
  if (!A)
1199
- return /* @__PURE__ */ Qe(e);
1200
- var r = /* @__PURE__ */ Qe(E);
1199
+ return /* @__PURE__ */ nt(e);
1200
+ var r = /* @__PURE__ */ nt(x);
1201
1201
  if (r === null)
1202
- r = E.appendChild(oe());
1203
- else if (t && r.nodeType !== fr) {
1204
- var n = oe();
1205
- return r?.before(n), Z(n), n;
1202
+ r = x.appendChild(ue());
1203
+ else if (t && r.nodeType !== dr) {
1204
+ var n = ue();
1205
+ return r?.before(n), Y(n), n;
1206
1206
  }
1207
- return Z(r), r;
1207
+ return Y(r), r;
1208
1208
  }
1209
- function Qi(e, t = !1) {
1209
+ function Ar(e, t = !1) {
1210
1210
  if (!A) {
1211
- var r = /* @__PURE__ */ Qe(e);
1212
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
1211
+ var r = /* @__PURE__ */ nt(e);
1212
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ce(r) : r;
1213
1213
  }
1214
- if (t && E?.nodeType !== fr) {
1215
- var n = oe();
1216
- return E?.before(n), Z(n), n;
1214
+ if (t && x?.nodeType !== dr) {
1215
+ var n = ue();
1216
+ return x?.before(n), Y(n), n;
1217
1217
  }
1218
- return E;
1218
+ return x;
1219
1219
  }
1220
- function Ji(e, t = 1, r = !1) {
1221
- let n = A ? E : e;
1220
+ function os(e, t = 1, r = !1) {
1221
+ let n = A ? x : e;
1222
1222
  for (var i; t--; )
1223
1223
  i = n, n = /** @type {TemplateNode} */
1224
- /* @__PURE__ */ he(n);
1224
+ /* @__PURE__ */ ce(n);
1225
1225
  if (!A)
1226
1226
  return n;
1227
- if (r && n?.nodeType !== fr) {
1228
- var s = oe();
1229
- return n === null ? i?.after(s) : n.before(s), Z(s), s;
1227
+ if (r && n?.nodeType !== dr) {
1228
+ var s = ue();
1229
+ return n === null ? i?.after(s) : n.before(s), Y(s), s;
1230
1230
  }
1231
- return Z(n), n;
1231
+ return Y(n), n;
1232
1232
  }
1233
- function Ki(e) {
1233
+ function us(e) {
1234
1234
  e.textContent = "";
1235
1235
  }
1236
- function es() {
1236
+ function ls() {
1237
1237
  return !1;
1238
1238
  }
1239
- function mn(e) {
1239
+ function Tn(e) {
1240
1240
  var t = _, r = b;
1241
- M(null), K(null);
1241
+ $(null), te(null);
1242
1242
  try {
1243
1243
  return e();
1244
1244
  } finally {
1245
- M(t), K(r);
1245
+ $(t), te(r);
1246
1246
  }
1247
1247
  }
1248
- function ts(e) {
1249
- b === null && (_ === null && Ai(), Hi()), _e && Si();
1248
+ function Sn(e) {
1249
+ b === null && (_ === null && $i(), Mi()), me && Li();
1250
1250
  }
1251
- function rs(e, t) {
1251
+ function fs(e, t) {
1252
1252
  var r = t.last;
1253
1253
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1254
1254
  }
1255
- function ee(e, t, r) {
1255
+ function Q(e, t, r) {
1256
1256
  var n = b;
1257
- n !== null && n.f & J && (e |= J);
1257
+ n !== null && n.f & ee && (e |= ee);
1258
1258
  var i = {
1259
- ctx: V,
1259
+ ctx: W,
1260
1260
  deps: null,
1261
1261
  nodes: null,
1262
- f: e | R | j,
1262
+ f: e | L | X,
1263
1263
  first: null,
1264
1264
  fn: t,
1265
1265
  last: null,
@@ -1273,14 +1273,14 @@ function ee(e, t, r) {
1273
1273
  };
1274
1274
  if (r)
1275
1275
  try {
1276
- Je(i), i.f |= Ht;
1276
+ it(i), i.f |= Ct;
1277
1277
  } catch (o) {
1278
- throw $(i), o;
1278
+ throw k(i), o;
1279
1279
  }
1280
- else t !== null && ae(i);
1280
+ else t !== null && oe(i);
1281
1281
  var s = i;
1282
1282
  if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1283
- !(s.f & He) && (s = s.first, e & ue && e & Le && s !== null && (s.f |= Le)), s !== null && (s.parent = n, n !== null && rs(s, n), _ !== null && _.f & O && !(e & me))) {
1283
+ !(s.f & Be) && (s = s.first, e & le && e & $e && s !== null && (s.f |= $e)), s !== null && (s.parent = n, n !== null && fs(s, n), _ !== null && _.f & C && !(e & be))) {
1284
1284
  var a = (
1285
1285
  /** @type {Derived} */
1286
1286
  _
@@ -1289,127 +1289,130 @@ function ee(e, t, r) {
1289
1289
  }
1290
1290
  return i;
1291
1291
  }
1292
- function _r() {
1293
- return _ !== null && !z;
1292
+ function gr() {
1293
+ return _ !== null && !Z;
1294
1294
  }
1295
- function bn(e) {
1296
- const t = ee(St, null, !1);
1297
- return B(t, P), t.teardown = e, t;
1295
+ function Hn(e) {
1296
+ const t = Q(ut, null, !1);
1297
+ return B(t, I), t.teardown = e, t;
1298
1298
  }
1299
- function Sr(e) {
1300
- ts();
1299
+ function Br(e) {
1300
+ Sn();
1301
1301
  var t = (
1302
1302
  /** @type {Effect} */
1303
1303
  b.f
1304
- ), r = !_ && (t & le) !== 0 && (t & Ht) === 0;
1304
+ ), r = !_ && (t & fe) !== 0 && (t & Ct) === 0;
1305
1305
  if (r) {
1306
1306
  var n = (
1307
1307
  /** @type {ComponentContext} */
1308
- V
1308
+ W
1309
1309
  );
1310
1310
  (n.e ??= []).push(e);
1311
1311
  } else
1312
- return gn(e);
1312
+ return An(e);
1313
+ }
1314
+ function An(e) {
1315
+ return Q(Tt | tn, e, !1);
1313
1316
  }
1314
- function gn(e) {
1315
- return ee(mt | xi, e, !1);
1317
+ function hs(e) {
1318
+ return Sn(), Q(ut | tn, e, !0);
1316
1319
  }
1317
- function ns(e) {
1320
+ function cs(e) {
1318
1321
  q.ensure();
1319
- const t = ee(me | He, e, !0);
1322
+ const t = Q(be | Be, e, !0);
1320
1323
  return () => {
1321
- $(t);
1324
+ k(t);
1322
1325
  };
1323
1326
  }
1324
- function is(e) {
1327
+ function ds(e) {
1325
1328
  q.ensure();
1326
- const t = ee(me | He, e, !0);
1329
+ const t = Q(be | Be, e, !0);
1327
1330
  return (r = {}) => new Promise((n) => {
1328
- r.outro ? Ze(t, () => {
1329
- $(t), n(void 0);
1330
- }) : ($(t), n(void 0));
1331
+ r.outro ? tt(t, () => {
1332
+ k(t), n(void 0);
1333
+ }) : (k(t), n(void 0));
1331
1334
  });
1332
1335
  }
1333
- function ss(e) {
1334
- return ee(mt, e, !1);
1336
+ function ps(e) {
1337
+ return Q(Tt, e, !1);
1335
1338
  }
1336
- function as(e) {
1337
- return ee(lr | He, e, !0);
1339
+ function vs(e) {
1340
+ return Q(cr | Be, e, !0);
1338
1341
  }
1339
- function yn(e, t = 0) {
1340
- return ee(St | t, e, !0);
1342
+ function Bn(e, t = 0) {
1343
+ return Q(ut | t, e, !0);
1341
1344
  }
1342
- function os(e, t = [], r = [], n = []) {
1343
- Wi(n, t, r, (i) => {
1344
- ee(St, () => e(...i.map(g)), !0);
1345
+ function _s(e, t = [], r = [], n = []) {
1346
+ rs(n, t, r, (i) => {
1347
+ Q(ut, () => e(...i.map(g)), !0);
1345
1348
  });
1346
1349
  }
1347
- function En(e, t = 0) {
1348
- var r = ee(ue | t, e, !0);
1350
+ function Nn(e, t = 0) {
1351
+ var r = Q(le | t, e, !0);
1349
1352
  return r;
1350
1353
  }
1351
- function ne(e) {
1352
- return ee(le | He, e, !0);
1354
+ function ie(e) {
1355
+ return Q(fe | Be, e, !0);
1353
1356
  }
1354
- function xn(e) {
1357
+ function On(e) {
1355
1358
  var t = e.teardown;
1356
1359
  if (t !== null) {
1357
- const r = _e, n = _;
1358
- Hr(!0), M(null);
1360
+ const r = me, n = _;
1361
+ Nr(!0), $(null);
1359
1362
  try {
1360
1363
  t.call(null);
1361
1364
  } finally {
1362
- Hr(r), M(n);
1365
+ Nr(r), $(n);
1363
1366
  }
1364
1367
  }
1365
1368
  }
1366
- function wn(e, t = !1) {
1369
+ function Pn(e, t = !1) {
1367
1370
  var r = e.first;
1368
1371
  for (e.first = e.last = null; r !== null; ) {
1369
1372
  const i = r.ac;
1370
- i !== null && mn(() => {
1371
- i.abort(Pe);
1373
+ i !== null && Tn(() => {
1374
+ i.abort(Ie);
1372
1375
  });
1373
1376
  var n = r.next;
1374
- r.f & me ? r.parent = null : $(r, t), r = n;
1377
+ r.f & be ? r.parent = null : k(r, t), r = n;
1375
1378
  }
1376
1379
  }
1377
- function us(e) {
1380
+ function ms(e) {
1378
1381
  for (var t = e.first; t !== null; ) {
1379
1382
  var r = t.next;
1380
- t.f & le || $(t), t = r;
1383
+ t.f & fe || k(t), t = r;
1381
1384
  }
1382
1385
  }
1383
- function $(e, t = !0) {
1386
+ function k(e, t = !0) {
1384
1387
  var r = !1;
1385
- (t || e.f & zr) && e.nodes !== null && e.nodes.end !== null && (ls(
1388
+ (t || e.f & en) && e.nodes !== null && e.nodes.end !== null && (bs(
1386
1389
  e.nodes.start,
1387
1390
  /** @type {TemplateNode} */
1388
1391
  e.nodes.end
1389
- ), r = !0), wn(e, t && !r), Et(e, 0), B(e, ie);
1392
+ ), r = !0), Pn(e, t && !r), Bt(e, 0), B(e, se);
1390
1393
  var n = e.nodes && e.nodes.t;
1391
1394
  if (n !== null)
1392
1395
  for (const s of n)
1393
1396
  s.stop();
1394
- xn(e);
1397
+ On(e);
1395
1398
  var i = e.parent;
1396
- i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1399
+ i !== null && i.first !== null && Cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1397
1400
  }
1398
- function ls(e, t) {
1401
+ function bs(e, t) {
1399
1402
  for (; e !== null; ) {
1400
- var r = e === t ? null : /* @__PURE__ */ he(e);
1403
+ var r = e === t ? null : /* @__PURE__ */ ce(e);
1401
1404
  e.remove(), e = r;
1402
1405
  }
1403
1406
  }
1404
- function Tn(e) {
1407
+ function Cn(e) {
1405
1408
  var t = e.parent, r = e.prev, n = e.next;
1406
1409
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1407
1410
  }
1408
- function Ze(e, t, r = !0) {
1411
+ function tt(e, t, r = !0) {
1409
1412
  var n = [];
1410
- Sn(e, n, !0);
1413
+ In(e, n, !0);
1411
1414
  var i = () => {
1412
- r && $(e), t && t();
1415
+ r && k(e), t && t();
1413
1416
  }, s = n.length;
1414
1417
  if (s > 0) {
1415
1418
  var a = () => --s || i();
@@ -1418,31 +1421,31 @@ function Ze(e, t, r = !0) {
1418
1421
  } else
1419
1422
  i();
1420
1423
  }
1421
- function Sn(e, t, r) {
1422
- if (!(e.f & J)) {
1423
- e.f ^= J;
1424
+ function In(e, t, r) {
1425
+ if (!(e.f & ee)) {
1426
+ e.f ^= ee;
1424
1427
  var n = e.nodes && e.nodes.t;
1425
1428
  if (n !== null)
1426
1429
  for (const o of n)
1427
1430
  (o.is_global || r) && t.push(o);
1428
1431
  for (var i = e.first; i !== null; ) {
1429
- var s = i.next, a = (i.f & Le) !== 0 || // If this is a branch effect without a block effect parent,
1432
+ var s = i.next, a = (i.f & $e) !== 0 || // If this is a branch effect without a block effect parent,
1430
1433
  // it means the parent block effect was pruned. In that case,
1431
1434
  // transparency information was transferred to the branch effect.
1432
- (i.f & le) !== 0 && (e.f & ue) !== 0;
1433
- Sn(i, t, a ? r : !1), i = s;
1435
+ (i.f & fe) !== 0 && (e.f & le) !== 0;
1436
+ In(i, t, a ? r : !1), i = s;
1434
1437
  }
1435
1438
  }
1436
1439
  }
1437
- function fs(e) {
1438
- Hn(e, !0);
1440
+ function gs(e) {
1441
+ Rn(e, !0);
1439
1442
  }
1440
- function Hn(e, t) {
1441
- if (e.f & J) {
1442
- e.f ^= J, e.f & P || (B(e, R), ae(e));
1443
+ function Rn(e, t) {
1444
+ if (e.f & ee) {
1445
+ e.f ^= ee, e.f & I || (B(e, L), oe(e));
1443
1446
  for (var r = e.first; r !== null; ) {
1444
- var n = r.next, i = (r.f & Le) !== 0 || (r.f & le) !== 0;
1445
- Hn(r, i ? t : !1), r = n;
1447
+ var n = r.next, i = (r.f & $e) !== 0 || (r.f & fe) !== 0;
1448
+ Rn(r, i ? t : !1), r = n;
1446
1449
  }
1447
1450
  var s = e.nodes && e.nodes.t;
1448
1451
  if (s !== null)
@@ -1450,184 +1453,184 @@ function Hn(e, t) {
1450
1453
  (a.is_global || t) && a.in();
1451
1454
  }
1452
1455
  }
1453
- function An(e, t) {
1456
+ function Ln(e, t) {
1454
1457
  if (e.nodes)
1455
1458
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1456
- var i = r === n ? null : /* @__PURE__ */ he(r);
1459
+ var i = r === n ? null : /* @__PURE__ */ ce(r);
1457
1460
  t.append(r), r = i;
1458
1461
  }
1459
1462
  }
1460
- let xe = !1;
1461
- function yt(e) {
1462
- xe = e;
1463
+ let Te = !1;
1464
+ function At(e) {
1465
+ Te = e;
1463
1466
  }
1464
- let _e = !1;
1465
- function Hr(e) {
1466
- _e = e;
1467
+ let me = !1;
1468
+ function Nr(e) {
1469
+ me = e;
1467
1470
  }
1468
- let _ = null, z = !1;
1469
- function M(e) {
1471
+ let _ = null, Z = !1;
1472
+ function $(e) {
1470
1473
  _ = e;
1471
1474
  }
1472
1475
  let b = null;
1473
- function K(e) {
1476
+ function te(e) {
1474
1477
  b = e;
1475
1478
  }
1476
- let se = null;
1477
- function Bn(e) {
1478
- _ !== null && (se === null ? se = [e] : se.push(e));
1479
+ let ae = null;
1480
+ function Mn(e) {
1481
+ _ !== null && (ae === null ? ae = [e] : ae.push(e));
1479
1482
  }
1480
- let L = null, F = 0, U = null;
1481
- function hs(e) {
1482
- U = e;
1483
+ let M = null, U = 0, G = null;
1484
+ function ys(e) {
1485
+ G = e;
1483
1486
  }
1484
- let Nn = 1, Ee = 0, we = Ee;
1485
- function Ar(e) {
1486
- we = e;
1487
+ let $n = 1, we = 0, Se = we;
1488
+ function Or(e) {
1489
+ Se = e;
1487
1490
  }
1488
- function On() {
1489
- return ++Nn;
1491
+ function kn() {
1492
+ return ++$n;
1490
1493
  }
1491
- function it(e) {
1494
+ function ht(e) {
1492
1495
  var t = e.f;
1493
- if (t & R)
1496
+ if (t & L)
1494
1497
  return !0;
1495
- if (t & O && (e.f &= ~Te), t & fe) {
1498
+ if (t & C && (e.f &= ~He), t & he) {
1496
1499
  for (var r = (
1497
1500
  /** @type {Value[]} */
1498
1501
  e.deps
1499
1502
  ), n = r.length, i = 0; i < n; i++) {
1500
1503
  var s = r[i];
1501
- if (it(
1504
+ if (ht(
1502
1505
  /** @type {Derived} */
1503
1506
  s
1504
- ) && fn(
1507
+ ) && mn(
1505
1508
  /** @type {Derived} */
1506
1509
  s
1507
1510
  ), s.wv > e.wv)
1508
1511
  return !0;
1509
1512
  }
1510
- t & j && // During time traveling we don't want to reset the status so that
1513
+ t & X && // During time traveling we don't want to reset the status so that
1511
1514
  // traversal of the graph in the other batches still happens
1512
- W === null && B(e, P);
1515
+ z === null && B(e, I);
1513
1516
  }
1514
1517
  return !1;
1515
1518
  }
1516
- function Pn(e, t, r = !0) {
1519
+ function Dn(e, t, r = !0) {
1517
1520
  var n = e.reactions;
1518
- if (n !== null && !se?.includes(e))
1521
+ if (n !== null && !ae?.includes(e))
1519
1522
  for (var i = 0; i < n.length; i++) {
1520
1523
  var s = n[i];
1521
- s.f & O ? Pn(
1524
+ s.f & C ? Dn(
1522
1525
  /** @type {Derived} */
1523
1526
  s,
1524
1527
  t,
1525
1528
  !1
1526
- ) : t === s && (r ? B(s, R) : s.f & P && B(s, fe), ae(
1529
+ ) : t === s && (r ? B(s, L) : s.f & I && B(s, he), oe(
1527
1530
  /** @type {Effect} */
1528
1531
  s
1529
1532
  ));
1530
1533
  }
1531
1534
  }
1532
- function Cn(e) {
1533
- var t = L, r = F, n = U, i = _, s = se, a = V, o = z, u = we, l = e.f;
1534
- L = /** @type {null | Value[]} */
1535
- null, F = 0, U = null, _ = l & (le | me) ? null : e, se = null, Me(e.ctx), z = !1, we = ++Ee, e.ac !== null && (mn(() => {
1536
- e.ac.abort(Pe);
1535
+ function Un(e) {
1536
+ var t = M, r = U, n = G, i = _, s = ae, a = W, o = Z, u = Se, l = e.f;
1537
+ M = /** @type {null | Value[]} */
1538
+ null, U = 0, G = null, _ = l & (fe | be) ? null : e, ae = null, ke(e.ctx), Z = !1, Se = ++we, e.ac !== null && (Tn(() => {
1539
+ e.ac.abort(Ie);
1537
1540
  }), e.ac = null);
1538
1541
  try {
1539
- e.f |= Vt;
1542
+ e.f |= qt;
1540
1543
  var f = (
1541
1544
  /** @type {Function} */
1542
1545
  e.fn
1543
1546
  ), c = f(), h = e.deps;
1544
- if (L !== null) {
1547
+ if (M !== null) {
1545
1548
  var d;
1546
- if (Et(e, F), h !== null && F > 0)
1547
- for (h.length = F + L.length, d = 0; d < L.length; d++)
1548
- h[F + d] = L[d];
1549
+ if (Bt(e, U), h !== null && U > 0)
1550
+ for (h.length = U + M.length, d = 0; d < M.length; d++)
1551
+ h[U + d] = M[d];
1549
1552
  else
1550
- e.deps = h = L;
1551
- if (_r() && e.f & j)
1552
- for (d = F; d < h.length; d++)
1553
+ e.deps = h = M;
1554
+ if (gr() && e.f & X)
1555
+ for (d = U; d < h.length; d++)
1553
1556
  (h[d].reactions ??= []).push(e);
1554
- } else h !== null && F < h.length && (Et(e, F), h.length = F);
1555
- if (en() && U !== null && !z && h !== null && !(e.f & (O | fe | R)))
1557
+ } else h !== null && U < h.length && (Bt(e, U), h.length = U);
1558
+ if (un() && G !== null && !Z && h !== null && !(e.f & (C | he | L)))
1556
1559
  for (d = 0; d < /** @type {Source[]} */
1557
- U.length; d++)
1558
- Pn(
1559
- U[d],
1560
+ G.length; d++)
1561
+ Dn(
1562
+ G[d],
1560
1563
  /** @type {Effect} */
1561
1564
  e
1562
1565
  );
1563
1566
  if (i !== null && i !== e) {
1564
- if (Ee++, i.deps !== null)
1567
+ if (we++, i.deps !== null)
1565
1568
  for (let p = 0; p < r; p += 1)
1566
- i.deps[p].rv = Ee;
1569
+ i.deps[p].rv = we;
1567
1570
  if (t !== null)
1568
1571
  for (const p of t)
1569
- p.rv = Ee;
1570
- U !== null && (n === null ? n = U : n.push(.../** @type {Source[]} */
1571
- U));
1572
+ p.rv = we;
1573
+ G !== null && (n === null ? n = G : n.push(.../** @type {Source[]} */
1574
+ G));
1572
1575
  }
1573
- return e.f & pe && (e.f ^= pe), c;
1576
+ return e.f & ve && (e.f ^= ve), c;
1574
1577
  } catch (p) {
1575
- return rn(p);
1578
+ return fn(p);
1576
1579
  } finally {
1577
- e.f ^= Vt, L = t, F = r, U = n, _ = i, se = s, Me(a), z = o, we = u;
1580
+ e.f ^= qt, M = t, U = r, G = n, _ = i, ae = s, ke(a), Z = o, Se = u;
1578
1581
  }
1579
1582
  }
1580
- function cs(e, t) {
1583
+ function Es(e, t) {
1581
1584
  let r = t.reactions;
1582
1585
  if (r !== null) {
1583
- var n = mi.call(r, e);
1586
+ var n = Bi.call(r, e);
1584
1587
  if (n !== -1) {
1585
1588
  var i = r.length - 1;
1586
1589
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1587
1590
  }
1588
1591
  }
1589
- if (r === null && t.f & O && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1592
+ if (r === null && t.f & C && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1590
1593
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1591
1594
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1592
- (L === null || !L.includes(t))) {
1595
+ (M === null || !M.includes(t))) {
1593
1596
  var s = (
1594
1597
  /** @type {Derived} */
1595
1598
  t
1596
1599
  );
1597
- s.f & j && (s.f ^= j, s.f &= ~Te), dr(s), ln(s), Et(s, 0);
1600
+ s.f & X && (s.f ^= X, s.f &= ~He), _r(s), _n(s), Bt(s, 0);
1598
1601
  }
1599
1602
  }
1600
- function Et(e, t) {
1603
+ function Bt(e, t) {
1601
1604
  var r = e.deps;
1602
1605
  if (r !== null)
1603
1606
  for (var n = t; n < r.length; n++)
1604
- cs(e, r[n]);
1607
+ Es(e, r[n]);
1605
1608
  }
1606
- function Je(e) {
1609
+ function it(e) {
1607
1610
  var t = e.f;
1608
- if (!(t & ie)) {
1609
- B(e, P);
1610
- var r = b, n = xe;
1611
- b = e, xe = !0;
1611
+ if (!(t & se)) {
1612
+ B(e, I);
1613
+ var r = b, n = Te;
1614
+ b = e, Te = !0;
1612
1615
  try {
1613
- t & (ue | qr) ? us(e) : wn(e), xn(e);
1614
- var i = Cn(e);
1615
- e.teardown = typeof i == "function" ? i : null, e.wv = Nn;
1616
+ t & (le | Kr) ? ms(e) : Pn(e), On(e);
1617
+ var i = Un(e);
1618
+ e.teardown = typeof i == "function" ? i : null, e.wv = $n;
1616
1619
  var s;
1617
- jt && Di && e.f & R && e.deps;
1620
+ zt && qi && e.f & L && e.deps;
1618
1621
  } finally {
1619
- xe = n, b = r;
1622
+ Te = n, b = r;
1620
1623
  }
1621
1624
  }
1622
1625
  }
1623
1626
  function g(e) {
1624
- var t = e.f, r = (t & O) !== 0;
1625
- if (_ !== null && !z) {
1626
- var n = b !== null && (b.f & ie) !== 0;
1627
- if (!n && !se?.includes(e)) {
1627
+ var t = e.f, r = (t & C) !== 0;
1628
+ if (_ !== null && !Z) {
1629
+ var n = b !== null && (b.f & se) !== 0;
1630
+ if (!n && !ae?.includes(e)) {
1628
1631
  var i = _.deps;
1629
- if (_.f & Vt)
1630
- e.rv < Ee && (e.rv = Ee, L === null && i !== null && i[F] === e ? F++ : L === null ? L = [e] : L.push(e));
1632
+ if (_.f & qt)
1633
+ e.rv < we && (e.rv = we, M === null && i !== null && i[U] === e ? U++ : M === null ? M = [e] : M.push(e));
1631
1634
  else {
1632
1635
  (_.deps ??= []).push(e);
1633
1636
  var s = e.reactions;
@@ -1635,64 +1638,64 @@ function g(e) {
1635
1638
  }
1636
1639
  }
1637
1640
  }
1638
- if (_e && ve.has(e))
1639
- return ve.get(e);
1641
+ if (me && _e.has(e))
1642
+ return _e.get(e);
1640
1643
  if (r) {
1641
1644
  var a = (
1642
1645
  /** @type {Derived} */
1643
1646
  e
1644
1647
  );
1645
- if (_e) {
1648
+ if (me) {
1646
1649
  var o = a.v;
1647
- return (!(a.f & P) && a.reactions !== null || Rn(a)) && (o = vr(a)), ve.set(a, o), o;
1650
+ return (!(a.f & I) && a.reactions !== null || Gn(a)) && (o = br(a)), _e.set(a, o), o;
1648
1651
  }
1649
- var u = (a.f & j) === 0 && !z && _ !== null && (xe || (_.f & j) !== 0), l = a.deps === null;
1650
- it(a) && (u && (a.f |= j), fn(a)), u && !l && In(a);
1652
+ var u = (a.f & X) === 0 && !Z && _ !== null && (Te || (_.f & X) !== 0), l = a.deps === null;
1653
+ ht(a) && (u && (a.f |= X), mn(a)), u && !l && Fn(a);
1651
1654
  }
1652
- if (W?.has(e))
1653
- return W.get(e);
1654
- if (e.f & pe)
1655
+ if (z?.has(e))
1656
+ return z.get(e);
1657
+ if (e.f & ve)
1655
1658
  throw e.v;
1656
1659
  return e.v;
1657
1660
  }
1658
- function In(e) {
1661
+ function Fn(e) {
1659
1662
  if (e.deps !== null) {
1660
- e.f |= j;
1663
+ e.f |= X;
1661
1664
  for (const t of e.deps)
1662
- (t.reactions ??= []).push(e), t.f & O && !(t.f & j) && In(
1665
+ (t.reactions ??= []).push(e), t.f & C && !(t.f & X) && Fn(
1663
1666
  /** @type {Derived} */
1664
1667
  t
1665
1668
  );
1666
1669
  }
1667
1670
  }
1668
- function Rn(e) {
1669
- if (e.v === N) return !0;
1671
+ function Gn(e) {
1672
+ if (e.v === O) return !0;
1670
1673
  if (e.deps === null) return !1;
1671
1674
  for (const t of e.deps)
1672
- if (ve.has(t) || t.f & O && Rn(
1675
+ if (_e.has(t) || t.f & C && Gn(
1673
1676
  /** @type {Derived} */
1674
1677
  t
1675
1678
  ))
1676
1679
  return !0;
1677
1680
  return !1;
1678
1681
  }
1679
- function Ln(e) {
1680
- var t = z;
1682
+ function jn(e) {
1683
+ var t = Z;
1681
1684
  try {
1682
- return z = !0, e();
1685
+ return Z = !0, e();
1683
1686
  } finally {
1684
- z = t;
1687
+ Z = t;
1685
1688
  }
1686
1689
  }
1687
- const Mn = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Set();
1688
- function ds(e) {
1690
+ const Vn = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set();
1691
+ function xs(e) {
1689
1692
  for (var t = 0; t < e.length; t++)
1690
- Mn.add(e[t]);
1691
- for (var r of zt)
1693
+ Vn.add(e[t]);
1694
+ for (var r of Jt)
1692
1695
  r(e);
1693
1696
  }
1694
- let Br = null;
1695
- function ft(e) {
1697
+ let Pr = null;
1698
+ function mt(e) {
1696
1699
  var t = this, r = (
1697
1700
  /** @type {Node} */
1698
1701
  t.ownerDocument
@@ -1700,8 +1703,8 @@ function ft(e) {
1700
1703
  /** @type {null | Element} */
1701
1704
  i[0] || e.target
1702
1705
  );
1703
- Br = e;
1704
- var a = 0, o = Br === e && e.__root;
1706
+ Pr = e;
1707
+ var a = 0, o = Pr === e && e.__root;
1705
1708
  if (o) {
1706
1709
  var u = i.indexOf(o);
1707
1710
  if (u !== -1 && (t === document || t === /** @type {any} */
@@ -1716,48 +1719,48 @@ function ft(e) {
1716
1719
  }
1717
1720
  if (s = /** @type {Element} */
1718
1721
  i[a] || e.target, s !== t) {
1719
- Ye(e, "currentTarget", {
1722
+ rt(e, "currentTarget", {
1720
1723
  configurable: !0,
1721
1724
  get() {
1722
1725
  return s || r;
1723
1726
  }
1724
1727
  });
1725
1728
  var f = _, c = b;
1726
- M(null), K(null);
1729
+ $(null), te(null);
1727
1730
  try {
1728
1731
  for (var h, d = []; s !== null; ) {
1729
1732
  var p = s.assignedSlot || s.parentNode || /** @type {any} */
1730
1733
  s.host || null;
1731
1734
  try {
1732
- var y = s["__" + n];
1733
- y != null && (!/** @type {any} */
1735
+ var E = s["__" + n];
1736
+ E != null && (!/** @type {any} */
1734
1737
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1735
1738
  // -> the target could not have been disabled because it emits the event in the first place
1736
- e.target === s) && y.call(s, e);
1737
- } catch (H) {
1738
- h ? d.push(H) : h = H;
1739
+ e.target === s) && E.call(s, e);
1740
+ } catch (T) {
1741
+ h ? d.push(T) : h = T;
1739
1742
  }
1740
1743
  if (e.cancelBubble || p === t || p === null)
1741
1744
  break;
1742
1745
  s = p;
1743
1746
  }
1744
1747
  if (h) {
1745
- for (let H of d)
1748
+ for (let T of d)
1746
1749
  queueMicrotask(() => {
1747
- throw H;
1750
+ throw T;
1748
1751
  });
1749
1752
  throw h;
1750
1753
  }
1751
1754
  } finally {
1752
- e.__root = t, delete e.currentTarget, M(f), K(c);
1755
+ e.__root = t, delete e.currentTarget, $(f), te(c);
1753
1756
  }
1754
1757
  }
1755
1758
  }
1756
- function ps(e) {
1759
+ function ws(e) {
1757
1760
  var t = document.createElement("template");
1758
1761
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1759
1762
  }
1760
- function Ke(e, t) {
1763
+ function st(e, t) {
1761
1764
  var r = (
1762
1765
  /** @type {Effect} */
1763
1766
  b
@@ -1765,33 +1768,33 @@ function Ke(e, t) {
1765
1768
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1766
1769
  }
1767
1770
  // @__NO_SIDE_EFFECTS__
1768
- function vs(e, t) {
1769
- var r = (t & vi) !== 0, n, i = !e.startsWith("<!>");
1771
+ function Xn(e, t) {
1772
+ var r = (t & Hi) !== 0, n, i = !e.startsWith("<!>");
1770
1773
  return () => {
1771
1774
  if (A)
1772
- return Ke(E, null), E;
1773
- n === void 0 && (n = ps(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1774
- /* @__PURE__ */ Qe(n));
1775
+ return st(x, null), x;
1776
+ n === void 0 && (n = ws(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1777
+ /* @__PURE__ */ nt(n));
1775
1778
  var s = (
1776
1779
  /** @type {TemplateNode} */
1777
- r || pn ? document.importNode(n, !0) : n.cloneNode(!0)
1780
+ r || En ? document.importNode(n, !0) : n.cloneNode(!0)
1778
1781
  );
1779
- return Ke(s, s), s;
1782
+ return st(s, s), s;
1780
1783
  };
1781
1784
  }
1782
- function _s() {
1785
+ function Cr() {
1783
1786
  if (A)
1784
- return Ke(E, null), E;
1785
- var e = document.createDocumentFragment(), t = document.createComment(""), r = oe();
1786
- return e.append(t, r), Ke(t, r), e;
1787
+ return st(x, null), x;
1788
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = ue();
1789
+ return e.append(t, r), st(t, r), e;
1787
1790
  }
1788
- function Zt(e, t) {
1791
+ function Je(e, t) {
1789
1792
  if (A) {
1790
1793
  var r = (
1791
1794
  /** @type {Effect & { nodes: EffectNodes }} */
1792
1795
  b
1793
1796
  );
1794
- (!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = E), hr();
1797
+ (!(r.f & Ct) || r.nodes.end === null) && (r.nodes.end = x), pr();
1795
1798
  return;
1796
1799
  }
1797
1800
  e !== null && e.before(
@@ -1799,61 +1802,61 @@ function Zt(e, t) {
1799
1802
  t
1800
1803
  );
1801
1804
  }
1802
- const ms = ["touchstart", "touchmove"];
1803
- function bs(e) {
1804
- return ms.includes(e);
1805
+ const Ts = ["touchstart", "touchmove"];
1806
+ function Ss(e) {
1807
+ return Ts.includes(e);
1805
1808
  }
1806
- function Nr(e, t) {
1809
+ function Ir(e, t) {
1807
1810
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1808
1811
  r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
1809
1812
  }
1810
- function $n(e, t) {
1811
- return Dn(e, t);
1813
+ function Wn(e, t) {
1814
+ return zn(e, t);
1812
1815
  }
1813
- function gs(e, t) {
1814
- qt(), t.intro = t.intro ?? !1;
1815
- const r = t.target, n = A, i = E;
1816
+ function Hs(e, t) {
1817
+ Qt(), t.intro = t.intro ?? !1;
1818
+ const r = t.target, n = A, i = x;
1816
1819
  try {
1817
- for (var s = /* @__PURE__ */ Qe(r); s && (s.nodeType !== rt || /** @type {Comment} */
1818
- s.data !== jr); )
1819
- s = /* @__PURE__ */ he(s);
1820
+ for (var s = /* @__PURE__ */ nt(r); s && (s.nodeType !== lt || /** @type {Comment} */
1821
+ s.data !== Zr); )
1822
+ s = /* @__PURE__ */ ce(s);
1820
1823
  if (!s)
1821
- throw Re;
1822
- Ce(!0), Z(
1824
+ throw Me;
1825
+ Re(!0), Y(
1823
1826
  /** @type {Comment} */
1824
1827
  s
1825
1828
  );
1826
- const a = Dn(e, { ...t, anchor: s });
1827
- return Ce(!1), /** @type {Exports} */
1829
+ const a = zn(e, { ...t, anchor: s });
1830
+ return Re(!1), /** @type {Exports} */
1828
1831
  a;
1829
1832
  } catch (a) {
1830
1833
  if (a instanceof Error && a.message.split(`
1831
1834
  `).some((o) => o.startsWith("https://svelte.dev/e/")))
1832
1835
  throw a;
1833
- return a !== Re && console.warn("Failed to hydrate: ", a), t.recover === !1 && Ni(), qt(), Ki(r), Ce(!1), $n(e, t);
1836
+ return a !== Me && console.warn("Failed to hydrate: ", a), t.recover === !1 && Di(), Qt(), us(r), Re(!1), Wn(e, t);
1834
1837
  } finally {
1835
- Ce(n), Z(i);
1838
+ Re(n), Y(i);
1836
1839
  }
1837
1840
  }
1838
- const Ne = /* @__PURE__ */ new Map();
1839
- function Dn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1840
- qt();
1841
+ const Pe = /* @__PURE__ */ new Map();
1842
+ function zn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1843
+ Qt();
1841
1844
  var o = /* @__PURE__ */ new Set(), u = (c) => {
1842
1845
  for (var h = 0; h < c.length; h++) {
1843
1846
  var d = c[h];
1844
1847
  if (!o.has(d)) {
1845
1848
  o.add(d);
1846
- var p = bs(d);
1847
- t.addEventListener(d, ft, { passive: p });
1848
- var y = Ne.get(d);
1849
- y === void 0 ? (document.addEventListener(d, ft, { passive: p }), Ne.set(d, 1)) : Ne.set(d, y + 1);
1849
+ var p = Ss(d);
1850
+ t.addEventListener(d, mt, { passive: p });
1851
+ var E = Pe.get(d);
1852
+ E === void 0 ? (document.addEventListener(d, mt, { passive: p }), Pe.set(d, 1)) : Pe.set(d, E + 1);
1850
1853
  }
1851
1854
  }
1852
1855
  };
1853
- u(bi(Mn)), zt.add(u);
1854
- var l = void 0, f = is(() => {
1855
- var c = r ?? t.appendChild(oe());
1856
- return Vi(
1856
+ u(Ni(Vn)), Jt.add(u);
1857
+ var l = void 0, f = ds(() => {
1858
+ var c = r ?? t.appendChild(ue());
1859
+ return es(
1857
1860
  /** @type {TemplateNode} */
1858
1861
  c,
1859
1862
  {
@@ -1862,42 +1865,42 @@ function Dn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1862
1865
  },
1863
1866
  (h) => {
1864
1867
  if (s) {
1865
- Jr({});
1868
+ an({});
1866
1869
  var d = (
1867
1870
  /** @type {ComponentContext} */
1868
- V
1871
+ W
1869
1872
  );
1870
1873
  d.c = s;
1871
1874
  }
1872
- if (i && (n.$$events = i), A && Ke(
1875
+ if (i && (n.$$events = i), A && st(
1873
1876
  /** @type {TemplateNode} */
1874
1877
  h,
1875
1878
  null
1876
- ), l = e(h, n) || {}, A && (b.nodes.end = E, E === null || E.nodeType !== rt || /** @type {Comment} */
1877
- E.data !== Vr))
1878
- throw At(), Re;
1879
- s && Kr();
1879
+ ), l = e(h, n) || {}, A && (b.nodes.end = x, x === null || x.nodeType !== lt || /** @type {Comment} */
1880
+ x.data !== Yr))
1881
+ throw It(), Me;
1882
+ s && on();
1880
1883
  }
1881
1884
  ), () => {
1882
1885
  for (var h of o) {
1883
- t.removeEventListener(h, ft);
1886
+ t.removeEventListener(h, mt);
1884
1887
  var d = (
1885
1888
  /** @type {number} */
1886
- Ne.get(h)
1889
+ Pe.get(h)
1887
1890
  );
1888
- --d === 0 ? (document.removeEventListener(h, ft), Ne.delete(h)) : Ne.set(h, d);
1891
+ --d === 0 ? (document.removeEventListener(h, mt), Pe.delete(h)) : Pe.set(h, d);
1889
1892
  }
1890
- zt.delete(u), c !== r && c.parentNode?.removeChild(c);
1893
+ Jt.delete(u), c !== r && c.parentNode?.removeChild(c);
1891
1894
  };
1892
1895
  });
1893
- return Yt.set(l, f), l;
1896
+ return Kt.set(l, f), l;
1894
1897
  }
1895
- let Yt = /* @__PURE__ */ new WeakMap();
1896
- function ys(e, t) {
1897
- const r = Yt.get(e);
1898
- return r ? (Yt.delete(e), r(t)) : Promise.resolve();
1898
+ let Kt = /* @__PURE__ */ new WeakMap();
1899
+ function As(e, t) {
1900
+ const r = Kt.get(e);
1901
+ return r ? (Kt.delete(e), r(t)) : Promise.resolve();
1899
1902
  }
1900
- class Es {
1903
+ class Bs {
1901
1904
  /** @type {TemplateNode} */
1902
1905
  anchor;
1903
1906
  /** @type {Map<Batch, Key>} */
@@ -1943,7 +1946,7 @@ class Es {
1943
1946
  #i = () => {
1944
1947
  var t = (
1945
1948
  /** @type {Batch} */
1946
- S
1949
+ H
1947
1950
  );
1948
1951
  if (this.#e.has(t)) {
1949
1952
  var r = (
@@ -1951,7 +1954,7 @@ class Es {
1951
1954
  this.#e.get(t)
1952
1955
  ), n = this.#t.get(r);
1953
1956
  if (n)
1954
- fs(n), this.#s.delete(r);
1957
+ gs(n), this.#s.delete(r);
1955
1958
  else {
1956
1959
  var i = this.#r.get(r);
1957
1960
  i && (this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
@@ -1960,19 +1963,19 @@ class Es {
1960
1963
  if (this.#e.delete(s), s === t)
1961
1964
  break;
1962
1965
  const o = this.#r.get(a);
1963
- o && ($(o.effect), this.#r.delete(a));
1966
+ o && (k(o.effect), this.#r.delete(a));
1964
1967
  }
1965
1968
  for (const [s, a] of this.#t) {
1966
1969
  if (s === r || this.#s.has(s)) continue;
1967
1970
  const o = () => {
1968
1971
  if (Array.from(this.#e.values()).includes(s)) {
1969
1972
  var l = document.createDocumentFragment();
1970
- An(a, l), l.append(oe()), this.#r.set(s, { effect: a, fragment: l });
1973
+ Ln(a, l), l.append(ue()), this.#r.set(s, { effect: a, fragment: l });
1971
1974
  } else
1972
- $(a);
1975
+ k(a);
1973
1976
  this.#s.delete(s), this.#t.delete(s);
1974
1977
  };
1975
- this.#a || !n ? (this.#s.add(s), Ze(a, o, !1)) : o();
1978
+ this.#a || !n ? (this.#s.add(s), tt(a, o, !1)) : o();
1976
1979
  }
1977
1980
  }
1978
1981
  };
@@ -1983,7 +1986,7 @@ class Es {
1983
1986
  this.#e.delete(t);
1984
1987
  const r = Array.from(this.#e.values());
1985
1988
  for (const [n, i] of this.#r)
1986
- r.includes(n) || ($(i.effect), this.#r.delete(n));
1989
+ r.includes(n) || (k(i.effect), this.#r.delete(n));
1987
1990
  };
1988
1991
  /**
1989
1992
  *
@@ -1993,19 +1996,19 @@ class Es {
1993
1996
  ensure(t, r) {
1994
1997
  var n = (
1995
1998
  /** @type {Batch} */
1996
- S
1997
- ), i = es();
1999
+ H
2000
+ ), i = ls();
1998
2001
  if (r && !this.#t.has(t) && !this.#r.has(t))
1999
2002
  if (i) {
2000
- var s = document.createDocumentFragment(), a = oe();
2003
+ var s = document.createDocumentFragment(), a = ue();
2001
2004
  s.append(a), this.#r.set(t, {
2002
- effect: ne(() => r(a)),
2005
+ effect: ie(() => r(a)),
2003
2006
  fragment: s
2004
2007
  });
2005
2008
  } else
2006
2009
  this.#t.set(
2007
2010
  t,
2008
- ne(() => r(this.anchor))
2011
+ ie(() => r(this.anchor))
2009
2012
  );
2010
2013
  if (this.#e.set(n, t), i) {
2011
2014
  for (const [o, u] of this.#t)
@@ -2014,32 +2017,32 @@ class Es {
2014
2017
  o === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
2015
2018
  n.oncommit(this.#i), n.ondiscard(this.#n);
2016
2019
  } else
2017
- A && (this.anchor = E), this.#i();
2020
+ A && (this.anchor = x), this.#i();
2018
2021
  }
2019
2022
  }
2020
- function xs(e, t, r = !1) {
2021
- A && hr();
2022
- var n = new Es(e), i = r ? Le : 0;
2023
+ function Rr(e, t, r = !1) {
2024
+ A && pr();
2025
+ var n = new Bs(e), i = r ? $e : 0;
2023
2026
  function s(a, o) {
2024
2027
  if (A) {
2025
- const l = Mi(e) === or;
2028
+ const l = Wi(e) === fr;
2026
2029
  if (a === l) {
2027
- var u = Zr();
2028
- Z(u), n.anchor = u, Ce(!1), n.ensure(a, o), Ce(!0);
2030
+ var u = rn();
2031
+ Y(u), n.anchor = u, Re(!1), n.ensure(a, o), Re(!0);
2029
2032
  return;
2030
2033
  }
2031
2034
  }
2032
2035
  n.ensure(a, o);
2033
2036
  }
2034
- En(() => {
2037
+ Nn(() => {
2035
2038
  var a = !1;
2036
2039
  t((o, u = !0) => {
2037
2040
  a = !0, s(u, o);
2038
2041
  }), a || s(!1, null);
2039
2042
  }, i);
2040
2043
  }
2041
- function ws(e, t) {
2042
- ss(() => {
2044
+ function Ns(e, t) {
2045
+ ps(() => {
2043
2046
  var r = e.getRootNode(), n = (
2044
2047
  /** @type {ShadowRoot} */
2045
2048
  r.host ? (
@@ -2057,10 +2060,10 @@ function ws(e, t) {
2057
2060
  }
2058
2061
  });
2059
2062
  }
2060
- function mr(e, t, r) {
2063
+ function yr(e, t, r) {
2061
2064
  if (e == null)
2062
- return t(void 0), r && r(void 0), de;
2063
- const n = Ln(
2065
+ return t(void 0), r && r(void 0), pe;
2066
+ const n = jn(
2064
2067
  () => e.subscribe(
2065
2068
  t,
2066
2069
  // @ts-expect-error
@@ -2069,24 +2072,24 @@ function mr(e, t, r) {
2069
2072
  );
2070
2073
  return n.unsubscribe ? () => n.unsubscribe() : n;
2071
2074
  }
2072
- const Oe = [];
2073
- function Ts(e, t) {
2075
+ const Ce = [];
2076
+ function Os(e, t) {
2074
2077
  return {
2075
- subscribe: Nt(e, t).subscribe
2078
+ subscribe: Lt(e, t).subscribe
2076
2079
  };
2077
2080
  }
2078
- function Nt(e, t = de) {
2081
+ function Lt(e, t = pe) {
2079
2082
  let r = null;
2080
2083
  const n = /* @__PURE__ */ new Set();
2081
2084
  function i(o) {
2082
- if (Qr(e, o) && (e = o, r)) {
2083
- const u = !Oe.length;
2085
+ if (sn(e, o) && (e = o, r)) {
2086
+ const u = !Ce.length;
2084
2087
  for (const l of n)
2085
- l[1](), Oe.push(l, e);
2088
+ l[1](), Ce.push(l, e);
2086
2089
  if (u) {
2087
- for (let l = 0; l < Oe.length; l += 2)
2088
- Oe[l][0](Oe[l + 1]);
2089
- Oe.length = 0;
2090
+ for (let l = 0; l < Ce.length; l += 2)
2091
+ Ce[l][0](Ce[l + 1]);
2092
+ Ce.length = 0;
2090
2093
  }
2091
2094
  }
2092
2095
  }
@@ -2096,9 +2099,9 @@ function Nt(e, t = de) {
2096
2099
  e
2097
2100
  ));
2098
2101
  }
2099
- function a(o, u = de) {
2102
+ function a(o, u = pe) {
2100
2103
  const l = [o, u];
2101
- return n.add(l), n.size === 1 && (r = t(i, s) || de), o(
2104
+ return n.add(l), n.size === 1 && (r = t(i, s) || pe), o(
2102
2105
  /** @type {T} */
2103
2106
  e
2104
2107
  ), () => {
@@ -2107,66 +2110,66 @@ function Nt(e, t = de) {
2107
2110
  }
2108
2111
  return { set: i, update: s, subscribe: a };
2109
2112
  }
2110
- function Ge(e, t, r) {
2113
+ function Ve(e, t, r) {
2111
2114
  const n = !Array.isArray(e), i = n ? [e] : e;
2112
2115
  if (!i.every(Boolean))
2113
2116
  throw new Error("derived() expects stores as input, got a falsy value");
2114
2117
  const s = t.length < 2;
2115
- return Ts(r, (a, o) => {
2118
+ return Os(r, (a, o) => {
2116
2119
  let u = !1;
2117
2120
  const l = [];
2118
- let f = 0, c = de;
2121
+ let f = 0, c = pe;
2119
2122
  const h = () => {
2120
2123
  if (f)
2121
2124
  return;
2122
2125
  c();
2123
2126
  const p = t(n ? l[0] : l, a, o);
2124
- s ? a(p) : c = typeof p == "function" ? p : de;
2127
+ s ? a(p) : c = typeof p == "function" ? p : pe;
2125
2128
  }, d = i.map(
2126
- (p, y) => mr(
2129
+ (p, E) => yr(
2127
2130
  p,
2128
- (H) => {
2129
- l[y] = H, f &= ~(1 << y), u && h();
2131
+ (T) => {
2132
+ l[E] = T, f &= ~(1 << E), u && h();
2130
2133
  },
2131
2134
  () => {
2132
- f |= 1 << y;
2135
+ f |= 1 << E;
2133
2136
  }
2134
2137
  )
2135
2138
  );
2136
2139
  return u = !0, h(), function() {
2137
- Xr(d), c(), u = !1;
2140
+ Qr(d), c(), u = !1;
2138
2141
  };
2139
2142
  });
2140
2143
  }
2141
- function Ss(e) {
2144
+ function Ps(e) {
2142
2145
  let t;
2143
- return mr(e, (r) => t = r)(), t;
2146
+ return yr(e, (r) => t = r)(), t;
2144
2147
  }
2145
- let Qt = Symbol();
2146
- function Hs(e, t, r) {
2148
+ let er = Symbol();
2149
+ function Cs(e, t, r) {
2147
2150
  const n = r[t] ??= {
2148
2151
  store: null,
2149
- source: /* @__PURE__ */ cn(void 0),
2150
- unsubscribe: de
2152
+ source: /* @__PURE__ */ gn(void 0),
2153
+ unsubscribe: pe
2151
2154
  };
2152
- if (n.store !== e && !(Qt in r))
2155
+ if (n.store !== e && !(er in r))
2153
2156
  if (n.unsubscribe(), n.store = e ?? null, e == null)
2154
- n.source.v = void 0, n.unsubscribe = de;
2157
+ n.source.v = void 0, n.unsubscribe = pe;
2155
2158
  else {
2156
2159
  var i = !0;
2157
- n.unsubscribe = mr(e, (s) => {
2158
- i ? n.source.v = s : I(n.source, s);
2160
+ n.unsubscribe = yr(e, (s) => {
2161
+ i ? n.source.v = s : P(n.source, s);
2159
2162
  }), i = !1;
2160
2163
  }
2161
- return e && Qt in r ? Ss(e) : g(n.source);
2164
+ return e && er in r ? Ps(e) : g(n.source);
2162
2165
  }
2163
- function As() {
2166
+ function Is() {
2164
2167
  const e = {};
2165
2168
  function t() {
2166
- bn(() => {
2169
+ Hn(() => {
2167
2170
  for (var r in e)
2168
2171
  e[r].unsubscribe();
2169
- Ye(e, Qt, {
2172
+ rt(e, er, {
2170
2173
  enumerable: !1,
2171
2174
  value: !0
2172
2175
  });
@@ -2174,7 +2177,7 @@ function As() {
2174
2177
  }
2175
2178
  return [e, t];
2176
2179
  }
2177
- function Mt(e, t, r, n) {
2180
+ function bt(e, t, r, n) {
2178
2181
  var i = (
2179
2182
  /** @type {V} */
2180
2183
  n
@@ -2190,7 +2193,7 @@ function Mt(e, t, r, n) {
2190
2193
  );
2191
2194
  return h === void 0 ? a() : (s = !0, h);
2192
2195
  };
2193
- var l = !1, f = /* @__PURE__ */ pr(() => (l = !1, u())), c = (
2196
+ var l = !1, f = /* @__PURE__ */ mr(() => (l = !1, u())), c = (
2194
2197
  /** @type {Effect} */
2195
2198
  b
2196
2199
  );
@@ -2199,16 +2202,16 @@ function Mt(e, t, r, n) {
2199
2202
  function(h, d) {
2200
2203
  if (arguments.length > 0) {
2201
2204
  const p = d ? g(f) : h;
2202
- return I(f, p), l = !0, i !== void 0 && (i = p), h;
2205
+ return P(f, p), l = !0, i !== void 0 && (i = p), h;
2203
2206
  }
2204
- return _e && l || c.f & ie ? f.v : g(f);
2207
+ return me && l || c.f & se ? f.v : g(f);
2205
2208
  }
2206
2209
  );
2207
2210
  }
2208
- function Bs(e) {
2209
- return new Ns(e);
2211
+ function Rs(e) {
2212
+ return new Ls(e);
2210
2213
  }
2211
- class Ns {
2214
+ class Ls {
2212
2215
  /** @type {any} */
2213
2216
  #e;
2214
2217
  /** @type {Record<string, any>} */
@@ -2220,7 +2223,7 @@ class Ns {
2220
2223
  */
2221
2224
  constructor(t) {
2222
2225
  var r = /* @__PURE__ */ new Map(), n = (s, a) => {
2223
- var o = /* @__PURE__ */ cn(a, !1, !1);
2226
+ var o = /* @__PURE__ */ gn(a, !1, !1);
2224
2227
  return r.set(s, o), o;
2225
2228
  };
2226
2229
  const i = new Proxy(
@@ -2230,23 +2233,23 @@ class Ns {
2230
2233
  return g(r.get(a) ?? n(a, Reflect.get(s, a)));
2231
2234
  },
2232
2235
  has(s, a) {
2233
- return a === wi ? !0 : (g(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2236
+ return a === Ii ? !0 : (g(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2234
2237
  },
2235
2238
  set(s, a, o) {
2236
- return I(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2239
+ return P(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2237
2240
  }
2238
2241
  }
2239
2242
  );
2240
- this.#t = (t.hydrate ? gs : $n)(t.component, {
2243
+ this.#t = (t.hydrate ? Hs : Wn)(t.component, {
2241
2244
  target: t.target,
2242
2245
  anchor: t.anchor,
2243
2246
  props: i,
2244
2247
  context: t.context,
2245
2248
  intro: t.intro ?? !1,
2246
2249
  recover: t.recover
2247
- }), (!t?.props?.$$host || t.sync === !1) && ct(), this.#e = i.$$events;
2250
+ }), (!t?.props?.$$host || t.sync === !1) && Ye(), this.#e = i.$$events;
2248
2251
  for (const s of Object.keys(this.#t))
2249
- s === "$set" || s === "$destroy" || s === "$on" || Ye(this, s, {
2252
+ s === "$set" || s === "$destroy" || s === "$on" || rt(this, s, {
2250
2253
  get() {
2251
2254
  return this.#t[s];
2252
2255
  },
@@ -2260,7 +2263,7 @@ class Ns {
2260
2263
  (s) => {
2261
2264
  Object.assign(i, s);
2262
2265
  }, this.#t.$destroy = () => {
2263
- ys(this.#t);
2266
+ As(this.#t);
2264
2267
  };
2265
2268
  }
2266
2269
  /** @param {Record<string, any>} props */
@@ -2286,8 +2289,8 @@ class Ns {
2286
2289
  this.#t.$destroy();
2287
2290
  }
2288
2291
  }
2289
- let Fn;
2290
- typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2292
+ let qn;
2293
+ typeof HTMLElement == "function" && (qn = class extends HTMLElement {
2291
2294
  /** The Svelte component constructor */
2292
2295
  $$ctor;
2293
2296
  /** Slots */
@@ -2344,21 +2347,21 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2344
2347
  let e = function(n) {
2345
2348
  return (i) => {
2346
2349
  const s = document.createElement("slot");
2347
- n !== "default" && (s.name = n), Zt(i, s);
2350
+ n !== "default" && (s.name = n), Je(i, s);
2348
2351
  };
2349
2352
  };
2350
2353
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2351
2354
  return;
2352
- const t = {}, r = Os(this);
2355
+ const t = {}, r = Ms(this);
2353
2356
  for (const n of this.$$s)
2354
2357
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2355
2358
  for (const n of this.attributes) {
2356
2359
  const i = this.$$g_p(n.name);
2357
- i in this.$$d || (this.$$d[i] = dt(i, n.value, this.$$p_d, "toProp"));
2360
+ i in this.$$d || (this.$$d[i] = yt(i, n.value, this.$$p_d, "toProp"));
2358
2361
  }
2359
2362
  for (const n in this.$$p_d)
2360
2363
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2361
- this.$$c = Bs({
2364
+ this.$$c = Rs({
2362
2365
  component: this.$$ctor,
2363
2366
  target: this.shadowRoot || this,
2364
2367
  props: {
@@ -2366,13 +2369,13 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2366
2369
  $$slots: t,
2367
2370
  $$host: this
2368
2371
  }
2369
- }), this.$$me = ns(() => {
2370
- yn(() => {
2372
+ }), this.$$me = cs(() => {
2373
+ Bn(() => {
2371
2374
  this.$$r = !0;
2372
- for (const n of _t(this.$$c)) {
2375
+ for (const n of wt(this.$$c)) {
2373
2376
  if (!this.$$p_d[n]?.reflect) continue;
2374
2377
  this.$$d[n] = this.$$c[n];
2375
- const i = dt(
2378
+ const i = yt(
2376
2379
  n,
2377
2380
  this.$$d[n],
2378
2381
  this.$$p_d,
@@ -2399,7 +2402,7 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2399
2402
  * @param {string} newValue
2400
2403
  */
2401
2404
  attributeChangedCallback(e, t, r) {
2402
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2405
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2403
2406
  }
2404
2407
  disconnectedCallback() {
2405
2408
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2410,12 +2413,12 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2410
2413
  * @param {string} attribute_name
2411
2414
  */
2412
2415
  $$g_p(e) {
2413
- return _t(this.$$p_d).find(
2416
+ return wt(this.$$p_d).find(
2414
2417
  (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
2415
2418
  ) || e;
2416
2419
  }
2417
2420
  });
2418
- function dt(e, t, r, n) {
2421
+ function yt(e, t, r, n) {
2419
2422
  const i = r[e]?.type;
2420
2423
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2421
2424
  return t;
@@ -2444,7 +2447,7 @@ function dt(e, t, r, n) {
2444
2447
  return t;
2445
2448
  }
2446
2449
  }
2447
- function Os(e) {
2450
+ function Ms(e) {
2448
2451
  const t = {};
2449
2452
  return e.childNodes.forEach((r) => {
2450
2453
  t[
@@ -2453,33 +2456,33 @@ function Os(e) {
2453
2456
  ] = !0;
2454
2457
  }), t;
2455
2458
  }
2456
- function Ps(e, t, r, n, i, s) {
2457
- let a = class extends Fn {
2459
+ function $s(e, t, r, n, i, s) {
2460
+ let a = class extends qn {
2458
2461
  constructor() {
2459
2462
  super(e, r, i), this.$$p_d = t;
2460
2463
  }
2461
2464
  static get observedAttributes() {
2462
- return _t(t).map(
2465
+ return wt(t).map(
2463
2466
  (o) => (t[o].attribute || o).toLowerCase()
2464
2467
  );
2465
2468
  }
2466
2469
  };
2467
- return _t(t).forEach((o) => {
2468
- Ye(a.prototype, o, {
2470
+ return wt(t).forEach((o) => {
2471
+ rt(a.prototype, o, {
2469
2472
  get() {
2470
2473
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2471
2474
  },
2472
2475
  set(u) {
2473
- u = dt(o, u, t), this.$$d[o] = u;
2476
+ u = yt(o, u, t), this.$$d[o] = u;
2474
2477
  var l = this.$$c;
2475
2478
  if (l) {
2476
- var f = Ie(l, o)?.get;
2479
+ var f = Le(l, o)?.get;
2477
2480
  f ? l[o] = u : l.$set({ [o]: u });
2478
2481
  }
2479
2482
  }
2480
2483
  });
2481
2484
  }), n.forEach((o) => {
2482
- Ye(a.prototype, o, {
2485
+ rt(a.prototype, o, {
2483
2486
  get() {
2484
2487
  return this.$$c?.[o];
2485
2488
  }
@@ -2487,28 +2490,28 @@ function Ps(e, t, r, n, i, s) {
2487
2490
  }), e.element = /** @type {any} */
2488
2491
  a, a;
2489
2492
  }
2490
- class kn extends Error {
2493
+ class Zn extends Error {
2491
2494
  constructor(t, r) {
2492
2495
  super(r), this.code = t, this.name = "ElevateApiError";
2493
2496
  }
2494
2497
  }
2495
- const Cs = async (e) => {
2498
+ const ks = async (e) => {
2496
2499
  const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
2497
2500
  e.userSession && r.append("X-SessionId", e.userSession);
2498
2501
  const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
2499
2502
  if (!i.success)
2500
- throw new kn(i.errorCode, i.errorMessage);
2503
+ throw new Zn(i.errorCode, i.errorMessage);
2501
2504
  return i.data;
2502
- }, Is = async (e) => {
2505
+ }, Ds = async (e) => {
2503
2506
  const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
2504
2507
  e.userSession && r.append("X-Sessionid", e.userSession);
2505
2508
  const i = await (await fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
2506
2509
  if (!i.success)
2507
- throw new kn(i.errorCode, i.errorMessage);
2508
- }, Rs = (e, t = 2) => {
2510
+ throw new Zn(i.errorCode, i.errorMessage);
2511
+ }, Us = (e, t = 2) => {
2509
2512
  const [r, n = ""] = e.toString().split(".");
2510
2513
  return t <= 0 ? r : `${r}.${n ? n.slice(0, t).padEnd(t, "0") : "0".repeat(t)}`;
2511
- }, Ls = (e, t = "en") => {
2514
+ }, Fs = (e, t = "en") => {
2512
2515
  if (!e)
2513
2516
  return "";
2514
2517
  try {
@@ -2520,115 +2523,115 @@ const Cs = async (e) => {
2520
2523
  } catch {
2521
2524
  return e;
2522
2525
  }
2523
- }, Ms = (e) => {
2526
+ }, Gs = (e) => {
2524
2527
  window.postMessage({ type: "RakebackClaimTrigger", points: e }, window.location.href);
2525
- }, $s = (e) => {
2528
+ }, js = (e) => {
2526
2529
  window.postMessage({ type: "RakebackClaimSuccess", points: e }, window.location.href);
2527
- }, Ds = (e) => {
2530
+ }, Vs = (e) => {
2528
2531
  window.postMessage({ type: "RakebackClaimFailed", message: e }, window.location.href);
2529
- }, Fs = () => {
2532
+ }, Xs = () => {
2530
2533
  window.postMessage({ type: "RakebackWalletMissing" }, window.location.href);
2531
2534
  };
2532
- function ks(e) {
2535
+ function Ws(e) {
2533
2536
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2534
2537
  }
2535
- var Us = function(t) {
2536
- return Gs(t) && !js(t);
2538
+ var zs = function(t) {
2539
+ return qs(t) && !Zs(t);
2537
2540
  };
2538
- function Gs(e) {
2541
+ function qs(e) {
2539
2542
  return !!e && typeof e == "object";
2540
2543
  }
2541
- function js(e) {
2544
+ function Zs(e) {
2542
2545
  var t = Object.prototype.toString.call(e);
2543
- return t === "[object RegExp]" || t === "[object Date]" || Ws(e);
2546
+ return t === "[object RegExp]" || t === "[object Date]" || Js(e);
2544
2547
  }
2545
- var Vs = typeof Symbol == "function" && Symbol.for, Xs = Vs ? Symbol.for("react.element") : 60103;
2546
- function Ws(e) {
2547
- return e.$$typeof === Xs;
2548
+ var Ys = typeof Symbol == "function" && Symbol.for, Qs = Ys ? Symbol.for("react.element") : 60103;
2549
+ function Js(e) {
2550
+ return e.$$typeof === Qs;
2548
2551
  }
2549
- function qs(e) {
2552
+ function Ks(e) {
2550
2553
  return Array.isArray(e) ? [] : {};
2551
2554
  }
2552
- function et(e, t) {
2553
- return t.clone !== !1 && t.isMergeableObject(e) ? De(qs(e), e, t) : e;
2555
+ function at(e, t) {
2556
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Ks(e), e, t) : e;
2554
2557
  }
2555
- function zs(e, t, r) {
2558
+ function ea(e, t, r) {
2556
2559
  return e.concat(t).map(function(n) {
2557
- return et(n, r);
2560
+ return at(n, r);
2558
2561
  });
2559
2562
  }
2560
- function Zs(e, t) {
2563
+ function ta(e, t) {
2561
2564
  if (!t.customMerge)
2562
- return De;
2565
+ return Ue;
2563
2566
  var r = t.customMerge(e);
2564
- return typeof r == "function" ? r : De;
2567
+ return typeof r == "function" ? r : Ue;
2565
2568
  }
2566
- function Ys(e) {
2569
+ function ra(e) {
2567
2570
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
2568
2571
  return Object.propertyIsEnumerable.call(e, t);
2569
2572
  }) : [];
2570
2573
  }
2571
- function Or(e) {
2572
- return Object.keys(e).concat(Ys(e));
2574
+ function Lr(e) {
2575
+ return Object.keys(e).concat(ra(e));
2573
2576
  }
2574
- function Un(e, t) {
2577
+ function Yn(e, t) {
2575
2578
  try {
2576
2579
  return t in e;
2577
2580
  } catch {
2578
2581
  return !1;
2579
2582
  }
2580
2583
  }
2581
- function Qs(e, t) {
2582
- return Un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2584
+ function na(e, t) {
2585
+ return Yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2583
2586
  }
2584
- function Js(e, t, r) {
2587
+ function ia(e, t, r) {
2585
2588
  var n = {};
2586
- return r.isMergeableObject(e) && Or(e).forEach(function(i) {
2587
- n[i] = et(e[i], r);
2588
- }), Or(t).forEach(function(i) {
2589
- Qs(e, i) || (Un(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zs(i, r)(e[i], t[i], r) : n[i] = et(t[i], r));
2589
+ return r.isMergeableObject(e) && Lr(e).forEach(function(i) {
2590
+ n[i] = at(e[i], r);
2591
+ }), Lr(t).forEach(function(i) {
2592
+ na(e, i) || (Yn(e, i) && r.isMergeableObject(t[i]) ? n[i] = ta(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
2590
2593
  }), n;
2591
2594
  }
2592
- function De(e, t, r) {
2593
- r = r || {}, r.arrayMerge = r.arrayMerge || zs, r.isMergeableObject = r.isMergeableObject || Us, r.cloneUnlessOtherwiseSpecified = et;
2595
+ function Ue(e, t, r) {
2596
+ r = r || {}, r.arrayMerge = r.arrayMerge || ea, r.isMergeableObject = r.isMergeableObject || zs, r.cloneUnlessOtherwiseSpecified = at;
2594
2597
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
2595
- return s ? n ? r.arrayMerge(e, t, r) : Js(e, t, r) : et(t, r);
2598
+ return s ? n ? r.arrayMerge(e, t, r) : ia(e, t, r) : at(t, r);
2596
2599
  }
2597
- De.all = function(t, r) {
2600
+ Ue.all = function(t, r) {
2598
2601
  if (!Array.isArray(t))
2599
2602
  throw new Error("first argument should be an array");
2600
2603
  return t.reduce(function(n, i) {
2601
- return De(n, i, r);
2604
+ return Ue(n, i, r);
2602
2605
  }, {});
2603
2606
  };
2604
- var Ks = De, ea = Ks;
2605
- const ta = /* @__PURE__ */ ks(ea);
2606
- var Jt = function(e, t) {
2607
- return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2607
+ var sa = Ue, aa = sa;
2608
+ const oa = /* @__PURE__ */ Ws(aa);
2609
+ var tr = function(e, t) {
2610
+ return tr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2608
2611
  r.__proto__ = n;
2609
2612
  } || function(r, n) {
2610
2613
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
2611
- }, Jt(e, t);
2614
+ }, tr(e, t);
2612
2615
  };
2613
- function Ot(e, t) {
2616
+ function Mt(e, t) {
2614
2617
  if (typeof t != "function" && t !== null)
2615
2618
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2616
- Jt(e, t);
2619
+ tr(e, t);
2617
2620
  function r() {
2618
2621
  this.constructor = e;
2619
2622
  }
2620
2623
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
2621
2624
  }
2622
- var Q = function() {
2623
- return Q = Object.assign || function(t) {
2625
+ var K = function() {
2626
+ return K = Object.assign || function(t) {
2624
2627
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2625
2628
  r = arguments[n];
2626
2629
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2627
2630
  }
2628
2631
  return t;
2629
- }, Q.apply(this, arguments);
2632
+ }, K.apply(this, arguments);
2630
2633
  };
2631
- function ra(e, t) {
2634
+ function ua(e, t) {
2632
2635
  var r = {};
2633
2636
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2634
2637
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2636,42 +2639,42 @@ function ra(e, t) {
2636
2639
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
2637
2640
  return r;
2638
2641
  }
2639
- function $t(e, t, r) {
2642
+ function Ft(e, t, r) {
2640
2643
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
2641
2644
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
2642
2645
  return e.concat(s || Array.prototype.slice.call(t));
2643
2646
  }
2644
- function Dt(e, t) {
2645
- var r = t && t.cache ? t.cache : la, n = t && t.serializer ? t.serializer : oa, i = t && t.strategy ? t.strategy : sa;
2647
+ function Gt(e, t) {
2648
+ var r = t && t.cache ? t.cache : va, n = t && t.serializer ? t.serializer : da, i = t && t.strategy ? t.strategy : ha;
2646
2649
  return i(e, {
2647
2650
  cache: r,
2648
2651
  serializer: n
2649
2652
  });
2650
2653
  }
2651
- function na(e) {
2654
+ function la(e) {
2652
2655
  return e == null || typeof e == "number" || typeof e == "boolean";
2653
2656
  }
2654
- function ia(e, t, r, n) {
2655
- var i = na(n) ? n : r(n), s = t.get(i);
2657
+ function fa(e, t, r, n) {
2658
+ var i = la(n) ? n : r(n), s = t.get(i);
2656
2659
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
2657
2660
  }
2658
- function Gn(e, t, r) {
2661
+ function Qn(e, t, r) {
2659
2662
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
2660
2663
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
2661
2664
  }
2662
- function jn(e, t, r, n, i) {
2665
+ function Jn(e, t, r, n, i) {
2663
2666
  return r.bind(t, e, n, i);
2664
2667
  }
2665
- function sa(e, t) {
2666
- var r = e.length === 1 ? ia : Gn;
2667
- return jn(e, this, r, t.cache.create(), t.serializer);
2668
+ function ha(e, t) {
2669
+ var r = e.length === 1 ? fa : Qn;
2670
+ return Jn(e, this, r, t.cache.create(), t.serializer);
2668
2671
  }
2669
- function aa(e, t) {
2670
- return jn(e, this, Gn, t.cache.create(), t.serializer);
2672
+ function ca(e, t) {
2673
+ return Jn(e, this, Qn, t.cache.create(), t.serializer);
2671
2674
  }
2672
- var oa = function() {
2675
+ var da = function() {
2673
2676
  return JSON.stringify(arguments);
2674
- }, ua = (
2677
+ }, pa = (
2675
2678
  /** @class */
2676
2679
  function() {
2677
2680
  function e() {
@@ -2683,20 +2686,20 @@ var oa = function() {
2683
2686
  this.cache[t] = r;
2684
2687
  }, e;
2685
2688
  }()
2686
- ), la = {
2689
+ ), va = {
2687
2690
  create: function() {
2688
- return new ua();
2691
+ return new pa();
2689
2692
  }
2690
- }, Ft = {
2691
- variadic: aa
2692
- }, xt = function() {
2693
- return xt = Object.assign || function(t) {
2693
+ }, jt = {
2694
+ variadic: ca
2695
+ }, Nt = function() {
2696
+ return Nt = Object.assign || function(t) {
2694
2697
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2695
2698
  r = arguments[n];
2696
2699
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2697
2700
  }
2698
2701
  return t;
2699
- }, xt.apply(this, arguments);
2702
+ }, Nt.apply(this, arguments);
2700
2703
  };
2701
2704
  var v;
2702
2705
  (function(e) {
@@ -2710,43 +2713,43 @@ var Fe;
2710
2713
  (function(e) {
2711
2714
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
2712
2715
  })(Fe || (Fe = {}));
2713
- function Pr(e) {
2716
+ function Mr(e) {
2714
2717
  return e.type === w.literal;
2715
2718
  }
2716
- function fa(e) {
2719
+ function _a(e) {
2717
2720
  return e.type === w.argument;
2718
2721
  }
2719
- function Vn(e) {
2722
+ function Kn(e) {
2720
2723
  return e.type === w.number;
2721
2724
  }
2722
- function Xn(e) {
2725
+ function ei(e) {
2723
2726
  return e.type === w.date;
2724
2727
  }
2725
- function Wn(e) {
2728
+ function ti(e) {
2726
2729
  return e.type === w.time;
2727
2730
  }
2728
- function qn(e) {
2731
+ function ri(e) {
2729
2732
  return e.type === w.select;
2730
2733
  }
2731
- function zn(e) {
2734
+ function ni(e) {
2732
2735
  return e.type === w.plural;
2733
2736
  }
2734
- function ha(e) {
2737
+ function ma(e) {
2735
2738
  return e.type === w.pound;
2736
2739
  }
2737
- function Zn(e) {
2740
+ function ii(e) {
2738
2741
  return e.type === w.tag;
2739
2742
  }
2740
- function Yn(e) {
2743
+ function si(e) {
2741
2744
  return !!(e && typeof e == "object" && e.type === Fe.number);
2742
2745
  }
2743
- function Kt(e) {
2746
+ function rr(e) {
2744
2747
  return !!(e && typeof e == "object" && e.type === Fe.dateTime);
2745
2748
  }
2746
- var Qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ca = /(?:[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;
2747
- function da(e) {
2749
+ var ai = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ba = /(?:[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;
2750
+ function ga(e) {
2748
2751
  var t = {};
2749
- return e.replace(ca, function(r) {
2752
+ return e.replace(ba, function(r) {
2750
2753
  var n = r.length;
2751
2754
  switch (r[0]) {
2752
2755
  case "G":
@@ -2835,20 +2838,20 @@ function da(e) {
2835
2838
  return "";
2836
2839
  }), t;
2837
2840
  }
2838
- var T = function() {
2839
- return T = Object.assign || function(t) {
2841
+ var S = function() {
2842
+ return S = Object.assign || function(t) {
2840
2843
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2841
2844
  r = arguments[n];
2842
2845
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2843
2846
  }
2844
2847
  return t;
2845
- }, T.apply(this, arguments);
2848
+ }, S.apply(this, arguments);
2846
2849
  };
2847
- var pa = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2848
- function va(e) {
2850
+ var ya = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2851
+ function Ea(e) {
2849
2852
  if (e.length === 0)
2850
2853
  throw new Error("Number skeleton cannot be empty");
2851
- for (var t = e.split(pa).filter(function(h) {
2854
+ for (var t = e.split(ya).filter(function(h) {
2852
2855
  return h.length > 0;
2853
2856
  }), r = [], n = 0, i = t; n < i.length; n++) {
2854
2857
  var s = i[n], a = s.split("/");
@@ -2863,17 +2866,17 @@ function va(e) {
2863
2866
  }
2864
2867
  return r;
2865
2868
  }
2866
- function _a(e) {
2869
+ function xa(e) {
2867
2870
  return e.replace(/^(.*?)-/, "");
2868
2871
  }
2869
- var Cr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jn = /^(@+)?(\+|#+)?[rs]?$/g, ma = /(\*)(0+)|(#+)(0+)|(0+)/g, Kn = /^(0+)$/;
2870
- function Ir(e) {
2872
+ var $r = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oi = /^(@+)?(\+|#+)?[rs]?$/g, wa = /(\*)(0+)|(#+)(0+)|(0+)/g, ui = /^(0+)$/;
2873
+ function kr(e) {
2871
2874
  var t = {};
2872
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jn, function(r, n, i) {
2875
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(oi, function(r, n, i) {
2873
2876
  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)), "";
2874
2877
  }), t;
2875
2878
  }
2876
- function ei(e) {
2879
+ function li(e) {
2877
2880
  switch (e) {
2878
2881
  case "sign-auto":
2879
2882
  return {
@@ -2913,7 +2916,7 @@ function ei(e) {
2913
2916
  };
2914
2917
  }
2915
2918
  }
2916
- function ba(e) {
2919
+ function Ta(e) {
2917
2920
  var t;
2918
2921
  if (e[0] === "E" && e[1] === "E" ? (t = {
2919
2922
  notation: "engineering"
@@ -2921,17 +2924,17 @@ function ba(e) {
2921
2924
  notation: "scientific"
2922
2925
  }, e = e.slice(1)), t) {
2923
2926
  var r = e.slice(0, 2);
2924
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kn.test(e))
2927
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ui.test(e))
2925
2928
  throw new Error("Malformed concise eng/scientific notation");
2926
2929
  t.minimumIntegerDigits = e.length;
2927
2930
  }
2928
2931
  return t;
2929
2932
  }
2930
- function Rr(e) {
2931
- var t = {}, r = ei(e);
2933
+ function Dr(e) {
2934
+ var t = {}, r = li(e);
2932
2935
  return r || t;
2933
2936
  }
2934
- function ga(e) {
2937
+ function Sa(e) {
2935
2938
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2936
2939
  var i = n[r];
2937
2940
  switch (i.stem) {
@@ -2955,7 +2958,7 @@ function ga(e) {
2955
2958
  continue;
2956
2959
  case "measure-unit":
2957
2960
  case "unit":
2958
- t.style = "unit", t.unit = _a(i.options[0]);
2961
+ t.style = "unit", t.unit = xa(i.options[0]);
2959
2962
  continue;
2960
2963
  case "compact-short":
2961
2964
  case "K":
@@ -2966,13 +2969,13 @@ function ga(e) {
2966
2969
  t.notation = "compact", t.compactDisplay = "long";
2967
2970
  continue;
2968
2971
  case "scientific":
2969
- t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
2970
- return T(T({}, u), Rr(l));
2972
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
2973
+ return S(S({}, u), Dr(l));
2971
2974
  }, {}));
2972
2975
  continue;
2973
2976
  case "engineering":
2974
- t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
2975
- return T(T({}, u), Rr(l));
2977
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
2978
+ return S(S({}, u), Dr(l));
2976
2979
  }, {}));
2977
2980
  continue;
2978
2981
  case "notation-simple":
@@ -3017,7 +3020,7 @@ function ga(e) {
3017
3020
  case "integer-width":
3018
3021
  if (i.options.length > 1)
3019
3022
  throw new RangeError("integer-width stems only accept a single optional option");
3020
- i.options[0].replace(ma, function(u, l, f, c, h, d) {
3023
+ i.options[0].replace(wa, function(u, l, f, c, h, d) {
3021
3024
  if (l)
3022
3025
  t.minimumIntegerDigits = f.length;
3023
3026
  else {
@@ -3030,32 +3033,32 @@ function ga(e) {
3030
3033
  });
3031
3034
  continue;
3032
3035
  }
3033
- if (Kn.test(i.stem)) {
3036
+ if (ui.test(i.stem)) {
3034
3037
  t.minimumIntegerDigits = i.stem.length;
3035
3038
  continue;
3036
3039
  }
3037
- if (Cr.test(i.stem)) {
3040
+ if ($r.test(i.stem)) {
3038
3041
  if (i.options.length > 1)
3039
3042
  throw new RangeError("Fraction-precision stems only accept a single optional option");
3040
- i.stem.replace(Cr, function(u, l, f, c, h, d) {
3043
+ i.stem.replace($r, function(u, l, f, c, h, d) {
3041
3044
  return f === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
3042
3045
  });
3043
3046
  var s = i.options[0];
3044
- s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), Ir(s)));
3047
+ s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), kr(s)));
3045
3048
  continue;
3046
3049
  }
3047
- if (Jn.test(i.stem)) {
3048
- t = T(T({}, t), Ir(i.stem));
3050
+ if (oi.test(i.stem)) {
3051
+ t = S(S({}, t), kr(i.stem));
3049
3052
  continue;
3050
3053
  }
3051
- var a = ei(i.stem);
3052
- a && (t = T(T({}, t), a));
3053
- var o = ba(i.stem);
3054
- o && (t = T(T({}, t), o));
3054
+ var a = li(i.stem);
3055
+ a && (t = S(S({}, t), a));
3056
+ var o = Ta(i.stem);
3057
+ o && (t = S(S({}, t), o));
3055
3058
  }
3056
3059
  return t;
3057
3060
  }
3058
- var ht = {
3061
+ var gt = {
3059
3062
  "001": [
3060
3063
  "H",
3061
3064
  "h"
@@ -4470,13 +4473,13 @@ var ht = {
4470
4473
  "h"
4471
4474
  ]
4472
4475
  };
4473
- function ya(e, t) {
4476
+ function Ha(e, t) {
4474
4477
  for (var r = "", n = 0; n < e.length; n++) {
4475
4478
  var i = e.charAt(n);
4476
4479
  if (i === "j") {
4477
4480
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
4478
4481
  s++, n++;
4479
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Ea(t);
4482
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Aa(t);
4480
4483
  for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
4481
4484
  r += u;
4482
4485
  for (; a-- > 0; )
@@ -4485,7 +4488,7 @@ function ya(e, t) {
4485
4488
  }
4486
4489
  return r;
4487
4490
  }
4488
- function Ea(e) {
4491
+ function Aa(e) {
4489
4492
  var t = e.hourCycle;
4490
4493
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4491
4494
  e.hourCycles && // @ts-ignore
@@ -4504,23 +4507,23 @@ function Ea(e) {
4504
4507
  }
4505
4508
  var r = e.language, n;
4506
4509
  r !== "root" && (n = e.maximize().region);
4507
- var i = ht[n || ""] || ht[r || ""] || ht["".concat(r, "-001")] || ht["001"];
4510
+ var i = gt[n || ""] || gt[r || ""] || gt["".concat(r, "-001")] || gt["001"];
4508
4511
  return i[0];
4509
4512
  }
4510
- var kt, xa = new RegExp("^".concat(Qn.source, "*")), wa = new RegExp("".concat(Qn.source, "*$"));
4513
+ var Vt, Ba = new RegExp("^".concat(ai.source, "*")), Na = new RegExp("".concat(ai.source, "*$"));
4511
4514
  function m(e, t) {
4512
4515
  return { start: e, end: t };
4513
4516
  }
4514
- var Ta = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sa = !!String.fromCodePoint, Ha = !!Object.fromEntries, Aa = !!String.prototype.codePointAt, Ba = !!String.prototype.trimStart, Na = !!String.prototype.trimEnd, Oa = !!Number.isSafeInteger, Pa = Oa ? Number.isSafeInteger : function(e) {
4517
+ var Oa = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pa = !!String.fromCodePoint, Ca = !!Object.fromEntries, Ia = !!String.prototype.codePointAt, Ra = !!String.prototype.trimStart, La = !!String.prototype.trimEnd, Ma = !!Number.isSafeInteger, $a = Ma ? Number.isSafeInteger : function(e) {
4515
4518
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
4516
- }, er = !0;
4519
+ }, nr = !0;
4517
4520
  try {
4518
- var Ca = ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4519
- er = ((kt = Ca.exec("a")) === null || kt === void 0 ? void 0 : kt[0]) === "a";
4521
+ var ka = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4522
+ nr = ((Vt = ka.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
4520
4523
  } catch {
4521
- er = !1;
4524
+ nr = !1;
4522
4525
  }
4523
- var Lr = Ta ? (
4526
+ var Ur = Oa ? (
4524
4527
  // Native
4525
4528
  function(t, r, n) {
4526
4529
  return t.startsWith(r, n);
@@ -4530,7 +4533,7 @@ var Lr = Ta ? (
4530
4533
  function(t, r, n) {
4531
4534
  return t.slice(n, n + r.length) === r;
4532
4535
  }
4533
- ), tr = Sa ? String.fromCodePoint : (
4536
+ ), ir = Pa ? String.fromCodePoint : (
4534
4537
  // IE11
4535
4538
  function() {
4536
4539
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -4542,9 +4545,9 @@ var Lr = Ta ? (
4542
4545
  }
4543
4546
  return n;
4544
4547
  }
4545
- ), Mr = (
4548
+ ), Fr = (
4546
4549
  // native
4547
- Ha ? Object.fromEntries : (
4550
+ Ca ? Object.fromEntries : (
4548
4551
  // Ponyfill
4549
4552
  function(t) {
4550
4553
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -4554,7 +4557,7 @@ var Lr = Ta ? (
4554
4557
  return r;
4555
4558
  }
4556
4559
  )
4557
- ), ti = Aa ? (
4560
+ ), fi = Ia ? (
4558
4561
  // Native
4559
4562
  function(t, r) {
4560
4563
  return t.codePointAt(r);
@@ -4568,7 +4571,7 @@ var Lr = Ta ? (
4568
4571
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
4569
4572
  }
4570
4573
  }
4571
- ), Ia = Ba ? (
4574
+ ), Da = Ra ? (
4572
4575
  // Native
4573
4576
  function(t) {
4574
4577
  return t.trimStart();
@@ -4576,9 +4579,9 @@ var Lr = Ta ? (
4576
4579
  ) : (
4577
4580
  // Ponyfill
4578
4581
  function(t) {
4579
- return t.replace(xa, "");
4582
+ return t.replace(Ba, "");
4580
4583
  }
4581
- ), Ra = Na ? (
4584
+ ), Ua = La ? (
4582
4585
  // Native
4583
4586
  function(t) {
4584
4587
  return t.trimEnd();
@@ -4586,32 +4589,32 @@ var Lr = Ta ? (
4586
4589
  ) : (
4587
4590
  // Ponyfill
4588
4591
  function(t) {
4589
- return t.replace(wa, "");
4592
+ return t.replace(Na, "");
4590
4593
  }
4591
4594
  );
4592
- function ri(e, t) {
4595
+ function hi(e, t) {
4593
4596
  return new RegExp(e, t);
4594
4597
  }
4595
- var rr;
4596
- if (er) {
4597
- var $r = ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4598
- rr = function(t, r) {
4598
+ var sr;
4599
+ if (nr) {
4600
+ var Gr = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4601
+ sr = function(t, r) {
4599
4602
  var n;
4600
- $r.lastIndex = r;
4601
- var i = $r.exec(t);
4603
+ Gr.lastIndex = r;
4604
+ var i = Gr.exec(t);
4602
4605
  return (n = i[1]) !== null && n !== void 0 ? n : "";
4603
4606
  };
4604
4607
  } else
4605
- rr = function(t, r) {
4608
+ sr = function(t, r) {
4606
4609
  for (var n = []; ; ) {
4607
- var i = ti(t, r);
4608
- if (i === void 0 || ni(i) || Da(i))
4610
+ var i = fi(t, r);
4611
+ if (i === void 0 || ci(i) || Va(i))
4609
4612
  break;
4610
4613
  n.push(i), r += i >= 65536 ? 2 : 1;
4611
4614
  }
4612
- return tr.apply(void 0, n);
4615
+ return ir.apply(void 0, n);
4613
4616
  };
4614
- var La = (
4617
+ var Fa = (
4615
4618
  /** @class */
4616
4619
  function() {
4617
4620
  function e(t, r) {
@@ -4642,7 +4645,7 @@ var La = (
4642
4645
  if (n)
4643
4646
  break;
4644
4647
  return this.error(v.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
4645
- } else if (s === 60 && !this.ignoreTag && nr(this.peek() || 0)) {
4648
+ } else if (s === 60 && !this.ignoreTag && ar(this.peek() || 0)) {
4646
4649
  var a = this.parseTag(t, r);
4647
4650
  if (a.err)
4648
4651
  return a;
@@ -4675,7 +4678,7 @@ var La = (
4675
4678
  return s;
4676
4679
  var a = s.val, o = this.clonePosition();
4677
4680
  if (this.bumpIf("</")) {
4678
- if (this.isEOF() || !nr(this.char()))
4681
+ if (this.isEOF() || !ar(this.char()))
4679
4682
  return this.error(v.INVALID_TAG, m(o, this.clonePosition()));
4680
4683
  var u = this.clonePosition(), l = this.parseTagName();
4681
4684
  return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, m(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -4693,7 +4696,7 @@ var La = (
4693
4696
  return this.error(v.INVALID_TAG, m(n, this.clonePosition()));
4694
4697
  }, e.prototype.parseTagName = function() {
4695
4698
  var t = this.offset();
4696
- for (this.bump(); !this.isEOF() && $a(this.char()); )
4699
+ for (this.bump(); !this.isEOF() && ja(this.char()); )
4697
4700
  this.bump();
4698
4701
  return this.message.slice(t, this.offset());
4699
4702
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4722,7 +4725,7 @@ var La = (
4722
4725
  };
4723
4726
  }, e.prototype.tryParseLeftAngleBracket = function() {
4724
4727
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4725
- !Ma(this.peek() || 0)) ? (this.bump(), "<") : null;
4728
+ !Ga(this.peek() || 0)) ? (this.bump(), "<") : null;
4726
4729
  }, e.prototype.tryParseQuote = function(t) {
4727
4730
  if (this.isEOF() || this.char() !== 39)
4728
4731
  return null;
@@ -4756,12 +4759,12 @@ var La = (
4756
4759
  r.push(n);
4757
4760
  this.bump();
4758
4761
  }
4759
- return tr.apply(void 0, r);
4762
+ return ir.apply(void 0, r);
4760
4763
  }, e.prototype.tryParseUnquoted = function(t, r) {
4761
4764
  if (this.isEOF())
4762
4765
  return null;
4763
4766
  var n = this.char();
4764
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tr(n));
4767
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ir(n));
4765
4768
  }, e.prototype.parseArgument = function(t, r) {
4766
4769
  var n = this.clonePosition();
4767
4770
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -4790,7 +4793,7 @@ var La = (
4790
4793
  return this.error(v.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
4791
4794
  }
4792
4795
  }, e.prototype.parseIdentifierIfPossible = function() {
4793
- var t = this.clonePosition(), r = this.offset(), n = rr(this.message, r), i = r + n.length;
4796
+ var t = this.clonePosition(), r = this.offset(), n = sr(this.message, r), i = r + n.length;
4794
4797
  this.bumpTo(i);
4795
4798
  var s = this.clonePosition(), a = m(t, s);
4796
4799
  return { value: n, location: a };
@@ -4809,7 +4812,7 @@ var La = (
4809
4812
  var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
4810
4813
  if (c.err)
4811
4814
  return c;
4812
- var h = Ra(c.val);
4815
+ var h = Ua(c.val);
4813
4816
  if (h.length === 0)
4814
4817
  return this.error(v.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
4815
4818
  var d = m(f, this.clonePosition());
@@ -4818,28 +4821,28 @@ var La = (
4818
4821
  var p = this.tryParseArgumentClose(i);
4819
4822
  if (p.err)
4820
4823
  return p;
4821
- var y = m(i, this.clonePosition());
4822
- if (l && Lr(l?.style, "::", 0)) {
4823
- var H = Ia(l.style.slice(2));
4824
+ var E = m(i, this.clonePosition());
4825
+ if (l && Ur(l?.style, "::", 0)) {
4826
+ var T = Da(l.style.slice(2));
4824
4827
  if (o === "number") {
4825
- var c = this.parseNumberSkeletonFromString(H, l.styleLocation);
4828
+ var c = this.parseNumberSkeletonFromString(T, l.styleLocation);
4826
4829
  return c.err ? c : {
4827
- val: { type: w.number, value: n, location: y, style: c.val },
4830
+ val: { type: w.number, value: n, location: E, style: c.val },
4828
4831
  err: null
4829
4832
  };
4830
4833
  } else {
4831
- if (H.length === 0)
4832
- return this.error(v.EXPECT_DATE_TIME_SKELETON, y);
4833
- var Y = H;
4834
- this.locale && (Y = ya(H, this.locale));
4834
+ if (T.length === 0)
4835
+ return this.error(v.EXPECT_DATE_TIME_SKELETON, E);
4836
+ var J = T;
4837
+ this.locale && (J = Ha(T, this.locale));
4835
4838
  var h = {
4836
4839
  type: Fe.dateTime,
4837
- pattern: Y,
4840
+ pattern: J,
4838
4841
  location: l.styleLocation,
4839
- parsedOptions: this.shouldParseSkeletons ? da(Y) : {}
4840
- }, k = o === "date" ? w.date : w.time;
4842
+ parsedOptions: this.shouldParseSkeletons ? ga(J) : {}
4843
+ }, D = o === "date" ? w.date : w.time;
4841
4844
  return {
4842
- val: { type: k, value: n, location: y, style: h },
4845
+ val: { type: D, value: n, location: E, style: h },
4843
4846
  err: null
4844
4847
  };
4845
4848
  }
@@ -4848,7 +4851,7 @@ var La = (
4848
4851
  val: {
4849
4852
  type: o === "number" ? w.number : o === "date" ? w.date : w.time,
4850
4853
  value: n,
4851
- location: y,
4854
+ location: E,
4852
4855
  style: (s = l?.style) !== null && s !== void 0 ? s : null
4853
4856
  },
4854
4857
  err: null
@@ -4857,43 +4860,43 @@ var La = (
4857
4860
  case "plural":
4858
4861
  case "selectordinal":
4859
4862
  case "select": {
4860
- var D = this.clonePosition();
4863
+ var F = this.clonePosition();
4861
4864
  if (this.bumpSpace(), !this.bumpIf(","))
4862
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(D, xt({}, D)));
4865
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(F, Nt({}, F)));
4863
4866
  this.bumpSpace();
4864
- var be = this.parseIdentifierIfPossible(), te = 0;
4865
- if (o !== "select" && be.value === "offset") {
4867
+ var ge = this.parseIdentifierIfPossible(), re = 0;
4868
+ if (o !== "select" && ge.value === "offset") {
4866
4869
  if (!this.bumpIf(":"))
4867
4870
  return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
4868
4871
  this.bumpSpace();
4869
4872
  var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
4870
4873
  if (c.err)
4871
4874
  return c;
4872
- this.bumpSpace(), be = this.parseIdentifierIfPossible(), te = c.val;
4875
+ this.bumpSpace(), ge = this.parseIdentifierIfPossible(), re = c.val;
4873
4876
  }
4874
- var Be = this.tryParsePluralOrSelectOptions(t, o, r, be);
4875
- if (Be.err)
4876
- return Be;
4877
+ var ye = this.tryParsePluralOrSelectOptions(t, o, r, ge);
4878
+ if (ye.err)
4879
+ return ye;
4877
4880
  var p = this.tryParseArgumentClose(i);
4878
4881
  if (p.err)
4879
4882
  return p;
4880
- var x = m(i, this.clonePosition());
4883
+ var ct = m(i, this.clonePosition());
4881
4884
  return o === "select" ? {
4882
4885
  val: {
4883
4886
  type: w.select,
4884
4887
  value: n,
4885
- options: Mr(Be.val),
4886
- location: x
4888
+ options: Fr(ye.val),
4889
+ location: ct
4887
4890
  },
4888
4891
  err: null
4889
4892
  } : {
4890
4893
  val: {
4891
4894
  type: w.plural,
4892
4895
  value: n,
4893
- options: Mr(Be.val),
4894
- offset: te,
4896
+ options: Fr(ye.val),
4897
+ offset: re,
4895
4898
  pluralType: o === "plural" ? "cardinal" : "ordinal",
4896
- location: x
4899
+ location: ct
4897
4900
  },
4898
4901
  err: null
4899
4902
  };
@@ -4941,7 +4944,7 @@ var La = (
4941
4944
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4942
4945
  var n = [];
4943
4946
  try {
4944
- n = va(t);
4947
+ n = Ea(t);
4945
4948
  } catch {
4946
4949
  return this.error(v.INVALID_NUMBER_SKELETON, r);
4947
4950
  }
@@ -4950,7 +4953,7 @@ var La = (
4950
4953
  type: Fe.number,
4951
4954
  tokens: n,
4952
4955
  location: r,
4953
- parsedOptions: this.shouldParseSkeletons ? ga(n) : {}
4956
+ parsedOptions: this.shouldParseSkeletons ? Sa(n) : {}
4954
4957
  },
4955
4958
  err: null
4956
4959
  };
@@ -4975,9 +4978,9 @@ var La = (
4975
4978
  var p = this.parseMessage(t + 1, r, n);
4976
4979
  if (p.err)
4977
4980
  return p;
4978
- var y = this.tryParseArgumentClose(d);
4979
- if (y.err)
4980
- return y;
4981
+ var E = this.tryParseArgumentClose(d);
4982
+ if (E.err)
4983
+ return E;
4981
4984
  o.push([
4982
4985
  l,
4983
4986
  {
@@ -4998,7 +5001,7 @@ var La = (
4998
5001
  break;
4999
5002
  }
5000
5003
  var u = m(i, this.clonePosition());
5001
- return s ? (a *= n, Pa(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
5004
+ return s ? (a *= n, $a(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
5002
5005
  }, e.prototype.offset = function() {
5003
5006
  return this.position.offset;
5004
5007
  }, e.prototype.isEOF = function() {
@@ -5013,7 +5016,7 @@ var La = (
5013
5016
  var t = this.position.offset;
5014
5017
  if (t >= this.message.length)
5015
5018
  throw Error("out of bound");
5016
- var r = ti(this.message, t);
5019
+ var r = fi(this.message, t);
5017
5020
  if (r === void 0)
5018
5021
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
5019
5022
  return r;
@@ -5032,7 +5035,7 @@ var La = (
5032
5035
  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);
5033
5036
  }
5034
5037
  }, e.prototype.bumpIf = function(t) {
5035
- if (Lr(this.message, t, this.offset())) {
5038
+ if (Ur(this.message, t, this.offset())) {
5036
5039
  for (var r = 0; r < t.length; r++)
5037
5040
  this.bump();
5038
5041
  return !0;
@@ -5054,7 +5057,7 @@ var La = (
5054
5057
  break;
5055
5058
  }
5056
5059
  }, e.prototype.bumpSpace = function() {
5057
- for (; !this.isEOF() && ni(this.char()); )
5060
+ for (; !this.isEOF() && ci(this.char()); )
5058
5061
  this.bump();
5059
5062
  }, e.prototype.peek = function() {
5060
5063
  if (this.isEOF())
@@ -5064,46 +5067,46 @@ var La = (
5064
5067
  }, e;
5065
5068
  }()
5066
5069
  );
5067
- function nr(e) {
5070
+ function ar(e) {
5068
5071
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5069
5072
  }
5070
- function Ma(e) {
5071
- return nr(e) || e === 47;
5073
+ function Ga(e) {
5074
+ return ar(e) || e === 47;
5072
5075
  }
5073
- function $a(e) {
5076
+ function ja(e) {
5074
5077
  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;
5075
5078
  }
5076
- function ni(e) {
5079
+ function ci(e) {
5077
5080
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5078
5081
  }
5079
- function Da(e) {
5082
+ function Va(e) {
5080
5083
  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;
5081
5084
  }
5082
- function ir(e) {
5085
+ function or(e) {
5083
5086
  e.forEach(function(t) {
5084
- if (delete t.location, qn(t) || zn(t))
5087
+ if (delete t.location, ri(t) || ni(t))
5085
5088
  for (var r in t.options)
5086
- delete t.options[r].location, ir(t.options[r].value);
5087
- else Vn(t) && Yn(t.style) || (Xn(t) || Wn(t)) && Kt(t.style) ? delete t.style.location : Zn(t) && ir(t.children);
5089
+ delete t.options[r].location, or(t.options[r].value);
5090
+ else Kn(t) && si(t.style) || (ei(t) || ti(t)) && rr(t.style) ? delete t.style.location : ii(t) && or(t.children);
5088
5091
  });
5089
5092
  }
5090
- function Fa(e, t) {
5091
- t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5092
- var r = new La(e, t).parse();
5093
+ function Xa(e, t) {
5094
+ t === void 0 && (t = {}), t = Nt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5095
+ var r = new Fa(e, t).parse();
5093
5096
  if (r.err) {
5094
5097
  var n = SyntaxError(v[r.err.kind]);
5095
5098
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5096
5099
  }
5097
- return t?.captureLocation || ir(r.val), r.val;
5100
+ return t?.captureLocation || or(r.val), r.val;
5098
5101
  }
5099
- var ke;
5102
+ var Ge;
5100
5103
  (function(e) {
5101
5104
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5102
- })(ke || (ke = {}));
5103
- var Pt = (
5105
+ })(Ge || (Ge = {}));
5106
+ var $t = (
5104
5107
  /** @class */
5105
5108
  function(e) {
5106
- Ot(t, e);
5109
+ Mt(t, e);
5107
5110
  function t(r, n, i) {
5108
5111
  var s = e.call(this, r) || this;
5109
5112
  return s.code = n, s.originalMessage = i, s;
@@ -5112,155 +5115,155 @@ var Pt = (
5112
5115
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
5113
5116
  }, t;
5114
5117
  }(Error)
5115
- ), Dr = (
5118
+ ), jr = (
5116
5119
  /** @class */
5117
5120
  function(e) {
5118
- Ot(t, e);
5121
+ Mt(t, e);
5119
5122
  function t(r, n, i, s) {
5120
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, s) || this;
5123
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, s) || this;
5121
5124
  }
5122
5125
  return t;
5123
- }(Pt)
5124
- ), ka = (
5126
+ }($t)
5127
+ ), Wa = (
5125
5128
  /** @class */
5126
5129
  function(e) {
5127
- Ot(t, e);
5130
+ Mt(t, e);
5128
5131
  function t(r, n, i) {
5129
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ke.INVALID_VALUE, i) || this;
5132
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
5130
5133
  }
5131
5134
  return t;
5132
- }(Pt)
5133
- ), Ua = (
5135
+ }($t)
5136
+ ), za = (
5134
5137
  /** @class */
5135
5138
  function(e) {
5136
- Ot(t, e);
5139
+ Mt(t, e);
5137
5140
  function t(r, n) {
5138
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ke.MISSING_VALUE, n) || this;
5141
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
5139
5142
  }
5140
5143
  return t;
5141
- }(Pt)
5142
- ), C;
5144
+ }($t)
5145
+ ), R;
5143
5146
  (function(e) {
5144
5147
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5145
- })(C || (C = {}));
5146
- function Ga(e) {
5148
+ })(R || (R = {}));
5149
+ function qa(e) {
5147
5150
  return e.length < 2 ? e : e.reduce(function(t, r) {
5148
5151
  var n = t[t.length - 1];
5149
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
5152
+ return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
5150
5153
  }, []);
5151
5154
  }
5152
- function ja(e) {
5155
+ function Za(e) {
5153
5156
  return typeof e == "function";
5154
5157
  }
5155
- function pt(e, t, r, n, i, s, a) {
5156
- if (e.length === 1 && Pr(e[0]))
5158
+ function Et(e, t, r, n, i, s, a) {
5159
+ if (e.length === 1 && Mr(e[0]))
5157
5160
  return [
5158
5161
  {
5159
- type: C.literal,
5162
+ type: R.literal,
5160
5163
  value: e[0].value
5161
5164
  }
5162
5165
  ];
5163
5166
  for (var o = [], u = 0, l = e; u < l.length; u++) {
5164
5167
  var f = l[u];
5165
- if (Pr(f)) {
5168
+ if (Mr(f)) {
5166
5169
  o.push({
5167
- type: C.literal,
5170
+ type: R.literal,
5168
5171
  value: f.value
5169
5172
  });
5170
5173
  continue;
5171
5174
  }
5172
- if (ha(f)) {
5175
+ if (ma(f)) {
5173
5176
  typeof s == "number" && o.push({
5174
- type: C.literal,
5177
+ type: R.literal,
5175
5178
  value: r.getNumberFormat(t).format(s)
5176
5179
  });
5177
5180
  continue;
5178
5181
  }
5179
5182
  var c = f.value;
5180
5183
  if (!(i && c in i))
5181
- throw new Ua(c, a);
5184
+ throw new za(c, a);
5182
5185
  var h = i[c];
5183
- if (fa(f)) {
5186
+ if (_a(f)) {
5184
5187
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
5185
- type: typeof h == "string" ? C.literal : C.object,
5188
+ type: typeof h == "string" ? R.literal : R.object,
5186
5189
  value: h
5187
5190
  });
5188
5191
  continue;
5189
5192
  }
5190
- if (Xn(f)) {
5191
- var d = typeof f.style == "string" ? n.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
5193
+ if (ei(f)) {
5194
+ var d = typeof f.style == "string" ? n.date[f.style] : rr(f.style) ? f.style.parsedOptions : void 0;
5192
5195
  o.push({
5193
- type: C.literal,
5196
+ type: R.literal,
5194
5197
  value: r.getDateTimeFormat(t, d).format(h)
5195
5198
  });
5196
5199
  continue;
5197
5200
  }
5198
- if (Wn(f)) {
5199
- var d = typeof f.style == "string" ? n.time[f.style] : Kt(f.style) ? f.style.parsedOptions : n.time.medium;
5201
+ if (ti(f)) {
5202
+ var d = typeof f.style == "string" ? n.time[f.style] : rr(f.style) ? f.style.parsedOptions : n.time.medium;
5200
5203
  o.push({
5201
- type: C.literal,
5204
+ type: R.literal,
5202
5205
  value: r.getDateTimeFormat(t, d).format(h)
5203
5206
  });
5204
5207
  continue;
5205
5208
  }
5206
- if (Vn(f)) {
5207
- var d = typeof f.style == "string" ? n.number[f.style] : Yn(f.style) ? f.style.parsedOptions : void 0;
5209
+ if (Kn(f)) {
5210
+ var d = typeof f.style == "string" ? n.number[f.style] : si(f.style) ? f.style.parsedOptions : void 0;
5208
5211
  d && d.scale && (h = h * (d.scale || 1)), o.push({
5209
- type: C.literal,
5212
+ type: R.literal,
5210
5213
  value: r.getNumberFormat(t, d).format(h)
5211
5214
  });
5212
5215
  continue;
5213
5216
  }
5214
- if (Zn(f)) {
5215
- var p = f.children, y = f.value, H = i[y];
5216
- if (!ja(H))
5217
- throw new ka(y, "function", a);
5218
- var Y = pt(p, t, r, n, i, s), k = H(Y.map(function(te) {
5219
- return te.value;
5217
+ if (ii(f)) {
5218
+ var p = f.children, E = f.value, T = i[E];
5219
+ if (!Za(T))
5220
+ throw new Wa(E, "function", a);
5221
+ var J = Et(p, t, r, n, i, s), D = T(J.map(function(re) {
5222
+ return re.value;
5220
5223
  }));
5221
- Array.isArray(k) || (k = [k]), o.push.apply(o, k.map(function(te) {
5224
+ Array.isArray(D) || (D = [D]), o.push.apply(o, D.map(function(re) {
5222
5225
  return {
5223
- type: typeof te == "string" ? C.literal : C.object,
5224
- value: te
5226
+ type: typeof re == "string" ? R.literal : R.object,
5227
+ value: re
5225
5228
  };
5226
5229
  }));
5227
5230
  }
5228
- if (qn(f)) {
5229
- var D = f.options[h] || f.options.other;
5230
- if (!D)
5231
- throw new Dr(f.value, h, Object.keys(f.options), a);
5232
- o.push.apply(o, pt(D.value, t, r, n, i));
5231
+ if (ri(f)) {
5232
+ var F = f.options[h] || f.options.other;
5233
+ if (!F)
5234
+ throw new jr(f.value, h, Object.keys(f.options), a);
5235
+ o.push.apply(o, Et(F.value, t, r, n, i));
5233
5236
  continue;
5234
5237
  }
5235
- if (zn(f)) {
5236
- var D = f.options["=".concat(h)];
5237
- if (!D) {
5238
+ if (ni(f)) {
5239
+ var F = f.options["=".concat(h)];
5240
+ if (!F) {
5238
5241
  if (!Intl.PluralRules)
5239
- throw new Pt(`Intl.PluralRules is not available in this environment.
5242
+ throw new $t(`Intl.PluralRules is not available in this environment.
5240
5243
  Try polyfilling it using "@formatjs/intl-pluralrules"
5241
- `, ke.MISSING_INTL_API, a);
5242
- var be = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5243
- D = f.options[be] || f.options.other;
5244
+ `, Ge.MISSING_INTL_API, a);
5245
+ var ge = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5246
+ F = f.options[ge] || f.options.other;
5244
5247
  }
5245
- if (!D)
5246
- throw new Dr(f.value, h, Object.keys(f.options), a);
5247
- o.push.apply(o, pt(D.value, t, r, n, i, h - (f.offset || 0)));
5248
+ if (!F)
5249
+ throw new jr(f.value, h, Object.keys(f.options), a);
5250
+ o.push.apply(o, Et(F.value, t, r, n, i, h - (f.offset || 0)));
5248
5251
  continue;
5249
5252
  }
5250
5253
  }
5251
- return Ga(o);
5254
+ return qa(o);
5252
5255
  }
5253
- function Va(e, t) {
5254
- return t ? Q(Q(Q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5255
- return r[n] = Q(Q({}, e[n]), t[n] || {}), r;
5256
+ function Ya(e, t) {
5257
+ return t ? K(K(K({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5258
+ return r[n] = K(K({}, e[n]), t[n] || {}), r;
5256
5259
  }, {})) : e;
5257
5260
  }
5258
- function Xa(e, t) {
5261
+ function Qa(e, t) {
5259
5262
  return t ? Object.keys(e).reduce(function(r, n) {
5260
- return r[n] = Va(e[n], t[n]), r;
5261
- }, Q({}, e)) : e;
5263
+ return r[n] = Ya(e[n], t[n]), r;
5264
+ }, K({}, e)) : e;
5262
5265
  }
5263
- function Ut(e) {
5266
+ function Xt(e) {
5264
5267
  return {
5265
5268
  create: function() {
5266
5269
  return {
@@ -5274,39 +5277,39 @@ function Ut(e) {
5274
5277
  }
5275
5278
  };
5276
5279
  }
5277
- function Wa(e) {
5280
+ function Ja(e) {
5278
5281
  return e === void 0 && (e = {
5279
5282
  number: {},
5280
5283
  dateTime: {},
5281
5284
  pluralRules: {}
5282
5285
  }), {
5283
- getNumberFormat: Dt(function() {
5286
+ getNumberFormat: Gt(function() {
5284
5287
  for (var t, r = [], n = 0; n < arguments.length; n++)
5285
5288
  r[n] = arguments[n];
5286
- return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0], r, !1)))();
5289
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], r, !1)))();
5287
5290
  }, {
5288
- cache: Ut(e.number),
5289
- strategy: Ft.variadic
5291
+ cache: Xt(e.number),
5292
+ strategy: jt.variadic
5290
5293
  }),
5291
- getDateTimeFormat: Dt(function() {
5294
+ getDateTimeFormat: Gt(function() {
5292
5295
  for (var t, r = [], n = 0; n < arguments.length; n++)
5293
5296
  r[n] = arguments[n];
5294
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0], r, !1)))();
5297
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], r, !1)))();
5295
5298
  }, {
5296
- cache: Ut(e.dateTime),
5297
- strategy: Ft.variadic
5299
+ cache: Xt(e.dateTime),
5300
+ strategy: jt.variadic
5298
5301
  }),
5299
- getPluralRules: Dt(function() {
5302
+ getPluralRules: Gt(function() {
5300
5303
  for (var t, r = [], n = 0; n < arguments.length; n++)
5301
5304
  r[n] = arguments[n];
5302
- return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0], r, !1)))();
5305
+ return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], r, !1)))();
5303
5306
  }, {
5304
- cache: Ut(e.pluralRules),
5305
- strategy: Ft.variadic
5307
+ cache: Xt(e.pluralRules),
5308
+ strategy: jt.variadic
5306
5309
  })
5307
5310
  };
5308
5311
  }
5309
- var qa = (
5312
+ var Ka = (
5310
5313
  /** @class */
5311
5314
  function() {
5312
5315
  function e(t, r, n, i) {
@@ -5321,11 +5324,11 @@ var qa = (
5321
5324
  if (l.length === 1)
5322
5325
  return l[0].value;
5323
5326
  var f = l.reduce(function(c, h) {
5324
- return !c.length || h.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
5327
+ return !c.length || h.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
5325
5328
  }, []);
5326
5329
  return f.length <= 1 ? f[0] || "" : f;
5327
5330
  }, this.formatToParts = function(u) {
5328
- return pt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5331
+ return Et(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5329
5332
  }, this.resolvedOptions = function() {
5330
5333
  var u;
5331
5334
  return {
@@ -5338,13 +5341,13 @@ var qa = (
5338
5341
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
5339
5342
  var a = i || {};
5340
5343
  a.formatters;
5341
- var o = ra(a, ["formatters"]);
5342
- this.ast = e.__parse(t, Q(Q({}, o), { locale: this.resolvedLocale }));
5344
+ var o = ua(a, ["formatters"]);
5345
+ this.ast = e.__parse(t, K(K({}, o), { locale: this.resolvedLocale }));
5343
5346
  } else
5344
5347
  this.ast = t;
5345
5348
  if (!Array.isArray(this.ast))
5346
5349
  throw new TypeError("A message must be provided as a String or AST.");
5347
- this.formats = Xa(e.formats, n), this.formatters = i && i.formatters || Wa(this.formatterCache);
5350
+ this.formats = Qa(e.formats, n), this.formatters = i && i.formatters || Ja(this.formatterCache);
5348
5351
  }
5349
5352
  return Object.defineProperty(e, "defaultLocale", {
5350
5353
  get: function() {
@@ -5357,7 +5360,7 @@ var qa = (
5357
5360
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5358
5361
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5359
5362
  }
5360
- }, e.__parse = Fa, e.formats = {
5363
+ }, e.__parse = Xa, e.formats = {
5361
5364
  number: {
5362
5365
  integer: {
5363
5366
  maximumFractionDigits: 0
@@ -5418,7 +5421,7 @@ var qa = (
5418
5421
  }, e;
5419
5422
  }()
5420
5423
  );
5421
- function za(e, t) {
5424
+ function eo(e, t) {
5422
5425
  if (t == null)
5423
5426
  return;
5424
5427
  if (t in e)
@@ -5439,92 +5442,92 @@ function za(e, t) {
5439
5442
  n = void 0;
5440
5443
  return n;
5441
5444
  }
5442
- const ce = {}, Za = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), ii = (e, t) => {
5445
+ const de = {}, to = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), di = (e, t) => {
5443
5446
  if (t == null)
5444
5447
  return;
5445
- if (t in ce && e in ce[t])
5446
- return ce[t][e];
5447
- const r = Ct(t);
5448
+ if (t in de && e in de[t])
5449
+ return de[t][e];
5450
+ const r = kt(t);
5448
5451
  for (let n = 0; n < r.length; n++) {
5449
- const i = r[n], s = Qa(i, e);
5452
+ const i = r[n], s = no(i, e);
5450
5453
  if (s)
5451
- return Za(e, t, s);
5454
+ return to(e, t, s);
5452
5455
  }
5453
5456
  };
5454
- let br;
5455
- const je = Nt({});
5456
- function Ya(e) {
5457
- return br[e] || null;
5457
+ let Er;
5458
+ const Xe = Lt({});
5459
+ function ro(e) {
5460
+ return Er[e] || null;
5458
5461
  }
5459
- function si(e) {
5460
- return e in br;
5462
+ function pi(e) {
5463
+ return e in Er;
5461
5464
  }
5462
- function Qa(e, t) {
5463
- if (!si(e))
5465
+ function no(e, t) {
5466
+ if (!pi(e))
5464
5467
  return null;
5465
- const r = Ya(e);
5466
- return za(r, t);
5468
+ const r = ro(e);
5469
+ return eo(r, t);
5467
5470
  }
5468
- function Ja(e) {
5471
+ function io(e) {
5469
5472
  if (e == null)
5470
5473
  return;
5471
- const t = Ct(e);
5474
+ const t = kt(e);
5472
5475
  for (let r = 0; r < t.length; r++) {
5473
5476
  const n = t[r];
5474
- if (si(n))
5477
+ if (pi(n))
5475
5478
  return n;
5476
5479
  }
5477
5480
  }
5478
- function ai(e, ...t) {
5479
- delete ce[e], je.update((r) => (r[e] = ta.all([r[e] || {}, ...t]), r));
5481
+ function vi(e, ...t) {
5482
+ delete de[e], Xe.update((r) => (r[e] = oa.all([r[e] || {}, ...t]), r));
5480
5483
  }
5481
- Ge(
5482
- [je],
5484
+ Ve(
5485
+ [Xe],
5483
5486
  ([e]) => Object.keys(e)
5484
5487
  );
5485
- je.subscribe((e) => br = e);
5486
- const vt = {};
5487
- function Ka(e, t) {
5488
- vt[e].delete(t), vt[e].size === 0 && delete vt[e];
5488
+ Xe.subscribe((e) => Er = e);
5489
+ const xt = {};
5490
+ function so(e, t) {
5491
+ xt[e].delete(t), xt[e].size === 0 && delete xt[e];
5489
5492
  }
5490
- function oi(e) {
5491
- return vt[e];
5493
+ function _i(e) {
5494
+ return xt[e];
5492
5495
  }
5493
- function eo(e) {
5494
- return Ct(e).map((t) => {
5495
- const r = oi(t);
5496
+ function ao(e) {
5497
+ return kt(e).map((t) => {
5498
+ const r = _i(t);
5496
5499
  return [t, r ? [...r] : []];
5497
5500
  }).filter(([, t]) => t.length > 0);
5498
5501
  }
5499
- function sr(e) {
5500
- return e == null ? !1 : Ct(e).some(
5502
+ function ur(e) {
5503
+ return e == null ? !1 : kt(e).some(
5501
5504
  (t) => {
5502
5505
  var r;
5503
- return (r = oi(t)) == null ? void 0 : r.size;
5506
+ return (r = _i(t)) == null ? void 0 : r.size;
5504
5507
  }
5505
5508
  );
5506
5509
  }
5507
- function to(e, t) {
5510
+ function oo(e, t) {
5508
5511
  return Promise.all(
5509
- t.map((n) => (Ka(e, n), n().then((i) => i.default || i)))
5510
- ).then((n) => ai(e, ...n));
5511
- }
5512
- const Xe = {};
5513
- function ui(e) {
5514
- if (!sr(e))
5515
- return e in Xe ? Xe[e] : Promise.resolve();
5516
- const t = eo(e);
5517
- return Xe[e] = Promise.all(
5512
+ t.map((n) => (so(e, n), n().then((i) => i.default || i)))
5513
+ ).then((n) => vi(e, ...n));
5514
+ }
5515
+ const Ze = {};
5516
+ function mi(e) {
5517
+ if (!ur(e))
5518
+ return e in Ze ? Ze[e] : Promise.resolve();
5519
+ const t = ao(e);
5520
+ return Ze[e] = Promise.all(
5518
5521
  t.map(
5519
- ([r, n]) => to(r, n)
5522
+ ([r, n]) => oo(r, n)
5520
5523
  )
5521
5524
  ).then(() => {
5522
- if (sr(e))
5523
- return ui(e);
5524
- delete Xe[e];
5525
- }), Xe[e];
5525
+ if (ur(e))
5526
+ return mi(e);
5527
+ delete Ze[e];
5528
+ }), Ze[e];
5526
5529
  }
5527
- const ro = {
5530
+ const uo = {
5528
5531
  number: {
5529
5532
  scientific: { notation: "scientific" },
5530
5533
  engineering: { notation: "engineering" },
@@ -5553,150 +5556,150 @@ const ro = {
5553
5556
  timeZoneName: "short"
5554
5557
  }
5555
5558
  }
5556
- }, no = {
5559
+ }, lo = {
5557
5560
  fallbackLocale: null,
5558
5561
  loadingDelay: 200,
5559
- formats: ro,
5562
+ formats: uo,
5560
5563
  warnOnMissingMessages: !0,
5561
5564
  handleMissingMessage: void 0,
5562
5565
  ignoreTag: !0
5563
- }, io = no;
5564
- function Ue() {
5565
- return io;
5566
+ }, fo = lo;
5567
+ function je() {
5568
+ return fo;
5566
5569
  }
5567
- const Gt = Nt(!1);
5568
- var so = Object.defineProperty, ao = Object.defineProperties, oo = Object.getOwnPropertyDescriptors, Fr = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, kr = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fo = (e, t) => {
5570
+ const Wt = Lt(!1);
5571
+ var ho = Object.defineProperty, co = Object.defineProperties, po = Object.getOwnPropertyDescriptors, Vr = Object.getOwnPropertySymbols, vo = Object.prototype.hasOwnProperty, _o = Object.prototype.propertyIsEnumerable, Xr = (e, t, r) => t in e ? ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
5569
5572
  for (var r in t || (t = {}))
5570
- uo.call(t, r) && kr(e, r, t[r]);
5571
- if (Fr)
5572
- for (var r of Fr(t))
5573
- lo.call(t, r) && kr(e, r, t[r]);
5573
+ vo.call(t, r) && Xr(e, r, t[r]);
5574
+ if (Vr)
5575
+ for (var r of Vr(t))
5576
+ _o.call(t, r) && Xr(e, r, t[r]);
5574
5577
  return e;
5575
- }, ho = (e, t) => ao(e, oo(t));
5576
- let ar;
5577
- const wt = Nt(null);
5578
- function Ur(e) {
5578
+ }, bo = (e, t) => co(e, po(t));
5579
+ let lr;
5580
+ const Ot = Lt(null);
5581
+ function Wr(e) {
5579
5582
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
5580
5583
  }
5581
- function Ct(e, t = Ue().fallbackLocale) {
5582
- const r = Ur(e);
5583
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ur(t)])] : r;
5584
+ function kt(e, t = je().fallbackLocale) {
5585
+ const r = Wr(e);
5586
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Wr(t)])] : r;
5584
5587
  }
5585
- function Ae() {
5586
- return ar ?? void 0;
5588
+ function Ne() {
5589
+ return lr ?? void 0;
5587
5590
  }
5588
- wt.subscribe((e) => {
5589
- ar = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5591
+ Ot.subscribe((e) => {
5592
+ lr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5590
5593
  });
5591
- const co = (e) => {
5592
- if (e && Ja(e) && sr(e)) {
5593
- const { loadingDelay: t } = Ue();
5594
+ const go = (e) => {
5595
+ if (e && io(e) && ur(e)) {
5596
+ const { loadingDelay: t } = je();
5594
5597
  let r;
5595
- return typeof window < "u" && Ae() != null && t ? r = window.setTimeout(
5596
- () => Gt.set(!0),
5598
+ return typeof window < "u" && Ne() != null && t ? r = window.setTimeout(
5599
+ () => Wt.set(!0),
5597
5600
  t
5598
- ) : Gt.set(!0), ui(e).then(() => {
5599
- wt.set(e);
5601
+ ) : Wt.set(!0), mi(e).then(() => {
5602
+ Ot.set(e);
5600
5603
  }).finally(() => {
5601
- clearTimeout(r), Gt.set(!1);
5604
+ clearTimeout(r), Wt.set(!1);
5602
5605
  });
5603
5606
  }
5604
- return wt.set(e);
5605
- }, Se = ho(fo({}, wt), {
5606
- set: co
5607
- }), It = (e) => {
5607
+ return Ot.set(e);
5608
+ }, Ae = bo(mo({}, Ot), {
5609
+ set: go
5610
+ }), Dt = (e) => {
5608
5611
  const t = /* @__PURE__ */ Object.create(null);
5609
5612
  return (n) => {
5610
5613
  const i = JSON.stringify(n);
5611
5614
  return i in t ? t[i] : t[i] = e(n);
5612
5615
  };
5613
5616
  };
5614
- var po = Object.defineProperty, Tt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
5617
+ var yo = Object.defineProperty, Pt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, zr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xr = (e, t) => {
5615
5618
  for (var r in t || (t = {}))
5616
- li.call(t, r) && Gr(e, r, t[r]);
5617
- if (Tt)
5618
- for (var r of Tt(t))
5619
- fi.call(t, r) && Gr(e, r, t[r]);
5619
+ bi.call(t, r) && zr(e, r, t[r]);
5620
+ if (Pt)
5621
+ for (var r of Pt(t))
5622
+ gi.call(t, r) && zr(e, r, t[r]);
5620
5623
  return e;
5621
- }, Ve = (e, t) => {
5624
+ }, We = (e, t) => {
5622
5625
  var r = {};
5623
5626
  for (var n in e)
5624
- li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5625
- if (e != null && Tt)
5626
- for (var n of Tt(e))
5627
- t.indexOf(n) < 0 && fi.call(e, n) && (r[n] = e[n]);
5627
+ bi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5628
+ if (e != null && Pt)
5629
+ for (var n of Pt(e))
5630
+ t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
5628
5631
  return r;
5629
5632
  };
5630
- const tt = (e, t) => {
5631
- const { formats: r } = Ue();
5633
+ const ot = (e, t) => {
5634
+ const { formats: r } = je();
5632
5635
  if (e in r && t in r[e])
5633
5636
  return r[e][t];
5634
5637
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
5635
- }, vo = It(
5638
+ }, Eo = Dt(
5636
5639
  (e) => {
5637
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5640
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5638
5641
  if (r == null)
5639
5642
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
5640
- return n && (i = tt("number", n)), new Intl.NumberFormat(r, i);
5643
+ return n && (i = ot("number", n)), new Intl.NumberFormat(r, i);
5641
5644
  }
5642
- ), _o = It(
5645
+ ), xo = Dt(
5643
5646
  (e) => {
5644
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5647
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5645
5648
  if (r == null)
5646
5649
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
5647
- return n ? i = tt("date", n) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(r, i);
5650
+ return n ? i = ot("date", n) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(r, i);
5648
5651
  }
5649
- ), mo = It(
5652
+ ), wo = Dt(
5650
5653
  (e) => {
5651
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5654
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5652
5655
  if (r == null)
5653
5656
  throw new Error(
5654
5657
  '[svelte-i18n] A "locale" must be set to format time values'
5655
5658
  );
5656
- return n ? i = tt("time", n) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(r, i);
5659
+ return n ? i = ot("time", n) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(r, i);
5657
5660
  }
5658
- ), bo = (e = {}) => {
5661
+ ), To = (e = {}) => {
5659
5662
  var t = e, {
5660
- locale: r = Ae()
5661
- } = t, n = Ve(t, [
5663
+ locale: r = Ne()
5664
+ } = t, n = We(t, [
5662
5665
  "locale"
5663
5666
  ]);
5664
- return vo(gr({ locale: r }, n));
5665
- }, go = (e = {}) => {
5667
+ return Eo(xr({ locale: r }, n));
5668
+ }, So = (e = {}) => {
5666
5669
  var t = e, {
5667
- locale: r = Ae()
5668
- } = t, n = Ve(t, [
5670
+ locale: r = Ne()
5671
+ } = t, n = We(t, [
5669
5672
  "locale"
5670
5673
  ]);
5671
- return _o(gr({ locale: r }, n));
5672
- }, yo = (e = {}) => {
5674
+ return xo(xr({ locale: r }, n));
5675
+ }, Ho = (e = {}) => {
5673
5676
  var t = e, {
5674
- locale: r = Ae()
5675
- } = t, n = Ve(t, [
5677
+ locale: r = Ne()
5678
+ } = t, n = We(t, [
5676
5679
  "locale"
5677
5680
  ]);
5678
- return mo(gr({ locale: r }, n));
5679
- }, Eo = It(
5681
+ return wo(xr({ locale: r }, n));
5682
+ }, Ao = Dt(
5680
5683
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5681
- (e, t = Ae()) => new qa(e, t, Ue().formats, {
5682
- ignoreTag: Ue().ignoreTag
5684
+ (e, t = Ne()) => new Ka(e, t, je().formats, {
5685
+ ignoreTag: je().ignoreTag
5683
5686
  })
5684
- ), xo = (e, t = {}) => {
5687
+ ), Bo = (e, t = {}) => {
5685
5688
  var r, n, i, s;
5686
5689
  let a = t;
5687
5690
  typeof e == "object" && (a = e, e = a.id);
5688
5691
  const {
5689
5692
  values: o,
5690
- locale: u = Ae(),
5693
+ locale: u = Ne(),
5691
5694
  default: l
5692
5695
  } = a;
5693
5696
  if (u == null)
5694
5697
  throw new Error(
5695
5698
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
5696
5699
  );
5697
- let f = ii(e, u);
5700
+ let f = di(e, u);
5698
5701
  if (!f)
5699
- f = (s = (i = (n = (r = Ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
5702
+ f = (s = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
5700
5703
  else if (typeof f != "string")
5701
5704
  return console.warn(
5702
5705
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -5705,7 +5708,7 @@ const tt = (e, t) => {
5705
5708
  return f;
5706
5709
  let c = f;
5707
5710
  try {
5708
- c = Eo(f, u).format(o);
5711
+ c = Ao(f, u).format(o);
5709
5712
  } catch (h) {
5710
5713
  h instanceof Error && console.warn(
5711
5714
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -5713,125 +5716,194 @@ const tt = (e, t) => {
5713
5716
  );
5714
5717
  }
5715
5718
  return c;
5716
- }, wo = (e, t) => yo(t).format(e), To = (e, t) => go(t).format(e), So = (e, t) => bo(t).format(e), Ho = (e, t = Ae()) => ii(e, t), Ao = Ge([Se, je], () => xo);
5717
- Ge([Se], () => wo);
5718
- Ge([Se], () => To);
5719
- Ge([Se], () => So);
5720
- Ge([Se, je], () => Ho);
5721
- function Bo({ withLocale: e, translations: t }) {
5722
- Se.subscribe((r) => {
5723
- r == null && (je.set(t), Se.set(e));
5719
+ }, No = (e, t) => Ho(t).format(e), Oo = (e, t) => So(t).format(e), Po = (e, t) => To(t).format(e), Co = (e, t = Ne()) => di(e, t), Io = Ve([Ae, Xe], () => Bo);
5720
+ Ve([Ae], () => No);
5721
+ Ve([Ae], () => Oo);
5722
+ Ve([Ae], () => Po);
5723
+ Ve([Ae, Xe], () => Co);
5724
+ function Ro({ withLocale: e, translations: t }) {
5725
+ Ae.subscribe((r) => {
5726
+ r == null && (Xe.set(t), Ae.set(e));
5724
5727
  });
5725
5728
  }
5726
- function No(e, t) {
5727
- ai(e, t);
5729
+ function qr(e, t) {
5730
+ vi(e, t);
5728
5731
  }
5729
- const Oo = {
5732
+ const Lo = {
5730
5733
  en: {
5731
5734
  requestRackBack: "Request Rackeback"
5732
5735
  },
5733
5736
  tr: {
5734
5737
  requestRackBack: "Request Rackeback"
5735
5738
  }
5736
- }, Po = "RakebackClaimConfirmed";
5737
- var Co = /* @__PURE__ */ vs('<div class="loyalty-rakeback-card svelte-7aljj5"><div class="loyalty-rakeback-card__content svelte-7aljj5"><span class="loyalty-rakeback-card__amount svelte-7aljj5"> </span> <button class="loyalty-rakeback-card__button svelte-7aljj5" type="button"> </button></div></div>');
5738
- const Io = {
5739
+ }, Mo = "RakebackClaimConfirmed";
5740
+ var $o = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5"><div class="loyalty-rakeback-card__content svelte-7aljj5"><span class="loyalty-rakeback-card__amount svelte-7aljj5"> </span> <button class="loyalty-rakeback-card__button svelte-7aljj5" type="button"> </button></div></div>'), ko = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-7aljj5"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-7aljj5"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-7aljj5"></span></div></div>');
5741
+ const Do = {
5739
5742
  hash: "svelte-7aljj5",
5740
- code: ".loyalty-rakeback-card.svelte-7aljj5 {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-7aljj5 {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-7aljj5 {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-7aljj5 {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-7aljj5:disabled {opacity:0.4;cursor:default;}"
5743
+ code: `.loyalty-rakeback-card.svelte-7aljj5 {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-7aljj5 {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-7aljj5 {color:var(--text-default, #ffffff);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-7aljj5 {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-7aljj5:disabled {opacity:0.4;cursor:default;}.loyalty-rakeback-skeleton.svelte-7aljj5 {display:block;border-radius:4px;background:linear-gradient(
5744
+ 90deg,
5745
+ var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
5746
+ color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
5747
+ var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
5748
+ );background-size:400% 100%;
5749
+ animation: svelte-7aljj5-loyalty-rakeback-shimmer 1.4s ease infinite;}.loyalty-rakeback-card__content--skeleton.svelte-7aljj5 {align-items:center;}.loyalty-rakeback-skeleton--amount.svelte-7aljj5 {width:120px;height:22px;}.loyalty-rakeback-skeleton--button.svelte-7aljj5 {width:110px;height:37px;border-radius:6px;}
5750
+
5751
+ @keyframes svelte-7aljj5-loyalty-rakeback-shimmer {
5752
+ 0% {
5753
+ background-position: 100% 50%;
5754
+ }
5755
+ 100% {
5756
+ background-position: 0 50%;
5757
+ }
5758
+ }
5759
+
5760
+ @media (prefers-reduced-motion: reduce) {.loyalty-rakeback-skeleton.svelte-7aljj5 {
5761
+ animation: none;}
5762
+ }`
5741
5763
  };
5742
- function Ro(e, t) {
5743
- Jr(t, !0), ws(e, Io);
5744
- const r = () => Hs(Ao, "$_", n), [n, i] = As(), s = Mt(t, "apiEndpoint", 7, ""), a = Mt(t, "userSession", 7, ""), o = Mt(t, "locale", 7, "");
5745
- Bo({ withLocale: o(), translations: {} }), Object.entries(Oo).forEach(([x, ge]) => {
5746
- No(x, ge);
5764
+ function Uo(e, t) {
5765
+ an(t, !0), Ns(e, Do);
5766
+ const r = () => Cs(Io, "$_", n), [n, i] = Is(), s = bt(t, "apiEndpoint", 7, ""), a = bt(t, "userSession", 7, ""), o = bt(t, "locale", 7, ""), u = bt(t, "translationUrl");
5767
+ Ro({ withLocale: o(), translations: {} }), Object.entries(Lo).forEach(([y, N]) => {
5768
+ qr(y, N);
5747
5769
  });
5748
- let u = /* @__PURE__ */ X(void 0), l = /* @__PURE__ */ X(!1), f = /* @__PURE__ */ X(!1);
5749
- const c = /* @__PURE__ */ ut(() => g(u) ? Rs(g(u).total.points <= 0 ? 0 : g(u).total.points, 2) : "0.00"), h = /* @__PURE__ */ ut(() => Ls(g(u)?.currency ?? "", o())), d = /* @__PURE__ */ ut(() => !!g(u)?.claimable), p = /* @__PURE__ */ ut(() => g(l)), y = async () => {
5750
- if (!(!s() || !a()))
5770
+ const l = () => {
5771
+ let y = new URL(u(), window.location.href);
5772
+ fetch(y.href).then((N) => N.json()).then((N) => {
5773
+ Object.keys(N).forEach((Ee) => {
5774
+ qr(Ee, N[Ee]);
5775
+ });
5776
+ }).catch((N) => {
5777
+ console.log("loyalty rakeback translation url err:", N);
5778
+ });
5779
+ };
5780
+ hs(() => {
5781
+ u() && l();
5782
+ });
5783
+ let f = /* @__PURE__ */ j(void 0), c = /* @__PURE__ */ j(!1), h = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(!1);
5784
+ const p = /* @__PURE__ */ vt(() => g(f) ? Us(g(f).total.points <= 0 ? 0 : g(f).total.points, 2) : "0.00"), E = /* @__PURE__ */ vt(() => Fs(g(f)?.currency ?? "", o())), T = /* @__PURE__ */ vt(() => !!g(f)?.claimable), J = /* @__PURE__ */ vt(() => g(c)), D = async () => {
5785
+ if (!(!s() || !a())) {
5786
+ P(d, !0);
5751
5787
  try {
5752
- const x = await Cs({
5788
+ const y = await ks({
5753
5789
  apiEndpoint: s(),
5754
5790
  userSession: a(),
5755
5791
  locale: o()
5756
5792
  });
5757
- if (!x.rakebackWallet) {
5758
- I(l, !1), Fs();
5793
+ if (!y.rakebackWallet) {
5794
+ P(c, !1), Xs();
5759
5795
  return;
5760
5796
  }
5761
- I(u, x.rakebackWallet, !0), I(l, !0);
5762
- } catch (x) {
5763
- console.error("Failed to load rakeback info:", x);
5797
+ P(f, y.rakebackWallet, !0), P(c, !0);
5798
+ } catch (y) {
5799
+ console.error("Failed to load rakeback info:", y);
5800
+ } finally {
5801
+ P(d, !1);
5764
5802
  }
5765
- }, H = () => {
5766
- !g(d) || g(f) || !g(u) || Ms(g(u).total.points);
5767
- }, Y = async () => {
5768
- if (!(!s() || !a() || !g(u))) {
5769
- I(f, !0);
5803
+ }
5804
+ }, F = () => {
5805
+ !g(T) || g(h) || !g(f) || Gs(g(f).total.points);
5806
+ }, ge = async () => {
5807
+ if (!(!s() || !a() || !g(f))) {
5808
+ P(h, !0);
5770
5809
  try {
5771
- await Is({
5810
+ await Ds({
5772
5811
  apiEndpoint: s(),
5773
5812
  userSession: a(),
5774
5813
  locale: o()
5775
- }), await y(), $s(g(u).total.points);
5776
- } catch (x) {
5777
- console.error("Claim rakeback: ", x), Ds(x.message);
5814
+ }), await D(), js(g(f).total.points);
5815
+ } catch (y) {
5816
+ console.error("Claim rakeback: ", y), Vs(y.message);
5778
5817
  } finally {
5779
- I(f, !1);
5818
+ P(h, !1);
5780
5819
  }
5781
5820
  }
5782
5821
  };
5783
- Sr(() => {
5784
- s(), a(), o(), y();
5785
- }), Sr(() => {
5786
- const x = (ge) => {
5787
- ge.data?.type === Po && Y();
5822
+ Br(() => {
5823
+ s(), a(), o(), D();
5824
+ }), Br(() => {
5825
+ const y = (N) => {
5826
+ N.data?.type === Mo && ge();
5788
5827
  };
5789
- return window.addEventListener("message", x), () => window.removeEventListener("message", x);
5828
+ return window.addEventListener("message", y), () => window.removeEventListener("message", y);
5790
5829
  });
5791
- var k = {
5830
+ var re = {
5792
5831
  get apiEndpoint() {
5793
5832
  return s();
5794
5833
  },
5795
- set apiEndpoint(x = "") {
5796
- s(x), ct();
5834
+ set apiEndpoint(y = "") {
5835
+ s(y), Ye();
5797
5836
  },
5798
5837
  get userSession() {
5799
5838
  return a();
5800
5839
  },
5801
- set userSession(x = "") {
5802
- a(x), ct();
5840
+ set userSession(y = "") {
5841
+ a(y), Ye();
5803
5842
  },
5804
5843
  get locale() {
5805
5844
  return o();
5806
5845
  },
5807
- set locale(x = "") {
5808
- o(x), ct();
5846
+ set locale(y = "") {
5847
+ o(y), Ye();
5848
+ },
5849
+ get translationUrl() {
5850
+ return u();
5851
+ },
5852
+ set translationUrl(y) {
5853
+ u(y), Ye();
5809
5854
  }
5810
- }, D = _s(), be = Qi(D);
5855
+ }, ye = Cr(), ct = Ar(ye);
5811
5856
  {
5812
- var te = (x) => {
5813
- var ge = Co(), yr = lt(ge), Rt = lt(yr), hi = lt(Rt);
5814
- at(Rt);
5815
- var st = Ji(Rt, 2);
5816
- st.__click = H;
5817
- var ci = lt(st, !0);
5818
- at(st), at(yr), at(ge), os(
5819
- (di) => {
5820
- Nr(hi, `${g(c) ?? ""} ${g(h) ?? ""}`), st.disabled = g(f) || !g(d), Nr(ci, di);
5857
+ var yi = (y) => {
5858
+ var N = $o(), Ee = _t(N), ze = _t(Ee), qe = _t(ze);
5859
+ dt(ze);
5860
+ var Oe = os(ze, 2);
5861
+ Oe.__click = F;
5862
+ var wi = _t(Oe, !0);
5863
+ dt(Oe), dt(Ee), dt(N), _s(
5864
+ (Ti) => {
5865
+ Ir(qe, `${g(p) ?? ""} ${g(E) ?? ""}`), Oe.disabled = g(h) || !g(T), Ir(wi, Ti);
5821
5866
  },
5822
5867
  [() => r()("requestRackBack")]
5823
- ), Zt(x, ge);
5868
+ ), Je(y, N);
5869
+ }, Ei = (y) => {
5870
+ var N = Cr(), Ee = Ar(N);
5871
+ {
5872
+ var ze = (qe) => {
5873
+ var Oe = ko();
5874
+ Je(qe, Oe);
5875
+ };
5876
+ Rr(
5877
+ Ee,
5878
+ (qe) => {
5879
+ g(d) && qe(ze);
5880
+ },
5881
+ !0
5882
+ );
5883
+ }
5884
+ Je(y, N);
5824
5885
  };
5825
- xs(be, (x) => {
5826
- g(p) && x(te);
5886
+ Rr(ct, (y) => {
5887
+ g(J) ? y(yi) : y(Ei, !1);
5827
5888
  });
5828
5889
  }
5829
- Zt(e, D);
5830
- var Be = Kr(k);
5831
- return i(), Be;
5890
+ Je(e, ye);
5891
+ var xi = on(re);
5892
+ return i(), xi;
5832
5893
  }
5833
- ds(["click"]);
5834
- customElements.define("loyalty-rakeback", Ps(Ro, { apiEndpoint: {}, userSession: {}, locale: {} }, [], [], !1));
5894
+ xs(["click"]);
5895
+ customElements.define("loyalty-rakeback", $s(
5896
+ Uo,
5897
+ {
5898
+ apiEndpoint: {},
5899
+ userSession: {},
5900
+ locale: {},
5901
+ translationUrl: {}
5902
+ },
5903
+ [],
5904
+ [],
5905
+ !1
5906
+ ));
5835
5907
  export {
5836
- Ro as L
5908
+ Uo as L
5837
5909
  };