@everymatrix/loyalty-rakeback 0.1.4 → 0.1.6

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