@everymatrix/player-account-balance-modal 1.77.18 → 1.77.20

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