@everymatrix/player-account-balance-modal 1.69.3 → 1.70.1

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,17 +1,17 @@
1
- var cr = Object.defineProperty, fr = Object.defineProperties;
2
- var dr = Object.getOwnPropertyDescriptors;
3
- var ln = Object.getOwnPropertySymbols;
4
- var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
5
- var Nt = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mt = (e, t) => {
1
+ var ur = Object.defineProperty, lr = Object.defineProperties;
2
+ var hr = Object.getOwnPropertyDescriptors;
3
+ var sn = Object.getOwnPropertySymbols;
4
+ var cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
5
+ var Rt = Math.pow, Lt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- pr.call(t, n) && Nt(e, n, t[n]);
8
- if (ln)
9
- for (var n of ln(t))
10
- mr.call(t, n) && Nt(e, n, t[n]);
7
+ cr.call(t, n) && Lt(e, n, t[n]);
8
+ if (sn)
9
+ for (var n of sn(t))
10
+ fr.call(t, n) && Lt(e, n, t[n]);
11
11
  return e;
12
- }, Pt = (e, t) => fr(e, dr(t));
13
- var ue = (e, t, n) => (Nt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var It = (e, t, n) => new Promise((r, i) => {
12
+ }, Mt = (e, t) => lr(e, hr(t));
13
+ var ae = (e, t, n) => (Lt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Pt = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (c) => {
16
16
  try {
17
17
  s(n.next(c));
@@ -27,49 +27,49 @@ var It = (e, t, n) => new Promise((r, i) => {
27
27
  }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
- function le() {
30
+ function se() {
31
31
  }
32
- function Nn(e) {
32
+ function Ln(e) {
33
33
  return e();
34
34
  }
35
- function hn() {
35
+ function un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function Ve(e) {
39
- e.forEach(Nn);
39
+ e.forEach(Ln);
40
40
  }
41
- function rn(e) {
41
+ function nn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Mn(e, t) {
44
+ function Rn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function gr(e) {
47
+ function dr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Pn(e, ...t) {
50
+ function Nn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return le;
54
+ return se;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function br(e, t, n) {
60
- e.$$.on_destroy.push(Pn(t, n));
59
+ function pr(e, t, n) {
60
+ e.$$.on_destroy.push(Nn(t, n));
61
61
  }
62
- function L(e, t) {
62
+ function M(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function yr(e, t, n) {
66
- const r = vr(e);
65
+ function mr(e, t, n) {
66
+ const r = gr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = V("style");
69
- i.id = t, i.textContent = n, Er(r, i);
68
+ const i = j("style");
69
+ i.id = t, i.textContent = n, br(r, i);
70
70
  }
71
71
  }
72
- function vr(e) {
72
+ function gr(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,49 +79,49 @@ function vr(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function Er(e, t) {
83
- return L(
82
+ function br(e, t) {
83
+ return M(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function Ee(e, t, n) {
89
+ function de(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function me(e) {
92
+ function le(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function In(e, t) {
95
+ function Mn(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function V(e) {
99
+ function j(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function pe(e) {
102
+ function xe(e) {
103
103
  return document.createTextNode(e);
104
104
  }
105
- function ge() {
106
- return pe(" ");
105
+ function _e() {
106
+ return xe(" ");
107
107
  }
108
- function xr() {
109
- return pe("");
108
+ function yr() {
109
+ return xe("");
110
110
  }
111
- function yt(e, t, n, r) {
111
+ function pt(e, t, n, r) {
112
112
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
113
113
  }
114
- function Z(e, t, n) {
114
+ function q(e, t, n) {
115
115
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
116
116
  }
117
- function _r(e) {
117
+ function vr(e) {
118
118
  return Array.from(e.childNodes);
119
119
  }
120
- function Se(e, t) {
120
+ function Oe(e, t) {
121
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
122
  t);
123
123
  }
124
- function Tr(e) {
124
+ function Er(e) {
125
125
  const t = {};
126
126
  return e.childNodes.forEach(
127
127
  /** @param {Element} node */
@@ -134,27 +134,27 @@ let nt;
134
134
  function tt(e) {
135
135
  nt = e;
136
136
  }
137
- function Br() {
137
+ function xr() {
138
138
  if (!nt)
139
139
  throw new Error("Function called outside component initialization");
140
140
  return nt;
141
141
  }
142
- function Sr(e) {
143
- Br().$$.on_mount.push(e);
142
+ function _r(e) {
143
+ xr().$$.on_mount.push(e);
144
144
  }
145
- const Fe = [], Vt = [];
145
+ const Fe = [], kt = [];
146
146
  let Ue = [];
147
- const cn = [], wr = /* @__PURE__ */ Promise.resolve();
148
- let Xt = !1;
149
- function Ar() {
150
- Xt || (Xt = !0, wr.then(Q));
147
+ const ln = [], Tr = /* @__PURE__ */ Promise.resolve();
148
+ let Vt = !1;
149
+ function Br() {
150
+ Vt || (Vt = !0, Tr.then(z));
151
151
  }
152
- function zt(e) {
152
+ function Xt(e) {
153
153
  Ue.push(e);
154
154
  }
155
- const Dt = /* @__PURE__ */ new Set();
155
+ const It = /* @__PURE__ */ new Set();
156
156
  let Ie = 0;
157
- function Q() {
157
+ function z() {
158
158
  if (Ie !== 0)
159
159
  return;
160
160
  const e = nt;
@@ -162,56 +162,56 @@ function Q() {
162
162
  try {
163
163
  for (; Ie < Fe.length; ) {
164
164
  const t = Fe[Ie];
165
- Ie++, tt(t), Cr(t.$$);
165
+ Ie++, tt(t), Sr(t.$$);
166
166
  }
167
167
  } catch (t) {
168
168
  throw Fe.length = 0, Ie = 0, t;
169
169
  }
170
- for (tt(null), Fe.length = 0, Ie = 0; Vt.length; )
171
- Vt.pop()();
170
+ for (tt(null), Fe.length = 0, Ie = 0; kt.length; )
171
+ kt.pop()();
172
172
  for (let t = 0; t < Ue.length; t += 1) {
173
173
  const n = Ue[t];
174
- Dt.has(n) || (Dt.add(n), n());
174
+ It.has(n) || (It.add(n), n());
175
175
  }
176
176
  Ue.length = 0;
177
177
  } while (Fe.length);
178
- for (; cn.length; )
179
- cn.pop()();
180
- Xt = !1, Dt.clear(), tt(e);
178
+ for (; ln.length; )
179
+ ln.pop()();
180
+ Vt = !1, It.clear(), tt(e);
181
181
  }
182
- function Cr(e) {
182
+ function Sr(e) {
183
183
  if (e.fragment !== null) {
184
184
  e.update(), Ve(e.before_update);
185
185
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
186
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
187
187
  }
188
188
  }
189
- function Hr(e) {
189
+ function wr(e) {
190
190
  const t = [], n = [];
191
191
  Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
192
192
  }
193
- const Or = /* @__PURE__ */ new Set();
194
- function Rr(e, t) {
195
- e && e.i && (Or.delete(e), e.i(t));
193
+ const Ar = /* @__PURE__ */ new Set();
194
+ function Cr(e, t) {
195
+ e && e.i && (Ar.delete(e), e.i(t));
196
196
  }
197
- function vt(e) {
197
+ function mt(e) {
198
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
199
  }
200
- function Lr(e, t, n) {
200
+ function Hr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
- r && r.m(t, n), zt(() => {
203
- const o = e.$$.on_mount.map(Nn).filter(rn);
202
+ r && r.m(t, n), Xt(() => {
203
+ const o = e.$$.on_mount.map(Ln).filter(nn);
204
204
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
205
- }), i.forEach(zt);
205
+ }), i.forEach(Xt);
206
206
  }
207
- function Nr(e, t) {
207
+ function Or(e, t) {
208
208
  const n = e.$$;
209
- n.fragment !== null && (Hr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
209
+ n.fragment !== null && (wr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
- function Mr(e, t) {
212
- e.$$.dirty[0] === -1 && (Fe.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function Lr(e, t) {
212
+ e.$$.dirty[0] === -1 && (Fe.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
- function Pr(e, t, n, r, i, o, u = null, s = [-1]) {
214
+ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
215
215
  const c = nt;
216
216
  tt(e);
217
217
  const l = e.$$ = {
@@ -219,9 +219,9 @@ function Pr(e, t, n, r, i, o, u = null, s = [-1]) {
219
219
  ctx: [],
220
220
  // state
221
221
  props: o,
222
- update: le,
222
+ update: se,
223
223
  not_equal: i,
224
- bound: hn(),
224
+ bound: un(),
225
225
  // lifecycle
226
226
  on_mount: [],
227
227
  on_destroy: [],
@@ -230,48 +230,48 @@ function Pr(e, t, n, r, i, o, u = null, s = [-1]) {
230
230
  after_update: [],
231
231
  context: new Map(t.context || (c ? c.$$.context : [])),
232
232
  // everything else
233
- callbacks: hn(),
233
+ callbacks: un(),
234
234
  dirty: s,
235
235
  skip_bound: !1,
236
236
  root: t.target || c.$$.root
237
237
  };
238
238
  u && u(l.root);
239
239
  let f = !1;
240
- if (l.ctx = n ? n(e, t.props || {}, (g, p, ...y) => {
241
- const E = y.length ? y[0] : p;
242
- return l.ctx && i(l.ctx[g], l.ctx[g] = E) && (!l.skip_bound && l.bound[g] && l.bound[g](E), f && Mr(e, g)), p;
240
+ if (l.ctx = n ? n(e, t.props || {}, (g, b, ...x) => {
241
+ const _ = x.length ? x[0] : b;
242
+ return l.ctx && i(l.ctx[g], l.ctx[g] = _) && (!l.skip_bound && l.bound[g] && l.bound[g](_), f && Lr(e, g)), b;
243
243
  }) : [], l.update(), f = !0, Ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
- const g = _r(t.target);
246
- l.fragment && l.fragment.l(g), g.forEach(me);
245
+ const g = vr(t.target);
246
+ l.fragment && l.fragment.l(g), g.forEach(le);
247
247
  } else
248
248
  l.fragment && l.fragment.c();
249
- t.intro && Rr(e.$$.fragment), Lr(e, t.target, t.anchor), Q();
249
+ t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), z();
250
250
  }
251
251
  tt(c);
252
252
  }
253
- let Dn;
254
- typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
253
+ let Pn;
254
+ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
255
255
  constructor(t, n, r) {
256
256
  super();
257
257
  /** The Svelte component constructor */
258
- ue(this, "$$ctor");
258
+ ae(this, "$$ctor");
259
259
  /** Slots */
260
- ue(this, "$$s");
260
+ ae(this, "$$s");
261
261
  /** The Svelte component instance */
262
- ue(this, "$$c");
262
+ ae(this, "$$c");
263
263
  /** Whether or not the custom element is connected */
264
- ue(this, "$$cn", !1);
264
+ ae(this, "$$cn", !1);
265
265
  /** Component props data */
266
- ue(this, "$$d", {});
266
+ ae(this, "$$d", {});
267
267
  /** `true` if currently in the process of reflecting component props back to attributes */
268
- ue(this, "$$r", !1);
268
+ ae(this, "$$r", !1);
269
269
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
270
- ue(this, "$$p_d", {});
270
+ ae(this, "$$p_d", {});
271
271
  /** @type {Record<string, Function[]>} Event listeners */
272
- ue(this, "$$l", {});
272
+ ae(this, "$$l", {});
273
273
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
274
- ue(this, "$$l_u", /* @__PURE__ */ new Map());
274
+ ae(this, "$$l_u", /* @__PURE__ */ new Map());
275
275
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
276
276
  }
277
277
  addEventListener(t, n, r) {
@@ -288,42 +288,42 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
288
288
  }
289
289
  }
290
290
  connectedCallback() {
291
- return It(this, null, function* () {
291
+ return Pt(this, null, function* () {
292
292
  if (this.$$cn = !0, !this.$$c) {
293
293
  let t = function(o) {
294
294
  return () => {
295
295
  let u;
296
296
  return {
297
297
  c: function() {
298
- u = V("slot"), o !== "default" && Z(u, "name", o);
298
+ u = j("slot"), o !== "default" && q(u, "name", o);
299
299
  },
300
300
  /**
301
301
  * @param {HTMLElement} target
302
302
  * @param {HTMLElement} [anchor]
303
303
  */
304
304
  m: function(l, f) {
305
- Ee(l, u, f);
305
+ de(l, u, f);
306
306
  },
307
307
  d: function(l) {
308
- l && me(u);
308
+ l && le(u);
309
309
  }
310
310
  };
311
311
  };
312
312
  };
313
313
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
314
314
  return;
315
- const n = {}, r = Tr(this);
315
+ const n = {}, r = Er(this);
316
316
  for (const o of this.$$s)
317
317
  o in r && (n[o] = [t(o)]);
318
318
  for (const o of this.attributes) {
319
319
  const u = this.$$g_p(o.name);
320
- u in this.$$d || (this.$$d[u] = pt(u, o.value, this.$$p_d, "toProp"));
320
+ u in this.$$d || (this.$$d[u] = ct(u, o.value, this.$$p_d, "toProp"));
321
321
  }
322
322
  for (const o in this.$$p_d)
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
324
324
  this.$$c = new this.$$ctor({
325
325
  target: this.shadowRoot || this,
326
- props: Pt(Mt({}, this.$$d), {
326
+ props: Mt(Nt({}, this.$$d), {
327
327
  $$slots: n,
328
328
  $$scope: {
329
329
  ctx: []
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
334
334
  this.$$r = !0;
335
335
  for (const o in this.$$p_d)
336
336
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
337
- const u = pt(
337
+ const u = ct(
338
338
  o,
339
339
  this.$$d[o],
340
340
  this.$$p_d,
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
358
358
  // and setting attributes through setAttribute etc, this is helpful
359
359
  attributeChangedCallback(t, n, r) {
360
360
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = pt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
361
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
362
  }
363
363
  disconnectedCallback() {
364
364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
371
371
  ) || t;
372
372
  }
373
373
  });
374
- function pt(e, t, n, r) {
374
+ function ct(e, t, n, r) {
375
375
  var o;
376
376
  const i = (o = n[e]) == null ? void 0 : o.type;
377
377
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -401,8 +401,8 @@ function pt(e, t, n, r) {
401
401
  return t;
402
402
  }
403
403
  }
404
- function Ir(e, t, n, r, i, o) {
405
- let u = class extends Dn {
404
+ function Nr(e, t, n, r, i, o) {
405
+ let u = class extends Pn {
406
406
  constructor() {
407
407
  super(e, n, i), this.$$p_d = t;
408
408
  }
@@ -419,7 +419,7 @@ function Ir(e, t, n, r, i, o) {
419
419
  },
420
420
  set(c) {
421
421
  var l;
422
- c = pt(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
422
+ c = ct(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
423
423
  }
424
424
  });
425
425
  }), r.forEach((s) => {
@@ -432,7 +432,7 @@ function Ir(e, t, n, r, i, o) {
432
432
  }), e.element = /** @type {any} */
433
433
  u, u;
434
434
  }
435
- class Dr {
435
+ class Mr {
436
436
  constructor() {
437
437
  /**
438
438
  * ### PRIVATE API
@@ -441,7 +441,7 @@ class Dr {
441
441
  *
442
442
  * @type {any}
443
443
  */
444
- ue(this, "$$");
444
+ ae(this, "$$");
445
445
  /**
446
446
  * ### PRIVATE API
447
447
  *
@@ -449,11 +449,11 @@ class Dr {
449
449
  *
450
450
  * @type {any}
451
451
  */
452
- ue(this, "$$set");
452
+ ae(this, "$$set");
453
453
  }
454
454
  /** @returns {void} */
455
455
  $destroy() {
456
- Nr(this, 1), this.$destroy = le;
456
+ Or(this, 1), this.$destroy = se;
457
457
  }
458
458
  /**
459
459
  * @template {Extract<keyof Events, string>} K
@@ -462,8 +462,8 @@ class Dr {
462
462
  * @returns {() => void}
463
463
  */
464
464
  $on(t, n) {
465
- if (!rn(n))
466
- return le;
465
+ if (!nn(n))
466
+ return se;
467
467
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
468
  return r.push(n), () => {
469
469
  const i = r.indexOf(n);
@@ -475,18 +475,18 @@ class Dr {
475
475
  * @returns {void}
476
476
  */
477
477
  $set(t) {
478
- this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
478
+ this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
479
479
  }
480
480
  }
481
- const Fr = "4";
482
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
483
- function Ur(e, t) {
481
+ const Pr = "4";
482
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
483
+ function Ir(e, t) {
484
484
  if (e) {
485
485
  const n = document.createElement("style");
486
486
  n.innerHTML = t, e.appendChild(n);
487
487
  }
488
488
  }
489
- function Gr(e, t) {
489
+ function Dr(e, t) {
490
490
  const n = new URL(t);
491
491
  fetch(n.href).then((r) => r.text()).then((r) => {
492
492
  const i = document.createElement("style");
@@ -495,7 +495,7 @@ function Gr(e, t) {
495
495
  console.error("There was an error while trying to load client styling from URL", r);
496
496
  });
497
497
  }
498
- function $r(e, t, n) {
498
+ function Fr(e, t, n) {
499
499
  if (window.emMessageBus) {
500
500
  const r = document.createElement("style");
501
501
  window.emMessageBus.subscribe(t, (i) => {
@@ -504,16 +504,16 @@ function $r(e, t, n) {
504
504
  }
505
505
  }
506
506
  const De = [];
507
- function jr(e, t) {
507
+ function Ur(e, t) {
508
508
  return {
509
- subscribe: Tt(e, t).subscribe
509
+ subscribe: vt(e, t).subscribe
510
510
  };
511
511
  }
512
- function Tt(e, t = le) {
512
+ function vt(e, t = se) {
513
513
  let n;
514
514
  const r = /* @__PURE__ */ new Set();
515
515
  function i(s) {
516
- if (Mn(e, s) && (e = s, n)) {
516
+ if (Rn(e, s) && (e = s, n)) {
517
517
  const c = !De.length;
518
518
  for (const l of r)
519
519
  l[1](), De.push(l, e);
@@ -527,9 +527,9 @@ function Tt(e, t = le) {
527
527
  function o(s) {
528
528
  i(s(e));
529
529
  }
530
- function u(s, c = le) {
530
+ function u(s, c = se) {
531
531
  const l = [s, c];
532
- return r.add(l), r.size === 1 && (n = t(i, o) || le), s(e), () => {
532
+ return r.add(l), r.size === 1 && (n = t(i, o) || se), s(e), () => {
533
533
  r.delete(l), r.size === 0 && n && (n(), n = null);
534
534
  };
535
535
  }
@@ -540,97 +540,97 @@ function Xe(e, t, n) {
540
540
  if (!i.every(Boolean))
541
541
  throw new Error("derived() expects stores as input, got a falsy value");
542
542
  const o = t.length < 2;
543
- return jr(n, (u, s) => {
543
+ return Ur(n, (u, s) => {
544
544
  let c = !1;
545
545
  const l = [];
546
- let f = 0, g = le;
547
- const p = () => {
546
+ let f = 0, g = se;
547
+ const b = () => {
548
548
  if (f)
549
549
  return;
550
550
  g();
551
- const E = t(r ? l[0] : l, u, s);
552
- o ? u(E) : g = rn(E) ? E : le;
553
- }, y = i.map(
554
- (E, N) => Pn(
555
- E,
556
- (C) => {
557
- l[N] = C, f &= ~(1 << N), c && p();
551
+ const _ = t(r ? l[0] : l, u, s);
552
+ o ? u(_) : g = nn(_) ? _ : se;
553
+ }, x = i.map(
554
+ (_, P) => Nn(
555
+ _,
556
+ (k) => {
557
+ l[P] = k, f &= ~(1 << P), c && b();
558
558
  },
559
559
  () => {
560
- f |= 1 << N;
560
+ f |= 1 << P;
561
561
  }
562
562
  )
563
563
  );
564
- return c = !0, p(), function() {
565
- Ve(y), g(), c = !1;
564
+ return c = !0, b(), function() {
565
+ Ve(x), g(), c = !1;
566
566
  };
567
567
  });
568
568
  }
569
- var kr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
- function Vr(e) {
569
+ var Gr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
+ function $r(e) {
571
571
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
572
572
  }
573
- var Xr = function(t) {
574
- return zr(t) && !Wr(t);
573
+ var jr = function(t) {
574
+ return kr(t) && !Vr(t);
575
575
  };
576
- function zr(e) {
576
+ function kr(e) {
577
577
  return !!e && typeof e == "object";
578
578
  }
579
- function Wr(e) {
579
+ function Vr(e) {
580
580
  var t = Object.prototype.toString.call(e);
581
- return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
581
+ return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
582
582
  }
583
- var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
584
- function Qr(e) {
585
- return e.$$typeof === qr;
583
+ var Xr = typeof Symbol == "function" && Symbol.for, zr = Xr ? Symbol.for("react.element") : 60103;
584
+ function Wr(e) {
585
+ return e.$$typeof === zr;
586
586
  }
587
- function Jr(e) {
587
+ function Zr(e) {
588
588
  return Array.isArray(e) ? [] : {};
589
589
  }
590
590
  function rt(e, t) {
591
- return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Jr(e), e, t) : e;
591
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Zr(e), e, t) : e;
592
592
  }
593
- function Yr(e, t, n) {
593
+ function qr(e, t, n) {
594
594
  return e.concat(t).map(function(r) {
595
595
  return rt(r, n);
596
596
  });
597
597
  }
598
- function Kr(e, t) {
598
+ function Qr(e, t) {
599
599
  if (!t.customMerge)
600
600
  return Ge;
601
601
  var n = t.customMerge(e);
602
602
  return typeof n == "function" ? n : Ge;
603
603
  }
604
- function ei(e) {
604
+ function Jr(e) {
605
605
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
606
606
  return Object.propertyIsEnumerable.call(e, t);
607
607
  }) : [];
608
608
  }
609
- function fn(e) {
610
- return Object.keys(e).concat(ei(e));
609
+ function hn(e) {
610
+ return Object.keys(e).concat(Jr(e));
611
611
  }
612
- function Fn(e, t) {
612
+ function In(e, t) {
613
613
  try {
614
614
  return t in e;
615
615
  } catch (n) {
616
616
  return !1;
617
617
  }
618
618
  }
619
- function ti(e, t) {
620
- return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
619
+ function Yr(e, t) {
620
+ return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
621
621
  }
622
- function ni(e, t, n) {
622
+ function Kr(e, t, n) {
623
623
  var r = {};
624
- return n.isMergeableObject(e) && fn(e).forEach(function(i) {
624
+ return n.isMergeableObject(e) && hn(e).forEach(function(i) {
625
625
  r[i] = rt(e[i], n);
626
- }), fn(t).forEach(function(i) {
627
- ti(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Kr(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
626
+ }), hn(t).forEach(function(i) {
627
+ Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
628
628
  }), r;
629
629
  }
630
630
  function Ge(e, t, n) {
631
- n = n || {}, n.arrayMerge = n.arrayMerge || Yr, n.isMergeableObject = n.isMergeableObject || Xr, n.cloneUnlessOtherwiseSpecified = rt;
631
+ n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = rt;
632
632
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
633
- return o ? r ? n.arrayMerge(e, t, n) : ni(e, t, n) : rt(t, n);
633
+ return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : rt(t, n);
634
634
  }
635
635
  Ge.all = function(t, n) {
636
636
  if (!Array.isArray(t))
@@ -639,36 +639,36 @@ Ge.all = function(t, n) {
639
639
  return Ge(r, i, n);
640
640
  }, {});
641
641
  };
642
- var ri = Ge, ii = ri;
643
- const oi = /* @__PURE__ */ Vr(ii);
644
- var Wt = function(e, t) {
645
- return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
642
+ var ei = Ge, ti = ei;
643
+ const ni = /* @__PURE__ */ $r(ti);
644
+ var zt = function(e, t) {
645
+ return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
646
646
  n.__proto__ = r;
647
647
  } || function(n, r) {
648
648
  for (var i in r)
649
649
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
650
- }, Wt(e, t);
650
+ }, zt(e, t);
651
651
  };
652
- function Bt(e, t) {
652
+ function Et(e, t) {
653
653
  if (typeof t != "function" && t !== null)
654
654
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
655
- Wt(e, t);
655
+ zt(e, t);
656
656
  function n() {
657
657
  this.constructor = e;
658
658
  }
659
659
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
660
660
  }
661
- var ve = function() {
662
- return ve = Object.assign || function(t) {
661
+ var fe = function() {
662
+ return fe = Object.assign || function(t) {
663
663
  for (var n, r = 1, i = arguments.length; r < i; r++) {
664
664
  n = arguments[r];
665
665
  for (var o in n)
666
666
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
667
667
  }
668
668
  return t;
669
- }, ve.apply(this, arguments);
669
+ }, fe.apply(this, arguments);
670
670
  };
671
- function ai(e, t) {
671
+ function ri(e, t) {
672
672
  var n = {};
673
673
  for (var r in e)
674
674
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -677,43 +677,43 @@ function ai(e, t) {
677
677
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
678
678
  return n;
679
679
  }
680
- function Ft(e, t, n) {
680
+ function Dt(e, t, n) {
681
681
  if (n || arguments.length === 2)
682
682
  for (var r = 0, i = t.length, o; r < i; r++)
683
683
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
684
684
  return e.concat(o || Array.prototype.slice.call(t));
685
685
  }
686
- function Ut(e, t) {
687
- var n = t && t.cache ? t.cache : di, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
686
+ function Ft(e, t) {
687
+ var n = t && t.cache ? t.cache : hi, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : ai;
688
688
  return i(e, {
689
689
  cache: n,
690
690
  serializer: r
691
691
  });
692
692
  }
693
- function si(e) {
693
+ function ii(e) {
694
694
  return e == null || typeof e == "number" || typeof e == "boolean";
695
695
  }
696
- function ui(e, t, n, r) {
697
- var i = si(r) ? r : n(r), o = t.get(i);
696
+ function oi(e, t, n, r) {
697
+ var i = ii(r) ? r : n(r), o = t.get(i);
698
698
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
699
699
  }
700
- function Un(e, t, n) {
700
+ function Dn(e, t, n) {
701
701
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
702
702
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
703
703
  }
704
- function Gn(e, t, n, r, i) {
704
+ function Fn(e, t, n, r, i) {
705
705
  return n.bind(t, e, r, i);
706
706
  }
707
- function li(e, t) {
708
- var n = e.length === 1 ? ui : Un;
709
- return Gn(e, this, n, t.cache.create(), t.serializer);
707
+ function ai(e, t) {
708
+ var n = e.length === 1 ? oi : Dn;
709
+ return Fn(e, this, n, t.cache.create(), t.serializer);
710
710
  }
711
- function hi(e, t) {
712
- return Gn(e, this, Un, t.cache.create(), t.serializer);
711
+ function si(e, t) {
712
+ return Fn(e, this, Dn, t.cache.create(), t.serializer);
713
713
  }
714
- var ci = function() {
714
+ var ui = function() {
715
715
  return JSON.stringify(arguments);
716
- }, fi = (
716
+ }, li = (
717
717
  /** @class */
718
718
  function() {
719
719
  function e() {
@@ -725,26 +725,26 @@ var ci = function() {
725
725
  this.cache[t] = n;
726
726
  }, e;
727
727
  }()
728
- ), di = {
728
+ ), hi = {
729
729
  create: function() {
730
- return new fi();
730
+ return new li();
731
731
  }
732
- }, Gt = {
733
- variadic: hi
734
- }, Et = function() {
735
- return Et = Object.assign || function(t) {
732
+ }, Ut = {
733
+ variadic: si
734
+ }, gt = function() {
735
+ return gt = Object.assign || function(t) {
736
736
  for (var n, r = 1, i = arguments.length; r < i; r++) {
737
737
  n = arguments[r];
738
738
  for (var o in n)
739
739
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
740
740
  }
741
741
  return t;
742
- }, Et.apply(this, arguments);
742
+ }, gt.apply(this, arguments);
743
743
  };
744
- var A;
744
+ var O;
745
745
  (function(e) {
746
746
  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";
747
- })(A || (A = {}));
747
+ })(O || (O = {}));
748
748
  var F;
749
749
  (function(e) {
750
750
  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";
@@ -753,43 +753,43 @@ var $e;
753
753
  (function(e) {
754
754
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
755
755
  })($e || ($e = {}));
756
- function dn(e) {
756
+ function cn(e) {
757
757
  return e.type === F.literal;
758
758
  }
759
- function pi(e) {
759
+ function ci(e) {
760
760
  return e.type === F.argument;
761
761
  }
762
- function $n(e) {
762
+ function Un(e) {
763
763
  return e.type === F.number;
764
764
  }
765
- function jn(e) {
765
+ function Gn(e) {
766
766
  return e.type === F.date;
767
767
  }
768
- function kn(e) {
768
+ function $n(e) {
769
769
  return e.type === F.time;
770
770
  }
771
- function Vn(e) {
771
+ function jn(e) {
772
772
  return e.type === F.select;
773
773
  }
774
- function Xn(e) {
774
+ function kn(e) {
775
775
  return e.type === F.plural;
776
776
  }
777
- function mi(e) {
777
+ function fi(e) {
778
778
  return e.type === F.pound;
779
779
  }
780
- function zn(e) {
780
+ function Vn(e) {
781
781
  return e.type === F.tag;
782
782
  }
783
- function Wn(e) {
783
+ function Xn(e) {
784
784
  return !!(e && typeof e == "object" && e.type === $e.number);
785
785
  }
786
- function Zt(e) {
786
+ function Wt(e) {
787
787
  return !!(e && typeof e == "object" && e.type === $e.dateTime);
788
788
  }
789
- var Zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[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;
790
- function bi(e) {
789
+ var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
790
+ function pi(e) {
791
791
  var t = {};
792
- return e.replace(gi, function(n) {
792
+ return e.replace(di, function(n) {
793
793
  var r = n.length;
794
794
  switch (n[0]) {
795
795
  case "G":
@@ -878,22 +878,22 @@ function bi(e) {
878
878
  return "";
879
879
  }), t;
880
880
  }
881
- var k = function() {
882
- return k = Object.assign || function(t) {
881
+ var G = function() {
882
+ return G = Object.assign || function(t) {
883
883
  for (var n, r = 1, i = arguments.length; r < i; r++) {
884
884
  n = arguments[r];
885
885
  for (var o in n)
886
886
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
887
887
  }
888
888
  return t;
889
- }, k.apply(this, arguments);
889
+ }, G.apply(this, arguments);
890
890
  };
891
- var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
892
- function vi(e) {
891
+ var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
892
+ function gi(e) {
893
893
  if (e.length === 0)
894
894
  throw new Error("Number skeleton cannot be empty");
895
- for (var t = e.split(yi).filter(function(p) {
896
- return p.length > 0;
895
+ for (var t = e.split(mi).filter(function(b) {
896
+ return b.length > 0;
897
897
  }), n = [], r = 0, i = t; r < i.length; r++) {
898
898
  var o = i[r], u = o.split("/");
899
899
  if (u.length === 0)
@@ -907,17 +907,17 @@ function vi(e) {
907
907
  }
908
908
  return n;
909
909
  }
910
- function Ei(e) {
910
+ function bi(e) {
911
911
  return e.replace(/^(.*?)-/, "");
912
912
  }
913
- var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qn = /^(@+)?(\+|#+)?[rs]?$/g, xi = /(\*)(0+)|(#+)(0+)|(0+)/g, Qn = /^(0+)$/;
914
- function mn(e) {
913
+ var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
914
+ function dn(e) {
915
915
  var t = {};
916
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qn, function(n, r, i) {
916
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
917
917
  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)), "";
918
918
  }), t;
919
919
  }
920
- function Jn(e) {
920
+ function qn(e) {
921
921
  switch (e) {
922
922
  case "sign-auto":
923
923
  return {
@@ -957,7 +957,7 @@ function Jn(e) {
957
957
  };
958
958
  }
959
959
  }
960
- function _i(e) {
960
+ function vi(e) {
961
961
  var t;
962
962
  if (e[0] === "E" && e[1] === "E" ? (t = {
963
963
  notation: "engineering"
@@ -965,17 +965,17 @@ function _i(e) {
965
965
  notation: "scientific"
966
966
  }, e = e.slice(1)), t) {
967
967
  var n = e.slice(0, 2);
968
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qn.test(e))
968
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zn.test(e))
969
969
  throw new Error("Malformed concise eng/scientific notation");
970
970
  t.minimumIntegerDigits = e.length;
971
971
  }
972
972
  return t;
973
973
  }
974
- function gn(e) {
975
- var t = {}, n = Jn(e);
974
+ function pn(e) {
975
+ var t = {}, n = qn(e);
976
976
  return n || t;
977
977
  }
978
- function Ti(e) {
978
+ function Ei(e) {
979
979
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
980
980
  var i = r[n];
981
981
  switch (i.stem) {
@@ -999,7 +999,7 @@ function Ti(e) {
999
999
  continue;
1000
1000
  case "measure-unit":
1001
1001
  case "unit":
1002
- t.style = "unit", t.unit = Ei(i.options[0]);
1002
+ t.style = "unit", t.unit = bi(i.options[0]);
1003
1003
  continue;
1004
1004
  case "compact-short":
1005
1005
  case "K":
@@ -1010,13 +1010,13 @@ function Ti(e) {
1010
1010
  t.notation = "compact", t.compactDisplay = "long";
1011
1011
  continue;
1012
1012
  case "scientific":
1013
- t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1014
- return k(k({}, c), gn(l));
1013
+ t = G(G(G({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1014
+ return G(G({}, c), pn(l));
1015
1015
  }, {}));
1016
1016
  continue;
1017
1017
  case "engineering":
1018
- t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1019
- return k(k({}, c), gn(l));
1018
+ t = G(G(G({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1019
+ return G(G({}, c), pn(l));
1020
1020
  }, {}));
1021
1021
  continue;
1022
1022
  case "notation-simple":
@@ -1061,45 +1061,45 @@ function Ti(e) {
1061
1061
  case "integer-width":
1062
1062
  if (i.options.length > 1)
1063
1063
  throw new RangeError("integer-width stems only accept a single optional option");
1064
- i.options[0].replace(xi, function(c, l, f, g, p, y) {
1064
+ i.options[0].replace(yi, function(c, l, f, g, b, x) {
1065
1065
  if (l)
1066
1066
  t.minimumIntegerDigits = f.length;
1067
1067
  else {
1068
- if (g && p)
1068
+ if (g && b)
1069
1069
  throw new Error("We currently do not support maximum integer digits");
1070
- if (y)
1070
+ if (x)
1071
1071
  throw new Error("We currently do not support exact integer digits");
1072
1072
  }
1073
1073
  return "";
1074
1074
  });
1075
1075
  continue;
1076
1076
  }
1077
- if (Qn.test(i.stem)) {
1077
+ if (Zn.test(i.stem)) {
1078
1078
  t.minimumIntegerDigits = i.stem.length;
1079
1079
  continue;
1080
1080
  }
1081
- if (pn.test(i.stem)) {
1081
+ if (fn.test(i.stem)) {
1082
1082
  if (i.options.length > 1)
1083
1083
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1084
- i.stem.replace(pn, function(c, l, f, g, p, y) {
1085
- return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1084
+ i.stem.replace(fn, function(c, l, f, g, b, x) {
1085
+ return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && x ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1086
1086
  });
1087
1087
  var o = i.options[0];
1088
- o === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = k(k({}, t), mn(o)));
1088
+ o === "w" ? t = G(G({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = G(G({}, t), dn(o)));
1089
1089
  continue;
1090
1090
  }
1091
- if (qn.test(i.stem)) {
1092
- t = k(k({}, t), mn(i.stem));
1091
+ if (Wn.test(i.stem)) {
1092
+ t = G(G({}, t), dn(i.stem));
1093
1093
  continue;
1094
1094
  }
1095
- var u = Jn(i.stem);
1096
- u && (t = k(k({}, t), u));
1097
- var s = _i(i.stem);
1098
- s && (t = k(k({}, t), s));
1095
+ var u = qn(i.stem);
1096
+ u && (t = G(G({}, t), u));
1097
+ var s = vi(i.stem);
1098
+ s && (t = G(G({}, t), s));
1099
1099
  }
1100
1100
  return t;
1101
1101
  }
1102
- var dt = {
1102
+ var ht = {
1103
1103
  "001": [
1104
1104
  "H",
1105
1105
  "h"
@@ -2514,13 +2514,13 @@ var dt = {
2514
2514
  "h"
2515
2515
  ]
2516
2516
  };
2517
- function Bi(e, t) {
2517
+ function xi(e, t) {
2518
2518
  for (var n = "", r = 0; r < e.length; r++) {
2519
2519
  var i = e.charAt(r);
2520
2520
  if (i === "j") {
2521
2521
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2522
2522
  o++, r++;
2523
- var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Si(t);
2523
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = _i(t);
2524
2524
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2525
2525
  n += c;
2526
2526
  for (; u-- > 0; )
@@ -2530,7 +2530,7 @@ function Bi(e, t) {
2530
2530
  }
2531
2531
  return n;
2532
2532
  }
2533
- function Si(e) {
2533
+ function _i(e) {
2534
2534
  var t = e.hourCycle;
2535
2535
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2536
2536
  e.hourCycles && // @ts-ignore
@@ -2549,23 +2549,23 @@ function Si(e) {
2549
2549
  }
2550
2550
  var n = e.language, r;
2551
2551
  n !== "root" && (r = e.maximize().region);
2552
- var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2552
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2553
2553
  return i[0];
2554
2554
  }
2555
- var $t, wi = new RegExp("^".concat(Zn.source, "*")), Ai = new RegExp("".concat(Zn.source, "*$"));
2556
- function R(e, t) {
2555
+ var Gt, Ti = new RegExp("^".concat(zn.source, "*")), Bi = new RegExp("".concat(zn.source, "*$"));
2556
+ function L(e, t) {
2557
2557
  return { start: e, end: t };
2558
2558
  }
2559
- var Ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Pi = Mi ? Number.isSafeInteger : function(e) {
2559
+ var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
2560
2560
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2561
- }, qt = !0;
2561
+ }, Zt = !0;
2562
2562
  try {
2563
- var Ii = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2564
- qt = (($t = Ii.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
2563
+ var Ni = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2564
+ Zt = ((Gt = Ni.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
2565
2565
  } catch (e) {
2566
- qt = !1;
2566
+ Zt = !1;
2567
2567
  }
2568
- var bn = Ci ? (
2568
+ var mn = Si ? (
2569
2569
  // Native
2570
2570
  function(t, n, r) {
2571
2571
  return t.startsWith(n, r);
@@ -2575,7 +2575,7 @@ var bn = Ci ? (
2575
2575
  function(t, n, r) {
2576
2576
  return t.slice(r, r + n.length) === n;
2577
2577
  }
2578
- ), Qt = Hi ? String.fromCodePoint : (
2578
+ ), qt = wi ? String.fromCodePoint : (
2579
2579
  // IE11
2580
2580
  function() {
2581
2581
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2587,9 +2587,9 @@ var bn = Ci ? (
2587
2587
  }
2588
2588
  return r;
2589
2589
  }
2590
- ), yn = (
2590
+ ), gn = (
2591
2591
  // native
2592
- Oi ? Object.fromEntries : (
2592
+ Ai ? Object.fromEntries : (
2593
2593
  // Ponyfill
2594
2594
  function(t) {
2595
2595
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2599,7 +2599,7 @@ var bn = Ci ? (
2599
2599
  return n;
2600
2600
  }
2601
2601
  )
2602
- ), Yn = Ri ? (
2602
+ ), Qn = Ci ? (
2603
2603
  // Native
2604
2604
  function(t, n) {
2605
2605
  return t.codePointAt(n);
@@ -2613,7 +2613,7 @@ var bn = Ci ? (
2613
2613
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2614
2614
  }
2615
2615
  }
2616
- ), Di = Li ? (
2616
+ ), Mi = Hi ? (
2617
2617
  // Native
2618
2618
  function(t) {
2619
2619
  return t.trimStart();
@@ -2621,9 +2621,9 @@ var bn = Ci ? (
2621
2621
  ) : (
2622
2622
  // Ponyfill
2623
2623
  function(t) {
2624
- return t.replace(wi, "");
2624
+ return t.replace(Ti, "");
2625
2625
  }
2626
- ), Fi = Ni ? (
2626
+ ), Pi = Oi ? (
2627
2627
  // Native
2628
2628
  function(t) {
2629
2629
  return t.trimEnd();
@@ -2631,32 +2631,32 @@ var bn = Ci ? (
2631
2631
  ) : (
2632
2632
  // Ponyfill
2633
2633
  function(t) {
2634
- return t.replace(Ai, "");
2634
+ return t.replace(Bi, "");
2635
2635
  }
2636
2636
  );
2637
- function Kn(e, t) {
2637
+ function Jn(e, t) {
2638
2638
  return new RegExp(e, t);
2639
2639
  }
2640
- var Jt;
2641
- if (qt) {
2642
- var vn = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2643
- Jt = function(t, n) {
2640
+ var Qt;
2641
+ if (Zt) {
2642
+ var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2643
+ Qt = function(t, n) {
2644
2644
  var r;
2645
- vn.lastIndex = n;
2646
- var i = vn.exec(t);
2645
+ bn.lastIndex = n;
2646
+ var i = bn.exec(t);
2647
2647
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2648
2648
  };
2649
2649
  } else
2650
- Jt = function(t, n) {
2650
+ Qt = function(t, n) {
2651
2651
  for (var r = []; ; ) {
2652
- var i = Yn(t, n);
2653
- if (i === void 0 || er(i) || ji(i))
2652
+ var i = Qn(t, n);
2653
+ if (i === void 0 || Yn(i) || Ui(i))
2654
2654
  break;
2655
2655
  r.push(i), n += i >= 65536 ? 2 : 1;
2656
2656
  }
2657
- return Qt.apply(void 0, r);
2657
+ return qt.apply(void 0, r);
2658
2658
  };
2659
- var Ui = (
2659
+ var Ii = (
2660
2660
  /** @class */
2661
2661
  function() {
2662
2662
  function e(t, n) {
@@ -2681,13 +2681,13 @@ var Ui = (
2681
2681
  var s = this.clonePosition();
2682
2682
  this.bump(), i.push({
2683
2683
  type: F.pound,
2684
- location: R(s, this.clonePosition())
2684
+ location: L(s, this.clonePosition())
2685
2685
  });
2686
2686
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2687
2687
  if (r)
2688
2688
  break;
2689
- return this.error(A.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
2690
- } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2689
+ return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2690
+ } else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
2691
2691
  var u = this.parseTag(t, n);
2692
2692
  if (u.err)
2693
2693
  return u;
@@ -2710,7 +2710,7 @@ var Ui = (
2710
2710
  val: {
2711
2711
  type: F.literal,
2712
2712
  value: "<".concat(i, "/>"),
2713
- location: R(r, this.clonePosition())
2713
+ location: L(r, this.clonePosition())
2714
2714
  },
2715
2715
  err: null
2716
2716
  };
@@ -2720,25 +2720,25 @@ var Ui = (
2720
2720
  return o;
2721
2721
  var u = o.val, s = this.clonePosition();
2722
2722
  if (this.bumpIf("</")) {
2723
- if (this.isEOF() || !Yt(this.char()))
2724
- return this.error(A.INVALID_TAG, R(s, this.clonePosition()));
2723
+ if (this.isEOF() || !Jt(this.char()))
2724
+ return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
2725
2725
  var c = this.clonePosition(), l = this.parseTagName();
2726
- return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, R(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2726
+ return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2727
2727
  val: {
2728
2728
  type: F.tag,
2729
2729
  value: i,
2730
2730
  children: u,
2731
- location: R(r, this.clonePosition())
2731
+ location: L(r, this.clonePosition())
2732
2732
  },
2733
2733
  err: null
2734
- } : this.error(A.INVALID_TAG, R(s, this.clonePosition())));
2734
+ } : this.error(O.INVALID_TAG, L(s, this.clonePosition())));
2735
2735
  } else
2736
- return this.error(A.UNCLOSED_TAG, R(r, this.clonePosition()));
2736
+ return this.error(O.UNCLOSED_TAG, L(r, this.clonePosition()));
2737
2737
  } else
2738
- return this.error(A.INVALID_TAG, R(r, this.clonePosition()));
2738
+ return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
2739
2739
  }, e.prototype.parseTagName = function() {
2740
2740
  var t = this.offset();
2741
- for (this.bump(); !this.isEOF() && $i(this.char()); )
2741
+ for (this.bump(); !this.isEOF() && Fi(this.char()); )
2742
2742
  this.bump();
2743
2743
  return this.message.slice(t, this.offset());
2744
2744
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2760,14 +2760,14 @@ var Ui = (
2760
2760
  }
2761
2761
  break;
2762
2762
  }
2763
- var c = R(r, this.clonePosition());
2763
+ var c = L(r, this.clonePosition());
2764
2764
  return {
2765
2765
  val: { type: F.literal, value: i, location: c },
2766
2766
  err: null
2767
2767
  };
2768
2768
  }, e.prototype.tryParseLeftAngleBracket = function() {
2769
2769
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2770
- !Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
2770
+ !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
2771
2771
  }, e.prototype.tryParseQuote = function(t) {
2772
2772
  if (this.isEOF() || this.char() !== 39)
2773
2773
  return null;
@@ -2801,23 +2801,23 @@ var Ui = (
2801
2801
  n.push(r);
2802
2802
  this.bump();
2803
2803
  }
2804
- return Qt.apply(void 0, n);
2804
+ return qt.apply(void 0, n);
2805
2805
  }, e.prototype.tryParseUnquoted = function(t, n) {
2806
2806
  if (this.isEOF())
2807
2807
  return null;
2808
2808
  var r = this.char();
2809
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Qt(r));
2809
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
2810
2810
  }, e.prototype.parseArgument = function(t, n) {
2811
2811
  var r = this.clonePosition();
2812
2812
  if (this.bump(), this.bumpSpace(), this.isEOF())
2813
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition()));
2813
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2814
2814
  if (this.char() === 125)
2815
- return this.bump(), this.error(A.EMPTY_ARGUMENT, R(r, this.clonePosition()));
2815
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2816
2816
  var i = this.parseIdentifierIfPossible().value;
2817
2817
  if (!i)
2818
- return this.error(A.MALFORMED_ARGUMENT, R(r, this.clonePosition()));
2818
+ return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2819
2819
  if (this.bumpSpace(), this.isEOF())
2820
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition()));
2820
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2821
2821
  switch (this.char()) {
2822
2822
  case 125:
2823
2823
  return this.bump(), {
@@ -2825,25 +2825,25 @@ var Ui = (
2825
2825
  type: F.argument,
2826
2826
  // value does not include the opening and closing braces.
2827
2827
  value: i,
2828
- location: R(r, this.clonePosition())
2828
+ location: L(r, this.clonePosition())
2829
2829
  },
2830
2830
  err: null
2831
2831
  };
2832
2832
  case 44:
2833
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2833
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2834
2834
  default:
2835
- return this.error(A.MALFORMED_ARGUMENT, R(r, this.clonePosition()));
2835
+ return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2836
2836
  }
2837
2837
  }, e.prototype.parseIdentifierIfPossible = function() {
2838
- var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
2838
+ var t = this.clonePosition(), n = this.offset(), r = Qt(this.message, n), i = n + r.length;
2839
2839
  this.bumpTo(i);
2840
- var o = this.clonePosition(), u = R(t, o);
2840
+ var o = this.clonePosition(), u = L(t, o);
2841
2841
  return { value: r, location: u };
2842
2842
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2843
2843
  var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2844
2844
  switch (s) {
2845
2845
  case "":
2846
- return this.error(A.EXPECT_ARGUMENT_TYPE, R(u, c));
2846
+ return this.error(O.EXPECT_ARGUMENT_TYPE, L(u, c));
2847
2847
  case "number":
2848
2848
  case "date":
2849
2849
  case "time": {
@@ -2854,37 +2854,37 @@ var Ui = (
2854
2854
  var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2855
2855
  if (g.err)
2856
2856
  return g;
2857
- var p = Fi(g.val);
2858
- if (p.length === 0)
2859
- return this.error(A.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
2860
- var y = R(f, this.clonePosition());
2861
- l = { style: p, styleLocation: y };
2857
+ var b = Pi(g.val);
2858
+ if (b.length === 0)
2859
+ return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2860
+ var x = L(f, this.clonePosition());
2861
+ l = { style: b, styleLocation: x };
2862
2862
  }
2863
- var E = this.tryParseArgumentClose(i);
2864
- if (E.err)
2865
- return E;
2866
- var N = R(i, this.clonePosition());
2867
- if (l && bn(l == null ? void 0 : l.style, "::", 0)) {
2868
- var C = Di(l.style.slice(2));
2863
+ var _ = this.tryParseArgumentClose(i);
2864
+ if (_.err)
2865
+ return _;
2866
+ var P = L(i, this.clonePosition());
2867
+ if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
2868
+ var k = Mi(l.style.slice(2));
2869
2869
  if (s === "number") {
2870
- var g = this.parseNumberSkeletonFromString(C, l.styleLocation);
2870
+ var g = this.parseNumberSkeletonFromString(k, l.styleLocation);
2871
2871
  return g.err ? g : {
2872
- val: { type: F.number, value: r, location: N, style: g.val },
2872
+ val: { type: F.number, value: r, location: P, style: g.val },
2873
2873
  err: null
2874
2874
  };
2875
2875
  } else {
2876
- if (C.length === 0)
2877
- return this.error(A.EXPECT_DATE_TIME_SKELETON, N);
2878
- var U = C;
2879
- this.locale && (U = Bi(C, this.locale));
2880
- var p = {
2876
+ if (k.length === 0)
2877
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, P);
2878
+ var W = k;
2879
+ this.locale && (W = xi(k, this.locale));
2880
+ var b = {
2881
2881
  type: $e.dateTime,
2882
- pattern: U,
2882
+ pattern: W,
2883
2883
  location: l.styleLocation,
2884
- parsedOptions: this.shouldParseSkeletons ? bi(U) : {}
2885
- }, X = s === "date" ? F.date : F.time;
2884
+ parsedOptions: this.shouldParseSkeletons ? pi(W) : {}
2885
+ }, $ = s === "date" ? F.date : F.time;
2886
2886
  return {
2887
- val: { type: X, value: r, location: N, style: p },
2887
+ val: { type: $, value: r, location: P, style: b },
2888
2888
  err: null
2889
2889
  };
2890
2890
  }
@@ -2893,7 +2893,7 @@ var Ui = (
2893
2893
  val: {
2894
2894
  type: s === "number" ? F.number : s === "date" ? F.date : F.time,
2895
2895
  value: r,
2896
- location: N,
2896
+ location: P,
2897
2897
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2898
2898
  },
2899
2899
  err: null
@@ -2902,52 +2902,52 @@ var Ui = (
2902
2902
  case "plural":
2903
2903
  case "selectordinal":
2904
2904
  case "select": {
2905
- var T = this.clonePosition();
2905
+ var B = this.clonePosition();
2906
2906
  if (this.bumpSpace(), !this.bumpIf(","))
2907
- return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, R(T, Et({}, T)));
2907
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(B, gt({}, B)));
2908
2908
  this.bumpSpace();
2909
- var S = this.parseIdentifierIfPossible(), G = 0;
2910
- if (s !== "select" && S.value === "offset") {
2909
+ var w = this.parseIdentifierIfPossible(), D = 0;
2910
+ if (s !== "select" && w.value === "offset") {
2911
2911
  if (!this.bumpIf(":"))
2912
- return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R(this.clonePosition(), this.clonePosition()));
2912
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2913
2913
  this.bumpSpace();
2914
- var g = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2914
+ var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2915
2915
  if (g.err)
2916
2916
  return g;
2917
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), G = g.val;
2917
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), D = g.val;
2918
2918
  }
2919
- var M = this.tryParsePluralOrSelectOptions(t, s, n, S);
2920
- if (M.err)
2921
- return M;
2922
- var E = this.tryParseArgumentClose(i);
2923
- if (E.err)
2924
- return E;
2925
- var J = R(i, this.clonePosition());
2919
+ var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
2920
+ if (R.err)
2921
+ return R;
2922
+ var _ = this.tryParseArgumentClose(i);
2923
+ if (_.err)
2924
+ return _;
2925
+ var ee = L(i, this.clonePosition());
2926
2926
  return s === "select" ? {
2927
2927
  val: {
2928
2928
  type: F.select,
2929
2929
  value: r,
2930
- options: yn(M.val),
2931
- location: J
2930
+ options: gn(R.val),
2931
+ location: ee
2932
2932
  },
2933
2933
  err: null
2934
2934
  } : {
2935
2935
  val: {
2936
2936
  type: F.plural,
2937
2937
  value: r,
2938
- options: yn(M.val),
2939
- offset: G,
2938
+ options: gn(R.val),
2939
+ offset: D,
2940
2940
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2941
- location: J
2941
+ location: ee
2942
2942
  },
2943
2943
  err: null
2944
2944
  };
2945
2945
  }
2946
2946
  default:
2947
- return this.error(A.INVALID_ARGUMENT_TYPE, R(u, c));
2947
+ return this.error(O.INVALID_ARGUMENT_TYPE, L(u, c));
2948
2948
  }
2949
2949
  }, e.prototype.tryParseArgumentClose = function(t) {
2950
- return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, R(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2950
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2951
2951
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2952
2952
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2953
2953
  var r = this.char();
@@ -2956,7 +2956,7 @@ var Ui = (
2956
2956
  this.bump();
2957
2957
  var i = this.clonePosition();
2958
2958
  if (!this.bumpUntil("'"))
2959
- return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, R(i, this.clonePosition()));
2959
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2960
2960
  this.bump();
2961
2961
  break;
2962
2962
  }
@@ -2986,16 +2986,16 @@ var Ui = (
2986
2986
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2987
2987
  var r = [];
2988
2988
  try {
2989
- r = vi(t);
2989
+ r = gi(t);
2990
2990
  } catch (i) {
2991
- return this.error(A.INVALID_NUMBER_SKELETON, n);
2991
+ return this.error(O.INVALID_NUMBER_SKELETON, n);
2992
2992
  }
2993
2993
  return {
2994
2994
  val: {
2995
2995
  type: $e.number,
2996
2996
  tokens: r,
2997
2997
  location: n,
2998
- parsedOptions: this.shouldParseSkeletons ? Ti(r) : {}
2998
+ parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
2999
2999
  },
3000
3000
  err: null
3001
3001
  };
@@ -3004,34 +3004,34 @@ var Ui = (
3004
3004
  if (l.length === 0) {
3005
3005
  var g = this.clonePosition();
3006
3006
  if (n !== "select" && this.bumpIf("=")) {
3007
- var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3008
- if (p.err)
3009
- return p;
3010
- f = R(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3007
+ var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
3008
+ if (b.err)
3009
+ return b;
3010
+ f = L(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3011
3011
  } else
3012
3012
  break;
3013
3013
  }
3014
3014
  if (c.has(l))
3015
- return this.error(n === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3015
+ return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3016
3016
  l === "other" && (u = !0), this.bumpSpace();
3017
- var y = this.clonePosition();
3017
+ var x = this.clonePosition();
3018
3018
  if (!this.bumpIf("{"))
3019
- return this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, R(this.clonePosition(), this.clonePosition()));
3020
- var E = this.parseMessage(t + 1, n, r);
3021
- if (E.err)
3022
- return E;
3023
- var N = this.tryParseArgumentClose(y);
3024
- if (N.err)
3025
- return N;
3019
+ return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3020
+ var _ = this.parseMessage(t + 1, n, r);
3021
+ if (_.err)
3022
+ return _;
3023
+ var P = this.tryParseArgumentClose(x);
3024
+ if (P.err)
3025
+ return P;
3026
3026
  s.push([
3027
3027
  l,
3028
3028
  {
3029
- value: E.val,
3030
- location: R(y, this.clonePosition())
3029
+ value: _.val,
3030
+ location: L(x, this.clonePosition())
3031
3031
  }
3032
3032
  ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3033
3033
  }
3034
- return s.length === 0 ? this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, R(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(A.MISSING_OTHER_CLAUSE, R(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3034
+ return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(O.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3035
3035
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3036
3036
  var r = 1, i = this.clonePosition();
3037
3037
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3042,8 +3042,8 @@ var Ui = (
3042
3042
  else
3043
3043
  break;
3044
3044
  }
3045
- var c = R(i, this.clonePosition());
3046
- return o ? (u *= r, Pi(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
3045
+ var c = L(i, this.clonePosition());
3046
+ return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
3047
3047
  }, e.prototype.offset = function() {
3048
3048
  return this.position.offset;
3049
3049
  }, e.prototype.isEOF = function() {
@@ -3058,7 +3058,7 @@ var Ui = (
3058
3058
  var t = this.position.offset;
3059
3059
  if (t >= this.message.length)
3060
3060
  throw Error("out of bound");
3061
- var n = Yn(this.message, t);
3061
+ var n = Qn(this.message, t);
3062
3062
  if (n === void 0)
3063
3063
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3064
3064
  return n;
@@ -3077,7 +3077,7 @@ var Ui = (
3077
3077
  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);
3078
3078
  }
3079
3079
  }, e.prototype.bumpIf = function(t) {
3080
- if (bn(this.message, t, this.offset())) {
3080
+ if (mn(this.message, t, this.offset())) {
3081
3081
  for (var n = 0; n < t.length; n++)
3082
3082
  this.bump();
3083
3083
  return !0;
@@ -3099,7 +3099,7 @@ var Ui = (
3099
3099
  break;
3100
3100
  }
3101
3101
  }, e.prototype.bumpSpace = function() {
3102
- for (; !this.isEOF() && er(this.char()); )
3102
+ for (; !this.isEOF() && Yn(this.char()); )
3103
3103
  this.bump();
3104
3104
  }, e.prototype.peek = function() {
3105
3105
  if (this.isEOF())
@@ -3109,47 +3109,47 @@ var Ui = (
3109
3109
  }, e;
3110
3110
  }()
3111
3111
  );
3112
- function Yt(e) {
3112
+ function Jt(e) {
3113
3113
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3114
3114
  }
3115
- function Gi(e) {
3116
- return Yt(e) || e === 47;
3115
+ function Di(e) {
3116
+ return Jt(e) || e === 47;
3117
3117
  }
3118
- function $i(e) {
3118
+ function Fi(e) {
3119
3119
  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;
3120
3120
  }
3121
- function er(e) {
3121
+ function Yn(e) {
3122
3122
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3123
3123
  }
3124
- function ji(e) {
3124
+ function Ui(e) {
3125
3125
  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;
3126
3126
  }
3127
- function Kt(e) {
3127
+ function Yt(e) {
3128
3128
  e.forEach(function(t) {
3129
- if (delete t.location, Vn(t) || Xn(t))
3129
+ if (delete t.location, jn(t) || kn(t))
3130
3130
  for (var n in t.options)
3131
- delete t.options[n].location, Kt(t.options[n].value);
3131
+ delete t.options[n].location, Yt(t.options[n].value);
3132
3132
  else
3133
- $n(t) && Wn(t.style) || (jn(t) || kn(t)) && Zt(t.style) ? delete t.style.location : zn(t) && Kt(t.children);
3133
+ Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
3134
3134
  });
3135
3135
  }
3136
- function ki(e, t) {
3137
- t === void 0 && (t = {}), t = Et({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3138
- var n = new Ui(e, t).parse();
3136
+ function Gi(e, t) {
3137
+ t === void 0 && (t = {}), t = gt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3138
+ var n = new Ii(e, t).parse();
3139
3139
  if (n.err) {
3140
- var r = SyntaxError(A[n.err.kind]);
3140
+ var r = SyntaxError(O[n.err.kind]);
3141
3141
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3142
3142
  }
3143
- return t != null && t.captureLocation || Kt(n.val), n.val;
3143
+ return t != null && t.captureLocation || Yt(n.val), n.val;
3144
3144
  }
3145
3145
  var je;
3146
3146
  (function(e) {
3147
3147
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3148
3148
  })(je || (je = {}));
3149
- var St = (
3149
+ var xt = (
3150
3150
  /** @class */
3151
3151
  function(e) {
3152
- Bt(t, e);
3152
+ Et(t, e);
3153
3153
  function t(n, r, i) {
3154
3154
  var o = e.call(this, n) || this;
3155
3155
  return o.code = r, o.originalMessage = i, o;
@@ -3158,155 +3158,155 @@ var St = (
3158
3158
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3159
3159
  }, t;
3160
3160
  }(Error)
3161
- ), En = (
3161
+ ), yn = (
3162
3162
  /** @class */
3163
3163
  function(e) {
3164
- Bt(t, e);
3164
+ Et(t, e);
3165
3165
  function t(n, r, i, o) {
3166
3166
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
3167
3167
  }
3168
3168
  return t;
3169
- }(St)
3170
- ), Vi = (
3169
+ }(xt)
3170
+ ), $i = (
3171
3171
  /** @class */
3172
3172
  function(e) {
3173
- Bt(t, e);
3173
+ Et(t, e);
3174
3174
  function t(n, r, i) {
3175
3175
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3176
3176
  }
3177
3177
  return t;
3178
- }(St)
3179
- ), Xi = (
3178
+ }(xt)
3179
+ ), ji = (
3180
3180
  /** @class */
3181
3181
  function(e) {
3182
- Bt(t, e);
3182
+ Et(t, e);
3183
3183
  function t(n, r) {
3184
3184
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3185
3185
  }
3186
3186
  return t;
3187
- }(St)
3188
- ), te;
3187
+ }(xt)
3188
+ ), K;
3189
3189
  (function(e) {
3190
3190
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3191
- })(te || (te = {}));
3192
- function zi(e) {
3191
+ })(K || (K = {}));
3192
+ function ki(e) {
3193
3193
  return e.length < 2 ? e : e.reduce(function(t, n) {
3194
3194
  var r = t[t.length - 1];
3195
- return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3195
+ return !r || r.type !== K.literal || n.type !== K.literal ? t.push(n) : r.value += n.value, t;
3196
3196
  }, []);
3197
3197
  }
3198
- function Wi(e) {
3198
+ function Vi(e) {
3199
3199
  return typeof e == "function";
3200
3200
  }
3201
- function mt(e, t, n, r, i, o, u) {
3202
- if (e.length === 1 && dn(e[0]))
3201
+ function ft(e, t, n, r, i, o, u) {
3202
+ if (e.length === 1 && cn(e[0]))
3203
3203
  return [
3204
3204
  {
3205
- type: te.literal,
3205
+ type: K.literal,
3206
3206
  value: e[0].value
3207
3207
  }
3208
3208
  ];
3209
3209
  for (var s = [], c = 0, l = e; c < l.length; c++) {
3210
3210
  var f = l[c];
3211
- if (dn(f)) {
3211
+ if (cn(f)) {
3212
3212
  s.push({
3213
- type: te.literal,
3213
+ type: K.literal,
3214
3214
  value: f.value
3215
3215
  });
3216
3216
  continue;
3217
3217
  }
3218
- if (mi(f)) {
3218
+ if (fi(f)) {
3219
3219
  typeof o == "number" && s.push({
3220
- type: te.literal,
3220
+ type: K.literal,
3221
3221
  value: n.getNumberFormat(t).format(o)
3222
3222
  });
3223
3223
  continue;
3224
3224
  }
3225
3225
  var g = f.value;
3226
3226
  if (!(i && g in i))
3227
- throw new Xi(g, u);
3228
- var p = i[g];
3229
- if (pi(f)) {
3230
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
3231
- type: typeof p == "string" ? te.literal : te.object,
3232
- value: p
3227
+ throw new ji(g, u);
3228
+ var b = i[g];
3229
+ if (ci(f)) {
3230
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3231
+ type: typeof b == "string" ? K.literal : K.object,
3232
+ value: b
3233
3233
  });
3234
3234
  continue;
3235
3235
  }
3236
- if (jn(f)) {
3237
- var y = typeof f.style == "string" ? r.date[f.style] : Zt(f.style) ? f.style.parsedOptions : void 0;
3236
+ if (Gn(f)) {
3237
+ var x = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3238
3238
  s.push({
3239
- type: te.literal,
3240
- value: n.getDateTimeFormat(t, y).format(p)
3239
+ type: K.literal,
3240
+ value: n.getDateTimeFormat(t, x).format(b)
3241
3241
  });
3242
3242
  continue;
3243
3243
  }
3244
- if (kn(f)) {
3245
- var y = typeof f.style == "string" ? r.time[f.style] : Zt(f.style) ? f.style.parsedOptions : r.time.medium;
3244
+ if ($n(f)) {
3245
+ var x = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
3246
3246
  s.push({
3247
- type: te.literal,
3248
- value: n.getDateTimeFormat(t, y).format(p)
3247
+ type: K.literal,
3248
+ value: n.getDateTimeFormat(t, x).format(b)
3249
3249
  });
3250
3250
  continue;
3251
3251
  }
3252
- if ($n(f)) {
3253
- var y = typeof f.style == "string" ? r.number[f.style] : Wn(f.style) ? f.style.parsedOptions : void 0;
3254
- y && y.scale && (p = p * (y.scale || 1)), s.push({
3255
- type: te.literal,
3256
- value: n.getNumberFormat(t, y).format(p)
3252
+ if (Un(f)) {
3253
+ var x = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
3254
+ x && x.scale && (b = b * (x.scale || 1)), s.push({
3255
+ type: K.literal,
3256
+ value: n.getNumberFormat(t, x).format(b)
3257
3257
  });
3258
3258
  continue;
3259
3259
  }
3260
- if (zn(f)) {
3261
- var E = f.children, N = f.value, C = i[N];
3262
- if (!Wi(C))
3263
- throw new Vi(N, "function", u);
3264
- var U = mt(E, t, n, r, i, o), X = C(U.map(function(G) {
3265
- return G.value;
3260
+ if (Vn(f)) {
3261
+ var _ = f.children, P = f.value, k = i[P];
3262
+ if (!Vi(k))
3263
+ throw new $i(P, "function", u);
3264
+ var W = ft(_, t, n, r, i, o), $ = k(W.map(function(D) {
3265
+ return D.value;
3266
3266
  }));
3267
- Array.isArray(X) || (X = [X]), s.push.apply(s, X.map(function(G) {
3267
+ Array.isArray($) || ($ = [$]), s.push.apply(s, $.map(function(D) {
3268
3268
  return {
3269
- type: typeof G == "string" ? te.literal : te.object,
3270
- value: G
3269
+ type: typeof D == "string" ? K.literal : K.object,
3270
+ value: D
3271
3271
  };
3272
3272
  }));
3273
3273
  }
3274
- if (Vn(f)) {
3275
- var T = f.options[p] || f.options.other;
3276
- if (!T)
3277
- throw new En(f.value, p, Object.keys(f.options), u);
3278
- s.push.apply(s, mt(T.value, t, n, r, i));
3274
+ if (jn(f)) {
3275
+ var B = f.options[b] || f.options.other;
3276
+ if (!B)
3277
+ throw new yn(f.value, b, Object.keys(f.options), u);
3278
+ s.push.apply(s, ft(B.value, t, n, r, i));
3279
3279
  continue;
3280
3280
  }
3281
- if (Xn(f)) {
3282
- var T = f.options["=".concat(p)];
3283
- if (!T) {
3281
+ if (kn(f)) {
3282
+ var B = f.options["=".concat(b)];
3283
+ if (!B) {
3284
3284
  if (!Intl.PluralRules)
3285
- throw new St(`Intl.PluralRules is not available in this environment.
3285
+ throw new xt(`Intl.PluralRules is not available in this environment.
3286
3286
  Try polyfilling it using "@formatjs/intl-pluralrules"
3287
3287
  `, je.MISSING_INTL_API, u);
3288
- var S = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3289
- T = f.options[S] || f.options.other;
3288
+ var w = n.getPluralRules(t, { type: f.pluralType }).select(b - (f.offset || 0));
3289
+ B = f.options[w] || f.options.other;
3290
3290
  }
3291
- if (!T)
3292
- throw new En(f.value, p, Object.keys(f.options), u);
3293
- s.push.apply(s, mt(T.value, t, n, r, i, p - (f.offset || 0)));
3291
+ if (!B)
3292
+ throw new yn(f.value, b, Object.keys(f.options), u);
3293
+ s.push.apply(s, ft(B.value, t, n, r, i, b - (f.offset || 0)));
3294
3294
  continue;
3295
3295
  }
3296
3296
  }
3297
- return zi(s);
3297
+ return ki(s);
3298
3298
  }
3299
- function Zi(e, t) {
3300
- return t ? ve(ve(ve({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3301
- return n[r] = ve(ve({}, e[r]), t[r] || {}), n;
3299
+ function Xi(e, t) {
3300
+ return t ? fe(fe(fe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3301
+ return n[r] = fe(fe({}, e[r]), t[r] || {}), n;
3302
3302
  }, {})) : e;
3303
3303
  }
3304
- function qi(e, t) {
3304
+ function zi(e, t) {
3305
3305
  return t ? Object.keys(e).reduce(function(n, r) {
3306
- return n[r] = Zi(e[r], t[r]), n;
3307
- }, ve({}, e)) : e;
3306
+ return n[r] = Xi(e[r], t[r]), n;
3307
+ }, fe({}, e)) : e;
3308
3308
  }
3309
- function jt(e) {
3309
+ function $t(e) {
3310
3310
  return {
3311
3311
  create: function() {
3312
3312
  return {
@@ -3320,39 +3320,39 @@ function jt(e) {
3320
3320
  }
3321
3321
  };
3322
3322
  }
3323
- function Qi(e) {
3323
+ function Wi(e) {
3324
3324
  return e === void 0 && (e = {
3325
3325
  number: {},
3326
3326
  dateTime: {},
3327
3327
  pluralRules: {}
3328
3328
  }), {
3329
- getNumberFormat: Ut(function() {
3329
+ getNumberFormat: Ft(function() {
3330
3330
  for (var t, n = [], r = 0; r < arguments.length; r++)
3331
3331
  n[r] = arguments[r];
3332
- return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], n, !1)))();
3332
+ return new ((t = Intl.NumberFormat).bind.apply(t, Dt([void 0], n, !1)))();
3333
3333
  }, {
3334
- cache: jt(e.number),
3335
- strategy: Gt.variadic
3334
+ cache: $t(e.number),
3335
+ strategy: Ut.variadic
3336
3336
  }),
3337
- getDateTimeFormat: Ut(function() {
3337
+ getDateTimeFormat: Ft(function() {
3338
3338
  for (var t, n = [], r = 0; r < arguments.length; r++)
3339
3339
  n[r] = arguments[r];
3340
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], n, !1)))();
3340
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Dt([void 0], n, !1)))();
3341
3341
  }, {
3342
- cache: jt(e.dateTime),
3343
- strategy: Gt.variadic
3342
+ cache: $t(e.dateTime),
3343
+ strategy: Ut.variadic
3344
3344
  }),
3345
- getPluralRules: Ut(function() {
3345
+ getPluralRules: Ft(function() {
3346
3346
  for (var t, n = [], r = 0; r < arguments.length; r++)
3347
3347
  n[r] = arguments[r];
3348
- return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], n, !1)))();
3348
+ return new ((t = Intl.PluralRules).bind.apply(t, Dt([void 0], n, !1)))();
3349
3349
  }, {
3350
- cache: jt(e.pluralRules),
3351
- strategy: Gt.variadic
3350
+ cache: $t(e.pluralRules),
3351
+ strategy: Ut.variadic
3352
3352
  })
3353
3353
  };
3354
3354
  }
3355
- var Ji = (
3355
+ var Zi = (
3356
3356
  /** @class */
3357
3357
  function() {
3358
3358
  function e(t, n, r, i) {
@@ -3366,12 +3366,12 @@ var Ji = (
3366
3366
  var l = o.formatToParts(c);
3367
3367
  if (l.length === 1)
3368
3368
  return l[0].value;
3369
- var f = l.reduce(function(g, p) {
3370
- return !g.length || p.type !== te.literal || typeof g[g.length - 1] != "string" ? g.push(p.value) : g[g.length - 1] += p.value, g;
3369
+ var f = l.reduce(function(g, b) {
3370
+ return !g.length || b.type !== K.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3371
3371
  }, []);
3372
3372
  return f.length <= 1 ? f[0] || "" : f;
3373
3373
  }, this.formatToParts = function(c) {
3374
- return mt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3374
+ return ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3375
3375
  }, this.resolvedOptions = function() {
3376
3376
  var c;
3377
3377
  return {
@@ -3384,13 +3384,13 @@ var Ji = (
3384
3384
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3385
3385
  var u = i || {};
3386
3386
  u.formatters;
3387
- var s = ai(u, ["formatters"]);
3388
- this.ast = e.__parse(t, ve(ve({}, s), { locale: this.resolvedLocale }));
3387
+ var s = ri(u, ["formatters"]);
3388
+ this.ast = e.__parse(t, fe(fe({}, s), { locale: this.resolvedLocale }));
3389
3389
  } else
3390
3390
  this.ast = t;
3391
3391
  if (!Array.isArray(this.ast))
3392
3392
  throw new TypeError("A message must be provided as a String or AST.");
3393
- this.formats = qi(e.formats, r), this.formatters = i && i.formatters || Qi(this.formatterCache);
3393
+ this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3394
3394
  }
3395
3395
  return Object.defineProperty(e, "defaultLocale", {
3396
3396
  get: function() {
@@ -3403,7 +3403,7 @@ var Ji = (
3403
3403
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3404
3404
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3405
3405
  }
3406
- }, e.__parse = ki, e.formats = {
3406
+ }, e.__parse = Gi, e.formats = {
3407
3407
  number: {
3408
3408
  integer: {
3409
3409
  maximumFractionDigits: 0
@@ -3464,7 +3464,7 @@ var Ji = (
3464
3464
  }, e;
3465
3465
  }()
3466
3466
  );
3467
- function Yi(e, t) {
3467
+ function qi(e, t) {
3468
3468
  if (t == null)
3469
3469
  return;
3470
3470
  if (t in e)
@@ -3485,92 +3485,92 @@ function Yi(e, t) {
3485
3485
  r = void 0;
3486
3486
  return r;
3487
3487
  }
3488
- const He = {}, Ki = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), tr = (e, t) => {
3488
+ const Ae = {}, Qi = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), Kn = (e, t) => {
3489
3489
  if (t == null)
3490
3490
  return;
3491
- if (t in He && e in He[t])
3492
- return He[t][e];
3493
- const n = wt(t);
3491
+ if (t in Ae && e in Ae[t])
3492
+ return Ae[t][e];
3493
+ const n = _t(t);
3494
3494
  for (let r = 0; r < n.length; r++) {
3495
- const i = n[r], o = to(i, e);
3495
+ const i = n[r], o = Yi(i, e);
3496
3496
  if (o)
3497
- return Ki(e, t, o);
3497
+ return Qi(e, t, o);
3498
3498
  }
3499
3499
  };
3500
- let on;
3501
- const ot = Tt({});
3502
- function eo(e) {
3503
- return on[e] || null;
3500
+ let rn;
3501
+ const ot = vt({});
3502
+ function Ji(e) {
3503
+ return rn[e] || null;
3504
3504
  }
3505
- function nr(e) {
3506
- return e in on;
3505
+ function er(e) {
3506
+ return e in rn;
3507
3507
  }
3508
- function to(e, t) {
3509
- if (!nr(e))
3508
+ function Yi(e, t) {
3509
+ if (!er(e))
3510
3510
  return null;
3511
- const n = eo(e);
3512
- return Yi(n, t);
3511
+ const n = Ji(e);
3512
+ return qi(n, t);
3513
3513
  }
3514
- function no(e) {
3514
+ function Ki(e) {
3515
3515
  if (e == null)
3516
3516
  return;
3517
- const t = wt(e);
3517
+ const t = _t(e);
3518
3518
  for (let n = 0; n < t.length; n++) {
3519
3519
  const r = t[n];
3520
- if (nr(r))
3520
+ if (er(r))
3521
3521
  return r;
3522
3522
  }
3523
3523
  }
3524
- function rr(e, ...t) {
3525
- delete He[e], ot.update((n) => (n[e] = oi.all([n[e] || {}, ...t]), n));
3524
+ function tr(e, ...t) {
3525
+ delete Ae[e], ot.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3526
3526
  }
3527
3527
  Xe(
3528
3528
  [ot],
3529
3529
  ([e]) => Object.keys(e)
3530
3530
  );
3531
- ot.subscribe((e) => on = e);
3532
- const gt = {};
3533
- function ro(e, t) {
3534
- gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3531
+ ot.subscribe((e) => rn = e);
3532
+ const dt = {};
3533
+ function eo(e, t) {
3534
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3535
3535
  }
3536
- function ir(e) {
3537
- return gt[e];
3536
+ function nr(e) {
3537
+ return dt[e];
3538
3538
  }
3539
- function io(e) {
3540
- return wt(e).map((t) => {
3541
- const n = ir(t);
3539
+ function to(e) {
3540
+ return _t(e).map((t) => {
3541
+ const n = nr(t);
3542
3542
  return [t, n ? [...n] : []];
3543
3543
  }).filter(([, t]) => t.length > 0);
3544
3544
  }
3545
- function en(e) {
3546
- return e == null ? !1 : wt(e).some(
3545
+ function Kt(e) {
3546
+ return e == null ? !1 : _t(e).some(
3547
3547
  (t) => {
3548
3548
  var n;
3549
- return (n = ir(t)) == null ? void 0 : n.size;
3549
+ return (n = nr(t)) == null ? void 0 : n.size;
3550
3550
  }
3551
3551
  );
3552
3552
  }
3553
- function oo(e, t) {
3553
+ function no(e, t) {
3554
3554
  return Promise.all(
3555
- t.map((r) => (ro(e, r), r().then((i) => i.default || i)))
3556
- ).then((r) => rr(e, ...r));
3555
+ t.map((r) => (eo(e, r), r().then((i) => i.default || i)))
3556
+ ).then((r) => tr(e, ...r));
3557
3557
  }
3558
3558
  const et = {};
3559
- function or(e) {
3560
- if (!en(e))
3559
+ function rr(e) {
3560
+ if (!Kt(e))
3561
3561
  return e in et ? et[e] : Promise.resolve();
3562
- const t = io(e);
3562
+ const t = to(e);
3563
3563
  return et[e] = Promise.all(
3564
3564
  t.map(
3565
- ([n, r]) => oo(n, r)
3565
+ ([n, r]) => no(n, r)
3566
3566
  )
3567
3567
  ).then(() => {
3568
- if (en(e))
3569
- return or(e);
3568
+ if (Kt(e))
3569
+ return rr(e);
3570
3570
  delete et[e];
3571
3571
  }), et[e];
3572
3572
  }
3573
- const ao = {
3573
+ const ro = {
3574
3574
  number: {
3575
3575
  scientific: { notation: "scientific" },
3576
3576
  engineering: { notation: "engineering" },
@@ -3599,78 +3599,78 @@ const ao = {
3599
3599
  timeZoneName: "short"
3600
3600
  }
3601
3601
  }
3602
- }, so = {
3602
+ }, io = {
3603
3603
  fallbackLocale: null,
3604
3604
  loadingDelay: 200,
3605
- formats: ao,
3605
+ formats: ro,
3606
3606
  warnOnMissingMessages: !0,
3607
3607
  handleMissingMessage: void 0,
3608
3608
  ignoreTag: !0
3609
- }, uo = so;
3609
+ }, oo = io;
3610
3610
  function ke() {
3611
- return uo;
3611
+ return oo;
3612
3612
  }
3613
- const kt = Tt(!1);
3614
- var lo = Object.defineProperty, ho = Object.defineProperties, co = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, fo = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, mo = (e, t) => {
3613
+ const jt = vt(!1);
3614
+ var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
3615
3615
  for (var n in t || (t = {}))
3616
- fo.call(t, n) && _n(e, n, t[n]);
3617
- if (xn)
3618
- for (var n of xn(t))
3619
- po.call(t, n) && _n(e, n, t[n]);
3616
+ lo.call(t, n) && En(e, n, t[n]);
3617
+ if (vn)
3618
+ for (var n of vn(t))
3619
+ ho.call(t, n) && En(e, n, t[n]);
3620
3620
  return e;
3621
- }, go = (e, t) => ho(e, co(t));
3622
- let tn;
3623
- const xt = Tt(null);
3624
- function Tn(e) {
3621
+ }, fo = (e, t) => so(e, uo(t));
3622
+ let en;
3623
+ const bt = vt(null);
3624
+ function xn(e) {
3625
3625
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3626
3626
  }
3627
- function wt(e, t = ke().fallbackLocale) {
3628
- const n = Tn(e);
3629
- return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3627
+ function _t(e, t = ke().fallbackLocale) {
3628
+ const n = xn(e);
3629
+ return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
3630
3630
  }
3631
- function Re() {
3632
- return tn != null ? tn : void 0;
3631
+ function Le() {
3632
+ return en != null ? en : void 0;
3633
3633
  }
3634
- xt.subscribe((e) => {
3635
- tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3634
+ bt.subscribe((e) => {
3635
+ en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3636
3636
  });
3637
- const bo = (e) => {
3638
- if (e && no(e) && en(e)) {
3637
+ const po = (e) => {
3638
+ if (e && Ki(e) && Kt(e)) {
3639
3639
  const { loadingDelay: t } = ke();
3640
3640
  let n;
3641
- return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
3642
- () => kt.set(!0),
3641
+ return typeof window != "undefined" && Le() != null && t ? n = window.setTimeout(
3642
+ () => jt.set(!0),
3643
3643
  t
3644
- ) : kt.set(!0), or(e).then(() => {
3645
- xt.set(e);
3644
+ ) : jt.set(!0), rr(e).then(() => {
3645
+ bt.set(e);
3646
3646
  }).finally(() => {
3647
- clearTimeout(n), kt.set(!1);
3647
+ clearTimeout(n), jt.set(!1);
3648
3648
  });
3649
3649
  }
3650
- return xt.set(e);
3651
- }, ze = go(mo({}, xt), {
3652
- set: bo
3653
- }), At = (e) => {
3650
+ return bt.set(e);
3651
+ }, ze = fo(co({}, bt), {
3652
+ set: po
3653
+ }), Tt = (e) => {
3654
3654
  const t = /* @__PURE__ */ Object.create(null);
3655
3655
  return (r) => {
3656
3656
  const i = JSON.stringify(r);
3657
3657
  return i in t ? t[i] : t[i] = e(r);
3658
3658
  };
3659
3659
  };
3660
- var yo = Object.defineProperty, _t = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3660
+ var mo = Object.defineProperty, yt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3661
3661
  for (var n in t || (t = {}))
3662
- ar.call(t, n) && Bn(e, n, t[n]);
3663
- if (_t)
3664
- for (var n of _t(t))
3665
- sr.call(t, n) && Bn(e, n, t[n]);
3662
+ ir.call(t, n) && _n(e, n, t[n]);
3663
+ if (yt)
3664
+ for (var n of yt(t))
3665
+ or.call(t, n) && _n(e, n, t[n]);
3666
3666
  return e;
3667
3667
  }, We = (e, t) => {
3668
3668
  var n = {};
3669
3669
  for (var r in e)
3670
- ar.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3671
- if (e != null && _t)
3672
- for (var r of _t(e))
3673
- t.indexOf(r) < 0 && sr.call(e, r) && (n[r] = e[r]);
3670
+ ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3671
+ if (e != null && yt)
3672
+ for (var r of yt(e))
3673
+ t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
3674
3674
  return n;
3675
3675
  };
3676
3676
  const it = (e, t) => {
@@ -3678,21 +3678,21 @@ const it = (e, t) => {
3678
3678
  if (e in n && t in n[e])
3679
3679
  return n[e][t];
3680
3680
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3681
- }, vo = At(
3681
+ }, go = Tt(
3682
3682
  (e) => {
3683
3683
  var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3684
3684
  if (n == null)
3685
3685
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3686
3686
  return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
3687
3687
  }
3688
- ), Eo = At(
3688
+ ), bo = Tt(
3689
3689
  (e) => {
3690
3690
  var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3691
3691
  if (n == null)
3692
3692
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3693
3693
  return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
3694
3694
  }
3695
- ), xo = At(
3695
+ ), yo = Tt(
3696
3696
  (e) => {
3697
3697
  var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3698
3698
  if (n == null)
@@ -3701,46 +3701,46 @@ const it = (e, t) => {
3701
3701
  );
3702
3702
  return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
3703
3703
  }
3704
- ), _o = (e = {}) => {
3704
+ ), vo = (e = {}) => {
3705
3705
  var t = e, {
3706
- locale: n = Re()
3706
+ locale: n = Le()
3707
3707
  } = t, r = We(t, [
3708
3708
  "locale"
3709
3709
  ]);
3710
- return vo(an({ locale: n }, r));
3711
- }, To = (e = {}) => {
3710
+ return go(on({ locale: n }, r));
3711
+ }, Eo = (e = {}) => {
3712
3712
  var t = e, {
3713
- locale: n = Re()
3713
+ locale: n = Le()
3714
3714
  } = t, r = We(t, [
3715
3715
  "locale"
3716
3716
  ]);
3717
- return Eo(an({ locale: n }, r));
3718
- }, Bo = (e = {}) => {
3717
+ return bo(on({ locale: n }, r));
3718
+ }, xo = (e = {}) => {
3719
3719
  var t = e, {
3720
- locale: n = Re()
3720
+ locale: n = Le()
3721
3721
  } = t, r = We(t, [
3722
3722
  "locale"
3723
3723
  ]);
3724
- return xo(an({ locale: n }, r));
3725
- }, So = At(
3724
+ return yo(on({ locale: n }, r));
3725
+ }, _o = Tt(
3726
3726
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3727
- (e, t = Re()) => new Ji(e, t, ke().formats, {
3727
+ (e, t = Le()) => new Zi(e, t, ke().formats, {
3728
3728
  ignoreTag: ke().ignoreTag
3729
3729
  })
3730
- ), wo = (e, t = {}) => {
3730
+ ), To = (e, t = {}) => {
3731
3731
  var n, r, i, o;
3732
3732
  let u = t;
3733
3733
  typeof e == "object" && (u = e, e = u.id);
3734
3734
  const {
3735
3735
  values: s,
3736
- locale: c = Re(),
3736
+ locale: c = Le(),
3737
3737
  default: l
3738
3738
  } = u;
3739
3739
  if (c == null)
3740
3740
  throw new Error(
3741
3741
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3742
3742
  );
3743
- let f = tr(e, c);
3743
+ let f = Kn(e, c);
3744
3744
  if (!f)
3745
3745
  f = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3746
3746
  else if (typeof f != "string")
@@ -3751,26 +3751,26 @@ const it = (e, t) => {
3751
3751
  return f;
3752
3752
  let g = f;
3753
3753
  try {
3754
- g = So(f, c).format(s);
3755
- } catch (p) {
3756
- p instanceof Error && console.warn(
3754
+ g = _o(f, c).format(s);
3755
+ } catch (b) {
3756
+ b instanceof Error && console.warn(
3757
3757
  `[svelte-i18n] Message "${e}" has syntax error:`,
3758
- p.message
3758
+ b.message
3759
3759
  );
3760
3760
  }
3761
3761
  return g;
3762
- }, Ao = (e, t) => Bo(t).format(e), Co = (e, t) => To(t).format(e), Ho = (e, t) => _o(t).format(e), Oo = (e, t = Re()) => tr(e, t), Ro = Xe([ze, ot], () => wo);
3763
- Xe([ze], () => Ao);
3764
- Xe([ze], () => Co);
3765
- Xe([ze], () => Ho);
3766
- Xe([ze, ot], () => Oo);
3767
- function Sn(e, t) {
3768
- rr(e, t);
3769
- }
3770
- function Lo(e) {
3762
+ }, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Le()) => Kn(e, t), Co = Xe([ze, ot], () => To);
3763
+ Xe([ze], () => Bo);
3764
+ Xe([ze], () => So);
3765
+ Xe([ze], () => wo);
3766
+ Xe([ze, ot], () => Ao);
3767
+ function Tn(e, t) {
3768
+ tr(e, t);
3769
+ }
3770
+ function Ho(e) {
3771
3771
  ze.set(e);
3772
3772
  }
3773
- const wn = {
3773
+ const Bn = {
3774
3774
  en: {
3775
3775
  Title: "Your Balance",
3776
3776
  Total: "Total Balance",
@@ -3970,7 +3970,7 @@ const wn = {
3970
3970
  Loading: "Loading ..."
3971
3971
  }
3972
3972
  };
3973
- var nn = { exports: {} };
3973
+ var tn = { exports: {} };
3974
3974
  /** @license
3975
3975
  * eventsource.js
3976
3976
  * Available under MIT License (MIT)
@@ -3978,35 +3978,35 @@ var nn = { exports: {} };
3978
3978
  */
3979
3979
  (function(e, t) {
3980
3980
  (function(n) {
3981
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, N = n.AbortController;
3981
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, b = n.Response, x = n.TextDecoder, _ = n.TextEncoder, P = n.AbortController;
3982
3982
  if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
3983
3983
  l.readyState = "complete";
3984
3984
  }, !1)), o == null && s != null && (o = function() {
3985
3985
  return new s("Microsoft.XMLHTTP");
3986
3986
  }), Object.create == null && (Object.create = function(a) {
3987
- function d() {
3987
+ function h() {
3988
3988
  }
3989
- return d.prototype = a, new d();
3989
+ return h.prototype = a, new h();
3990
3990
  }), Date.now || (Date.now = function() {
3991
3991
  return (/* @__PURE__ */ new Date()).getTime();
3992
- }), N == null) {
3993
- var C = g;
3994
- g = function(a, d) {
3995
- var m = d.signal;
3996
- return C(a, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(h) {
3997
- var _ = h.body.getReader();
3998
- return m._reader = _, m._aborted && m._reader.cancel(), {
3999
- status: h.status,
4000
- statusText: h.statusText,
4001
- headers: h.headers,
3992
+ }), P == null) {
3993
+ var k = g;
3994
+ g = function(a, h) {
3995
+ var m = h.signal;
3996
+ return k(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(d) {
3997
+ var p = d.body.getReader();
3998
+ return m._reader = p, m._aborted && m._reader.cancel(), {
3999
+ status: d.status,
4000
+ statusText: d.statusText,
4001
+ headers: d.headers,
4002
4002
  body: {
4003
4003
  getReader: function() {
4004
- return _;
4004
+ return p;
4005
4005
  }
4006
4006
  }
4007
4007
  };
4008
4008
  });
4009
- }, N = function() {
4009
+ }, P = function() {
4010
4010
  this.signal = {
4011
4011
  _reader: null,
4012
4012
  _aborted: !1
@@ -4015,119 +4015,119 @@ var nn = { exports: {} };
4015
4015
  };
4016
4016
  };
4017
4017
  }
4018
- function U() {
4018
+ function W() {
4019
4019
  this.bitsNeeded = 0, this.codePoint = 0;
4020
4020
  }
4021
- U.prototype.decode = function(a) {
4022
- function d(I, D, B) {
4023
- if (B === 1)
4024
- return I >= 128 >> D && I << D <= 2047;
4025
- if (B === 2)
4026
- return I >= 2048 >> D && I << D <= 55295 || I >= 57344 >> D && I << D <= 65535;
4027
- if (B === 3)
4028
- return I >= 65536 >> D && I << D <= 1114111;
4021
+ W.prototype.decode = function(a) {
4022
+ function h(H, I, S) {
4023
+ if (S === 1)
4024
+ return H >= 128 >> I && H << I <= 2047;
4025
+ if (S === 2)
4026
+ return H >= 2048 >> I && H << I <= 55295 || H >= 57344 >> I && H << I <= 65535;
4027
+ if (S === 3)
4028
+ return H >= 65536 >> I && H << I <= 1114111;
4029
4029
  throw new Error();
4030
4030
  }
4031
- function m(I, D) {
4032
- if (I === 6 * 1)
4033
- return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
4034
- if (I === 6 * 2)
4035
- return D > 15 ? 3 : 2;
4036
- if (I === 6 * 3)
4031
+ function m(H, I) {
4032
+ if (H === 6 * 1)
4033
+ return I >> 6 > 15 ? 3 : I > 31 ? 2 : 1;
4034
+ if (H === 6 * 2)
4035
+ return I > 15 ? 3 : 2;
4036
+ if (H === 6 * 3)
4037
4037
  return 3;
4038
4038
  throw new Error();
4039
4039
  }
4040
- for (var h = 65533, _ = "", x = this.bitsNeeded, w = this.codePoint, $ = 0; $ < a.length; $ += 1) {
4041
- var O = a[$];
4042
- x !== 0 && (O < 128 || O > 191 || !d(w << 6 | O & 63, x - 6, m(x, w))) && (x = 0, w = h, _ += String.fromCharCode(w)), x === 0 ? (O >= 0 && O <= 127 ? (x = 0, w = O) : O >= 192 && O <= 223 ? (x = 6 * 1, w = O & 31) : O >= 224 && O <= 239 ? (x = 6 * 2, w = O & 15) : O >= 240 && O <= 247 ? (x = 6 * 3, w = O & 7) : (x = 0, w = h), x !== 0 && !d(w, x, m(x, w)) && (x = 0, w = h)) : (x -= 6, w = w << 6 | O & 63), x === 0 && (w <= 65535 ? _ += String.fromCharCode(w) : (_ += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), _ += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
4040
+ for (var d = 65533, p = "", v = this.bitsNeeded, T = this.codePoint, N = 0; N < a.length; N += 1) {
4041
+ var C = a[N];
4042
+ v !== 0 && (C < 128 || C > 191 || !h(T << 6 | C & 63, v - 6, m(v, T))) && (v = 0, T = d, p += String.fromCharCode(T)), v === 0 ? (C >= 0 && C <= 127 ? (v = 0, T = C) : C >= 192 && C <= 223 ? (v = 6 * 1, T = C & 31) : C >= 224 && C <= 239 ? (v = 6 * 2, T = C & 15) : C >= 240 && C <= 247 ? (v = 6 * 3, T = C & 7) : (v = 0, T = d), v !== 0 && !h(T, v, m(v, T)) && (v = 0, T = d)) : (v -= 6, T = T << 6 | C & 63), v === 0 && (T <= 65535 ? p += String.fromCharCode(T) : (p += String.fromCharCode(55296 + (T - 65535 - 1 >> 10)), p += String.fromCharCode(56320 + (T - 65535 - 1 & 1023))));
4043
4043
  }
4044
- return this.bitsNeeded = x, this.codePoint = w, _;
4044
+ return this.bitsNeeded = v, this.codePoint = T, p;
4045
4045
  };
4046
- var X = function() {
4046
+ var $ = function() {
4047
4047
  try {
4048
- return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
4048
+ return new x().decode(new _().encode("test"), { stream: !0 }) === "test";
4049
4049
  } catch (a) {
4050
4050
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4051
4051
  }
4052
4052
  return !1;
4053
4053
  };
4054
- (y == null || E == null || !X()) && (y = U);
4055
- var T = function() {
4054
+ (x == null || _ == null || !$()) && (x = W);
4055
+ var B = function() {
4056
4056
  };
4057
- function S(a) {
4058
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = T;
4057
+ function w(a) {
4058
+ 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;
4059
4059
  }
4060
- S.prototype.open = function(a, d) {
4060
+ w.prototype.open = function(a, h) {
4061
4061
  this._abort(!0);
4062
- var m = this, h = this._xhr, _ = 1, x = 0;
4063
- this._abort = function(B) {
4064
- m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (_ === 1 || _ === 2 || _ === 3) && (_ = 4, h.onload = T, h.onerror = T, h.onabort = T, h.onprogress = T, h.onreadystatechange = T, h.abort(), x !== 0 && (i(x), x = 0), B || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), _ = 0;
4062
+ var m = this, d = this._xhr, p = 1, v = 0;
4063
+ this._abort = function(S) {
4064
+ m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (p === 1 || p === 2 || p === 3) && (p = 4, d.onload = B, d.onerror = B, d.onabort = B, d.onprogress = B, d.onreadystatechange = B, d.abort(), v !== 0 && (i(v), v = 0), S || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), p = 0;
4065
4065
  };
4066
- var w = function() {
4067
- if (_ === 1) {
4068
- var B = 0, j = "", xe = void 0;
4069
- if ("contentType" in h)
4070
- B = 200, j = "OK", xe = h.contentType;
4066
+ var T = function() {
4067
+ if (p === 1) {
4068
+ var S = 0, U = "", be = void 0;
4069
+ if ("contentType" in d)
4070
+ S = 200, U = "OK", be = d.contentType;
4071
4071
  else
4072
4072
  try {
4073
- B = h.status, j = h.statusText, xe = h.getResponseHeader("Content-Type");
4073
+ S = d.status, U = d.statusText, be = d.getResponseHeader("Content-Type");
4074
4074
  } catch (Ye) {
4075
- B = 0, j = "", xe = void 0;
4075
+ S = 0, U = "", be = void 0;
4076
4076
  }
4077
- B !== 0 && (_ = 2, m.readyState = 2, m.status = B, m.statusText = j, m._contentType = xe, m.onreadystatechange());
4077
+ S !== 0 && (p = 2, m.readyState = 2, m.status = S, m.statusText = U, m._contentType = be, m.onreadystatechange());
4078
4078
  }
4079
- }, $ = function() {
4080
- if (w(), _ === 2 || _ === 3) {
4081
- _ = 3;
4082
- var B = "";
4079
+ }, N = function() {
4080
+ if (T(), p === 2 || p === 3) {
4081
+ p = 3;
4082
+ var S = "";
4083
4083
  try {
4084
- B = h.responseText;
4085
- } catch (j) {
4084
+ S = d.responseText;
4085
+ } catch (U) {
4086
4086
  }
4087
- m.readyState = 3, m.responseText = B, m.onprogress();
4087
+ m.readyState = 3, m.responseText = S, m.onprogress();
4088
4088
  }
4089
- }, O = function(B, j) {
4090
- if ((j == null || j.preventDefault == null) && (j = {
4091
- preventDefault: T
4092
- }), $(), _ === 1 || _ === 2 || _ === 3) {
4093
- if (_ = 4, x !== 0 && (i(x), x = 0), m.readyState = 4, B === "load")
4094
- m.onload(j);
4095
- else if (B === "error")
4096
- m.onerror(j);
4097
- else if (B === "abort")
4098
- m.onabort(j);
4089
+ }, C = function(S, U) {
4090
+ if ((U == null || U.preventDefault == null) && (U = {
4091
+ preventDefault: B
4092
+ }), N(), p === 1 || p === 2 || p === 3) {
4093
+ if (p = 4, v !== 0 && (i(v), v = 0), m.readyState = 4, S === "load")
4094
+ m.onload(U);
4095
+ else if (S === "error")
4096
+ m.onerror(U);
4097
+ else if (S === "abort")
4098
+ m.onabort(U);
4099
4099
  else
4100
4100
  throw new TypeError();
4101
4101
  m.onreadystatechange();
4102
4102
  }
4103
- }, I = function(B) {
4104
- h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && O(h.responseText === "" ? "error" : "load", B) : h.readyState === 3 ? "onprogress" in h || $() : h.readyState === 2 && w());
4105
- }, D = function() {
4106
- x = r(function() {
4107
- D();
4108
- }, 500), h.readyState === 3 && $();
4103
+ }, H = function(S) {
4104
+ d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && C(d.responseText === "" ? "error" : "load", S) : d.readyState === 3 ? "onprogress" in d || N() : d.readyState === 2 && T());
4105
+ }, I = function() {
4106
+ v = r(function() {
4107
+ I();
4108
+ }, 500), d.readyState === 3 && N();
4109
4109
  };
4110
- "onload" in h && (h.onload = function(B) {
4111
- O("load", B);
4112
- }), "onerror" in h && (h.onerror = function(B) {
4113
- O("error", B);
4114
- }), "onabort" in h && (h.onabort = function(B) {
4115
- O("abort", B);
4116
- }), "onprogress" in h && (h.onprogress = $), "onreadystatechange" in h && (h.onreadystatechange = function(B) {
4117
- I(B);
4118
- }), ("contentType" in h || !("ontimeout" in o.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, d, !0), "readyState" in h && (x = r(function() {
4119
- D();
4110
+ "onload" in d && (d.onload = function(S) {
4111
+ C("load", S);
4112
+ }), "onerror" in d && (d.onerror = function(S) {
4113
+ C("error", S);
4114
+ }), "onabort" in d && (d.onabort = function(S) {
4115
+ C("abort", S);
4116
+ }), "onprogress" in d && (d.onprogress = N), "onreadystatechange" in d && (d.onreadystatechange = function(S) {
4117
+ H(S);
4118
+ }), ("contentType" in d || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, h, !0), "readyState" in d && (v = r(function() {
4119
+ I();
4120
4120
  }, 0));
4121
- }, S.prototype.abort = function() {
4121
+ }, w.prototype.abort = function() {
4122
4122
  this._abort(!1);
4123
- }, S.prototype.getResponseHeader = function(a) {
4123
+ }, w.prototype.getResponseHeader = function(a) {
4124
4124
  return this._contentType;
4125
- }, S.prototype.setRequestHeader = function(a, d) {
4125
+ }, w.prototype.setRequestHeader = function(a, h) {
4126
4126
  var m = this._xhr;
4127
- "setRequestHeader" in m && m.setRequestHeader(a, d);
4128
- }, S.prototype.getAllResponseHeaders = function() {
4127
+ "setRequestHeader" in m && m.setRequestHeader(a, h);
4128
+ }, w.prototype.getAllResponseHeaders = function() {
4129
4129
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4130
- }, S.prototype.send = function() {
4130
+ }, w.prototype.send = function() {
4131
4131
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4132
4132
  var a = this;
4133
4133
  a._sendTimeout = r(function() {
@@ -4135,685 +4135,528 @@ var nn = { exports: {} };
4135
4135
  }, 4);
4136
4136
  return;
4137
4137
  }
4138
- var d = this._xhr;
4139
- "withCredentials" in d && (d.withCredentials = this.withCredentials);
4138
+ var h = this._xhr;
4139
+ "withCredentials" in h && (h.withCredentials = this.withCredentials);
4140
4140
  try {
4141
- d.send(void 0);
4141
+ h.send(void 0);
4142
4142
  } catch (m) {
4143
4143
  throw m;
4144
4144
  }
4145
4145
  };
4146
- function G(a) {
4147
- return a.replace(/[A-Z]/g, function(d) {
4148
- return String.fromCharCode(d.charCodeAt(0) + 32);
4146
+ function D(a) {
4147
+ return a.replace(/[A-Z]/g, function(h) {
4148
+ return String.fromCharCode(h.charCodeAt(0) + 32);
4149
4149
  });
4150
4150
  }
4151
- function M(a) {
4152
- for (var d = /* @__PURE__ */ Object.create(null), m = a.split(`\r
4153
- `), h = 0; h < m.length; h += 1) {
4154
- var _ = m[h], x = _.split(": "), w = x.shift(), $ = x.join(": ");
4155
- d[G(w)] = $;
4151
+ function R(a) {
4152
+ for (var h = /* @__PURE__ */ Object.create(null), m = a.split(`\r
4153
+ `), d = 0; d < m.length; d += 1) {
4154
+ var p = m[d], v = p.split(": "), T = v.shift(), N = v.join(": ");
4155
+ h[D(T)] = N;
4156
4156
  }
4157
- this._map = d;
4157
+ this._map = h;
4158
4158
  }
4159
- M.prototype.get = function(a) {
4160
- return this._map[G(a)];
4159
+ R.prototype.get = function(a) {
4160
+ return this._map[D(a)];
4161
4161
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4162
- function J() {
4162
+ function ee() {
4163
4163
  }
4164
- J.prototype.open = function(a, d, m, h, _, x, w) {
4165
- a.open("GET", _);
4166
- var $ = 0;
4164
+ ee.prototype.open = function(a, h, m, d, p, v, T) {
4165
+ a.open("GET", p);
4166
+ var N = 0;
4167
4167
  a.onprogress = function() {
4168
- var I = a.responseText, D = I.slice($);
4169
- $ += D.length, m(D);
4170
- }, a.onerror = function(I) {
4171
- I.preventDefault(), h(new Error("NetworkError"));
4168
+ var H = a.responseText, I = H.slice(N);
4169
+ N += I.length, m(I);
4170
+ }, a.onerror = function(H) {
4171
+ H.preventDefault(), d(new Error("NetworkError"));
4172
4172
  }, a.onload = function() {
4173
- h(null);
4173
+ d(null);
4174
4174
  }, a.onabort = function() {
4175
- h(null);
4175
+ d(null);
4176
4176
  }, a.onreadystatechange = function() {
4177
4177
  if (a.readyState === o.HEADERS_RECEIVED) {
4178
- var I = a.status, D = a.statusText, B = a.getResponseHeader("Content-Type"), j = a.getAllResponseHeaders();
4179
- d(I, D, B, new M(j));
4178
+ var H = a.status, I = a.statusText, S = a.getResponseHeader("Content-Type"), U = a.getAllResponseHeaders();
4179
+ h(H, I, S, new R(U));
4180
4180
  }
4181
- }, a.withCredentials = x;
4182
- for (var O in w)
4183
- Object.prototype.hasOwnProperty.call(w, O) && a.setRequestHeader(O, w[O]);
4181
+ }, a.withCredentials = v;
4182
+ for (var C in T)
4183
+ Object.prototype.hasOwnProperty.call(T, C) && a.setRequestHeader(C, T[C]);
4184
4184
  return a.send(), a;
4185
4185
  };
4186
- function we(a) {
4186
+ function pe(a) {
4187
4187
  this._headers = a;
4188
4188
  }
4189
- we.prototype.get = function(a) {
4189
+ pe.prototype.get = function(a) {
4190
4190
  return this._headers.get(a);
4191
4191
  };
4192
- function he() {
4192
+ function me() {
4193
4193
  }
4194
- he.prototype.open = function(a, d, m, h, _, x, w) {
4195
- var $ = null, O = new N(), I = O.signal, D = new y();
4196
- return g(_, {
4197
- headers: w,
4198
- credentials: x ? "include" : "same-origin",
4199
- signal: I,
4194
+ me.prototype.open = function(a, h, m, d, p, v, T) {
4195
+ var N = null, C = new P(), H = C.signal, I = new x();
4196
+ return g(p, {
4197
+ headers: T,
4198
+ credentials: v ? "include" : "same-origin",
4199
+ signal: H,
4200
4200
  cache: "no-store"
4201
- }).then(function(B) {
4202
- return $ = B.body.getReader(), d(B.status, B.statusText, B.headers.get("Content-Type"), new we(B.headers)), new f(function(j, xe) {
4201
+ }).then(function(S) {
4202
+ return N = S.body.getReader(), h(S.status, S.statusText, S.headers.get("Content-Type"), new pe(S.headers)), new f(function(U, be) {
4203
4203
  var Ye = function() {
4204
- $.read().then(function(re) {
4204
+ N.read().then(function(re) {
4205
4205
  if (re.done)
4206
- j(void 0);
4206
+ U(void 0);
4207
4207
  else {
4208
- var Y = D.decode(re.value, { stream: !0 });
4209
- m(Y), Ye();
4208
+ var Q = I.decode(re.value, { stream: !0 });
4209
+ m(Q), Ye();
4210
4210
  }
4211
4211
  }).catch(function(re) {
4212
- xe(re);
4212
+ be(re);
4213
4213
  });
4214
4214
  };
4215
4215
  Ye();
4216
4216
  });
4217
- }).catch(function(B) {
4218
- if (B.name !== "AbortError")
4219
- return B;
4220
- }).then(function(B) {
4221
- h(B);
4217
+ }).catch(function(S) {
4218
+ if (S.name !== "AbortError")
4219
+ return S;
4220
+ }).then(function(S) {
4221
+ d(S);
4222
4222
  }), {
4223
4223
  abort: function() {
4224
- $ != null && $.cancel(), O.abort();
4224
+ N != null && N.cancel(), C.abort();
4225
4225
  }
4226
4226
  };
4227
4227
  };
4228
- function ce() {
4228
+ function te() {
4229
4229
  this._listeners = /* @__PURE__ */ Object.create(null);
4230
4230
  }
4231
- function v(a) {
4231
+ function Te(a) {
4232
4232
  r(function() {
4233
4233
  throw a;
4234
4234
  }, 0);
4235
4235
  }
4236
- ce.prototype.dispatchEvent = function(a) {
4236
+ te.prototype.dispatchEvent = function(a) {
4237
4237
  a.target = this;
4238
- var d = this._listeners[a.type];
4239
- if (d != null)
4240
- for (var m = d.length, h = 0; h < m; h += 1) {
4241
- var _ = d[h];
4238
+ var h = this._listeners[a.type];
4239
+ if (h != null)
4240
+ for (var m = h.length, d = 0; d < m; d += 1) {
4241
+ var p = h[d];
4242
4242
  try {
4243
- typeof _.handleEvent == "function" ? _.handleEvent(a) : _.call(this, a);
4244
- } catch (x) {
4245
- v(x);
4243
+ typeof p.handleEvent == "function" ? p.handleEvent(a) : p.call(this, a);
4244
+ } catch (v) {
4245
+ Te(v);
4246
4246
  }
4247
4247
  }
4248
- }, ce.prototype.addEventListener = function(a, d) {
4248
+ }, te.prototype.addEventListener = function(a, h) {
4249
4249
  a = String(a);
4250
- var m = this._listeners, h = m[a];
4251
- h == null && (h = [], m[a] = h);
4252
- for (var _ = !1, x = 0; x < h.length; x += 1)
4253
- h[x] === d && (_ = !0);
4254
- _ || h.push(d);
4255
- }, ce.prototype.removeEventListener = function(a, d) {
4250
+ var m = this._listeners, d = m[a];
4251
+ d == null && (d = [], m[a] = d);
4252
+ for (var p = !1, v = 0; v < d.length; v += 1)
4253
+ d[v] === h && (p = !0);
4254
+ p || d.push(h);
4255
+ }, te.prototype.removeEventListener = function(a, h) {
4256
4256
  a = String(a);
4257
- var m = this._listeners, h = m[a];
4258
- if (h != null) {
4259
- for (var _ = [], x = 0; x < h.length; x += 1)
4260
- h[x] !== d && _.push(h[x]);
4261
- _.length === 0 ? delete m[a] : m[a] = _;
4257
+ var m = this._listeners, d = m[a];
4258
+ if (d != null) {
4259
+ for (var p = [], v = 0; v < d.length; v += 1)
4260
+ d[v] !== h && p.push(d[v]);
4261
+ p.length === 0 ? delete m[a] : m[a] = p;
4262
4262
  }
4263
4263
  };
4264
- function ae(a) {
4264
+ function E(a) {
4265
4265
  this.type = a, this.target = void 0;
4266
4266
  }
4267
- function at(a, d) {
4268
- ae.call(this, a), this.data = d.data, this.lastEventId = d.lastEventId;
4267
+ function Be(a, h) {
4268
+ E.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
4269
4269
  }
4270
- at.prototype = Object.create(ae.prototype);
4271
- function Le(a, d) {
4272
- ae.call(this, a), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
4270
+ Be.prototype = Object.create(E.prototype);
4271
+ function Ze(a, h) {
4272
+ E.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
4273
4273
  }
4274
- Le.prototype = Object.create(ae.prototype);
4275
- function st(a, d) {
4276
- ae.call(this, a), this.error = d.error;
4274
+ Ze.prototype = Object.create(E.prototype);
4275
+ function at(a, h) {
4276
+ E.call(this, a), this.error = h.error;
4277
4277
  }
4278
- st.prototype = Object.create(ae.prototype);
4279
- var Ze = -1, be = 0, ye = 1, Ae = 2, qe = -1, se = 0, Ne = 1, ut = 2, lt = 3, Ct = /^text\/event\-stream(;.*)?$/i, Ht = 1e3, ht = 18e6, Qe = function(a, d) {
4280
- var m = a == null ? d : parseInt(a, 10);
4281
- return m !== m && (m = d), Je(m);
4278
+ at.prototype = Object.create(E.prototype);
4279
+ var qe = -1, he = 0, Se = 1, ge = 2, Re = -1, ce = 0, Ce = 1, Qe = 2, Bt = 3, st = /^text\/event\-stream(;.*)?$/i, St = 1e3, wt = 18e6, Ne = function(a, h) {
4280
+ var m = a == null ? h : parseInt(a, 10);
4281
+ return m !== m && (m = h), Je(m);
4282
4282
  }, Je = function(a) {
4283
- return Math.min(Math.max(a, Ht), ht);
4284
- }, Ce = function(a, d, m) {
4283
+ return Math.min(Math.max(a, St), wt);
4284
+ }, we = function(a, h, m) {
4285
4285
  try {
4286
- typeof d == "function" && d.call(a, m);
4287
- } catch (h) {
4288
- v(h);
4286
+ typeof h == "function" && h.call(a, m);
4287
+ } catch (d) {
4288
+ Te(d);
4289
4289
  }
4290
4290
  };
4291
- function ne(a, d) {
4292
- ce.call(this), d = d || {}, 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, H(this, a, d);
4291
+ function ne(a, h) {
4292
+ te.call(this), h = h || {}, 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, y(this, a, h);
4293
4293
  }
4294
- function Ot() {
4294
+ function At() {
4295
4295
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4296
4296
  }
4297
- var b = g != null && p != null && "body" in p.prototype;
4298
- function H(a, d, m) {
4299
- d = String(d);
4300
- var h = !!m.withCredentials, _ = m.lastEventIdQueryParameterName || "lastEventId", x = Je(1e3), w = Qe(m.heartbeatTimeout, 45e3), $ = "", O = x, I = !1, D = 0, B = m.headers || {}, j = m.Transport, xe = b && j == null ? void 0 : new S(j != null ? new j() : Ot()), Ye = j != null && typeof j != "string" ? new j() : xe == null ? new he() : new J(), re = void 0, Y = 0, fe = Ze, Me = "", ct = "", _e = "", ft = "", K = se, Rt = 0, Oe = 0, lr = function(W, z, ie, oe) {
4301
- if (fe === be)
4302
- if (W === 200 && ie != null && Ct.test(ie)) {
4303
- fe = ye, I = Date.now(), O = x, a.readyState = ye;
4304
- var ee = new Le("open", {
4305
- status: W,
4306
- statusText: z,
4297
+ var Ct = g != null && b != null && "body" in b.prototype;
4298
+ function y(a, h, m) {
4299
+ h = String(h);
4300
+ var d = !!m.withCredentials, p = m.lastEventIdQueryParameterName || "lastEventId", v = Je(1e3), T = Ne(m.heartbeatTimeout, 45e3), N = "", C = v, H = !1, I = 0, S = m.headers || {}, U = m.Transport, be = Ct && U == null ? void 0 : new w(U != null ? new U() : At()), Ye = U != null && typeof U != "string" ? new U() : be == null ? new me() : new ee(), re = void 0, Q = 0, ue = qe, Me = "", ut = "", ye = "", lt = "", J = ce, Ht = 0, He = 0, ar = function(X, V, ie, oe) {
4301
+ if (ue === he)
4302
+ if (X === 200 && ie != null && st.test(ie)) {
4303
+ ue = Se, H = Date.now(), C = v, a.readyState = Se;
4304
+ var Y = new Ze("open", {
4305
+ status: X,
4306
+ statusText: V,
4307
4307
  headers: oe
4308
4308
  });
4309
- a.dispatchEvent(ee), Ce(a, a.onopen, ee);
4309
+ a.dispatchEvent(Y), we(a, a.onopen, Y);
4310
4310
  } else {
4311
- var q = "";
4312
- W !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + W + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ie == null ? "-" : ie.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
4313
- var ee = new Le("error", {
4314
- status: W,
4315
- statusText: z,
4311
+ var Z = "";
4312
+ X !== 200 ? (V && (V = V.replace(/\s+/g, " ")), Z = "EventSource's response has a status " + X + " " + V + " that is not 200. Aborting the connection.") : Z = "EventSource's response has a Content-Type specifying an unsupported type: " + (ie == null ? "-" : ie.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4313
+ var Y = new Ze("error", {
4314
+ status: X,
4315
+ statusText: V,
4316
4316
  headers: oe
4317
4317
  });
4318
- a.dispatchEvent(ee), Ce(a, a.onerror, ee), console.error(q);
4318
+ a.dispatchEvent(Y), we(a, a.onerror, Y), console.error(Z);
4319
4319
  }
4320
- }, hr = function(W) {
4321
- if (fe === ye) {
4322
- for (var z = -1, ie = 0; ie < W.length; ie += 1) {
4323
- var oe = W.charCodeAt(ie);
4324
- (oe === 10 || oe === 13) && (z = ie);
4320
+ }, sr = function(X) {
4321
+ if (ue === Se) {
4322
+ for (var V = -1, ie = 0; ie < X.length; ie += 1) {
4323
+ var oe = X.charCodeAt(ie);
4324
+ (oe === 10 || oe === 13) && (V = ie);
4325
4325
  }
4326
- var ee = (z !== -1 ? ft : "") + W.slice(0, z + 1);
4327
- ft = (z === -1 ? ft : "") + W.slice(z + 1), W !== "" && (I = Date.now(), D += W.length);
4328
- for (var q = 0; q < ee.length; q += 1) {
4329
- var oe = ee.charCodeAt(q);
4330
- if (K === qe && oe === 10)
4331
- K = se;
4332
- else if (K === qe && (K = se), oe === 13 || oe === 10) {
4333
- if (K !== se) {
4334
- K === Ne && (Oe = q + 1);
4335
- var Te = ee.slice(Rt, Oe - 1), Be = ee.slice(Oe + (Oe < q && ee.charCodeAt(Oe) === 32 ? 1 : 0), q);
4336
- Te === "data" ? (Me += `
4337
- `, Me += Be) : Te === "id" ? ct = Be : Te === "event" ? _e = Be : Te === "retry" ? (x = Qe(Be, x), O = x) : Te === "heartbeatTimeout" && (w = Qe(Be, w), Y !== 0 && (i(Y), Y = r(function() {
4326
+ var Y = (V !== -1 ? lt : "") + X.slice(0, V + 1);
4327
+ lt = (V === -1 ? lt : "") + X.slice(V + 1), X !== "" && (H = Date.now(), I += X.length);
4328
+ for (var Z = 0; Z < Y.length; Z += 1) {
4329
+ var oe = Y.charCodeAt(Z);
4330
+ if (J === Re && oe === 10)
4331
+ J = ce;
4332
+ else if (J === Re && (J = ce), oe === 13 || oe === 10) {
4333
+ if (J !== ce) {
4334
+ J === Ce && (He = Z + 1);
4335
+ var ve = Y.slice(Ht, He - 1), Ee = Y.slice(He + (He < Z && Y.charCodeAt(He) === 32 ? 1 : 0), Z);
4336
+ ve === "data" ? (Me += `
4337
+ `, Me += Ee) : ve === "id" ? ut = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Ne(Ee, v), C = v) : ve === "heartbeatTimeout" && (T = Ne(Ee, T), Q !== 0 && (i(Q), Q = r(function() {
4338
4338
  Ke();
4339
- }, w)));
4339
+ }, T)));
4340
4340
  }
4341
- if (K === se) {
4341
+ if (J === ce) {
4342
4342
  if (Me !== "") {
4343
- $ = ct, _e === "" && (_e = "message");
4344
- var Pe = new at(_e, {
4343
+ N = ut, ye === "" && (ye = "message");
4344
+ var Pe = new Be(ye, {
4345
4345
  data: Me.slice(1),
4346
- lastEventId: ct
4346
+ lastEventId: ut
4347
4347
  });
4348
- if (a.dispatchEvent(Pe), _e === "open" ? Ce(a, a.onopen, Pe) : _e === "message" ? Ce(a, a.onmessage, Pe) : _e === "error" && Ce(a, a.onerror, Pe), fe === Ae)
4348
+ if (a.dispatchEvent(Pe), ye === "open" ? we(a, a.onopen, Pe) : ye === "message" ? we(a, a.onmessage, Pe) : ye === "error" && we(a, a.onerror, Pe), ue === ge)
4349
4349
  return;
4350
4350
  }
4351
- Me = "", _e = "";
4351
+ Me = "", ye = "";
4352
4352
  }
4353
- K = oe === 13 ? qe : se;
4353
+ J = oe === 13 ? Re : ce;
4354
4354
  } else
4355
- K === se && (Rt = q, K = Ne), K === Ne ? oe === 58 && (Oe = q + 1, K = ut) : K === ut && (K = lt);
4355
+ J === ce && (Ht = Z, J = Ce), J === Ce ? oe === 58 && (He = Z + 1, J = Qe) : J === Qe && (J = Bt);
4356
4356
  }
4357
4357
  }
4358
- }, un = function(W) {
4359
- if (fe === ye || fe === be) {
4360
- fe = Ze, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4358
+ }, an = function(X) {
4359
+ if (ue === Se || ue === he) {
4360
+ ue = qe, Q !== 0 && (i(Q), Q = 0), Q = r(function() {
4361
4361
  Ke();
4362
- }, O), O = Je(Math.min(x * 16, O * 2)), a.readyState = be;
4363
- var z = new st("error", { error: W });
4364
- a.dispatchEvent(z), Ce(a, a.onerror, z), W != null && console.error(W);
4362
+ }, C), C = Je(Math.min(v * 16, C * 2)), a.readyState = he;
4363
+ var V = new at("error", { error: X });
4364
+ a.dispatchEvent(V), we(a, a.onerror, V), X != null && console.error(X);
4365
4365
  }
4366
- }, Lt = function() {
4367
- fe = Ae, re != null && (re.abort(), re = void 0), Y !== 0 && (i(Y), Y = 0), a.readyState = Ae;
4366
+ }, Ot = function() {
4367
+ ue = ge, re != null && (re.abort(), re = void 0), Q !== 0 && (i(Q), Q = 0), a.readyState = ge;
4368
4368
  }, Ke = function() {
4369
- if (Y = 0, fe !== Ze) {
4370
- if (!I && re != null)
4371
- un(new Error("No activity within " + w + " milliseconds. " + (fe === be ? "No response received." : D + " chars received.") + " Reconnecting.")), re != null && (re.abort(), re = void 0);
4369
+ if (Q = 0, ue !== qe) {
4370
+ if (!H && re != null)
4371
+ an(new Error("No activity within " + T + " milliseconds. " + (ue === he ? "No response received." : I + " chars received.") + " Reconnecting.")), re != null && (re.abort(), re = void 0);
4372
4372
  else {
4373
- var W = Math.max((I || Date.now()) + w - Date.now(), 1);
4374
- I = !1, Y = r(function() {
4373
+ var X = Math.max((H || Date.now()) + T - Date.now(), 1);
4374
+ H = !1, Q = r(function() {
4375
4375
  Ke();
4376
- }, W);
4376
+ }, X);
4377
4377
  }
4378
4378
  return;
4379
4379
  }
4380
- I = !1, D = 0, Y = r(function() {
4380
+ H = !1, I = 0, Q = r(function() {
4381
4381
  Ke();
4382
- }, w), fe = be, Me = "", _e = "", ct = $, ft = "", Rt = 0, Oe = 0, K = se;
4383
- var z = d;
4384
- if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && $ !== "") {
4385
- var ie = d.indexOf("?");
4386
- z = ie === -1 ? d : d.slice(0, ie + 1) + d.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Be, Pe) {
4387
- return Pe === _ ? "" : Be;
4388
- }), z += (d.indexOf("?") === -1 ? "?" : "&") + _ + "=" + encodeURIComponent($);
4382
+ }, T), ue = he, Me = "", ye = "", ut = N, lt = "", Ht = 0, He = 0, J = ce;
4383
+ var V = h;
4384
+ if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && N !== "") {
4385
+ var ie = h.indexOf("?");
4386
+ V = ie === -1 ? h : h.slice(0, ie + 1) + h.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Pe) {
4387
+ return Pe === p ? "" : Ee;
4388
+ }), V += (h.indexOf("?") === -1 ? "?" : "&") + p + "=" + encodeURIComponent(N);
4389
4389
  }
4390
- var oe = a.withCredentials, ee = {};
4391
- ee.Accept = "text/event-stream";
4392
- var q = a.headers;
4393
- if (q != null)
4394
- for (var Te in q)
4395
- Object.prototype.hasOwnProperty.call(q, Te) && (ee[Te] = q[Te]);
4390
+ var oe = a.withCredentials, Y = {};
4391
+ Y.Accept = "text/event-stream";
4392
+ var Z = a.headers;
4393
+ if (Z != null)
4394
+ for (var ve in Z)
4395
+ Object.prototype.hasOwnProperty.call(Z, ve) && (Y[ve] = Z[ve]);
4396
4396
  try {
4397
- re = Ye.open(xe, lr, hr, un, z, oe, ee);
4398
- } catch (Be) {
4399
- throw Lt(), Be;
4397
+ re = Ye.open(be, ar, sr, an, V, oe, Y);
4398
+ } catch (Ee) {
4399
+ throw Ot(), Ee;
4400
4400
  }
4401
4401
  };
4402
- a.url = d, a.readyState = be, a.withCredentials = h, a.headers = B, a._close = Lt, Ke();
4402
+ a.url = h, a.readyState = he, a.withCredentials = d, a.headers = S, a._close = Ot, Ke();
4403
4403
  }
4404
- ne.prototype = Object.create(ce.prototype), ne.prototype.CONNECTING = be, ne.prototype.OPEN = ye, ne.prototype.CLOSED = Ae, ne.prototype.close = function() {
4404
+ ne.prototype = Object.create(te.prototype), ne.prototype.CONNECTING = he, ne.prototype.OPEN = Se, ne.prototype.CLOSED = ge, ne.prototype.close = function() {
4405
4405
  this._close();
4406
- }, ne.CONNECTING = be, ne.OPEN = ye, ne.CLOSED = Ae, ne.prototype.withCredentials = void 0;
4407
- var P = c;
4408
- o != null && (c == null || !("withCredentials" in c.prototype)) && (P = ne), function(a) {
4406
+ }, ne.CONNECTING = he, ne.OPEN = Se, ne.CLOSED = ge, ne.prototype.withCredentials = void 0;
4407
+ var A = c;
4408
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (A = ne), function(a) {
4409
4409
  {
4410
- var d = a(t);
4411
- d !== void 0 && (e.exports = d);
4410
+ var h = a(t);
4411
+ h !== void 0 && (e.exports = h);
4412
4412
  }
4413
4413
  }(function(a) {
4414
- a.EventSourcePolyfill = ne, a.NativeEventSource = c, a.EventSource = P;
4414
+ a.EventSourcePolyfill = ne, a.NativeEventSource = c, a.EventSource = A;
4415
4415
  });
4416
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : kr : globalThis);
4417
- })(nn, nn.exports);
4418
- var No = nn.exports;
4419
- /*!
4420
- * currency.js - v2.0.4
4421
- * http://scurker.github.io/currency.js
4422
- *
4423
- * Copyright (c) 2021 Jason Wilson
4424
- * Released under MIT license
4425
- */
4426
- var Mo = {
4427
- symbol: "$",
4428
- separator: ",",
4429
- decimal: ".",
4430
- errorOnInvalid: !1,
4431
- precision: 2,
4432
- pattern: "!#",
4433
- negativePattern: "-!#",
4434
- format: Fo,
4435
- fromCents: !1
4436
- }, ur = function(t) {
4437
- return Math.round(t);
4438
- }, sn = function(t) {
4439
- return Math.pow(10, t);
4440
- }, Po = function(t, n) {
4441
- return ur(t / n) * n;
4442
- }, Io = /(\d)(?=(\d{3})+\b)/g, Do = /(\d)(?=(\d\d)+\d\b)/g;
4443
- function de(e, t) {
4444
- var n = this;
4445
- if (!(n instanceof de))
4446
- return new de(e, t);
4447
- var r = Object.assign({}, Mo, t), i = sn(r.precision), o = bt(e, r);
4448
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Do : r.groups = Io, this.s = r, this.p = i;
4449
- }
4450
- function bt(e, t) {
4451
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, u = t.precision, s = t.fromCents, c = sn(u), l = typeof e == "number", f = e instanceof de;
4452
- if (f && s)
4453
- return e.intValue;
4454
- if (l || f)
4455
- r = f ? e.value : e;
4456
- else if (typeof e == "string") {
4457
- var g = new RegExp("[^-\\d" + i + "]", "g"), p = new RegExp("\\" + i, "g");
4458
- r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(p, "."), r = r || 0;
4459
- } else {
4460
- if (o)
4461
- throw Error("Invalid Input");
4462
- r = 0;
4463
- }
4464
- return s || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
4465
- }
4466
- function Fo(e, t) {
4467
- var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, u = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), l = c[0], f = c[1];
4468
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", l.replace(s, "$1" + o) + (f ? u + f : ""));
4469
- }
4470
- de.prototype = {
4471
- /**
4472
- * Adds values together.
4473
- * @param {number} number
4474
- * @returns {currency}
4475
- */
4476
- add: function(t) {
4477
- var n = this.intValue, r = this.s, i = this.p;
4478
- return de((n += bt(t, r)) / (r.fromCents ? 1 : i), r);
4479
- },
4480
- /**
4481
- * Subtracts value.
4482
- * @param {number} number
4483
- * @returns {currency}
4484
- */
4485
- subtract: function(t) {
4486
- var n = this.intValue, r = this.s, i = this.p;
4487
- return de((n -= bt(t, r)) / (r.fromCents ? 1 : i), r);
4488
- },
4489
- /**
4490
- * Multiplies values.
4491
- * @param {number} number
4492
- * @returns {currency}
4493
- */
4494
- multiply: function(t) {
4495
- var n = this.intValue, r = this.s;
4496
- return de((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4497
- },
4498
- /**
4499
- * Divides value.
4500
- * @param {number} number
4501
- * @returns {currency}
4502
- */
4503
- divide: function(t) {
4504
- var n = this.intValue, r = this.s;
4505
- return de(n /= bt(t, r, !1), r);
4506
- },
4507
- /**
4508
- * Takes the currency amount and distributes the values evenly. Any extra pennies
4509
- * left over from the distribution will be stacked onto the first set of entries.
4510
- * @param {number} count
4511
- * @returns {array}
4512
- */
4513
- distribute: function(t) {
4514
- for (var n = this.intValue, r = this.p, i = this.s, o = [], u = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - u * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4515
- var l = de(u / c, i);
4516
- s-- > 0 && (l = l[n >= 0 ? "add" : "subtract"](1 / c)), o.push(l);
4517
- }
4518
- return o;
4519
- },
4520
- /**
4521
- * Returns the dollar value.
4522
- * @returns {number}
4523
- */
4524
- dollars: function() {
4525
- return ~~this.value;
4526
- },
4527
- /**
4528
- * Returns the cent value.
4529
- * @returns {number}
4530
- */
4531
- cents: function() {
4532
- var t = this.intValue, n = this.p;
4533
- return ~~(t % n);
4534
- },
4535
- /**
4536
- * Formats the value as a string according to the formatting settings.
4537
- * @param {boolean} useSymbol - format with currency symbol
4538
- * @returns {string}
4539
- */
4540
- format: function(t) {
4541
- var n = this.s;
4542
- return typeof t == "function" ? t(this, n) : n.format(this, Object.assign({}, n, t));
4543
- },
4544
- /**
4545
- * Formats the value as a string according to the formatting settings.
4546
- * @returns {string}
4547
- */
4548
- toString: function() {
4549
- var t = this.intValue, n = this.p, r = this.s;
4550
- return Po(t / n, r.increment).toFixed(r.precision);
4551
- },
4552
- /**
4553
- * Value for JSON serialization.
4554
- * @returns {float}
4555
- */
4556
- toJSON: function() {
4557
- return this.value;
4558
- }
4559
- };
4560
- function Uo(e) {
4561
- yr(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}');
4416
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
4417
+ })(tn, tn.exports);
4418
+ var Oo = tn.exports;
4419
+ function Lo(e) {
4420
+ mr(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}');
4562
4421
  }
4563
- function An(e, t, n) {
4422
+ function Sn(e, t, n) {
4564
4423
  const r = e.slice();
4565
- return r[47] = t[n], r;
4424
+ return r[48] = t[n], r;
4566
4425
  }
4567
- function Cn(e, t, n) {
4426
+ function wn(e, t, n) {
4568
4427
  const r = e.slice();
4569
- return r[50] = t[n], r;
4428
+ return r[51] = t[n], r;
4570
4429
  }
4571
- function Go(e) {
4430
+ function Ro(e) {
4572
4431
  let t, n = (
4573
4432
  /*balances*/
4574
- (e[4].Total ? (
4433
+ (e[3].Total ? (
4575
4434
  /*formatBalance*/
4576
- e[6](
4435
+ e[5](
4577
4436
  /*balances*/
4578
- e[4].Total[0].amount
4437
+ e[3].Total[0].amount
4579
4438
  )
4580
4439
  ) : "0") + ""
4581
- ), r, i, o, u, s, c, l, f, g, p = (
4440
+ ), r, i, o, u, s, c, l, f = (
4582
4441
  /*isModalDisplayed*/
4583
- e[2] && Hn(e)
4442
+ e[2] && An(e)
4584
4443
  );
4585
4444
  return {
4586
4445
  c() {
4587
- t = V("button"), r = pe(n), i = ge(), o = pe(
4588
- /*currency*/
4589
- e[3]
4590
- ), u = ge(), s = V("span"), s.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>', c = ge(), p && p.c(), l = xr(), Z(t, "class", "BalanceValue");
4446
+ t = j("button"), r = xe(n), i = _e(), o = j("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 = _e(), f && f.c(), s = yr(), q(t, "class", "BalanceValue");
4591
4447
  },
4592
- m(y, E) {
4593
- Ee(y, t, E), L(t, r), L(t, i), L(t, o), L(t, u), L(t, s), Ee(y, c, E), p && p.m(y, E), Ee(y, l, E), f || (g = yt(
4448
+ m(g, b) {
4449
+ de(g, t, b), M(t, r), M(t, i), M(t, o), de(g, u, b), f && f.m(g, b), de(g, s, b), c || (l = pt(
4594
4450
  t,
4595
4451
  "click",
4596
4452
  /*click_handler*/
4597
4453
  e[23]
4598
- ), f = !0);
4454
+ ), c = !0);
4599
4455
  },
4600
- p(y, E) {
4601
- E[0] & /*balances*/
4602
- 16 && n !== (n = /*balances*/
4603
- (y[4].Total ? (
4456
+ p(g, b) {
4457
+ b[0] & /*balances*/
4458
+ 8 && n !== (n = /*balances*/
4459
+ (g[3].Total ? (
4604
4460
  /*formatBalance*/
4605
- y[6](
4461
+ g[5](
4606
4462
  /*balances*/
4607
- y[4].Total[0].amount
4463
+ g[3].Total[0].amount
4608
4464
  )
4609
- ) : "0") + "") && Se(r, n), E[0] & /*currency*/
4610
- 8 && Se(
4611
- o,
4612
- /*currency*/
4613
- y[3]
4614
- ), /*isModalDisplayed*/
4615
- y[2] ? p ? p.p(y, E) : (p = Hn(y), p.c(), p.m(l.parentNode, l)) : p && (p.d(1), p = null);
4465
+ ) : "0") + "") && Oe(r, n), /*isModalDisplayed*/
4466
+ g[2] ? f ? f.p(g, b) : (f = An(g), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
4616
4467
  },
4617
- d(y) {
4618
- y && (me(t), me(c), me(l)), p && p.d(y), f = !1, g();
4468
+ d(g) {
4469
+ g && (le(t), le(u), le(s)), f && f.d(g), c = !1, l();
4619
4470
  }
4620
4471
  };
4621
4472
  }
4622
- function $o(e) {
4473
+ function No(e) {
4623
4474
  let t, n = (
4624
4475
  /*$_*/
4625
- e[5]("Loading") + ""
4476
+ e[4]("Loading") + ""
4626
4477
  ), r;
4627
4478
  return {
4628
4479
  c() {
4629
- t = V("p"), r = pe(n);
4480
+ t = j("p"), r = xe(n);
4630
4481
  },
4631
4482
  m(i, o) {
4632
- Ee(i, t, o), L(t, r);
4483
+ de(i, t, o), M(t, r);
4633
4484
  },
4634
4485
  p(i, o) {
4635
4486
  o[0] & /*$_*/
4636
- 32 && n !== (n = /*$_*/
4637
- i[5]("Loading") + "") && Se(r, n);
4487
+ 16 && n !== (n = /*$_*/
4488
+ i[4]("Loading") + "") && Oe(r, n);
4638
4489
  },
4639
4490
  d(i) {
4640
- i && me(t);
4491
+ i && le(t);
4641
4492
  }
4642
4493
  };
4643
4494
  }
4644
- function Hn(e) {
4495
+ function An(e) {
4645
4496
  let t, n, r, i, o, u, s = (
4646
4497
  /*$_*/
4647
- e[5]("Title") + ""
4648
- ), c, l, f, g, p, y, E = (
4498
+ e[4]("Title") + ""
4499
+ ), c, l, f, g, b, x, _ = (
4649
4500
  /*$_*/
4650
- e[5]("DepositButton") + ""
4651
- ), N, C, U, X = vt(Object.keys(
4501
+ e[4]("DepositButton") + ""
4502
+ ), P, k, W, $ = mt(Object.keys(
4652
4503
  /*balances*/
4653
- e[4]
4654
- )), T = [];
4655
- for (let S = 0; S < X.length; S += 1)
4656
- T[S] = Rn(An(e, X, S));
4504
+ e[3]
4505
+ )), B = [];
4506
+ for (let w = 0; w < $.length; w += 1)
4507
+ B[w] = Hn(Sn(e, $, w));
4657
4508
  return {
4658
4509
  c() {
4659
- t = V("div"), n = V("button"), r = ge(), i = V("div"), o = V("div"), u = V("p"), c = pe(s), l = ge(), f = V("div");
4660
- for (let S = 0; S < T.length; S += 1)
4661
- T[S].c();
4662
- g = ge(), p = V("div"), y = V("button"), N = pe(E), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(f, "class", "BalanceModalBody"), Z(y, "class", "BalanceModalAction"), Z(p, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
4510
+ t = j("div"), n = j("button"), r = _e(), i = j("div"), o = j("div"), u = j("p"), c = xe(s), l = _e(), f = j("div");
4511
+ for (let w = 0; w < B.length; w += 1)
4512
+ B[w].c();
4513
+ g = _e(), b = j("div"), x = j("button"), P = xe(_), q(n, "class", "BalanceModalClose"), q(u, "class", "BalanceModalTitle"), q(o, "class", "BalanceModalHeader"), q(f, "class", "BalanceModalBody"), q(x, "class", "BalanceModalAction"), q(b, "class", "BalanceModalFooter"), q(i, "class", "BalanceModal"), q(t, "class", "BalanceModalWrapper");
4663
4514
  },
4664
- m(S, G) {
4665
- Ee(S, t, G), L(t, n), L(t, r), L(t, i), L(i, o), L(o, u), L(u, c), L(i, l), L(i, f);
4666
- for (let M = 0; M < T.length; M += 1)
4667
- T[M] && T[M].m(f, null);
4668
- L(i, g), L(i, p), L(p, y), L(y, N), C || (U = [
4669
- yt(
4515
+ m(w, D) {
4516
+ de(w, t, D), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, c), M(i, l), M(i, f);
4517
+ for (let R = 0; R < B.length; R += 1)
4518
+ B[R] && B[R].m(f, null);
4519
+ M(i, g), M(i, b), M(b, x), M(x, P), k || (W = [
4520
+ pt(
4670
4521
  n,
4671
4522
  "click",
4672
4523
  /*click_handler_1*/
4673
4524
  e[24]
4674
4525
  ),
4675
- yt(
4676
- y,
4526
+ pt(
4527
+ x,
4677
4528
  "click",
4678
4529
  /*click_handler_2*/
4679
4530
  e[25]
4680
4531
  )
4681
- ], C = !0);
4532
+ ], k = !0);
4682
4533
  },
4683
- p(S, G) {
4684
- if (G[0] & /*$_*/
4685
- 32 && s !== (s = /*$_*/
4686
- S[5]("Title") + "") && Se(c, s), G[0] & /*balances, currency, formatBalance, $_*/
4687
- 120) {
4688
- X = vt(Object.keys(
4534
+ p(w, D) {
4535
+ if (D[0] & /*$_*/
4536
+ 16 && s !== (s = /*$_*/
4537
+ w[4]("Title") + "") && Oe(c, s), D[0] & /*balances, formatBalance, $_*/
4538
+ 56) {
4539
+ $ = mt(Object.keys(
4689
4540
  /*balances*/
4690
- S[4]
4541
+ w[3]
4691
4542
  ));
4692
- let M;
4693
- for (M = 0; M < X.length; M += 1) {
4694
- const J = An(S, X, M);
4695
- T[M] ? T[M].p(J, G) : (T[M] = Rn(J), T[M].c(), T[M].m(f, null));
4543
+ let R;
4544
+ for (R = 0; R < $.length; R += 1) {
4545
+ const ee = Sn(w, $, R);
4546
+ B[R] ? B[R].p(ee, D) : (B[R] = Hn(ee), B[R].c(), B[R].m(f, null));
4696
4547
  }
4697
- for (; M < T.length; M += 1)
4698
- T[M].d(1);
4699
- T.length = X.length;
4548
+ for (; R < B.length; R += 1)
4549
+ B[R].d(1);
4550
+ B.length = $.length;
4700
4551
  }
4701
- G[0] & /*$_*/
4702
- 32 && E !== (E = /*$_*/
4703
- S[5]("DepositButton") + "") && Se(N, E);
4552
+ D[0] & /*$_*/
4553
+ 16 && _ !== (_ = /*$_*/
4554
+ w[4]("DepositButton") + "") && Oe(P, _);
4704
4555
  },
4705
- d(S) {
4706
- S && me(t), In(T, S), C = !1, Ve(U);
4556
+ d(w) {
4557
+ w && le(t), Mn(B, w), k = !1, Ve(W);
4707
4558
  }
4708
4559
  };
4709
4560
  }
4710
- function On(e) {
4561
+ function Cn(e) {
4711
4562
  let t, n, r = (
4712
4563
  /*$_*/
4713
- e[5](
4564
+ e[4](
4714
4565
  /*k*/
4715
- e[47]
4566
+ e[48]
4716
4567
  ) + ""
4717
4568
  ), i, o, u = (
4718
4569
  /*b*/
4719
- (e[50].productType ? (
4570
+ (e[51].productType ? (
4720
4571
  /*$_*/
4721
- e[5](
4572
+ e[4](
4722
4573
  /*b*/
4723
- e[50].productType
4574
+ e[51].productType
4724
4575
  )
4725
4576
  ) : "") + ""
4726
4577
  ), s, c, l, f, g = (
4727
4578
  /*b*/
4728
- (e[50].amount ? (
4579
+ (e[51].amount ? (
4729
4580
  /*formatBalance*/
4730
- e[6](
4581
+ e[5](
4731
4582
  /*b*/
4732
- e[50].amount
4583
+ e[51].amount
4733
4584
  )
4734
4585
  ) : "0") + ""
4735
- ), p, y, E, N;
4586
+ ), b;
4736
4587
  return {
4737
4588
  c() {
4738
- t = V("div"), n = V("p"), i = pe(r), o = ge(), s = pe(u), c = ge(), l = V("p"), f = V("span"), p = pe(g), y = ge(), E = V("span"), N = pe(
4739
- /*currency*/
4740
- e[3]
4741
- ), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(E, "class", "BalanceModalCurrency"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4589
+ t = j("div"), n = j("p"), i = xe(r), o = _e(), s = xe(u), c = _e(), l = j("p"), f = j("span"), b = xe(g), q(n, "class", "BalanceModalText"), q(f, "class", "BalanceModalAmount"), q(l, "class", "BalanceModalValue"), q(t, "class", "BalanceModalRowLine");
4742
4590
  },
4743
- m(C, U) {
4744
- Ee(C, t, U), L(t, n), L(n, i), L(n, o), L(n, s), L(t, c), L(t, l), L(l, f), L(f, p), L(l, y), L(l, E), L(E, N);
4591
+ m(x, _) {
4592
+ de(x, t, _), M(t, n), M(n, i), M(n, o), M(n, s), M(t, c), M(t, l), M(l, f), M(f, b);
4745
4593
  },
4746
- p(C, U) {
4747
- U[0] & /*$_, balances*/
4748
- 48 && r !== (r = /*$_*/
4749
- C[5](
4594
+ p(x, _) {
4595
+ _[0] & /*$_, balances*/
4596
+ 24 && r !== (r = /*$_*/
4597
+ x[4](
4750
4598
  /*k*/
4751
- C[47]
4752
- ) + "") && Se(i, r), U[0] & /*balances, $_*/
4753
- 48 && u !== (u = /*b*/
4754
- (C[50].productType ? (
4599
+ x[48]
4600
+ ) + "") && Oe(i, r), _[0] & /*balances, $_*/
4601
+ 24 && u !== (u = /*b*/
4602
+ (x[51].productType ? (
4755
4603
  /*$_*/
4756
- C[5](
4604
+ x[4](
4757
4605
  /*b*/
4758
- C[50].productType
4606
+ x[51].productType
4759
4607
  )
4760
- ) : "") + "") && Se(s, u), U[0] & /*balances*/
4761
- 16 && g !== (g = /*b*/
4762
- (C[50].amount ? (
4608
+ ) : "") + "") && Oe(s, u), _[0] & /*balances*/
4609
+ 8 && g !== (g = /*b*/
4610
+ (x[51].amount ? (
4763
4611
  /*formatBalance*/
4764
- C[6](
4612
+ x[5](
4765
4613
  /*b*/
4766
- C[50].amount
4614
+ x[51].amount
4767
4615
  )
4768
- ) : "0") + "") && Se(p, g), U[0] & /*currency*/
4769
- 8 && Se(
4770
- N,
4771
- /*currency*/
4772
- C[3]
4773
- );
4616
+ ) : "0") + "") && Oe(b, g);
4774
4617
  },
4775
- d(C) {
4776
- C && me(t);
4618
+ d(x) {
4619
+ x && le(t);
4777
4620
  }
4778
4621
  };
4779
4622
  }
4780
- function Rn(e) {
4781
- let t, n, r = vt(
4623
+ function Hn(e) {
4624
+ let t, n, r = mt(
4782
4625
  /*balances*/
4783
- e[4][
4626
+ e[3][
4784
4627
  /*k*/
4785
- e[47]
4628
+ e[48]
4786
4629
  ]
4787
4630
  ), i = [];
4788
4631
  for (let o = 0; o < r.length; o += 1)
4789
- i[o] = On(Cn(e, r, o));
4632
+ i[o] = Cn(wn(e, r, o));
4790
4633
  return {
4791
4634
  c() {
4792
- t = V("div");
4635
+ t = j("div");
4793
4636
  for (let o = 0; o < i.length; o += 1)
4794
4637
  i[o].c();
4795
- n = ge(), Z(t, "class", "BalanceModalRowBoth");
4638
+ n = _e(), q(t, "class", "BalanceModalRowBoth");
4796
4639
  },
4797
4640
  m(o, u) {
4798
- Ee(o, t, u);
4641
+ de(o, t, u);
4799
4642
  for (let s = 0; s < i.length; s += 1)
4800
4643
  i[s] && i[s].m(t, null);
4801
- L(t, n);
4644
+ M(t, n);
4802
4645
  },
4803
4646
  p(o, u) {
4804
- if (u[0] & /*currency, balances, formatBalance, $_*/
4805
- 120) {
4806
- r = vt(
4647
+ if (u[0] & /*balances, formatBalance, $_*/
4648
+ 56) {
4649
+ r = mt(
4807
4650
  /*balances*/
4808
- o[4][
4651
+ o[3][
4809
4652
  /*k*/
4810
- o[47]
4653
+ o[48]
4811
4654
  ]
4812
4655
  );
4813
4656
  let s;
4814
4657
  for (s = 0; s < r.length; s += 1) {
4815
- const c = Cn(o, r, s);
4816
- i[s] ? i[s].p(c, u) : (i[s] = On(c), i[s].c(), i[s].m(t, n));
4658
+ const c = wn(o, r, s);
4659
+ i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
4817
4660
  }
4818
4661
  for (; s < i.length; s += 1)
4819
4662
  i[s].d(1);
@@ -4821,143 +4664,170 @@ function Rn(e) {
4821
4664
  }
4822
4665
  },
4823
4666
  d(o) {
4824
- o && me(t), In(i, o);
4667
+ o && le(t), Mn(i, o);
4825
4668
  }
4826
4669
  };
4827
4670
  }
4828
- function Ln(e) {
4671
+ function On(e) {
4829
4672
  let t, n, r;
4830
4673
  return {
4831
4674
  c() {
4832
- t = V("button"), Z(t, "class", "ShowBalanceModalOverlay");
4675
+ t = j("button"), q(t, "class", "ShowBalanceModalOverlay");
4833
4676
  },
4834
4677
  m(i, o) {
4835
- Ee(i, t, o), n || (r = yt(
4678
+ de(i, t, o), n || (r = pt(
4836
4679
  t,
4837
4680
  "click",
4838
4681
  /*click_handler_3*/
4839
4682
  e[26]
4840
4683
  ), n = !0);
4841
4684
  },
4842
- p: le,
4685
+ p: se,
4843
4686
  d(i) {
4844
- i && me(t), n = !1, r();
4687
+ i && le(t), n = !1, r();
4845
4688
  }
4846
4689
  };
4847
4690
  }
4848
- function jo(e) {
4691
+ function Mo(e) {
4849
4692
  let t, n, r;
4850
4693
  function i(c, l) {
4851
4694
  return (
4852
4695
  /*isLoading*/
4853
- c[1] ? $o : Go
4696
+ c[1] ? No : Ro
4854
4697
  );
4855
4698
  }
4856
4699
  let o = i(e), u = o(e), s = (
4857
4700
  /*isModalDisplayed*/
4858
- e[2] && Ln(e)
4701
+ e[2] && On(e)
4859
4702
  );
4860
4703
  return {
4861
4704
  c() {
4862
- t = V("div"), n = V("div"), u.c(), r = ge(), s && s.c(), Z(n, "class", "ShowBalance");
4705
+ t = j("div"), n = j("div"), u.c(), r = _e(), s && s.c(), q(n, "class", "ShowBalance");
4863
4706
  },
4864
4707
  m(c, l) {
4865
- Ee(c, t, l), L(t, n), u.m(n, null), L(t, r), s && s.m(t, null), e[27](t);
4708
+ de(c, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4866
4709
  },
4867
4710
  p(c, l) {
4868
4711
  o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4869
- c[2] ? s ? s.p(c, l) : (s = Ln(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4712
+ c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4870
4713
  },
4871
- i: le,
4872
- o: le,
4714
+ i: se,
4715
+ o: se,
4873
4716
  d(c) {
4874
- c && me(t), u.d(), s && s.d(), e[27](null);
4717
+ c && le(t), u.d(), s && s.d(), e[27](null);
4875
4718
  }
4876
4719
  };
4877
4720
  }
4878
- function ko(e, t, n) {
4721
+ function Po(e, t, n) {
4879
4722
  let r;
4880
- br(e, Ro, (b) => n(5, r = b));
4881
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: N = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: U = "" } = t, { mbsource: X } = t, T, S = !0, G = !1, M = !1, J, we = "", he = [], ce;
4882
- const v = {}, ae = ["totalCashAmount", "totalRealAmount"], at = () => {
4883
- fetch(f).then((b) => b.json()).then((b) => Object.keys(b).forEach((H) => Sn(H, b[H]))).catch((b) => console.log(b));
4723
+ pr(e, Co, (y) => n(4, r = y));
4724
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: k = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: $ = "0" } = t, { customdisplayformat: B = "" } = t, w, D = !0, R = !1, ee = !1, pe, me = "", te = [], Te;
4725
+ const E = {}, Be = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4726
+ fetch(g).then((y) => y.json()).then((y) => Object.keys(y).forEach((A) => Tn(A, y[A]))).catch((y) => console.log(y));
4884
4727
  };
4885
- Object.keys(wn).forEach((b) => Sn(b, wn[b]));
4886
- const Le = () => {
4887
- if (g.includes(s))
4888
- return g;
4889
- }, st = (b) => g ? new Intl.NumberFormat(Le(), { useGrouping: !0 }).format(b) : N && C ? de(b, {
4890
- separator: N,
4891
- decimal: C,
4892
- symbol: "",
4893
- precision: parseInt(U || "2", 10)
4894
- }).format() : de(b, {
4895
- separator: ".",
4896
- decimal: ",",
4897
- symbol: "",
4898
- precision: parseInt(U || "2", 10)
4899
- }).format(), Ze = () => It(this, null, function* () {
4900
- var H, P, a;
4901
- n(1, S = !0);
4902
- const b = new URL(`${u}/v1/player/${i}/account`);
4728
+ Object.keys(Bn).forEach((y) => Tn(y, Bn[y]));
4729
+ const at = (y) => {
4730
+ if (B)
4731
+ return qe(y);
4732
+ const A = P || s, a = {
4733
+ style: "currency",
4734
+ currency: me,
4735
+ useGrouping: !0,
4736
+ currencyDisplay: k || "code",
4737
+ maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
4738
+ minimumFractionDigits: $ === "" || isNaN(Number($)) ? 0 : Number($)
4739
+ };
4740
+ return new Intl.NumberFormat(A, a).format(y);
4741
+ }, qe = (y) => {
4742
+ const A = [];
4743
+ let a = "";
4744
+ for (const h of B)
4745
+ switch (h) {
4746
+ default:
4747
+ a += h;
4748
+ break;
4749
+ case "{":
4750
+ a && A.push(a), a = "";
4751
+ break;
4752
+ case "}":
4753
+ const [m, d] = a.split("|");
4754
+ if (a = "", m.toLowerCase() === "currency")
4755
+ a = me;
4756
+ else if (m.toLowerCase() === "amount") {
4757
+ let p = ",", v = ".", T = 2;
4758
+ d && (d[0] !== " " && (p = d[0]), d[1] !== " " && (v = d[1]), d[2] !== " " && !isNaN(Number(d[2])) && (T = Number(d[2])));
4759
+ let [N, C] = String(Math.floor(y * Rt(10, T)) / Rt(10, T)).split(".");
4760
+ a += N[0];
4761
+ for (let H = 1; H < N.length; ++H)
4762
+ (N.length - H) % 3 === 0 ? a += p + N[H] : a += N[H];
4763
+ C && (a += v + C);
4764
+ }
4765
+ a && A.push(a), a = "";
4766
+ break;
4767
+ }
4768
+ return A.push(a), A.join("");
4769
+ }, he = () => Pt(this, null, function* () {
4770
+ var A, a, h;
4771
+ n(1, D = !0);
4772
+ const y = new URL(`${u}/v1/player/${i}/account`);
4903
4773
  try {
4904
- const d = yield fetch(b, {
4774
+ const m = yield fetch(y, {
4905
4775
  method: "GET",
4906
4776
  headers: { "X-SessionID": o }
4907
- }), m = yield d.json();
4908
- if (d.ok)
4909
- he = m.items, n(3, we = (H = he.find((h) => h.displayName === "Casino")) == null ? void 0 : H.currency), n(4, v.Total = [{ amount: m.totalAmount[we] }], v), n(
4910
- 4,
4911
- v.Real = [
4777
+ }), d = yield m.json();
4778
+ if (m.ok)
4779
+ te = d.items, me = (A = te.find((p) => p.displayName === "Casino")) == null ? void 0 : A.currency, n(3, E.Total = [{ amount: d.totalAmount[me] }], E), n(
4780
+ 3,
4781
+ E.Real = [
4912
4782
  {
4913
- amount: (P = he.find((h) => h.displayName === "Casino")) == null ? void 0 : P.balanceAmount
4783
+ amount: (a = te.find((p) => p.displayName === "Casino")) == null ? void 0 : a.balanceAmount
4914
4784
  }
4915
4785
  ],
4916
- v
4786
+ E
4917
4787
  ), n(
4918
- 4,
4919
- v.Bonus = [
4788
+ 3,
4789
+ E.Bonus = [
4920
4790
  {
4921
- amount: (a = he.find((h) => h.displayName === "UBS")) == null ? void 0 : a.balanceAmount
4791
+ amount: (h = te.find((p) => p.displayName === "UBS")) == null ? void 0 : h.balanceAmount
4922
4792
  }
4923
4793
  ],
4924
- v
4794
+ E
4925
4795
  );
4926
4796
  else
4927
4797
  throw new Error("Failed to fetch balance data !");
4928
- } catch (d) {
4929
- console.log("Balance error: ", d);
4798
+ } catch (m) {
4799
+ console.log("Balance error: ", m);
4930
4800
  } finally {
4931
- n(1, S = !1);
4801
+ n(1, D = !1);
4932
4802
  }
4933
- }), be = () => {
4934
- n(1, S = !0);
4935
- const b = new URL(`${u}/v2/player/${i}/balance`), H = new Headers();
4936
- H.append("X-SessionID", o), fetch(b, { method: "GET", headers: H }).then((a) => a.json()).then((a) => {
4937
- a[E] || n(8, E = ae[0]);
4938
- const d = a.items.find((h) => h.type === "Real" && h.walletAccountType === "Ordinary");
4939
- if (n(3, we = d.currency), M = !!d.productType, n(4, v.Total = [{ amount: 0 }], v), n(4, v.Real = [], v), n(4, v.Bonus = [], v), n(4, v.Credit = [], v), !M) {
4940
- ce = {
4803
+ }), Se = () => {
4804
+ n(1, D = !0);
4805
+ const y = new URL(`${u}/v2/player/${i}/balance`), A = new Headers();
4806
+ A.append("X-SessionID", o), fetch(y, { method: "GET", headers: A }).then((h) => h.json()).then((h) => {
4807
+ h[_] || n(7, _ = Be[0]);
4808
+ const m = h.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
4809
+ if (me = m.currency, ee = !!m.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !ee) {
4810
+ Te = {
4941
4811
  lastOrdinaryAfterAmount: 0,
4942
4812
  showCreditLineAfterAmount: !1
4943
- }, n(4, v.Total[0].amount = a[E][we], v);
4944
- for (const h of a.items)
4945
- switch (h.type) {
4813
+ }, n(3, E.Total[0].amount = h[_][me], E);
4814
+ for (const p of h.items)
4815
+ switch (p.type) {
4946
4816
  case "Bonus":
4947
- v.Bonus.length === 0 ? v.Bonus.push({ amount: h.amount }) : n(4, v.Bonus[0].amount += h.amount, v);
4817
+ E.Bonus.length === 0 ? E.Bonus.push({ amount: p.amount }) : n(3, E.Bonus[0].amount += p.amount, E);
4948
4818
  break;
4949
4819
  case "Real":
4950
- if (h.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: h.creditLine }), E === "totalRealAmount")
4820
+ if (p.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: p.creditLine }), _ === "totalRealAmount")
4951
4821
  continue;
4952
- v.Real.length === 0 ? v.Real.push({ amount: h.amount }) : n(4, v.Real[0].amount += h.amount, v);
4822
+ E.Real.length === 0 ? E.Real.push({ amount: p.amount }) : n(3, E.Real[0].amount += p.amount, E);
4953
4823
  break;
4954
4824
  }
4955
- for (const [h, _] of Object.entries(v))
4956
- _.length < 1 && delete v[h];
4957
- n(1, S = !1);
4825
+ for (const [p, v] of Object.entries(E))
4826
+ v.length < 1 && delete E[p];
4827
+ n(1, D = !1);
4958
4828
  return;
4959
4829
  }
4960
- ce = {
4830
+ Te = {
4961
4831
  Casino: {
4962
4832
  lastOrdinaryAfterAmount: 0,
4963
4833
  showCreditLineAfterAmount: !1
@@ -4967,168 +4837,166 @@ function ko(e, t, n) {
4967
4837
  showCreditLineAfterAmount: !1
4968
4838
  }
4969
4839
  };
4970
- let m = a.items;
4971
- y && y !== "All" && (m = a.items.filter((h) => h.productType === y));
4972
- for (const h of m) {
4973
- let _;
4974
- switch (h.type) {
4840
+ let d = h.items;
4841
+ x && x !== "All" && (d = h.items.filter((p) => p.productType === x));
4842
+ for (const p of d) {
4843
+ let v;
4844
+ switch (p.type) {
4975
4845
  case "Bonus":
4976
- _ = v.Bonus.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Bonus[_].amount += h.amount, v) : v.Bonus.push({
4977
- amount: h.amount,
4978
- productType: h.productType
4846
+ v = E.Bonus.findIndex((T) => T.productType === p.productType), v > 0 ? n(3, E.Bonus[v].amount += p.amount, E) : E.Bonus.push({
4847
+ amount: p.amount,
4848
+ productType: p.productType
4979
4849
  });
4980
4850
  break;
4981
4851
  case "Real":
4982
- h.creditLine && v.Credit.push({
4983
- amount: h.creditLine,
4984
- productType: h.productType
4985
- }), _ = v.Real.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Real[_].amount += h.amount, v) : v.Real.push({
4986
- amount: h.amount,
4987
- productType: h.productType
4852
+ p.creditLine && E.Credit.push({
4853
+ amount: p.creditLine,
4854
+ productType: p.productType
4855
+ }), v = E.Real.findIndex((T) => T.productType === p.productType), v > 0 ? n(3, E.Real[v].amount += p.amount, E) : E.Real.push({
4856
+ amount: p.amount,
4857
+ productType: p.productType
4988
4858
  });
4989
4859
  break;
4990
4860
  }
4991
4861
  }
4992
- Ne();
4993
- for (const [h, _] of Object.entries(v))
4994
- _.length < 1 && delete v[h];
4995
- n(1, S = !1);
4862
+ Qe();
4863
+ for (const [p, v] of Object.entries(E))
4864
+ v.length < 1 && delete E[p];
4865
+ n(1, D = !1);
4996
4866
  }).catch(() => {
4997
- throw n(1, S = !1), new Error("Failed to fetch balance data !");
4867
+ throw n(1, D = !1), new Error("Failed to fetch balance data !");
4998
4868
  });
4999
- }, ye = () => {
5000
- if (J && J.close(), o.length < 1)
4869
+ }, ge = () => {
4870
+ if (pe && pe.close(), o.length < 1)
5001
4871
  return;
5002
- let b, H;
5003
- switch (p) {
4872
+ let y, A;
4873
+ switch (b) {
5004
4874
  case "gm16":
5005
- b = new URL(`${u}/v2/player/${i}/information/updates`), H = (d) => ut(d);
4875
+ y = new URL(`${u}/v2/player/${i}/information/updates`), A = (m) => Bt(m);
5006
4876
  break;
5007
4877
  case "gmcore":
5008
- b = new URL(`${u}/v1/player/${i}/balance/updates`), H = (d) => qe(d);
4878
+ y = new URL(`${u}/v1/player/${i}/balance/updates`), A = (m) => ce(m);
5009
4879
  break;
5010
4880
  }
5011
- const P = {
4881
+ const a = {
5012
4882
  accept: "text/event-stream",
5013
4883
  "X-SessionId": o
5014
- }, a = new No.EventSourcePolyfill(b, { headers: P });
5015
- J = a, a.addEventListener("message", H);
5016
- }, Ae = (b) => {
5017
- let H;
4884
+ }, h = new Oo.EventSourcePolyfill(y, { headers: a });
4885
+ pe = h, h.addEventListener("message", A);
4886
+ }, Re = (y) => {
4887
+ let A;
5018
4888
  try {
5019
- H = JSON.parse(b);
5020
- } catch (P) {
5021
- console.log("Balance stream failed: ", P);
4889
+ A = JSON.parse(y);
4890
+ } catch (a) {
4891
+ console.log("Balance stream failed: ", a);
5022
4892
  return;
5023
4893
  }
5024
- return H;
5025
- }, qe = (b) => {
5026
- var d, m;
5027
- const H = Ae(b.data);
5028
- if (!H) {
5029
- ye();
4894
+ return A;
4895
+ }, ce = (y) => {
4896
+ var m, d;
4897
+ const A = Re(y.data);
4898
+ if (!A) {
4899
+ ge();
5030
4900
  return;
5031
4901
  }
5032
- let P = "0";
5033
- const a = H.balanceChange;
5034
- he = he.map((h) => (a && a[h.id] && (h = Pt(Mt({}, h), {
5035
- balanceAmount: a[h.id].afterAmount
5036
- })), P = (parseFloat(h == null ? void 0 : h.balanceAmount) + parseFloat(P)).toString(), h)), n(4, v.Real = [{ amount: (d = he[0]) == null ? void 0 : d.balanceAmount }], v), n(4, v.Bonus = [{ amount: (m = he[1]) == null ? void 0 : m.balanceAmount }], v), n(4, v.Total = [{ amount: Number(P) }], v);
5037
- }, se = (b, H, P) => {
5038
- let a = null;
5039
- switch (P.walletAccountType) {
4902
+ let a = "0";
4903
+ const h = A.balanceChange;
4904
+ te = te.map((p) => (h && h[p.id] && (p = Mt(Nt({}, p), {
4905
+ balanceAmount: h[p.id].afterAmount
4906
+ })), a = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(a)).toString(), p)), n(3, E.Real = [{ amount: (m = te[0]) == null ? void 0 : m.balanceAmount }], E), n(3, E.Bonus = [{ amount: (d = te[1]) == null ? void 0 : d.balanceAmount }], E), n(3, E.Total = [{ amount: Number(a) }], E);
4907
+ }, Ce = (y, A, a) => {
4908
+ let h = null;
4909
+ switch (a.walletAccountType) {
5040
4910
  case "Ordinary":
5041
- (P.afterAmount !== P.affectedAmount || H.lastOrdinaryAfterAmount === 0) && (H.lastOrdinaryAfterAmount = P.afterAmount, H.showCreditLineAfterAmount || (a = P.afterAmount));
4911
+ (a.afterAmount !== a.affectedAmount || A.lastOrdinaryAfterAmount === 0) && (A.lastOrdinaryAfterAmount = a.afterAmount, A.showCreditLineAfterAmount || (h = a.afterAmount));
5042
4912
  break;
5043
4913
  case "CreditLine":
5044
- P.afterAmount !== 0 ? (a = P.afterAmount, H.showCreditLineAfterAmount = !0) : (a = H.lastOrdinaryAfterAmount, H.showCreditLineAfterAmount = !1);
4914
+ a.afterAmount !== 0 ? (h = a.afterAmount, A.showCreditLineAfterAmount = !0) : (h = A.lastOrdinaryAfterAmount, A.showCreditLineAfterAmount = !1);
5045
4915
  break;
5046
4916
  default:
5047
- a = P.afterAmount;
4917
+ h = a.afterAmount;
5048
4918
  }
5049
- return a === null ? b : a;
5050
- }, Ne = () => {
5051
- switch (E) {
4919
+ return h === null ? y : h;
4920
+ }, Qe = () => {
4921
+ switch (_) {
5052
4922
  case "totalCashAmount":
5053
- let b = 0;
5054
- for (const P of ["Real", "Bonus"])
5055
- for (const a of v[P])
5056
- b += Math.max(a.amount, 0);
5057
- n(4, v.Total[0].amount = b, v);
4923
+ let y = 0;
4924
+ for (const a of ["Real", "Bonus"])
4925
+ for (const h of E[a])
4926
+ y += Math.max(h.amount, 0);
4927
+ n(3, E.Total[0].amount = y, E);
5058
4928
  break;
5059
4929
  case "totalRealAmount":
5060
- if (!M)
4930
+ if (!ee)
5061
4931
  return;
5062
- let H = 0;
5063
- for (const P of v.Real)
5064
- H += P.amount;
5065
- n(4, v.Total[0].amount = H, v);
4932
+ let A = 0;
4933
+ for (const a of E.Real)
4934
+ A += a.amount;
4935
+ n(3, E.Total[0].amount = A, E);
5066
4936
  }
5067
- }, ut = (b) => {
5068
- const H = Ae(b.data);
5069
- if (!H) {
5070
- ye();
4937
+ }, Bt = (y) => {
4938
+ const A = Re(y.data);
4939
+ if (!A) {
4940
+ ge();
5071
4941
  return;
5072
4942
  }
5073
- if (H.type !== "BALANCE_UPDATE_V2")
4943
+ if (A.type !== "BALANCE_UPDATE_V2")
5074
4944
  return;
5075
- const P = H.body.balanceChange;
5076
- for (const [a, d] of Object.entries(P))
5077
- if (E === "totalRealAmount" && a === "Real" && !M && n(4, v.Total[0].amount = se(v.Total[0].amount, ce, d), v), !!v[a])
5078
- for (const m of v[a]) {
5079
- if (!M) {
5080
- m.amount = a === "Real" ? se(m.amount, ce, d) : d.afterAmount;
4945
+ const a = A.body.balanceChange;
4946
+ for (const [h, m] of Object.entries(a))
4947
+ if (_ === "totalRealAmount" && h === "Real" && !ee && n(3, E.Total[0].amount = Ce(E.Total[0].amount, Te, m), E), !!E[h])
4948
+ for (const d of E[h]) {
4949
+ if (!ee) {
4950
+ d.amount = h === "Real" ? Ce(d.amount, Te, m) : m.afterAmount;
5081
4951
  continue;
5082
4952
  }
5083
- d.productType === m.productType && (m.amount = a === "Real" ? se(m.amount, ce[m.productType], d) : d.afterAmount);
4953
+ m.productType === d.productType && (d.amount = h === "Real" ? Ce(d.amount, Te[d.productType], m) : m.afterAmount);
5084
4954
  }
5085
- Ne();
5086
- }, lt = () => {
5087
- n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5088
- }, Ct = () => {
5089
- ae.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(8, E = ae[0]));
5090
- }, Ht = () => {
5091
- switch (Lo(s), Ct(), p) {
4955
+ Qe();
4956
+ }, st = () => {
4957
+ n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4958
+ }, St = () => {
4959
+ Be.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(7, _ = Be[0]));
4960
+ }, wt = () => {
4961
+ switch (Ho(s), St(), b) {
5092
4962
  case "gmcore":
5093
- Ze();
4963
+ he();
5094
4964
  break;
5095
4965
  case "gm16":
5096
- be();
4966
+ Se();
5097
4967
  break;
5098
4968
  default:
5099
- throw Error(`Invalid apiversion attribute: ${p}`);
4969
+ throw Error(`Invalid apiversion attribute: ${b}`);
5100
4970
  }
5101
- }, ht = (b) => b.data && b.data.type === "LogoutSuccessfull" && J.close();
5102
- Sr(() => (window.addEventListener("message", ht, !1), () => {
5103
- window.removeEventListener("message", ht), J && J.close();
4971
+ }, Ne = (y) => y.data && y.data.type === "LogoutSuccessfull" && pe.close();
4972
+ _r(() => (window.addEventListener("message", Ne, !1), () => {
4973
+ window.removeEventListener("message", Ne), pe && pe.close();
5104
4974
  }));
5105
- const Qe = () => n(2, G = !0), Je = () => n(2, G = !1), Ce = () => lt(), ne = () => n(2, G = !1);
5106
- function Ot(b) {
5107
- Vt[b ? "unshift" : "push"](() => {
5108
- T = b, n(0, T);
4975
+ const Je = () => n(2, R = !0), we = () => n(2, R = !1), ne = () => st(), At = () => n(2, R = !1);
4976
+ function Ct(y) {
4977
+ kt[y ? "unshift" : "push"](() => {
4978
+ w = y, n(0, w);
5109
4979
  });
5110
4980
  }
5111
- return e.$$set = (b) => {
5112
- "userid" in b && n(9, i = b.userid), "session" in b && n(10, o = b.session), "endpoint" in b && n(11, u = b.endpoint), "lang" in b && n(12, s = b.lang), "clientstyling" in b && n(13, c = b.clientstyling), "clientstylingurl" in b && n(14, l = b.clientstylingurl), "translationurl" in b && n(15, f = b.translationurl), "customlocaleidentifier" in b && n(16, g = b.customlocaleidentifier), "gmversion" in b && n(17, p = b.gmversion), "displaybalanceoption" in b && n(18, y = b.displaybalanceoption), "totalcalculationmode" in b && n(8, E = b.totalcalculationmode), "currencyseparator" in b && n(19, N = b.currencyseparator), "currencydecimal" in b && n(20, C = b.currencydecimal), "currencyprecision" in b && n(21, U = b.currencyprecision), "mbsource" in b && n(22, X = b.mbsource);
4981
+ return e.$$set = (y) => {
4982
+ "userid" in y && n(8, i = y.userid), "session" in y && n(9, o = y.session), "endpoint" in y && n(10, u = y.endpoint), "lang" in y && n(11, s = y.lang), "mbsource" in y && n(12, c = y.mbsource), "clientstyling" in y && n(13, l = y.clientstyling), "clientstylingurl" in y && n(14, f = y.clientstylingurl), "translationurl" in y && n(15, g = y.translationurl), "gmversion" in y && n(16, b = y.gmversion), "displaybalanceoption" in y && n(17, x = y.displaybalanceoption), "totalcalculationmode" in y && n(7, _ = y.totalcalculationmode), "currencylocale" in y && n(18, P = y.currencylocale), "currencydisplay" in y && n(19, k = y.currencydisplay), "maximumfractiondigits" in y && n(20, W = y.maximumfractiondigits), "minimumfractiondigits" in y && n(21, $ = y.minimumfractiondigits), "customdisplayformat" in y && n(22, B = y.customdisplayformat);
5113
4983
  }, e.$$.update = () => {
5114
- e.$$.dirty[0] & /*lang*/
5115
- 4096 && s && Le(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5116
- 400896 && u && i && o && s && p && y && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5117
- 134656 && u && i && o && p && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5118
- 8193 && c && T && Ur(T, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5119
- 16385 && l && T && Gr(T, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
5120
- 4194305 && T && $r(T, `${X}.Style`), e.$$.dirty[0] & /*translationurl*/
5121
- 32768 && f && at();
4984
+ e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4985
+ 200448 && u && i && o && s && b && x && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4986
+ 67328 && u && i && o && b && ge(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4987
+ 8193 && l && w && Ir(w, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4988
+ 16385 && f && w && Dr(w, f), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4989
+ 4097 && w && Fr(w, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4990
+ 32768 && g && Ze();
5122
4991
  }, [
5123
- T,
5124
- S,
5125
- G,
5126
- we,
5127
- v,
4992
+ w,
4993
+ D,
4994
+ R,
4995
+ E,
5128
4996
  r,
4997
+ at,
5129
4998
  st,
5130
- lt,
5131
- E,
4999
+ _,
5132
5000
  i,
5133
5001
  o,
5134
5002
  u,
@@ -5137,140 +5005,148 @@ function ko(e, t, n) {
5137
5005
  l,
5138
5006
  f,
5139
5007
  g,
5140
- p,
5141
- y,
5142
- N,
5143
- C,
5144
- U,
5145
- X,
5146
- Qe,
5008
+ b,
5009
+ x,
5010
+ P,
5011
+ k,
5012
+ W,
5013
+ $,
5014
+ B,
5147
5015
  Je,
5148
- Ce,
5016
+ we,
5149
5017
  ne,
5150
- Ot
5018
+ At,
5019
+ Ct
5151
5020
  ];
5152
5021
  }
5153
- class Vo extends Dr {
5022
+ class Io extends Mr {
5154
5023
  constructor(t) {
5155
- super(), Pr(
5024
+ super(), Rr(
5156
5025
  this,
5157
5026
  t,
5158
- ko,
5159
- jo,
5160
- Mn,
5027
+ Po,
5028
+ Mo,
5029
+ Rn,
5161
5030
  {
5162
- userid: 9,
5163
- session: 10,
5164
- endpoint: 11,
5165
- lang: 12,
5031
+ userid: 8,
5032
+ session: 9,
5033
+ endpoint: 10,
5034
+ lang: 11,
5035
+ mbsource: 12,
5166
5036
  clientstyling: 13,
5167
5037
  clientstylingurl: 14,
5168
5038
  translationurl: 15,
5169
- customlocaleidentifier: 16,
5170
- gmversion: 17,
5171
- displaybalanceoption: 18,
5172
- totalcalculationmode: 8,
5173
- currencyseparator: 19,
5174
- currencydecimal: 20,
5175
- currencyprecision: 21,
5176
- mbsource: 22
5039
+ gmversion: 16,
5040
+ displaybalanceoption: 17,
5041
+ totalcalculationmode: 7,
5042
+ currencylocale: 18,
5043
+ currencydisplay: 19,
5044
+ maximumfractiondigits: 20,
5045
+ minimumfractiondigits: 21,
5046
+ customdisplayformat: 22
5177
5047
  },
5178
- Uo,
5048
+ Lo,
5179
5049
  [-1, -1]
5180
5050
  );
5181
5051
  }
5182
5052
  get userid() {
5183
- return this.$$.ctx[9];
5053
+ return this.$$.ctx[8];
5184
5054
  }
5185
5055
  set userid(t) {
5186
- this.$$set({ userid: t }), Q();
5056
+ this.$$set({ userid: t }), z();
5187
5057
  }
5188
5058
  get session() {
5189
- return this.$$.ctx[10];
5059
+ return this.$$.ctx[9];
5190
5060
  }
5191
5061
  set session(t) {
5192
- this.$$set({ session: t }), Q();
5062
+ this.$$set({ session: t }), z();
5193
5063
  }
5194
5064
  get endpoint() {
5195
- return this.$$.ctx[11];
5065
+ return this.$$.ctx[10];
5196
5066
  }
5197
5067
  set endpoint(t) {
5198
- this.$$set({ endpoint: t }), Q();
5068
+ this.$$set({ endpoint: t }), z();
5199
5069
  }
5200
5070
  get lang() {
5201
- return this.$$.ctx[12];
5071
+ return this.$$.ctx[11];
5202
5072
  }
5203
5073
  set lang(t) {
5204
- this.$$set({ lang: t }), Q();
5074
+ this.$$set({ lang: t }), z();
5075
+ }
5076
+ get mbsource() {
5077
+ return this.$$.ctx[12];
5078
+ }
5079
+ set mbsource(t) {
5080
+ this.$$set({ mbsource: t }), z();
5205
5081
  }
5206
5082
  get clientstyling() {
5207
5083
  return this.$$.ctx[13];
5208
5084
  }
5209
5085
  set clientstyling(t) {
5210
- this.$$set({ clientstyling: t }), Q();
5086
+ this.$$set({ clientstyling: t }), z();
5211
5087
  }
5212
5088
  get clientstylingurl() {
5213
5089
  return this.$$.ctx[14];
5214
5090
  }
5215
5091
  set clientstylingurl(t) {
5216
- this.$$set({ clientstylingurl: t }), Q();
5092
+ this.$$set({ clientstylingurl: t }), z();
5217
5093
  }
5218
5094
  get translationurl() {
5219
5095
  return this.$$.ctx[15];
5220
5096
  }
5221
5097
  set translationurl(t) {
5222
- this.$$set({ translationurl: t }), Q();
5223
- }
5224
- get customlocaleidentifier() {
5225
- return this.$$.ctx[16];
5226
- }
5227
- set customlocaleidentifier(t) {
5228
- this.$$set({ customlocaleidentifier: t }), Q();
5098
+ this.$$set({ translationurl: t }), z();
5229
5099
  }
5230
5100
  get gmversion() {
5231
- return this.$$.ctx[17];
5101
+ return this.$$.ctx[16];
5232
5102
  }
5233
5103
  set gmversion(t) {
5234
- this.$$set({ gmversion: t }), Q();
5104
+ this.$$set({ gmversion: t }), z();
5235
5105
  }
5236
5106
  get displaybalanceoption() {
5237
- return this.$$.ctx[18];
5107
+ return this.$$.ctx[17];
5238
5108
  }
5239
5109
  set displaybalanceoption(t) {
5240
- this.$$set({ displaybalanceoption: t }), Q();
5110
+ this.$$set({ displaybalanceoption: t }), z();
5241
5111
  }
5242
5112
  get totalcalculationmode() {
5243
- return this.$$.ctx[8];
5113
+ return this.$$.ctx[7];
5244
5114
  }
5245
5115
  set totalcalculationmode(t) {
5246
- this.$$set({ totalcalculationmode: t }), Q();
5116
+ this.$$set({ totalcalculationmode: t }), z();
5247
5117
  }
5248
- get currencyseparator() {
5118
+ get currencylocale() {
5119
+ return this.$$.ctx[18];
5120
+ }
5121
+ set currencylocale(t) {
5122
+ this.$$set({ currencylocale: t }), z();
5123
+ }
5124
+ get currencydisplay() {
5249
5125
  return this.$$.ctx[19];
5250
5126
  }
5251
- set currencyseparator(t) {
5252
- this.$$set({ currencyseparator: t }), Q();
5127
+ set currencydisplay(t) {
5128
+ this.$$set({ currencydisplay: t }), z();
5253
5129
  }
5254
- get currencydecimal() {
5130
+ get maximumfractiondigits() {
5255
5131
  return this.$$.ctx[20];
5256
5132
  }
5257
- set currencydecimal(t) {
5258
- this.$$set({ currencydecimal: t }), Q();
5133
+ set maximumfractiondigits(t) {
5134
+ this.$$set({ maximumfractiondigits: t }), z();
5259
5135
  }
5260
- get currencyprecision() {
5136
+ get minimumfractiondigits() {
5261
5137
  return this.$$.ctx[21];
5262
5138
  }
5263
- set currencyprecision(t) {
5264
- this.$$set({ currencyprecision: t }), Q();
5139
+ set minimumfractiondigits(t) {
5140
+ this.$$set({ minimumfractiondigits: t }), z();
5265
5141
  }
5266
- get mbsource() {
5142
+ get customdisplayformat() {
5267
5143
  return this.$$.ctx[22];
5268
5144
  }
5269
- set mbsource(t) {
5270
- this.$$set({ mbsource: t }), Q();
5145
+ set customdisplayformat(t) {
5146
+ this.$$set({ customdisplayformat: t }), z();
5271
5147
  }
5272
5148
  }
5273
- Ir(Vo, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
5149
+ Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5274
5150
  export {
5275
- Vo as default
5151
+ Io as default
5276
5152
  };