@everymatrix/player-account-balance-modal 1.86.3 → 1.86.5

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.
@@ -2,43 +2,43 @@ var ur = Object.defineProperty, lr = Object.defineProperties;
2
2
  var hr = Object.getOwnPropertyDescriptors;
3
3
  var sn = Object.getOwnPropertySymbols;
4
4
  var cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
5
- var Lt = Math.pow, Ht = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ot = (e, t) => {
5
+ var Rt = Math.pow, Lt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- cr.call(t, n) && Ht(e, n, t[n]);
7
+ cr.call(t, n) && Lt(e, n, t[n]);
8
8
  if (sn)
9
9
  for (var n of sn(t))
10
- fr.call(t, n) && Ht(e, n, t[n]);
10
+ fr.call(t, n) && Lt(e, n, t[n]);
11
11
  return e;
12
- }, Rt = (e, t) => lr(e, hr(t));
13
- var se = (e, t, n) => (Ht(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Nt = (e, t, n) => new Promise((r, i) => {
12
+ }, Mt = (e, t) => lr(e, hr(t));
13
+ var oe = (e, t, n) => (Lt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Pt = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (f) => {
16
16
  try {
17
- a(n.next(f));
17
+ s(n.next(f));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
21
  }, u = (f) => {
22
22
  try {
23
- a(n.throw(f));
23
+ s(n.throw(f));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, a = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(o, u);
28
- a((n = n.apply(e, t)).next());
27
+ }, s = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(o, u);
28
+ s((n = n.apply(e, t)).next());
29
29
  });
30
- function ue() {
30
+ function ae() {
31
31
  }
32
- function On(e) {
32
+ function Ln(e) {
33
33
  return e();
34
34
  }
35
35
  function un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function $e(e) {
39
- e.forEach(On);
39
+ e.forEach(Ln);
40
40
  }
41
- function en(e) {
41
+ function nn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
44
  function Rn(e, t) {
@@ -51,7 +51,7 @@ function Nn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return ue;
54
+ return ae;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
@@ -86,7 +86,7 @@ function br(e, t) {
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function fe(e, t, n) {
89
+ function de(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
92
  function he(e) {
@@ -99,16 +99,16 @@ function Mn(e, t) {
99
99
  function G(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function be(e) {
102
+ function Ee(e) {
103
103
  return document.createTextNode(e);
104
104
  }
105
- function ye() {
106
- return be(" ");
105
+ function xe() {
106
+ return Ee(" ");
107
107
  }
108
108
  function yr() {
109
- return be("");
109
+ return Ee("");
110
110
  }
111
- function mt(e, t, n, r) {
111
+ function pt(e, t, n, r) {
112
112
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
113
113
  }
114
114
  function z(e, t, n) {
@@ -117,7 +117,7 @@ function z(e, t, n) {
117
117
  function vr(e) {
118
118
  return Array.from(e.childNodes);
119
119
  }
120
- function Ce(e, t) {
120
+ function He(e, t) {
121
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
122
  t);
123
123
  }
@@ -142,76 +142,76 @@ function xr() {
142
142
  function _r(e) {
143
143
  xr().$$.on_mount.push(e);
144
144
  }
145
- const Pe = [], $t = [];
146
- let Ie = [];
145
+ const Ie = [], kt = [];
146
+ let De = [];
147
147
  const ln = [], Tr = /* @__PURE__ */ Promise.resolve();
148
- let jt = !1;
148
+ let Vt = !1;
149
149
  function Br() {
150
- jt || (jt = !0, Tr.then(k));
150
+ Vt || (Vt = !0, Tr.then(k));
151
151
  }
152
- function kt(e) {
153
- Ie.push(e);
152
+ function Xt(e) {
153
+ De.push(e);
154
154
  }
155
- const Mt = /* @__PURE__ */ new Set();
156
- let Ne = 0;
155
+ const It = /* @__PURE__ */ new Set();
156
+ let Me = 0;
157
157
  function k() {
158
- if (Ne !== 0)
158
+ if (Me !== 0)
159
159
  return;
160
160
  const e = et;
161
161
  do {
162
162
  try {
163
- for (; Ne < Pe.length; ) {
164
- const t = Pe[Ne];
165
- Ne++, Ke(t), Sr(t.$$);
163
+ for (; Me < Ie.length; ) {
164
+ const t = Ie[Me];
165
+ Me++, Ke(t), Sr(t.$$);
166
166
  }
167
167
  } catch (t) {
168
- throw Pe.length = 0, Ne = 0, t;
168
+ throw Ie.length = 0, Me = 0, t;
169
169
  }
170
- for (Ke(null), Pe.length = 0, Ne = 0; $t.length; )
171
- $t.pop()();
172
- for (let t = 0; t < Ie.length; t += 1) {
173
- const n = Ie[t];
174
- Mt.has(n) || (Mt.add(n), n());
170
+ for (Ke(null), Ie.length = 0, Me = 0; kt.length; )
171
+ kt.pop()();
172
+ for (let t = 0; t < De.length; t += 1) {
173
+ const n = De[t];
174
+ It.has(n) || (It.add(n), n());
175
175
  }
176
- Ie.length = 0;
177
- } while (Pe.length);
176
+ De.length = 0;
177
+ } while (Ie.length);
178
178
  for (; ln.length; )
179
179
  ln.pop()();
180
- jt = !1, Mt.clear(), Ke(e);
180
+ Vt = !1, It.clear(), Ke(e);
181
181
  }
182
182
  function Sr(e) {
183
183
  if (e.fragment !== null) {
184
184
  e.update(), $e(e.before_update);
185
185
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
186
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
187
187
  }
188
188
  }
189
189
  function wr(e) {
190
190
  const t = [], n = [];
191
- Ie.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ie = t;
191
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
192
192
  }
193
193
  const Ar = /* @__PURE__ */ new Set();
194
194
  function Cr(e, t) {
195
195
  e && e.i && (Ar.delete(e), e.i(t));
196
196
  }
197
- function gt(e) {
197
+ function mt(e) {
198
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
199
  }
200
200
  function Hr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
- r && r.m(t, n), kt(() => {
203
- const o = e.$$.on_mount.map(On).filter(en);
202
+ r && r.m(t, n), Xt(() => {
203
+ const o = e.$$.on_mount.map(Ln).filter(nn);
204
204
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
205
- }), i.forEach(kt);
205
+ }), i.forEach(Xt);
206
206
  }
207
- function Lr(e, t) {
207
+ function Or(e, t) {
208
208
  const n = e.$$;
209
209
  n.fragment !== null && (wr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
- function Or(e, t) {
212
- e.$$.dirty[0] === -1 && (Pe.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function Lr(e, t) {
212
+ e.$$.dirty[0] === -1 && (Ie.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
- function Rr(e, t, n, r, i, o, u = null, a = [-1]) {
214
+ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
215
215
  const f = et;
216
216
  Ke(e);
217
217
  const l = e.$$ = {
@@ -219,7 +219,7 @@ function Rr(e, t, n, r, i, o, u = null, a = [-1]) {
219
219
  ctx: [],
220
220
  // state
221
221
  props: o,
222
- update: ue,
222
+ update: ae,
223
223
  not_equal: i,
224
224
  bound: un(),
225
225
  // lifecycle
@@ -231,19 +231,19 @@ function Rr(e, t, n, r, i, o, u = null, a = [-1]) {
231
231
  context: new Map(t.context || (f ? f.$$.context : [])),
232
232
  // everything else
233
233
  callbacks: un(),
234
- dirty: a,
234
+ dirty: s,
235
235
  skip_bound: !1,
236
236
  root: t.target || f.$$.root
237
237
  };
238
238
  u && u(l.root);
239
239
  let d = !1;
240
- if (l.ctx = n ? n(e, t.props || {}, (g, y, ..._) => {
241
- const S = _.length ? _[0] : y;
242
- return l.ctx && i(l.ctx[g], l.ctx[g] = S) && (!l.skip_bound && l.bound[g] && l.bound[g](S), d && Or(e, g)), y;
240
+ if (l.ctx = n ? n(e, t.props || {}, (m, b, ..._) => {
241
+ const B = _.length ? _[0] : b;
242
+ return l.ctx && i(l.ctx[m], l.ctx[m] = B) && (!l.skip_bound && l.bound[m] && l.bound[m](B), d && Lr(e, m)), b;
243
243
  }) : [], l.update(), d = !0, $e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
- const g = vr(t.target);
246
- l.fragment && l.fragment.l(g), g.forEach(he);
245
+ const m = vr(t.target);
246
+ l.fragment && l.fragment.l(m), m.forEach(he);
247
247
  } else
248
248
  l.fragment && l.fragment.c();
249
249
  t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), k();
@@ -255,23 +255,23 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
255
255
  constructor(t, n, r) {
256
256
  super();
257
257
  /** The Svelte component constructor */
258
- se(this, "$$ctor");
258
+ oe(this, "$$ctor");
259
259
  /** Slots */
260
- se(this, "$$s");
260
+ oe(this, "$$s");
261
261
  /** The Svelte component instance */
262
- se(this, "$$c");
262
+ oe(this, "$$c");
263
263
  /** Whether or not the custom element is connected */
264
- se(this, "$$cn", !1);
264
+ oe(this, "$$cn", !1);
265
265
  /** Component props data */
266
- se(this, "$$d", {});
266
+ oe(this, "$$d", {});
267
267
  /** `true` if currently in the process of reflecting component props back to attributes */
268
- se(this, "$$r", !1);
268
+ oe(this, "$$r", !1);
269
269
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
270
- se(this, "$$p_d", {});
270
+ oe(this, "$$p_d", {});
271
271
  /** @type {Record<string, Function[]>} Event listeners */
272
- se(this, "$$l", {});
272
+ oe(this, "$$l", {});
273
273
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
274
- se(this, "$$l_u", /* @__PURE__ */ new Map());
274
+ oe(this, "$$l_u", /* @__PURE__ */ new Map());
275
275
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
276
276
  }
277
277
  addEventListener(t, n, r) {
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
288
288
  }
289
289
  }
290
290
  connectedCallback() {
291
- return Nt(this, null, function* () {
291
+ return Pt(this, null, function* () {
292
292
  if (this.$$cn = !0, !this.$$c) {
293
293
  let t = function(o) {
294
294
  return () => {
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
302
302
  * @param {HTMLElement} [anchor]
303
303
  */
304
304
  m: function(l, d) {
305
- fe(l, u, d);
305
+ de(l, u, d);
306
306
  },
307
307
  d: function(l) {
308
308
  l && he(u);
@@ -317,13 +317,13 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
317
317
  o in r && (n[o] = [t(o)]);
318
318
  for (const o of this.attributes) {
319
319
  const u = this.$$g_p(o.name);
320
- u in this.$$d || (this.$$d[u] = ft(u, o.value, this.$$p_d, "toProp"));
320
+ u in this.$$d || (this.$$d[u] = ct(u, o.value, this.$$p_d, "toProp"));
321
321
  }
322
322
  for (const o in this.$$p_d)
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
324
324
  this.$$c = new this.$$ctor({
325
325
  target: this.shadowRoot || this,
326
- props: Rt(Ot({}, this.$$d), {
326
+ props: Mt(Nt({}, this.$$d), {
327
327
  $$slots: n,
328
328
  $$scope: {
329
329
  ctx: []
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
334
334
  this.$$r = !0;
335
335
  for (const o in this.$$p_d)
336
336
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
337
- const u = ft(
337
+ const u = ct(
338
338
  o,
339
339
  this.$$d[o],
340
340
  this.$$p_d,
@@ -347,8 +347,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
347
347
  this.$$c.$$.after_update.push(i), i();
348
348
  for (const o in this.$$l)
349
349
  for (const u of this.$$l[o]) {
350
- const a = this.$$c.$on(o, u);
351
- this.$$l_u.set(u, a);
350
+ const s = this.$$c.$on(o, u);
351
+ this.$$l_u.set(u, s);
352
352
  }
353
353
  this.$$l = {};
354
354
  }
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
358
358
  // and setting attributes through setAttribute etc, this is helpful
359
359
  attributeChangedCallback(t, n, r) {
360
360
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
361
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
362
  }
363
363
  disconnectedCallback() {
364
364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
371
371
  ) || t;
372
372
  }
373
373
  });
374
- function ft(e, t, n, r) {
374
+ function ct(e, t, n, r) {
375
375
  var o;
376
376
  const i = (o = n[e]) == null ? void 0 : o.type;
377
377
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -408,25 +408,25 @@ function Nr(e, t, n, r, i, o) {
408
408
  }
409
409
  static get observedAttributes() {
410
410
  return Object.keys(t).map(
411
- (a) => (t[a].attribute || a).toLowerCase()
411
+ (s) => (t[s].attribute || s).toLowerCase()
412
412
  );
413
413
  }
414
414
  };
415
- return Object.keys(t).forEach((a) => {
416
- Object.defineProperty(u.prototype, a, {
415
+ return Object.keys(t).forEach((s) => {
416
+ Object.defineProperty(u.prototype, s, {
417
417
  get() {
418
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
418
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
419
419
  },
420
420
  set(f) {
421
421
  var l;
422
- f = ft(a, f, t), this.$$d[a] = f, (l = this.$$c) == null || l.$set({ [a]: f });
422
+ f = ct(s, f, t), this.$$d[s] = f, (l = this.$$c) == null || l.$set({ [s]: f });
423
423
  }
424
424
  });
425
- }), r.forEach((a) => {
426
- Object.defineProperty(u.prototype, a, {
425
+ }), r.forEach((s) => {
426
+ Object.defineProperty(u.prototype, s, {
427
427
  get() {
428
428
  var f;
429
- return (f = this.$$c) == null ? void 0 : f[a];
429
+ return (f = this.$$c) == null ? void 0 : f[s];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
@@ -441,7 +441,7 @@ class Mr {
441
441
  *
442
442
  * @type {any}
443
443
  */
444
- se(this, "$$");
444
+ oe(this, "$$");
445
445
  /**
446
446
  * ### PRIVATE API
447
447
  *
@@ -449,11 +449,11 @@ class Mr {
449
449
  *
450
450
  * @type {any}
451
451
  */
452
- se(this, "$$set");
452
+ oe(this, "$$set");
453
453
  }
454
454
  /** @returns {void} */
455
455
  $destroy() {
456
- Lr(this, 1), this.$destroy = ue;
456
+ Or(this, 1), this.$destroy = ae;
457
457
  }
458
458
  /**
459
459
  * @template {Extract<keyof Events, string>} K
@@ -462,8 +462,8 @@ class Mr {
462
462
  * @returns {() => void}
463
463
  */
464
464
  $on(t, n) {
465
- if (!en(n))
466
- return ue;
465
+ if (!nn(n))
466
+ return ae;
467
467
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
468
  return r.push(n), () => {
469
469
  const i = r.indexOf(n);
@@ -505,74 +505,74 @@ function Fr(e, t, n) {
505
505
  });
506
506
  }
507
507
  }
508
- const Me = [];
508
+ const Pe = [];
509
509
  function Ur(e, t) {
510
510
  return {
511
511
  subscribe: vt(e, t).subscribe
512
512
  };
513
513
  }
514
- function vt(e, t = ue) {
514
+ function vt(e, t = ae) {
515
515
  let n;
516
516
  const r = /* @__PURE__ */ new Set();
517
- function i(a) {
518
- if (Rn(e, a) && (e = a, n)) {
519
- const f = !Me.length;
517
+ function i(s) {
518
+ if (Rn(e, s) && (e = s, n)) {
519
+ const f = !Pe.length;
520
520
  for (const l of r)
521
- l[1](), Me.push(l, e);
521
+ l[1](), Pe.push(l, e);
522
522
  if (f) {
523
- for (let l = 0; l < Me.length; l += 2)
524
- Me[l][0](Me[l + 1]);
525
- Me.length = 0;
523
+ for (let l = 0; l < Pe.length; l += 2)
524
+ Pe[l][0](Pe[l + 1]);
525
+ Pe.length = 0;
526
526
  }
527
527
  }
528
528
  }
529
- function o(a) {
530
- i(a(e));
529
+ function o(s) {
530
+ i(s(e));
531
531
  }
532
- function u(a, f = ue) {
533
- const l = [a, f];
534
- return r.add(l), r.size === 1 && (n = t(i, o) || ue), a(e), () => {
532
+ function u(s, f = ae) {
533
+ const l = [s, f];
534
+ return r.add(l), r.size === 1 && (n = t(i, o) || ae), s(e), () => {
535
535
  r.delete(l), r.size === 0 && n && (n(), n = null);
536
536
  };
537
537
  }
538
538
  return { set: i, update: o, subscribe: u };
539
539
  }
540
- function je(e, t, n) {
540
+ function ke(e, t, n) {
541
541
  const r = !Array.isArray(e), i = r ? [e] : e;
542
542
  if (!i.every(Boolean))
543
543
  throw new Error("derived() expects stores as input, got a falsy value");
544
544
  const o = t.length < 2;
545
- return Ur(n, (u, a) => {
545
+ return Ur(n, (u, s) => {
546
546
  let f = !1;
547
547
  const l = [];
548
- let d = 0, g = ue;
549
- const y = () => {
548
+ let d = 0, m = ae;
549
+ const b = () => {
550
550
  if (d)
551
551
  return;
552
- g();
553
- const S = t(r ? l[0] : l, u, a);
554
- o ? u(S) : g = en(S) ? S : ue;
552
+ m();
553
+ const B = t(r ? l[0] : l, u, s);
554
+ o ? u(B) : m = nn(B) ? B : ae;
555
555
  }, _ = i.map(
556
- (S, I) => Nn(
557
- S,
558
- ($) => {
559
- l[I] = $, d &= ~(1 << I), f && y();
556
+ (B, I) => Nn(
557
+ B,
558
+ (j) => {
559
+ l[I] = j, d &= ~(1 << I), f && b();
560
560
  },
561
561
  () => {
562
562
  d |= 1 << I;
563
563
  }
564
564
  )
565
565
  );
566
- return f = !0, y(), function() {
567
- $e(_), g(), f = !1;
566
+ return f = !0, b(), function() {
567
+ $e(_), m(), f = !1;
568
568
  };
569
569
  });
570
570
  }
571
571
  var Gr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
572
- function $r(e) {
572
+ function jr(e) {
573
573
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
574
574
  }
575
- var jr = function(t) {
575
+ var $r = function(t) {
576
576
  return kr(t) && !Vr(t);
577
577
  };
578
578
  function kr(e) {
@@ -590,7 +590,7 @@ function Zr(e) {
590
590
  return Array.isArray(e) ? [] : {};
591
591
  }
592
592
  function tt(e, t) {
593
- return t.clone !== !1 && t.isMergeableObject(e) ? De(Zr(e), e, t) : e;
593
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Zr(e), e, t) : e;
594
594
  }
595
595
  function qr(e, t, n) {
596
596
  return e.concat(t).map(function(r) {
@@ -599,9 +599,9 @@ function qr(e, t, n) {
599
599
  }
600
600
  function Qr(e, t) {
601
601
  if (!t.customMerge)
602
- return De;
602
+ return Fe;
603
603
  var n = t.customMerge(e);
604
- return typeof n == "function" ? n : De;
604
+ return typeof n == "function" ? n : Fe;
605
605
  }
606
606
  function Jr(e) {
607
607
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -629,60 +629,46 @@ function Kr(e, t, n) {
629
629
  Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
630
630
  }), r;
631
631
  }
632
- function De(e, t, n) {
633
- n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = tt;
632
+ function Fe(e, t, n) {
633
+ n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || $r, n.cloneUnlessOtherwiseSpecified = tt;
634
634
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
635
635
  return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : tt(t, n);
636
636
  }
637
- De.all = function(t, n) {
637
+ Fe.all = function(t, n) {
638
638
  if (!Array.isArray(t))
639
639
  throw new Error("first argument should be an array");
640
640
  return t.reduce(function(r, i) {
641
- return De(r, i, n);
641
+ return Fe(r, i, n);
642
642
  }, {});
643
643
  };
644
- var ei = De, ti = ei;
645
- const ni = /* @__PURE__ */ $r(ti);
646
- /*! *****************************************************************************
647
- Copyright (c) Microsoft Corporation.
648
-
649
- Permission to use, copy, modify, and/or distribute this software for any
650
- purpose with or without fee is hereby granted.
651
-
652
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
653
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
654
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
655
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
656
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
657
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
658
- PERFORMANCE OF THIS SOFTWARE.
659
- ***************************************************************************** */
660
- var Vt = function(e, t) {
661
- return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
644
+ var ei = Fe, ti = ei;
645
+ const ni = /* @__PURE__ */ jr(ti);
646
+ var zt = function(e, t) {
647
+ return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
662
648
  n.__proto__ = r;
663
649
  } || function(n, r) {
664
650
  for (var i in r)
665
651
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
666
- }, Vt(e, t);
652
+ }, zt(e, t);
667
653
  };
668
654
  function Et(e, t) {
669
655
  if (typeof t != "function" && t !== null)
670
656
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
671
- Vt(e, t);
657
+ zt(e, t);
672
658
  function n() {
673
659
  this.constructor = e;
674
660
  }
675
661
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
676
662
  }
677
- var R = function() {
678
- return R = Object.assign || function(t) {
663
+ var fe = function() {
664
+ return fe = Object.assign || function(t) {
679
665
  for (var n, r = 1, i = arguments.length; r < i; r++) {
680
666
  n = arguments[r];
681
667
  for (var o in n)
682
668
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
683
669
  }
684
670
  return t;
685
- }, R.apply(this, arguments);
671
+ }, fe.apply(this, arguments);
686
672
  };
687
673
  function ri(e, t) {
688
674
  var n = {};
@@ -693,14 +679,14 @@ function ri(e, t) {
693
679
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
694
680
  return n;
695
681
  }
696
- function Pt(e, t, n) {
697
- if (arguments.length === 2)
682
+ function Dt(e, t, n) {
683
+ if (n || arguments.length === 2)
698
684
  for (var r = 0, i = t.length, o; r < i; r++)
699
685
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
700
- return e.concat(o || t);
686
+ return e.concat(o || Array.prototype.slice.call(t));
701
687
  }
702
- function It(e, t) {
703
- var n = t && t.cache ? t.cache : li, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : oi;
688
+ function Ft(e, t) {
689
+ var n = t && t.cache ? t.cache : hi, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : ai;
704
690
  return i(e, {
705
691
  cache: n,
706
692
  serializer: r
@@ -709,95 +695,103 @@ function It(e, t) {
709
695
  function ii(e) {
710
696
  return e == null || typeof e == "number" || typeof e == "boolean";
711
697
  }
712
- function Dn(e, t, n, r) {
698
+ function oi(e, t, n, r) {
713
699
  var i = ii(r) ? r : n(r), o = t.get(i);
714
700
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
715
701
  }
716
- function Fn(e, t, n) {
702
+ function Dn(e, t, n) {
717
703
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
718
704
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
719
705
  }
720
- function tn(e, t, n, r, i) {
706
+ function Fn(e, t, n, r, i) {
721
707
  return n.bind(t, e, r, i);
722
708
  }
723
- function oi(e, t) {
724
- var n = e.length === 1 ? Dn : Fn;
725
- return tn(e, this, n, t.cache.create(), t.serializer);
726
- }
727
709
  function ai(e, t) {
728
- return tn(e, this, Fn, t.cache.create(), t.serializer);
710
+ var n = e.length === 1 ? oi : Dn;
711
+ return Fn(e, this, n, t.cache.create(), t.serializer);
729
712
  }
730
713
  function si(e, t) {
731
- return tn(e, this, Dn, t.cache.create(), t.serializer);
714
+ return Fn(e, this, Dn, t.cache.create(), t.serializer);
732
715
  }
733
716
  var ui = function() {
734
717
  return JSON.stringify(arguments);
735
- };
736
- function nn() {
737
- this.cache = /* @__PURE__ */ Object.create(null);
738
- }
739
- nn.prototype.get = function(e) {
740
- return this.cache[e];
741
- };
742
- nn.prototype.set = function(e, t) {
743
- this.cache[e] = t;
744
- };
745
- var li = {
718
+ }, li = (
719
+ /** @class */
720
+ function() {
721
+ function e() {
722
+ this.cache = /* @__PURE__ */ Object.create(null);
723
+ }
724
+ return e.prototype.get = function(t) {
725
+ return this.cache[t];
726
+ }, e.prototype.set = function(t, n) {
727
+ this.cache[t] = n;
728
+ }, e;
729
+ }()
730
+ ), hi = {
746
731
  create: function() {
747
- return new nn();
732
+ return new li();
748
733
  }
749
- }, Dt = {
750
- variadic: ai,
751
- monadic: si
752
- }, H;
734
+ }, Ut = {
735
+ variadic: si
736
+ }, gt = function() {
737
+ return gt = Object.assign || function(t) {
738
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
739
+ n = arguments[r];
740
+ for (var o in n)
741
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
742
+ }
743
+ return t;
744
+ }, gt.apply(this, arguments);
745
+ };
746
+ var H;
753
747
  (function(e) {
754
748
  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";
755
749
  })(H || (H = {}));
756
- var F;
750
+ var D;
757
751
  (function(e) {
758
752
  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";
759
- })(F || (F = {}));
760
- var Fe;
753
+ })(D || (D = {}));
754
+ var Ue;
761
755
  (function(e) {
762
756
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
763
- })(Fe || (Fe = {}));
757
+ })(Ue || (Ue = {}));
764
758
  function cn(e) {
765
- return e.type === F.literal;
759
+ return e.type === D.literal;
766
760
  }
767
- function hi(e) {
768
- return e.type === F.argument;
761
+ function ci(e) {
762
+ return e.type === D.argument;
769
763
  }
770
764
  function Un(e) {
771
- return e.type === F.number;
765
+ return e.type === D.number;
772
766
  }
773
767
  function Gn(e) {
774
- return e.type === F.date;
775
- }
776
- function $n(e) {
777
- return e.type === F.time;
768
+ return e.type === D.date;
778
769
  }
779
770
  function jn(e) {
780
- return e.type === F.select;
771
+ return e.type === D.time;
772
+ }
773
+ function $n(e) {
774
+ return e.type === D.select;
781
775
  }
782
776
  function kn(e) {
783
- return e.type === F.plural;
777
+ return e.type === D.plural;
784
778
  }
785
- function ci(e) {
786
- return e.type === F.pound;
779
+ function fi(e) {
780
+ return e.type === D.pound;
787
781
  }
788
782
  function Vn(e) {
789
- return e.type === F.tag;
783
+ return e.type === D.tag;
790
784
  }
791
785
  function Xn(e) {
792
- return !!(e && typeof e == "object" && e.type === Fe.number);
786
+ return !!(e && typeof e == "object" && e.type === Ue.number);
793
787
  }
794
- function Xt(e) {
795
- return !!(e && typeof e == "object" && e.type === Fe.dateTime);
788
+ function Wt(e) {
789
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
796
790
  }
797
- var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fi = /(?:[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;
798
- function di(e) {
791
+ var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
792
+ function pi(e) {
799
793
  var t = {};
800
- return e.replace(fi, function(n) {
794
+ return e.replace(di, function(n) {
801
795
  var r = n.length;
802
796
  switch (n[0]) {
803
797
  case "G":
@@ -886,29 +880,39 @@ function di(e) {
886
880
  return "";
887
881
  }), t;
888
882
  }
889
- var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
890
- function mi(e) {
883
+ var F = function() {
884
+ return F = Object.assign || function(t) {
885
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
886
+ n = arguments[r];
887
+ for (var o in n)
888
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
889
+ }
890
+ return t;
891
+ }, F.apply(this, arguments);
892
+ };
893
+ var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
894
+ function gi(e) {
891
895
  if (e.length === 0)
892
896
  throw new Error("Number skeleton cannot be empty");
893
- for (var t = e.split(pi).filter(function(y) {
894
- return y.length > 0;
897
+ for (var t = e.split(mi).filter(function(b) {
898
+ return b.length > 0;
895
899
  }), n = [], r = 0, i = t; r < i.length; r++) {
896
900
  var o = i[r], u = o.split("/");
897
901
  if (u.length === 0)
898
902
  throw new Error("Invalid number skeleton");
899
- for (var a = u[0], f = u.slice(1), l = 0, d = f; l < d.length; l++) {
900
- var g = d[l];
901
- if (g.length === 0)
903
+ for (var s = u[0], f = u.slice(1), l = 0, d = f; l < d.length; l++) {
904
+ var m = d[l];
905
+ if (m.length === 0)
902
906
  throw new Error("Invalid number skeleton");
903
907
  }
904
- n.push({ stem: a, options: f });
908
+ n.push({ stem: s, options: f });
905
909
  }
906
910
  return n;
907
911
  }
908
- function gi(e) {
912
+ function bi(e) {
909
913
  return e.replace(/^(.*?)-/, "");
910
914
  }
911
- var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
915
+ var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
912
916
  function dn(e) {
913
917
  var t = {};
914
918
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
@@ -955,7 +959,7 @@ function qn(e) {
955
959
  };
956
960
  }
957
961
  }
958
- function yi(e) {
962
+ function vi(e) {
959
963
  var t;
960
964
  if (e[0] === "E" && e[1] === "E" ? (t = {
961
965
  notation: "engineering"
@@ -973,7 +977,7 @@ function pn(e) {
973
977
  var t = {}, n = qn(e);
974
978
  return n || t;
975
979
  }
976
- function vi(e) {
980
+ function Ei(e) {
977
981
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
978
982
  var i = r[n];
979
983
  switch (i.stem) {
@@ -997,7 +1001,7 @@ function vi(e) {
997
1001
  continue;
998
1002
  case "measure-unit":
999
1003
  case "unit":
1000
- t.style = "unit", t.unit = gi(i.options[0]);
1004
+ t.style = "unit", t.unit = bi(i.options[0]);
1001
1005
  continue;
1002
1006
  case "compact-short":
1003
1007
  case "K":
@@ -1008,13 +1012,13 @@ function vi(e) {
1008
1012
  t.notation = "compact", t.compactDisplay = "long";
1009
1013
  continue;
1010
1014
  case "scientific":
1011
- t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
1012
- return R(R({}, f), pn(l));
1015
+ t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
1016
+ return F(F({}, f), pn(l));
1013
1017
  }, {}));
1014
1018
  continue;
1015
1019
  case "engineering":
1016
- t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
1017
- return R(R({}, f), pn(l));
1020
+ t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
1021
+ return F(F({}, f), pn(l));
1018
1022
  }, {}));
1019
1023
  continue;
1020
1024
  case "notation-simple":
@@ -1059,11 +1063,11 @@ function vi(e) {
1059
1063
  case "integer-width":
1060
1064
  if (i.options.length > 1)
1061
1065
  throw new RangeError("integer-width stems only accept a single optional option");
1062
- i.options[0].replace(bi, function(f, l, d, g, y, _) {
1066
+ i.options[0].replace(yi, function(f, l, d, m, b, _) {
1063
1067
  if (l)
1064
1068
  t.minimumIntegerDigits = d.length;
1065
1069
  else {
1066
- if (g && y)
1070
+ if (m && b)
1067
1071
  throw new Error("We currently do not support maximum integer digits");
1068
1072
  if (_)
1069
1073
  throw new Error("We currently do not support exact integer digits");
@@ -1079,25 +1083,25 @@ function vi(e) {
1079
1083
  if (fn.test(i.stem)) {
1080
1084
  if (i.options.length > 1)
1081
1085
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1082
- i.stem.replace(fn, function(f, l, d, g, y, _) {
1083
- return d === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && _ ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1086
+ i.stem.replace(fn, function(f, l, d, m, b, _) {
1087
+ return d === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1084
1088
  });
1085
1089
  var o = i.options[0];
1086
- o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), dn(o)));
1090
+ o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), dn(o)));
1087
1091
  continue;
1088
1092
  }
1089
1093
  if (Wn.test(i.stem)) {
1090
- t = R(R({}, t), dn(i.stem));
1094
+ t = F(F({}, t), dn(i.stem));
1091
1095
  continue;
1092
1096
  }
1093
1097
  var u = qn(i.stem);
1094
- u && (t = R(R({}, t), u));
1095
- var a = yi(i.stem);
1096
- a && (t = R(R({}, t), a));
1098
+ u && (t = F(F({}, t), u));
1099
+ var s = vi(i.stem);
1100
+ s && (t = F(F({}, t), s));
1097
1101
  }
1098
1102
  return t;
1099
1103
  }
1100
- var ct = {
1104
+ var ht = {
1101
1105
  "001": [
1102
1106
  "H",
1103
1107
  "h"
@@ -2512,14 +2516,14 @@ var ct = {
2512
2516
  "h"
2513
2517
  ]
2514
2518
  };
2515
- function Ei(e, t) {
2519
+ function xi(e, t) {
2516
2520
  for (var n = "", r = 0; r < e.length; r++) {
2517
2521
  var i = e.charAt(r);
2518
2522
  if (i === "j") {
2519
2523
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2520
2524
  o++, r++;
2521
- var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = xi(t);
2522
- for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2525
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = _i(t);
2526
+ for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2523
2527
  n += f;
2524
2528
  for (; u-- > 0; )
2525
2529
  n = l + n;
@@ -2528,7 +2532,7 @@ function Ei(e, t) {
2528
2532
  }
2529
2533
  return n;
2530
2534
  }
2531
- function xi(e) {
2535
+ function _i(e) {
2532
2536
  var t = e.hourCycle;
2533
2537
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2534
2538
  e.hourCycles && // @ts-ignore
@@ -2547,23 +2551,23 @@ function xi(e) {
2547
2551
  }
2548
2552
  var n = e.language, r;
2549
2553
  n !== "root" && (r = e.maximize().region);
2550
- var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2554
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2551
2555
  return i[0];
2552
2556
  }
2553
- var Ft, _i = new RegExp("^".concat(zn.source, "*")), Ti = new RegExp("".concat(zn.source, "*$"));
2557
+ var Gt, Ti = new RegExp("^".concat(zn.source, "*")), Bi = new RegExp("".concat(zn.source, "*$"));
2554
2558
  function O(e, t) {
2555
2559
  return { start: e, end: t };
2556
2560
  }
2557
- var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, wi = !!Object.fromEntries, Ai = !!String.prototype.codePointAt, Ci = !!String.prototype.trimStart, Hi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Oi = Li ? Number.isSafeInteger : function(e) {
2561
+ var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
2558
2562
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2559
- }, zt = !0;
2563
+ }, Zt = !0;
2560
2564
  try {
2561
- var Ri = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2562
- zt = ((Ft = Ri.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2565
+ var Ni = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2566
+ Zt = ((Gt = Ni.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
2563
2567
  } catch (e) {
2564
- zt = !1;
2568
+ Zt = !1;
2565
2569
  }
2566
- var mn = Bi ? (
2570
+ var mn = Si ? (
2567
2571
  // Native
2568
2572
  function(t, n, r) {
2569
2573
  return t.startsWith(n, r);
@@ -2573,7 +2577,7 @@ var mn = Bi ? (
2573
2577
  function(t, n, r) {
2574
2578
  return t.slice(r, r + n.length) === n;
2575
2579
  }
2576
- ), Wt = Si ? String.fromCodePoint : (
2580
+ ), qt = wi ? String.fromCodePoint : (
2577
2581
  // IE11
2578
2582
  function() {
2579
2583
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2587,17 +2591,17 @@ var mn = Bi ? (
2587
2591
  }
2588
2592
  ), gn = (
2589
2593
  // native
2590
- wi ? Object.fromEntries : (
2594
+ Ai ? Object.fromEntries : (
2591
2595
  // Ponyfill
2592
2596
  function(t) {
2593
2597
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2594
- var o = i[r], u = o[0], a = o[1];
2595
- n[u] = a;
2598
+ var o = i[r], u = o[0], s = o[1];
2599
+ n[u] = s;
2596
2600
  }
2597
2601
  return n;
2598
2602
  }
2599
2603
  )
2600
- ), Qn = Ai ? (
2604
+ ), Qn = Ci ? (
2601
2605
  // Native
2602
2606
  function(t, n) {
2603
2607
  return t.codePointAt(n);
@@ -2611,7 +2615,7 @@ var mn = Bi ? (
2611
2615
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2612
2616
  }
2613
2617
  }
2614
- ), Ni = Ci ? (
2618
+ ), Mi = Hi ? (
2615
2619
  // Native
2616
2620
  function(t) {
2617
2621
  return t.trimStart();
@@ -2619,9 +2623,9 @@ var mn = Bi ? (
2619
2623
  ) : (
2620
2624
  // Ponyfill
2621
2625
  function(t) {
2622
- return t.replace(_i, "");
2626
+ return t.replace(Ti, "");
2623
2627
  }
2624
- ), Mi = Hi ? (
2628
+ ), Pi = Oi ? (
2625
2629
  // Native
2626
2630
  function(t) {
2627
2631
  return t.trimEnd();
@@ -2629,32 +2633,32 @@ var mn = Bi ? (
2629
2633
  ) : (
2630
2634
  // Ponyfill
2631
2635
  function(t) {
2632
- return t.replace(Ti, "");
2636
+ return t.replace(Bi, "");
2633
2637
  }
2634
2638
  );
2635
2639
  function Jn(e, t) {
2636
2640
  return new RegExp(e, t);
2637
2641
  }
2638
- var Zt;
2639
- if (zt) {
2642
+ var Qt;
2643
+ if (Zt) {
2640
2644
  var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2641
- Zt = function(t, n) {
2645
+ Qt = function(t, n) {
2642
2646
  var r;
2643
2647
  bn.lastIndex = n;
2644
2648
  var i = bn.exec(t);
2645
2649
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2646
2650
  };
2647
2651
  } else
2648
- Zt = function(t, n) {
2652
+ Qt = function(t, n) {
2649
2653
  for (var r = []; ; ) {
2650
2654
  var i = Qn(t, n);
2651
- if (i === void 0 || Yn(i) || Fi(i))
2655
+ if (i === void 0 || Yn(i) || Ui(i))
2652
2656
  break;
2653
2657
  r.push(i), n += i >= 65536 ? 2 : 1;
2654
2658
  }
2655
- return Wt.apply(void 0, r);
2659
+ return qt.apply(void 0, r);
2656
2660
  };
2657
- var Pi = (
2661
+ var Ii = (
2658
2662
  /** @class */
2659
2663
  function() {
2660
2664
  function e(t, n) {
@@ -2676,16 +2680,16 @@ var Pi = (
2676
2680
  if (o === 125 && t > 0)
2677
2681
  break;
2678
2682
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2679
- var a = this.clonePosition();
2683
+ var s = this.clonePosition();
2680
2684
  this.bump(), i.push({
2681
- type: F.pound,
2682
- location: O(a, this.clonePosition())
2685
+ type: D.pound,
2686
+ location: O(s, this.clonePosition())
2683
2687
  });
2684
2688
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2685
2689
  if (r)
2686
2690
  break;
2687
2691
  return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2688
- } else if (o === 60 && !this.ignoreTag && qt(this.peek() || 0)) {
2692
+ } else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
2689
2693
  var u = this.parseTag(t, n);
2690
2694
  if (u.err)
2691
2695
  return u;
@@ -2706,7 +2710,7 @@ var Pi = (
2706
2710
  if (this.bumpSpace(), this.bumpIf("/>"))
2707
2711
  return {
2708
2712
  val: {
2709
- type: F.literal,
2713
+ type: D.literal,
2710
2714
  value: "<".concat(i, "/>"),
2711
2715
  location: O(r, this.clonePosition())
2712
2716
  },
@@ -2716,27 +2720,27 @@ var Pi = (
2716
2720
  var o = this.parseMessage(t + 1, n, !0);
2717
2721
  if (o.err)
2718
2722
  return o;
2719
- var u = o.val, a = this.clonePosition();
2723
+ var u = o.val, s = this.clonePosition();
2720
2724
  if (this.bumpIf("</")) {
2721
- if (this.isEOF() || !qt(this.char()))
2722
- return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
2725
+ if (this.isEOF() || !Jt(this.char()))
2726
+ return this.error(H.INVALID_TAG, O(s, this.clonePosition()));
2723
2727
  var f = this.clonePosition(), l = this.parseTagName();
2724
2728
  return i !== l ? this.error(H.UNMATCHED_CLOSING_TAG, O(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2725
2729
  val: {
2726
- type: F.tag,
2730
+ type: D.tag,
2727
2731
  value: i,
2728
2732
  children: u,
2729
2733
  location: O(r, this.clonePosition())
2730
2734
  },
2731
2735
  err: null
2732
- } : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
2736
+ } : this.error(H.INVALID_TAG, O(s, this.clonePosition())));
2733
2737
  } else
2734
2738
  return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2735
2739
  } else
2736
2740
  return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2737
2741
  }, e.prototype.parseTagName = function() {
2738
2742
  var t = this.offset();
2739
- for (this.bump(); !this.isEOF() && Di(this.char()); )
2743
+ for (this.bump(); !this.isEOF() && Fi(this.char()); )
2740
2744
  this.bump();
2741
2745
  return this.message.slice(t, this.offset());
2742
2746
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2751,21 +2755,21 @@ var Pi = (
2751
2755
  i += u;
2752
2756
  continue;
2753
2757
  }
2754
- var a = this.tryParseLeftAngleBracket();
2755
- if (a) {
2756
- i += a;
2758
+ var s = this.tryParseLeftAngleBracket();
2759
+ if (s) {
2760
+ i += s;
2757
2761
  continue;
2758
2762
  }
2759
2763
  break;
2760
2764
  }
2761
2765
  var f = O(r, this.clonePosition());
2762
2766
  return {
2763
- val: { type: F.literal, value: i, location: f },
2767
+ val: { type: D.literal, value: i, location: f },
2764
2768
  err: null
2765
2769
  };
2766
2770
  }, e.prototype.tryParseLeftAngleBracket = function() {
2767
2771
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2768
- !Ii(this.peek() || 0)) ? (this.bump(), "<") : null;
2772
+ !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
2769
2773
  }, e.prototype.tryParseQuote = function(t) {
2770
2774
  if (this.isEOF() || this.char() !== 39)
2771
2775
  return null;
@@ -2799,12 +2803,12 @@ var Pi = (
2799
2803
  n.push(r);
2800
2804
  this.bump();
2801
2805
  }
2802
- return Wt.apply(void 0, n);
2806
+ return qt.apply(void 0, n);
2803
2807
  }, e.prototype.tryParseUnquoted = function(t, n) {
2804
2808
  if (this.isEOF())
2805
2809
  return null;
2806
2810
  var r = this.char();
2807
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Wt(r));
2811
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
2808
2812
  }, e.prototype.parseArgument = function(t, n) {
2809
2813
  var r = this.clonePosition();
2810
2814
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2820,7 +2824,7 @@ var Pi = (
2820
2824
  case 125:
2821
2825
  return this.bump(), {
2822
2826
  val: {
2823
- type: F.argument,
2827
+ type: D.argument,
2824
2828
  // value does not include the opening and closing braces.
2825
2829
  value: i,
2826
2830
  location: O(r, this.clonePosition())
@@ -2833,13 +2837,13 @@ var Pi = (
2833
2837
  return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2834
2838
  }
2835
2839
  }, e.prototype.parseIdentifierIfPossible = function() {
2836
- var t = this.clonePosition(), n = this.offset(), r = Zt(this.message, n), i = n + r.length;
2840
+ var t = this.clonePosition(), n = this.offset(), r = Qt(this.message, n), i = n + r.length;
2837
2841
  this.bumpTo(i);
2838
2842
  var o = this.clonePosition(), u = O(t, o);
2839
2843
  return { value: r, location: u };
2840
2844
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2841
- var o, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2842
- switch (a) {
2845
+ var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2846
+ switch (s) {
2843
2847
  case "":
2844
2848
  return this.error(H.EXPECT_ARGUMENT_TYPE, O(u, f));
2845
2849
  case "number":
@@ -2849,47 +2853,47 @@ var Pi = (
2849
2853
  var l = null;
2850
2854
  if (this.bumpIf(",")) {
2851
2855
  this.bumpSpace();
2852
- var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2853
- if (g.err)
2854
- return g;
2855
- var y = Mi(g.val);
2856
- if (y.length === 0)
2856
+ var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2857
+ if (m.err)
2858
+ return m;
2859
+ var b = Pi(m.val);
2860
+ if (b.length === 0)
2857
2861
  return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2858
2862
  var _ = O(d, this.clonePosition());
2859
- l = { style: y, styleLocation: _ };
2863
+ l = { style: b, styleLocation: _ };
2860
2864
  }
2861
- var S = this.tryParseArgumentClose(i);
2862
- if (S.err)
2863
- return S;
2865
+ var B = this.tryParseArgumentClose(i);
2866
+ if (B.err)
2867
+ return B;
2864
2868
  var I = O(i, this.clonePosition());
2865
2869
  if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
2866
- var $ = Ni(l.style.slice(2));
2867
- if (a === "number") {
2868
- var g = this.parseNumberSkeletonFromString($, l.styleLocation);
2869
- return g.err ? g : {
2870
- val: { type: F.number, value: r, location: I, style: g.val },
2870
+ var j = Mi(l.style.slice(2));
2871
+ if (s === "number") {
2872
+ var m = this.parseNumberSkeletonFromString(j, l.styleLocation);
2873
+ return m.err ? m : {
2874
+ val: { type: D.number, value: r, location: I, style: m.val },
2871
2875
  err: null
2872
2876
  };
2873
2877
  } else {
2874
- if ($.length === 0)
2878
+ if (j.length === 0)
2875
2879
  return this.error(H.EXPECT_DATE_TIME_SKELETON, I);
2876
- var Z = $;
2877
- this.locale && (Z = Ei($, this.locale));
2878
- var y = {
2879
- type: Fe.dateTime,
2880
- pattern: Z,
2880
+ var W = j;
2881
+ this.locale && (W = xi(j, this.locale));
2882
+ var b = {
2883
+ type: Ue.dateTime,
2884
+ pattern: W,
2881
2885
  location: l.styleLocation,
2882
- parsedOptions: this.shouldParseSkeletons ? di(Z) : {}
2883
- }, U = a === "date" ? F.date : F.time;
2886
+ parsedOptions: this.shouldParseSkeletons ? pi(W) : {}
2887
+ }, U = s === "date" ? D.date : D.time;
2884
2888
  return {
2885
- val: { type: U, value: r, location: I, style: y },
2889
+ val: { type: U, value: r, location: I, style: b },
2886
2890
  err: null
2887
2891
  };
2888
2892
  }
2889
2893
  }
2890
2894
  return {
2891
2895
  val: {
2892
- type: a === "number" ? F.number : a === "date" ? F.date : F.time,
2896
+ type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2893
2897
  value: r,
2894
2898
  location: I,
2895
2899
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
@@ -2902,41 +2906,41 @@ var Pi = (
2902
2906
  case "select": {
2903
2907
  var w = this.clonePosition();
2904
2908
  if (this.bumpSpace(), !this.bumpIf(","))
2905
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(w, R({}, w)));
2909
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(w, gt({}, w)));
2906
2910
  this.bumpSpace();
2907
- var C = this.parseIdentifierIfPossible(), P = 0;
2908
- if (a !== "select" && C.value === "offset") {
2911
+ var A = this.parseIdentifierIfPossible(), P = 0;
2912
+ if (s !== "select" && A.value === "offset") {
2909
2913
  if (!this.bumpIf(":"))
2910
2914
  return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2911
2915
  this.bumpSpace();
2912
- var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2913
- if (g.err)
2914
- return g;
2915
- this.bumpSpace(), C = this.parseIdentifierIfPossible(), P = g.val;
2916
+ var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2917
+ if (m.err)
2918
+ return m;
2919
+ this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = m.val;
2916
2920
  }
2917
- var N = this.tryParsePluralOrSelectOptions(t, a, n, C);
2918
- if (N.err)
2919
- return N;
2920
- var S = this.tryParseArgumentClose(i);
2921
- if (S.err)
2922
- return S;
2923
- var W = O(i, this.clonePosition());
2924
- return a === "select" ? {
2921
+ var L = this.tryParsePluralOrSelectOptions(t, s, n, A);
2922
+ if (L.err)
2923
+ return L;
2924
+ var B = this.tryParseArgumentClose(i);
2925
+ if (B.err)
2926
+ return B;
2927
+ var Y = O(i, this.clonePosition());
2928
+ return s === "select" ? {
2925
2929
  val: {
2926
- type: F.select,
2930
+ type: D.select,
2927
2931
  value: r,
2928
- options: gn(N.val),
2929
- location: W
2932
+ options: gn(L.val),
2933
+ location: Y
2930
2934
  },
2931
2935
  err: null
2932
2936
  } : {
2933
2937
  val: {
2934
- type: F.plural,
2938
+ type: D.plural,
2935
2939
  value: r,
2936
- options: gn(N.val),
2940
+ options: gn(L.val),
2937
2941
  offset: P,
2938
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2939
- location: W
2942
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2943
+ location: Y
2940
2944
  },
2941
2945
  err: null
2942
2946
  };
@@ -2984,28 +2988,28 @@ var Pi = (
2984
2988
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2985
2989
  var r = [];
2986
2990
  try {
2987
- r = mi(t);
2991
+ r = gi(t);
2988
2992
  } catch (i) {
2989
2993
  return this.error(H.INVALID_NUMBER_SKELETON, n);
2990
2994
  }
2991
2995
  return {
2992
2996
  val: {
2993
- type: Fe.number,
2997
+ type: Ue.number,
2994
2998
  tokens: r,
2995
2999
  location: n,
2996
- parsedOptions: this.shouldParseSkeletons ? vi(r) : {}
3000
+ parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
2997
3001
  },
2998
3002
  err: null
2999
3003
  };
3000
3004
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3001
- for (var o, u = !1, a = [], f = /* @__PURE__ */ new Set(), l = i.value, d = i.location; ; ) {
3005
+ for (var o, u = !1, s = [], f = /* @__PURE__ */ new Set(), l = i.value, d = i.location; ; ) {
3002
3006
  if (l.length === 0) {
3003
- var g = this.clonePosition();
3007
+ var m = this.clonePosition();
3004
3008
  if (n !== "select" && this.bumpIf("=")) {
3005
- var y = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3006
- if (y.err)
3007
- return y;
3008
- d = O(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3009
+ var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3010
+ if (b.err)
3011
+ return b;
3012
+ d = O(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
3009
3013
  } else
3010
3014
  break;
3011
3015
  }
@@ -3015,33 +3019,33 @@ var Pi = (
3015
3019
  var _ = this.clonePosition();
3016
3020
  if (!this.bumpIf("{"))
3017
3021
  return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3018
- var S = this.parseMessage(t + 1, n, r);
3019
- if (S.err)
3020
- return S;
3022
+ var B = this.parseMessage(t + 1, n, r);
3023
+ if (B.err)
3024
+ return B;
3021
3025
  var I = this.tryParseArgumentClose(_);
3022
3026
  if (I.err)
3023
3027
  return I;
3024
- a.push([
3028
+ s.push([
3025
3029
  l,
3026
3030
  {
3027
- value: S.val,
3031
+ value: B.val,
3028
3032
  location: O(_, this.clonePosition())
3029
3033
  }
3030
3034
  ]), f.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, d = o.location;
3031
3035
  }
3032
- return a.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: a, err: null };
3036
+ 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 };
3033
3037
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3034
3038
  var r = 1, i = this.clonePosition();
3035
3039
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3036
3040
  for (var o = !1, u = 0; !this.isEOF(); ) {
3037
- var a = this.char();
3038
- if (a >= 48 && a <= 57)
3039
- o = !0, u = u * 10 + (a - 48), this.bump();
3041
+ var s = this.char();
3042
+ if (s >= 48 && s <= 57)
3043
+ o = !0, u = u * 10 + (s - 48), this.bump();
3040
3044
  else
3041
3045
  break;
3042
3046
  }
3043
3047
  var f = O(i, this.clonePosition());
3044
- return o ? (u *= r, Oi(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
3048
+ return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
3045
3049
  }, e.prototype.offset = function() {
3046
3050
  return this.position.offset;
3047
3051
  }, e.prototype.isEOF = function() {
@@ -3107,43 +3111,43 @@ var Pi = (
3107
3111
  }, e;
3108
3112
  }()
3109
3113
  );
3110
- function qt(e) {
3114
+ function Jt(e) {
3111
3115
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3112
3116
  }
3113
- function Ii(e) {
3114
- return qt(e) || e === 47;
3115
- }
3116
3117
  function Di(e) {
3118
+ return Jt(e) || e === 47;
3119
+ }
3120
+ function Fi(e) {
3117
3121
  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;
3118
3122
  }
3119
3123
  function Yn(e) {
3120
3124
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3121
3125
  }
3122
- function Fi(e) {
3126
+ function Ui(e) {
3123
3127
  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;
3124
3128
  }
3125
- function Qt(e) {
3129
+ function Yt(e) {
3126
3130
  e.forEach(function(t) {
3127
- if (delete t.location, jn(t) || kn(t))
3131
+ if (delete t.location, $n(t) || kn(t))
3128
3132
  for (var n in t.options)
3129
- delete t.options[n].location, Qt(t.options[n].value);
3133
+ delete t.options[n].location, Yt(t.options[n].value);
3130
3134
  else
3131
- Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Xt(t.style) ? delete t.style.location : Vn(t) && Qt(t.children);
3135
+ Un(t) && Xn(t.style) || (Gn(t) || jn(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
3132
3136
  });
3133
3137
  }
3134
- function Ui(e, t) {
3135
- t === void 0 && (t = {}), t = R({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3136
- var n = new Pi(e, t).parse();
3138
+ function Gi(e, t) {
3139
+ t === void 0 && (t = {}), t = gt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3140
+ var n = new Ii(e, t).parse();
3137
3141
  if (n.err) {
3138
3142
  var r = SyntaxError(H[n.err.kind]);
3139
3143
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3140
3144
  }
3141
- return t != null && t.captureLocation || Qt(n.val), n.val;
3145
+ return t != null && t.captureLocation || Yt(n.val), n.val;
3142
3146
  }
3143
- var Ue;
3147
+ var Ge;
3144
3148
  (function(e) {
3145
3149
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3146
- })(Ue || (Ue = {}));
3150
+ })(Ge || (Ge = {}));
3147
3151
  var xt = (
3148
3152
  /** @class */
3149
3153
  function(e) {
@@ -3161,16 +3165,16 @@ var xt = (
3161
3165
  function(e) {
3162
3166
  Et(t, e);
3163
3167
  function t(n, r, i, o) {
3164
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
3168
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3165
3169
  }
3166
3170
  return t;
3167
3171
  }(xt)
3168
- ), Gi = (
3172
+ ), ji = (
3169
3173
  /** @class */
3170
3174
  function(e) {
3171
3175
  Et(t, e);
3172
3176
  function t(n, r, i) {
3173
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ue.INVALID_VALUE, i) || this;
3177
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3174
3178
  }
3175
3179
  return t;
3176
3180
  }(xt)
@@ -3179,132 +3183,132 @@ var xt = (
3179
3183
  function(e) {
3180
3184
  Et(t, e);
3181
3185
  function t(n, r) {
3182
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ue.MISSING_VALUE, r) || this;
3186
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3183
3187
  }
3184
3188
  return t;
3185
3189
  }(xt)
3186
- ), ee;
3190
+ ), J;
3187
3191
  (function(e) {
3188
3192
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3189
- })(ee || (ee = {}));
3190
- function ji(e) {
3193
+ })(J || (J = {}));
3194
+ function ki(e) {
3191
3195
  return e.length < 2 ? e : e.reduce(function(t, n) {
3192
3196
  var r = t[t.length - 1];
3193
- return !r || r.type !== ee.literal || n.type !== ee.literal ? t.push(n) : r.value += n.value, t;
3197
+ return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
3194
3198
  }, []);
3195
3199
  }
3196
- function ki(e) {
3200
+ function Vi(e) {
3197
3201
  return typeof e == "function";
3198
3202
  }
3199
- function dt(e, t, n, r, i, o, u) {
3203
+ function ft(e, t, n, r, i, o, u) {
3200
3204
  if (e.length === 1 && cn(e[0]))
3201
3205
  return [
3202
3206
  {
3203
- type: ee.literal,
3207
+ type: J.literal,
3204
3208
  value: e[0].value
3205
3209
  }
3206
3210
  ];
3207
- for (var a = [], f = 0, l = e; f < l.length; f++) {
3211
+ for (var s = [], f = 0, l = e; f < l.length; f++) {
3208
3212
  var d = l[f];
3209
3213
  if (cn(d)) {
3210
- a.push({
3211
- type: ee.literal,
3214
+ s.push({
3215
+ type: J.literal,
3212
3216
  value: d.value
3213
3217
  });
3214
3218
  continue;
3215
3219
  }
3216
- if (ci(d)) {
3217
- typeof o == "number" && a.push({
3218
- type: ee.literal,
3220
+ if (fi(d)) {
3221
+ typeof o == "number" && s.push({
3222
+ type: J.literal,
3219
3223
  value: n.getNumberFormat(t).format(o)
3220
3224
  });
3221
3225
  continue;
3222
3226
  }
3223
- var g = d.value;
3224
- if (!(i && g in i))
3225
- throw new $i(g, u);
3226
- var y = i[g];
3227
- if (hi(d)) {
3228
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
3229
- type: typeof y == "string" ? ee.literal : ee.object,
3230
- value: y
3227
+ var m = d.value;
3228
+ if (!(i && m in i))
3229
+ throw new $i(m, u);
3230
+ var b = i[m];
3231
+ if (ci(d)) {
3232
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3233
+ type: typeof b == "string" ? J.literal : J.object,
3234
+ value: b
3231
3235
  });
3232
3236
  continue;
3233
3237
  }
3234
3238
  if (Gn(d)) {
3235
- var _ = typeof d.style == "string" ? r.date[d.style] : Xt(d.style) ? d.style.parsedOptions : void 0;
3236
- a.push({
3237
- type: ee.literal,
3238
- value: n.getDateTimeFormat(t, _).format(y)
3239
+ var _ = typeof d.style == "string" ? r.date[d.style] : Wt(d.style) ? d.style.parsedOptions : void 0;
3240
+ s.push({
3241
+ type: J.literal,
3242
+ value: n.getDateTimeFormat(t, _).format(b)
3239
3243
  });
3240
3244
  continue;
3241
3245
  }
3242
- if ($n(d)) {
3243
- var _ = typeof d.style == "string" ? r.time[d.style] : Xt(d.style) ? d.style.parsedOptions : r.time.medium;
3244
- a.push({
3245
- type: ee.literal,
3246
- value: n.getDateTimeFormat(t, _).format(y)
3246
+ if (jn(d)) {
3247
+ var _ = typeof d.style == "string" ? r.time[d.style] : Wt(d.style) ? d.style.parsedOptions : r.time.medium;
3248
+ s.push({
3249
+ type: J.literal,
3250
+ value: n.getDateTimeFormat(t, _).format(b)
3247
3251
  });
3248
3252
  continue;
3249
3253
  }
3250
3254
  if (Un(d)) {
3251
3255
  var _ = typeof d.style == "string" ? r.number[d.style] : Xn(d.style) ? d.style.parsedOptions : void 0;
3252
- _ && _.scale && (y = y * (_.scale || 1)), a.push({
3253
- type: ee.literal,
3254
- value: n.getNumberFormat(t, _).format(y)
3256
+ _ && _.scale && (b = b * (_.scale || 1)), s.push({
3257
+ type: J.literal,
3258
+ value: n.getNumberFormat(t, _).format(b)
3255
3259
  });
3256
3260
  continue;
3257
3261
  }
3258
3262
  if (Vn(d)) {
3259
- var S = d.children, I = d.value, $ = i[I];
3260
- if (!ki($))
3261
- throw new Gi(I, "function", u);
3262
- var Z = dt(S, t, n, r, i, o), U = $(Z.map(function(P) {
3263
+ var B = d.children, I = d.value, j = i[I];
3264
+ if (!Vi(j))
3265
+ throw new ji(I, "function", u);
3266
+ var W = ft(B, t, n, r, i, o), U = j(W.map(function(P) {
3263
3267
  return P.value;
3264
3268
  }));
3265
- Array.isArray(U) || (U = [U]), a.push.apply(a, U.map(function(P) {
3269
+ Array.isArray(U) || (U = [U]), s.push.apply(s, U.map(function(P) {
3266
3270
  return {
3267
- type: typeof P == "string" ? ee.literal : ee.object,
3271
+ type: typeof P == "string" ? J.literal : J.object,
3268
3272
  value: P
3269
3273
  };
3270
3274
  }));
3271
3275
  }
3272
- if (jn(d)) {
3273
- var w = d.options[y] || d.options.other;
3276
+ if ($n(d)) {
3277
+ var w = d.options[b] || d.options.other;
3274
3278
  if (!w)
3275
- throw new yn(d.value, y, Object.keys(d.options), u);
3276
- a.push.apply(a, dt(w.value, t, n, r, i));
3279
+ throw new yn(d.value, b, Object.keys(d.options), u);
3280
+ s.push.apply(s, ft(w.value, t, n, r, i));
3277
3281
  continue;
3278
3282
  }
3279
3283
  if (kn(d)) {
3280
- var w = d.options["=".concat(y)];
3284
+ var w = d.options["=".concat(b)];
3281
3285
  if (!w) {
3282
3286
  if (!Intl.PluralRules)
3283
3287
  throw new xt(`Intl.PluralRules is not available in this environment.
3284
3288
  Try polyfilling it using "@formatjs/intl-pluralrules"
3285
- `, Ue.MISSING_INTL_API, u);
3286
- var C = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3287
- w = d.options[C] || d.options.other;
3289
+ `, Ge.MISSING_INTL_API, u);
3290
+ var A = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3291
+ w = d.options[A] || d.options.other;
3288
3292
  }
3289
3293
  if (!w)
3290
- throw new yn(d.value, y, Object.keys(d.options), u);
3291
- a.push.apply(a, dt(w.value, t, n, r, i, y - (d.offset || 0)));
3294
+ throw new yn(d.value, b, Object.keys(d.options), u);
3295
+ s.push.apply(s, ft(w.value, t, n, r, i, b - (d.offset || 0)));
3292
3296
  continue;
3293
3297
  }
3294
3298
  }
3295
- return ji(a);
3299
+ return ki(s);
3296
3300
  }
3297
- function Vi(e, t) {
3298
- return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3299
- return n[r] = R(R({}, e[r]), t[r] || {}), n;
3301
+ function Xi(e, t) {
3302
+ return t ? fe(fe(fe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3303
+ return n[r] = fe(fe({}, e[r]), t[r] || {}), n;
3300
3304
  }, {})) : e;
3301
3305
  }
3302
- function Xi(e, t) {
3306
+ function zi(e, t) {
3303
3307
  return t ? Object.keys(e).reduce(function(n, r) {
3304
- return n[r] = Vi(e[r], t[r]), n;
3305
- }, R({}, e)) : e;
3308
+ return n[r] = Xi(e[r], t[r]), n;
3309
+ }, fe({}, e)) : e;
3306
3310
  }
3307
- function Ut(e) {
3311
+ function jt(e) {
3308
3312
  return {
3309
3313
  create: function() {
3310
3314
  return {
@@ -3318,39 +3322,39 @@ function Ut(e) {
3318
3322
  }
3319
3323
  };
3320
3324
  }
3321
- function zi(e) {
3325
+ function Wi(e) {
3322
3326
  return e === void 0 && (e = {
3323
3327
  number: {},
3324
3328
  dateTime: {},
3325
3329
  pluralRules: {}
3326
3330
  }), {
3327
- getNumberFormat: It(function() {
3331
+ getNumberFormat: Ft(function() {
3328
3332
  for (var t, n = [], r = 0; r < arguments.length; r++)
3329
3333
  n[r] = arguments[r];
3330
- return new ((t = Intl.NumberFormat).bind.apply(t, Pt([void 0], n, !1)))();
3334
+ return new ((t = Intl.NumberFormat).bind.apply(t, Dt([void 0], n, !1)))();
3331
3335
  }, {
3332
- cache: Ut(e.number),
3333
- strategy: Dt.variadic
3336
+ cache: jt(e.number),
3337
+ strategy: Ut.variadic
3334
3338
  }),
3335
- getDateTimeFormat: It(function() {
3339
+ getDateTimeFormat: Ft(function() {
3336
3340
  for (var t, n = [], r = 0; r < arguments.length; r++)
3337
3341
  n[r] = arguments[r];
3338
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pt([void 0], n, !1)))();
3342
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Dt([void 0], n, !1)))();
3339
3343
  }, {
3340
- cache: Ut(e.dateTime),
3341
- strategy: Dt.variadic
3344
+ cache: jt(e.dateTime),
3345
+ strategy: Ut.variadic
3342
3346
  }),
3343
- getPluralRules: It(function() {
3347
+ getPluralRules: Ft(function() {
3344
3348
  for (var t, n = [], r = 0; r < arguments.length; r++)
3345
3349
  n[r] = arguments[r];
3346
- return new ((t = Intl.PluralRules).bind.apply(t, Pt([void 0], n, !1)))();
3350
+ return new ((t = Intl.PluralRules).bind.apply(t, Dt([void 0], n, !1)))();
3347
3351
  }, {
3348
- cache: Ut(e.pluralRules),
3349
- strategy: Dt.variadic
3352
+ cache: jt(e.pluralRules),
3353
+ strategy: Ut.variadic
3350
3354
  })
3351
3355
  };
3352
3356
  }
3353
- var Wi = (
3357
+ var Zi = (
3354
3358
  /** @class */
3355
3359
  function() {
3356
3360
  function e(t, n, r, i) {
@@ -3364,12 +3368,12 @@ var Wi = (
3364
3368
  var l = o.formatToParts(f);
3365
3369
  if (l.length === 1)
3366
3370
  return l[0].value;
3367
- var d = l.reduce(function(g, y) {
3368
- return !g.length || y.type !== ee.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
3371
+ var d = l.reduce(function(m, b) {
3372
+ return !m.length || b.type !== J.literal || typeof m[m.length - 1] != "string" ? m.push(b.value) : m[m.length - 1] += b.value, m;
3369
3373
  }, []);
3370
3374
  return d.length <= 1 ? d[0] || "" : d;
3371
3375
  }, this.formatToParts = function(f) {
3372
- return dt(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3376
+ return ft(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3373
3377
  }, this.resolvedOptions = function() {
3374
3378
  var f;
3375
3379
  return {
@@ -3382,13 +3386,13 @@ var Wi = (
3382
3386
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3383
3387
  var u = i || {};
3384
3388
  u.formatters;
3385
- var a = ri(u, ["formatters"]);
3386
- this.ast = e.__parse(t, R(R({}, a), { locale: this.resolvedLocale }));
3389
+ var s = ri(u, ["formatters"]);
3390
+ this.ast = e.__parse(t, fe(fe({}, s), { locale: this.resolvedLocale }));
3387
3391
  } else
3388
3392
  this.ast = t;
3389
3393
  if (!Array.isArray(this.ast))
3390
3394
  throw new TypeError("A message must be provided as a String or AST.");
3391
- this.formats = Xi(e.formats, r), this.formatters = i && i.formatters || zi(this.formatterCache);
3395
+ this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3392
3396
  }
3393
3397
  return Object.defineProperty(e, "defaultLocale", {
3394
3398
  get: function() {
@@ -3401,7 +3405,7 @@ var Wi = (
3401
3405
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3402
3406
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3403
3407
  }
3404
- }, e.__parse = Ui, e.formats = {
3408
+ }, e.__parse = Gi, e.formats = {
3405
3409
  number: {
3406
3410
  integer: {
3407
3411
  maximumFractionDigits: 0
@@ -3462,7 +3466,7 @@ var Wi = (
3462
3466
  }, e;
3463
3467
  }()
3464
3468
  );
3465
- function Zi(e, t) {
3469
+ function qi(e, t) {
3466
3470
  if (t == null)
3467
3471
  return;
3468
3472
  if (t in e)
@@ -3483,33 +3487,33 @@ function Zi(e, t) {
3483
3487
  r = void 0;
3484
3488
  return r;
3485
3489
  }
3486
- const Se = {}, qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Kn = (e, t) => {
3490
+ const Se = {}, Qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Kn = (e, t) => {
3487
3491
  if (t == null)
3488
3492
  return;
3489
3493
  if (t in Se && e in Se[t])
3490
3494
  return Se[t][e];
3491
3495
  const n = _t(t);
3492
3496
  for (let r = 0; r < n.length; r++) {
3493
- const i = n[r], o = Ji(i, e);
3497
+ const i = n[r], o = Yi(i, e);
3494
3498
  if (o)
3495
- return qi(e, t, o);
3499
+ return Qi(e, t, o);
3496
3500
  }
3497
3501
  };
3498
3502
  let rn;
3499
3503
  const rt = vt({});
3500
- function Qi(e) {
3504
+ function Ji(e) {
3501
3505
  return rn[e] || null;
3502
3506
  }
3503
3507
  function er(e) {
3504
3508
  return e in rn;
3505
3509
  }
3506
- function Ji(e, t) {
3510
+ function Yi(e, t) {
3507
3511
  if (!er(e))
3508
3512
  return null;
3509
- const n = Qi(e);
3510
- return Zi(n, t);
3513
+ const n = Ji(e);
3514
+ return qi(n, t);
3511
3515
  }
3512
- function Yi(e) {
3516
+ function Ki(e) {
3513
3517
  if (e == null)
3514
3518
  return;
3515
3519
  const t = _t(e);
@@ -3522,25 +3526,25 @@ function Yi(e) {
3522
3526
  function tr(e, ...t) {
3523
3527
  delete Se[e], rt.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3524
3528
  }
3525
- je(
3529
+ ke(
3526
3530
  [rt],
3527
3531
  ([e]) => Object.keys(e)
3528
3532
  );
3529
3533
  rt.subscribe((e) => rn = e);
3530
- const pt = {};
3531
- function Ki(e, t) {
3532
- pt[e].delete(t), pt[e].size === 0 && delete pt[e];
3534
+ const dt = {};
3535
+ function eo(e, t) {
3536
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3533
3537
  }
3534
3538
  function nr(e) {
3535
- return pt[e];
3539
+ return dt[e];
3536
3540
  }
3537
- function eo(e) {
3541
+ function to(e) {
3538
3542
  return _t(e).map((t) => {
3539
3543
  const n = nr(t);
3540
3544
  return [t, n ? [...n] : []];
3541
3545
  }).filter(([, t]) => t.length > 0);
3542
3546
  }
3543
- function Jt(e) {
3547
+ function Kt(e) {
3544
3548
  return e == null ? !1 : _t(e).some(
3545
3549
  (t) => {
3546
3550
  var n;
@@ -3548,27 +3552,27 @@ function Jt(e) {
3548
3552
  }
3549
3553
  );
3550
3554
  }
3551
- function to(e, t) {
3555
+ function no(e, t) {
3552
3556
  return Promise.all(
3553
- t.map((r) => (Ki(e, r), r().then((i) => i.default || i)))
3557
+ t.map((r) => (eo(e, r), r().then((i) => i.default || i)))
3554
3558
  ).then((r) => tr(e, ...r));
3555
3559
  }
3556
3560
  const Ye = {};
3557
3561
  function rr(e) {
3558
- if (!Jt(e))
3562
+ if (!Kt(e))
3559
3563
  return e in Ye ? Ye[e] : Promise.resolve();
3560
- const t = eo(e);
3564
+ const t = to(e);
3561
3565
  return Ye[e] = Promise.all(
3562
3566
  t.map(
3563
- ([n, r]) => to(n, r)
3567
+ ([n, r]) => no(n, r)
3564
3568
  )
3565
3569
  ).then(() => {
3566
- if (Jt(e))
3570
+ if (Kt(e))
3567
3571
  return rr(e);
3568
3572
  delete Ye[e];
3569
3573
  }), Ye[e];
3570
3574
  }
3571
- const no = {
3575
+ const ro = {
3572
3576
  number: {
3573
3577
  scientific: { notation: "scientific" },
3574
3578
  engineering: { notation: "engineering" },
@@ -3597,57 +3601,57 @@ const no = {
3597
3601
  timeZoneName: "short"
3598
3602
  }
3599
3603
  }
3600
- }, ro = {
3604
+ }, io = {
3601
3605
  fallbackLocale: null,
3602
3606
  loadingDelay: 200,
3603
- formats: no,
3607
+ formats: ro,
3604
3608
  warnOnMissingMessages: !0,
3605
3609
  handleMissingMessage: void 0,
3606
3610
  ignoreTag: !0
3607
- }, io = ro;
3608
- function Ge() {
3609
- return io;
3611
+ }, oo = io;
3612
+ function je() {
3613
+ return oo;
3610
3614
  }
3611
- const Gt = vt(!1);
3612
- var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ho = (e, t) => {
3615
+ const $t = vt(!1);
3616
+ var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
3613
3617
  for (var n in t || (t = {}))
3614
- uo.call(t, n) && En(e, n, t[n]);
3618
+ lo.call(t, n) && En(e, n, t[n]);
3615
3619
  if (vn)
3616
3620
  for (var n of vn(t))
3617
- lo.call(t, n) && En(e, n, t[n]);
3621
+ ho.call(t, n) && En(e, n, t[n]);
3618
3622
  return e;
3619
- }, co = (e, t) => ao(e, so(t));
3620
- let Yt;
3623
+ }, fo = (e, t) => so(e, uo(t));
3624
+ let en;
3621
3625
  const bt = vt(null);
3622
3626
  function xn(e) {
3623
3627
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3624
3628
  }
3625
- function _t(e, t = Ge().fallbackLocale) {
3629
+ function _t(e, t = je().fallbackLocale) {
3626
3630
  const n = xn(e);
3627
3631
  return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
3628
3632
  }
3629
- function He() {
3630
- return Yt != null ? Yt : void 0;
3633
+ function Oe() {
3634
+ return en != null ? en : void 0;
3631
3635
  }
3632
3636
  bt.subscribe((e) => {
3633
- Yt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3637
+ en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3634
3638
  });
3635
- const fo = (e) => {
3636
- if (e && Yi(e) && Jt(e)) {
3637
- const { loadingDelay: t } = Ge();
3639
+ const po = (e) => {
3640
+ if (e && Ki(e) && Kt(e)) {
3641
+ const { loadingDelay: t } = je();
3638
3642
  let n;
3639
- return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
3640
- () => Gt.set(!0),
3643
+ return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3644
+ () => $t.set(!0),
3641
3645
  t
3642
- ) : Gt.set(!0), rr(e).then(() => {
3646
+ ) : $t.set(!0), rr(e).then(() => {
3643
3647
  bt.set(e);
3644
3648
  }).finally(() => {
3645
- clearTimeout(n), Gt.set(!1);
3649
+ clearTimeout(n), $t.set(!1);
3646
3650
  });
3647
3651
  }
3648
3652
  return bt.set(e);
3649
- }, ke = co(ho({}, bt), {
3650
- set: fo
3653
+ }, Ve = fo(co({}, bt), {
3654
+ set: po
3651
3655
  }), Tt = (e) => {
3652
3656
  const t = /* @__PURE__ */ Object.create(null);
3653
3657
  return (r) => {
@@ -3655,14 +3659,14 @@ const fo = (e) => {
3655
3659
  return i in t ? t[i] : t[i] = e(r);
3656
3660
  };
3657
3661
  };
3658
- var po = Object.defineProperty, yt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3662
+ var mo = Object.defineProperty, yt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3659
3663
  for (var n in t || (t = {}))
3660
3664
  ir.call(t, n) && _n(e, n, t[n]);
3661
3665
  if (yt)
3662
3666
  for (var n of yt(t))
3663
3667
  or.call(t, n) && _n(e, n, t[n]);
3664
3668
  return e;
3665
- }, Ve = (e, t) => {
3669
+ }, Xe = (e, t) => {
3666
3670
  var n = {};
3667
3671
  for (var r in e)
3668
3672
  ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -3672,66 +3676,66 @@ var po = Object.defineProperty, yt = Object.getOwnPropertySymbols, ir = Object.p
3672
3676
  return n;
3673
3677
  };
3674
3678
  const nt = (e, t) => {
3675
- const { formats: n } = Ge();
3679
+ const { formats: n } = je();
3676
3680
  if (e in n && t in n[e])
3677
3681
  return n[e][t];
3678
3682
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3679
- }, mo = Tt(
3683
+ }, go = Tt(
3680
3684
  (e) => {
3681
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3685
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3682
3686
  if (n == null)
3683
3687
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3684
3688
  return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3685
3689
  }
3686
- ), go = Tt(
3690
+ ), bo = Tt(
3687
3691
  (e) => {
3688
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3692
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3689
3693
  if (n == null)
3690
3694
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3691
3695
  return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3692
3696
  }
3693
- ), bo = Tt(
3697
+ ), yo = Tt(
3694
3698
  (e) => {
3695
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3699
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3696
3700
  if (n == null)
3697
3701
  throw new Error(
3698
3702
  '[svelte-i18n] A "locale" must be set to format time values'
3699
3703
  );
3700
3704
  return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3701
3705
  }
3702
- ), yo = (e = {}) => {
3706
+ ), vo = (e = {}) => {
3703
3707
  var t = e, {
3704
- locale: n = He()
3705
- } = t, r = Ve(t, [
3706
- "locale"
3707
- ]);
3708
- return mo(on({ locale: n }, r));
3709
- }, vo = (e = {}) => {
3710
- var t = e, {
3711
- locale: n = He()
3712
- } = t, r = Ve(t, [
3708
+ locale: n = Oe()
3709
+ } = t, r = Xe(t, [
3713
3710
  "locale"
3714
3711
  ]);
3715
3712
  return go(on({ locale: n }, r));
3716
3713
  }, Eo = (e = {}) => {
3717
3714
  var t = e, {
3718
- locale: n = He()
3719
- } = t, r = Ve(t, [
3715
+ locale: n = Oe()
3716
+ } = t, r = Xe(t, [
3720
3717
  "locale"
3721
3718
  ]);
3722
3719
  return bo(on({ locale: n }, r));
3723
- }, xo = Tt(
3720
+ }, xo = (e = {}) => {
3721
+ var t = e, {
3722
+ locale: n = Oe()
3723
+ } = t, r = Xe(t, [
3724
+ "locale"
3725
+ ]);
3726
+ return yo(on({ locale: n }, r));
3727
+ }, _o = Tt(
3724
3728
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3725
- (e, t = He()) => new Wi(e, t, Ge().formats, {
3726
- ignoreTag: Ge().ignoreTag
3729
+ (e, t = Oe()) => new Zi(e, t, je().formats, {
3730
+ ignoreTag: je().ignoreTag
3727
3731
  })
3728
- ), _o = (e, t = {}) => {
3732
+ ), To = (e, t = {}) => {
3729
3733
  var n, r, i, o;
3730
3734
  let u = t;
3731
3735
  typeof e == "object" && (u = e, e = u.id);
3732
3736
  const {
3733
- values: a,
3734
- locale: f = He(),
3737
+ values: s,
3738
+ locale: f = Oe(),
3735
3739
  default: l
3736
3740
  } = u;
3737
3741
  if (f == null)
@@ -3740,33 +3744,33 @@ const nt = (e, t) => {
3740
3744
  );
3741
3745
  let d = Kn(e, f);
3742
3746
  if (!d)
3743
- d = (o = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3747
+ d = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3744
3748
  else if (typeof d != "string")
3745
3749
  return console.warn(
3746
3750
  `[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.`
3747
3751
  ), d;
3748
- if (!a)
3752
+ if (!s)
3749
3753
  return d;
3750
- let g = d;
3754
+ let m = d;
3751
3755
  try {
3752
- g = xo(d, f).format(a);
3753
- } catch (y) {
3754
- y instanceof Error && console.warn(
3756
+ m = _o(d, f).format(s);
3757
+ } catch (b) {
3758
+ b instanceof Error && console.warn(
3755
3759
  `[svelte-i18n] Message "${e}" has syntax error:`,
3756
- y.message
3760
+ b.message
3757
3761
  );
3758
3762
  }
3759
- return g;
3760
- }, To = (e, t) => Eo(t).format(e), Bo = (e, t) => vo(t).format(e), So = (e, t) => yo(t).format(e), wo = (e, t = He()) => Kn(e, t), Ao = je([ke, rt], () => _o);
3761
- je([ke], () => To);
3762
- je([ke], () => Bo);
3763
- je([ke], () => So);
3764
- je([ke, rt], () => wo);
3763
+ return m;
3764
+ }, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Oe()) => Kn(e, t), Co = ke([Ve, rt], () => To);
3765
+ ke([Ve], () => Bo);
3766
+ ke([Ve], () => So);
3767
+ ke([Ve], () => wo);
3768
+ ke([Ve, rt], () => Ao);
3765
3769
  function Tn(e, t) {
3766
3770
  tr(e, t);
3767
3771
  }
3768
- function Co(e) {
3769
- ke.set(e);
3772
+ function Ho(e) {
3773
+ Ve.set(e);
3770
3774
  }
3771
3775
  const Bn = {
3772
3776
  en: {
@@ -3968,7 +3972,7 @@ const Bn = {
3968
3972
  Loading: "Loading ..."
3969
3973
  }
3970
3974
  };
3971
- var Kt = { exports: {} };
3975
+ var tn = { exports: {} };
3972
3976
  /** @license
3973
3977
  * eventsource.js
3974
3978
  * Available under MIT License (MIT)
@@ -3976,30 +3980,30 @@ var Kt = { exports: {} };
3976
3980
  */
3977
3981
  (function(e, t) {
3978
3982
  (function(n) {
3979
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, a = n.ActiveXObject, f = n.EventSource, l = n.document, d = n.Promise, g = n.fetch, y = n.Response, _ = n.TextDecoder, S = n.TextEncoder, I = n.AbortController;
3980
- if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
3983
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, f = n.EventSource, l = n.document, d = n.Promise, m = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, I = n.AbortController;
3984
+ if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(c) {
3981
3985
  l.readyState = "complete";
3982
- }, !1)), o == null && a != null && (o = function() {
3983
- return new a("Microsoft.XMLHTTP");
3984
- }), Object.create == null && (Object.create = function(h) {
3985
- function v() {
3986
+ }, !1)), o == null && s != null && (o = function() {
3987
+ return new s("Microsoft.XMLHTTP");
3988
+ }), Object.create == null && (Object.create = function(c) {
3989
+ function a() {
3986
3990
  }
3987
- return v.prototype = h, new v();
3991
+ return a.prototype = c, new a();
3988
3992
  }), Date.now || (Date.now = function() {
3989
3993
  return (/* @__PURE__ */ new Date()).getTime();
3990
3994
  }), I == null) {
3991
- var $ = g;
3992
- g = function(h, v) {
3993
- var s = v.signal;
3994
- return $(h, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(c) {
3995
- var p = c.body.getReader();
3996
- return s._reader = p, s._aborted && s._reader.cancel(), {
3997
- status: c.status,
3998
- statusText: c.statusText,
3999
- headers: c.headers,
3995
+ var j = m;
3996
+ m = function(c, a) {
3997
+ var p = a.signal;
3998
+ return j(c, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(h) {
3999
+ var g = h.body.getReader();
4000
+ return p._reader = g, p._aborted && p._reader.cancel(), {
4001
+ status: h.status,
4002
+ statusText: h.statusText,
4003
+ headers: h.headers,
4000
4004
  body: {
4001
4005
  getReader: function() {
4002
- return p;
4006
+ return g;
4003
4007
  }
4004
4008
  }
4005
4009
  };
@@ -4013,407 +4017,407 @@ var Kt = { exports: {} };
4013
4017
  };
4014
4018
  };
4015
4019
  }
4016
- function Z() {
4020
+ function W() {
4017
4021
  this.bitsNeeded = 0, this.codePoint = 0;
4018
4022
  }
4019
- Z.prototype.decode = function(h) {
4020
- function v(A, L, T) {
4021
- if (T === 1)
4022
- return A >= 128 >> L && A << L <= 2047;
4023
- if (T === 2)
4024
- return A >= 2048 >> L && A << L <= 55295 || A >= 57344 >> L && A << L <= 65535;
4025
- if (T === 3)
4026
- return A >= 65536 >> L && A << L <= 1114111;
4023
+ W.prototype.decode = function(c) {
4024
+ function a(C, R, S) {
4025
+ if (S === 1)
4026
+ return C >= 128 >> R && C << R <= 2047;
4027
+ if (S === 2)
4028
+ return C >= 2048 >> R && C << R <= 55295 || C >= 57344 >> R && C << R <= 65535;
4029
+ if (S === 3)
4030
+ return C >= 65536 >> R && C << R <= 1114111;
4027
4031
  throw new Error();
4028
4032
  }
4029
- function s(A, L) {
4030
- if (A === 6 * 1)
4031
- return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
4032
- if (A === 6 * 2)
4033
- return L > 15 ? 3 : 2;
4034
- if (A === 6 * 3)
4033
+ function p(C, R) {
4034
+ if (C === 6 * 1)
4035
+ return R >> 6 > 15 ? 3 : R > 31 ? 2 : 1;
4036
+ if (C === 6 * 2)
4037
+ return R > 15 ? 3 : 2;
4038
+ if (C === 6 * 3)
4035
4039
  return 3;
4036
4040
  throw new Error();
4037
4041
  }
4038
- for (var c = 65533, p = "", m = this.bitsNeeded, E = this.codePoint, B = 0; B < h.length; B += 1) {
4039
- var b = h[B];
4040
- m !== 0 && (b < 128 || b > 191 || !v(E << 6 | b & 63, m - 6, s(m, E))) && (m = 0, E = c, p += String.fromCharCode(E)), m === 0 ? (b >= 0 && b <= 127 ? (m = 0, E = b) : b >= 192 && b <= 223 ? (m = 6 * 1, E = b & 31) : b >= 224 && b <= 239 ? (m = 6 * 2, E = b & 15) : b >= 240 && b <= 247 ? (m = 6 * 3, E = b & 7) : (m = 0, E = c), m !== 0 && !v(E, m, s(m, E)) && (m = 0, E = c)) : (m -= 6, E = E << 6 | b & 63), m === 0 && (E <= 65535 ? p += String.fromCharCode(E) : (p += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), p += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
4042
+ for (var h = 65533, g = "", y = this.bitsNeeded, E = this.codePoint, v = 0; v < c.length; v += 1) {
4043
+ var T = c[v];
4044
+ y !== 0 && (T < 128 || T > 191 || !a(E << 6 | T & 63, y - 6, p(y, E))) && (y = 0, E = h, g += 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 = h), y !== 0 && !a(E, y, p(y, E)) && (y = 0, E = h)) : (y -= 6, E = E << 6 | T & 63), y === 0 && (E <= 65535 ? g += String.fromCharCode(E) : (g += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), g += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
4041
4045
  }
4042
- return this.bitsNeeded = m, this.codePoint = E, p;
4046
+ return this.bitsNeeded = y, this.codePoint = E, g;
4043
4047
  };
4044
4048
  var U = function() {
4045
4049
  try {
4046
- return new _().decode(new S().encode("test"), { stream: !0 }) === "test";
4047
- } catch (h) {
4048
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4050
+ return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4051
+ } catch (c) {
4052
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4049
4053
  }
4050
4054
  return !1;
4051
4055
  };
4052
- (_ == null || S == null || !U()) && (_ = Z);
4056
+ (_ == null || B == null || !U()) && (_ = W);
4053
4057
  var w = function() {
4054
4058
  };
4055
- function C(h) {
4056
- 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;
4059
+ function A(c) {
4060
+ 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 = c, this._sendTimeout = 0, this._abort = w;
4057
4061
  }
4058
- C.prototype.open = function(h, v) {
4062
+ A.prototype.open = function(c, a) {
4059
4063
  this._abort(!0);
4060
- var s = this, c = this._xhr, p = 1, m = 0;
4061
- this._abort = function(T) {
4062
- s._sendTimeout !== 0 && (i(s._sendTimeout), s._sendTimeout = 0), (p === 1 || p === 2 || p === 3) && (p = 4, c.onload = w, c.onerror = w, c.onabort = w, c.onprogress = w, c.onreadystatechange = w, c.abort(), m !== 0 && (i(m), m = 0), T || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), p = 0;
4064
+ var p = this, h = this._xhr, g = 1, y = 0;
4065
+ this._abort = function(S) {
4066
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (g === 1 || g === 2 || g === 3) && (g = 4, h.onload = w, h.onerror = w, h.onabort = w, h.onprogress = w, h.onreadystatechange = w, h.abort(), y !== 0 && (i(y), y = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), g = 0;
4063
4067
  };
4064
4068
  var E = function() {
4065
- if (p === 1) {
4066
- var T = 0, D = "", Q = void 0;
4067
- if ("contentType" in c)
4068
- T = 200, D = "OK", Q = c.contentType;
4069
+ if (g === 1) {
4070
+ var S = 0, N = "", ge = void 0;
4071
+ if ("contentType" in h)
4072
+ S = 200, N = "OK", ge = h.contentType;
4069
4073
  else
4070
4074
  try {
4071
- T = c.status, D = c.statusText, Q = c.getResponseHeader("Content-Type");
4075
+ S = h.status, N = h.statusText, ge = h.getResponseHeader("Content-Type");
4072
4076
  } catch (Qe) {
4073
- T = 0, D = "", Q = void 0;
4077
+ S = 0, N = "", ge = void 0;
4074
4078
  }
4075
- T !== 0 && (p = 2, s.readyState = 2, s.status = T, s.statusText = D, s._contentType = Q, s.onreadystatechange());
4079
+ S !== 0 && (g = 2, p.readyState = 2, p.status = S, p.statusText = N, p._contentType = ge, p.onreadystatechange());
4076
4080
  }
4077
- }, B = function() {
4078
- if (E(), p === 2 || p === 3) {
4079
- p = 3;
4080
- var T = "";
4081
+ }, v = function() {
4082
+ if (E(), g === 2 || g === 3) {
4083
+ g = 3;
4084
+ var S = "";
4081
4085
  try {
4082
- T = c.responseText;
4083
- } catch (D) {
4086
+ S = h.responseText;
4087
+ } catch (N) {
4084
4088
  }
4085
- s.readyState = 3, s.responseText = T, s.onprogress();
4089
+ p.readyState = 3, p.responseText = S, p.onprogress();
4086
4090
  }
4087
- }, b = function(T, D) {
4088
- if ((D == null || D.preventDefault == null) && (D = {
4091
+ }, T = function(S, N) {
4092
+ if ((N == null || N.preventDefault == null) && (N = {
4089
4093
  preventDefault: w
4090
- }), B(), p === 1 || p === 2 || p === 3) {
4091
- if (p = 4, m !== 0 && (i(m), m = 0), s.readyState = 4, T === "load")
4092
- s.onload(D);
4093
- else if (T === "error")
4094
- s.onerror(D);
4095
- else if (T === "abort")
4096
- s.onabort(D);
4094
+ }), v(), g === 1 || g === 2 || g === 3) {
4095
+ if (g = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, S === "load")
4096
+ p.onload(N);
4097
+ else if (S === "error")
4098
+ p.onerror(N);
4099
+ else if (S === "abort")
4100
+ p.onabort(N);
4097
4101
  else
4098
4102
  throw new TypeError();
4099
- s.onreadystatechange();
4103
+ p.onreadystatechange();
4100
4104
  }
4101
- }, A = function(T) {
4102
- c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && b(c.responseText === "" ? "error" : "load", T) : c.readyState === 3 ? "onprogress" in c || B() : c.readyState === 2 && E());
4103
- }, L = function() {
4104
- m = r(function() {
4105
- L();
4106
- }, 500), c.readyState === 3 && B();
4105
+ }, C = function(S) {
4106
+ h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && T(h.responseText === "" ? "error" : "load", S) : h.readyState === 3 ? "onprogress" in h || v() : h.readyState === 2 && E());
4107
+ }, R = function() {
4108
+ y = r(function() {
4109
+ R();
4110
+ }, 500), h.readyState === 3 && v();
4107
4111
  };
4108
- "onload" in c && (c.onload = function(T) {
4109
- b("load", T);
4110
- }), "onerror" in c && (c.onerror = function(T) {
4111
- b("error", T);
4112
- }), "onabort" in c && (c.onabort = function(T) {
4113
- b("abort", T);
4114
- }), "onprogress" in c && (c.onprogress = B), "onreadystatechange" in c && (c.onreadystatechange = function(T) {
4115
- A(T);
4116
- }), ("contentType" in c || !("ontimeout" in o.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(h, v, !0), "readyState" in c && (m = r(function() {
4117
- L();
4112
+ "onload" in h && (h.onload = function(S) {
4113
+ T("load", S);
4114
+ }), "onerror" in h && (h.onerror = function(S) {
4115
+ T("error", S);
4116
+ }), "onabort" in h && (h.onabort = function(S) {
4117
+ T("abort", S);
4118
+ }), "onprogress" in h && (h.onprogress = v), "onreadystatechange" in h && (h.onreadystatechange = function(S) {
4119
+ C(S);
4120
+ }), ("contentType" in h || !("ontimeout" in o.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(c, a, !0), "readyState" in h && (y = r(function() {
4121
+ R();
4118
4122
  }, 0));
4119
- }, C.prototype.abort = function() {
4123
+ }, A.prototype.abort = function() {
4120
4124
  this._abort(!1);
4121
- }, C.prototype.getResponseHeader = function(h) {
4125
+ }, A.prototype.getResponseHeader = function(c) {
4122
4126
  return this._contentType;
4123
- }, C.prototype.setRequestHeader = function(h, v) {
4124
- var s = this._xhr;
4125
- "setRequestHeader" in s && s.setRequestHeader(h, v);
4126
- }, C.prototype.getAllResponseHeaders = function() {
4127
+ }, A.prototype.setRequestHeader = function(c, a) {
4128
+ var p = this._xhr;
4129
+ "setRequestHeader" in p && p.setRequestHeader(c, a);
4130
+ }, A.prototype.getAllResponseHeaders = function() {
4127
4131
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4128
- }, C.prototype.send = function() {
4132
+ }, A.prototype.send = function() {
4129
4133
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4130
- var h = this;
4131
- h._sendTimeout = r(function() {
4132
- h._sendTimeout = 0, h.send();
4134
+ var c = this;
4135
+ c._sendTimeout = r(function() {
4136
+ c._sendTimeout = 0, c.send();
4133
4137
  }, 4);
4134
4138
  return;
4135
4139
  }
4136
- var v = this._xhr;
4137
- "withCredentials" in v && (v.withCredentials = this.withCredentials);
4140
+ var a = this._xhr;
4141
+ "withCredentials" in a && (a.withCredentials = this.withCredentials);
4138
4142
  try {
4139
- v.send(void 0);
4140
- } catch (s) {
4141
- throw s;
4143
+ a.send(void 0);
4144
+ } catch (p) {
4145
+ throw p;
4142
4146
  }
4143
4147
  };
4144
- function P(h) {
4145
- return h.replace(/[A-Z]/g, function(v) {
4146
- return String.fromCharCode(v.charCodeAt(0) + 32);
4148
+ function P(c) {
4149
+ return c.replace(/[A-Z]/g, function(a) {
4150
+ return String.fromCharCode(a.charCodeAt(0) + 32);
4147
4151
  });
4148
4152
  }
4149
- function N(h) {
4150
- for (var v = /* @__PURE__ */ Object.create(null), s = h.split(`\r
4151
- `), c = 0; c < s.length; c += 1) {
4152
- var p = s[c], m = p.split(": "), E = m.shift(), B = m.join(": ");
4153
- v[P(E)] = B;
4153
+ function L(c) {
4154
+ for (var a = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4155
+ `), h = 0; h < p.length; h += 1) {
4156
+ var g = p[h], y = g.split(": "), E = y.shift(), v = y.join(": ");
4157
+ a[P(E)] = v;
4154
4158
  }
4155
- this._map = v;
4159
+ this._map = a;
4156
4160
  }
4157
- N.prototype.get = function(h) {
4158
- return this._map[P(h)];
4161
+ L.prototype.get = function(c) {
4162
+ return this._map[P(c)];
4159
4163
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4160
- function W() {
4164
+ function Y() {
4161
4165
  }
4162
- W.prototype.open = function(h, v, s, c, p, m, E) {
4163
- h.open("GET", p);
4164
- var B = 0;
4165
- h.onprogress = function() {
4166
- var A = h.responseText, L = A.slice(B);
4167
- B += L.length, s(L);
4168
- }, h.onerror = function(A) {
4169
- A.preventDefault(), c(new Error("NetworkError"));
4170
- }, h.onload = function() {
4171
- c(null);
4172
- }, h.onabort = function() {
4173
- c(null);
4174
- }, h.onreadystatechange = function() {
4175
- if (h.readyState === o.HEADERS_RECEIVED) {
4176
- var A = h.status, L = h.statusText, T = h.getResponseHeader("Content-Type"), D = h.getAllResponseHeaders();
4177
- v(A, L, T, new N(D));
4166
+ Y.prototype.open = function(c, a, p, h, g, y, E) {
4167
+ c.open("GET", g);
4168
+ var v = 0;
4169
+ c.onprogress = function() {
4170
+ var C = c.responseText, R = C.slice(v);
4171
+ v += R.length, p(R);
4172
+ }, c.onerror = function(C) {
4173
+ C.preventDefault(), h(new Error("NetworkError"));
4174
+ }, c.onload = function() {
4175
+ h(null);
4176
+ }, c.onabort = function() {
4177
+ h(null);
4178
+ }, c.onreadystatechange = function() {
4179
+ if (c.readyState === o.HEADERS_RECEIVED) {
4180
+ var C = c.status, R = c.statusText, S = c.getResponseHeader("Content-Type"), N = c.getAllResponseHeaders();
4181
+ a(C, R, S, new L(N));
4178
4182
  }
4179
- }, h.withCredentials = m;
4180
- for (var b in E)
4181
- Object.prototype.hasOwnProperty.call(E, b) && h.setRequestHeader(b, E[b]);
4182
- return h.send(), h;
4183
+ }, c.withCredentials = y;
4184
+ for (var T in E)
4185
+ Object.prototype.hasOwnProperty.call(E, T) && c.setRequestHeader(T, E[T]);
4186
+ return c.send(), c;
4183
4187
  };
4184
- function ve(h) {
4185
- this._headers = h;
4188
+ function _e(c) {
4189
+ this._headers = c;
4186
4190
  }
4187
- ve.prototype.get = function(h) {
4188
- return this._headers.get(h);
4191
+ _e.prototype.get = function(c) {
4192
+ return this._headers.get(c);
4189
4193
  };
4190
- function Ee() {
4194
+ function pe() {
4191
4195
  }
4192
- Ee.prototype.open = function(h, v, s, c, p, m, E) {
4193
- var B = null, b = new I(), A = b.signal, L = new _();
4194
- return g(p, {
4196
+ pe.prototype.open = function(c, a, p, h, g, y, E) {
4197
+ var v = null, T = new I(), C = T.signal, R = new _();
4198
+ return m(g, {
4195
4199
  headers: E,
4196
- credentials: m ? "include" : "same-origin",
4197
- signal: A,
4200
+ credentials: y ? "include" : "same-origin",
4201
+ signal: C,
4198
4202
  cache: "no-store"
4199
- }).then(function(T) {
4200
- return B = T.body.getReader(), v(T.status, T.statusText, T.headers.get("Content-Type"), new ve(T.headers)), new d(function(D, Q) {
4203
+ }).then(function(S) {
4204
+ return v = S.body.getReader(), a(S.status, S.statusText, S.headers.get("Content-Type"), new _e(S.headers)), new d(function(N, ge) {
4201
4205
  var Qe = function() {
4202
- B.read().then(function(ne) {
4203
- if (ne.done)
4204
- D(void 0);
4206
+ v.read().then(function(ee) {
4207
+ if (ee.done)
4208
+ N(void 0);
4205
4209
  else {
4206
- var J = L.decode(ne.value, { stream: !0 });
4207
- s(J), Qe();
4210
+ var Z = R.decode(ee.value, { stream: !0 });
4211
+ p(Z), Qe();
4208
4212
  }
4209
- }).catch(function(ne) {
4210
- Q(ne);
4213
+ }).catch(function(ee) {
4214
+ ge(ee);
4211
4215
  });
4212
4216
  };
4213
4217
  Qe();
4214
4218
  });
4215
- }).catch(function(T) {
4216
- if (T.name !== "AbortError")
4217
- return T;
4218
- }).then(function(T) {
4219
- c(T);
4219
+ }).catch(function(S) {
4220
+ if (S.name !== "AbortError")
4221
+ return S;
4222
+ }).then(function(S) {
4223
+ h(S);
4220
4224
  }), {
4221
4225
  abort: function() {
4222
- B != null && B.cancel(), b.abort();
4226
+ v != null && v.cancel(), T.abort();
4223
4227
  }
4224
4228
  };
4225
4229
  };
4226
- function oe() {
4230
+ function re() {
4227
4231
  this._listeners = /* @__PURE__ */ Object.create(null);
4228
4232
  }
4229
- function de(h) {
4233
+ function se(c) {
4230
4234
  r(function() {
4231
- throw h;
4235
+ throw c;
4232
4236
  }, 0);
4233
4237
  }
4234
- oe.prototype.dispatchEvent = function(h) {
4235
- h.target = this;
4236
- var v = this._listeners[h.type];
4237
- if (v != null)
4238
- for (var s = v.length, c = 0; c < s; c += 1) {
4239
- var p = v[c];
4238
+ re.prototype.dispatchEvent = function(c) {
4239
+ c.target = this;
4240
+ var a = this._listeners[c.type];
4241
+ if (a != null)
4242
+ for (var p = a.length, h = 0; h < p; h += 1) {
4243
+ var g = a[h];
4240
4244
  try {
4241
- typeof p.handleEvent == "function" ? p.handleEvent(h) : p.call(this, h);
4242
- } catch (m) {
4243
- de(m);
4245
+ typeof g.handleEvent == "function" ? g.handleEvent(c) : g.call(this, c);
4246
+ } catch (y) {
4247
+ se(y);
4244
4248
  }
4245
4249
  }
4246
- }, oe.prototype.addEventListener = function(h, v) {
4247
- h = String(h);
4248
- var s = this._listeners, c = s[h];
4249
- c == null && (c = [], s[h] = c);
4250
- for (var p = !1, m = 0; m < c.length; m += 1)
4251
- c[m] === v && (p = !0);
4252
- p || c.push(v);
4253
- }, oe.prototype.removeEventListener = function(h, v) {
4254
- h = String(h);
4255
- var s = this._listeners, c = s[h];
4256
- if (c != null) {
4257
- for (var p = [], m = 0; m < c.length; m += 1)
4258
- c[m] !== v && p.push(c[m]);
4259
- p.length === 0 ? delete s[h] : s[h] = p;
4250
+ }, re.prototype.addEventListener = function(c, a) {
4251
+ c = String(c);
4252
+ var p = this._listeners, h = p[c];
4253
+ h == null && (h = [], p[c] = h);
4254
+ for (var g = !1, y = 0; y < h.length; y += 1)
4255
+ h[y] === a && (g = !0);
4256
+ g || h.push(a);
4257
+ }, re.prototype.removeEventListener = function(c, a) {
4258
+ c = String(c);
4259
+ var p = this._listeners, h = p[c];
4260
+ if (h != null) {
4261
+ for (var g = [], y = 0; y < h.length; y += 1)
4262
+ h[y] !== a && g.push(h[y]);
4263
+ g.length === 0 ? delete p[c] : p[c] = g;
4260
4264
  }
4261
4265
  };
4262
- function q(h) {
4263
- this.type = h, this.target = void 0;
4266
+ function ie(c) {
4267
+ this.type = c, this.target = void 0;
4264
4268
  }
4265
- function xe(h, v) {
4266
- q.call(this, h), this.data = v.data, this.lastEventId = v.lastEventId;
4269
+ function x(c, a) {
4270
+ ie.call(this, c), this.data = a.data, this.lastEventId = a.lastEventId;
4267
4271
  }
4268
- xe.prototype = Object.create(q.prototype);
4269
- function x(h, v) {
4270
- q.call(this, h), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
4272
+ x.prototype = Object.create(ie.prototype);
4273
+ function me(c, a) {
4274
+ ie.call(this, c), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
4271
4275
  }
4272
- x.prototype = Object.create(q.prototype);
4273
- function _e(h, v) {
4274
- q.call(this, h), this.error = v.error;
4276
+ me.prototype = Object.create(ie.prototype);
4277
+ function it(c, a) {
4278
+ ie.call(this, c), this.error = a.error;
4275
4279
  }
4276
- _e.prototype = Object.create(q.prototype);
4277
- var Xe = -1, ce = 0, Te = 1, we = 2, ze = -1, ae = 0, Le = 1, it = 2, We = 3, ot = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, at = 18e6, Ze = function(h, v) {
4278
- var s = h == null ? v : parseInt(h, 10);
4279
- return s !== s && (s = v), qe(s);
4280
- }, qe = function(h) {
4281
- return Math.min(Math.max(h, Bt), at);
4282
- }, Be = function(h, v, s) {
4280
+ it.prototype = Object.create(ie.prototype);
4281
+ var ze = -1, ce = 0, Te = 1, we = 2, Ae = -1, ue = 0, We = 1, Le = 2, ot = 3, Bt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Ze = function(c, a) {
4282
+ var p = c == null ? a : parseInt(c, 10);
4283
+ return p !== p && (p = a), qe(p);
4284
+ }, qe = function(c) {
4285
+ return Math.min(Math.max(c, at), St);
4286
+ }, Be = function(c, a, p) {
4283
4287
  try {
4284
- typeof v == "function" && v.call(h, s);
4285
- } catch (c) {
4286
- de(c);
4288
+ typeof a == "function" && a.call(c, p);
4289
+ } catch (h) {
4290
+ se(h);
4287
4291
  }
4288
4292
  };
4289
- function te(h, v) {
4290
- oe.call(this), v = v || {}, 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, wt(this, h, v);
4293
+ function K(c, a) {
4294
+ 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, Ct(this, c, a);
4291
4295
  }
4292
- function st() {
4296
+ function wt() {
4293
4297
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4294
4298
  }
4295
- var St = g != null && y != null && "body" in y.prototype;
4296
- function wt(h, v, s) {
4297
- v = String(v);
4298
- var c = !!s.withCredentials, p = s.lastEventIdQueryParameterName || "lastEventId", m = qe(1e3), E = Ze(s.heartbeatTimeout, 45e3), B = "", b = m, A = !1, L = 0, T = s.headers || {}, D = s.Transport, Q = St && D == null ? void 0 : new C(D != null ? new D() : st()), Qe = D != null && typeof D != "string" ? new D() : Q == null ? new Ee() : new W(), ne = void 0, J = 0, le = Xe, Oe = "", lt = "", pe = "", ht = "", Y = ae, At = 0, Ae = 0, ar = function(V, j, re, ie) {
4299
+ var At = m != null && b != null && "body" in b.prototype;
4300
+ function Ct(c, a, p) {
4301
+ a = String(a);
4302
+ var h = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", y = qe(1e3), E = Ze(p.heartbeatTimeout, 45e3), v = "", T = y, C = !1, R = 0, S = p.headers || {}, N = p.Transport, ge = At && N == null ? void 0 : new A(N != null ? new N() : wt()), Qe = N != null && typeof N != "string" ? new N() : ge == null ? new pe() : new Y(), ee = void 0, Z = 0, le = ze, Re = "", ut = "", be = "", lt = "", q = ue, Ht = 0, Ce = 0, ar = function(V, $, te, ne) {
4299
4303
  if (le === ce)
4300
- if (V === 200 && re != null && ot.test(re)) {
4301
- le = Te, A = Date.now(), b = m, h.readyState = Te;
4302
- var K = new x("open", {
4304
+ if (V === 200 && te != null && Bt.test(te)) {
4305
+ le = Te, C = Date.now(), T = y, c.readyState = Te;
4306
+ var Q = new me("open", {
4303
4307
  status: V,
4304
- statusText: j,
4305
- headers: ie
4308
+ statusText: $,
4309
+ headers: ne
4306
4310
  });
4307
- h.dispatchEvent(K), Be(h, h.onopen, K);
4311
+ c.dispatchEvent(Q), Be(c, c.onopen, Q);
4308
4312
  } else {
4309
4313
  var X = "";
4310
- V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " 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.", Ct();
4311
- var K = new x("error", {
4314
+ 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: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4315
+ var Q = new me("error", {
4312
4316
  status: V,
4313
- statusText: j,
4314
- headers: ie
4317
+ statusText: $,
4318
+ headers: ne
4315
4319
  });
4316
- h.dispatchEvent(K), Be(h, h.onerror, K), console.error(X);
4320
+ c.dispatchEvent(Q), Be(c, c.onerror, Q), console.error(X);
4317
4321
  }
4318
4322
  }, sr = function(V) {
4319
4323
  if (le === Te) {
4320
- for (var j = -1, re = 0; re < V.length; re += 1) {
4321
- var ie = V.charCodeAt(re);
4322
- (ie === 10 || ie === 13) && (j = re);
4324
+ for (var $ = -1, te = 0; te < V.length; te += 1) {
4325
+ var ne = V.charCodeAt(te);
4326
+ (ne === 10 || ne === 13) && ($ = te);
4323
4327
  }
4324
- var K = (j !== -1 ? ht : "") + V.slice(0, j + 1);
4325
- ht = (j === -1 ? ht : "") + V.slice(j + 1), V !== "" && (A = Date.now(), L += V.length);
4326
- for (var X = 0; X < K.length; X += 1) {
4327
- var ie = K.charCodeAt(X);
4328
- if (Y === ze && ie === 10)
4329
- Y = ae;
4330
- else if (Y === ze && (Y = ae), ie === 13 || ie === 10) {
4331
- if (Y !== ae) {
4332
- Y === Le && (Ae = X + 1);
4333
- var me = K.slice(At, Ae - 1), ge = K.slice(Ae + (Ae < X && K.charCodeAt(Ae) === 32 ? 1 : 0), X);
4334
- me === "data" ? (Oe += `
4335
- `, Oe += ge) : me === "id" ? lt = ge : me === "event" ? pe = ge : me === "retry" ? (m = Ze(ge, m), b = m) : me === "heartbeatTimeout" && (E = Ze(ge, E), J !== 0 && (i(J), J = r(function() {
4328
+ var Q = ($ !== -1 ? lt : "") + V.slice(0, $ + 1);
4329
+ lt = ($ === -1 ? lt : "") + V.slice($ + 1), V !== "" && (C = Date.now(), R += V.length);
4330
+ for (var X = 0; X < Q.length; X += 1) {
4331
+ var ne = Q.charCodeAt(X);
4332
+ if (q === Ae && ne === 10)
4333
+ q = ue;
4334
+ else if (q === Ae && (q = ue), ne === 13 || ne === 10) {
4335
+ if (q !== ue) {
4336
+ q === We && (Ce = X + 1);
4337
+ var ye = Q.slice(Ht, Ce - 1), ve = Q.slice(Ce + (Ce < X && Q.charCodeAt(Ce) === 32 ? 1 : 0), X);
4338
+ ye === "data" ? (Re += `
4339
+ `, Re += ve) : ye === "id" ? ut = ve : ye === "event" ? be = ve : ye === "retry" ? (y = Ze(ve, y), T = y) : ye === "heartbeatTimeout" && (E = Ze(ve, E), Z !== 0 && (i(Z), Z = r(function() {
4336
4340
  Je();
4337
4341
  }, E)));
4338
4342
  }
4339
- if (Y === ae) {
4340
- if (Oe !== "") {
4341
- B = lt, pe === "" && (pe = "message");
4342
- var Re = new xe(pe, {
4343
- data: Oe.slice(1),
4344
- lastEventId: lt
4343
+ if (q === ue) {
4344
+ if (Re !== "") {
4345
+ v = ut, be === "" && (be = "message");
4346
+ var Ne = new x(be, {
4347
+ data: Re.slice(1),
4348
+ lastEventId: ut
4345
4349
  });
4346
- if (h.dispatchEvent(Re), pe === "open" ? Be(h, h.onopen, Re) : pe === "message" ? Be(h, h.onmessage, Re) : pe === "error" && Be(h, h.onerror, Re), le === we)
4350
+ if (c.dispatchEvent(Ne), be === "open" ? Be(c, c.onopen, Ne) : be === "message" ? Be(c, c.onmessage, Ne) : be === "error" && Be(c, c.onerror, Ne), le === we)
4347
4351
  return;
4348
4352
  }
4349
- Oe = "", pe = "";
4353
+ Re = "", be = "";
4350
4354
  }
4351
- Y = ie === 13 ? ze : ae;
4355
+ q = ne === 13 ? Ae : ue;
4352
4356
  } else
4353
- Y === ae && (At = X, Y = Le), Y === Le ? ie === 58 && (Ae = X + 1, Y = it) : Y === it && (Y = We);
4357
+ q === ue && (Ht = X, q = We), q === We ? ne === 58 && (Ce = X + 1, q = Le) : q === Le && (q = ot);
4354
4358
  }
4355
4359
  }
4356
4360
  }, an = function(V) {
4357
4361
  if (le === Te || le === ce) {
4358
- le = Xe, J !== 0 && (i(J), J = 0), J = r(function() {
4362
+ le = ze, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
4359
4363
  Je();
4360
- }, b), b = qe(Math.min(m * 16, b * 2)), h.readyState = ce;
4361
- var j = new _e("error", { error: V });
4362
- h.dispatchEvent(j), Be(h, h.onerror, j), V != null && console.error(V);
4364
+ }, T), T = qe(Math.min(y * 16, T * 2)), c.readyState = ce;
4365
+ var $ = new it("error", { error: V });
4366
+ c.dispatchEvent($), Be(c, c.onerror, $), V != null && console.error(V);
4363
4367
  }
4364
- }, Ct = function() {
4365
- le = we, ne != null && (ne.abort(), ne = void 0), J !== 0 && (i(J), J = 0), h.readyState = we;
4368
+ }, Ot = function() {
4369
+ le = we, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), c.readyState = we;
4366
4370
  }, Je = function() {
4367
- if (J = 0, le !== Xe) {
4368
- if (!A && ne != null)
4369
- an(new Error("No activity within " + E + " milliseconds. " + (le === ce ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4371
+ if (Z = 0, le !== ze) {
4372
+ if (!C && ee != null)
4373
+ an(new Error("No activity within " + E + " milliseconds. " + (le === ce ? "No response received." : R + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
4370
4374
  else {
4371
- var V = Math.max((A || Date.now()) + E - Date.now(), 1);
4372
- A = !1, J = r(function() {
4375
+ var V = Math.max((C || Date.now()) + E - Date.now(), 1);
4376
+ C = !1, Z = r(function() {
4373
4377
  Je();
4374
4378
  }, V);
4375
4379
  }
4376
4380
  return;
4377
4381
  }
4378
- A = !1, L = 0, J = r(function() {
4382
+ C = !1, R = 0, Z = r(function() {
4379
4383
  Je();
4380
- }, E), le = ce, Oe = "", pe = "", lt = B, ht = "", At = 0, Ae = 0, Y = ae;
4381
- var j = v;
4382
- if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && B !== "") {
4383
- var re = v.indexOf("?");
4384
- j = re === -1 ? v : v.slice(0, re + 1) + v.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ge, Re) {
4385
- return Re === p ? "" : ge;
4386
- }), j += (v.indexOf("?") === -1 ? "?" : "&") + p + "=" + encodeURIComponent(B);
4384
+ }, E), le = ce, Re = "", be = "", ut = v, lt = "", Ht = 0, Ce = 0, q = ue;
4385
+ var $ = a;
4386
+ if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && v !== "") {
4387
+ var te = a.indexOf("?");
4388
+ $ = te === -1 ? a : a.slice(0, te + 1) + a.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
4389
+ return Ne === g ? "" : ve;
4390
+ }), $ += (a.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(v);
4387
4391
  }
4388
- var ie = h.withCredentials, K = {};
4389
- K.Accept = "text/event-stream";
4390
- var X = h.headers;
4392
+ var ne = c.withCredentials, Q = {};
4393
+ Q.Accept = "text/event-stream";
4394
+ var X = c.headers;
4391
4395
  if (X != null)
4392
- for (var me in X)
4393
- Object.prototype.hasOwnProperty.call(X, me) && (K[me] = X[me]);
4396
+ for (var ye in X)
4397
+ Object.prototype.hasOwnProperty.call(X, ye) && (Q[ye] = X[ye]);
4394
4398
  try {
4395
- ne = Qe.open(Q, ar, sr, an, j, ie, K);
4396
- } catch (ge) {
4397
- throw Ct(), ge;
4399
+ ee = Qe.open(ge, ar, sr, an, $, ne, Q);
4400
+ } catch (ve) {
4401
+ throw Ot(), ve;
4398
4402
  }
4399
4403
  };
4400
- h.url = v, h.readyState = ce, h.withCredentials = c, h.headers = T, h._close = Ct, Je();
4404
+ c.url = a, c.readyState = ce, c.withCredentials = h, c.headers = S, c._close = Ot, Je();
4401
4405
  }
4402
- te.prototype = Object.create(oe.prototype), te.prototype.CONNECTING = ce, te.prototype.OPEN = Te, te.prototype.CLOSED = we, te.prototype.close = function() {
4406
+ K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = ce, K.prototype.OPEN = Te, K.prototype.CLOSED = we, K.prototype.close = function() {
4403
4407
  this._close();
4404
- }, te.CONNECTING = ce, te.OPEN = Te, te.CLOSED = we, te.prototype.withCredentials = void 0;
4405
- var ut = f;
4406
- o != null && (f == null || !("withCredentials" in f.prototype)) && (ut = te), function(h) {
4408
+ }, K.CONNECTING = ce, K.OPEN = Te, K.CLOSED = we, K.prototype.withCredentials = void 0;
4409
+ var st = f;
4410
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (st = K), function(c) {
4407
4411
  {
4408
- var v = h(t);
4409
- v !== void 0 && (e.exports = v);
4412
+ var a = c(t);
4413
+ a !== void 0 && (e.exports = a);
4410
4414
  }
4411
- }(function(h) {
4412
- h.EventSourcePolyfill = te, h.NativeEventSource = f, h.EventSource = ut;
4415
+ }(function(c) {
4416
+ c.EventSourcePolyfill = K, c.NativeEventSource = f, c.EventSource = st;
4413
4417
  });
4414
4418
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
4415
- })(Kt, Kt.exports);
4416
- var Ho = Kt.exports;
4419
+ })(tn, tn.exports);
4420
+ var Oo = tn.exports;
4417
4421
  function Lo(e) {
4418
4422
  mr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
4419
4423
  }
@@ -4425,7 +4429,7 @@ function wn(e, t, n) {
4425
4429
  const r = e.slice();
4426
4430
  return r[54] = t[n], r;
4427
4431
  }
4428
- function Oo(e) {
4432
+ function Ro(e) {
4429
4433
  let t, n = (
4430
4434
  /*balances*/
4431
4435
  (e[3].Total ? (
@@ -4435,55 +4439,55 @@ function Oo(e) {
4435
4439
  e[3].Total[0].amount
4436
4440
  )
4437
4441
  ) : "0") + ""
4438
- ), r, i, o, u, a, f, l, d = (
4442
+ ), r, i, o, u, s, f, l, d = (
4439
4443
  /*isModalDisplayed*/
4440
4444
  e[2] && An(e)
4441
4445
  );
4442
4446
  return {
4443
4447
  c() {
4444
- t = G("button"), r = be(n), i = ye(), 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 = ye(), d && d.c(), a = yr(), z(t, "class", "BalanceValue");
4448
+ t = G("button"), r = Ee(n), i = xe(), 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 = xe(), d && d.c(), s = yr(), z(t, "class", "BalanceValue");
4445
4449
  },
4446
- m(g, y) {
4447
- fe(g, t, y), M(t, r), M(t, i), M(t, o), fe(g, u, y), d && d.m(g, y), fe(g, a, y), f || (l = mt(
4450
+ m(m, b) {
4451
+ de(m, t, b), M(t, r), M(t, i), M(t, o), de(m, u, b), d && d.m(m, b), de(m, s, b), f || (l = pt(
4448
4452
  t,
4449
4453
  "click",
4450
4454
  /*click_handler*/
4451
4455
  e[25]
4452
4456
  ), f = !0);
4453
4457
  },
4454
- p(g, y) {
4455
- y[0] & /*balances*/
4458
+ p(m, b) {
4459
+ b[0] & /*balances*/
4456
4460
  8 && n !== (n = /*balances*/
4457
- (g[3].Total ? (
4461
+ (m[3].Total ? (
4458
4462
  /*formatBalance*/
4459
- g[5](
4463
+ m[5](
4460
4464
  /*balances*/
4461
- g[3].Total[0].amount
4465
+ m[3].Total[0].amount
4462
4466
  )
4463
- ) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
4464
- g[2] ? d ? d.p(g, y) : (d = An(g), d.c(), d.m(a.parentNode, a)) : d && (d.d(1), d = null);
4467
+ ) : "0") + "") && He(r, n), /*isModalDisplayed*/
4468
+ m[2] ? d ? d.p(m, b) : (d = An(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
4465
4469
  },
4466
- d(g) {
4467
- g && (he(t), he(u), he(a)), d && d.d(g), f = !1, l();
4470
+ d(m) {
4471
+ m && (he(t), he(u), he(s)), d && d.d(m), f = !1, l();
4468
4472
  }
4469
4473
  };
4470
4474
  }
4471
- function Ro(e) {
4475
+ function No(e) {
4472
4476
  let t, n = (
4473
4477
  /*$_*/
4474
4478
  e[4]("Loading") + ""
4475
4479
  ), r;
4476
4480
  return {
4477
4481
  c() {
4478
- t = G("p"), r = be(n);
4482
+ t = G("p"), r = Ee(n);
4479
4483
  },
4480
4484
  m(i, o) {
4481
- fe(i, t, o), M(t, r);
4485
+ de(i, t, o), M(t, r);
4482
4486
  },
4483
4487
  p(i, o) {
4484
4488
  o[0] & /*$_*/
4485
4489
  16 && n !== (n = /*$_*/
4486
- i[4]("Loading") + "") && Ce(r, n);
4490
+ i[4]("Loading") + "") && He(r, n);
4487
4491
  },
4488
4492
  d(i) {
4489
4493
  i && he(t);
@@ -4491,68 +4495,68 @@ function Ro(e) {
4491
4495
  };
4492
4496
  }
4493
4497
  function An(e) {
4494
- let t, n, r, i, o, u, a = (
4498
+ let t, n, r, i, o, u, s = (
4495
4499
  /*$_*/
4496
4500
  e[4]("Title") + ""
4497
- ), f, l, d, g, y, _, S = (
4501
+ ), f, l, d, m, b, _, B = (
4498
4502
  /*$_*/
4499
4503
  e[4]("DepositButton") + ""
4500
- ), I, $, Z, U = gt(Object.keys(
4504
+ ), I, j, W, U = mt(Object.keys(
4501
4505
  /*balances*/
4502
4506
  e[3]
4503
4507
  )), w = [];
4504
- for (let C = 0; C < U.length; C += 1)
4505
- w[C] = Hn(Sn(e, U, C));
4508
+ for (let A = 0; A < U.length; A += 1)
4509
+ w[A] = Hn(Sn(e, U, A));
4506
4510
  return {
4507
4511
  c() {
4508
- t = G("div"), n = G("button"), r = ye(), i = G("div"), o = G("div"), u = G("p"), f = be(a), l = ye(), d = G("div");
4509
- for (let C = 0; C < w.length; C += 1)
4510
- w[C].c();
4511
- g = ye(), y = G("div"), _ = G("button"), I = be(S), z(n, "class", "BalanceModalClose"), z(u, "class", "BalanceModalTitle"), z(o, "class", "BalanceModalHeader"), z(d, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(y, "class", "BalanceModalFooter"), z(i, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
4512
+ t = G("div"), n = G("button"), r = xe(), i = G("div"), o = G("div"), u = G("p"), f = Ee(s), l = xe(), d = G("div");
4513
+ for (let A = 0; A < w.length; A += 1)
4514
+ w[A].c();
4515
+ m = xe(), b = G("div"), _ = G("button"), I = Ee(B), z(n, "class", "BalanceModalClose"), z(u, "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");
4512
4516
  },
4513
- m(C, P) {
4514
- fe(C, t, P), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, f), M(i, l), M(i, d);
4515
- for (let N = 0; N < w.length; N += 1)
4516
- w[N] && w[N].m(d, null);
4517
- M(i, g), M(i, y), M(y, _), M(_, I), $ || (Z = [
4518
- mt(
4517
+ m(A, P) {
4518
+ de(A, t, P), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, f), M(i, l), M(i, d);
4519
+ for (let L = 0; L < w.length; L += 1)
4520
+ w[L] && w[L].m(d, null);
4521
+ M(i, m), M(i, b), M(b, _), M(_, I), j || (W = [
4522
+ pt(
4519
4523
  n,
4520
4524
  "click",
4521
4525
  /*click_handler_1*/
4522
4526
  e[26]
4523
4527
  ),
4524
- mt(
4528
+ pt(
4525
4529
  _,
4526
4530
  "click",
4527
4531
  /*click_handler_2*/
4528
4532
  e[27]
4529
4533
  )
4530
- ], $ = !0);
4534
+ ], j = !0);
4531
4535
  },
4532
- p(C, P) {
4536
+ p(A, P) {
4533
4537
  if (P[0] & /*$_*/
4534
- 16 && a !== (a = /*$_*/
4535
- C[4]("Title") + "") && Ce(f, a), P[0] & /*balances, formatBalance, getProductType, $_*/
4538
+ 16 && s !== (s = /*$_*/
4539
+ A[4]("Title") + "") && He(f, s), P[0] & /*balances, formatBalance, getProductType, $_*/
4536
4540
  184) {
4537
- U = gt(Object.keys(
4541
+ U = mt(Object.keys(
4538
4542
  /*balances*/
4539
- C[3]
4543
+ A[3]
4540
4544
  ));
4541
- let N;
4542
- for (N = 0; N < U.length; N += 1) {
4543
- const W = Sn(C, U, N);
4544
- w[N] ? w[N].p(W, P) : (w[N] = Hn(W), w[N].c(), w[N].m(d, null));
4545
+ let L;
4546
+ for (L = 0; L < U.length; L += 1) {
4547
+ const Y = Sn(A, U, L);
4548
+ w[L] ? w[L].p(Y, P) : (w[L] = Hn(Y), w[L].c(), w[L].m(d, null));
4545
4549
  }
4546
- for (; N < w.length; N += 1)
4547
- w[N].d(1);
4550
+ for (; L < w.length; L += 1)
4551
+ w[L].d(1);
4548
4552
  w.length = U.length;
4549
4553
  }
4550
4554
  P[0] & /*$_*/
4551
- 16 && S !== (S = /*$_*/
4552
- C[4]("DepositButton") + "") && Ce(I, S);
4555
+ 16 && B !== (B = /*$_*/
4556
+ A[4]("DepositButton") + "") && He(I, B);
4553
4557
  },
4554
- d(C) {
4555
- C && he(t), Mn(w, C), $ = !1, $e(Z);
4558
+ d(A) {
4559
+ A && he(t), Mn(w, A), j = !1, $e(W);
4556
4560
  }
4557
4561
  };
4558
4562
  }
@@ -4569,37 +4573,37 @@ function Cn(e) {
4569
4573
  /*balance*/
4570
4574
  e[54]
4571
4575
  ) + ""
4572
- ), a, f, l, d, g = (
4576
+ ), s, f, l, d, m = (
4573
4577
  /*formatBalance*/
4574
4578
  e[5](
4575
4579
  /*balance*/
4576
4580
  e[54].amount
4577
4581
  ) + ""
4578
- ), y;
4582
+ ), b;
4579
4583
  return {
4580
4584
  c() {
4581
- t = G("div"), n = G("p"), i = be(r), o = ye(), a = be(u), f = ye(), l = G("p"), d = G("span"), y = be(g), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(l, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
4585
+ t = G("div"), n = G("p"), i = Ee(r), o = xe(), s = Ee(u), f = xe(), l = G("p"), d = G("span"), b = Ee(m), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(l, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
4582
4586
  },
4583
- m(_, S) {
4584
- fe(_, t, S), M(t, n), M(n, i), M(n, o), M(n, a), M(t, f), M(t, l), M(l, d), M(d, y);
4587
+ m(_, B) {
4588
+ de(_, t, B), M(t, n), M(n, i), M(n, o), M(n, s), M(t, f), M(t, l), M(l, d), M(d, b);
4585
4589
  },
4586
- p(_, S) {
4587
- S[0] & /*$_, balances*/
4590
+ p(_, B) {
4591
+ B[0] & /*$_, balances*/
4588
4592
  24 && r !== (r = /*$_*/
4589
4593
  _[4](
4590
4594
  /*k*/
4591
4595
  _[51]
4592
- ) + "") && Ce(i, r), S[0] & /*balances*/
4596
+ ) + "") && He(i, r), B[0] & /*balances*/
4593
4597
  8 && u !== (u = /*getProductType*/
4594
4598
  _[7](
4595
4599
  /*balance*/
4596
4600
  _[54]
4597
- ) + "") && Ce(a, u), S[0] & /*balances*/
4598
- 8 && g !== (g = /*formatBalance*/
4601
+ ) + "") && He(s, u), B[0] & /*balances*/
4602
+ 8 && m !== (m = /*formatBalance*/
4599
4603
  _[5](
4600
4604
  /*balance*/
4601
4605
  _[54].amount
4602
- ) + "") && Ce(y, g);
4606
+ ) + "") && He(b, m);
4603
4607
  },
4604
4608
  d(_) {
4605
4609
  _ && he(t);
@@ -4607,7 +4611,7 @@ function Cn(e) {
4607
4611
  };
4608
4612
  }
4609
4613
  function Hn(e) {
4610
- let t, n, r = gt(
4614
+ let t, n, r = mt(
4611
4615
  /*balances*/
4612
4616
  e[3][
4613
4617
  /*k*/
@@ -4621,31 +4625,31 @@ function Hn(e) {
4621
4625
  t = G("div");
4622
4626
  for (let o = 0; o < i.length; o += 1)
4623
4627
  i[o].c();
4624
- n = ye(), z(t, "class", "BalanceModalRowBoth");
4628
+ n = xe(), z(t, "class", "BalanceModalRowBoth");
4625
4629
  },
4626
4630
  m(o, u) {
4627
- fe(o, t, u);
4628
- for (let a = 0; a < i.length; a += 1)
4629
- i[a] && i[a].m(t, null);
4631
+ de(o, t, u);
4632
+ for (let s = 0; s < i.length; s += 1)
4633
+ i[s] && i[s].m(t, null);
4630
4634
  M(t, n);
4631
4635
  },
4632
4636
  p(o, u) {
4633
4637
  if (u[0] & /*formatBalance, balances, getProductType, $_*/
4634
4638
  184) {
4635
- r = gt(
4639
+ r = mt(
4636
4640
  /*balances*/
4637
4641
  o[3][
4638
4642
  /*k*/
4639
4643
  o[51]
4640
4644
  ]
4641
4645
  );
4642
- let a;
4643
- for (a = 0; a < r.length; a += 1) {
4644
- const f = wn(o, r, a);
4645
- i[a] ? i[a].p(f, u) : (i[a] = Cn(f), i[a].c(), i[a].m(t, n));
4646
+ let s;
4647
+ for (s = 0; s < r.length; s += 1) {
4648
+ const f = wn(o, r, s);
4649
+ i[s] ? i[s].p(f, u) : (i[s] = Cn(f), i[s].c(), i[s].m(t, n));
4646
4650
  }
4647
- for (; a < i.length; a += 1)
4648
- i[a].d(1);
4651
+ for (; s < i.length; s += 1)
4652
+ i[s].d(1);
4649
4653
  i.length = r.length;
4650
4654
  }
4651
4655
  },
@@ -4654,119 +4658,119 @@ function Hn(e) {
4654
4658
  }
4655
4659
  };
4656
4660
  }
4657
- function Ln(e) {
4661
+ function On(e) {
4658
4662
  let t, n, r;
4659
4663
  return {
4660
4664
  c() {
4661
4665
  t = G("button"), z(t, "class", "ShowBalanceModalOverlay");
4662
4666
  },
4663
4667
  m(i, o) {
4664
- fe(i, t, o), n || (r = mt(
4668
+ de(i, t, o), n || (r = pt(
4665
4669
  t,
4666
4670
  "click",
4667
4671
  /*click_handler_3*/
4668
4672
  e[28]
4669
4673
  ), n = !0);
4670
4674
  },
4671
- p: ue,
4675
+ p: ae,
4672
4676
  d(i) {
4673
4677
  i && he(t), n = !1, r();
4674
4678
  }
4675
4679
  };
4676
4680
  }
4677
- function No(e) {
4681
+ function Mo(e) {
4678
4682
  let t, n, r;
4679
4683
  function i(f, l) {
4680
4684
  return (
4681
4685
  /*isLoading*/
4682
- f[1] ? Ro : Oo
4686
+ f[1] ? No : Ro
4683
4687
  );
4684
4688
  }
4685
- let o = i(e), u = o(e), a = (
4689
+ let o = i(e), u = o(e), s = (
4686
4690
  /*isModalDisplayed*/
4687
- e[2] && Ln(e)
4691
+ e[2] && On(e)
4688
4692
  );
4689
4693
  return {
4690
4694
  c() {
4691
- t = G("div"), n = G("div"), u.c(), r = ye(), a && a.c(), z(n, "class", "ShowBalance");
4695
+ t = G("div"), n = G("div"), u.c(), r = xe(), s && s.c(), z(n, "class", "ShowBalance");
4692
4696
  },
4693
4697
  m(f, l) {
4694
- fe(f, t, l), M(t, n), u.m(n, null), M(t, r), a && a.m(t, null), e[29](t);
4698
+ de(f, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[29](t);
4695
4699
  },
4696
4700
  p(f, l) {
4697
4701
  o === (o = i(f)) && u ? u.p(f, l) : (u.d(1), u = o(f), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4698
- f[2] ? a ? a.p(f, l) : (a = Ln(f), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4702
+ f[2] ? s ? s.p(f, l) : (s = On(f), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4699
4703
  },
4700
- i: ue,
4701
- o: ue,
4704
+ i: ae,
4705
+ o: ae,
4702
4706
  d(f) {
4703
- f && he(t), u.d(), a && a.d(), e[29](null);
4707
+ f && he(t), u.d(), s && s.d(), e[29](null);
4704
4708
  }
4705
4709
  };
4706
4710
  }
4707
- function Mo(e, t, n) {
4711
+ function Po(e, t, n) {
4708
4712
  let r;
4709
- pr(e, Ao, (s) => n(4, r = s));
4710
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: a = "en" } = t, { mbsource: f = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { hideproducttype: I = "" } = t, { currencylocale: $ = "en" } = t, { currencydisplay: Z = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: w = "0" } = t, { customdisplayformat: C = "" } = t, P, N, W = !0, ve = !1, Ee = !1, oe, de = "", q = [], xe;
4711
- const x = {}, _e = ["totalCashAmount", "totalRealAmount"], Xe = () => {
4712
- fetch(g).then((s) => s.json()).then((s) => Object.keys(s).forEach((c) => Tn(c, s[c]))).catch((s) => console.log(s));
4713
+ pr(e, Co, (a) => n(4, r = a));
4714
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: f = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = 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, _e = !1, pe, re = "", se = [], ie;
4715
+ const x = {}, me = ["totalCashAmount", "totalRealAmount"], it = () => {
4716
+ fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((p) => Tn(p, a[p]))).catch((a) => console.log(a));
4713
4717
  };
4714
- Object.keys(Bn).forEach((s) => Tn(s, Bn[s]));
4715
- const ce = (s) => {
4716
- if (C)
4717
- return Te(s);
4718
- const c = $ || a, p = {
4718
+ Object.keys(Bn).forEach((a) => Tn(a, Bn[a]));
4719
+ const ze = (a) => {
4720
+ if (A)
4721
+ return ce(a);
4722
+ const p = j || s, h = {
4719
4723
  style: "currency",
4720
- currency: de,
4724
+ currency: re,
4721
4725
  useGrouping: !0,
4722
- currencyDisplay: Z || "code",
4726
+ currencyDisplay: W || "code",
4723
4727
  maximumFractionDigits: U === "" || isNaN(Number(U)) ? 2 : Number(U),
4724
4728
  minimumFractionDigits: w === "" || isNaN(Number(w)) ? 0 : Number(w)
4725
4729
  };
4726
- return new Intl.NumberFormat(c, p).format(s);
4727
- }, Te = (s) => {
4728
- const c = [];
4729
- let p = "";
4730
- for (const m of C)
4731
- switch (m) {
4730
+ return new Intl.NumberFormat(p, h).format(a);
4731
+ }, ce = (a) => {
4732
+ const p = [];
4733
+ let h = "";
4734
+ for (const g of A)
4735
+ switch (g) {
4732
4736
  default:
4733
- p += m;
4737
+ h += g;
4734
4738
  break;
4735
4739
  case "{":
4736
- p && c.push(p), p = "";
4740
+ h && p.push(h), h = "";
4737
4741
  break;
4738
4742
  case "}":
4739
- const [E, B] = p.split("|");
4740
- if (p = "", E.toLowerCase() === "currency")
4741
- p = de;
4742
- else if (E.toLowerCase() === "amount") {
4743
- let b = ",", A = ".", L = 2;
4744
- B && (B[0] !== " " && (b = B[0]), B[1] !== " " && (A = B[1]), B[2] !== " " && !isNaN(Number(B[2])) && (L = Number(B[2])));
4745
- let [T, D] = String(Math.floor(s * Lt(10, L)) / Lt(10, L)).split(".");
4746
- p += T[0];
4747
- for (let Q = 1; Q < T.length; ++Q)
4748
- (T.length - Q) % 3 === 0 ? p += b + T[Q] : p += T[Q];
4749
- D && (p += A + D);
4743
+ const [y, E] = h.split("|");
4744
+ if (h = "", y.toLowerCase() === "currency")
4745
+ h = re;
4746
+ else if (y.toLowerCase() === "amount") {
4747
+ let v = ",", T = ".", C = 2;
4748
+ E && (E[0] !== " " && (v = E[0]), E[1] !== " " && (T = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (C = Number(E[2])));
4749
+ let [R, S] = String(Math.floor(a * Rt(10, C)) / Rt(10, C)).split(".");
4750
+ h += R[0];
4751
+ for (let N = 1; N < R.length; ++N)
4752
+ (R.length - N) % 3 === 0 ? h += v + R[N] : h += R[N];
4753
+ S && (h += T + S);
4750
4754
  }
4751
- p && c.push(p), p = "";
4755
+ h && p.push(h), h = "";
4752
4756
  break;
4753
4757
  }
4754
- return c.push(p), c.join("");
4755
- }, we = () => Nt(this, null, function* () {
4756
- var c, p, m;
4757
- n(1, W = !0);
4758
- const s = new URL(`${u}/v1/player/${i}/account`);
4758
+ return p.push(h), p.join("");
4759
+ }, Te = () => Pt(this, null, function* () {
4760
+ var p, h, g;
4761
+ n(1, L = !0);
4762
+ const a = new URL(`${u}/v1/player/${i}/account`);
4759
4763
  try {
4760
- const E = yield fetch(s, {
4764
+ const y = yield fetch(a, {
4761
4765
  method: "GET",
4762
4766
  headers: { "X-SessionID": o }
4763
- }), B = yield E.json();
4764
- if (E.ok)
4765
- q = B.items, de = (c = q.find((b) => b.displayName === "Casino")) == null ? void 0 : c.currency, n(3, x.Total = [{ amount: B.totalAmount[de] }], x), n(
4767
+ }), E = yield y.json();
4768
+ if (y.ok)
4769
+ se = E.items, re = (p = se.find((v) => v.displayName === "Casino")) == null ? void 0 : p.currency, n(3, x.Total = [{ amount: E.totalAmount[re] }], x), n(
4766
4770
  3,
4767
4771
  x.Real = [
4768
4772
  {
4769
- amount: (p = q.find((b) => b.displayName === "Casino")) == null ? void 0 : p.balanceAmount
4773
+ amount: (h = se.find((v) => v.displayName === "Casino")) == null ? void 0 : h.balanceAmount
4770
4774
  }
4771
4775
  ],
4772
4776
  x
@@ -4774,46 +4778,46 @@ function Mo(e, t, n) {
4774
4778
  3,
4775
4779
  x.Bonus = [
4776
4780
  {
4777
- amount: (m = q.find((b) => b.displayName === "UBS")) == null ? void 0 : m.balanceAmount
4781
+ amount: (g = se.find((v) => v.displayName === "UBS")) == null ? void 0 : g.balanceAmount
4778
4782
  }
4779
4783
  ],
4780
4784
  x
4781
4785
  );
4782
4786
  else
4783
4787
  throw new Error("Failed to fetch balance data !");
4784
- } catch (E) {
4785
- console.log("Balance error: ", E);
4788
+ } catch (y) {
4789
+ console.log("Balance error: ", y);
4786
4790
  } finally {
4787
- n(1, W = !1);
4791
+ n(1, L = !1);
4788
4792
  }
4789
- }), ze = () => {
4790
- n(1, W = !0);
4791
- const s = new URL(`${u}/v2/player/${i}/balance`), c = new Headers();
4792
- c.append("X-SessionID", o), fetch(s, { method: "GET", headers: c }).then((m) => m.json()).then((m) => {
4793
- m[S] || n(8, S = _e[0]);
4794
- const E = m.items.find((b) => b.type === "Real" && b.walletAccountType === "Ordinary");
4795
- if (de = E.currency, Ee = !!E.productType, n(3, x.Total = [{ amount: 0 }], x), n(3, x.Real = [], x), n(3, x.Bonus = [], x), n(3, x.Credit = [], x), !Ee) {
4796
- xe = {
4793
+ }), we = () => {
4794
+ n(1, L = !0);
4795
+ const a = new URL(`${u}/v2/player/${i}/balance`), p = new Headers();
4796
+ p.append("X-SessionID", o), fetch(a, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
4797
+ g[B] || n(8, B = me[0]);
4798
+ const y = g.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
4799
+ if (re = y.currency, _e = !!y.productType, n(3, x.Total = [{ amount: 0 }], x), n(3, x.Real = [], x), n(3, x.Bonus = [], x), n(3, x.Credit = [], x), !_e) {
4800
+ ie = {
4797
4801
  lastOrdinaryAfterAmount: 0,
4798
4802
  showCreditLineAfterAmount: !1
4799
- }, n(3, x.Total[0].amount = m[S][de], x);
4800
- for (const b of m.items)
4801
- switch (b.type) {
4803
+ }, n(3, x.Total[0].amount = g[B][re], x);
4804
+ for (const v of g.items)
4805
+ switch (v.type) {
4802
4806
  case "Bonus":
4803
- x.Bonus.length === 0 ? x.Bonus.push({ amount: b.amount }) : n(3, x.Bonus[0].amount += b.amount, x);
4807
+ x.Bonus.length === 0 ? x.Bonus.push({ amount: v.amount }) : n(3, x.Bonus[0].amount += v.amount, x);
4804
4808
  break;
4805
4809
  case "Real":
4806
- if (b.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: b.creditLine }), S === "totalRealAmount")
4810
+ if (v.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: v.creditLine }), B === "totalRealAmount")
4807
4811
  continue;
4808
- x.Real.length === 0 ? x.Real.push({ amount: b.amount }) : n(3, x.Real[0].amount += b.amount, x);
4812
+ x.Real.length === 0 ? x.Real.push({ amount: v.amount }) : n(3, x.Real[0].amount += v.amount, x);
4809
4813
  break;
4810
4814
  }
4811
- for (const [b, A] of Object.entries(x))
4812
- A.length < 1 && delete x[b];
4813
- n(1, W = !1);
4815
+ for (const [v, T] of Object.entries(x))
4816
+ T.length < 1 && delete x[v];
4817
+ n(1, L = !1);
4814
4818
  return;
4815
4819
  }
4816
- xe = {
4820
+ ie = {
4817
4821
  Casino: {
4818
4822
  lastOrdinaryAfterAmount: 0,
4819
4823
  showCreditLineAfterAmount: !1
@@ -4823,200 +4827,200 @@ function Mo(e, t, n) {
4823
4827
  showCreditLineAfterAmount: !1
4824
4828
  }
4825
4829
  };
4826
- let B = m.items;
4827
- _ && _ !== "All" && (B = m.items.filter((b) => b.productType === _));
4828
- for (const b of B) {
4829
- let A;
4830
- switch (b.type) {
4830
+ let E = g.items;
4831
+ _ && _ !== "All" && (E = g.items.filter((v) => v.productType === _));
4832
+ for (const v of E) {
4833
+ let T;
4834
+ switch (v.type) {
4831
4835
  case "Bonus":
4832
- A = x.Bonus.findIndex((L) => L.productType === b.productType), A > 0 ? n(3, x.Bonus[A].amount += b.amount, x) : x.Bonus.push({
4833
- amount: b.amount,
4834
- productType: b.productType
4836
+ T = x.Bonus.findIndex((C) => C.productType === v.productType), T > 0 ? n(3, x.Bonus[T].amount += v.amount, x) : x.Bonus.push({
4837
+ amount: v.amount,
4838
+ productType: v.productType
4835
4839
  });
4836
4840
  break;
4837
4841
  case "Real":
4838
- b.creditLine && x.Credit.push({
4839
- amount: b.creditLine,
4840
- productType: b.productType
4841
- }), A = x.Real.findIndex((L) => L.productType === b.productType), A > 0 ? n(3, x.Real[A].amount += b.amount, x) : x.Real.push({
4842
- amount: b.amount,
4843
- productType: b.productType
4842
+ v.creditLine && x.Credit.push({
4843
+ amount: v.creditLine,
4844
+ productType: v.productType
4845
+ }), T = x.Real.findIndex((C) => C.productType === v.productType), T > 0 ? n(3, x.Real[T].amount += v.amount, x) : x.Real.push({
4846
+ amount: v.amount,
4847
+ productType: v.productType
4844
4848
  });
4845
4849
  break;
4846
4850
  }
4847
4851
  }
4848
4852
  ot();
4849
- for (const [b, A] of Object.entries(x))
4850
- A.length < 1 && delete x[b];
4851
- window.postMessage({ type: "playerBalanceInfo", balance: m }, window.location.href), n(1, W = !1);
4853
+ for (const [v, T] of Object.entries(x))
4854
+ T.length < 1 && delete x[v];
4855
+ window.postMessage({ type: "playerBalanceInfo", balance: g }, window.location.href), n(1, L = !1);
4852
4856
  }).catch(() => {
4853
- throw n(1, W = !1), new Error("Failed to fetch balance data !");
4857
+ throw n(1, L = !1), new Error("Failed to fetch balance data !");
4854
4858
  });
4855
- }, ae = () => {
4856
- if (oe && oe.close(), o.length < 1)
4859
+ }, Ae = () => {
4860
+ if (pe && pe.close(), o.length < 1)
4857
4861
  return;
4858
- let s, c;
4859
- switch (y) {
4862
+ let a, p;
4863
+ switch (b) {
4860
4864
  case "gm16":
4861
- s = new URL(`${u}/v2/player/${i}/information/updates`), c = (E) => Bt(E);
4865
+ a = new URL(`${u}/v2/player/${i}/information/updates`), p = (y) => Bt(y);
4862
4866
  break;
4863
4867
  case "gmcore":
4864
- s = new URL(`${u}/v1/player/${i}/balance/updates`), c = (E) => it(E);
4868
+ a = new URL(`${u}/v1/player/${i}/balance/updates`), p = (y) => We(y);
4865
4869
  break;
4866
4870
  }
4867
- const p = {
4871
+ const h = {
4868
4872
  accept: "text/event-stream",
4869
4873
  "X-SessionId": o
4870
- }, m = new Ho.EventSourcePolyfill(s, { headers: p });
4871
- oe = m, m.addEventListener("message", c);
4872
- }, Le = (s) => {
4873
- let c;
4874
+ }, g = new Oo.EventSourcePolyfill(a, { headers: h });
4875
+ pe = g, g.addEventListener("message", p);
4876
+ }, ue = (a) => {
4877
+ let p;
4874
4878
  try {
4875
- c = JSON.parse(s);
4876
- } catch (p) {
4877
- console.log("Balance stream failed: ", p);
4879
+ p = JSON.parse(a);
4880
+ } catch (h) {
4881
+ console.log("Balance stream failed: ", h);
4878
4882
  return;
4879
4883
  }
4880
- return c;
4881
- }, it = (s) => {
4882
- var E, B;
4883
- const c = Le(s.data);
4884
- if (!c) {
4885
- ae();
4884
+ return p;
4885
+ }, We = (a) => {
4886
+ var y, E;
4887
+ const p = ue(a.data);
4888
+ if (!p) {
4889
+ Ae();
4886
4890
  return;
4887
4891
  }
4888
- let p = "0";
4889
- const m = c.balanceChange;
4890
- q = q.map((b) => (m && m[b.id] && (b = Rt(Ot({}, b), {
4891
- balanceAmount: m[b.id].afterAmount
4892
- })), p = (parseFloat(b == null ? void 0 : b.balanceAmount) + parseFloat(p)).toString(), b)), n(3, x.Real = [{ amount: (E = q[0]) == null ? void 0 : E.balanceAmount }], x), n(3, x.Bonus = [{ amount: (B = q[1]) == null ? void 0 : B.balanceAmount }], x), n(3, x.Total = [{ amount: Number(p) }], x);
4893
- }, We = (s, c, p) => {
4894
- let m = null;
4895
- switch (p.walletAccountType) {
4892
+ let h = "0";
4893
+ const g = p.balanceChange;
4894
+ se = se.map((v) => (g && g[v.id] && (v = Mt(Nt({}, v), {
4895
+ balanceAmount: g[v.id].afterAmount
4896
+ })), h = (parseFloat(v == null ? void 0 : v.balanceAmount) + parseFloat(h)).toString(), v)), n(3, x.Real = [{ amount: (y = se[0]) == null ? void 0 : y.balanceAmount }], x), n(3, x.Bonus = [{ amount: (E = se[1]) == null ? void 0 : E.balanceAmount }], x), n(3, x.Total = [{ amount: Number(h) }], x);
4897
+ }, Le = (a, p, h) => {
4898
+ let g = null;
4899
+ switch (h.walletAccountType) {
4896
4900
  case "Ordinary":
4897
- (p.afterAmount !== p.affectedAmount || c.lastOrdinaryAfterAmount === 0) && (c.lastOrdinaryAfterAmount = p.afterAmount, c.showCreditLineAfterAmount || (m = p.afterAmount));
4901
+ (h.afterAmount !== h.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = h.afterAmount, p.showCreditLineAfterAmount || (g = h.afterAmount));
4898
4902
  break;
4899
4903
  case "CreditLine":
4900
- p.afterAmount !== 0 ? (m = p.afterAmount, c.showCreditLineAfterAmount = !0) : (m = c.lastOrdinaryAfterAmount, c.showCreditLineAfterAmount = !1);
4904
+ h.afterAmount !== 0 ? (g = h.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
4901
4905
  break;
4902
4906
  default:
4903
- m = p.afterAmount;
4907
+ g = h.afterAmount;
4904
4908
  }
4905
- return m === null ? s : m;
4909
+ return g === null ? a : g;
4906
4910
  }, ot = () => {
4907
- switch (S) {
4911
+ switch (B) {
4908
4912
  case "totalCashAmount":
4909
- let s = 0;
4910
- for (const p of ["Real", "Bonus"])
4911
- for (const m of x[p])
4912
- s += Math.max(m.amount, 0);
4913
- n(3, x.Total[0].amount = s, x);
4913
+ let a = 0;
4914
+ for (const h of ["Real", "Bonus"])
4915
+ for (const g of x[h])
4916
+ a += Math.max(g.amount, 0);
4917
+ n(3, x.Total[0].amount = a, x);
4914
4918
  break;
4915
4919
  case "totalRealAmount":
4916
- if (!Ee)
4920
+ if (!_e)
4917
4921
  return;
4918
- let c = 0;
4919
- for (const p of x.Real)
4920
- c += p.amount;
4921
- n(3, x.Total[0].amount = c, x);
4922
+ let p = 0;
4923
+ for (const h of x.Real)
4924
+ p += h.amount;
4925
+ n(3, x.Total[0].amount = p, x);
4922
4926
  }
4923
- }, Bt = (s) => {
4924
- const c = Le(s.data);
4925
- if (!c) {
4926
- ae();
4927
+ }, Bt = (a) => {
4928
+ const p = ue(a.data);
4929
+ if (!p) {
4930
+ Ae();
4927
4931
  return;
4928
4932
  }
4929
- if (Ze(c == null ? void 0 : c.type) || c.type !== "BALANCE_UPDATE_V2")
4933
+ if (St(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
4930
4934
  return;
4931
- const p = c.body.balanceChange;
4932
- for (const [m, E] of Object.entries(p))
4933
- if (S === "totalRealAmount" && m === "Real" && !Ee && n(3, x.Total[0].amount = We(x.Total[0].amount, xe, E), x), !!x[m])
4934
- for (const B of x[m]) {
4935
- if (!Ee) {
4936
- B.amount = m === "Real" ? We(B.amount, xe, E) : E.afterAmount;
4935
+ const h = p.body.balanceChange;
4936
+ for (const [g, y] of Object.entries(h))
4937
+ if (B === "totalRealAmount" && g === "Real" && !_e && n(3, x.Total[0].amount = Le(x.Total[0].amount, ie, y), x), !!x[g])
4938
+ for (const E of x[g]) {
4939
+ if (!_e) {
4940
+ E.amount = g === "Real" ? Le(E.amount, ie, y) : y.afterAmount;
4937
4941
  continue;
4938
4942
  }
4939
- E.productType === B.productType && (B.amount = m === "Real" ? We(B.amount, xe[B.productType], E) : E.afterAmount);
4943
+ y.productType === E.productType && (E.amount = g === "Real" ? Le(E.amount, ie[E.productType], y) : y.afterAmount);
4940
4944
  }
4941
4945
  ot();
4942
4946
  }, at = () => {
4943
- n(2, ve = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4944
- }, Ze = (s) => s === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, qe = () => {
4945
- _e.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(8, S = _e[0]));
4946
- }, Be = (s) => {
4947
- const c = I.split(",").map((p) => p.trim());
4948
- return !s.productType || c.includes(s.productType) ? "" : r(s.productType);
4949
- }, te = () => {
4950
- switch (Co(a), qe(), y) {
4947
+ n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4948
+ }, St = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ze = () => {
4949
+ me.includes(B) || (console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${me}. Using default value ('${me[0]}').`), n(8, B = me[0]));
4950
+ }, qe = (a) => {
4951
+ const p = I.split(",").map((h) => h.trim());
4952
+ return !a.productType || p.includes(a.productType) ? "" : r(a.productType);
4953
+ }, Be = () => {
4954
+ switch (Ho(s), Ze(), b) {
4951
4955
  case "gmcore":
4952
- we();
4956
+ Te();
4953
4957
  break;
4954
4958
  case "gm16":
4955
- ze();
4959
+ we();
4956
4960
  break;
4957
4961
  default:
4958
- throw Error(`Invalid apiversion attribute: ${y}`);
4962
+ throw Error(`Invalid apiversion attribute: ${b}`);
4959
4963
  }
4960
- }, st = (s) => s.data && s.data.type === "LogoutSuccessfull" && oe.close();
4961
- _r(() => (window.addEventListener("message", st, !1), () => {
4962
- window.emMessageBus && N && N.unsubscribe(), window.removeEventListener("message", st), oe && oe.close();
4964
+ }, K = (a) => a.data && a.data.type === "LogoutSuccessfull" && pe.close();
4965
+ _r(() => (window.addEventListener("message", K, !1), () => {
4966
+ window.removeEventListener("message", K), pe && pe.close();
4963
4967
  }));
4964
- const St = () => n(2, ve = !0), wt = () => n(2, ve = !1), ut = () => at(), h = () => n(2, ve = !1);
4965
- function v(s) {
4966
- $t[s ? "unshift" : "push"](() => {
4967
- P = s, n(0, P);
4968
+ const wt = () => n(2, Y = !0), At = () => n(2, Y = !1), Ct = () => at(), st = () => n(2, Y = !1);
4969
+ function c(a) {
4970
+ kt[a ? "unshift" : "push"](() => {
4971
+ P = a, n(0, P);
4968
4972
  });
4969
4973
  }
4970
- return e.$$set = (s) => {
4971
- "userid" in s && n(9, i = s.userid), "session" in s && n(10, o = s.session), "endpoint" in s && n(11, u = s.endpoint), "lang" in s && n(12, a = s.lang), "mbsource" in s && n(13, f = s.mbsource), "clientstyling" in s && n(14, l = s.clientstyling), "clientstylingurl" in s && n(15, d = s.clientstylingurl), "translationurl" in s && n(16, g = s.translationurl), "gmversion" in s && n(17, y = s.gmversion), "displaybalanceoption" in s && n(18, _ = s.displaybalanceoption), "totalcalculationmode" in s && n(8, S = s.totalcalculationmode), "hideproducttype" in s && n(19, I = s.hideproducttype), "currencylocale" in s && n(20, $ = s.currencylocale), "currencydisplay" in s && n(21, Z = s.currencydisplay), "maximumfractiondigits" in s && n(22, U = s.maximumfractiondigits), "minimumfractiondigits" in s && n(23, w = s.minimumfractiondigits), "customdisplayformat" in s && n(24, C = s.customdisplayformat);
4974
+ return e.$$set = (a) => {
4975
+ "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, f = a.mbsource), "clientstyling" in a && n(14, l = a.clientstyling), "clientstylingurl" in a && n(15, d = a.clientstylingurl), "translationurl" in a && n(16, m = 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);
4972
4976
  }, e.$$.update = () => {
4973
4977
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4974
- 400896 && u && i && o && a && y && _ && te(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4975
- 134656 && u && i && o && y && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4978
+ 400896 && u && i && o && s && b && _ && Be(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4979
+ 134656 && u && i && o && b && Ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4976
4980
  16385 && l && P && Ir(P, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4977
4981
  32769 && d && P && Dr(P, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4978
4982
  8193 && P && Fr(P, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
4979
- 65536 && g && Xe();
4983
+ 65536 && m && it();
4980
4984
  }, [
4981
4985
  P,
4982
- W,
4983
- ve,
4986
+ L,
4987
+ Y,
4984
4988
  x,
4985
4989
  r,
4986
- ce,
4990
+ ze,
4987
4991
  at,
4988
- Be,
4989
- S,
4992
+ qe,
4993
+ B,
4990
4994
  i,
4991
4995
  o,
4992
4996
  u,
4993
- a,
4997
+ s,
4994
4998
  f,
4995
4999
  l,
4996
5000
  d,
4997
- g,
4998
- y,
5001
+ m,
5002
+ b,
4999
5003
  _,
5000
5004
  I,
5001
- $,
5002
- Z,
5005
+ j,
5006
+ W,
5003
5007
  U,
5004
5008
  w,
5005
- C,
5006
- St,
5009
+ A,
5007
5010
  wt,
5008
- ut,
5009
- h,
5010
- v
5011
+ At,
5012
+ Ct,
5013
+ st,
5014
+ c
5011
5015
  ];
5012
5016
  }
5013
- class Po extends Mr {
5017
+ class Io extends Mr {
5014
5018
  constructor(t) {
5015
5019
  super(), Rr(
5016
5020
  this,
5017
5021
  t,
5022
+ Po,
5018
5023
  Mo,
5019
- No,
5020
5024
  Rn,
5021
5025
  {
5022
5026
  userid: 9,
@@ -5144,7 +5148,7 @@ class Po extends Mr {
5144
5148
  this.$$set({ customdisplayformat: t }), k();
5145
5149
  }
5146
5150
  }
5147
- Nr(Po, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5151
+ Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5148
5152
  export {
5149
- Po as default
5153
+ Io as default
5150
5154
  };