@everymatrix/player-account-balance-modal 1.86.2 → 1.86.4

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