@everymatrix/player-account-balance-modal-nd 1.62.0 → 1.62.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function ue() {
1
+ function se() {
2
2
  }
3
3
  function Cn(e) {
4
4
  return e();
@@ -6,23 +6,23 @@ function Cn(e) {
6
6
  function rn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function $e(e) {
9
+ function Ve(e) {
10
10
  e.forEach(Cn);
11
11
  }
12
- function Qt(e) {
12
+ function Yt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function Hn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function or(e) {
18
+ function ar(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
21
  function On(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return ue;
25
+ return se;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
@@ -30,7 +30,7 @@ function On(e, ...t) {
30
30
  function sr(e, t, n) {
31
31
  e.$$.on_destroy.push(On(t, n));
32
32
  }
33
- function H(e, t) {
33
+ function C(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
36
  function lr(e, t, n) {
@@ -51,7 +51,7 @@ function ur(e) {
51
51
  ) : e.ownerDocument;
52
52
  }
53
53
  function cr(e, t) {
54
- return H(
54
+ return C(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
@@ -60,7 +60,7 @@ function cr(e, t) {
60
60
  function ge(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function pe(e) {
63
+ function fe(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
66
  function Rn(e, t) {
@@ -70,28 +70,28 @@ function Rn(e, t) {
70
70
  function j(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function an(e) {
73
+ function on(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function de(e) {
76
+ function he(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function me() {
80
- return de(" ");
79
+ function de() {
80
+ return he(" ");
81
81
  }
82
82
  function hr() {
83
- return de("");
83
+ return he("");
84
84
  }
85
85
  function mt(e, t, n, r) {
86
86
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function M(e, t, n) {
88
+ function N(e, t, n) {
89
89
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
91
  function fr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Te(e, t) {
94
+ function _e(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
@@ -104,96 +104,96 @@ function dr(e) {
104
104
  }
105
105
  ), t;
106
106
  }
107
- let Ke;
108
- function Ye(e) {
109
- Ke = e;
107
+ let tt;
108
+ function et(e) {
109
+ tt = e;
110
110
  }
111
111
  function pr() {
112
- if (!Ke)
112
+ if (!tt)
113
113
  throw new Error("Function called outside component initialization");
114
- return Ke;
114
+ return tt;
115
115
  }
116
116
  function mr(e) {
117
117
  pr().$$.on_mount.push(e);
118
118
  }
119
- const Ie = [], Dt = [];
120
- let Pe = [];
121
- const on = [], gr = /* @__PURE__ */ Promise.resolve();
122
- let Ut = !1;
119
+ const Ue = [], Ft = [];
120
+ let Fe = [];
121
+ const an = [], gr = /* @__PURE__ */ Promise.resolve();
122
+ let Gt = !1;
123
123
  function br() {
124
- Ut || (Ut = !0, gr.then(J));
124
+ Gt || (Gt = !0, gr.then(J));
125
125
  }
126
- function Ft(e) {
127
- Pe.push(e);
126
+ function $t(e) {
127
+ Fe.push(e);
128
128
  }
129
- const Ot = /* @__PURE__ */ new Set();
130
- let Me = 0;
129
+ const Lt = /* @__PURE__ */ new Set();
130
+ let Ie = 0;
131
131
  function J() {
132
- if (Me !== 0)
132
+ if (Ie !== 0)
133
133
  return;
134
- const e = Ke;
134
+ const e = tt;
135
135
  do {
136
136
  try {
137
- for (; Me < Ie.length; ) {
138
- const t = Ie[Me];
139
- Me++, Ye(t), yr(t.$$);
137
+ for (; Ie < Ue.length; ) {
138
+ const t = Ue[Ie];
139
+ Ie++, et(t), yr(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw Ie.length = 0, Me = 0, t;
142
+ throw Ue.length = 0, Ie = 0, t;
143
143
  }
144
- for (Ye(null), Ie.length = 0, Me = 0; Dt.length; )
145
- Dt.pop()();
146
- for (let t = 0; t < Pe.length; t += 1) {
147
- const n = Pe[t];
148
- Ot.has(n) || (Ot.add(n), n());
144
+ for (et(null), Ue.length = 0, Ie = 0; Ft.length; )
145
+ Ft.pop()();
146
+ for (let t = 0; t < Fe.length; t += 1) {
147
+ const n = Fe[t];
148
+ Lt.has(n) || (Lt.add(n), n());
149
149
  }
150
- Pe.length = 0;
151
- } while (Ie.length);
152
- for (; on.length; )
153
- on.pop()();
154
- Ut = !1, Ot.clear(), Ye(e);
150
+ Fe.length = 0;
151
+ } while (Ue.length);
152
+ for (; an.length; )
153
+ an.pop()();
154
+ Gt = !1, Lt.clear(), et(e);
155
155
  }
156
156
  function yr(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), $e(e.before_update);
158
+ e.update(), Ve(e.before_update);
159
159
  const t = e.dirty;
160
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
161
161
  }
162
162
  }
163
163
  function vr(e) {
164
164
  const t = [], n = [];
165
- Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
165
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
166
166
  }
167
167
  const Er = /* @__PURE__ */ new Set();
168
- function xr(e, t) {
168
+ function _r(e, t) {
169
169
  e && e.i && (Er.delete(e), e.i(t));
170
170
  }
171
171
  function gt(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function _r(e, t, n) {
174
+ function xr(e, t, n) {
175
175
  const { fragment: r, after_update: i } = e.$$;
176
- r && r.m(t, n), Ft(() => {
177
- const a = e.$$.on_mount.map(Cn).filter(Qt);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : $e(a), e.$$.on_mount = [];
179
- }), i.forEach(Ft);
176
+ r && r.m(t, n), $t(() => {
177
+ const o = e.$$.on_mount.map(Cn).filter(Yt);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
179
+ }), i.forEach($t);
180
180
  }
181
181
  function Br(e, t) {
182
182
  const n = e.$$;
183
- n.fragment !== null && (vr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
183
+ n.fragment !== null && (vr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
185
  function Tr(e, t) {
186
- e.$$.dirty[0] === -1 && (Ie.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
186
+ e.$$.dirty[0] === -1 && (Ue.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function wr(e, t, n, r, i, a, l = null, s = [-1]) {
189
- const h = Ke;
190
- Ye(e);
188
+ function wr(e, t, n, r, i, o, l = null, s = [-1]) {
189
+ const h = tt;
190
+ et(e);
191
191
  const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
- props: a,
196
- update: ue,
195
+ props: o,
196
+ update: se,
197
197
  not_equal: i,
198
198
  bound: rn(),
199
199
  // lifecycle
@@ -211,18 +211,18 @@ function wr(e, t, n, r, i, a, l = null, s = [-1]) {
211
211
  };
212
212
  l && l(u.root);
213
213
  let d = !1;
214
- if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
215
- const T = _.length ? _[0] : b;
216
- return u.ctx && i(u.ctx[g], u.ctx[g] = T) && (!u.skip_bound && u.bound[g] && u.bound[g](T), d && Tr(e, g)), b;
217
- }) : [], u.update(), d = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
214
+ if (u.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
215
+ const B = x.length ? x[0] : g;
216
+ return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && Tr(e, m)), g;
217
+ }) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const g = fr(t.target);
220
- u.fragment && u.fragment.l(g), g.forEach(pe);
219
+ const m = fr(t.target);
220
+ u.fragment && u.fragment.l(m), m.forEach(fe);
221
221
  } else
222
222
  u.fragment && u.fragment.c();
223
- t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), J();
223
+ t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), J();
224
224
  }
225
- Ye(h);
225
+ et(h);
226
226
  }
227
227
  let Ln;
228
228
  typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
@@ -264,20 +264,20 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
264
264
  if (this.$$cn = !0, !this.$$c) {
265
265
  let e = function(i) {
266
266
  return () => {
267
- let a;
267
+ let o;
268
268
  return {
269
269
  c: function() {
270
- a = j("slot"), i !== "default" && M(a, "name", i);
270
+ o = j("slot"), i !== "default" && N(o, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
276
  m: function(h, u) {
277
- ge(h, a, u);
277
+ ge(h, o, u);
278
278
  },
279
279
  d: function(h) {
280
- h && pe(a);
280
+ h && fe(o);
281
281
  }
282
282
  };
283
283
  };
@@ -288,8 +288,8 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
288
288
  for (const i of this.$$s)
289
289
  i in n && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
291
- const a = this.$$g_p(i.name);
292
- a in this.$$d || (this.$$d[a] = ht(a, i.value, this.$$p_d, "toProp"));
291
+ const o = this.$$g_p(i.name);
292
+ o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
293
293
  }
294
294
  for (const i in this.$$p_d)
295
295
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -307,21 +307,21 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
307
307
  this.$$r = !0;
308
308
  for (const i in this.$$p_d)
309
309
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
310
- const a = ht(
310
+ const o = ht(
311
311
  i,
312
312
  this.$$d[i],
313
313
  this.$$p_d,
314
314
  "toAttribute"
315
315
  );
316
- a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
316
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
317
317
  }
318
318
  this.$$r = !1;
319
319
  };
320
320
  this.$$c.$$.after_update.push(r), r();
321
321
  for (const i in this.$$l)
322
- for (const a of this.$$l[i]) {
323
- const l = this.$$c.$on(i, a);
324
- this.$$l_u.set(a, l);
322
+ for (const o of this.$$l[i]) {
323
+ const l = this.$$c.$on(i, o);
324
+ this.$$l_u.set(o, l);
325
325
  }
326
326
  this.$$l = {};
327
327
  }
@@ -371,7 +371,7 @@ function ht(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function Sr(e, t, n, r, i, a) {
374
+ function Sr(e, t, n, r, i, o) {
375
375
  let l = class extends Ln {
376
376
  constructor() {
377
377
  super(e, n, i), this.$$p_d = t;
@@ -419,7 +419,7 @@ class Ar {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- Br(this, 1), this.$destroy = ue;
422
+ Br(this, 1), this.$destroy = se;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -428,8 +428,8 @@ class Ar {
428
428
  * @returns {() => void}
429
429
  */
430
430
  $on(t, n) {
431
- if (!Qt(n))
432
- return ue;
431
+ if (!Yt(n))
432
+ return se;
433
433
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return r.push(n), () => {
435
435
  const i = r.indexOf(n);
@@ -441,7 +441,7 @@ class Ar {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
447
  const Cr = "4";
@@ -469,66 +469,66 @@ function Rr(e, t, n) {
469
469
  });
470
470
  }
471
471
  }
472
- const Ne = [];
472
+ const De = [];
473
473
  function Lr(e, t) {
474
474
  return {
475
- subscribe: vt(e, t).subscribe
475
+ subscribe: Et(e, t).subscribe
476
476
  };
477
477
  }
478
- function vt(e, t = ue) {
478
+ function Et(e, t = se) {
479
479
  let n;
480
480
  const r = /* @__PURE__ */ new Set();
481
481
  function i(s) {
482
482
  if (Hn(e, s) && (e = s, n)) {
483
- const h = !Ne.length;
483
+ const h = !De.length;
484
484
  for (const u of r)
485
- u[1](), Ne.push(u, e);
485
+ u[1](), De.push(u, e);
486
486
  if (h) {
487
- for (let u = 0; u < Ne.length; u += 2)
488
- Ne[u][0](Ne[u + 1]);
489
- Ne.length = 0;
487
+ for (let u = 0; u < De.length; u += 2)
488
+ De[u][0](De[u + 1]);
489
+ De.length = 0;
490
490
  }
491
491
  }
492
492
  }
493
- function a(s) {
493
+ function o(s) {
494
494
  i(s(e));
495
495
  }
496
- function l(s, h = ue) {
496
+ function l(s, h = se) {
497
497
  const u = [s, h];
498
- return r.add(u), r.size === 1 && (n = t(i, a) || ue), s(e), () => {
498
+ return r.add(u), r.size === 1 && (n = t(i, o) || se), s(e), () => {
499
499
  r.delete(u), r.size === 0 && n && (n(), n = null);
500
500
  };
501
501
  }
502
- return { set: i, update: a, subscribe: l };
502
+ return { set: i, update: o, subscribe: l };
503
503
  }
504
- function ke(e, t, n) {
504
+ function Xe(e, t, n) {
505
505
  const r = !Array.isArray(e), i = r ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
- const a = t.length < 2;
508
+ const o = t.length < 2;
509
509
  return Lr(n, (l, s) => {
510
510
  let h = !1;
511
511
  const u = [];
512
- let d = 0, g = ue;
513
- const b = () => {
512
+ let d = 0, m = se;
513
+ const g = () => {
514
514
  if (d)
515
515
  return;
516
- g();
517
- const T = t(r ? u[0] : u, l, s);
518
- a ? l(T) : g = Qt(T) ? T : ue;
519
- }, _ = i.map(
520
- (T, S) => On(
521
- T,
522
- (x) => {
523
- u[S] = x, d &= ~(1 << S), h && b();
516
+ m();
517
+ const B = t(r ? u[0] : u, l, s);
518
+ o ? l(B) : m = Yt(B) ? B : se;
519
+ }, x = i.map(
520
+ (B, T) => On(
521
+ B,
522
+ (_) => {
523
+ u[T] = _, d &= ~(1 << T), h && g();
524
524
  },
525
525
  () => {
526
- d |= 1 << S;
526
+ d |= 1 << T;
527
527
  }
528
528
  )
529
529
  );
530
- return h = !0, b(), function() {
531
- $e(_), g(), h = !1;
530
+ return h = !0, g(), function() {
531
+ Ve(x), m(), h = !1;
532
532
  };
533
533
  });
534
534
  }
@@ -536,10 +536,10 @@ var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
536
536
  function Nr(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Ir = function(t) {
540
- return Pr(t) && !Dr(t);
539
+ var Pr = function(t) {
540
+ return Ir(t) && !Dr(t);
541
541
  };
542
- function Pr(e) {
542
+ function Ir(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
545
  function Dr(e) {
@@ -553,19 +553,19 @@ function Gr(e) {
553
553
  function $r(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function et(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? De($r(e), e, t) : e;
556
+ function nt(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge($r(e), e, t) : e;
558
558
  }
559
- function kr(e, t, n) {
559
+ function jr(e, t, n) {
560
560
  return e.concat(t).map(function(r) {
561
- return et(r, n);
561
+ return nt(r, n);
562
562
  });
563
563
  }
564
- function jr(e, t) {
564
+ function kr(e, t) {
565
565
  if (!t.customMerge)
566
- return De;
566
+ return Ge;
567
567
  var n = t.customMerge(e);
568
- return typeof n == "function" ? n : De;
568
+ return typeof n == "function" ? n : Ge;
569
569
  }
570
570
  function Vr(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -588,65 +588,51 @@ function Xr(e, t) {
588
588
  function zr(e, t, n) {
589
589
  var r = {};
590
590
  return n.isMergeableObject(e) && sn(e).forEach(function(i) {
591
- r[i] = et(e[i], n);
591
+ r[i] = nt(e[i], n);
592
592
  }), sn(t).forEach(function(i) {
593
- Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
593
+ Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = kr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
594
594
  }), r;
595
595
  }
596
- function De(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || kr, n.isMergeableObject = n.isMergeableObject || Ir, n.cloneUnlessOtherwiseSpecified = et;
598
- var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
599
- return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : et(t, n);
596
+ function Ge(e, t, n) {
597
+ n = n || {}, n.arrayMerge = n.arrayMerge || jr, n.isMergeableObject = n.isMergeableObject || Pr, n.cloneUnlessOtherwiseSpecified = nt;
598
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
+ return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : nt(t, n);
600
600
  }
601
- De.all = function(t, n) {
601
+ Ge.all = function(t, n) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(r, i) {
605
- return De(r, i, n);
605
+ return Ge(r, i, n);
606
606
  }, {});
607
607
  };
608
- var Wr = De, Zr = Wr;
608
+ var Wr = Ge, Zr = Wr;
609
609
  const qr = /* @__PURE__ */ Nr(Zr);
610
- /*! *****************************************************************************
611
- Copyright (c) Microsoft Corporation.
612
-
613
- Permission to use, copy, modify, and/or distribute this software for any
614
- purpose with or without fee is hereby granted.
615
-
616
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
617
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
618
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
619
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
620
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
- PERFORMANCE OF THIS SOFTWARE.
623
- ***************************************************************************** */
624
- var Gt = function(e, t) {
625
- return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
610
+ var jt = function(e, t) {
611
+ return jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
626
612
  n.__proto__ = r;
627
613
  } || function(n, r) {
628
614
  for (var i in r)
629
615
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
- }, Gt(e, t);
616
+ }, jt(e, t);
631
617
  };
632
- function Et(e, t) {
618
+ function _t(e, t) {
633
619
  if (typeof t != "function" && t !== null)
634
620
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- Gt(e, t);
621
+ jt(e, t);
636
622
  function n() {
637
623
  this.constructor = e;
638
624
  }
639
625
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
640
626
  }
641
- var I = function() {
642
- return I = Object.assign || function(t) {
627
+ var me = function() {
628
+ return me = Object.assign || function(t) {
643
629
  for (var n, r = 1, i = arguments.length; r < i; r++) {
644
630
  n = arguments[r];
645
- for (var a in n)
646
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
631
+ for (var o in n)
632
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
647
633
  }
648
634
  return t;
649
- }, I.apply(this, arguments);
635
+ }, me.apply(this, arguments);
650
636
  };
651
637
  function Qr(e, t) {
652
638
  var n = {};
@@ -657,14 +643,14 @@ function Qr(e, t) {
657
643
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
658
644
  return n;
659
645
  }
660
- function Rt(e, t, n) {
661
- if (arguments.length === 2)
662
- for (var r = 0, i = t.length, a; r < i; r++)
663
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
664
- return e.concat(a || t);
646
+ function Mt(e, t, n) {
647
+ if (n || arguments.length === 2)
648
+ for (var r = 0, i = t.length, o; r < i; r++)
649
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
650
+ return e.concat(o || Array.prototype.slice.call(t));
665
651
  }
666
- function Lt(e, t) {
667
- var n = t && t.cache ? t.cache : ni, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Yr;
652
+ function Nt(e, t) {
653
+ var n = t && t.cache ? t.cache : ri, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Kr;
668
654
  return i(e, {
669
655
  cache: n,
670
656
  serializer: r
@@ -673,93 +659,101 @@ function Lt(e, t) {
673
659
  function Jr(e) {
674
660
  return e == null || typeof e == "number" || typeof e == "boolean";
675
661
  }
676
- function Nn(e, t, n, r) {
677
- var i = Jr(r) ? r : n(r), a = t.get(i);
678
- return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
662
+ function Yr(e, t, n, r) {
663
+ var i = Jr(r) ? r : n(r), o = t.get(i);
664
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
679
665
  }
680
- function In(e, t, n) {
681
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
682
- return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
666
+ function Nn(e, t, n) {
667
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
668
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
683
669
  }
684
- function Jt(e, t, n, r, i) {
670
+ function Pn(e, t, n, r, i) {
685
671
  return n.bind(t, e, r, i);
686
672
  }
687
- function Yr(e, t) {
688
- var n = e.length === 1 ? Nn : In;
689
- return Jt(e, this, n, t.cache.create(), t.serializer);
690
- }
691
673
  function Kr(e, t) {
692
- return Jt(e, this, In, t.cache.create(), t.serializer);
674
+ var n = e.length === 1 ? Yr : Nn;
675
+ return Pn(e, this, n, t.cache.create(), t.serializer);
693
676
  }
694
677
  function ei(e, t) {
695
- return Jt(e, this, Nn, t.cache.create(), t.serializer);
678
+ return Pn(e, this, Nn, t.cache.create(), t.serializer);
696
679
  }
697
680
  var ti = function() {
698
681
  return JSON.stringify(arguments);
699
- };
700
- function Yt() {
701
- this.cache = /* @__PURE__ */ Object.create(null);
702
- }
703
- Yt.prototype.get = function(e) {
704
- return this.cache[e];
705
- };
706
- Yt.prototype.set = function(e, t) {
707
- this.cache[e] = t;
708
- };
709
- var ni = {
682
+ }, ni = (
683
+ /** @class */
684
+ function() {
685
+ function e() {
686
+ this.cache = /* @__PURE__ */ Object.create(null);
687
+ }
688
+ return e.prototype.get = function(t) {
689
+ return this.cache[t];
690
+ }, e.prototype.set = function(t, n) {
691
+ this.cache[t] = n;
692
+ }, e;
693
+ }()
694
+ ), ri = {
710
695
  create: function() {
711
- return new Yt();
696
+ return new ni();
712
697
  }
713
- }, Mt = {
714
- variadic: Kr,
715
- monadic: ei
716
- }, R;
698
+ }, Pt = {
699
+ variadic: ei
700
+ }, bt = function() {
701
+ return bt = Object.assign || function(t) {
702
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
703
+ n = arguments[r];
704
+ for (var o in n)
705
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
706
+ }
707
+ return t;
708
+ }, bt.apply(this, arguments);
709
+ };
710
+ var O;
717
711
  (function(e) {
718
712
  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";
719
- })(R || (R = {}));
720
- var k;
713
+ })(O || (O = {}));
714
+ var $;
721
715
  (function(e) {
722
716
  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";
723
- })(k || (k = {}));
724
- var Ue;
717
+ })($ || ($ = {}));
718
+ var $e;
725
719
  (function(e) {
726
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
727
- })(Ue || (Ue = {}));
721
+ })($e || ($e = {}));
728
722
  function ln(e) {
729
- return e.type === k.literal;
723
+ return e.type === $.literal;
730
724
  }
731
- function ri(e) {
732
- return e.type === k.argument;
725
+ function ii(e) {
726
+ return e.type === $.argument;
733
727
  }
734
- function Pn(e) {
735
- return e.type === k.number;
728
+ function In(e) {
729
+ return e.type === $.number;
736
730
  }
737
731
  function Dn(e) {
738
- return e.type === k.date;
732
+ return e.type === $.date;
739
733
  }
740
734
  function Un(e) {
741
- return e.type === k.time;
735
+ return e.type === $.time;
742
736
  }
743
737
  function Fn(e) {
744
- return e.type === k.select;
738
+ return e.type === $.select;
745
739
  }
746
740
  function Gn(e) {
747
- return e.type === k.plural;
741
+ return e.type === $.plural;
748
742
  }
749
- function ii(e) {
750
- return e.type === k.pound;
743
+ function oi(e) {
744
+ return e.type === $.pound;
751
745
  }
752
746
  function $n(e) {
753
- return e.type === k.tag;
747
+ return e.type === $.tag;
754
748
  }
755
- function kn(e) {
756
- return !!(e && typeof e == "object" && e.type === Ue.number);
749
+ function jn(e) {
750
+ return !!(e && typeof e == "object" && e.type === $e.number);
757
751
  }
758
- function $t(e) {
759
- return !!(e && typeof e == "object" && e.type === Ue.dateTime);
752
+ function kt(e) {
753
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
760
754
  }
761
- var jn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
762
- function oi(e) {
755
+ var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
756
+ function si(e) {
763
757
  var t = {};
764
758
  return e.replace(ai, function(n) {
765
759
  var r = n.length;
@@ -850,29 +844,39 @@ function oi(e) {
850
844
  return "";
851
845
  }), t;
852
846
  }
853
- var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
854
- function li(e) {
847
+ var X = function() {
848
+ return X = Object.assign || function(t) {
849
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
850
+ n = arguments[r];
851
+ for (var o in n)
852
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
853
+ }
854
+ return t;
855
+ }, X.apply(this, arguments);
856
+ };
857
+ var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
+ function ui(e) {
855
859
  if (e.length === 0)
856
860
  throw new Error("Number skeleton cannot be empty");
857
- for (var t = e.split(si).filter(function(b) {
858
- return b.length > 0;
861
+ for (var t = e.split(li).filter(function(g) {
862
+ return g.length > 0;
859
863
  }), n = [], r = 0, i = t; r < i.length; r++) {
860
- var a = i[r], l = a.split("/");
864
+ var o = i[r], l = o.split("/");
861
865
  if (l.length === 0)
862
866
  throw new Error("Invalid number skeleton");
863
867
  for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
864
- var g = d[u];
865
- if (g.length === 0)
868
+ var m = d[u];
869
+ if (m.length === 0)
866
870
  throw new Error("Invalid number skeleton");
867
871
  }
868
872
  n.push({ stem: s, options: h });
869
873
  }
870
874
  return n;
871
875
  }
872
- function ui(e) {
876
+ function ci(e) {
873
877
  return e.replace(/^(.*?)-/, "");
874
878
  }
875
- var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
879
+ var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
876
880
  function cn(e) {
877
881
  var t = {};
878
882
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
@@ -919,7 +923,7 @@ function zn(e) {
919
923
  };
920
924
  }
921
925
  }
922
- function hi(e) {
926
+ function fi(e) {
923
927
  var t;
924
928
  if (e[0] === "E" && e[1] === "E" ? (t = {
925
929
  notation: "engineering"
@@ -937,7 +941,7 @@ function hn(e) {
937
941
  var t = {}, n = zn(e);
938
942
  return n || t;
939
943
  }
940
- function fi(e) {
944
+ function di(e) {
941
945
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
942
946
  var i = r[n];
943
947
  switch (i.stem) {
@@ -961,7 +965,7 @@ function fi(e) {
961
965
  continue;
962
966
  case "measure-unit":
963
967
  case "unit":
964
- t.style = "unit", t.unit = ui(i.options[0]);
968
+ t.style = "unit", t.unit = ci(i.options[0]);
965
969
  continue;
966
970
  case "compact-short":
967
971
  case "K":
@@ -972,13 +976,13 @@ function fi(e) {
972
976
  t.notation = "compact", t.compactDisplay = "long";
973
977
  continue;
974
978
  case "scientific":
975
- t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
976
- return I(I({}, h), hn(u));
979
+ t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
980
+ return X(X({}, h), hn(u));
977
981
  }, {}));
978
982
  continue;
979
983
  case "engineering":
980
- t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
981
- return I(I({}, h), hn(u));
984
+ t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
985
+ return X(X({}, h), hn(u));
982
986
  }, {}));
983
987
  continue;
984
988
  case "notation-simple":
@@ -1023,13 +1027,13 @@ function fi(e) {
1023
1027
  case "integer-width":
1024
1028
  if (i.options.length > 1)
1025
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1026
- i.options[0].replace(ci, function(h, u, d, g, b, _) {
1030
+ i.options[0].replace(hi, function(h, u, d, m, g, x) {
1027
1031
  if (u)
1028
1032
  t.minimumIntegerDigits = d.length;
1029
1033
  else {
1030
- if (g && b)
1034
+ if (m && g)
1031
1035
  throw new Error("We currently do not support maximum integer digits");
1032
- if (_)
1036
+ if (x)
1033
1037
  throw new Error("We currently do not support exact integer digits");
1034
1038
  }
1035
1039
  return "";
@@ -1043,21 +1047,21 @@ function fi(e) {
1043
1047
  if (un.test(i.stem)) {
1044
1048
  if (i.options.length > 1)
1045
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1046
- i.stem.replace(un, function(h, u, d, g, b, _) {
1047
- return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1050
+ i.stem.replace(un, function(h, u, d, m, g, x) {
1051
+ return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1048
1052
  });
1049
- var a = i.options[0];
1050
- a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), cn(a)));
1053
+ var o = i.options[0];
1054
+ o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), cn(o)));
1051
1055
  continue;
1052
1056
  }
1053
1057
  if (Vn.test(i.stem)) {
1054
- t = I(I({}, t), cn(i.stem));
1058
+ t = X(X({}, t), cn(i.stem));
1055
1059
  continue;
1056
1060
  }
1057
1061
  var l = zn(i.stem);
1058
- l && (t = I(I({}, t), l));
1059
- var s = hi(i.stem);
1060
- s && (t = I(I({}, t), s));
1062
+ l && (t = X(X({}, t), l));
1063
+ var s = fi(i.stem);
1064
+ s && (t = X(X({}, t), s));
1061
1065
  }
1062
1066
  return t;
1063
1067
  }
@@ -2476,13 +2480,13 @@ var ct = {
2476
2480
  "h"
2477
2481
  ]
2478
2482
  };
2479
- function di(e, t) {
2483
+ function pi(e, t) {
2480
2484
  for (var n = "", r = 0; r < e.length; r++) {
2481
2485
  var i = e.charAt(r);
2482
2486
  if (i === "j") {
2483
- for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2484
- a++, r++;
2485
- var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = pi(t);
2487
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2488
+ o++, r++;
2489
+ var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = mi(t);
2486
2490
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2487
2491
  n += h;
2488
2492
  for (; l-- > 0; )
@@ -2492,7 +2496,7 @@ function di(e, t) {
2492
2496
  }
2493
2497
  return n;
2494
2498
  }
2495
- function pi(e) {
2499
+ function mi(e) {
2496
2500
  var t = e.hourCycle;
2497
2501
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2498
2502
  e.hourCycles && // @ts-ignore
@@ -2514,20 +2518,20 @@ function pi(e) {
2514
2518
  var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2515
2519
  return i[0];
2516
2520
  }
2517
- var Nt, mi = new RegExp("^".concat(jn.source, "*")), gi = new RegExp("".concat(jn.source, "*$"));
2518
- function L(e, t) {
2521
+ var It, gi = new RegExp("^".concat(kn.source, "*")), bi = new RegExp("".concat(kn.source, "*$"));
2522
+ function M(e, t) {
2519
2523
  return { start: e, end: t };
2520
2524
  }
2521
- var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, vi = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, _i = !!String.prototype.trimEnd, Bi = !!Number.isSafeInteger, Ti = Bi ? Number.isSafeInteger : function(e) {
2525
+ var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, Ei = !!Object.fromEntries, _i = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ti = !!Number.isSafeInteger, wi = Ti ? Number.isSafeInteger : function(e) {
2522
2526
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2523
- }, kt = !0;
2527
+ }, Vt = !0;
2524
2528
  try {
2525
- var wi = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2526
- kt = ((Nt = wi.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2529
+ var Si = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ Vt = ((It = Si.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2527
2531
  } catch {
2528
- kt = !1;
2532
+ Vt = !1;
2529
2533
  }
2530
- var fn = bi ? (
2534
+ var fn = yi ? (
2531
2535
  // Native
2532
2536
  function(t, n, r) {
2533
2537
  return t.startsWith(n, r);
@@ -2537,13 +2541,13 @@ var fn = bi ? (
2537
2541
  function(t, n, r) {
2538
2542
  return t.slice(r, r + n.length) === n;
2539
2543
  }
2540
- ), jt = yi ? String.fromCodePoint : (
2544
+ ), Xt = vi ? String.fromCodePoint : (
2541
2545
  // IE11
2542
2546
  function() {
2543
2547
  for (var t = [], n = 0; n < arguments.length; n++)
2544
2548
  t[n] = arguments[n];
2545
- for (var r = "", i = t.length, a = 0, l; i > a; ) {
2546
- if (l = t[a++], l > 1114111)
2549
+ for (var r = "", i = t.length, o = 0, l; i > o; ) {
2550
+ if (l = t[o++], l > 1114111)
2547
2551
  throw RangeError(l + " is not a valid code point");
2548
2552
  r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2549
2553
  }
@@ -2551,17 +2555,17 @@ var fn = bi ? (
2551
2555
  }
2552
2556
  ), dn = (
2553
2557
  // native
2554
- vi ? Object.fromEntries : (
2558
+ Ei ? Object.fromEntries : (
2555
2559
  // Ponyfill
2556
2560
  function(t) {
2557
2561
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2558
- var a = i[r], l = a[0], s = a[1];
2562
+ var o = i[r], l = o[0], s = o[1];
2559
2563
  n[l] = s;
2560
2564
  }
2561
2565
  return n;
2562
2566
  }
2563
2567
  )
2564
- ), Wn = Ei ? (
2568
+ ), Wn = _i ? (
2565
2569
  // Native
2566
2570
  function(t, n) {
2567
2571
  return t.codePointAt(n);
@@ -2571,11 +2575,11 @@ var fn = bi ? (
2571
2575
  function(t, n) {
2572
2576
  var r = t.length;
2573
2577
  if (!(n < 0 || n >= r)) {
2574
- var i = t.charCodeAt(n), a;
2575
- return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2578
+ var i = t.charCodeAt(n), o;
2579
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2576
2580
  }
2577
2581
  }
2578
- ), Si = xi ? (
2582
+ ), Ai = xi ? (
2579
2583
  // Native
2580
2584
  function(t) {
2581
2585
  return t.trimStart();
@@ -2583,9 +2587,9 @@ var fn = bi ? (
2583
2587
  ) : (
2584
2588
  // Ponyfill
2585
2589
  function(t) {
2586
- return t.replace(mi, "");
2590
+ return t.replace(gi, "");
2587
2591
  }
2588
- ), Ai = _i ? (
2592
+ ), Ci = Bi ? (
2589
2593
  // Native
2590
2594
  function(t) {
2591
2595
  return t.trimEnd();
@@ -2593,32 +2597,32 @@ var fn = bi ? (
2593
2597
  ) : (
2594
2598
  // Ponyfill
2595
2599
  function(t) {
2596
- return t.replace(gi, "");
2600
+ return t.replace(bi, "");
2597
2601
  }
2598
2602
  );
2599
2603
  function Zn(e, t) {
2600
2604
  return new RegExp(e, t);
2601
2605
  }
2602
- var Vt;
2603
- if (kt) {
2606
+ var zt;
2607
+ if (Vt) {
2604
2608
  var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2605
- Vt = function(t, n) {
2609
+ zt = function(t, n) {
2606
2610
  var r;
2607
2611
  pn.lastIndex = n;
2608
2612
  var i = pn.exec(t);
2609
2613
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2610
2614
  };
2611
2615
  } else
2612
- Vt = function(t, n) {
2616
+ zt = function(t, n) {
2613
2617
  for (var r = []; ; ) {
2614
2618
  var i = Wn(t, n);
2615
- if (i === void 0 || qn(i) || Ri(i))
2619
+ if (i === void 0 || qn(i) || Li(i))
2616
2620
  break;
2617
2621
  r.push(i), n += i >= 65536 ? 2 : 1;
2618
2622
  }
2619
- return jt.apply(void 0, r);
2623
+ return Xt.apply(void 0, r);
2620
2624
  };
2621
- var Ci = (
2625
+ var Hi = (
2622
2626
  /** @class */
2623
2627
  function() {
2624
2628
  function e(t, n) {
@@ -2630,26 +2634,26 @@ var Ci = (
2630
2634
  return this.parseMessage(0, "", !1);
2631
2635
  }, e.prototype.parseMessage = function(t, n, r) {
2632
2636
  for (var i = []; !this.isEOF(); ) {
2633
- var a = this.char();
2634
- if (a === 123) {
2637
+ var o = this.char();
2638
+ if (o === 123) {
2635
2639
  var l = this.parseArgument(t, r);
2636
2640
  if (l.err)
2637
2641
  return l;
2638
2642
  i.push(l.val);
2639
2643
  } else {
2640
- if (a === 125 && t > 0)
2644
+ if (o === 125 && t > 0)
2641
2645
  break;
2642
- if (a === 35 && (n === "plural" || n === "selectordinal")) {
2646
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2643
2647
  var s = this.clonePosition();
2644
2648
  this.bump(), i.push({
2645
- type: k.pound,
2646
- location: L(s, this.clonePosition())
2649
+ type: $.pound,
2650
+ location: M(s, this.clonePosition())
2647
2651
  });
2648
- } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2652
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2649
2653
  if (r)
2650
2654
  break;
2651
- return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2652
- } else if (a === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2655
+ return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2656
+ } else if (o === 60 && !this.ignoreTag && Wt(this.peek() || 0)) {
2653
2657
  var l = this.parseTag(t, n);
2654
2658
  if (l.err)
2655
2659
  return l;
@@ -2670,44 +2674,44 @@ var Ci = (
2670
2674
  if (this.bumpSpace(), this.bumpIf("/>"))
2671
2675
  return {
2672
2676
  val: {
2673
- type: k.literal,
2677
+ type: $.literal,
2674
2678
  value: "<".concat(i, "/>"),
2675
- location: L(r, this.clonePosition())
2679
+ location: M(r, this.clonePosition())
2676
2680
  },
2677
2681
  err: null
2678
2682
  };
2679
2683
  if (this.bumpIf(">")) {
2680
- var a = this.parseMessage(t + 1, n, !0);
2681
- if (a.err)
2682
- return a;
2683
- var l = a.val, s = this.clonePosition();
2684
+ var o = this.parseMessage(t + 1, n, !0);
2685
+ if (o.err)
2686
+ return o;
2687
+ var l = o.val, s = this.clonePosition();
2684
2688
  if (this.bumpIf("</")) {
2685
- if (this.isEOF() || !Xt(this.char()))
2686
- return this.error(R.INVALID_TAG, L(s, this.clonePosition()));
2689
+ if (this.isEOF() || !Wt(this.char()))
2690
+ return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2687
2691
  var h = this.clonePosition(), u = this.parseTagName();
2688
- return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2692
+ return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2689
2693
  val: {
2690
- type: k.tag,
2694
+ type: $.tag,
2691
2695
  value: i,
2692
2696
  children: l,
2693
- location: L(r, this.clonePosition())
2697
+ location: M(r, this.clonePosition())
2694
2698
  },
2695
2699
  err: null
2696
- } : this.error(R.INVALID_TAG, L(s, this.clonePosition())));
2700
+ } : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
2697
2701
  } else
2698
- return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
2702
+ return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2699
2703
  } else
2700
- return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2704
+ return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2701
2705
  }, e.prototype.parseTagName = function() {
2702
2706
  var t = this.offset();
2703
- for (this.bump(); !this.isEOF() && Oi(this.char()); )
2707
+ for (this.bump(); !this.isEOF() && Ri(this.char()); )
2704
2708
  this.bump();
2705
2709
  return this.message.slice(t, this.offset());
2706
2710
  }, e.prototype.parseLiteral = function(t, n) {
2707
2711
  for (var r = this.clonePosition(), i = ""; ; ) {
2708
- var a = this.tryParseQuote(n);
2709
- if (a) {
2710
- i += a;
2712
+ var o = this.tryParseQuote(n);
2713
+ if (o) {
2714
+ i += o;
2711
2715
  continue;
2712
2716
  }
2713
2717
  var l = this.tryParseUnquoted(t, n);
@@ -2722,14 +2726,14 @@ var Ci = (
2722
2726
  }
2723
2727
  break;
2724
2728
  }
2725
- var h = L(r, this.clonePosition());
2729
+ var h = M(r, this.clonePosition());
2726
2730
  return {
2727
- val: { type: k.literal, value: i, location: h },
2731
+ val: { type: $.literal, value: i, location: h },
2728
2732
  err: null
2729
2733
  };
2730
2734
  }, e.prototype.tryParseLeftAngleBracket = function() {
2731
2735
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2732
- !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
+ !Oi(this.peek() || 0)) ? (this.bump(), "<") : null;
2733
2737
  }, e.prototype.tryParseQuote = function(t) {
2734
2738
  if (this.isEOF() || this.char() !== 39)
2735
2739
  return null;
@@ -2763,49 +2767,49 @@ var Ci = (
2763
2767
  n.push(r);
2764
2768
  this.bump();
2765
2769
  }
2766
- return jt.apply(void 0, n);
2770
+ return Xt.apply(void 0, n);
2767
2771
  }, e.prototype.tryParseUnquoted = function(t, n) {
2768
2772
  if (this.isEOF())
2769
2773
  return null;
2770
2774
  var r = this.char();
2771
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), jt(r));
2775
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xt(r));
2772
2776
  }, e.prototype.parseArgument = function(t, n) {
2773
2777
  var r = this.clonePosition();
2774
2778
  if (this.bump(), this.bumpSpace(), this.isEOF())
2775
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2779
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2776
2780
  if (this.char() === 125)
2777
- return this.bump(), this.error(R.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2781
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2778
2782
  var i = this.parseIdentifierIfPossible().value;
2779
2783
  if (!i)
2780
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2784
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2781
2785
  if (this.bumpSpace(), this.isEOF())
2782
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2786
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2783
2787
  switch (this.char()) {
2784
2788
  case 125:
2785
2789
  return this.bump(), {
2786
2790
  val: {
2787
- type: k.argument,
2791
+ type: $.argument,
2788
2792
  // value does not include the opening and closing braces.
2789
2793
  value: i,
2790
- location: L(r, this.clonePosition())
2794
+ location: M(r, this.clonePosition())
2791
2795
  },
2792
2796
  err: null
2793
2797
  };
2794
2798
  case 44:
2795
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2799
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2796
2800
  default:
2797
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2801
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2798
2802
  }
2799
2803
  }, e.prototype.parseIdentifierIfPossible = function() {
2800
- var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2804
+ var t = this.clonePosition(), n = this.offset(), r = zt(this.message, n), i = n + r.length;
2801
2805
  this.bumpTo(i);
2802
- var a = this.clonePosition(), l = L(t, a);
2806
+ var o = this.clonePosition(), l = M(t, o);
2803
2807
  return { value: r, location: l };
2804
2808
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2805
- var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2809
+ var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2806
2810
  switch (s) {
2807
2811
  case "":
2808
- return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, h));
2812
+ return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, h));
2809
2813
  case "number":
2810
2814
  case "date":
2811
2815
  case "time": {
@@ -2813,50 +2817,50 @@ var Ci = (
2813
2817
  var u = null;
2814
2818
  if (this.bumpIf(",")) {
2815
2819
  this.bumpSpace();
2816
- var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2817
- if (g.err)
2818
- return g;
2819
- var b = Ai(g.val);
2820
- if (b.length === 0)
2821
- return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2822
- var _ = L(d, this.clonePosition());
2823
- u = { style: b, styleLocation: _ };
2820
+ var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2821
+ if (m.err)
2822
+ return m;
2823
+ var g = Ci(m.val);
2824
+ if (g.length === 0)
2825
+ return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2826
+ var x = M(d, this.clonePosition());
2827
+ u = { style: g, styleLocation: x };
2824
2828
  }
2825
- var T = this.tryParseArgumentClose(i);
2826
- if (T.err)
2827
- return T;
2828
- var S = L(i, this.clonePosition());
2829
+ var B = this.tryParseArgumentClose(i);
2830
+ if (B.err)
2831
+ return B;
2832
+ var T = M(i, this.clonePosition());
2829
2833
  if (u && fn(u?.style, "::", 0)) {
2830
- var x = Si(u.style.slice(2));
2834
+ var _ = Ai(u.style.slice(2));
2831
2835
  if (s === "number") {
2832
- var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
2833
- return g.err ? g : {
2834
- val: { type: k.number, value: r, location: S, style: g.val },
2836
+ var m = this.parseNumberSkeletonFromString(_, u.styleLocation);
2837
+ return m.err ? m : {
2838
+ val: { type: $.number, value: r, location: T, style: m.val },
2835
2839
  err: null
2836
2840
  };
2837
2841
  } else {
2838
- if (x.length === 0)
2839
- return this.error(R.EXPECT_DATE_TIME_SKELETON, S);
2840
- var C = x;
2841
- this.locale && (C = di(x, this.locale));
2842
- var b = {
2843
- type: Ue.dateTime,
2844
- pattern: C,
2842
+ if (_.length === 0)
2843
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2844
+ var S = _;
2845
+ this.locale && (S = pi(_, this.locale));
2846
+ var g = {
2847
+ type: $e.dateTime,
2848
+ pattern: S,
2845
2849
  location: u.styleLocation,
2846
- parsedOptions: this.shouldParseSkeletons ? oi(C) : {}
2847
- }, D = s === "date" ? k.date : k.time;
2850
+ parsedOptions: this.shouldParseSkeletons ? si(S) : {}
2851
+ }, I = s === "date" ? $.date : $.time;
2848
2852
  return {
2849
- val: { type: D, value: r, location: S, style: b },
2853
+ val: { type: I, value: r, location: T, style: g },
2850
2854
  err: null
2851
2855
  };
2852
2856
  }
2853
2857
  }
2854
2858
  return {
2855
2859
  val: {
2856
- type: s === "number" ? k.number : s === "date" ? k.date : k.time,
2860
+ type: s === "number" ? $.number : s === "date" ? $.date : $.time,
2857
2861
  value: r,
2858
- location: S,
2859
- style: (a = u?.style) !== null && a !== void 0 ? a : null
2862
+ location: T,
2863
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2860
2864
  },
2861
2865
  err: null
2862
2866
  };
@@ -2864,52 +2868,52 @@ var Ci = (
2864
2868
  case "plural":
2865
2869
  case "selectordinal":
2866
2870
  case "select": {
2867
- var O = this.clonePosition();
2871
+ var H = this.clonePosition();
2868
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2869
- return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2873
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, bt({}, H)));
2870
2874
  this.bumpSpace();
2871
- var U = this.parseIdentifierIfPossible(), q = 0;
2872
- if (s !== "select" && U.value === "offset") {
2875
+ var D = this.parseIdentifierIfPossible(), W = 0;
2876
+ if (s !== "select" && D.value === "offset") {
2873
2877
  if (!this.bumpIf(":"))
2874
- return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2878
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2875
2879
  this.bumpSpace();
2876
- var g = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2877
- if (g.err)
2878
- return g;
2879
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), q = g.val;
2880
+ var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2881
+ if (m.err)
2882
+ return m;
2883
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = m.val;
2880
2884
  }
2881
- var re = this.tryParsePluralOrSelectOptions(t, s, n, U);
2882
- if (re.err)
2883
- return re;
2884
- var T = this.tryParseArgumentClose(i);
2885
- if (T.err)
2886
- return T;
2887
- var z = L(i, this.clonePosition());
2885
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, D);
2886
+ if (q.err)
2887
+ return q;
2888
+ var B = this.tryParseArgumentClose(i);
2889
+ if (B.err)
2890
+ return B;
2891
+ var Y = M(i, this.clonePosition());
2888
2892
  return s === "select" ? {
2889
2893
  val: {
2890
- type: k.select,
2894
+ type: $.select,
2891
2895
  value: r,
2892
- options: dn(re.val),
2893
- location: z
2896
+ options: dn(q.val),
2897
+ location: Y
2894
2898
  },
2895
2899
  err: null
2896
2900
  } : {
2897
2901
  val: {
2898
- type: k.plural,
2902
+ type: $.plural,
2899
2903
  value: r,
2900
- options: dn(re.val),
2901
- offset: q,
2904
+ options: dn(q.val),
2905
+ offset: W,
2902
2906
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2903
- location: z
2907
+ location: Y
2904
2908
  },
2905
2909
  err: null
2906
2910
  };
2907
2911
  }
2908
2912
  default:
2909
- return this.error(R.INVALID_ARGUMENT_TYPE, L(l, h));
2913
+ return this.error(O.INVALID_ARGUMENT_TYPE, M(l, h));
2910
2914
  }
2911
2915
  }, e.prototype.tryParseArgumentClose = function(t) {
2912
- return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2916
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2913
2917
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2914
2918
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2915
2919
  var r = this.char();
@@ -2918,7 +2922,7 @@ var Ci = (
2918
2922
  this.bump();
2919
2923
  var i = this.clonePosition();
2920
2924
  if (!this.bumpUntil("'"))
2921
- return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2925
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2922
2926
  this.bump();
2923
2927
  break;
2924
2928
  }
@@ -2948,64 +2952,64 @@ var Ci = (
2948
2952
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2949
2953
  var r = [];
2950
2954
  try {
2951
- r = li(t);
2955
+ r = ui(t);
2952
2956
  } catch {
2953
- return this.error(R.INVALID_NUMBER_SKELETON, n);
2957
+ return this.error(O.INVALID_NUMBER_SKELETON, n);
2954
2958
  }
2955
2959
  return {
2956
2960
  val: {
2957
- type: Ue.number,
2961
+ type: $e.number,
2958
2962
  tokens: r,
2959
2963
  location: n,
2960
- parsedOptions: this.shouldParseSkeletons ? fi(r) : {}
2964
+ parsedOptions: this.shouldParseSkeletons ? di(r) : {}
2961
2965
  },
2962
2966
  err: null
2963
2967
  };
2964
2968
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2965
- for (var a, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2969
+ for (var o, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2966
2970
  if (u.length === 0) {
2967
- var g = this.clonePosition();
2971
+ var m = this.clonePosition();
2968
2972
  if (n !== "select" && this.bumpIf("=")) {
2969
- var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
2970
- if (b.err)
2971
- return b;
2972
- d = L(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
2973
+ var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2974
+ if (g.err)
2975
+ return g;
2976
+ d = M(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
2973
2977
  } else
2974
2978
  break;
2975
2979
  }
2976
2980
  if (h.has(u))
2977
- return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2981
+ return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2978
2982
  u === "other" && (l = !0), this.bumpSpace();
2979
- var _ = this.clonePosition();
2983
+ var x = this.clonePosition();
2980
2984
  if (!this.bumpIf("{"))
2981
- return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2982
- var T = this.parseMessage(t + 1, n, r);
2985
+ return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2986
+ var B = this.parseMessage(t + 1, n, r);
2987
+ if (B.err)
2988
+ return B;
2989
+ var T = this.tryParseArgumentClose(x);
2983
2990
  if (T.err)
2984
2991
  return T;
2985
- var S = this.tryParseArgumentClose(_);
2986
- if (S.err)
2987
- return S;
2988
2992
  s.push([
2989
2993
  u,
2990
2994
  {
2991
- value: T.val,
2992
- location: L(_, this.clonePosition())
2995
+ value: B.val,
2996
+ location: M(x, this.clonePosition())
2993
2997
  }
2994
- ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
2998
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
2995
2999
  }
2996
- return s.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3000
+ return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2997
3001
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2998
3002
  var r = 1, i = this.clonePosition();
2999
3003
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3000
- for (var a = !1, l = 0; !this.isEOF(); ) {
3004
+ for (var o = !1, l = 0; !this.isEOF(); ) {
3001
3005
  var s = this.char();
3002
3006
  if (s >= 48 && s <= 57)
3003
- a = !0, l = l * 10 + (s - 48), this.bump();
3007
+ o = !0, l = l * 10 + (s - 48), this.bump();
3004
3008
  else
3005
3009
  break;
3006
3010
  }
3007
- var h = L(i, this.clonePosition());
3008
- return a ? (l *= r, Ti(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3011
+ var h = M(i, this.clonePosition());
3012
+ return o ? (l *= r, wi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3009
3013
  }, e.prototype.offset = function() {
3010
3014
  return this.position.offset;
3011
3015
  }, e.prototype.isEOF = function() {
@@ -3071,50 +3075,50 @@ var Ci = (
3071
3075
  }, e;
3072
3076
  }()
3073
3077
  );
3074
- function Xt(e) {
3078
+ function Wt(e) {
3075
3079
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3076
3080
  }
3077
- function Hi(e) {
3078
- return Xt(e) || e === 47;
3079
- }
3080
3081
  function Oi(e) {
3082
+ return Wt(e) || e === 47;
3083
+ }
3084
+ function Ri(e) {
3081
3085
  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;
3082
3086
  }
3083
3087
  function qn(e) {
3084
3088
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3085
3089
  }
3086
- function Ri(e) {
3090
+ function Li(e) {
3087
3091
  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;
3088
3092
  }
3089
- function zt(e) {
3093
+ function Zt(e) {
3090
3094
  e.forEach(function(t) {
3091
3095
  if (delete t.location, Fn(t) || Gn(t))
3092
3096
  for (var n in t.options)
3093
- delete t.options[n].location, zt(t.options[n].value);
3097
+ delete t.options[n].location, Zt(t.options[n].value);
3094
3098
  else
3095
- Pn(t) && kn(t.style) || (Dn(t) || Un(t)) && $t(t.style) ? delete t.style.location : $n(t) && zt(t.children);
3099
+ In(t) && jn(t.style) || (Dn(t) || Un(t)) && kt(t.style) ? delete t.style.location : $n(t) && Zt(t.children);
3096
3100
  });
3097
3101
  }
3098
- function Li(e, t) {
3099
- t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3100
- var n = new Ci(e, t).parse();
3102
+ function Mi(e, t) {
3103
+ t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
+ var n = new Hi(e, t).parse();
3101
3105
  if (n.err) {
3102
- var r = SyntaxError(R[n.err.kind]);
3106
+ var r = SyntaxError(O[n.err.kind]);
3103
3107
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3104
3108
  }
3105
- return t?.captureLocation || zt(n.val), n.val;
3109
+ return t?.captureLocation || Zt(n.val), n.val;
3106
3110
  }
3107
- var Fe;
3111
+ var je;
3108
3112
  (function(e) {
3109
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3110
- })(Fe || (Fe = {}));
3114
+ })(je || (je = {}));
3111
3115
  var xt = (
3112
3116
  /** @class */
3113
3117
  function(e) {
3114
- Et(t, e);
3118
+ _t(t, e);
3115
3119
  function t(n, r, i) {
3116
- var a = e.call(this, n) || this;
3117
- return a.code = r, a.originalMessage = i, a;
3120
+ var o = e.call(this, n) || this;
3121
+ return o.code = r, o.originalMessage = i, o;
3118
3122
  }
3119
3123
  return t.prototype.toString = function() {
3120
3124
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3123,27 +3127,27 @@ var xt = (
3123
3127
  ), mn = (
3124
3128
  /** @class */
3125
3129
  function(e) {
3126
- Et(t, e);
3127
- function t(n, r, i, a) {
3128
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
3130
+ _t(t, e);
3131
+ function t(n, r, i, o) {
3132
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
3129
3133
  }
3130
3134
  return t;
3131
3135
  }(xt)
3132
- ), Mi = (
3136
+ ), Ni = (
3133
3137
  /** @class */
3134
3138
  function(e) {
3135
- Et(t, e);
3139
+ _t(t, e);
3136
3140
  function t(n, r, i) {
3137
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
3141
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3138
3142
  }
3139
3143
  return t;
3140
3144
  }(xt)
3141
- ), Ni = (
3145
+ ), Pi = (
3142
3146
  /** @class */
3143
3147
  function(e) {
3144
- Et(t, e);
3148
+ _t(t, e);
3145
3149
  function t(n, r) {
3146
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
3150
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3147
3151
  }
3148
3152
  return t;
3149
3153
  }(xt)
@@ -3157,10 +3161,10 @@ function Ii(e) {
3157
3161
  return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3158
3162
  }, []);
3159
3163
  }
3160
- function Pi(e) {
3164
+ function Di(e) {
3161
3165
  return typeof e == "function";
3162
3166
  }
3163
- function ft(e, t, n, r, i, a, l) {
3167
+ function ft(e, t, n, r, i, o, l) {
3164
3168
  if (e.length === 1 && ln(e[0]))
3165
3169
  return [
3166
3170
  {
@@ -3177,98 +3181,98 @@ function ft(e, t, n, r, i, a, l) {
3177
3181
  });
3178
3182
  continue;
3179
3183
  }
3180
- if (ii(d)) {
3181
- typeof a == "number" && s.push({
3184
+ if (oi(d)) {
3185
+ typeof o == "number" && s.push({
3182
3186
  type: ne.literal,
3183
- value: n.getNumberFormat(t).format(a)
3187
+ value: n.getNumberFormat(t).format(o)
3184
3188
  });
3185
3189
  continue;
3186
3190
  }
3187
- var g = d.value;
3188
- if (!(i && g in i))
3189
- throw new Ni(g, l);
3190
- var b = i[g];
3191
- if (ri(d)) {
3192
- (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3193
- type: typeof b == "string" ? ne.literal : ne.object,
3194
- value: b
3191
+ var m = d.value;
3192
+ if (!(i && m in i))
3193
+ throw new Pi(m, l);
3194
+ var g = i[m];
3195
+ if (ii(d)) {
3196
+ (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3197
+ type: typeof g == "string" ? ne.literal : ne.object,
3198
+ value: g
3195
3199
  });
3196
3200
  continue;
3197
3201
  }
3198
3202
  if (Dn(d)) {
3199
- var _ = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3203
+ var x = typeof d.style == "string" ? r.date[d.style] : kt(d.style) ? d.style.parsedOptions : void 0;
3200
3204
  s.push({
3201
3205
  type: ne.literal,
3202
- value: n.getDateTimeFormat(t, _).format(b)
3206
+ value: n.getDateTimeFormat(t, x).format(g)
3203
3207
  });
3204
3208
  continue;
3205
3209
  }
3206
3210
  if (Un(d)) {
3207
- var _ = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3211
+ var x = typeof d.style == "string" ? r.time[d.style] : kt(d.style) ? d.style.parsedOptions : r.time.medium;
3208
3212
  s.push({
3209
3213
  type: ne.literal,
3210
- value: n.getDateTimeFormat(t, _).format(b)
3214
+ value: n.getDateTimeFormat(t, x).format(g)
3211
3215
  });
3212
3216
  continue;
3213
3217
  }
3214
- if (Pn(d)) {
3215
- var _ = typeof d.style == "string" ? r.number[d.style] : kn(d.style) ? d.style.parsedOptions : void 0;
3216
- _ && _.scale && (b = b * (_.scale || 1)), s.push({
3218
+ if (In(d)) {
3219
+ var x = typeof d.style == "string" ? r.number[d.style] : jn(d.style) ? d.style.parsedOptions : void 0;
3220
+ x && x.scale && (g = g * (x.scale || 1)), s.push({
3217
3221
  type: ne.literal,
3218
- value: n.getNumberFormat(t, _).format(b)
3222
+ value: n.getNumberFormat(t, x).format(g)
3219
3223
  });
3220
3224
  continue;
3221
3225
  }
3222
3226
  if ($n(d)) {
3223
- var T = d.children, S = d.value, x = i[S];
3224
- if (!Pi(x))
3225
- throw new Mi(S, "function", l);
3226
- var C = ft(T, t, n, r, i, a), D = x(C.map(function(q) {
3227
- return q.value;
3227
+ var B = d.children, T = d.value, _ = i[T];
3228
+ if (!Di(_))
3229
+ throw new Ni(T, "function", l);
3230
+ var S = ft(B, t, n, r, i, o), I = _(S.map(function(W) {
3231
+ return W.value;
3228
3232
  }));
3229
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(q) {
3233
+ Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(W) {
3230
3234
  return {
3231
- type: typeof q == "string" ? ne.literal : ne.object,
3232
- value: q
3235
+ type: typeof W == "string" ? ne.literal : ne.object,
3236
+ value: W
3233
3237
  };
3234
3238
  }));
3235
3239
  }
3236
3240
  if (Fn(d)) {
3237
- var O = d.options[b] || d.options.other;
3238
- if (!O)
3239
- throw new mn(d.value, b, Object.keys(d.options), l);
3240
- s.push.apply(s, ft(O.value, t, n, r, i));
3241
+ var H = d.options[g] || d.options.other;
3242
+ if (!H)
3243
+ throw new mn(d.value, g, Object.keys(d.options), l);
3244
+ s.push.apply(s, ft(H.value, t, n, r, i));
3241
3245
  continue;
3242
3246
  }
3243
3247
  if (Gn(d)) {
3244
- var O = d.options["=".concat(b)];
3245
- if (!O) {
3248
+ var H = d.options["=".concat(g)];
3249
+ if (!H) {
3246
3250
  if (!Intl.PluralRules)
3247
3251
  throw new xt(`Intl.PluralRules is not available in this environment.
3248
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3249
- `, Fe.MISSING_INTL_API, l);
3250
- var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3251
- O = d.options[U] || d.options.other;
3253
+ `, je.MISSING_INTL_API, l);
3254
+ var D = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3255
+ H = d.options[D] || d.options.other;
3252
3256
  }
3253
- if (!O)
3254
- throw new mn(d.value, b, Object.keys(d.options), l);
3255
- s.push.apply(s, ft(O.value, t, n, r, i, b - (d.offset || 0)));
3257
+ if (!H)
3258
+ throw new mn(d.value, g, Object.keys(d.options), l);
3259
+ s.push.apply(s, ft(H.value, t, n, r, i, g - (d.offset || 0)));
3256
3260
  continue;
3257
3261
  }
3258
3262
  }
3259
3263
  return Ii(s);
3260
3264
  }
3261
- function Di(e, t) {
3262
- return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3263
- return n[r] = I(I({}, e[r]), t[r] || {}), n;
3265
+ function Ui(e, t) {
3266
+ return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3267
+ return n[r] = me(me({}, e[r]), t[r] || {}), n;
3264
3268
  }, {})) : e;
3265
3269
  }
3266
- function Ui(e, t) {
3270
+ function Fi(e, t) {
3267
3271
  return t ? Object.keys(e).reduce(function(n, r) {
3268
- return n[r] = Di(e[r], t[r]), n;
3269
- }, I({}, e)) : e;
3272
+ return n[r] = Ui(e[r], t[r]), n;
3273
+ }, me({}, e)) : e;
3270
3274
  }
3271
- function It(e) {
3275
+ function Dt(e) {
3272
3276
  return {
3273
3277
  create: function() {
3274
3278
  return {
@@ -3282,77 +3286,77 @@ function It(e) {
3282
3286
  }
3283
3287
  };
3284
3288
  }
3285
- function Fi(e) {
3289
+ function Gi(e) {
3286
3290
  return e === void 0 && (e = {
3287
3291
  number: {},
3288
3292
  dateTime: {},
3289
3293
  pluralRules: {}
3290
3294
  }), {
3291
- getNumberFormat: Lt(function() {
3295
+ getNumberFormat: Nt(function() {
3292
3296
  for (var t, n = [], r = 0; r < arguments.length; r++)
3293
3297
  n[r] = arguments[r];
3294
- return new ((t = Intl.NumberFormat).bind.apply(t, Rt([void 0], n, !1)))();
3298
+ return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
3295
3299
  }, {
3296
- cache: It(e.number),
3297
- strategy: Mt.variadic
3300
+ cache: Dt(e.number),
3301
+ strategy: Pt.variadic
3298
3302
  }),
3299
- getDateTimeFormat: Lt(function() {
3303
+ getDateTimeFormat: Nt(function() {
3300
3304
  for (var t, n = [], r = 0; r < arguments.length; r++)
3301
3305
  n[r] = arguments[r];
3302
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Rt([void 0], n, !1)))();
3306
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
3303
3307
  }, {
3304
- cache: It(e.dateTime),
3305
- strategy: Mt.variadic
3308
+ cache: Dt(e.dateTime),
3309
+ strategy: Pt.variadic
3306
3310
  }),
3307
- getPluralRules: Lt(function() {
3311
+ getPluralRules: Nt(function() {
3308
3312
  for (var t, n = [], r = 0; r < arguments.length; r++)
3309
3313
  n[r] = arguments[r];
3310
- return new ((t = Intl.PluralRules).bind.apply(t, Rt([void 0], n, !1)))();
3314
+ return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
3311
3315
  }, {
3312
- cache: It(e.pluralRules),
3313
- strategy: Mt.variadic
3316
+ cache: Dt(e.pluralRules),
3317
+ strategy: Pt.variadic
3314
3318
  })
3315
3319
  };
3316
3320
  }
3317
- var Gi = (
3321
+ var $i = (
3318
3322
  /** @class */
3319
3323
  function() {
3320
3324
  function e(t, n, r, i) {
3321
3325
  n === void 0 && (n = e.defaultLocale);
3322
- var a = this;
3326
+ var o = this;
3323
3327
  if (this.formatterCache = {
3324
3328
  number: {},
3325
3329
  dateTime: {},
3326
3330
  pluralRules: {}
3327
3331
  }, this.format = function(h) {
3328
- var u = a.formatToParts(h);
3332
+ var u = o.formatToParts(h);
3329
3333
  if (u.length === 1)
3330
3334
  return u[0].value;
3331
- var d = u.reduce(function(g, b) {
3332
- return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3335
+ var d = u.reduce(function(m, g) {
3336
+ return !m.length || g.type !== ne.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
3333
3337
  }, []);
3334
3338
  return d.length <= 1 ? d[0] || "" : d;
3335
3339
  }, this.formatToParts = function(h) {
3336
- return ft(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3340
+ return ft(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3337
3341
  }, this.resolvedOptions = function() {
3338
3342
  var h;
3339
3343
  return {
3340
- locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3344
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3341
3345
  };
3342
3346
  }, this.getAst = function() {
3343
- return a.ast;
3347
+ return o.ast;
3344
3348
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3345
3349
  if (this.message = t, !e.__parse)
3346
3350
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3347
3351
  var l = i || {};
3348
3352
  l.formatters;
3349
3353
  var s = Qr(l, ["formatters"]);
3350
- this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3354
+ this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
3351
3355
  } else
3352
3356
  this.ast = t;
3353
3357
  if (!Array.isArray(this.ast))
3354
3358
  throw new TypeError("A message must be provided as a String or AST.");
3355
- this.formats = Ui(e.formats, r), this.formatters = i && i.formatters || Fi(this.formatterCache);
3359
+ this.formats = Fi(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
3356
3360
  }
3357
3361
  return Object.defineProperty(e, "defaultLocale", {
3358
3362
  get: function() {
@@ -3365,7 +3369,7 @@ var Gi = (
3365
3369
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3366
3370
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3367
3371
  }
3368
- }, e.__parse = Li, e.formats = {
3372
+ }, e.__parse = Mi, e.formats = {
3369
3373
  number: {
3370
3374
  integer: {
3371
3375
  maximumFractionDigits: 0
@@ -3426,7 +3430,7 @@ var Gi = (
3426
3430
  }, e;
3427
3431
  }()
3428
3432
  );
3429
- function $i(e, t) {
3433
+ function ji(e, t) {
3430
3434
  if (t == null)
3431
3435
  return;
3432
3436
  if (t in e)
@@ -3436,9 +3440,9 @@ function $i(e, t) {
3436
3440
  for (let i = 0; i < n.length; i++)
3437
3441
  if (typeof r == "object") {
3438
3442
  if (i > 0) {
3439
- const a = n.slice(i, n.length).join(".");
3440
- if (a in r) {
3441
- r = r[a];
3443
+ const o = n.slice(i, n.length).join(".");
3444
+ if (o in r) {
3445
+ r = r[o];
3442
3446
  break;
3443
3447
  }
3444
3448
  }
@@ -3452,31 +3456,31 @@ const Se = {}, ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (S
3452
3456
  return;
3453
3457
  if (t in Se && e in Se[t])
3454
3458
  return Se[t][e];
3455
- const n = _t(t);
3459
+ const n = Bt(t);
3456
3460
  for (let r = 0; r < n.length; r++) {
3457
- const i = n[r], a = Vi(i, e);
3458
- if (a)
3459
- return ki(e, t, a);
3461
+ const i = n[r], o = Xi(i, e);
3462
+ if (o)
3463
+ return ki(e, t, o);
3460
3464
  }
3461
3465
  };
3462
3466
  let Kt;
3463
- const nt = vt({});
3464
- function ji(e) {
3467
+ const it = Et({});
3468
+ function Vi(e) {
3465
3469
  return Kt[e] || null;
3466
3470
  }
3467
3471
  function Jn(e) {
3468
3472
  return e in Kt;
3469
3473
  }
3470
- function Vi(e, t) {
3474
+ function Xi(e, t) {
3471
3475
  if (!Jn(e))
3472
3476
  return null;
3473
- const n = ji(e);
3474
- return $i(n, t);
3477
+ const n = Vi(e);
3478
+ return ji(n, t);
3475
3479
  }
3476
- function Xi(e) {
3480
+ function zi(e) {
3477
3481
  if (e == null)
3478
3482
  return;
3479
- const t = _t(e);
3483
+ const t = Bt(e);
3480
3484
  for (let n = 0; n < t.length; n++) {
3481
3485
  const r = t[n];
3482
3486
  if (Jn(r))
@@ -3484,55 +3488,55 @@ function Xi(e) {
3484
3488
  }
3485
3489
  }
3486
3490
  function Yn(e, ...t) {
3487
- delete Se[e], nt.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
3491
+ delete Se[e], it.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
3488
3492
  }
3489
- ke(
3490
- [nt],
3493
+ Xe(
3494
+ [it],
3491
3495
  ([e]) => Object.keys(e)
3492
3496
  );
3493
- nt.subscribe((e) => Kt = e);
3497
+ it.subscribe((e) => Kt = e);
3494
3498
  const dt = {};
3495
- function zi(e, t) {
3499
+ function Wi(e, t) {
3496
3500
  dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3497
3501
  }
3498
3502
  function Kn(e) {
3499
3503
  return dt[e];
3500
3504
  }
3501
- function Wi(e) {
3502
- return _t(e).map((t) => {
3505
+ function Zi(e) {
3506
+ return Bt(e).map((t) => {
3503
3507
  const n = Kn(t);
3504
3508
  return [t, n ? [...n] : []];
3505
3509
  }).filter(([, t]) => t.length > 0);
3506
3510
  }
3507
- function Wt(e) {
3508
- return e == null ? !1 : _t(e).some(
3511
+ function qt(e) {
3512
+ return e == null ? !1 : Bt(e).some(
3509
3513
  (t) => {
3510
3514
  var n;
3511
3515
  return (n = Kn(t)) == null ? void 0 : n.size;
3512
3516
  }
3513
3517
  );
3514
3518
  }
3515
- function Zi(e, t) {
3519
+ function qi(e, t) {
3516
3520
  return Promise.all(
3517
- t.map((r) => (zi(e, r), r().then((i) => i.default || i)))
3521
+ t.map((r) => (Wi(e, r), r().then((i) => i.default || i)))
3518
3522
  ).then((r) => Yn(e, ...r));
3519
3523
  }
3520
- const Je = {};
3524
+ const Ke = {};
3521
3525
  function er(e) {
3522
- if (!Wt(e))
3523
- return e in Je ? Je[e] : Promise.resolve();
3524
- const t = Wi(e);
3525
- return Je[e] = Promise.all(
3526
+ if (!qt(e))
3527
+ return e in Ke ? Ke[e] : Promise.resolve();
3528
+ const t = Zi(e);
3529
+ return Ke[e] = Promise.all(
3526
3530
  t.map(
3527
- ([n, r]) => Zi(n, r)
3531
+ ([n, r]) => qi(n, r)
3528
3532
  )
3529
3533
  ).then(() => {
3530
- if (Wt(e))
3534
+ if (qt(e))
3531
3535
  return er(e);
3532
- delete Je[e];
3533
- }), Je[e];
3536
+ delete Ke[e];
3537
+ }), Ke[e];
3534
3538
  }
3535
- const qi = {
3539
+ const Qi = {
3536
3540
  number: {
3537
3541
  scientific: { notation: "scientific" },
3538
3542
  engineering: { notation: "engineering" },
@@ -3561,141 +3565,141 @@ const qi = {
3561
3565
  timeZoneName: "short"
3562
3566
  }
3563
3567
  }
3564
- }, Qi = {
3568
+ }, Ji = {
3565
3569
  fallbackLocale: null,
3566
3570
  loadingDelay: 200,
3567
- formats: qi,
3571
+ formats: Qi,
3568
3572
  warnOnMissingMessages: !0,
3569
3573
  handleMissingMessage: void 0,
3570
3574
  ignoreTag: !0
3571
- }, Ji = Qi;
3572
- function Ge() {
3573
- return Ji;
3575
+ }, Yi = Ji;
3576
+ function ke() {
3577
+ return Yi;
3574
3578
  }
3575
- const Pt = vt(!1);
3576
- var Yi = Object.defineProperty, Ki = Object.defineProperties, ea = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ra = (e, t) => {
3579
+ const Ut = Et(!1);
3580
+ var Ki = Object.defineProperty, eo = Object.defineProperties, to = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, io = (e, t) => {
3577
3581
  for (var n in t || (t = {}))
3578
- ta.call(t, n) && bn(e, n, t[n]);
3582
+ no.call(t, n) && bn(e, n, t[n]);
3579
3583
  if (gn)
3580
3584
  for (var n of gn(t))
3581
- na.call(t, n) && bn(e, n, t[n]);
3585
+ ro.call(t, n) && bn(e, n, t[n]);
3582
3586
  return e;
3583
- }, ia = (e, t) => Ki(e, ea(t));
3584
- let Zt;
3585
- const bt = vt(null);
3587
+ }, oo = (e, t) => eo(e, to(t));
3588
+ let Qt;
3589
+ const yt = Et(null);
3586
3590
  function yn(e) {
3587
3591
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3588
3592
  }
3589
- function _t(e, t = Ge().fallbackLocale) {
3593
+ function Bt(e, t = ke().fallbackLocale) {
3590
3594
  const n = yn(e);
3591
3595
  return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
3592
3596
  }
3593
- function He() {
3594
- return Zt ?? void 0;
3597
+ function Oe() {
3598
+ return Qt ?? void 0;
3595
3599
  }
3596
- bt.subscribe((e) => {
3597
- Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3600
+ yt.subscribe((e) => {
3601
+ Qt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3598
3602
  });
3599
- const aa = (e) => {
3600
- if (e && Xi(e) && Wt(e)) {
3601
- const { loadingDelay: t } = Ge();
3603
+ const ao = (e) => {
3604
+ if (e && zi(e) && qt(e)) {
3605
+ const { loadingDelay: t } = ke();
3602
3606
  let n;
3603
- return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3604
- () => Pt.set(!0),
3607
+ return typeof window < "u" && Oe() != null && t ? n = window.setTimeout(
3608
+ () => Ut.set(!0),
3605
3609
  t
3606
- ) : Pt.set(!0), er(e).then(() => {
3607
- bt.set(e);
3610
+ ) : Ut.set(!0), er(e).then(() => {
3611
+ yt.set(e);
3608
3612
  }).finally(() => {
3609
- clearTimeout(n), Pt.set(!1);
3613
+ clearTimeout(n), Ut.set(!1);
3610
3614
  });
3611
3615
  }
3612
- return bt.set(e);
3613
- }, je = ia(ra({}, bt), {
3614
- set: aa
3615
- }), Bt = (e) => {
3616
+ return yt.set(e);
3617
+ }, ze = oo(io({}, yt), {
3618
+ set: ao
3619
+ }), Tt = (e) => {
3616
3620
  const t = /* @__PURE__ */ Object.create(null);
3617
3621
  return (r) => {
3618
3622
  const i = JSON.stringify(r);
3619
3623
  return i in t ? t[i] : t[i] = e(r);
3620
3624
  };
3621
3625
  };
3622
- var oa = Object.defineProperty, yt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
3626
+ var so = Object.defineProperty, vt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
3623
3627
  for (var n in t || (t = {}))
3624
3628
  tr.call(t, n) && vn(e, n, t[n]);
3625
- if (yt)
3626
- for (var n of yt(t))
3629
+ if (vt)
3630
+ for (var n of vt(t))
3627
3631
  nr.call(t, n) && vn(e, n, t[n]);
3628
3632
  return e;
3629
- }, Ve = (e, t) => {
3633
+ }, We = (e, t) => {
3630
3634
  var n = {};
3631
3635
  for (var r in e)
3632
3636
  tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3633
- if (e != null && yt)
3634
- for (var r of yt(e))
3637
+ if (e != null && vt)
3638
+ for (var r of vt(e))
3635
3639
  t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
3636
3640
  return n;
3637
3641
  };
3638
- const tt = (e, t) => {
3639
- const { formats: n } = Ge();
3642
+ const rt = (e, t) => {
3643
+ const { formats: n } = ke();
3640
3644
  if (e in n && t in n[e])
3641
3645
  return n[e][t];
3642
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3643
- }, sa = Bt(
3647
+ }, lo = Tt(
3644
3648
  (e) => {
3645
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3649
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3646
3650
  if (n == null)
3647
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3648
- return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3652
+ return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3649
3653
  }
3650
- ), la = Bt(
3654
+ ), uo = Tt(
3651
3655
  (e) => {
3652
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3656
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3653
3657
  if (n == null)
3654
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3655
- return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3659
+ return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3656
3660
  }
3657
- ), ua = Bt(
3661
+ ), co = Tt(
3658
3662
  (e) => {
3659
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3663
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3660
3664
  if (n == null)
3661
3665
  throw new Error(
3662
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3663
3667
  );
3664
- return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3668
+ return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3665
3669
  }
3666
- ), ca = (e = {}) => {
3670
+ ), ho = (e = {}) => {
3667
3671
  var t = e, {
3668
- locale: n = He()
3669
- } = t, r = Ve(t, [
3672
+ locale: n = Oe()
3673
+ } = t, r = We(t, [
3670
3674
  "locale"
3671
3675
  ]);
3672
- return sa(en({ locale: n }, r));
3673
- }, ha = (e = {}) => {
3676
+ return lo(en({ locale: n }, r));
3677
+ }, fo = (e = {}) => {
3674
3678
  var t = e, {
3675
- locale: n = He()
3676
- } = t, r = Ve(t, [
3679
+ locale: n = Oe()
3680
+ } = t, r = We(t, [
3677
3681
  "locale"
3678
3682
  ]);
3679
- return la(en({ locale: n }, r));
3680
- }, fa = (e = {}) => {
3683
+ return uo(en({ locale: n }, r));
3684
+ }, po = (e = {}) => {
3681
3685
  var t = e, {
3682
- locale: n = He()
3683
- } = t, r = Ve(t, [
3686
+ locale: n = Oe()
3687
+ } = t, r = We(t, [
3684
3688
  "locale"
3685
3689
  ]);
3686
- return ua(en({ locale: n }, r));
3687
- }, da = Bt(
3690
+ return co(en({ locale: n }, r));
3691
+ }, mo = Tt(
3688
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3689
- (e, t = He()) => new Gi(e, t, Ge().formats, {
3690
- ignoreTag: Ge().ignoreTag
3693
+ (e, t = Oe()) => new $i(e, t, ke().formats, {
3694
+ ignoreTag: ke().ignoreTag
3691
3695
  })
3692
- ), pa = (e, t = {}) => {
3693
- var n, r, i, a;
3696
+ ), go = (e, t = {}) => {
3697
+ var n, r, i, o;
3694
3698
  let l = t;
3695
3699
  typeof e == "object" && (l = e, e = l.id);
3696
3700
  const {
3697
3701
  values: s,
3698
- locale: h = He(),
3702
+ locale: h = Oe(),
3699
3703
  default: u
3700
3704
  } = l;
3701
3705
  if (h == null)
@@ -3704,35 +3708,35 @@ const tt = (e, t) => {
3704
3708
  );
3705
3709
  let d = Qn(e, h);
3706
3710
  if (!d)
3707
- d = (a = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3711
+ d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3708
3712
  else if (typeof d != "string")
3709
3713
  return console.warn(
3710
3714
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3711
3715
  ), d;
3712
3716
  if (!s)
3713
3717
  return d;
3714
- let g = d;
3718
+ let m = d;
3715
3719
  try {
3716
- g = da(d, h).format(s);
3717
- } catch (b) {
3718
- b instanceof Error && console.warn(
3720
+ m = mo(d, h).format(s);
3721
+ } catch (g) {
3722
+ g instanceof Error && console.warn(
3719
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
3720
- b.message
3724
+ g.message
3721
3725
  );
3722
3726
  }
3723
- return g;
3724
- }, ma = (e, t) => fa(t).format(e), ga = (e, t) => ha(t).format(e), ba = (e, t) => ca(t).format(e), ya = (e, t = He()) => Qn(e, t), va = ke([je, nt], () => pa);
3725
- ke([je], () => ma);
3726
- ke([je], () => ga);
3727
- ke([je], () => ba);
3728
- ke([je, nt], () => ya);
3727
+ return m;
3728
+ }, bo = (e, t) => po(t).format(e), yo = (e, t) => fo(t).format(e), vo = (e, t) => ho(t).format(e), Eo = (e, t = Oe()) => Qn(e, t), _o = Xe([ze, it], () => go);
3729
+ Xe([ze], () => bo);
3730
+ Xe([ze], () => yo);
3731
+ Xe([ze], () => vo);
3732
+ Xe([ze, it], () => Eo);
3729
3733
  function En(e, t) {
3730
3734
  Yn(e, t);
3731
3735
  }
3732
- function Ea(e) {
3733
- je.set(e);
3736
+ function xo(e) {
3737
+ ze.set(e);
3734
3738
  }
3735
- const xn = {
3739
+ const _n = {
3736
3740
  en: {
3737
3741
  Title: "Your Balance",
3738
3742
  Total: "Total Balance",
@@ -3932,7 +3936,7 @@ const xn = {
3932
3936
  Loading: "Loading ..."
3933
3937
  }
3934
3938
  };
3935
- var qt = { exports: {} };
3939
+ var Jt = { exports: {} };
3936
3940
  /** @license
3937
3941
  * eventsource.js
3938
3942
  * Available under MIT License (MIT)
@@ -3940,35 +3944,35 @@ var qt = { exports: {} };
3940
3944
  */
3941
3945
  (function(e, t) {
3942
3946
  (function(n) {
3943
- var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, T = n.TextEncoder, S = n.AbortController;
3944
- if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
3947
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3948
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3945
3949
  u.readyState = "complete";
3946
- }, !1)), a == null && s != null && (a = function() {
3950
+ }, !1)), o == null && s != null && (o = function() {
3947
3951
  return new s("Microsoft.XMLHTTP");
3948
- }), Object.create == null && (Object.create = function(c) {
3949
- function o() {
3952
+ }), Object.create == null && (Object.create = function(a) {
3953
+ function f() {
3950
3954
  }
3951
- return o.prototype = c, new o();
3955
+ return f.prototype = a, new f();
3952
3956
  }), Date.now || (Date.now = function() {
3953
3957
  return (/* @__PURE__ */ new Date()).getTime();
3954
- }), S == null) {
3955
- var x = g;
3956
- g = function(c, o) {
3957
- var p = o.signal;
3958
- return x(c, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(f) {
3959
- var m = f.body.getReader();
3960
- return p._reader = m, p._aborted && p._reader.cancel(), {
3961
- status: f.status,
3962
- statusText: f.statusText,
3963
- headers: f.headers,
3958
+ }), T == null) {
3959
+ var _ = m;
3960
+ m = function(a, f) {
3961
+ var p = f.signal;
3962
+ return _(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
3963
+ var v = c.body.getReader();
3964
+ return p._reader = v, p._aborted && p._reader.cancel(), {
3965
+ status: c.status,
3966
+ statusText: c.statusText,
3967
+ headers: c.headers,
3964
3968
  body: {
3965
3969
  getReader: function() {
3966
- return m;
3970
+ return v;
3967
3971
  }
3968
3972
  }
3969
3973
  };
3970
3974
  });
3971
- }, S = function() {
3975
+ }, T = function() {
3972
3976
  this.signal = {
3973
3977
  _reader: null,
3974
3978
  _aborted: !1
@@ -3977,407 +3981,407 @@ var qt = { exports: {} };
3977
3981
  };
3978
3982
  };
3979
3983
  }
3980
- function C() {
3984
+ function S() {
3981
3985
  this.bitsNeeded = 0, this.codePoint = 0;
3982
3986
  }
3983
- C.prototype.decode = function(c) {
3984
- function o(N, G, A) {
3985
- if (A === 1)
3986
- return N >= 128 >> G && N << G <= 2047;
3987
- if (A === 2)
3988
- return N >= 2048 >> G && N << G <= 55295 || N >= 57344 >> G && N << G <= 65535;
3989
- if (A === 3)
3990
- return N >= 65536 >> G && N << G <= 1114111;
3987
+ S.prototype.decode = function(a) {
3988
+ function f(P, F, w) {
3989
+ if (w === 1)
3990
+ return P >= 128 >> F && P << F <= 2047;
3991
+ if (w === 2)
3992
+ return P >= 2048 >> F && P << F <= 55295 || P >= 57344 >> F && P << F <= 65535;
3993
+ if (w === 3)
3994
+ return P >= 65536 >> F && P << F <= 1114111;
3991
3995
  throw new Error();
3992
3996
  }
3993
- function p(N, G) {
3994
- if (N === 6 * 1)
3995
- return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
3996
- if (N === 6 * 2)
3997
- return G > 15 ? 3 : 2;
3998
- if (N === 6 * 3)
3997
+ function p(P, F) {
3998
+ if (P === 6 * 1)
3999
+ return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4000
+ if (P === 6 * 2)
4001
+ return F > 15 ? 3 : 2;
4002
+ if (P === 6 * 3)
3999
4003
  return 3;
4000
4004
  throw new Error();
4001
4005
  }
4002
- for (var f = 65533, m = "", y = this.bitsNeeded, B = this.codePoint, E = 0; E < c.length; E += 1) {
4003
- var w = c[E];
4004
- y !== 0 && (w < 128 || w > 191 || !o(B << 6 | w & 63, y - 6, p(y, B))) && (y = 0, B = f, m += String.fromCharCode(B)), y === 0 ? (w >= 0 && w <= 127 ? (y = 0, B = w) : w >= 192 && w <= 223 ? (y = 6 * 1, B = w & 31) : w >= 224 && w <= 239 ? (y = 6 * 2, B = w & 15) : w >= 240 && w <= 247 ? (y = 6 * 3, B = w & 7) : (y = 0, B = f), y !== 0 && !o(B, y, p(y, B)) && (y = 0, B = f)) : (y -= 6, B = B << 6 | w & 63), y === 0 && (B <= 65535 ? m += String.fromCharCode(B) : (m += String.fromCharCode(55296 + (B - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (B - 65535 - 1 & 1023))));
4006
+ for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint, L = 0; L < a.length; L += 1) {
4007
+ var A = a[L];
4008
+ E !== 0 && (A < 128 || A > 191 || !f(y << 6 | A & 63, E - 6, p(E, y))) && (E = 0, y = c, v += String.fromCharCode(y)), E === 0 ? (A >= 0 && A <= 127 ? (E = 0, y = A) : A >= 192 && A <= 223 ? (E = 6 * 1, y = A & 31) : A >= 224 && A <= 239 ? (E = 6 * 2, y = A & 15) : A >= 240 && A <= 247 ? (E = 6 * 3, y = A & 7) : (E = 0, y = c), E !== 0 && !f(y, E, p(E, y)) && (E = 0, y = c)) : (E -= 6, y = y << 6 | A & 63), E === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
4005
4009
  }
4006
- return this.bitsNeeded = y, this.codePoint = B, m;
4010
+ return this.bitsNeeded = E, this.codePoint = y, v;
4007
4011
  };
4008
- var D = function() {
4012
+ var I = function() {
4009
4013
  try {
4010
- return new _().decode(new T().encode("test"), { stream: !0 }) === "test";
4011
- } catch (c) {
4012
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4014
+ return new x().decode(new B().encode("test"), { stream: !0 }) === "test";
4015
+ } catch (a) {
4016
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4013
4017
  }
4014
4018
  return !1;
4015
4019
  };
4016
- (_ == null || T == null || !D()) && (_ = C);
4017
- var O = function() {
4020
+ (x == null || B == null || !I()) && (x = S);
4021
+ var H = function() {
4018
4022
  };
4019
- function U(c) {
4020
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = O;
4023
+ function D(a) {
4024
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
4021
4025
  }
4022
- U.prototype.open = function(c, o) {
4026
+ D.prototype.open = function(a, f) {
4023
4027
  this._abort(!0);
4024
- var p = this, f = this._xhr, m = 1, y = 0;
4025
- this._abort = function(A) {
4026
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), y !== 0 && (i(y), y = 0), A || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
4028
+ var p = this, c = this._xhr, v = 1, E = 0;
4029
+ this._abort = function(w) {
4030
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = H, c.onerror = H, c.onabort = H, c.onprogress = H, c.onreadystatechange = H, c.abort(), E !== 0 && (i(E), E = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), v = 0;
4027
4031
  };
4028
- var B = function() {
4029
- if (m === 1) {
4030
- var A = 0, V = "", Ee = void 0;
4031
- if ("contentType" in f)
4032
- A = 200, V = "OK", Ee = f.contentType;
4032
+ var y = function() {
4033
+ if (v === 1) {
4034
+ var w = 0, k = "", be = void 0;
4035
+ if ("contentType" in c)
4036
+ w = 200, k = "OK", be = c.contentType;
4033
4037
  else
4034
4038
  try {
4035
- A = f.status, V = f.statusText, Ee = f.getResponseHeader("Content-Type");
4039
+ w = c.status, k = c.statusText, be = c.getResponseHeader("Content-Type");
4036
4040
  } catch {
4037
- A = 0, V = "", Ee = void 0;
4041
+ w = 0, k = "", be = void 0;
4038
4042
  }
4039
- A !== 0 && (m = 2, p.readyState = 2, p.status = A, p.statusText = V, p._contentType = Ee, p.onreadystatechange());
4043
+ w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = k, p._contentType = be, p.onreadystatechange());
4040
4044
  }
4041
- }, E = function() {
4042
- if (B(), m === 2 || m === 3) {
4043
- m = 3;
4044
- var A = "";
4045
+ }, L = function() {
4046
+ if (y(), v === 2 || v === 3) {
4047
+ v = 3;
4048
+ var w = "";
4045
4049
  try {
4046
- A = f.responseText;
4050
+ w = c.responseText;
4047
4051
  } catch {
4048
4052
  }
4049
- p.readyState = 3, p.responseText = A, p.onprogress();
4053
+ p.readyState = 3, p.responseText = w, p.onprogress();
4050
4054
  }
4051
- }, w = function(A, V) {
4052
- if ((V == null || V.preventDefault == null) && (V = {
4053
- preventDefault: O
4054
- }), E(), m === 1 || m === 2 || m === 3) {
4055
- if (m = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, A === "load")
4056
- p.onload(V);
4057
- else if (A === "error")
4058
- p.onerror(V);
4059
- else if (A === "abort")
4060
- p.onabort(V);
4055
+ }, A = function(w, k) {
4056
+ if ((k == null || k.preventDefault == null) && (k = {
4057
+ preventDefault: H
4058
+ }), L(), v === 1 || v === 2 || v === 3) {
4059
+ if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
4060
+ p.onload(k);
4061
+ else if (w === "error")
4062
+ p.onerror(k);
4063
+ else if (w === "abort")
4064
+ p.onabort(k);
4061
4065
  else
4062
4066
  throw new TypeError();
4063
4067
  p.onreadystatechange();
4064
4068
  }
4065
- }, N = function(A) {
4066
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", A) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && B());
4067
- }, G = function() {
4068
- y = r(function() {
4069
- G();
4070
- }, 500), f.readyState === 3 && E();
4069
+ }, P = function(w) {
4070
+ c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || L() : c.readyState === 2 && y());
4071
+ }, F = function() {
4072
+ E = r(function() {
4073
+ F();
4074
+ }, 500), c.readyState === 3 && L();
4071
4075
  };
4072
- "onload" in f && (f.onload = function(A) {
4073
- w("load", A);
4074
- }), "onerror" in f && (f.onerror = function(A) {
4075
- w("error", A);
4076
- }), "onabort" in f && (f.onabort = function(A) {
4077
- w("abort", A);
4078
- }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(A) {
4079
- N(A);
4080
- }), ("contentType" in f || !("ontimeout" in a.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(c, o, !0), "readyState" in f && (y = r(function() {
4081
- G();
4076
+ "onload" in c && (c.onload = function(w) {
4077
+ A("load", w);
4078
+ }), "onerror" in c && (c.onerror = function(w) {
4079
+ A("error", w);
4080
+ }), "onabort" in c && (c.onabort = function(w) {
4081
+ A("abort", w);
4082
+ }), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
4083
+ P(w);
4084
+ }), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
4085
+ F();
4082
4086
  }, 0));
4083
- }, U.prototype.abort = function() {
4087
+ }, D.prototype.abort = function() {
4084
4088
  this._abort(!1);
4085
- }, U.prototype.getResponseHeader = function(c) {
4089
+ }, D.prototype.getResponseHeader = function(a) {
4086
4090
  return this._contentType;
4087
- }, U.prototype.setRequestHeader = function(c, o) {
4091
+ }, D.prototype.setRequestHeader = function(a, f) {
4088
4092
  var p = this._xhr;
4089
- "setRequestHeader" in p && p.setRequestHeader(c, o);
4090
- }, U.prototype.getAllResponseHeaders = function() {
4093
+ "setRequestHeader" in p && p.setRequestHeader(a, f);
4094
+ }, D.prototype.getAllResponseHeaders = function() {
4091
4095
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4092
- }, U.prototype.send = function() {
4093
- if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4094
- var c = this;
4095
- c._sendTimeout = r(function() {
4096
- c._sendTimeout = 0, c.send();
4096
+ }, D.prototype.send = function() {
4097
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4098
+ var a = this;
4099
+ a._sendTimeout = r(function() {
4100
+ a._sendTimeout = 0, a.send();
4097
4101
  }, 4);
4098
4102
  return;
4099
4103
  }
4100
- var o = this._xhr;
4101
- "withCredentials" in o && (o.withCredentials = this.withCredentials);
4104
+ var f = this._xhr;
4105
+ "withCredentials" in f && (f.withCredentials = this.withCredentials);
4102
4106
  try {
4103
- o.send(void 0);
4107
+ f.send(void 0);
4104
4108
  } catch (p) {
4105
4109
  throw p;
4106
4110
  }
4107
4111
  };
4108
- function q(c) {
4109
- return c.replace(/[A-Z]/g, function(o) {
4110
- return String.fromCharCode(o.charCodeAt(0) + 32);
4112
+ function W(a) {
4113
+ return a.replace(/[A-Z]/g, function(f) {
4114
+ return String.fromCharCode(f.charCodeAt(0) + 32);
4111
4115
  });
4112
4116
  }
4113
- function re(c) {
4114
- for (var o = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4115
- `), f = 0; f < p.length; f += 1) {
4116
- var m = p[f], y = m.split(": "), B = y.shift(), E = y.join(": ");
4117
- o[q(B)] = E;
4117
+ function q(a) {
4118
+ for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4119
+ `), c = 0; c < p.length; c += 1) {
4120
+ var v = p[c], E = v.split(": "), y = E.shift(), L = E.join(": ");
4121
+ f[W(y)] = L;
4118
4122
  }
4119
- this._map = o;
4123
+ this._map = f;
4120
4124
  }
4121
- re.prototype.get = function(c) {
4122
- return this._map[q(c)];
4123
- }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4124
- function z() {
4125
+ q.prototype.get = function(a) {
4126
+ return this._map[W(a)];
4127
+ }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4128
+ function Y() {
4125
4129
  }
4126
- z.prototype.open = function(c, o, p, f, m, y, B) {
4127
- c.open("GET", m);
4128
- var E = 0;
4129
- c.onprogress = function() {
4130
- var N = c.responseText, G = N.slice(E);
4131
- E += G.length, p(G);
4132
- }, c.onerror = function(N) {
4133
- N.preventDefault(), f(new Error("NetworkError"));
4134
- }, c.onload = function() {
4135
- f(null);
4136
- }, c.onabort = function() {
4137
- f(null);
4138
- }, c.onreadystatechange = function() {
4139
- if (c.readyState === a.HEADERS_RECEIVED) {
4140
- var N = c.status, G = c.statusText, A = c.getResponseHeader("Content-Type"), V = c.getAllResponseHeaders();
4141
- o(N, G, A, new re(V));
4130
+ Y.prototype.open = function(a, f, p, c, v, E, y) {
4131
+ a.open("GET", v);
4132
+ var L = 0;
4133
+ a.onprogress = function() {
4134
+ var P = a.responseText, F = P.slice(L);
4135
+ L += F.length, p(F);
4136
+ }, a.onerror = function(P) {
4137
+ P.preventDefault(), c(new Error("NetworkError"));
4138
+ }, a.onload = function() {
4139
+ c(null);
4140
+ }, a.onabort = function() {
4141
+ c(null);
4142
+ }, a.onreadystatechange = function() {
4143
+ if (a.readyState === o.HEADERS_RECEIVED) {
4144
+ var P = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
4145
+ f(P, F, w, new q(k));
4142
4146
  }
4143
- }, c.withCredentials = y;
4144
- for (var w in B)
4145
- Object.prototype.hasOwnProperty.call(B, w) && c.setRequestHeader(w, B[w]);
4146
- return c.send(), c;
4147
+ }, a.withCredentials = E;
4148
+ for (var A in y)
4149
+ Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
4150
+ return a.send(), a;
4147
4151
  };
4148
- function X(c) {
4149
- this._headers = c;
4152
+ function G(a) {
4153
+ this._headers = a;
4150
4154
  }
4151
- X.prototype.get = function(c) {
4152
- return this._headers.get(c);
4155
+ G.prototype.get = function(a) {
4156
+ return this._headers.get(a);
4153
4157
  };
4154
- function P() {
4158
+ function R() {
4155
4159
  }
4156
- P.prototype.open = function(c, o, p, f, m, y, B) {
4157
- var E = null, w = new S(), N = w.signal, G = new _();
4158
- return g(m, {
4159
- headers: B,
4160
- credentials: y ? "include" : "same-origin",
4161
- signal: N,
4160
+ R.prototype.open = function(a, f, p, c, v, E, y) {
4161
+ var L = null, A = new T(), P = A.signal, F = new x();
4162
+ return m(v, {
4163
+ headers: y,
4164
+ credentials: E ? "include" : "same-origin",
4165
+ signal: P,
4162
4166
  cache: "no-store"
4163
- }).then(function(A) {
4164
- return E = A.body.getReader(), o(A.status, A.statusText, A.headers.get("Content-Type"), new X(A.headers)), new d(function(V, Ee) {
4165
- var qe = function() {
4166
- E.read().then(function(ae) {
4167
- if (ae.done)
4168
- V(void 0);
4167
+ }).then(function(w) {
4168
+ return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(k, be) {
4169
+ var Je = function() {
4170
+ L.read().then(function(ie) {
4171
+ if (ie.done)
4172
+ k(void 0);
4169
4173
  else {
4170
- var K = G.decode(ae.value, { stream: !0 });
4171
- p(K), qe();
4174
+ var K = F.decode(ie.value, { stream: !0 });
4175
+ p(K), Je();
4172
4176
  }
4173
- }).catch(function(ae) {
4174
- Ee(ae);
4177
+ }).catch(function(ie) {
4178
+ be(ie);
4175
4179
  });
4176
4180
  };
4177
- qe();
4181
+ Je();
4178
4182
  });
4179
- }).catch(function(A) {
4180
- if (A.name !== "AbortError")
4181
- return A;
4182
- }).then(function(A) {
4183
- f(A);
4183
+ }).catch(function(w) {
4184
+ if (w.name !== "AbortError")
4185
+ return w;
4186
+ }).then(function(w) {
4187
+ c(w);
4184
4188
  }), {
4185
4189
  abort: function() {
4186
- E?.cancel(), w.abort();
4190
+ L?.cancel(), A.abort();
4187
4191
  }
4188
4192
  };
4189
4193
  };
4190
- function $() {
4194
+ function V() {
4191
4195
  this._listeners = /* @__PURE__ */ Object.create(null);
4192
4196
  }
4193
- function F(c) {
4197
+ function U(a) {
4194
4198
  r(function() {
4195
- throw c;
4199
+ throw a;
4196
4200
  }, 0);
4197
4201
  }
4198
- $.prototype.dispatchEvent = function(c) {
4199
- c.target = this;
4200
- var o = this._listeners[c.type];
4201
- if (o != null)
4202
- for (var p = o.length, f = 0; f < p; f += 1) {
4203
- var m = o[f];
4202
+ V.prototype.dispatchEvent = function(a) {
4203
+ a.target = this;
4204
+ var f = this._listeners[a.type];
4205
+ if (f != null)
4206
+ for (var p = f.length, c = 0; c < p; c += 1) {
4207
+ var v = f[c];
4204
4208
  try {
4205
- typeof m.handleEvent == "function" ? m.handleEvent(c) : m.call(this, c);
4206
- } catch (y) {
4207
- F(y);
4209
+ typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4210
+ } catch (E) {
4211
+ U(E);
4208
4212
  }
4209
4213
  }
4210
- }, $.prototype.addEventListener = function(c, o) {
4211
- c = String(c);
4212
- var p = this._listeners, f = p[c];
4213
- f == null && (f = [], p[c] = f);
4214
- for (var m = !1, y = 0; y < f.length; y += 1)
4215
- f[y] === o && (m = !0);
4216
- m || f.push(o);
4217
- }, $.prototype.removeEventListener = function(c, o) {
4218
- c = String(c);
4219
- var p = this._listeners, f = p[c];
4220
- if (f != null) {
4221
- for (var m = [], y = 0; y < f.length; y += 1)
4222
- f[y] !== o && m.push(f[y]);
4223
- m.length === 0 ? delete p[c] : p[c] = m;
4214
+ }, V.prototype.addEventListener = function(a, f) {
4215
+ a = String(a);
4216
+ var p = this._listeners, c = p[a];
4217
+ c == null && (c = [], p[a] = c);
4218
+ for (var v = !1, E = 0; E < c.length; E += 1)
4219
+ c[E] === f && (v = !0);
4220
+ v || c.push(f);
4221
+ }, V.prototype.removeEventListener = function(a, f) {
4222
+ a = String(a);
4223
+ var p = this._listeners, c = p[a];
4224
+ if (c != null) {
4225
+ for (var v = [], E = 0; E < c.length; E += 1)
4226
+ c[E] !== f && v.push(c[E]);
4227
+ v.length === 0 ? delete p[a] : p[a] = v;
4224
4228
  }
4225
4229
  };
4226
- function Y(c) {
4227
- this.type = c, this.target = void 0;
4230
+ function b(a) {
4231
+ this.type = a, this.target = void 0;
4228
4232
  }
4229
- function v(c, o) {
4230
- Y.call(this, c), this.data = o.data, this.lastEventId = o.lastEventId;
4233
+ function xe(a, f) {
4234
+ b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4231
4235
  }
4232
- v.prototype = Object.create(Y.prototype);
4233
- function be(c, o) {
4234
- Y.call(this, c), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
4236
+ xe.prototype = Object.create(b.prototype);
4237
+ function Ze(a, f) {
4238
+ b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4235
4239
  }
4236
- be.prototype = Object.create(Y.prototype);
4237
- function rt(c, o) {
4238
- Y.call(this, c), this.error = o.error;
4240
+ Ze.prototype = Object.create(b.prototype);
4241
+ function Be(a, f) {
4242
+ b.call(this, a), this.error = f.error;
4239
4243
  }
4240
- rt.prototype = Object.create(Y.prototype);
4241
- var ye = -1, ce = 0, we = 1, Ae = 2, Xe = -1, le = 0, Oe = 1, it = 2, ze = 3, at = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, ot = 18e6, We = function(c, o) {
4242
- var p = c == null ? o : parseInt(c, 10);
4243
- return p !== p && (p = o), Ze(p);
4244
- }, Ze = function(c) {
4245
- return Math.min(Math.max(c, Tt), ot);
4246
- }, ve = function(c, o, p) {
4244
+ Be.prototype = Object.create(b.prototype);
4245
+ var Re = -1, pe = 0, Te = 1, Ae = 2, Ce = -1, le = 0, qe = 1, Le = 2, ot = 3, wt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Qe = function(a, f) {
4246
+ var p = a == null ? f : parseInt(a, 10);
4247
+ return p !== p && (p = f), Me(p);
4248
+ }, Me = function(a) {
4249
+ return Math.min(Math.max(a, at), St);
4250
+ }, we = function(a, f, p) {
4247
4251
  try {
4248
- typeof o == "function" && o.call(c, p);
4249
- } catch (f) {
4250
- F(f);
4252
+ typeof f == "function" && f.call(a, p);
4253
+ } catch (c) {
4254
+ U(c);
4251
4255
  }
4252
4256
  };
4253
- function ie(c, o) {
4254
- $.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, c, o);
4257
+ function re(a, f) {
4258
+ V.call(this), f = f || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ht(this, a, f);
4255
4259
  }
4256
- function wt() {
4257
- return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4260
+ function At() {
4261
+ return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4258
4262
  }
4259
- var St = g != null && b != null && "body" in b.prototype;
4260
- function At(c, o, p) {
4261
- o = String(o);
4262
- var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", y = Ze(1e3), B = We(p.heartbeatTimeout, 45e3), E = "", w = y, N = !1, G = 0, A = p.headers || {}, V = p.Transport, Ee = St && V == null ? void 0 : new U(V != null ? new V() : wt()), qe = V != null && typeof V != "string" ? new V() : Ee == null ? new P() : new z(), ae = void 0, K = 0, he = ye, Re = "", lt = "", xe = "", ut = "", ee = le, Ct = 0, Ce = 0, ir = function(Z, W, oe, se) {
4263
- if (he === ce)
4264
- if (Z === 200 && oe != null && at.test(oe)) {
4265
- he = we, N = Date.now(), w = y, c.readyState = we;
4266
- var te = new be("open", {
4263
+ var Ct = m != null && g != null && "body" in g.prototype;
4264
+ function Ht(a, f, p) {
4265
+ f = String(f);
4266
+ var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Me(1e3), y = Qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, F = 0, w = p.headers || {}, k = p.Transport, be = Ct && k == null ? void 0 : new D(k != null ? new k() : At()), Je = k != null && typeof k != "string" ? new k() : be == null ? new R() : new Y(), ie = void 0, K = 0, ue = Re, Ne = "", lt = "", ye = "", ut = "", ee = le, Ot = 0, He = 0, ir = function(Z, z, oe, ae) {
4267
+ if (ue === pe)
4268
+ if (Z === 200 && oe != null && wt.test(oe)) {
4269
+ ue = Te, P = Date.now(), A = E, a.readyState = Te;
4270
+ var te = new Ze("open", {
4267
4271
  status: Z,
4268
- statusText: W,
4269
- headers: se
4272
+ statusText: z,
4273
+ headers: ae
4270
4274
  });
4271
- c.dispatchEvent(te), ve(c, c.onopen, te);
4275
+ a.dispatchEvent(te), we(a, a.onopen, te);
4272
4276
  } else {
4273
4277
  var Q = "";
4274
- Z !== 200 ? (W && (W = W.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + W + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4275
- var te = new be("error", {
4278
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4279
+ var te = new Ze("error", {
4276
4280
  status: Z,
4277
- statusText: W,
4278
- headers: se
4281
+ statusText: z,
4282
+ headers: ae
4279
4283
  });
4280
- c.dispatchEvent(te), ve(c, c.onerror, te), console.error(Q);
4284
+ a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
4281
4285
  }
4282
- }, ar = function(Z) {
4283
- if (he === we) {
4284
- for (var W = -1, oe = 0; oe < Z.length; oe += 1) {
4285
- var se = Z.charCodeAt(oe);
4286
- (se === 10 || se === 13) && (W = oe);
4286
+ }, or = function(Z) {
4287
+ if (ue === Te) {
4288
+ for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4289
+ var ae = Z.charCodeAt(oe);
4290
+ (ae === 10 || ae === 13) && (z = oe);
4287
4291
  }
4288
- var te = (W !== -1 ? ut : "") + Z.slice(0, W + 1);
4289
- ut = (W === -1 ? ut : "") + Z.slice(W + 1), Z !== "" && (N = Date.now(), G += Z.length);
4292
+ var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
4293
+ ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), F += Z.length);
4290
4294
  for (var Q = 0; Q < te.length; Q += 1) {
4291
- var se = te.charCodeAt(Q);
4292
- if (ee === Xe && se === 10)
4295
+ var ae = te.charCodeAt(Q);
4296
+ if (ee === Ce && ae === 10)
4293
4297
  ee = le;
4294
- else if (ee === Xe && (ee = le), se === 13 || se === 10) {
4298
+ else if (ee === Ce && (ee = le), ae === 13 || ae === 10) {
4295
4299
  if (ee !== le) {
4296
- ee === Oe && (Ce = Q + 1);
4297
- var _e = te.slice(Ct, Ce - 1), Be = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
4298
- _e === "data" ? (Re += `
4299
- `, Re += Be) : _e === "id" ? lt = Be : _e === "event" ? xe = Be : _e === "retry" ? (y = We(Be, y), w = y) : _e === "heartbeatTimeout" && (B = We(Be, B), K !== 0 && (i(K), K = r(function() {
4300
- Qe();
4301
- }, B)));
4300
+ ee === qe && (He = Q + 1);
4301
+ var ve = te.slice(Ot, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
4302
+ ve === "data" ? (Ne += `
4303
+ `, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (E = Qe(Ee, E), A = E) : ve === "heartbeatTimeout" && (y = Qe(Ee, y), K !== 0 && (i(K), K = r(function() {
4304
+ Ye();
4305
+ }, y)));
4302
4306
  }
4303
4307
  if (ee === le) {
4304
- if (Re !== "") {
4305
- E = lt, xe === "" && (xe = "message");
4306
- var Le = new v(xe, {
4307
- data: Re.slice(1),
4308
+ if (Ne !== "") {
4309
+ L = lt, ye === "" && (ye = "message");
4310
+ var Pe = new xe(ye, {
4311
+ data: Ne.slice(1),
4308
4312
  lastEventId: lt
4309
4313
  });
4310
- if (c.dispatchEvent(Le), xe === "open" ? ve(c, c.onopen, Le) : xe === "message" ? ve(c, c.onmessage, Le) : xe === "error" && ve(c, c.onerror, Le), he === Ae)
4314
+ if (a.dispatchEvent(Pe), ye === "open" ? we(a, a.onopen, Pe) : ye === "message" ? we(a, a.onmessage, Pe) : ye === "error" && we(a, a.onerror, Pe), ue === Ae)
4311
4315
  return;
4312
4316
  }
4313
- Re = "", xe = "";
4317
+ Ne = "", ye = "";
4314
4318
  }
4315
- ee = se === 13 ? Xe : le;
4319
+ ee = ae === 13 ? Ce : le;
4316
4320
  } else
4317
- ee === le && (Ct = Q, ee = Oe), ee === Oe ? se === 58 && (Ce = Q + 1, ee = it) : ee === it && (ee = ze);
4321
+ ee === le && (Ot = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
4318
4322
  }
4319
4323
  }
4320
4324
  }, nn = function(Z) {
4321
- if (he === we || he === ce) {
4322
- he = ye, K !== 0 && (i(K), K = 0), K = r(function() {
4323
- Qe();
4324
- }, w), w = Ze(Math.min(y * 16, w * 2)), c.readyState = ce;
4325
- var W = new rt("error", { error: Z });
4326
- c.dispatchEvent(W), ve(c, c.onerror, W), Z != null && console.error(Z);
4325
+ if (ue === Te || ue === pe) {
4326
+ ue = Re, K !== 0 && (i(K), K = 0), K = r(function() {
4327
+ Ye();
4328
+ }, A), A = Me(Math.min(E * 16, A * 2)), a.readyState = pe;
4329
+ var z = new Be("error", { error: Z });
4330
+ a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
4327
4331
  }
4328
- }, Ht = function() {
4329
- he = Ae, ae != null && (ae.abort(), ae = void 0), K !== 0 && (i(K), K = 0), c.readyState = Ae;
4330
- }, Qe = function() {
4331
- if (K = 0, he !== ye) {
4332
- if (!N && ae != null)
4333
- nn(new Error("No activity within " + B + " milliseconds. " + (he === ce ? "No response received." : G + " chars received.") + " Reconnecting.")), ae != null && (ae.abort(), ae = void 0);
4332
+ }, Rt = function() {
4333
+ ue = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
4334
+ }, Ye = function() {
4335
+ if (K = 0, ue !== Re) {
4336
+ if (!P && ie != null)
4337
+ nn(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4334
4338
  else {
4335
- var Z = Math.max((N || Date.now()) + B - Date.now(), 1);
4336
- N = !1, K = r(function() {
4337
- Qe();
4339
+ var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
4340
+ P = !1, K = r(function() {
4341
+ Ye();
4338
4342
  }, Z);
4339
4343
  }
4340
4344
  return;
4341
4345
  }
4342
- N = !1, G = 0, K = r(function() {
4343
- Qe();
4344
- }, B), he = ce, Re = "", xe = "", lt = E, ut = "", Ct = 0, Ce = 0, ee = le;
4345
- var W = o;
4346
- if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && E !== "") {
4347
- var oe = o.indexOf("?");
4348
- W = oe === -1 ? o : o.slice(0, oe + 1) + o.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Be, Le) {
4349
- return Le === m ? "" : Be;
4350
- }), W += (o.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(E);
4346
+ P = !1, F = 0, K = r(function() {
4347
+ Ye();
4348
+ }, y), ue = pe, Ne = "", ye = "", lt = L, ut = "", Ot = 0, He = 0, ee = le;
4349
+ var z = f;
4350
+ if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4351
+ var oe = f.indexOf("?");
4352
+ z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Pe) {
4353
+ return Pe === v ? "" : Ee;
4354
+ }), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
4351
4355
  }
4352
- var se = c.withCredentials, te = {};
4356
+ var ae = a.withCredentials, te = {};
4353
4357
  te.Accept = "text/event-stream";
4354
- var Q = c.headers;
4358
+ var Q = a.headers;
4355
4359
  if (Q != null)
4356
- for (var _e in Q)
4357
- Object.prototype.hasOwnProperty.call(Q, _e) && (te[_e] = Q[_e]);
4360
+ for (var ve in Q)
4361
+ Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
4358
4362
  try {
4359
- ae = qe.open(Ee, ir, ar, nn, W, se, te);
4360
- } catch (Be) {
4361
- throw Ht(), Be;
4363
+ ie = Je.open(be, ir, or, nn, z, ae, te);
4364
+ } catch (Ee) {
4365
+ throw Rt(), Ee;
4362
4366
  }
4363
4367
  };
4364
- c.url = o, c.readyState = ce, c.withCredentials = f, c.headers = A, c._close = Ht, Qe();
4368
+ a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Rt, Ye();
4365
4369
  }
4366
- ie.prototype = Object.create($.prototype), ie.prototype.CONNECTING = ce, ie.prototype.OPEN = we, ie.prototype.CLOSED = Ae, ie.prototype.close = function() {
4370
+ re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
4367
4371
  this._close();
4368
- }, ie.CONNECTING = ce, ie.OPEN = we, ie.CLOSED = Ae, ie.prototype.withCredentials = void 0;
4372
+ }, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
4369
4373
  var st = h;
4370
- a != null && (h == null || !("withCredentials" in h.prototype)) && (st = ie), function(c) {
4374
+ o != null && (h == null || !("withCredentials" in h.prototype)) && (st = re), function(a) {
4371
4375
  {
4372
- var o = c(t);
4373
- o !== void 0 && (e.exports = o);
4376
+ var f = a(t);
4377
+ f !== void 0 && (e.exports = f);
4374
4378
  }
4375
- }(function(c) {
4376
- c.EventSourcePolyfill = ie, c.NativeEventSource = h, c.EventSource = st;
4379
+ }(function(a) {
4380
+ a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = st;
4377
4381
  });
4378
4382
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Mr : globalThis);
4379
- })(qt, qt.exports);
4380
- var xa = qt.exports;
4383
+ })(Jt, Jt.exports);
4384
+ var Bo = Jt.exports;
4381
4385
  /*!
4382
4386
  * currency.js - v2.0.4
4383
4387
  * http://scurker.github.io/currency.js
@@ -4385,7 +4389,7 @@ var xa = qt.exports;
4385
4389
  * Copyright (c) 2021 Jason Wilson
4386
4390
  * Released under MIT license
4387
4391
  */
4388
- var _a = {
4392
+ var To = {
4389
4393
  symbol: "$",
4390
4394
  separator: ",",
4391
4395
  decimal: ".",
@@ -4393,43 +4397,43 @@ var _a = {
4393
4397
  precision: 2,
4394
4398
  pattern: "!#",
4395
4399
  negativePattern: "-!#",
4396
- format: Sa,
4400
+ format: Co,
4397
4401
  fromCents: !1
4398
4402
  }, rr = function(t) {
4399
4403
  return Math.round(t);
4400
4404
  }, tn = function(t) {
4401
4405
  return Math.pow(10, t);
4402
- }, Ba = function(t, n) {
4406
+ }, wo = function(t, n) {
4403
4407
  return rr(t / n) * n;
4404
- }, Ta = /(\d)(?=(\d{3})+\b)/g, wa = /(\d)(?=(\d\d)+\d\b)/g;
4405
- function fe(e, t) {
4408
+ }, So = /(\d)(?=(\d{3})+\b)/g, Ao = /(\d)(?=(\d\d)+\d\b)/g;
4409
+ function ce(e, t) {
4406
4410
  var n = this;
4407
- if (!(n instanceof fe))
4408
- return new fe(e, t);
4409
- var r = Object.assign({}, _a, t), i = tn(r.precision), a = pt(e, r);
4410
- n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = wa : r.groups = Ta, this.s = r, this.p = i;
4411
+ if (!(n instanceof ce))
4412
+ return new ce(e, t);
4413
+ var r = Object.assign({}, To, t), i = tn(r.precision), o = pt(e, r);
4414
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ao : r.groups = So, this.s = r, this.p = i;
4411
4415
  }
4412
4416
  function pt(e, t) {
4413
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof fe;
4417
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof ce;
4414
4418
  if (d && s)
4415
4419
  return e.intValue;
4416
4420
  if (u || d)
4417
4421
  r = d ? e.value : e;
4418
4422
  else if (typeof e == "string") {
4419
- var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
4420
- r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
4423
+ var m = new RegExp("[^-\\d" + i + "]", "g"), g = new RegExp("\\" + i, "g");
4424
+ r = e.replace(/\((.*)\)/, "-$1").replace(m, "").replace(g, "."), r = r || 0;
4421
4425
  } else {
4422
- if (a)
4426
+ if (o)
4423
4427
  throw Error("Invalid Input");
4424
4428
  r = 0;
4425
4429
  }
4426
4430
  return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
4427
4431
  }
4428
- function Sa(e, t) {
4429
- var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4430
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
4432
+ function Co(e, t) {
4433
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4434
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4431
4435
  }
4432
- fe.prototype = {
4436
+ ce.prototype = {
4433
4437
  /**
4434
4438
  * Adds values together.
4435
4439
  * @param {number} number
@@ -4437,7 +4441,7 @@ fe.prototype = {
4437
4441
  */
4438
4442
  add: function(t) {
4439
4443
  var n = this.intValue, r = this.s, i = this.p;
4440
- return fe((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4444
+ return ce((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4441
4445
  },
4442
4446
  /**
4443
4447
  * Subtracts value.
@@ -4446,7 +4450,7 @@ fe.prototype = {
4446
4450
  */
4447
4451
  subtract: function(t) {
4448
4452
  var n = this.intValue, r = this.s, i = this.p;
4449
- return fe((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4453
+ return ce((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4450
4454
  },
4451
4455
  /**
4452
4456
  * Multiplies values.
@@ -4455,7 +4459,7 @@ fe.prototype = {
4455
4459
  */
4456
4460
  multiply: function(t) {
4457
4461
  var n = this.intValue, r = this.s;
4458
- return fe((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
4462
+ return ce((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
4459
4463
  },
4460
4464
  /**
4461
4465
  * Divides value.
@@ -4464,7 +4468,7 @@ fe.prototype = {
4464
4468
  */
4465
4469
  divide: function(t) {
4466
4470
  var n = this.intValue, r = this.s;
4467
- return fe(n /= pt(t, r, !1), r);
4471
+ return ce(n /= pt(t, r, !1), r);
4468
4472
  },
4469
4473
  /**
4470
4474
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4473,11 +4477,11 @@ fe.prototype = {
4473
4477
  * @returns {array}
4474
4478
  */
4475
4479
  distribute: function(t) {
4476
- for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4477
- var u = fe(l / h, i);
4478
- s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), a.push(u);
4480
+ for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4481
+ var u = ce(l / h, i);
4482
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), o.push(u);
4479
4483
  }
4480
- return a;
4484
+ return o;
4481
4485
  },
4482
4486
  /**
4483
4487
  * Returns the dollar value.
@@ -4509,7 +4513,7 @@ fe.prototype = {
4509
4513
  */
4510
4514
  toString: function() {
4511
4515
  var t = this.intValue, n = this.p, r = this.s;
4512
- return Ba(t / n, r.increment).toFixed(r.precision);
4516
+ return wo(t / n, r.increment).toFixed(r.precision);
4513
4517
  },
4514
4518
  /**
4515
4519
  * Value for JSON serialization.
@@ -4519,10 +4523,10 @@ fe.prototype = {
4519
4523
  return this.value;
4520
4524
  }
4521
4525
  };
4522
- function Aa(e) {
4526
+ function Ho(e) {
4523
4527
  lr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4524
4528
  }
4525
- function _n(e, t, n) {
4529
+ function xn(e, t, n) {
4526
4530
  const r = e.slice();
4527
4531
  return r[50] = t[n], r;
4528
4532
  }
@@ -4530,7 +4534,7 @@ function Bn(e, t, n) {
4530
4534
  const r = e.slice();
4531
4535
  return r[53] = t[n], r;
4532
4536
  }
4533
- function Ca(e) {
4537
+ function Oo(e) {
4534
4538
  let t, n, r = (
4535
4539
  /*balances*/
4536
4540
  (e[1].Total ? (
@@ -4540,101 +4544,101 @@ function Ca(e) {
4540
4544
  e[1].Total[0].amount
4541
4545
  )
4542
4546
  ) : "0") + ""
4543
- ), i, a, l, s, h, u, d, g, b, _, T, S, x = (
4547
+ ), i, o, l, s, h, u, d, m, g, x, B, T, _ = (
4544
4548
  /*showBalance*/
4545
4549
  e[4] && Tn(e)
4546
4550
  );
4547
4551
  return {
4548
4552
  c() {
4549
- t = j("div"), n = j("p"), i = de(r), a = me(), l = de(
4553
+ t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
4550
4554
  /*currency*/
4551
4555
  e[5]
4552
- ), s = me(), h = j("span"), u = an("svg"), d = an("path"), b = me(), x && x.c(), _ = hr(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(h, "class", g = /*modalOpened*/
4553
- e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4556
+ ), s = de(), h = j("span"), u = on("svg"), d = on("path"), g = de(), _ && _.c(), x = hr(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(h, "class", m = /*modalOpened*/
4557
+ e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4554
4558
  },
4555
- m(C, D) {
4556
- ge(C, t, D), H(t, n), H(n, i), H(n, a), H(n, l), H(t, s), H(t, h), H(h, u), H(u, d), ge(C, b, D), x && x.m(C, D), ge(C, _, D), T || (S = mt(
4559
+ m(S, I) {
4560
+ ge(S, t, I), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), ge(S, g, I), _ && _.m(S, I), ge(S, x, I), B || (T = mt(
4557
4561
  t,
4558
4562
  "click",
4559
4563
  /*click_handler*/
4560
4564
  e[25]
4561
- ), T = !0);
4565
+ ), B = !0);
4562
4566
  },
4563
- p(C, D) {
4564
- D[0] & /*balances*/
4567
+ p(S, I) {
4568
+ I[0] & /*balances*/
4565
4569
  2 && r !== (r = /*balances*/
4566
- (C[1].Total ? (
4570
+ (S[1].Total ? (
4567
4571
  /*formatBalance*/
4568
- C[8](
4572
+ S[8](
4569
4573
  /*balances*/
4570
- C[1].Total[0].amount
4574
+ S[1].Total[0].amount
4571
4575
  )
4572
- ) : "0") + "") && Te(i, r), D[0] & /*currency*/
4573
- 32 && Te(
4576
+ ) : "0") + "") && _e(i, r), I[0] & /*currency*/
4577
+ 32 && _e(
4574
4578
  l,
4575
4579
  /*currency*/
4576
- C[5]
4577
- ), D[0] & /*modalOpened*/
4578
- 8 && g !== (g = /*modalOpened*/
4579
- C[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", g), /*showBalance*/
4580
- C[4] ? x ? x.p(C, D) : (x = Tn(C), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4580
+ S[5]
4581
+ ), I[0] & /*modalOpened*/
4582
+ 8 && m !== (m = /*modalOpened*/
4583
+ S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
4584
+ S[4] ? _ ? _.p(S, I) : (_ = Tn(S), _.c(), _.m(x.parentNode, x)) : _ && (_.d(1), _ = null);
4581
4585
  },
4582
- d(C) {
4583
- C && (pe(t), pe(b), pe(_)), x && x.d(C), T = !1, S();
4586
+ d(S) {
4587
+ S && (fe(t), fe(g), fe(x)), _ && _.d(S), B = !1, T();
4584
4588
  }
4585
4589
  };
4586
4590
  }
4587
- function Ha(e) {
4591
+ function Ro(e) {
4588
4592
  let t, n = (
4589
4593
  /*$_*/
4590
4594
  e[6]("Loading") + ""
4591
4595
  ), r;
4592
4596
  return {
4593
4597
  c() {
4594
- t = j("p"), r = de(n), M(t, "class", "Loading");
4598
+ t = j("p"), r = he(n), N(t, "class", "Loading");
4595
4599
  },
4596
- m(i, a) {
4597
- ge(i, t, a), H(t, r);
4600
+ m(i, o) {
4601
+ ge(i, t, o), C(t, r);
4598
4602
  },
4599
- p(i, a) {
4600
- a[0] & /*$_*/
4603
+ p(i, o) {
4604
+ o[0] & /*$_*/
4601
4605
  64 && n !== (n = /*$_*/
4602
- i[6]("Loading") + "") && Te(r, n);
4606
+ i[6]("Loading") + "") && _e(r, n);
4603
4607
  },
4604
4608
  d(i) {
4605
- i && pe(t);
4609
+ i && fe(t);
4606
4610
  }
4607
4611
  };
4608
4612
  }
4609
4613
  function Tn(e) {
4610
- let t, n, r, i, a, l, s, h, u = (
4614
+ let t, n, r, i, o, l, s, h, u = (
4611
4615
  /*$_*/
4612
4616
  e[6]("Title") + ""
4613
- ), d, g, b, _, T, S, x = (
4617
+ ), d, m, g, x, B, T, _ = (
4614
4618
  /*$_*/
4615
4619
  e[6]("DepositButton") + ""
4616
- ), C, D, O, U, q, re, z = gt(Object.keys(
4620
+ ), S, I, H, D, W, q, Y = gt(Object.keys(
4617
4621
  /*balances*/
4618
4622
  e[1]
4619
- )), X = [];
4620
- for (let P = 0; P < z.length; P += 1)
4621
- X[P] = Sn(_n(e, z, P));
4623
+ )), G = [];
4624
+ for (let R = 0; R < Y.length; R += 1)
4625
+ G[R] = Sn(xn(e, Y, R));
4622
4626
  return {
4623
4627
  c() {
4624
- t = j("div"), n = j("div"), i = me(), a = j("div"), l = j("div"), s = j("div"), h = j("p"), d = de(u), g = me(), b = j("div");
4625
- for (let P = 0; P < X.length; P += 1)
4626
- X[P].c();
4627
- _ = me(), T = j("div"), S = j("button"), C = de(x), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4628
- (e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(S, "class", "BalanceModalAction"), M(T, "class", "BalanceModalFooter"), M(l, "class", D = "ModalContent " + /*modalOpened*/
4629
- (e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
4630
- (e[3] ? "Open" : "")), M(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4628
+ t = j("div"), n = j("div"), i = de(), o = j("div"), l = j("div"), s = j("div"), h = j("p"), d = he(u), m = de(), g = j("div");
4629
+ for (let R = 0; R < G.length; R += 1)
4630
+ G[R].c();
4631
+ x = de(), B = j("div"), T = j("button"), S = he(_), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4632
+ (e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", I = "ModalContent " + /*modalOpened*/
4633
+ (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4634
+ (e[3] ? "Open" : "")), N(t, "class", D = "BalanceModalWrapper " + /*modalOpened*/
4631
4635
  (e[3] ? "Open" : ""));
4632
4636
  },
4633
- m(P, $) {
4634
- ge(P, t, $), H(t, n), H(t, i), H(t, a), H(a, l), H(l, s), H(s, h), H(h, d), H(l, g), H(l, b);
4635
- for (let F = 0; F < X.length; F += 1)
4636
- X[F] && X[F].m(b, null);
4637
- H(l, _), H(l, T), H(T, S), H(S, C), q || (re = [
4637
+ m(R, V) {
4638
+ ge(R, t, V), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
4639
+ for (let U = 0; U < G.length; U += 1)
4640
+ G[U] && G[U].m(g, null);
4641
+ C(l, x), C(l, B), C(B, T), C(T, S), W || (q = [
4638
4642
  mt(
4639
4643
  n,
4640
4644
  "click",
@@ -4642,45 +4646,45 @@ function Tn(e) {
4642
4646
  e[26]
4643
4647
  ),
4644
4648
  mt(
4645
- S,
4649
+ T,
4646
4650
  "click",
4647
4651
  /*click_handler_2*/
4648
4652
  e[27]
4649
4653
  )
4650
- ], q = !0);
4654
+ ], W = !0);
4651
4655
  },
4652
- p(P, $) {
4653
- if ($[0] & /*modalOpened*/
4656
+ p(R, V) {
4657
+ if (V[0] & /*modalOpened*/
4654
4658
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4655
- (P[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
4659
+ (R[3] ? "Open" : "")) && N(n, "class", r), V[0] & /*$_*/
4656
4660
  64 && u !== (u = /*$_*/
4657
- P[6]("Title") + "") && Te(d, u), $[0] & /*balances, currency, formatBalance, $_*/
4661
+ R[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4658
4662
  354) {
4659
- z = gt(Object.keys(
4663
+ Y = gt(Object.keys(
4660
4664
  /*balances*/
4661
- P[1]
4665
+ R[1]
4662
4666
  ));
4663
- let F;
4664
- for (F = 0; F < z.length; F += 1) {
4665
- const Y = _n(P, z, F);
4666
- X[F] ? X[F].p(Y, $) : (X[F] = Sn(Y), X[F].c(), X[F].m(b, null));
4667
+ let U;
4668
+ for (U = 0; U < Y.length; U += 1) {
4669
+ const b = xn(R, Y, U);
4670
+ G[U] ? G[U].p(b, V) : (G[U] = Sn(b), G[U].c(), G[U].m(g, null));
4667
4671
  }
4668
- for (; F < X.length; F += 1)
4669
- X[F].d(1);
4670
- X.length = z.length;
4672
+ for (; U < G.length; U += 1)
4673
+ G[U].d(1);
4674
+ G.length = Y.length;
4671
4675
  }
4672
- $[0] & /*$_*/
4673
- 64 && x !== (x = /*$_*/
4674
- P[6]("DepositButton") + "") && Te(C, x), $[0] & /*modalOpened*/
4675
- 8 && D !== (D = "ModalContent " + /*modalOpened*/
4676
- (P[3] ? "Open" : "")) && M(l, "class", D), $[0] & /*modalOpened*/
4677
- 8 && O !== (O = "BalanceModal " + /*modalOpened*/
4678
- (P[3] ? "Open" : "")) && M(a, "class", O), $[0] & /*modalOpened*/
4679
- 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4680
- (P[3] ? "Open" : "")) && M(t, "class", U);
4676
+ V[0] & /*$_*/
4677
+ 64 && _ !== (_ = /*$_*/
4678
+ R[6]("DepositButton") + "") && _e(S, _), V[0] & /*modalOpened*/
4679
+ 8 && I !== (I = "ModalContent " + /*modalOpened*/
4680
+ (R[3] ? "Open" : "")) && N(l, "class", I), V[0] & /*modalOpened*/
4681
+ 8 && H !== (H = "BalanceModal " + /*modalOpened*/
4682
+ (R[3] ? "Open" : "")) && N(o, "class", H), V[0] & /*modalOpened*/
4683
+ 8 && D !== (D = "BalanceModalWrapper " + /*modalOpened*/
4684
+ (R[3] ? "Open" : "")) && N(t, "class", D);
4681
4685
  },
4682
- d(P) {
4683
- P && pe(t), Rn(X, P), q = !1, $e(re);
4686
+ d(R) {
4687
+ R && fe(t), Rn(G, R), W = !1, Ve(q);
4684
4688
  }
4685
4689
  };
4686
4690
  }
@@ -4691,7 +4695,7 @@ function wn(e) {
4691
4695
  /*k*/
4692
4696
  e[50]
4693
4697
  ) + ""
4694
- ), i, a, l = (
4698
+ ), i, o, l = (
4695
4699
  /*b*/
4696
4700
  (e[53].productType ? (
4697
4701
  /*$_*/
@@ -4700,7 +4704,7 @@ function wn(e) {
4700
4704
  e[53].productType
4701
4705
  )
4702
4706
  ) : "") + ""
4703
- ), s, h, u, d, g = (
4707
+ ), s, h, u, d, m = (
4704
4708
  /*b*/
4705
4709
  (e[53].amount ? (
4706
4710
  /*formatBalance*/
@@ -4709,48 +4713,48 @@ function wn(e) {
4709
4713
  e[53].amount
4710
4714
  )
4711
4715
  ) : "0") + ""
4712
- ), b, _, T, S;
4716
+ ), g, x, B, T;
4713
4717
  return {
4714
4718
  c() {
4715
- t = j("div"), n = j("p"), i = de(r), a = me(), s = de(l), h = me(), u = j("p"), d = j("span"), b = de(g), _ = me(), T = j("span"), S = de(
4719
+ t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), x = de(), B = j("span"), T = he(
4716
4720
  /*currency*/
4717
4721
  e[5]
4718
- ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(T, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4722
+ ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4719
4723
  },
4720
- m(x, C) {
4721
- ge(x, t, C), H(t, n), H(n, i), H(n, a), H(n, s), H(t, h), H(t, u), H(u, d), H(d, b), H(u, _), H(u, T), H(T, S);
4724
+ m(_, S) {
4725
+ ge(_, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, x), C(u, B), C(B, T);
4722
4726
  },
4723
- p(x, C) {
4724
- C[0] & /*$_, balances*/
4727
+ p(_, S) {
4728
+ S[0] & /*$_, balances*/
4725
4729
  66 && r !== (r = /*$_*/
4726
- x[6](
4730
+ _[6](
4727
4731
  /*k*/
4728
- x[50]
4729
- ) + "") && Te(i, r), C[0] & /*balances, $_*/
4732
+ _[50]
4733
+ ) + "") && _e(i, r), S[0] & /*balances, $_*/
4730
4734
  66 && l !== (l = /*b*/
4731
- (x[53].productType ? (
4735
+ (_[53].productType ? (
4732
4736
  /*$_*/
4733
- x[6](
4737
+ _[6](
4734
4738
  /*b*/
4735
- x[53].productType
4739
+ _[53].productType
4736
4740
  )
4737
- ) : "") + "") && Te(s, l), C[0] & /*balances*/
4738
- 2 && g !== (g = /*b*/
4739
- (x[53].amount ? (
4741
+ ) : "") + "") && _e(s, l), S[0] & /*balances*/
4742
+ 2 && m !== (m = /*b*/
4743
+ (_[53].amount ? (
4740
4744
  /*formatBalance*/
4741
- x[8](
4745
+ _[8](
4742
4746
  /*b*/
4743
- x[53].amount
4747
+ _[53].amount
4744
4748
  )
4745
- ) : "0") + "") && Te(b, g), C[0] & /*currency*/
4746
- 32 && Te(
4747
- S,
4749
+ ) : "0") + "") && _e(g, m), S[0] & /*currency*/
4750
+ 32 && _e(
4751
+ T,
4748
4752
  /*currency*/
4749
- x[5]
4753
+ _[5]
4750
4754
  );
4751
4755
  },
4752
- d(x) {
4753
- x && pe(t);
4756
+ d(_) {
4757
+ _ && fe(t);
4754
4758
  }
4755
4759
  };
4756
4760
  }
@@ -4762,34 +4766,34 @@ function Sn(e) {
4762
4766
  e[50]
4763
4767
  ]
4764
4768
  ), i = [];
4765
- for (let a = 0; a < r.length; a += 1)
4766
- i[a] = wn(Bn(e, r, a));
4769
+ for (let o = 0; o < r.length; o += 1)
4770
+ i[o] = wn(Bn(e, r, o));
4767
4771
  return {
4768
4772
  c() {
4769
4773
  t = j("div");
4770
- for (let a = 0; a < i.length; a += 1)
4771
- i[a].c();
4772
- n = me(), M(t, "class", "BalanceModalRowBoth");
4774
+ for (let o = 0; o < i.length; o += 1)
4775
+ i[o].c();
4776
+ n = de(), N(t, "class", "BalanceModalRowBoth");
4773
4777
  },
4774
- m(a, l) {
4775
- ge(a, t, l);
4778
+ m(o, l) {
4779
+ ge(o, t, l);
4776
4780
  for (let s = 0; s < i.length; s += 1)
4777
4781
  i[s] && i[s].m(t, null);
4778
- H(t, n);
4782
+ C(t, n);
4779
4783
  },
4780
- p(a, l) {
4784
+ p(o, l) {
4781
4785
  if (l[0] & /*currency, balances, formatBalance, $_*/
4782
4786
  354) {
4783
4787
  r = gt(
4784
4788
  /*balances*/
4785
- a[1][
4789
+ o[1][
4786
4790
  /*k*/
4787
- a[50]
4791
+ o[50]
4788
4792
  ]
4789
4793
  );
4790
4794
  let s;
4791
4795
  for (s = 0; s < r.length; s += 1) {
4792
- const h = Bn(a, r, s);
4796
+ const h = Bn(o, r, s);
4793
4797
  i[s] ? i[s].p(h, l) : (i[s] = wn(h), i[s].c(), i[s].m(t, n));
4794
4798
  }
4795
4799
  for (; s < i.length; s += 1)
@@ -4797,8 +4801,8 @@ function Sn(e) {
4797
4801
  i.length = r.length;
4798
4802
  }
4799
4803
  },
4800
- d(a) {
4801
- a && pe(t), Rn(i, a);
4804
+ d(o) {
4805
+ o && fe(t), Rn(i, o);
4802
4806
  }
4803
4807
  };
4804
4808
  }
@@ -4806,62 +4810,62 @@ function An(e) {
4806
4810
  let t, n, r;
4807
4811
  return {
4808
4812
  c() {
4809
- t = j("div"), M(t, "class", "ShowBalanceModalOverlay");
4813
+ t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
4810
4814
  },
4811
- m(i, a) {
4812
- ge(i, t, a), n || (r = mt(
4815
+ m(i, o) {
4816
+ ge(i, t, o), n || (r = mt(
4813
4817
  t,
4814
4818
  "click",
4815
4819
  /*click_handler_3*/
4816
4820
  e[28]
4817
4821
  ), n = !0);
4818
4822
  },
4819
- p: ue,
4823
+ p: se,
4820
4824
  d(i) {
4821
- i && pe(t), n = !1, r();
4825
+ i && fe(t), n = !1, r();
4822
4826
  }
4823
4827
  };
4824
4828
  }
4825
- function Oa(e) {
4829
+ function Lo(e) {
4826
4830
  let t, n, r;
4827
4831
  function i(h, u) {
4828
4832
  return (
4829
4833
  /*isLoading*/
4830
- h[2] ? Ha : Ca
4834
+ h[2] ? Ro : Oo
4831
4835
  );
4832
4836
  }
4833
- let a = i(e), l = a(e), s = (
4837
+ let o = i(e), l = o(e), s = (
4834
4838
  /*showBalance*/
4835
4839
  e[4] && An(e)
4836
4840
  );
4837
4841
  return {
4838
4842
  c() {
4839
- t = j("div"), n = j("div"), l.c(), r = me(), s && s.c(), M(n, "class", "ShowBalance");
4843
+ t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
4840
4844
  },
4841
4845
  m(h, u) {
4842
- ge(h, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
4846
+ ge(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4843
4847
  },
4844
4848
  p(h, u) {
4845
- a === (a = i(h)) && l ? l.p(h, u) : (l.d(1), l = a(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4849
+ o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4846
4850
  h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4847
4851
  },
4848
- i: ue,
4849
- o: ue,
4852
+ i: se,
4853
+ o: se,
4850
4854
  d(h) {
4851
- h && pe(t), l.d(), s && s.d(), e[29](null);
4855
+ h && fe(t), l.d(), s && s.d(), e[29](null);
4852
4856
  }
4853
4857
  };
4854
4858
  }
4855
- function Ra(e, t, n) {
4859
+ function Mo(e, t, n) {
4856
4860
  let r;
4857
- sr(e, va, (o) => n(6, r = o));
4858
- let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: D = "" } = t, O, U, q, re, z, X = !1, P = "", $ = [], F, Y = !1;
4859
- const v = {}, be = ["totalCashAmount", "totalRealAmount"], rt = () => {
4860
- fetch(g).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) => En(p, o[p]))).catch((o) => console.log(o));
4861
+ sr(e, _o, (a) => n(6, r = a));
4862
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: x = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: I = "" } = t, H, D, W, q, Y = !1, G = "", R = [], V, U = !1;
4863
+ const b = {}, xe = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4864
+ fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => En(f, a[f]))).catch((a) => console.log(a));
4861
4865
  };
4862
- Object.keys(xn).forEach((o) => En(o, xn[o]));
4863
- const ye = (o) => {
4864
- switch (o) {
4866
+ Object.keys(_n).forEach((a) => En(a, _n[a]));
4867
+ const Be = (a) => {
4868
+ switch (a) {
4865
4869
  case "balance":
4866
4870
  window.postMessage(
4867
4871
  {
@@ -4869,10 +4873,10 @@ function Ra(e, t, n) {
4869
4873
  status: "open"
4870
4874
  },
4871
4875
  window.location.href
4872
- ), n(4, X = !0), setTimeout(() => n(3, re = !0), 150);
4876
+ ), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
4873
4877
  break;
4874
4878
  case "closebalance":
4875
- n(3, re = !1), window.postMessage(
4879
+ n(3, W = !1), window.postMessage(
4876
4880
  {
4877
4881
  type: "BalanceModalStatus",
4878
4882
  status: "close"
@@ -4880,86 +4884,86 @@ function Ra(e, t, n) {
4880
4884
  window.location.href
4881
4885
  ), setTimeout(
4882
4886
  () => {
4883
- n(4, X = !1);
4887
+ n(4, Y = !1);
4884
4888
  },
4885
4889
  150
4886
4890
  );
4887
4891
  break;
4888
4892
  }
4889
- }, ce = () => {
4890
- if (b.includes(s))
4891
- return b;
4892
- }, we = (o) => b ? new Intl.NumberFormat(ce(), { useGrouping: !0 }).format(o) : x && C ? fe(o, {
4893
- separator: x,
4894
- decimal: C,
4893
+ }, Re = () => {
4894
+ if (g.includes(s))
4895
+ return g;
4896
+ }, pe = (a) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : _ && S ? ce(a, {
4897
+ separator: _,
4898
+ decimal: S,
4895
4899
  symbol: "",
4896
- precision: parseInt(D || "2", 10)
4897
- }).format() : fe(o, {
4900
+ precision: parseInt(I || "2", 10)
4901
+ }).format() : ce(a, {
4898
4902
  separator: ".",
4899
4903
  decimal: ",",
4900
4904
  symbol: "",
4901
- precision: parseInt(D || "2", 10)
4902
- }).format(), Ae = async () => {
4903
- n(2, O = !0);
4904
- const o = new URL(`${l}/v1/player/${i}/account`);
4905
+ precision: parseInt(I || "2", 10)
4906
+ }).format(), Te = async () => {
4907
+ n(2, H = !0);
4908
+ const a = new URL(`${l}/v1/player/${i}/account`);
4905
4909
  try {
4906
- const p = await fetch(o, {
4910
+ const f = await fetch(a, {
4907
4911
  method: "GET",
4908
- headers: { "X-SessionID": a }
4909
- }), f = await p.json();
4910
- if (p.ok)
4911
- window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = f.items, n(5, P = $.find((m) => m.displayName === "Casino")?.currency), n(1, v.Total = [{ amount: f.totalAmount[P] }], v), n(
4912
+ headers: { "X-SessionID": o }
4913
+ }), p = await f.json();
4914
+ if (f.ok)
4915
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, G = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[G] }], b), n(
4912
4916
  1,
4913
- v.Real = [
4917
+ b.Real = [
4914
4918
  {
4915
- amount: $.find((m) => m.displayName === "Casino")?.balanceAmount
4919
+ amount: R.find((c) => c.displayName === "Casino")?.balanceAmount
4916
4920
  }
4917
4921
  ],
4918
- v
4922
+ b
4919
4923
  ), n(
4920
4924
  1,
4921
- v.Bonus = [
4925
+ b.Bonus = [
4922
4926
  {
4923
- amount: $.find((m) => m.displayName === "UBS")?.balanceAmount
4927
+ amount: R.find((c) => c.displayName === "UBS")?.balanceAmount
4924
4928
  }
4925
4929
  ],
4926
- v
4930
+ b
4927
4931
  );
4928
4932
  else
4929
4933
  throw new Error("Failed to fetch balance data !");
4930
- } catch (p) {
4931
- console.log("Balance error: ", p);
4934
+ } catch (f) {
4935
+ console.log("Balance error: ", f);
4932
4936
  } finally {
4933
- n(2, O = !1);
4937
+ n(2, H = !1);
4934
4938
  }
4935
- }, Xe = () => {
4936
- n(2, O = !0);
4937
- const o = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4938
- p.append("X-SessionID", a), fetch(o, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
4939
- m[S] || n(10, S = be[0]);
4940
- const y = m.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4941
- if (n(5, P = y.currency), Y = !!y.productType, n(1, v.Total = [{ amount: 0 }], v), n(1, v.Real = [], v), n(1, v.Bonus = [], v), n(1, v.Credit = [], v), !Y) {
4942
- F = {
4939
+ }, Ae = () => {
4940
+ n(2, H = !0);
4941
+ const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4942
+ f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
4943
+ c[T] || n(10, T = xe[0]);
4944
+ const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4945
+ if (n(5, G = v.currency), U = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !U) {
4946
+ V = {
4943
4947
  lastOrdinaryAfterAmount: 0,
4944
4948
  showCreditLineAfterAmount: !1
4945
- }, n(1, v.Total[0].amount = m[S][P], v);
4946
- for (const E of m.items)
4947
- switch (E.type) {
4949
+ }, n(1, b.Total[0].amount = c[T][G], b);
4950
+ for (const y of c.items)
4951
+ switch (y.type) {
4948
4952
  case "Bonus":
4949
- v.Bonus.length === 0 ? v.Bonus.push({ amount: E.amount }) : n(1, v.Bonus[0].amount += E.amount, v);
4953
+ b.Bonus.length === 0 ? b.Bonus.push({ amount: y.amount }) : n(1, b.Bonus[0].amount += y.amount, b);
4950
4954
  break;
4951
4955
  case "Real":
4952
- if (E.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: E.creditLine }), S === "totalRealAmount")
4956
+ if (y.creditLine && b.Credit.length === 0 && b.Credit.push({ amount: y.creditLine }), T === "totalRealAmount")
4953
4957
  continue;
4954
- v.Real.length === 0 ? v.Real.push({ amount: E.amount }) : n(1, v.Real[0].amount += E.amount, v);
4958
+ b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
4955
4959
  break;
4956
4960
  }
4957
- for (const [E, w] of Object.entries(v))
4958
- w.length < 1 && delete v[E];
4959
- n(2, O = !1);
4961
+ for (const [y, L] of Object.entries(b))
4962
+ L.length < 1 && delete b[y];
4963
+ n(2, H = !1);
4960
4964
  return;
4961
4965
  }
4962
- F = {
4966
+ V = {
4963
4967
  Casino: {
4964
4968
  lastOrdinaryAfterAmount: 0,
4965
4969
  showCreditLineAfterAmount: !1
@@ -4969,201 +4973,201 @@ function Ra(e, t, n) {
4969
4973
  showCreditLineAfterAmount: !1
4970
4974
  }
4971
4975
  };
4972
- let B = m.items;
4973
- T && T !== "All" && (B = m.items.filter((E) => E.productType === T));
4974
- for (const E of B) {
4975
- let w;
4976
- switch (E.type) {
4976
+ let E = c.items;
4977
+ B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
4978
+ for (const y of E) {
4979
+ let L;
4980
+ switch (y.type) {
4977
4981
  case "Bonus":
4978
- w = v.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, v.Bonus[w].amount += E.amount, v) : v.Bonus.push({
4979
- amount: E.amount,
4980
- productType: E.productType
4982
+ L = b.Bonus.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Bonus[L].amount += y.amount, b) : b.Bonus.push({
4983
+ amount: y.amount,
4984
+ productType: y.productType
4981
4985
  });
4982
4986
  break;
4983
4987
  case "Real":
4984
- E.creditLine && v.Credit.push({
4985
- amount: E.creditLine,
4986
- productType: E.productType
4987
- }), w = v.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, v.Real[w].amount += E.amount, v) : v.Real.push({
4988
- amount: E.amount,
4989
- productType: E.productType
4988
+ y.creditLine && b.Credit.push({
4989
+ amount: y.creditLine,
4990
+ productType: y.productType
4991
+ }), L = b.Real.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Real[L].amount += y.amount, b) : b.Real.push({
4992
+ amount: y.amount,
4993
+ productType: y.productType
4990
4994
  });
4991
4995
  break;
4992
4996
  }
4993
4997
  }
4994
- at();
4995
- for (const [E, w] of Object.entries(v))
4996
- w.length < 1 && delete v[E];
4997
- n(2, O = !1);
4998
- }).catch((m) => {
4999
- throw n(2, O = !1), new Error("Failed to fetch balance data !");
4998
+ ot();
4999
+ for (const [y, L] of Object.entries(b))
5000
+ L.length < 1 && delete b[y];
5001
+ n(2, H = !1);
5002
+ }).catch((c) => {
5003
+ throw n(2, H = !1), new Error("Failed to fetch balance data !");
5000
5004
  });
5001
- }, le = () => {
5002
- if (z && z.close(), a.length < 1)
5005
+ }, Ce = () => {
5006
+ if (q && q.close(), o.length < 1)
5003
5007
  return;
5004
- let o, p;
5005
- switch (_) {
5008
+ let a, f;
5009
+ switch (x) {
5006
5010
  case "gm16":
5007
- o = new URL(`${l}/v2/player/${i}/information/updates`), p = (y) => Tt(y);
5011
+ a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => wt(v);
5008
5012
  break;
5009
5013
  case "gmcore":
5010
- o = new URL(`${l}/v1/player/${i}/balance/updates`), p = (y) => it(y);
5014
+ a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => qe(v);
5011
5015
  break;
5012
5016
  }
5013
- const f = {
5017
+ const p = {
5014
5018
  accept: "text/event-stream",
5015
- "X-SessionId": a
5016
- }, m = new xa.EventSourcePolyfill(o, { headers: f });
5017
- z = m, m.addEventListener("message", p);
5018
- }, Oe = (o) => {
5019
- let p;
5019
+ "X-SessionId": o
5020
+ }, c = new Bo.EventSourcePolyfill(a, { headers: p });
5021
+ q = c, c.addEventListener("message", f);
5022
+ }, le = (a) => {
5023
+ let f;
5020
5024
  try {
5021
- p = JSON.parse(o);
5022
- } catch (f) {
5023
- console.log("Balance stream failed: ", f);
5025
+ f = JSON.parse(a);
5026
+ } catch (p) {
5027
+ console.log("Balance stream failed: ", p);
5024
5028
  return;
5025
5029
  }
5026
- return p;
5027
- }, it = (o) => {
5028
- const p = Oe(o.data);
5029
- if (!p) {
5030
- le();
5030
+ return f;
5031
+ }, qe = (a) => {
5032
+ const f = le(a.data);
5033
+ if (!f) {
5034
+ Ce();
5031
5035
  return;
5032
5036
  }
5033
- let f = "0";
5034
- const m = p.balanceChange;
5035
- $ = $.map((y) => (m && m[y.id] && (y = {
5036
- ...y,
5037
- balanceAmount: m[y.id].afterAmount
5038
- }), f = (parseFloat(y?.balanceAmount) + parseFloat(f)).toString(), y)), n(1, v.Real = [{ amount: $[0]?.balanceAmount }], v), n(1, v.Bonus = [{ amount: $[1]?.balanceAmount }], v), n(1, v.Total = [{ amount: Number(f) }], v);
5039
- }, ze = (o, p, f) => {
5040
- let m = null;
5041
- switch (f.walletAccountType) {
5037
+ let p = "0";
5038
+ const c = f.balanceChange;
5039
+ R = R.map((v) => (c && c[v.id] && (v = {
5040
+ ...v,
5041
+ balanceAmount: c[v.id].afterAmount
5042
+ }), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: R[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: R[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
5043
+ }, Le = (a, f, p) => {
5044
+ let c = null;
5045
+ switch (p.walletAccountType) {
5042
5046
  case "Ordinary":
5043
- f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (m = f.afterAmount));
5047
+ p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
5044
5048
  break;
5045
5049
  case "CreditLine":
5046
- f.afterAmount !== 0 ? (m = f.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5050
+ p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
5047
5051
  break;
5048
5052
  default:
5049
- m = f.afterAmount;
5053
+ c = p.afterAmount;
5050
5054
  }
5051
- return m === null ? o : m;
5052
- }, at = () => {
5053
- switch (S) {
5055
+ return c === null ? a : c;
5056
+ }, ot = () => {
5057
+ switch (T) {
5054
5058
  case "totalCashAmount":
5055
- let o = 0;
5056
- for (const f of ["Real", "Bonus"])
5057
- for (const m of v[f])
5058
- o += Math.max(m.amount, 0);
5059
- n(1, v.Total[0].amount = o, v);
5059
+ let a = 0;
5060
+ for (const p of ["Real", "Bonus"])
5061
+ for (const c of b[p])
5062
+ a += Math.max(c.amount, 0);
5063
+ n(1, b.Total[0].amount = a, b);
5060
5064
  break;
5061
5065
  case "totalRealAmount":
5062
- if (!Y)
5066
+ if (!U)
5063
5067
  return;
5064
- let p = 0;
5065
- for (const f of v.Real)
5066
- p += f.amount;
5067
- n(1, v.Total[0].amount = p, v);
5068
+ let f = 0;
5069
+ for (const p of b.Real)
5070
+ f += p.amount;
5071
+ n(1, b.Total[0].amount = f, b);
5068
5072
  }
5069
- }, Tt = (o) => {
5070
- const p = Oe(o.data);
5071
- if (!p) {
5072
- le();
5073
+ }, wt = (a) => {
5074
+ const f = le(a.data);
5075
+ if (!f) {
5076
+ Ce();
5073
5077
  return;
5074
5078
  }
5075
- if (p.type !== "BALANCE_UPDATE_V2")
5079
+ if (f.type !== "BALANCE_UPDATE_V2")
5076
5080
  return;
5077
- const f = p.body.balanceChange;
5078
- for (const [m, y] of Object.entries(f))
5079
- if (S === "totalRealAmount" && m === "Real" && !Y && n(1, v.Total[0].amount = ze(v.Total[0].amount, F, y), v), !!v[m])
5080
- for (const B of v[m]) {
5081
- if (!Y) {
5082
- B.amount = m === "Real" ? ze(B.amount, F, y) : y.afterAmount;
5081
+ const p = f.body.balanceChange;
5082
+ for (const [c, v] of Object.entries(p))
5083
+ if (T === "totalRealAmount" && c === "Real" && !U && n(1, b.Total[0].amount = Le(b.Total[0].amount, V, v), b), !!b[c])
5084
+ for (const E of b[c]) {
5085
+ if (!U) {
5086
+ E.amount = c === "Real" ? Le(E.amount, V, v) : v.afterAmount;
5083
5087
  continue;
5084
5088
  }
5085
- y.productType === B.productType && (B.amount = m === "Real" ? ze(B.amount, F[B.productType], y) : y.afterAmount);
5089
+ v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount, V[E.productType], v) : v.afterAmount);
5086
5090
  }
5087
- at();
5088
- }, ot = () => {
5089
- ye("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5090
- }, We = () => {
5091
- be.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${be}. Using default value ('${be[0]}').`), n(10, S = be[0]));
5092
- }, Ze = () => {
5093
- switch (Ea(s), We(), _) {
5091
+ ot();
5092
+ }, at = () => {
5093
+ Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5094
+ }, St = () => {
5095
+ xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
5096
+ }, Qe = () => {
5097
+ switch (xo(s), St(), x) {
5094
5098
  case "gmcore":
5095
- Ae();
5099
+ Te();
5096
5100
  break;
5097
5101
  case "gm16":
5098
- Xe();
5102
+ Ae();
5099
5103
  break;
5100
5104
  default:
5101
- throw Error(`Invalid apiversion attribute: ${_}`);
5105
+ throw Error(`Invalid apiversion attribute: ${x}`);
5102
5106
  }
5103
- }, ve = (o) => o.data && o.data.type === "LogoutSuccessfull" && z.close(), ie = () => {
5107
+ }, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
5104
5108
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5105
5109
  };
5106
- mr(() => (window.addEventListener("message", ve, !1), () => {
5107
- window.emMessageBus && q && q.unsubscribe(), window.removeEventListener("message", ve), z && z.close();
5110
+ mr(() => (window.addEventListener("message", Me, !1), () => {
5111
+ window.removeEventListener("message", Me), q && q.close();
5108
5112
  }));
5109
- const wt = () => ye("balance"), St = () => ye("closebalance"), At = () => ot(), st = () => ye("closeBalance");
5110
- function c(o) {
5111
- Dt[o ? "unshift" : "push"](() => {
5112
- U = o, n(0, U);
5113
+ const re = () => Be("balance"), At = () => Be("closebalance"), Ct = () => at(), Ht = () => Be("closeBalance");
5114
+ function st(a) {
5115
+ Ft[a ? "unshift" : "push"](() => {
5116
+ D = a, n(0, D);
5113
5117
  });
5114
5118
  }
5115
- return e.$$set = (o) => {
5116
- "userid" in o && n(11, i = o.userid), "session" in o && n(12, a = o.session), "endpoint" in o && n(13, l = o.endpoint), "lang" in o && n(14, s = o.lang), "mbsource" in o && n(15, h = o.mbsource), "clientstyling" in o && n(16, u = o.clientstyling), "clientstylingurl" in o && n(17, d = o.clientstylingurl), "translationurl" in o && n(18, g = o.translationurl), "customlocaleidentifier" in o && n(19, b = o.customlocaleidentifier), "gmversion" in o && n(20, _ = o.gmversion), "displaybalanceoption" in o && n(21, T = o.displaybalanceoption), "totalcalculationmode" in o && n(10, S = o.totalcalculationmode), "currencyseparator" in o && n(22, x = o.currencyseparator), "currencydecimal" in o && n(23, C = o.currencydecimal), "currencyprecision" in o && n(24, D = o.currencyprecision);
5119
+ return e.$$set = (a) => {
5120
+ "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, x = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, _ = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, I = a.currencyprecision);
5117
5121
  }, e.$$.update = () => {
5118
5122
  e.$$.dirty[0] & /*lang*/
5119
- 16384 && s && ce(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5120
- 3176448 && l && i && a && s && _ && T && Ze(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5121
- 1062912 && l && i && a && _ && le(), e.$$.dirty[0] & /*translationurl*/
5122
- 262144 && g && rt(), e.$$.dirty[0] & /*balances*/
5123
- 2 && v.Total && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5124
- 65537 && u && U && Hr(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5125
- 131073 && d && U && Or(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5126
- 32769 && h && U && Rr(U, `${h}.Style`);
5123
+ 16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5124
+ 3176448 && l && i && o && s && x && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5125
+ 1062912 && l && i && o && x && Ce(), e.$$.dirty[0] & /*translationurl*/
5126
+ 262144 && m && Ze(), e.$$.dirty[0] & /*balances*/
5127
+ 2 && b.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5128
+ 65537 && u && D && Hr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5129
+ 131073 && d && D && Or(D, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5130
+ 32769 && h && D && Rr(D, `${h}.Style`);
5127
5131
  }, [
5128
- U,
5129
- v,
5130
- O,
5131
- re,
5132
- X,
5133
- P,
5132
+ D,
5133
+ b,
5134
+ H,
5135
+ W,
5136
+ Y,
5137
+ G,
5134
5138
  r,
5135
- ye,
5136
- we,
5137
- ot,
5138
- S,
5139
+ Be,
5140
+ pe,
5141
+ at,
5142
+ T,
5139
5143
  i,
5140
- a,
5144
+ o,
5141
5145
  l,
5142
5146
  s,
5143
5147
  h,
5144
5148
  u,
5145
5149
  d,
5150
+ m,
5146
5151
  g,
5147
- b,
5148
- _,
5149
- T,
5150
5152
  x,
5151
- C,
5152
- D,
5153
- wt,
5154
- St,
5153
+ B,
5154
+ _,
5155
+ S,
5156
+ I,
5157
+ re,
5155
5158
  At,
5156
- st,
5157
- c
5159
+ Ct,
5160
+ Ht,
5161
+ st
5158
5162
  ];
5159
5163
  }
5160
- class La extends Ar {
5164
+ class No extends Ar {
5161
5165
  constructor(t) {
5162
5166
  super(), wr(
5163
5167
  this,
5164
5168
  t,
5165
- Ra,
5166
- Oa,
5169
+ Mo,
5170
+ Lo,
5167
5171
  Hn,
5168
5172
  {
5169
5173
  userid: 11,
@@ -5182,7 +5186,7 @@ class La extends Ar {
5182
5186
  currencydecimal: 23,
5183
5187
  currencyprecision: 24
5184
5188
  },
5185
- Aa,
5189
+ Ho,
5186
5190
  [-1, -1]
5187
5191
  );
5188
5192
  }
@@ -5277,7 +5281,7 @@ class La extends Ar {
5277
5281
  this.$$set({ currencyprecision: t }), J();
5278
5282
  }
5279
5283
  }
5280
- Sr(La, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5284
+ Sr(No, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5281
5285
  export {
5282
- La as P
5286
+ No as P
5283
5287
  };